Fix a pasto.
[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-2012 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/VMCore/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_OPTIMIZED
689 ENABLE_PROFILING
690 DISABLE_ASSERTIONS
691 ENABLE_WERROR
692 ENABLE_EXPENSIVE_CHECKS
693 EXPENSIVE_CHECKS
694 DEBUG_RUNTIME
695 DEBUG_SYMBOLS
696 KEEP_SYMBOLS
697 JIT
698 TARGET_HAS_JIT
699 ENABLE_DOCS
700 ENABLE_DOXYGEN
701 LLVM_ENABLE_THREADS
702 ENABLE_PTHREADS
703 ENABLE_PIC
704 ENABLE_SHARED
705 ENABLE_EMBED_STDCXX
706 ENABLE_TIMESTAMPS
707 ENABLE_BACKTRACES
708 TARGETS_TO_BUILD
709 LLVM_ENUM_TARGETS
710 LLVM_ENUM_ASM_PRINTERS
711 LLVM_ENUM_ASM_PARSERS
712 LLVM_ENUM_DISASSEMBLERS
713 OPTIMIZE_OPTION
714 EXTRA_OPTIONS
715 EXTRA_LD_OPTIONS
716 CLANG_SRC_ROOT
717 BINUTILS_INCDIR
718 INTERNAL_PREFIX
719 NM
720 ifGNUmake
721 LN_S
722 CMP
723 CP
724 DATE
725 FIND
726 MKDIR
727 MV
728 RANLIB
729 AR
730 RM
731 SED
732 TAR
733 BINPWD
734 GRAPHVIZ
735 DOT
736 FDP
737 NEATO
738 TWOPI
739 CIRCO
740 GV
741 DOTTY
742 XDOT_PY
743 INSTALL_PROGRAM
744 INSTALL_SCRIPT
745 INSTALL_DATA
746 BZIP2
747 CAT
748 DOXYGEN
749 GROFF
750 GZIPBIN
751 PDFROFF
752 ZIP
753 OCAMLC
754 OCAMLOPT
755 OCAMLDEP
756 OCAMLDOC
757 GAS
758 HAVE_LINK_VERSION_SCRIPT
759 INSTALL_LTDL_TRUE
760 INSTALL_LTDL_FALSE
761 CONVENIENCE_LTDL_TRUE
762 CONVENIENCE_LTDL_FALSE
763 LIBADD_DL
764 NO_VARIADIC_MACROS
765 NO_MISSING_FIELD_INITIALIZERS
766 COVERED_SWITCH_DEFAULT
767 USE_UDIS86
768 USE_OPROFILE
769 USE_INTEL_JITEVENTS
770 XML2CONFIG
771 LIBXML2_LIBS
772 LIBXML2_INC
773 HAVE_PTHREAD
774 HUGE_VAL_SANITY
775 MMAP_FILE
776 SHLIBEXT
777 SHLIBPATH_VAR
778 LLVM_PREFIX
779 LLVM_BINDIR
780 LLVM_LIBDIR
781 LLVM_DATADIR
782 LLVM_DOCSDIR
783 LLVM_ETCDIR
784 LLVM_INCLUDEDIR
785 LLVM_INFODIR
786 LLVM_MANDIR
787 LLVM_CONFIGTIME
788 BINDINGS_TO_BUILD
789 ALL_BINDINGS
790 OCAML_LIBDIR
791 ENABLE_VISIBILITY_INLINES_HIDDEN
792 RPATH
793 RDYNAMIC
794 program_prefix
795 LIBOBJS
796 LTLIBOBJS'
797 ac_subst_files=''
798       ac_precious_vars='build_alias
799 host_alias
800 target_alias
801 CC
802 CFLAGS
803 LDFLAGS
804 CPPFLAGS
805 CXX
806 CXXFLAGS
807 CCC
808 CPP'
809 ac_subdirs_all='projects/llvm-gcc
810 projects/test-suite
811 projects/llvm-test
812 projects/poolalloc
813 projects/llvm-poolalloc
814 projects/sample
815 projects/privbracket
816 projects/llvm-stacker
817 projects/llvm-reopt
818 projects/llvm-java
819 projects/llvm-tv
820 projects/safecode
821 projects/llvm-kernel
822 tools/polly'
823
824 # Initialize some variables set by options.
825 ac_init_help=
826 ac_init_version=false
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
843
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
869
870 ac_prev=
871 ac_dashdash=
872 for ac_option
873 do
874   # If the previous option needs an argument, assign it.
875   if test -n "$ac_prev"; then
876     eval $ac_prev=\$ac_option
877     ac_prev=
878     continue
879   fi
880
881   case $ac_option in
882   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883   *)    ac_optarg=yes ;;
884   esac
885
886   # Accept the important Cygnus configure options, so we can diagnose typos.
887
888   case $ac_dashdash$ac_option in
889   --)
890     ac_dashdash=yes ;;
891
892   -bindir | --bindir | --bindi | --bind | --bin | --bi)
893     ac_prev=bindir ;;
894   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895     bindir=$ac_optarg ;;
896
897   -build | --build | --buil | --bui | --bu)
898     ac_prev=build_alias ;;
899   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900     build_alias=$ac_optarg ;;
901
902   -cache-file | --cache-file | --cache-fil | --cache-fi \
903   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904     ac_prev=cache_file ;;
905   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907     cache_file=$ac_optarg ;;
908
909   --config-cache | -C)
910     cache_file=config.cache ;;
911
912   -datadir | --datadir | --datadi | --datad)
913     ac_prev=datadir ;;
914   -datadir=* | --datadir=* | --datadi=* | --datad=*)
915     datadir=$ac_optarg ;;
916
917   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918   | --dataroo | --dataro | --datar)
919     ac_prev=datarootdir ;;
920   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922     datarootdir=$ac_optarg ;;
923
924   -disable-* | --disable-*)
925     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926     # Reject names that are not valid shell variable names.
927     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
928       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
929    { (exit 1); exit 1; }; }
930     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
931     eval enable_$ac_feature=no ;;
932
933   -docdir | --docdir | --docdi | --doc | --do)
934     ac_prev=docdir ;;
935   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936     docdir=$ac_optarg ;;
937
938   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939     ac_prev=dvidir ;;
940   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941     dvidir=$ac_optarg ;;
942
943   -enable-* | --enable-*)
944     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945     # Reject names that are not valid shell variable names.
946     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
947       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
948    { (exit 1); exit 1; }; }
949     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
950     eval enable_$ac_feature=\$ac_optarg ;;
951
952   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954   | --exec | --exe | --ex)
955     ac_prev=exec_prefix ;;
956   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958   | --exec=* | --exe=* | --ex=*)
959     exec_prefix=$ac_optarg ;;
960
961   -gas | --gas | --ga | --g)
962     # Obsolete; use --with-gas.
963     with_gas=yes ;;
964
965   -help | --help | --hel | --he | -h)
966     ac_init_help=long ;;
967   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968     ac_init_help=recursive ;;
969   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970     ac_init_help=short ;;
971
972   -host | --host | --hos | --ho)
973     ac_prev=host_alias ;;
974   -host=* | --host=* | --hos=* | --ho=*)
975     host_alias=$ac_optarg ;;
976
977   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978     ac_prev=htmldir ;;
979   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980   | --ht=*)
981     htmldir=$ac_optarg ;;
982
983   -includedir | --includedir | --includedi | --included | --include \
984   | --includ | --inclu | --incl | --inc)
985     ac_prev=includedir ;;
986   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987   | --includ=* | --inclu=* | --incl=* | --inc=*)
988     includedir=$ac_optarg ;;
989
990   -infodir | --infodir | --infodi | --infod | --info | --inf)
991     ac_prev=infodir ;;
992   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993     infodir=$ac_optarg ;;
994
995   -libdir | --libdir | --libdi | --libd)
996     ac_prev=libdir ;;
997   -libdir=* | --libdir=* | --libdi=* | --libd=*)
998     libdir=$ac_optarg ;;
999
1000   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001   | --libexe | --libex | --libe)
1002     ac_prev=libexecdir ;;
1003   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004   | --libexe=* | --libex=* | --libe=*)
1005     libexecdir=$ac_optarg ;;
1006
1007   -localedir | --localedir | --localedi | --localed | --locale)
1008     ac_prev=localedir ;;
1009   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010     localedir=$ac_optarg ;;
1011
1012   -localstatedir | --localstatedir | --localstatedi | --localstated \
1013   | --localstate | --localstat | --localsta | --localst | --locals)
1014     ac_prev=localstatedir ;;
1015   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017     localstatedir=$ac_optarg ;;
1018
1019   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020     ac_prev=mandir ;;
1021   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022     mandir=$ac_optarg ;;
1023
1024   -nfp | --nfp | --nf)
1025     # Obsolete; use --without-fp.
1026     with_fp=no ;;
1027
1028   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029   | --no-cr | --no-c | -n)
1030     no_create=yes ;;
1031
1032   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034     no_recursion=yes ;;
1035
1036   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038   | --oldin | --oldi | --old | --ol | --o)
1039     ac_prev=oldincludedir ;;
1040   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043     oldincludedir=$ac_optarg ;;
1044
1045   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046     ac_prev=prefix ;;
1047   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048     prefix=$ac_optarg ;;
1049
1050   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051   | --program-pre | --program-pr | --program-p)
1052     ac_prev=program_prefix ;;
1053   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055     program_prefix=$ac_optarg ;;
1056
1057   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058   | --program-suf | --program-su | --program-s)
1059     ac_prev=program_suffix ;;
1060   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062     program_suffix=$ac_optarg ;;
1063
1064   -program-transform-name | --program-transform-name \
1065   | --program-transform-nam | --program-transform-na \
1066   | --program-transform-n | --program-transform- \
1067   | --program-transform | --program-transfor \
1068   | --program-transfo | --program-transf \
1069   | --program-trans | --program-tran \
1070   | --progr-tra | --program-tr | --program-t)
1071     ac_prev=program_transform_name ;;
1072   -program-transform-name=* | --program-transform-name=* \
1073   | --program-transform-nam=* | --program-transform-na=* \
1074   | --program-transform-n=* | --program-transform-=* \
1075   | --program-transform=* | --program-transfor=* \
1076   | --program-transfo=* | --program-transf=* \
1077   | --program-trans=* | --program-tran=* \
1078   | --progr-tra=* | --program-tr=* | --program-t=*)
1079     program_transform_name=$ac_optarg ;;
1080
1081   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082     ac_prev=pdfdir ;;
1083   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084     pdfdir=$ac_optarg ;;
1085
1086   -psdir | --psdir | --psdi | --psd | --ps)
1087     ac_prev=psdir ;;
1088   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089     psdir=$ac_optarg ;;
1090
1091   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092   | -silent | --silent | --silen | --sile | --sil)
1093     silent=yes ;;
1094
1095   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096     ac_prev=sbindir ;;
1097   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098   | --sbi=* | --sb=*)
1099     sbindir=$ac_optarg ;;
1100
1101   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103   | --sharedst | --shareds | --shared | --share | --shar \
1104   | --sha | --sh)
1105     ac_prev=sharedstatedir ;;
1106   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109   | --sha=* | --sh=*)
1110     sharedstatedir=$ac_optarg ;;
1111
1112   -site | --site | --sit)
1113     ac_prev=site ;;
1114   -site=* | --site=* | --sit=*)
1115     site=$ac_optarg ;;
1116
1117   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118     ac_prev=srcdir ;;
1119   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120     srcdir=$ac_optarg ;;
1121
1122   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123   | --syscon | --sysco | --sysc | --sys | --sy)
1124     ac_prev=sysconfdir ;;
1125   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127     sysconfdir=$ac_optarg ;;
1128
1129   -target | --target | --targe | --targ | --tar | --ta | --t)
1130     ac_prev=target_alias ;;
1131   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132     target_alias=$ac_optarg ;;
1133
1134   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135     verbose=yes ;;
1136
1137   -version | --version | --versio | --versi | --vers | -V)
1138     ac_init_version=: ;;
1139
1140   -with-* | --with-*)
1141     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142     # Reject names that are not valid shell variable names.
1143     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1144       { echo "$as_me: error: invalid package name: $ac_package" >&2
1145    { (exit 1); exit 1; }; }
1146     ac_package=`echo $ac_package| sed 's/-/_/g'`
1147     eval with_$ac_package=\$ac_optarg ;;
1148
1149   -without-* | --without-*)
1150     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151     # Reject names that are not valid shell variable names.
1152     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1153       { echo "$as_me: error: invalid package name: $ac_package" >&2
1154    { (exit 1); exit 1; }; }
1155     ac_package=`echo $ac_package | sed 's/-/_/g'`
1156     eval with_$ac_package=no ;;
1157
1158   --x)
1159     # Obsolete; use --with-x.
1160     with_x=yes ;;
1161
1162   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163   | --x-incl | --x-inc | --x-in | --x-i)
1164     ac_prev=x_includes ;;
1165   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167     x_includes=$ac_optarg ;;
1168
1169   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171     ac_prev=x_libraries ;;
1172   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174     x_libraries=$ac_optarg ;;
1175
1176   -*) { echo "$as_me: error: unrecognized option: $ac_option
1177 Try \`$0 --help' for more information." >&2
1178    { (exit 1); exit 1; }; }
1179     ;;
1180
1181   *=*)
1182     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183     # Reject names that are not valid shell variable names.
1184     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1185       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1186    { (exit 1); exit 1; }; }
1187     eval $ac_envvar=\$ac_optarg
1188     export $ac_envvar ;;
1189
1190   *)
1191     # FIXME: should be removed in autoconf 3.0.
1192     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196     ;;
1197
1198   esac
1199 done
1200
1201 if test -n "$ac_prev"; then
1202   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203   { echo "$as_me: error: missing argument to $ac_option" >&2
1204    { (exit 1); exit 1; }; }
1205 fi
1206
1207 # Be sure to have absolute directory names.
1208 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209                 datadir sysconfdir sharedstatedir localstatedir includedir \
1210                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211                 libdir localedir mandir
1212 do
1213   eval ac_val=\$$ac_var
1214   case $ac_val in
1215     [\\/$]* | ?:[\\/]* )  continue;;
1216     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217   esac
1218   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1219    { (exit 1); exit 1; }; }
1220 done
1221
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1225 build=$build_alias
1226 host=$host_alias
1227 target=$target_alias
1228
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231   if test "x$build_alias" = x; then
1232     cross_compiling=maybe
1233     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1234     If a cross compiler is detected then cross compile mode will be used." >&2
1235   elif test "x$build_alias" != "x$host_alias"; then
1236     cross_compiling=yes
1237   fi
1238 fi
1239
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243 test "$silent" = yes && exec 6>/dev/null
1244
1245
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249   { echo "$as_me: error: Working directory cannot be determined" >&2
1250    { (exit 1); exit 1; }; }
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252   { echo "$as_me: error: pwd does not report name of working directory" >&2
1253    { (exit 1); exit 1; }; }
1254
1255
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258   ac_srcdir_defaulted=yes
1259   # Try the directory containing this script, then the parent directory.
1260   ac_confdir=`$as_dirname -- "$0" ||
1261 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262          X"$0" : 'X\(//\)[^/]' \| \
1263          X"$0" : 'X\(//\)$' \| \
1264          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1265 echo X"$0" |
1266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267             s//\1/
1268             q
1269           }
1270           /^X\(\/\/\)[^/].*/{
1271             s//\1/
1272             q
1273           }
1274           /^X\(\/\/\)$/{
1275             s//\1/
1276             q
1277           }
1278           /^X\(\/\).*/{
1279             s//\1/
1280             q
1281           }
1282           s/.*/./; q'`
1283   srcdir=$ac_confdir
1284   if test ! -r "$srcdir/$ac_unique_file"; then
1285     srcdir=..
1286   fi
1287 else
1288   ac_srcdir_defaulted=no
1289 fi
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1293    { (exit 1); exit 1; }; }
1294 fi
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 ac_abs_confdir=`(
1297         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1298    { (exit 1); exit 1; }; }
1299         pwd)`
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302   srcdir=.
1303 fi
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1307 case $srcdir in
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 esac
1310 for ac_var in $ac_precious_vars; do
1311   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312   eval ac_env_${ac_var}_value=\$${ac_var}
1313   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 done
1316
1317 #
1318 # Report the --help message.
1319 #
1320 if test "$ac_init_help" = "long"; then
1321   # Omit some internal or obsolete options to make the list less imposing.
1322   # This message is too long to be a string in the A/UX 3.1 sh.
1323   cat <<_ACEOF
1324 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
1325
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE.  See below for descriptions of some of the useful variables.
1330
1331 Defaults for the options are specified in brackets.
1332
1333 Configuration:
1334   -h, --help              display this help and exit
1335       --help=short        display options specific to this package
1336       --help=recursive    display the short help of all the included packages
1337   -V, --version           display version information and exit
1338   -q, --quiet, --silent   do not print \`checking...' messages
1339       --cache-file=FILE   cache test results in FILE [disabled]
1340   -C, --config-cache      alias for \`--cache-file=config.cache'
1341   -n, --no-create         do not create output files
1342       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1343
1344 Installation directories:
1345   --prefix=PREFIX         install architecture-independent files in PREFIX
1346                           [$ac_default_prefix]
1347   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1348                           [PREFIX]
1349
1350 By default, \`make install' will install all the files in
1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353 for instance \`--prefix=\$HOME'.
1354
1355 For better control, use the options below.
1356
1357 Fine tuning of the installation directories:
1358   --bindir=DIR           user executables [EPREFIX/bin]
1359   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1360   --libexecdir=DIR       program executables [EPREFIX/libexec]
1361   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1362   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1363   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1364   --libdir=DIR           object code libraries [EPREFIX/lib]
1365   --includedir=DIR       C header files [PREFIX/include]
1366   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1367   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1368   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1369   --infodir=DIR          info documentation [DATAROOTDIR/info]
1370   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1371   --mandir=DIR           man documentation [DATAROOTDIR/man]
1372   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1373   --htmldir=DIR          html documentation [DOCDIR]
1374   --dvidir=DIR           dvi documentation [DOCDIR]
1375   --pdfdir=DIR           pdf documentation [DOCDIR]
1376   --psdir=DIR            ps documentation [DOCDIR]
1377 _ACEOF
1378
1379   cat <<\_ACEOF
1380
1381 System types:
1382   --build=BUILD     configure for building on BUILD [guessed]
1383   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1384   --target=TARGET   configure for building compilers for TARGET [HOST]
1385 _ACEOF
1386 fi
1387
1388 if test -n "$ac_init_help"; then
1389   case $ac_init_help in
1390      short | recursive ) echo "Configuration of LLVM 3.3svn:";;
1391    esac
1392   cat <<\_ACEOF
1393
1394 Optional Features:
1395   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1396   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1397   --enable-polly          Use polly if available (default is YES)
1398   --enable-libcpp         Use libc++ if available (default is NO)
1399   --enable-cxx11          Use c++11 if available (default is NO)
1400   --enable-optimized      Compile with optimizations enabled (default is NO)
1401   --enable-profiling      Compile with profiling enabled (default is NO)
1402   --enable-assertions     Compile with assertion checks enabled (default is
1403                           YES)
1404   --enable-werror         Compile with -Werror enabled (default is NO)
1405   --enable-expensive-checks
1406                           Compile with expensive debug checks enabled (default
1407                           is NO)
1408   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1409                           NO)
1410   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1411                           optimization is on and YES if it's off)
1412   --enable-keep-symbols   Do not strip installed executables)
1413   --enable-jit            Enable Just In Time Compiling (default is YES)
1414   --enable-docs           Build documents (default is YES)
1415   --enable-doxygen        Build doxygen documentation (default is NO)
1416   --enable-threads        Use threads if available (default is YES)
1417   --enable-pthreads       Use pthreads if available (default is YES)
1418   --enable-pic            Build LLVM with Position Independent Code (default
1419                           is YES)
1420   --enable-shared         Build a shared library and link tools against it
1421                           (default is NO)
1422   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1423                           Win32 DLL (default is NO)
1424   --enable-timestamps     Enable embedding timestamp information in build
1425                           (default is YES)
1426   --enable-backtraces     Enable embedding backtraces on crash (default is
1427                           YES)
1428   --enable-targets        Build specific host targets: all or
1429                           target1,target2,... Valid targets are: host, x86,
1430                           x86_64, sparc, powerpc, arm, mips, hexagon, xcore,
1431                           msp430, nvptx, and cpp (default=all)
1432   --enable-experimental-targets
1433                           Build experimental host targets: disable or
1434                           target1,target2,... (default=disable)
1435   --enable-bindings       Build specific language bindings:
1436                           all,auto,none,{binding-name} (default=auto)
1437   --enable-libffi         Check for the presence of libffi (default is NO)
1438   --enable-ltdl-install   install libltdl
1439
1440 Optional Packages:
1441   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1442   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1443   --with-optimize-option  Select the compiler options to use for optimized
1444                           builds
1445   --with-extra-options    Specify additional options to compile LLVM with
1446   --with-extra-ld-options Specify additional options to link LLVM with
1447   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1448                           is stdlib)
1449   --with-clang-srcdir     Directory to the out-of-tree Clang source
1450   --with-clang-resource-dir
1451                           Relative directory from the Clang binary for
1452                           resource files
1453   --with-c-include-dirs   Colon separated list of directories clang will
1454                           search for headers
1455   --with-gcc-toolchain    Directory where gcc is installed.
1456   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1457   --with-binutils-include Specify path to binutils/include/ containing
1458                           plugin-api.h file for gold plugin.
1459   --with-bug-report-url   Specify the URL where bug reports should be
1460                           submitted (default=http://llvm.org/bugs/)
1461   --with-internal-prefix  Installation directory for internal files
1462   --with-udis86=<path>    Use udis86 external x86 disassembler library
1463   --with-oprofile=<prefix>
1464                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1465   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1466
1467
1468 Some influential environment variables:
1469   CC          C compiler command
1470   CFLAGS      C compiler flags
1471   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1472               nonstandard directory <lib dir>
1473   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1474               you have headers in a nonstandard directory <include dir>
1475   CXX         C++ compiler command
1476   CXXFLAGS    C++ compiler flags
1477   CPP         C preprocessor
1478
1479 Use these variables to override the choices made by `configure' or to help
1480 it to find libraries and programs with nonstandard names/locations.
1481
1482 Report bugs to <http://llvm.org/bugs/>.
1483 _ACEOF
1484 ac_status=$?
1485 fi
1486
1487 if test "$ac_init_help" = "recursive"; then
1488   # If there are subdirs, report their specific --help.
1489   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1490     test -d "$ac_dir" || continue
1491     ac_builddir=.
1492
1493 case "$ac_dir" in
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *)
1496   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1497   # A ".." for each directory in $ac_dir_suffix.
1498   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1499   case $ac_top_builddir_sub in
1500   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502   esac ;;
1503 esac
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1508
1509 case $srcdir in
1510   .)  # We are building in place.
1511     ac_srcdir=.
1512     ac_top_srcdir=$ac_top_builddir_sub
1513     ac_abs_top_srcdir=$ac_pwd ;;
1514   [\\/]* | ?:[\\/]* )  # Absolute name.
1515     ac_srcdir=$srcdir$ac_dir_suffix;
1516     ac_top_srcdir=$srcdir
1517     ac_abs_top_srcdir=$srcdir ;;
1518   *) # Relative name.
1519     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520     ac_top_srcdir=$ac_top_build_prefix$srcdir
1521     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 esac
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525     cd "$ac_dir" || { ac_status=$?; continue; }
1526     # Check for guested configure.
1527     if test -f "$ac_srcdir/configure.gnu"; then
1528       echo &&
1529       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530     elif test -f "$ac_srcdir/configure"; then
1531       echo &&
1532       $SHELL "$ac_srcdir/configure" --help=recursive
1533     else
1534       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535     fi || ac_status=$?
1536     cd "$ac_pwd" || { ac_status=$?; break; }
1537   done
1538 fi
1539
1540 test -n "$ac_init_help" && exit $ac_status
1541 if $ac_init_version; then
1542   cat <<\_ACEOF
1543 LLVM configure 3.3svn
1544 generated by GNU Autoconf 2.60
1545
1546 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1547 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1550
1551 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1552 _ACEOF
1553   exit
1554 fi
1555 cat >config.log <<_ACEOF
1556 This file contains any messages produced by compilers while
1557 running configure, to aid debugging if configure makes a mistake.
1558
1559 It was created by LLVM $as_me 3.3svn, which was
1560 generated by GNU Autoconf 2.60.  Invocation command line was
1561
1562   $ $0 $@
1563
1564 _ACEOF
1565 exec 5>>config.log
1566 {
1567 cat <<_ASUNAME
1568 ## --------- ##
1569 ## Platform. ##
1570 ## --------- ##
1571
1572 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1573 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1574 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1575 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1576 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1577
1578 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1579 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1580
1581 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1582 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1583 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1584 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1585 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1586 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1587 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1588
1589 _ASUNAME
1590
1591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592 for as_dir in $PATH
1593 do
1594   IFS=$as_save_IFS
1595   test -z "$as_dir" && as_dir=.
1596   echo "PATH: $as_dir"
1597 done
1598 IFS=$as_save_IFS
1599
1600 } >&5
1601
1602 cat >&5 <<_ACEOF
1603
1604
1605 ## ----------- ##
1606 ## Core tests. ##
1607 ## ----------- ##
1608
1609 _ACEOF
1610
1611
1612 # Keep a trace of the command line.
1613 # Strip out --no-create and --no-recursion so they do not pile up.
1614 # Strip out --silent because we don't want to record it for future runs.
1615 # Also quote any args containing shell meta-characters.
1616 # Make two passes to allow for proper duplicate-argument suppression.
1617 ac_configure_args=
1618 ac_configure_args0=
1619 ac_configure_args1=
1620 ac_must_keep_next=false
1621 for ac_pass in 1 2
1622 do
1623   for ac_arg
1624   do
1625     case $ac_arg in
1626     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1627     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1628     | -silent | --silent | --silen | --sile | --sil)
1629       continue ;;
1630     *\'*)
1631       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1632     esac
1633     case $ac_pass in
1634     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1635     2)
1636       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1637       if test $ac_must_keep_next = true; then
1638         ac_must_keep_next=false # Got value, back to normal.
1639       else
1640         case $ac_arg in
1641           *=* | --config-cache | -C | -disable-* | --disable-* \
1642           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1643           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1644           | -with-* | --with-* | -without-* | --without-* | --x)
1645             case "$ac_configure_args0 " in
1646               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1647             esac
1648             ;;
1649           -* ) ac_must_keep_next=true ;;
1650         esac
1651       fi
1652       ac_configure_args="$ac_configure_args '$ac_arg'"
1653       ;;
1654     esac
1655   done
1656 done
1657 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1658 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1659
1660 # When interrupted or exit'd, cleanup temporary files, and complete
1661 # config.log.  We remove comments because anyway the quotes in there
1662 # would cause problems or look ugly.
1663 # WARNING: Use '\'' to represent an apostrophe within the trap.
1664 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1665 trap 'exit_status=$?
1666   # Save into config.log some information that might help in debugging.
1667   {
1668     echo
1669
1670     cat <<\_ASBOX
1671 ## ---------------- ##
1672 ## Cache variables. ##
1673 ## ---------------- ##
1674 _ASBOX
1675     echo
1676     # The following way of writing the cache mishandles newlines in values,
1677 (
1678   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1679     eval ac_val=\$$ac_var
1680     case $ac_val in #(
1681     *${as_nl}*)
1682       case $ac_var in #(
1683       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1684 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1685       esac
1686       case $ac_var in #(
1687       _ | IFS | as_nl) ;; #(
1688       *) $as_unset $ac_var ;;
1689       esac ;;
1690     esac
1691   done
1692   (set) 2>&1 |
1693     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1694     *${as_nl}ac_space=\ *)
1695       sed -n \
1696         "s/'\''/'\''\\\\'\'''\''/g;
1697           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1698       ;; #(
1699     *)
1700       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1701       ;;
1702     esac |
1703     sort
1704 )
1705     echo
1706
1707     cat <<\_ASBOX
1708 ## ----------------- ##
1709 ## Output variables. ##
1710 ## ----------------- ##
1711 _ASBOX
1712     echo
1713     for ac_var in $ac_subst_vars
1714     do
1715       eval ac_val=\$$ac_var
1716       case $ac_val in
1717       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1718       esac
1719       echo "$ac_var='\''$ac_val'\''"
1720     done | sort
1721     echo
1722
1723     if test -n "$ac_subst_files"; then
1724       cat <<\_ASBOX
1725 ## ------------------- ##
1726 ## File substitutions. ##
1727 ## ------------------- ##
1728 _ASBOX
1729       echo
1730       for ac_var in $ac_subst_files
1731       do
1732         eval ac_val=\$$ac_var
1733         case $ac_val in
1734         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1735         esac
1736         echo "$ac_var='\''$ac_val'\''"
1737       done | sort
1738       echo
1739     fi
1740
1741     if test -s confdefs.h; then
1742       cat <<\_ASBOX
1743 ## ----------- ##
1744 ## confdefs.h. ##
1745 ## ----------- ##
1746 _ASBOX
1747       echo
1748       cat confdefs.h
1749       echo
1750     fi
1751     test "$ac_signal" != 0 &&
1752       echo "$as_me: caught signal $ac_signal"
1753     echo "$as_me: exit $exit_status"
1754   } >&5
1755   rm -f core *.core core.conftest.* &&
1756     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1757     exit $exit_status
1758 ' 0
1759 for ac_signal in 1 2 13 15; do
1760   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1761 done
1762 ac_signal=0
1763
1764 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1765 rm -f -r conftest* confdefs.h
1766
1767 # Predefined preprocessor variables.
1768
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_NAME "$PACKAGE_NAME"
1771 _ACEOF
1772
1773
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1776 _ACEOF
1777
1778
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1781 _ACEOF
1782
1783
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_STRING "$PACKAGE_STRING"
1786 _ACEOF
1787
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1791 _ACEOF
1792
1793
1794 # Let the site file select an alternate cache file if it wants to.
1795 # Prefer explicitly selected file to automatically selected ones.
1796 if test -n "$CONFIG_SITE"; then
1797   set x "$CONFIG_SITE"
1798 elif test "x$prefix" != xNONE; then
1799   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1800 else
1801   set x "$ac_default_prefix/share/config.site" \
1802         "$ac_default_prefix/etc/config.site"
1803 fi
1804 shift
1805 for ac_site_file
1806 do
1807   if test -r "$ac_site_file"; then
1808     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1809 echo "$as_me: loading site script $ac_site_file" >&6;}
1810     sed 's/^/| /' "$ac_site_file" >&5
1811     . "$ac_site_file"
1812   fi
1813 done
1814
1815 if test -r "$cache_file"; then
1816   # Some versions of bash will fail to source /dev/null (special
1817   # files actually), so we avoid doing that.
1818   if test -f "$cache_file"; then
1819     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1820 echo "$as_me: loading cache $cache_file" >&6;}
1821     case $cache_file in
1822       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1823       *)                      . "./$cache_file";;
1824     esac
1825   fi
1826 else
1827   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1828 echo "$as_me: creating cache $cache_file" >&6;}
1829   >$cache_file
1830 fi
1831
1832 # Check that the precious variables saved in the cache have kept the same
1833 # value.
1834 ac_cache_corrupted=false
1835 for ac_var in $ac_precious_vars; do
1836   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1837   eval ac_new_set=\$ac_env_${ac_var}_set
1838   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1839   eval ac_new_val=\$ac_env_${ac_var}_value
1840   case $ac_old_set,$ac_new_set in
1841     set,)
1842       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1843 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1844       ac_cache_corrupted=: ;;
1845     ,set)
1846       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1847 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1848       ac_cache_corrupted=: ;;
1849     ,);;
1850     *)
1851       if test "x$ac_old_val" != "x$ac_new_val"; then
1852         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1853 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1854         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1855 echo "$as_me:   former value:  $ac_old_val" >&2;}
1856         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1857 echo "$as_me:   current value: $ac_new_val" >&2;}
1858         ac_cache_corrupted=:
1859       fi;;
1860   esac
1861   # Pass precious variables to config.status.
1862   if test "$ac_new_set" = set; then
1863     case $ac_new_val in
1864     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1865     *) ac_arg=$ac_var=$ac_new_val ;;
1866     esac
1867     case " $ac_configure_args " in
1868       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1869       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1870     esac
1871   fi
1872 done
1873 if $ac_cache_corrupted; then
1874   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1875 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1876   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1877 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1878    { (exit 1); exit 1; }; }
1879 fi
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905 ac_ext=c
1906 ac_cpp='$CPP $CPPFLAGS'
1907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1910
1911
1912
1913 cat >>confdefs.h <<\_ACEOF
1914 #define LLVM_VERSION_MAJOR 3
1915 _ACEOF
1916
1917
1918 cat >>confdefs.h <<\_ACEOF
1919 #define LLVM_VERSION_MINOR 3
1920 _ACEOF
1921
1922
1923 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1924
1925
1926
1927
1928
1929
1930
1931 ac_aux_dir=
1932 for ac_dir in autoconf "$srcdir"/autoconf; do
1933   if test -f "$ac_dir/install-sh"; then
1934     ac_aux_dir=$ac_dir
1935     ac_install_sh="$ac_aux_dir/install-sh -c"
1936     break
1937   elif test -f "$ac_dir/install.sh"; then
1938     ac_aux_dir=$ac_dir
1939     ac_install_sh="$ac_aux_dir/install.sh -c"
1940     break
1941   elif test -f "$ac_dir/shtool"; then
1942     ac_aux_dir=$ac_dir
1943     ac_install_sh="$ac_aux_dir/shtool install -c"
1944     break
1945   fi
1946 done
1947 if test -z "$ac_aux_dir"; then
1948   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1949 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1950    { (exit 1); exit 1; }; }
1951 fi
1952
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1960
1961
1962
1963 if test ${srcdir} != "." ; then
1964   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1965     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1966 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1967    { (exit 1); exit 1; }; }
1968   fi
1969 fi
1970
1971 ac_ext=c
1972 ac_cpp='$CPP $CPPFLAGS'
1973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1976 if test -n "$ac_tool_prefix"; then
1977   for ac_prog in clang llvm-gcc gcc
1978   do
1979     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1983 if test "${ac_cv_prog_CC+set}" = set; then
1984   echo $ECHO_N "(cached) $ECHO_C" >&6
1985 else
1986   if test -n "$CC"; then
1987   ac_cv_prog_CC="$CC" # Let the user override the test.
1988 else
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 for as_dir in $PATH
1991 do
1992   IFS=$as_save_IFS
1993   test -z "$as_dir" && as_dir=.
1994   for ac_exec_ext in '' $ac_executable_extensions; do
1995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1996     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998     break 2
1999   fi
2000 done
2001 done
2002 IFS=$as_save_IFS
2003
2004 fi
2005 fi
2006 CC=$ac_cv_prog_CC
2007 if test -n "$CC"; then
2008   { echo "$as_me:$LINENO: result: $CC" >&5
2009 echo "${ECHO_T}$CC" >&6; }
2010 else
2011   { echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6; }
2013 fi
2014
2015
2016     test -n "$CC" && break
2017   done
2018 fi
2019 if test -z "$CC"; then
2020   ac_ct_CC=$CC
2021   for ac_prog in clang llvm-gcc gcc
2022 do
2023   # Extract the first word of "$ac_prog", so it can be a program name with args.
2024 set dummy $ac_prog; ac_word=$2
2025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2028   echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030   if test -n "$ac_ct_CC"; then
2031   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2032 else
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2035 do
2036   IFS=$as_save_IFS
2037   test -z "$as_dir" && as_dir=.
2038   for ac_exec_ext in '' $ac_executable_extensions; do
2039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2040     ac_cv_prog_ac_ct_CC="$ac_prog"
2041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042     break 2
2043   fi
2044 done
2045 done
2046 IFS=$as_save_IFS
2047
2048 fi
2049 fi
2050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2051 if test -n "$ac_ct_CC"; then
2052   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2053 echo "${ECHO_T}$ac_ct_CC" >&6; }
2054 else
2055   { echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6; }
2057 fi
2058
2059
2060   test -n "$ac_ct_CC" && break
2061 done
2062
2063   if test "x$ac_ct_CC" = x; then
2064     CC=""
2065   else
2066     case $cross_compiling:$ac_tool_warned in
2067 yes:)
2068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2069 whose name does not start with the host triplet.  If you think this
2070 configuration is useful to you, please write to autoconf@gnu.org." >&5
2071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2072 whose name does not start with the host triplet.  If you think this
2073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2074 ac_tool_warned=yes ;;
2075 esac
2076     CC=$ac_ct_CC
2077   fi
2078 fi
2079
2080
2081 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2082 See \`config.log' for more details." >&5
2083 echo "$as_me: error: no acceptable C compiler found in \$PATH
2084 See \`config.log' for more details." >&2;}
2085    { (exit 1); exit 1; }; }
2086
2087 # Provide some information about the compiler.
2088 echo "$as_me:$LINENO: checking for C compiler version" >&5
2089 ac_compiler=`set X $ac_compile; echo $2`
2090 { (ac_try="$ac_compiler --version >&5"
2091 case "(($ac_try" in
2092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093   *) ac_try_echo=$ac_try;;
2094 esac
2095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096   (eval "$ac_compiler --version >&5") 2>&5
2097   ac_status=$?
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); }
2100 { (ac_try="$ac_compiler -v >&5"
2101 case "(($ac_try" in
2102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103   *) ac_try_echo=$ac_try;;
2104 esac
2105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2106   (eval "$ac_compiler -v >&5") 2>&5
2107   ac_status=$?
2108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109   (exit $ac_status); }
2110 { (ac_try="$ac_compiler -V >&5"
2111 case "(($ac_try" in
2112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113   *) ac_try_echo=$ac_try;;
2114 esac
2115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2116   (eval "$ac_compiler -V >&5") 2>&5
2117   ac_status=$?
2118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119   (exit $ac_status); }
2120
2121 cat >conftest.$ac_ext <<_ACEOF
2122 /* confdefs.h.  */
2123 _ACEOF
2124 cat confdefs.h >>conftest.$ac_ext
2125 cat >>conftest.$ac_ext <<_ACEOF
2126 /* end confdefs.h.  */
2127
2128 int
2129 main ()
2130 {
2131
2132   ;
2133   return 0;
2134 }
2135 _ACEOF
2136 ac_clean_files_save=$ac_clean_files
2137 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2138 # Try to create an executable without -o first, disregard a.out.
2139 # It will help us diagnose broken compilers, and finding out an intuition
2140 # of exeext.
2141 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2142 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2143 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2144 #
2145 # List of possible output files, starting from the most likely.
2146 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2147 # only as a last resort.  b.out is created by i960 compilers.
2148 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2149 #
2150 # The IRIX 6 linker writes into existing files which may not be
2151 # executable, retaining their permissions.  Remove them first so a
2152 # subsequent execution test works.
2153 ac_rmfiles=
2154 for ac_file in $ac_files
2155 do
2156   case $ac_file in
2157     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2158     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2159   esac
2160 done
2161 rm -f $ac_rmfiles
2162
2163 if { (ac_try="$ac_link_default"
2164 case "(($ac_try" in
2165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2166   *) ac_try_echo=$ac_try;;
2167 esac
2168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2169   (eval "$ac_link_default") 2>&5
2170   ac_status=$?
2171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172   (exit $ac_status); }; then
2173   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2174 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2175 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2176 # so that the user can short-circuit this test for compilers unknown to
2177 # Autoconf.
2178 for ac_file in $ac_files
2179 do
2180   test -f "$ac_file" || continue
2181   case $ac_file in
2182     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2183         ;;
2184     [ab].out )
2185         # We found the default executable, but exeext='' is most
2186         # certainly right.
2187         break;;
2188     *.* )
2189         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2190         then :; else
2191            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192         fi
2193         # We set ac_cv_exeext here because the later test for it is not
2194         # safe: cross compilers may not add the suffix if given an `-o'
2195         # argument, so we may need to know it at that point already.
2196         # Even if this section looks crufty: it has the advantage of
2197         # actually working.
2198         break;;
2199     * )
2200         break;;
2201   esac
2202 done
2203 test "$ac_cv_exeext" = no && ac_cv_exeext=
2204
2205 else
2206   echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2208
2209 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&5
2211 echo "$as_me: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&2;}
2213    { (exit 77); exit 77; }; }
2214 fi
2215
2216 ac_exeext=$ac_cv_exeext
2217 { echo "$as_me:$LINENO: result: $ac_file" >&5
2218 echo "${ECHO_T}$ac_file" >&6; }
2219
2220 # Check that the compiler produces executables we can run.  If not, either
2221 # the compiler is broken, or we cross compile.
2222 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2223 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2224 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2225 # If not cross compiling, check that we can run a simple program.
2226 if test "$cross_compiling" != yes; then
2227   if { ac_try='./$ac_file'
2228   { (case "(($ac_try" in
2229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230   *) ac_try_echo=$ac_try;;
2231 esac
2232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2233   (eval "$ac_try") 2>&5
2234   ac_status=$?
2235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236   (exit $ac_status); }; }; then
2237     cross_compiling=no
2238   else
2239     if test "$cross_compiling" = maybe; then
2240         cross_compiling=yes
2241     else
2242         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2243 If you meant to cross compile, use \`--host'.
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&2;}
2248    { (exit 1); exit 1; }; }
2249     fi
2250   fi
2251 fi
2252 { echo "$as_me:$LINENO: result: yes" >&5
2253 echo "${ECHO_T}yes" >&6; }
2254
2255 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2256 ac_clean_files=$ac_clean_files_save
2257 # Check that the compiler produces executables we can run.  If not, either
2258 # the compiler is broken, or we cross compile.
2259 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2260 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2261 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2262 echo "${ECHO_T}$cross_compiling" >&6; }
2263
2264 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2265 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2266 if { (ac_try="$ac_link"
2267 case "(($ac_try" in
2268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2269   *) ac_try_echo=$ac_try;;
2270 esac
2271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2272   (eval "$ac_link") 2>&5
2273   ac_status=$?
2274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275   (exit $ac_status); }; then
2276   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2277 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2278 # work properly (i.e., refer to `conftest.exe'), while it won't with
2279 # `rm'.
2280 for ac_file in conftest.exe conftest conftest.*; do
2281   test -f "$ac_file" || continue
2282   case $ac_file in
2283     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2284     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2285           break;;
2286     * ) break;;
2287   esac
2288 done
2289 else
2290   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2291 See \`config.log' for more details." >&5
2292 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2293 See \`config.log' for more details." >&2;}
2294    { (exit 1); exit 1; }; }
2295 fi
2296
2297 rm -f conftest$ac_cv_exeext
2298 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2299 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2300
2301 rm -f conftest.$ac_ext
2302 EXEEXT=$ac_cv_exeext
2303 ac_exeext=$EXEEXT
2304 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2305 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2306 if test "${ac_cv_objext+set}" = set; then
2307   echo $ECHO_N "(cached) $ECHO_C" >&6
2308 else
2309   cat >conftest.$ac_ext <<_ACEOF
2310 /* confdefs.h.  */
2311 _ACEOF
2312 cat confdefs.h >>conftest.$ac_ext
2313 cat >>conftest.$ac_ext <<_ACEOF
2314 /* end confdefs.h.  */
2315
2316 int
2317 main ()
2318 {
2319
2320   ;
2321   return 0;
2322 }
2323 _ACEOF
2324 rm -f conftest.o conftest.obj
2325 if { (ac_try="$ac_compile"
2326 case "(($ac_try" in
2327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328   *) ac_try_echo=$ac_try;;
2329 esac
2330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2331   (eval "$ac_compile") 2>&5
2332   ac_status=$?
2333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334   (exit $ac_status); }; then
2335   for ac_file in conftest.o conftest.obj conftest.*; do
2336   test -f "$ac_file" || continue;
2337   case $ac_file in
2338     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2339     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2340        break;;
2341   esac
2342 done
2343 else
2344   echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2346
2347 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2348 See \`config.log' for more details." >&5
2349 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2350 See \`config.log' for more details." >&2;}
2351    { (exit 1); exit 1; }; }
2352 fi
2353
2354 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2355 fi
2356 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2357 echo "${ECHO_T}$ac_cv_objext" >&6; }
2358 OBJEXT=$ac_cv_objext
2359 ac_objext=$OBJEXT
2360 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2361 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2362 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2363   echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365   cat >conftest.$ac_ext <<_ACEOF
2366 /* confdefs.h.  */
2367 _ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h.  */
2371
2372 int
2373 main ()
2374 {
2375 #ifndef __GNUC__
2376        choke me
2377 #endif
2378
2379   ;
2380   return 0;
2381 }
2382 _ACEOF
2383 rm -f conftest.$ac_objext
2384 if { (ac_try="$ac_compile"
2385 case "(($ac_try" in
2386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387   *) ac_try_echo=$ac_try;;
2388 esac
2389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2390   (eval "$ac_compile") 2>conftest.er1
2391   ac_status=$?
2392   grep -v '^ *+' conftest.er1 >conftest.err
2393   rm -f conftest.er1
2394   cat conftest.err >&5
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); } &&
2397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
2404   ac_status=$?
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); }; } &&
2407          { ac_try='test -s conftest.$ac_objext'
2408   { (case "(($ac_try" in
2409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410   *) ac_try_echo=$ac_try;;
2411 esac
2412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413   (eval "$ac_try") 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }; }; then
2417   ac_compiler_gnu=yes
2418 else
2419   echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2421
2422         ac_compiler_gnu=no
2423 fi
2424
2425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2427
2428 fi
2429 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2430 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2431 GCC=`test $ac_compiler_gnu = yes && echo yes`
2432 ac_test_CFLAGS=${CFLAGS+set}
2433 ac_save_CFLAGS=$CFLAGS
2434 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2435 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_cc_g+set}" = set; then
2437   echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439   ac_save_c_werror_flag=$ac_c_werror_flag
2440    ac_c_werror_flag=yes
2441    ac_cv_prog_cc_g=no
2442    CFLAGS="-g"
2443    cat >conftest.$ac_ext <<_ACEOF
2444 /* confdefs.h.  */
2445 _ACEOF
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h.  */
2449
2450 int
2451 main ()
2452 {
2453
2454   ;
2455   return 0;
2456 }
2457 _ACEOF
2458 rm -f conftest.$ac_objext
2459 if { (ac_try="$ac_compile"
2460 case "(($ac_try" in
2461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462   *) ac_try_echo=$ac_try;;
2463 esac
2464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465   (eval "$ac_compile") 2>conftest.er1
2466   ac_status=$?
2467   grep -v '^ *+' conftest.er1 >conftest.err
2468   rm -f conftest.er1
2469   cat conftest.err >&5
2470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471   (exit $ac_status); } &&
2472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); }; } &&
2482          { ac_try='test -s conftest.$ac_objext'
2483   { (case "(($ac_try" in
2484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485   *) ac_try_echo=$ac_try;;
2486 esac
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488   (eval "$ac_try") 2>&5
2489   ac_status=$?
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); }; }; then
2492   ac_cv_prog_cc_g=yes
2493 else
2494   echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2496
2497         CFLAGS=""
2498       cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h.  */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h.  */
2504
2505 int
2506 main ()
2507 {
2508
2509   ;
2510   return 0;
2511 }
2512 _ACEOF
2513 rm -f conftest.$ac_objext
2514 if { (ac_try="$ac_compile"
2515 case "(($ac_try" in
2516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517   *) ac_try_echo=$ac_try;;
2518 esac
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520   (eval "$ac_compile") 2>conftest.er1
2521   ac_status=$?
2522   grep -v '^ *+' conftest.er1 >conftest.err
2523   rm -f conftest.er1
2524   cat conftest.err >&5
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); } &&
2527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); }; } &&
2537          { ac_try='test -s conftest.$ac_objext'
2538   { (case "(($ac_try" in
2539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540   *) ac_try_echo=$ac_try;;
2541 esac
2542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543   (eval "$ac_try") 2>&5
2544   ac_status=$?
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); }; }; then
2547   :
2548 else
2549   echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2551
2552         ac_c_werror_flag=$ac_save_c_werror_flag
2553          CFLAGS="-g"
2554          cat >conftest.$ac_ext <<_ACEOF
2555 /* confdefs.h.  */
2556 _ACEOF
2557 cat confdefs.h >>conftest.$ac_ext
2558 cat >>conftest.$ac_ext <<_ACEOF
2559 /* end confdefs.h.  */
2560
2561 int
2562 main ()
2563 {
2564
2565   ;
2566   return 0;
2567 }
2568 _ACEOF
2569 rm -f conftest.$ac_objext
2570 if { (ac_try="$ac_compile"
2571 case "(($ac_try" in
2572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573   *) ac_try_echo=$ac_try;;
2574 esac
2575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576   (eval "$ac_compile") 2>conftest.er1
2577   ac_status=$?
2578   grep -v '^ *+' conftest.er1 >conftest.err
2579   rm -f conftest.er1
2580   cat conftest.err >&5
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); } &&
2583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); }; } &&
2593          { ac_try='test -s conftest.$ac_objext'
2594   { (case "(($ac_try" in
2595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596   *) ac_try_echo=$ac_try;;
2597 esac
2598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599   (eval "$ac_try") 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; }; then
2603   ac_cv_prog_cc_g=yes
2604 else
2605   echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2607
2608
2609 fi
2610
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 fi
2613
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 fi
2616
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618    ac_c_werror_flag=$ac_save_c_werror_flag
2619 fi
2620 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2621 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2622 if test "$ac_test_CFLAGS" = set; then
2623   CFLAGS=$ac_save_CFLAGS
2624 elif test $ac_cv_prog_cc_g = yes; then
2625   if test "$GCC" = yes; then
2626     CFLAGS="-g -O2"
2627   else
2628     CFLAGS="-g"
2629   fi
2630 else
2631   if test "$GCC" = yes; then
2632     CFLAGS="-O2"
2633   else
2634     CFLAGS=
2635   fi
2636 fi
2637 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2638 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2639 if test "${ac_cv_prog_cc_c89+set}" = set; then
2640   echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642   ac_cv_prog_cc_c89=no
2643 ac_save_CC=$CC
2644 cat >conftest.$ac_ext <<_ACEOF
2645 /* confdefs.h.  */
2646 _ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h.  */
2650 #include <stdarg.h>
2651 #include <stdio.h>
2652 #include <sys/types.h>
2653 #include <sys/stat.h>
2654 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2655 struct buf { int x; };
2656 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2657 static char *e (p, i)
2658      char **p;
2659      int i;
2660 {
2661   return p[i];
2662 }
2663 static char *f (char * (*g) (char **, int), char **p, ...)
2664 {
2665   char *s;
2666   va_list v;
2667   va_start (v,p);
2668   s = g (p, va_arg (v,int));
2669   va_end (v);
2670   return s;
2671 }
2672
2673 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2674    function prototypes and stuff, but not '\xHH' hex character constants.
2675    These don't provoke an error unfortunately, instead are silently treated
2676    as 'x'.  The following induces an error, until -std is added to get
2677    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2678    array size at least.  It's necessary to write '\x00'==0 to get something
2679    that's true only with -std.  */
2680 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2681
2682 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2683    inside strings and character constants.  */
2684 #define FOO(x) 'x'
2685 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2686
2687 int test (int i, double x);
2688 struct s1 {int (*f) (int a);};
2689 struct s2 {int (*f) (double a);};
2690 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2691 int argc;
2692 char **argv;
2693 int
2694 main ()
2695 {
2696 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2697   ;
2698   return 0;
2699 }
2700 _ACEOF
2701 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2702         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2703 do
2704   CC="$ac_save_CC $ac_arg"
2705   rm -f conftest.$ac_objext
2706 if { (ac_try="$ac_compile"
2707 case "(($ac_try" in
2708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709   *) ac_try_echo=$ac_try;;
2710 esac
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712   (eval "$ac_compile") 2>conftest.er1
2713   ac_status=$?
2714   grep -v '^ *+' conftest.er1 >conftest.err
2715   rm -f conftest.er1
2716   cat conftest.err >&5
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); } &&
2719          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
2726   ac_status=$?
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); }; } &&
2729          { ac_try='test -s conftest.$ac_objext'
2730   { (case "(($ac_try" in
2731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732   *) ac_try_echo=$ac_try;;
2733 esac
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735   (eval "$ac_try") 2>&5
2736   ac_status=$?
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); }; }; then
2739   ac_cv_prog_cc_c89=$ac_arg
2740 else
2741   echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2743
2744
2745 fi
2746
2747 rm -f core conftest.err conftest.$ac_objext
2748   test "x$ac_cv_prog_cc_c89" != "xno" && break
2749 done
2750 rm -f conftest.$ac_ext
2751 CC=$ac_save_CC
2752
2753 fi
2754 # AC_CACHE_VAL
2755 case "x$ac_cv_prog_cc_c89" in
2756   x)
2757     { echo "$as_me:$LINENO: result: none needed" >&5
2758 echo "${ECHO_T}none needed" >&6; } ;;
2759   xno)
2760     { echo "$as_me:$LINENO: result: unsupported" >&5
2761 echo "${ECHO_T}unsupported" >&6; } ;;
2762   *)
2763     CC="$CC $ac_cv_prog_cc_c89"
2764     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2765 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2766 esac
2767
2768
2769 ac_ext=c
2770 ac_cpp='$CPP $CPPFLAGS'
2771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774
2775 ac_ext=cpp
2776 ac_cpp='$CXXCPP $CPPFLAGS'
2777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2780 if test -z "$CXX"; then
2781   if test -n "$CCC"; then
2782     CXX=$CCC
2783   else
2784     if test -n "$ac_tool_prefix"; then
2785   for ac_prog in clang++ llvm-g++ g++
2786   do
2787     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2788 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2791 if test "${ac_cv_prog_CXX+set}" = set; then
2792   echo $ECHO_N "(cached) $ECHO_C" >&6
2793 else
2794   if test -n "$CXX"; then
2795   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800   IFS=$as_save_IFS
2801   test -z "$as_dir" && as_dir=.
2802   for ac_exec_ext in '' $ac_executable_extensions; do
2803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2804     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806     break 2
2807   fi
2808 done
2809 done
2810 IFS=$as_save_IFS
2811
2812 fi
2813 fi
2814 CXX=$ac_cv_prog_CXX
2815 if test -n "$CXX"; then
2816   { echo "$as_me:$LINENO: result: $CXX" >&5
2817 echo "${ECHO_T}$CXX" >&6; }
2818 else
2819   { echo "$as_me:$LINENO: result: no" >&5
2820 echo "${ECHO_T}no" >&6; }
2821 fi
2822
2823
2824     test -n "$CXX" && break
2825   done
2826 fi
2827 if test -z "$CXX"; then
2828   ac_ct_CXX=$CXX
2829   for ac_prog in clang++ llvm-g++ g++
2830 do
2831   # Extract the first word of "$ac_prog", so it can be a program name with args.
2832 set dummy $ac_prog; ac_word=$2
2833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2835 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2836   echo $ECHO_N "(cached) $ECHO_C" >&6
2837 else
2838   if test -n "$ac_ct_CXX"; then
2839   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844   IFS=$as_save_IFS
2845   test -z "$as_dir" && as_dir=.
2846   for ac_exec_ext in '' $ac_executable_extensions; do
2847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2848     ac_cv_prog_ac_ct_CXX="$ac_prog"
2849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850     break 2
2851   fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2855
2856 fi
2857 fi
2858 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2859 if test -n "$ac_ct_CXX"; then
2860   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2861 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2862 else
2863   { echo "$as_me:$LINENO: result: no" >&5
2864 echo "${ECHO_T}no" >&6; }
2865 fi
2866
2867
2868   test -n "$ac_ct_CXX" && break
2869 done
2870
2871   if test "x$ac_ct_CXX" = x; then
2872     CXX="g++"
2873   else
2874     case $cross_compiling:$ac_tool_warned in
2875 yes:)
2876 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2877 whose name does not start with the host triplet.  If you think this
2878 configuration is useful to you, please write to autoconf@gnu.org." >&5
2879 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2880 whose name does not start with the host triplet.  If you think this
2881 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2882 ac_tool_warned=yes ;;
2883 esac
2884     CXX=$ac_ct_CXX
2885   fi
2886 fi
2887
2888   fi
2889 fi
2890 # Provide some information about the compiler.
2891 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2892 ac_compiler=`set X $ac_compile; echo $2`
2893 { (ac_try="$ac_compiler --version >&5"
2894 case "(($ac_try" in
2895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896   *) ac_try_echo=$ac_try;;
2897 esac
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899   (eval "$ac_compiler --version >&5") 2>&5
2900   ac_status=$?
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); }
2903 { (ac_try="$ac_compiler -v >&5"
2904 case "(($ac_try" in
2905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906   *) ac_try_echo=$ac_try;;
2907 esac
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909   (eval "$ac_compiler -v >&5") 2>&5
2910   ac_status=$?
2911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912   (exit $ac_status); }
2913 { (ac_try="$ac_compiler -V >&5"
2914 case "(($ac_try" in
2915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916   *) ac_try_echo=$ac_try;;
2917 esac
2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919   (eval "$ac_compiler -V >&5") 2>&5
2920   ac_status=$?
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); }
2923
2924 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2925 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2926 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2927   echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929   cat >conftest.$ac_ext <<_ACEOF
2930 /* confdefs.h.  */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h.  */
2935
2936 int
2937 main ()
2938 {
2939 #ifndef __GNUC__
2940        choke me
2941 #endif
2942
2943   ;
2944   return 0;
2945 }
2946 _ACEOF
2947 rm -f conftest.$ac_objext
2948 if { (ac_try="$ac_compile"
2949 case "(($ac_try" in
2950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951   *) ac_try_echo=$ac_try;;
2952 esac
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954   (eval "$ac_compile") 2>conftest.er1
2955   ac_status=$?
2956   grep -v '^ *+' conftest.er1 >conftest.err
2957   rm -f conftest.er1
2958   cat conftest.err >&5
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); } &&
2961          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
2968   ac_status=$?
2969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970   (exit $ac_status); }; } &&
2971          { ac_try='test -s conftest.$ac_objext'
2972   { (case "(($ac_try" in
2973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974   *) ac_try_echo=$ac_try;;
2975 esac
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977   (eval "$ac_try") 2>&5
2978   ac_status=$?
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); }; }; then
2981   ac_compiler_gnu=yes
2982 else
2983   echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2985
2986         ac_compiler_gnu=no
2987 fi
2988
2989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2990 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2991
2992 fi
2993 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2994 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2995 GXX=`test $ac_compiler_gnu = yes && echo yes`
2996 ac_test_CXXFLAGS=${CXXFLAGS+set}
2997 ac_save_CXXFLAGS=$CXXFLAGS
2998 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2999 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3000 if test "${ac_cv_prog_cxx_g+set}" = set; then
3001   echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3004    ac_cxx_werror_flag=yes
3005    ac_cv_prog_cxx_g=no
3006    CXXFLAGS="-g"
3007    cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h.  */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h.  */
3013
3014 int
3015 main ()
3016 {
3017
3018   ;
3019   return 0;
3020 }
3021 _ACEOF
3022 rm -f conftest.$ac_objext
3023 if { (ac_try="$ac_compile"
3024 case "(($ac_try" in
3025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026   *) ac_try_echo=$ac_try;;
3027 esac
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029   (eval "$ac_compile") 2>conftest.er1
3030   ac_status=$?
3031   grep -v '^ *+' conftest.er1 >conftest.err
3032   rm -f conftest.er1
3033   cat conftest.err >&5
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); } &&
3036          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
3043   ac_status=$?
3044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045   (exit $ac_status); }; } &&
3046          { ac_try='test -s conftest.$ac_objext'
3047   { (case "(($ac_try" in
3048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049   *) ac_try_echo=$ac_try;;
3050 esac
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052   (eval "$ac_try") 2>&5
3053   ac_status=$?
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); }; }; then
3056   ac_cv_prog_cxx_g=yes
3057 else
3058   echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061         CXXFLAGS=""
3062       cat >conftest.$ac_ext <<_ACEOF
3063 /* confdefs.h.  */
3064 _ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h.  */
3068
3069 int
3070 main ()
3071 {
3072
3073   ;
3074   return 0;
3075 }
3076 _ACEOF
3077 rm -f conftest.$ac_objext
3078 if { (ac_try="$ac_compile"
3079 case "(($ac_try" in
3080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081   *) ac_try_echo=$ac_try;;
3082 esac
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084   (eval "$ac_compile") 2>conftest.er1
3085   ac_status=$?
3086   grep -v '^ *+' conftest.er1 >conftest.err
3087   rm -f conftest.er1
3088   cat conftest.err >&5
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); } &&
3091          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
3098   ac_status=$?
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); }; } &&
3101          { ac_try='test -s conftest.$ac_objext'
3102   { (case "(($ac_try" in
3103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104   *) ac_try_echo=$ac_try;;
3105 esac
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107   (eval "$ac_try") 2>&5
3108   ac_status=$?
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); }; }; then
3111   :
3112 else
3113   echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3117          CXXFLAGS="-g"
3118          cat >conftest.$ac_ext <<_ACEOF
3119 /* confdefs.h.  */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h.  */
3124
3125 int
3126 main ()
3127 {
3128
3129   ;
3130   return 0;
3131 }
3132 _ACEOF
3133 rm -f conftest.$ac_objext
3134 if { (ac_try="$ac_compile"
3135 case "(($ac_try" in
3136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137   *) ac_try_echo=$ac_try;;
3138 esac
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140   (eval "$ac_compile") 2>conftest.er1
3141   ac_status=$?
3142   grep -v '^ *+' conftest.er1 >conftest.err
3143   rm -f conftest.er1
3144   cat conftest.err >&5
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); } &&
3147          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
3154   ac_status=$?
3155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); }; } &&
3157          { ac_try='test -s conftest.$ac_objext'
3158   { (case "(($ac_try" in
3159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160   *) ac_try_echo=$ac_try;;
3161 esac
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163   (eval "$ac_try") 2>&5
3164   ac_status=$?
3165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166   (exit $ac_status); }; }; then
3167   ac_cv_prog_cxx_g=yes
3168 else
3169   echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3171
3172
3173 fi
3174
3175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176 fi
3177
3178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179 fi
3180
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3183 fi
3184 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3185 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3186 if test "$ac_test_CXXFLAGS" = set; then
3187   CXXFLAGS=$ac_save_CXXFLAGS
3188 elif test $ac_cv_prog_cxx_g = yes; then
3189   if test "$GXX" = yes; then
3190     CXXFLAGS="-g -O2"
3191   else
3192     CXXFLAGS="-g"
3193   fi
3194 else
3195   if test "$GXX" = yes; then
3196     CXXFLAGS="-O2"
3197   else
3198     CXXFLAGS=
3199   fi
3200 fi
3201 ac_ext=c
3202 ac_cpp='$CPP $CPPFLAGS'
3203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206
3207 ac_ext=c
3208 ac_cpp='$CPP $CPPFLAGS'
3209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3212 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3213 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3214 # On Suns, sometimes $CPP names a directory.
3215 if test -n "$CPP" && test -d "$CPP"; then
3216   CPP=
3217 fi
3218 if test -z "$CPP"; then
3219   if test "${ac_cv_prog_CPP+set}" = set; then
3220   echo $ECHO_N "(cached) $ECHO_C" >&6
3221 else
3222       # Double quotes because CPP needs to be expanded
3223     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3224     do
3225       ac_preproc_ok=false
3226 for ac_c_preproc_warn_flag in '' yes
3227 do
3228   # Use a header file that comes with gcc, so configuring glibc
3229   # with a fresh cross-compiler works.
3230   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3231   # <limits.h> exists even on freestanding compilers.
3232   # On the NeXT, cc -E runs the code through the compiler's parser,
3233   # not just through cpp. "Syntax error" is here to catch this case.
3234   cat >conftest.$ac_ext <<_ACEOF
3235 /* confdefs.h.  */
3236 _ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h.  */
3240 #ifdef __STDC__
3241 # include <limits.h>
3242 #else
3243 # include <assert.h>
3244 #endif
3245                      Syntax error
3246 _ACEOF
3247 if { (ac_try="$ac_cpp conftest.$ac_ext"
3248 case "(($ac_try" in
3249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250   *) ac_try_echo=$ac_try;;
3251 esac
3252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3253   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3254   ac_status=$?
3255   grep -v '^ *+' conftest.er1 >conftest.err
3256   rm -f conftest.er1
3257   cat conftest.err >&5
3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); } >/dev/null; then
3260   if test -s conftest.err; then
3261     ac_cpp_err=$ac_c_preproc_warn_flag
3262     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3263   else
3264     ac_cpp_err=
3265   fi
3266 else
3267   ac_cpp_err=yes
3268 fi
3269 if test -z "$ac_cpp_err"; then
3270   :
3271 else
3272   echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3274
3275   # Broken: fails on valid input.
3276 continue
3277 fi
3278
3279 rm -f conftest.err conftest.$ac_ext
3280
3281   # OK, works on sane cases.  Now check whether nonexistent headers
3282   # can be detected and how.
3283   cat >conftest.$ac_ext <<_ACEOF
3284 /* confdefs.h.  */
3285 _ACEOF
3286 cat confdefs.h >>conftest.$ac_ext
3287 cat >>conftest.$ac_ext <<_ACEOF
3288 /* end confdefs.h.  */
3289 #include <ac_nonexistent.h>
3290 _ACEOF
3291 if { (ac_try="$ac_cpp conftest.$ac_ext"
3292 case "(($ac_try" in
3293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294   *) ac_try_echo=$ac_try;;
3295 esac
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3298   ac_status=$?
3299   grep -v '^ *+' conftest.er1 >conftest.err
3300   rm -f conftest.er1
3301   cat conftest.err >&5
3302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303   (exit $ac_status); } >/dev/null; then
3304   if test -s conftest.err; then
3305     ac_cpp_err=$ac_c_preproc_warn_flag
3306     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3307   else
3308     ac_cpp_err=
3309   fi
3310 else
3311   ac_cpp_err=yes
3312 fi
3313 if test -z "$ac_cpp_err"; then
3314   # Broken: success on invalid input.
3315 continue
3316 else
3317   echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320   # Passes both tests.
3321 ac_preproc_ok=:
3322 break
3323 fi
3324
3325 rm -f conftest.err conftest.$ac_ext
3326
3327 done
3328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3329 rm -f conftest.err conftest.$ac_ext
3330 if $ac_preproc_ok; then
3331   break
3332 fi
3333
3334     done
3335     ac_cv_prog_CPP=$CPP
3336
3337 fi
3338   CPP=$ac_cv_prog_CPP
3339 else
3340   ac_cv_prog_CPP=$CPP
3341 fi
3342 { echo "$as_me:$LINENO: result: $CPP" >&5
3343 echo "${ECHO_T}$CPP" >&6; }
3344 ac_preproc_ok=false
3345 for ac_c_preproc_warn_flag in '' yes
3346 do
3347   # Use a header file that comes with gcc, so configuring glibc
3348   # with a fresh cross-compiler works.
3349   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3350   # <limits.h> exists even on freestanding compilers.
3351   # On the NeXT, cc -E runs the code through the compiler's parser,
3352   # not just through cpp. "Syntax error" is here to catch this case.
3353   cat >conftest.$ac_ext <<_ACEOF
3354 /* confdefs.h.  */
3355 _ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h.  */
3359 #ifdef __STDC__
3360 # include <limits.h>
3361 #else
3362 # include <assert.h>
3363 #endif
3364                      Syntax error
3365 _ACEOF
3366 if { (ac_try="$ac_cpp conftest.$ac_ext"
3367 case "(($ac_try" in
3368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369   *) ac_try_echo=$ac_try;;
3370 esac
3371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3372   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3373   ac_status=$?
3374   grep -v '^ *+' conftest.er1 >conftest.err
3375   rm -f conftest.er1
3376   cat conftest.err >&5
3377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378   (exit $ac_status); } >/dev/null; then
3379   if test -s conftest.err; then
3380     ac_cpp_err=$ac_c_preproc_warn_flag
3381     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3382   else
3383     ac_cpp_err=
3384   fi
3385 else
3386   ac_cpp_err=yes
3387 fi
3388 if test -z "$ac_cpp_err"; then
3389   :
3390 else
3391   echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3393
3394   # Broken: fails on valid input.
3395 continue
3396 fi
3397
3398 rm -f conftest.err conftest.$ac_ext
3399
3400   # OK, works on sane cases.  Now check whether nonexistent headers
3401   # can be detected and how.
3402   cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h.  */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h.  */
3408 #include <ac_nonexistent.h>
3409 _ACEOF
3410 if { (ac_try="$ac_cpp conftest.$ac_ext"
3411 case "(($ac_try" in
3412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413   *) ac_try_echo=$ac_try;;
3414 esac
3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3417   ac_status=$?
3418   grep -v '^ *+' conftest.er1 >conftest.err
3419   rm -f conftest.er1
3420   cat conftest.err >&5
3421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422   (exit $ac_status); } >/dev/null; then
3423   if test -s conftest.err; then
3424     ac_cpp_err=$ac_c_preproc_warn_flag
3425     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3426   else
3427     ac_cpp_err=
3428   fi
3429 else
3430   ac_cpp_err=yes
3431 fi
3432 if test -z "$ac_cpp_err"; then
3433   # Broken: success on invalid input.
3434 continue
3435 else
3436   echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3438
3439   # Passes both tests.
3440 ac_preproc_ok=:
3441 break
3442 fi
3443
3444 rm -f conftest.err conftest.$ac_ext
3445
3446 done
3447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3448 rm -f conftest.err conftest.$ac_ext
3449 if $ac_preproc_ok; then
3450   :
3451 else
3452   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3453 See \`config.log' for more details." >&5
3454 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3455 See \`config.log' for more details." >&2;}
3456    { (exit 1); exit 1; }; }
3457 fi
3458
3459 ac_ext=c
3460 ac_cpp='$CPP $CPPFLAGS'
3461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464
3465
3466
3467
3468 if test -d ${srcdir}/projects/llvm-gcc ; then
3469   subdirs="$subdirs projects/llvm-gcc"
3470
3471 fi
3472
3473 if test -d ${srcdir}/projects/test-suite ; then
3474   subdirs="$subdirs projects/test-suite"
3475
3476 fi
3477
3478 if test -d ${srcdir}/projects/llvm-test ; then
3479   subdirs="$subdirs projects/llvm-test"
3480
3481 fi
3482
3483 if test -d ${srcdir}/projects/poolalloc ; then
3484   subdirs="$subdirs projects/poolalloc"
3485
3486 fi
3487
3488 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3489   subdirs="$subdirs projects/llvm-poolalloc"
3490
3491 fi
3492
3493 for i in `ls ${srcdir}/projects`
3494 do
3495   if test -d ${srcdir}/projects/${i} ; then
3496     case ${i} in
3497       sample)       subdirs="$subdirs projects/sample"
3498     ;;
3499       privbracket)  subdirs="$subdirs projects/privbracket"
3500  ;;
3501       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3502  ;;
3503       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3504 ;;
3505       llvm-java)    subdirs="$subdirs projects/llvm-java"
3506  ;;
3507       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3508    ;;
3509       safecode)     subdirs="$subdirs projects/safecode"
3510  ;;
3511       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3512  ;;
3513       compiler-rt)       ;;
3514       llvm-gcc)       ;;
3515       test-suite)     ;;
3516       llvm-test)      ;;
3517       poolalloc)      ;;
3518       llvm-poolalloc) ;;
3519       *)
3520         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3521 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3522         ;;
3523     esac
3524   fi
3525 done
3526
3527 # Check whether --enable-polly was given.
3528 if test "${enable_polly+set}" = set; then
3529   enableval=$enable_polly;
3530 else
3531   enableval=default
3532 fi
3533
3534 case "$enableval" in
3535   yes) ENABLE_POLLY=1
3536  ;;
3537   no)  ENABLE_POLLY=0
3538  ;;
3539   default) ENABLE_POLLY=1
3540  ;;
3541   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3542 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3543    { (exit 1); exit 1; }; } ;;
3544 esac
3545
3546
3547 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3548   LLVM_HAS_POLLY=1
3549
3550   subdirs="$subdirs tools/polly"
3551
3552 fi
3553
3554
3555 # Make sure we can run config.sub.
3556 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3557   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3558 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3559    { (exit 1); exit 1; }; }
3560
3561 { echo "$as_me:$LINENO: checking build system type" >&5
3562 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3563 if test "${ac_cv_build+set}" = set; then
3564   echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566   ac_build_alias=$build_alias
3567 test "x$ac_build_alias" = x &&
3568   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3569 test "x$ac_build_alias" = x &&
3570   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3571 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3572    { (exit 1); exit 1; }; }
3573 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3574   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3575 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3576    { (exit 1); exit 1; }; }
3577
3578 fi
3579 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3580 echo "${ECHO_T}$ac_cv_build" >&6; }
3581 case $ac_cv_build in
3582 *-*-*) ;;
3583 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3584 echo "$as_me: error: invalid value of canonical build" >&2;}
3585    { (exit 1); exit 1; }; };;
3586 esac
3587 build=$ac_cv_build
3588 ac_save_IFS=$IFS; IFS='-'
3589 set x $ac_cv_build
3590 shift
3591 build_cpu=$1
3592 build_vendor=$2
3593 shift; shift
3594 # Remember, the first character of IFS is used to create $*,
3595 # except with old shells:
3596 build_os=$*
3597 IFS=$ac_save_IFS
3598 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3599
3600
3601 { echo "$as_me:$LINENO: checking host system type" >&5
3602 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3603 if test "${ac_cv_host+set}" = set; then
3604   echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606   if test "x$host_alias" = x; then
3607   ac_cv_host=$ac_cv_build
3608 else
3609   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3610     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3611 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3612    { (exit 1); exit 1; }; }
3613 fi
3614
3615 fi
3616 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3617 echo "${ECHO_T}$ac_cv_host" >&6; }
3618 case $ac_cv_host in
3619 *-*-*) ;;
3620 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3621 echo "$as_me: error: invalid value of canonical host" >&2;}
3622    { (exit 1); exit 1; }; };;
3623 esac
3624 host=$ac_cv_host
3625 ac_save_IFS=$IFS; IFS='-'
3626 set x $ac_cv_host
3627 shift
3628 host_cpu=$1
3629 host_vendor=$2
3630 shift; shift
3631 # Remember, the first character of IFS is used to create $*,
3632 # except with old shells:
3633 host_os=$*
3634 IFS=$ac_save_IFS
3635 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3636
3637
3638 { echo "$as_me:$LINENO: checking target system type" >&5
3639 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3640 if test "${ac_cv_target+set}" = set; then
3641   echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643   if test "x$target_alias" = x; then
3644   ac_cv_target=$ac_cv_host
3645 else
3646   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3647     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3648 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3649    { (exit 1); exit 1; }; }
3650 fi
3651
3652 fi
3653 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3654 echo "${ECHO_T}$ac_cv_target" >&6; }
3655 case $ac_cv_target in
3656 *-*-*) ;;
3657 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3658 echo "$as_me: error: invalid value of canonical target" >&2;}
3659    { (exit 1); exit 1; }; };;
3660 esac
3661 target=$ac_cv_target
3662 ac_save_IFS=$IFS; IFS='-'
3663 set x $ac_cv_target
3664 shift
3665 target_cpu=$1
3666 target_vendor=$2
3667 shift; shift
3668 # Remember, the first character of IFS is used to create $*,
3669 # except with old shells:
3670 target_os=$*
3671 IFS=$ac_save_IFS
3672 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3673
3674
3675 # The aliases save the names the user supplied, while $host etc.
3676 # will get canonicalized.
3677 test -n "$target_alias" &&
3678   test "$program_prefix$program_suffix$program_transform_name" = \
3679     NONENONEs,x,x, &&
3680   program_prefix=${target_alias}-
3681
3682 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3683 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3684 if test "${llvm_cv_os_type+set}" = set; then
3685   echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687   case $host in
3688   *-*-aix*)
3689     llvm_cv_link_all_option="-Wl,--whole-archive"
3690     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691     llvm_cv_os_type="AIX"
3692     llvm_cv_platform_type="Unix" ;;
3693   *-*-irix*)
3694     llvm_cv_link_all_option="-Wl,--whole-archive"
3695     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3696     llvm_cv_os_type="IRIX"
3697     llvm_cv_platform_type="Unix" ;;
3698   *-*-cygwin*)
3699     llvm_cv_link_all_option="-Wl,--whole-archive"
3700     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3701     llvm_cv_os_type="Cygwin"
3702     llvm_cv_platform_type="Unix" ;;
3703   *-*-darwin*)
3704     llvm_cv_link_all_option="-Wl,-all_load"
3705     llvm_cv_no_link_all_option="-Wl,-noall_load"
3706     llvm_cv_os_type="Darwin"
3707     llvm_cv_platform_type="Unix" ;;
3708   *-*-minix*)
3709     llvm_cv_link_all_option="-Wl,-all_load"
3710     llvm_cv_no_link_all_option="-Wl,-noall_load"
3711     llvm_cv_os_type="Minix"
3712     llvm_cv_platform_type="Unix" ;;
3713   *-*-freebsd* | *-*-kfreebsd-gnu)
3714     llvm_cv_link_all_option="-Wl,--whole-archive"
3715     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716     llvm_cv_os_type="FreeBSD"
3717     llvm_cv_platform_type="Unix" ;;
3718   *-*-openbsd*)
3719     llvm_cv_link_all_option="-Wl,--whole-archive"
3720     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721     llvm_cv_os_type="OpenBSD"
3722     llvm_cv_platform_type="Unix" ;;
3723   *-*-netbsd*)
3724     llvm_cv_link_all_option="-Wl,--whole-archive"
3725     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726     llvm_cv_os_type="NetBSD"
3727     llvm_cv_platform_type="Unix" ;;
3728   *-*-dragonfly*)
3729     llvm_cv_link_all_option="-Wl,--whole-archive"
3730     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3731     llvm_cv_os_type="DragonFly"
3732     llvm_cv_platform_type="Unix" ;;
3733   *-*-hpux*)
3734     llvm_cv_link_all_option="-Wl,--whole-archive"
3735     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3736     llvm_cv_os_type="HP-UX"
3737     llvm_cv_platform_type="Unix" ;;
3738   *-*-interix*)
3739     llvm_cv_link_all_option="-Wl,--whole-archive"
3740     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3741     llvm_cv_os_type="Interix"
3742     llvm_cv_platform_type="Unix" ;;
3743   *-*-linux*)
3744     llvm_cv_link_all_option="-Wl,--whole-archive"
3745     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3746     llvm_cv_os_type="Linux"
3747     llvm_cv_platform_type="Unix" ;;
3748   *-*-gnu*)
3749     llvm_cv_link_all_option="-Wl,--whole-archive"
3750     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3751     llvm_cv_os_type="GNU"
3752     llvm_cv_platform_type="Unix" ;;
3753   *-*-solaris*)
3754     llvm_cv_link_all_option="-Wl,-z,allextract"
3755     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3756     llvm_cv_os_type="SunOS"
3757     llvm_cv_platform_type="Unix" ;;
3758   *-*-auroraux*)
3759     llvm_cv_link_all_option="-Wl,-z,allextract"
3760     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3761     llvm_cv_os_type="AuroraUX"
3762     llvm_cv_platform_type="Unix" ;;
3763   *-*-win32*)
3764     llvm_cv_link_all_option="-Wl,--whole-archive"
3765     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3766     llvm_cv_os_type="Win32"
3767     llvm_cv_platform_type="Win32" ;;
3768   *-*-mingw*)
3769     llvm_cv_link_all_option="-Wl,--whole-archive"
3770     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3771     llvm_cv_os_type="MingW"
3772     llvm_cv_platform_type="Win32" ;;
3773   *-*-haiku*)
3774     llvm_cv_link_all_option="-Wl,--whole-archive"
3775     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3776     llvm_cv_os_type="Haiku"
3777     llvm_cv_platform_type="Unix" ;;
3778   *-unknown-eabi*)
3779     llvm_cv_link_all_option="-Wl,--whole-archive"
3780     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3781     llvm_cv_os_type="Freestanding"
3782     llvm_cv_platform_type="Unix" ;;
3783   *-unknown-elf*)
3784     llvm_cv_link_all_option="-Wl,--whole-archive"
3785     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3786     llvm_cv_os_type="Freestanding"
3787     llvm_cv_platform_type="Unix" ;;
3788   *)
3789     llvm_cv_link_all_option=""
3790     llvm_cv_no_link_all_option=""
3791     llvm_cv_os_type="Unknown"
3792     llvm_cv_platform_type="Unknown" ;;
3793 esac
3794 fi
3795 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3796 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3797
3798 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3799 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3800 if test "${llvm_cv_target_os_type+set}" = set; then
3801   echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803   case $target in
3804   *-*-aix*)
3805     llvm_cv_target_os_type="AIX" ;;
3806   *-*-irix*)
3807     llvm_cv_target_os_type="IRIX" ;;
3808   *-*-cygwin*)
3809     llvm_cv_target_os_type="Cygwin" ;;
3810   *-*-darwin*)
3811     llvm_cv_target_os_type="Darwin" ;;
3812   *-*-minix*)
3813     llvm_cv_target_os_type="Minix" ;;
3814   *-*-freebsd* | *-*-kfreebsd-gnu)
3815     llvm_cv_target_os_type="FreeBSD" ;;
3816   *-*-openbsd*)
3817     llvm_cv_target_os_type="OpenBSD" ;;
3818   *-*-netbsd*)
3819     llvm_cv_target_os_type="NetBSD" ;;
3820   *-*-dragonfly*)
3821     llvm_cv_target_os_type="DragonFly" ;;
3822   *-*-hpux*)
3823     llvm_cv_target_os_type="HP-UX" ;;
3824   *-*-interix*)
3825     llvm_cv_target_os_type="Interix" ;;
3826   *-*-linux*)
3827     llvm_cv_target_os_type="Linux" ;;
3828   *-*-gnu*)
3829     llvm_cv_target_os_type="GNU" ;;
3830   *-*-solaris*)
3831     llvm_cv_target_os_type="SunOS" ;;
3832   *-*-auroraux*)
3833     llvm_cv_target_os_type="AuroraUX" ;;
3834   *-*-win32*)
3835     llvm_cv_target_os_type="Win32" ;;
3836   *-*-mingw*)
3837     llvm_cv_target_os_type="MingW" ;;
3838   *-*-haiku*)
3839     llvm_cv_target_os_type="Haiku" ;;
3840   *-*-rtems*)
3841     llvm_cv_target_os_type="RTEMS" ;;
3842   *-*-nacl*)
3843     llvm_cv_target_os_type="NativeClient" ;;
3844   *-unknown-eabi*)
3845     llvm_cv_target_os_type="Freestanding" ;;
3846   *)
3847     llvm_cv_target_os_type="Unknown" ;;
3848 esac
3849 fi
3850 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3851 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3852
3853 if test "$llvm_cv_os_type" = "Unknown" ; then
3854   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3855 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3856    { (exit 1); exit 1; }; }
3857 fi
3858
3859 OS=$llvm_cv_os_type
3860
3861 HOST_OS=$llvm_cv_os_type
3862
3863 TARGET_OS=$llvm_cv_target_os_type
3864
3865
3866 LINKALL=$llvm_cv_link_all_option
3867
3868 NOLINKALL=$llvm_cv_no_link_all_option
3869
3870
3871 case $llvm_cv_platform_type in
3872   Unix)
3873
3874 cat >>confdefs.h <<\_ACEOF
3875 #define LLVM_ON_UNIX 1
3876 _ACEOF
3877
3878     LLVM_ON_UNIX=1
3879
3880     LLVM_ON_WIN32=0
3881
3882     ;;
3883   Win32)
3884
3885 cat >>confdefs.h <<\_ACEOF
3886 #define LLVM_ON_WIN32 1
3887 _ACEOF
3888
3889     LLVM_ON_UNIX=0
3890
3891     LLVM_ON_WIN32=1
3892
3893     ;;
3894 esac
3895
3896 { echo "$as_me:$LINENO: checking target architecture" >&5
3897 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3898 if test "${llvm_cv_target_arch+set}" = set; then
3899   echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901   case $target in
3902   i?86-*)                 llvm_cv_target_arch="x86" ;;
3903   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3904   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3905   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3906   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3907   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
3908   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
3909   xcore-*)                llvm_cv_target_arch="XCore" ;;
3910   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3911   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3912   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3913   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3914   *)                      llvm_cv_target_arch="Unknown" ;;
3915 esac
3916 fi
3917 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3918 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3919
3920 if test "$llvm_cv_target_arch" = "Unknown" ; then
3921   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3922 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3923 fi
3924
3925 case "$llvm_cv_target_arch" in
3926     x86)     LLVM_NATIVE_ARCH="X86" ;;
3927     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3928     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3929 esac
3930
3931 ARCH=$llvm_cv_target_arch
3932
3933
3934 case $host in
3935   i?86-*)                 host_arch="x86" ;;
3936   amd64-* | x86_64-*)     host_arch="x86_64" ;;
3937   sparc*-*)               host_arch="Sparc" ;;
3938   powerpc*-*)             host_arch="PowerPC" ;;
3939   arm*-*)                 host_arch="ARM" ;;
3940   mips-* | mips64-*)      host_arch="Mips" ;;
3941   mipsel-* | mips64el-*)  host_arch="Mips" ;;
3942   xcore-*)                host_arch="XCore" ;;
3943   msp430-*)               host_arch="MSP430" ;;
3944   hexagon-*)              host_arch="Hexagon" ;;
3945   mblaze-*)               host_arch="MBlaze" ;;
3946   *)                      host_arch="Unknown" ;;
3947 esac
3948
3949 if test "$host_arch" = "Unknown" ; then
3950   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3951 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3952 fi
3953
3954 HOST_ARCH=$host_arch
3955
3956
3957
3958
3959 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3960 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3961 if test "${ac_cv_path_GREP+set}" = set; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   # Extract the first word of "grep ggrep" to use in msg output
3965 if test -z "$GREP"; then
3966 set dummy grep ggrep; ac_prog_name=$2
3967 if test "${ac_cv_path_GREP+set}" = set; then
3968   echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970   ac_path_GREP_found=false
3971 # Loop through the user's path and test for each of PROGNAME-LIST
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3974 do
3975   IFS=$as_save_IFS
3976   test -z "$as_dir" && as_dir=.
3977   for ac_prog in grep ggrep; do
3978   for ac_exec_ext in '' $ac_executable_extensions; do
3979     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3980     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3981     # Check for GNU ac_path_GREP and select it if it is found.
3982   # Check for GNU $ac_path_GREP
3983 case `"$ac_path_GREP" --version 2>&1` in
3984 *GNU*)
3985   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3986 *)
3987   ac_count=0
3988   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3989   while :
3990   do
3991     cat "conftest.in" "conftest.in" >"conftest.tmp"
3992     mv "conftest.tmp" "conftest.in"
3993     cp "conftest.in" "conftest.nl"
3994     echo 'GREP' >> "conftest.nl"
3995     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3997     ac_count=`expr $ac_count + 1`
3998     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3999       # Best one so far, save it but keep looking for a better one
4000       ac_cv_path_GREP="$ac_path_GREP"
4001       ac_path_GREP_max=$ac_count
4002     fi
4003     # 10*(2^10) chars as input seems more than enough
4004     test $ac_count -gt 10 && break
4005   done
4006   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4007 esac
4008
4009
4010     $ac_path_GREP_found && break 3
4011   done
4012 done
4013
4014 done
4015 IFS=$as_save_IFS
4016
4017
4018 fi
4019
4020 GREP="$ac_cv_path_GREP"
4021 if test -z "$GREP"; then
4022   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4023 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4024    { (exit 1); exit 1; }; }
4025 fi
4026
4027 else
4028   ac_cv_path_GREP=$GREP
4029 fi
4030
4031
4032 fi
4033 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4034 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4035  GREP="$ac_cv_path_GREP"
4036
4037
4038 { echo "$as_me:$LINENO: checking for egrep" >&5
4039 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4040 if test "${ac_cv_path_EGREP+set}" = set; then
4041   echo $ECHO_N "(cached) $ECHO_C" >&6
4042 else
4043   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4044    then ac_cv_path_EGREP="$GREP -E"
4045    else
4046      # Extract the first word of "egrep" to use in msg output
4047 if test -z "$EGREP"; then
4048 set dummy egrep; ac_prog_name=$2
4049 if test "${ac_cv_path_EGREP+set}" = set; then
4050   echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052   ac_path_EGREP_found=false
4053 # Loop through the user's path and test for each of PROGNAME-LIST
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4056 do
4057   IFS=$as_save_IFS
4058   test -z "$as_dir" && as_dir=.
4059   for ac_prog in egrep; do
4060   for ac_exec_ext in '' $ac_executable_extensions; do
4061     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4062     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4063     # Check for GNU ac_path_EGREP and select it if it is found.
4064   # Check for GNU $ac_path_EGREP
4065 case `"$ac_path_EGREP" --version 2>&1` in
4066 *GNU*)
4067   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4068 *)
4069   ac_count=0
4070   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4071   while :
4072   do
4073     cat "conftest.in" "conftest.in" >"conftest.tmp"
4074     mv "conftest.tmp" "conftest.in"
4075     cp "conftest.in" "conftest.nl"
4076     echo 'EGREP' >> "conftest.nl"
4077     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4078     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4079     ac_count=`expr $ac_count + 1`
4080     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4081       # Best one so far, save it but keep looking for a better one
4082       ac_cv_path_EGREP="$ac_path_EGREP"
4083       ac_path_EGREP_max=$ac_count
4084     fi
4085     # 10*(2^10) chars as input seems more than enough
4086     test $ac_count -gt 10 && break
4087   done
4088   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4089 esac
4090
4091
4092     $ac_path_EGREP_found && break 3
4093   done
4094 done
4095
4096 done
4097 IFS=$as_save_IFS
4098
4099
4100 fi
4101
4102 EGREP="$ac_cv_path_EGREP"
4103 if test -z "$EGREP"; then
4104   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4105 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4106    { (exit 1); exit 1; }; }
4107 fi
4108
4109 else
4110   ac_cv_path_EGREP=$EGREP
4111 fi
4112
4113
4114    fi
4115 fi
4116 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4117 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4118  EGREP="$ac_cv_path_EGREP"
4119
4120
4121 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4122 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4123 if test "${ac_cv_header_stdc+set}" = set; then
4124   echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126   cat >conftest.$ac_ext <<_ACEOF
4127 /* confdefs.h.  */
4128 _ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h.  */
4132 #include <stdlib.h>
4133 #include <stdarg.h>
4134 #include <string.h>
4135 #include <float.h>
4136
4137 int
4138 main ()
4139 {
4140
4141   ;
4142   return 0;
4143 }
4144 _ACEOF
4145 rm -f conftest.$ac_objext
4146 if { (ac_try="$ac_compile"
4147 case "(($ac_try" in
4148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149   *) ac_try_echo=$ac_try;;
4150 esac
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152   (eval "$ac_compile") 2>conftest.er1
4153   ac_status=$?
4154   grep -v '^ *+' conftest.er1 >conftest.err
4155   rm -f conftest.er1
4156   cat conftest.err >&5
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); } &&
4159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4160   { (case "(($ac_try" in
4161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162   *) ac_try_echo=$ac_try;;
4163 esac
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165   (eval "$ac_try") 2>&5
4166   ac_status=$?
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); }; } &&
4169          { ac_try='test -s conftest.$ac_objext'
4170   { (case "(($ac_try" in
4171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172   *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175   (eval "$ac_try") 2>&5
4176   ac_status=$?
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); }; }; then
4179   ac_cv_header_stdc=yes
4180 else
4181   echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4183
4184         ac_cv_header_stdc=no
4185 fi
4186
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188
4189 if test $ac_cv_header_stdc = yes; then
4190   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4191   cat >conftest.$ac_ext <<_ACEOF
4192 /* confdefs.h.  */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h.  */
4197 #include <string.h>
4198
4199 _ACEOF
4200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4201   $EGREP "memchr" >/dev/null 2>&1; then
4202   :
4203 else
4204   ac_cv_header_stdc=no
4205 fi
4206 rm -f conftest*
4207
4208 fi
4209
4210 if test $ac_cv_header_stdc = yes; then
4211   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4212   cat >conftest.$ac_ext <<_ACEOF
4213 /* confdefs.h.  */
4214 _ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h.  */
4218 #include <stdlib.h>
4219
4220 _ACEOF
4221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4222   $EGREP "free" >/dev/null 2>&1; then
4223   :
4224 else
4225   ac_cv_header_stdc=no
4226 fi
4227 rm -f conftest*
4228
4229 fi
4230
4231 if test $ac_cv_header_stdc = yes; then
4232   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4233   if test "$cross_compiling" = yes; then
4234   :
4235 else
4236   cat >conftest.$ac_ext <<_ACEOF
4237 /* confdefs.h.  */
4238 _ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h.  */
4242 #include <ctype.h>
4243 #include <stdlib.h>
4244 #if ((' ' & 0x0FF) == 0x020)
4245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4247 #else
4248 # define ISLOWER(c) \
4249                    (('a' <= (c) && (c) <= 'i') \
4250                      || ('j' <= (c) && (c) <= 'r') \
4251                      || ('s' <= (c) && (c) <= 'z'))
4252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4253 #endif
4254
4255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4256 int
4257 main ()
4258 {
4259   int i;
4260   for (i = 0; i < 256; i++)
4261     if (XOR (islower (i), ISLOWER (i))
4262         || toupper (i) != TOUPPER (i))
4263       return 2;
4264   return 0;
4265 }
4266 _ACEOF
4267 rm -f conftest$ac_exeext
4268 if { (ac_try="$ac_link"
4269 case "(($ac_try" in
4270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271   *) ac_try_echo=$ac_try;;
4272 esac
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274   (eval "$ac_link") 2>&5
4275   ac_status=$?
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4278   { (case "(($ac_try" in
4279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280   *) ac_try_echo=$ac_try;;
4281 esac
4282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283   (eval "$ac_try") 2>&5
4284   ac_status=$?
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); }; }; then
4287   :
4288 else
4289   echo "$as_me: program exited with status $ac_status" >&5
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4292
4293 ( exit $ac_status )
4294 ac_cv_header_stdc=no
4295 fi
4296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4297 fi
4298
4299
4300 fi
4301 fi
4302 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4303 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4304 if test $ac_cv_header_stdc = yes; then
4305
4306 cat >>confdefs.h <<\_ACEOF
4307 #define STDC_HEADERS 1
4308 _ACEOF
4309
4310 fi
4311
4312 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4323                   inttypes.h stdint.h unistd.h
4324 do
4325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4329   echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331   cat >conftest.$ac_ext <<_ACEOF
4332 /* confdefs.h.  */
4333 _ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h.  */
4337 $ac_includes_default
4338
4339 #include <$ac_header>
4340 _ACEOF
4341 rm -f conftest.$ac_objext
4342 if { (ac_try="$ac_compile"
4343 case "(($ac_try" in
4344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345   *) ac_try_echo=$ac_try;;
4346 esac
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348   (eval "$ac_compile") 2>conftest.er1
4349   ac_status=$?
4350   grep -v '^ *+' conftest.er1 >conftest.err
4351   rm -f conftest.er1
4352   cat conftest.err >&5
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); } &&
4355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4356   { (case "(($ac_try" in
4357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358   *) ac_try_echo=$ac_try;;
4359 esac
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361   (eval "$ac_try") 2>&5
4362   ac_status=$?
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); }; } &&
4365          { ac_try='test -s conftest.$ac_objext'
4366   { (case "(($ac_try" in
4367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368   *) ac_try_echo=$ac_try;;
4369 esac
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371   (eval "$ac_try") 2>&5
4372   ac_status=$?
4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374   (exit $ac_status); }; }; then
4375   eval "$as_ac_Header=yes"
4376 else
4377   echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4379
4380         eval "$as_ac_Header=no"
4381 fi
4382
4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384 fi
4385 ac_res=`eval echo '${'$as_ac_Header'}'`
4386                { echo "$as_me:$LINENO: result: $ac_res" >&5
4387 echo "${ECHO_T}$ac_res" >&6; }
4388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4389   cat >>confdefs.h <<_ACEOF
4390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4391 _ACEOF
4392
4393 fi
4394
4395 done
4396
4397
4398 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4399 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4400 if test "${ac_cv_c_bigendian+set}" = set; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403   # See if sys/param.h defines the BYTE_ORDER macro.
4404 cat >conftest.$ac_ext <<_ACEOF
4405 /* confdefs.h.  */
4406 _ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h.  */
4410 #include <sys/types.h>
4411 #include <sys/param.h>
4412
4413 int
4414 main ()
4415 {
4416 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4417  bogus endian macros
4418 #endif
4419
4420   ;
4421   return 0;
4422 }
4423 _ACEOF
4424 rm -f conftest.$ac_objext
4425 if { (ac_try="$ac_compile"
4426 case "(($ac_try" in
4427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428   *) ac_try_echo=$ac_try;;
4429 esac
4430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4431   (eval "$ac_compile") 2>conftest.er1
4432   ac_status=$?
4433   grep -v '^ *+' conftest.er1 >conftest.err
4434   rm -f conftest.er1
4435   cat conftest.err >&5
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); } &&
4438          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4439   { (case "(($ac_try" in
4440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441   *) ac_try_echo=$ac_try;;
4442 esac
4443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444   (eval "$ac_try") 2>&5
4445   ac_status=$?
4446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); }; } &&
4448          { ac_try='test -s conftest.$ac_objext'
4449   { (case "(($ac_try" in
4450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451   *) ac_try_echo=$ac_try;;
4452 esac
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454   (eval "$ac_try") 2>&5
4455   ac_status=$?
4456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457   (exit $ac_status); }; }; then
4458   # It does; now see whether it defined to BIG_ENDIAN or not.
4459 cat >conftest.$ac_ext <<_ACEOF
4460 /* confdefs.h.  */
4461 _ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h.  */
4465 #include <sys/types.h>
4466 #include <sys/param.h>
4467
4468 int
4469 main ()
4470 {
4471 #if BYTE_ORDER != BIG_ENDIAN
4472  not big endian
4473 #endif
4474
4475   ;
4476   return 0;
4477 }
4478 _ACEOF
4479 rm -f conftest.$ac_objext
4480 if { (ac_try="$ac_compile"
4481 case "(($ac_try" in
4482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483   *) ac_try_echo=$ac_try;;
4484 esac
4485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486   (eval "$ac_compile") 2>conftest.er1
4487   ac_status=$?
4488   grep -v '^ *+' conftest.er1 >conftest.err
4489   rm -f conftest.er1
4490   cat conftest.err >&5
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); } &&
4493          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4494   { (case "(($ac_try" in
4495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496   *) ac_try_echo=$ac_try;;
4497 esac
4498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499   (eval "$ac_try") 2>&5
4500   ac_status=$?
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); }; } &&
4503          { ac_try='test -s conftest.$ac_objext'
4504   { (case "(($ac_try" in
4505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506   *) ac_try_echo=$ac_try;;
4507 esac
4508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4509   (eval "$ac_try") 2>&5
4510   ac_status=$?
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); }; }; then
4513   ac_cv_c_bigendian=yes
4514 else
4515   echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4517
4518         ac_cv_c_bigendian=no
4519 fi
4520
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522 else
4523   echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4525
4526         # It does not; compile a test program.
4527 if test "$cross_compiling" = yes; then
4528   # try to guess the endianness by grepping values into an object file
4529   ac_cv_c_bigendian=unknown
4530   cat >conftest.$ac_ext <<_ACEOF
4531 /* confdefs.h.  */
4532 _ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h.  */
4536 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4537 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4538 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4539 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4540 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4541 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4542 int
4543 main ()
4544 {
4545  _ascii (); _ebcdic ();
4546   ;
4547   return 0;
4548 }
4549 _ACEOF
4550 rm -f conftest.$ac_objext
4551 if { (ac_try="$ac_compile"
4552 case "(($ac_try" in
4553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554   *) ac_try_echo=$ac_try;;
4555 esac
4556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4557   (eval "$ac_compile") 2>conftest.er1
4558   ac_status=$?
4559   grep -v '^ *+' conftest.er1 >conftest.err
4560   rm -f conftest.er1
4561   cat conftest.err >&5
4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); } &&
4564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4565   { (case "(($ac_try" in
4566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567   *) ac_try_echo=$ac_try;;
4568 esac
4569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570   (eval "$ac_try") 2>&5
4571   ac_status=$?
4572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573   (exit $ac_status); }; } &&
4574          { ac_try='test -s conftest.$ac_objext'
4575   { (case "(($ac_try" in
4576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577   *) ac_try_echo=$ac_try;;
4578 esac
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580   (eval "$ac_try") 2>&5
4581   ac_status=$?
4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); }; }; then
4584   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4585   ac_cv_c_bigendian=yes
4586 fi
4587 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4588   if test "$ac_cv_c_bigendian" = unknown; then
4589     ac_cv_c_bigendian=no
4590   else
4591     # finding both strings is unlikely to happen, but who knows?
4592     ac_cv_c_bigendian=unknown
4593   fi
4594 fi
4595 else
4596   echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4598
4599
4600 fi
4601
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 else
4604   cat >conftest.$ac_ext <<_ACEOF
4605 /* confdefs.h.  */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h.  */
4610 $ac_includes_default
4611 int
4612 main ()
4613 {
4614
4615   /* Are we little or big endian?  From Harbison&Steele.  */
4616   union
4617   {
4618     long int l;
4619     char c[sizeof (long int)];
4620   } u;
4621   u.l = 1;
4622   return u.c[sizeof (long int) - 1] == 1;
4623
4624   ;
4625   return 0;
4626 }
4627 _ACEOF
4628 rm -f conftest$ac_exeext
4629 if { (ac_try="$ac_link"
4630 case "(($ac_try" in
4631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632   *) ac_try_echo=$ac_try;;
4633 esac
4634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635   (eval "$ac_link") 2>&5
4636   ac_status=$?
4637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4639   { (case "(($ac_try" in
4640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641   *) ac_try_echo=$ac_try;;
4642 esac
4643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4644   (eval "$ac_try") 2>&5
4645   ac_status=$?
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); }; }; then
4648   ac_cv_c_bigendian=no
4649 else
4650   echo "$as_me: program exited with status $ac_status" >&5
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4653
4654 ( exit $ac_status )
4655 ac_cv_c_bigendian=yes
4656 fi
4657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4658 fi
4659
4660
4661 fi
4662
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 fi
4665 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4666 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4667 case $ac_cv_c_bigendian in
4668   yes)
4669     ENDIAN=big
4670  ;;
4671   no)
4672     ENDIAN=little
4673  ;;
4674   *)
4675     { { echo "$as_me:$LINENO: error: unknown endianness
4676 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4677 echo "$as_me: error: unknown endianness
4678 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4679    { (exit 1); exit 1; }; } ;;
4680 esac
4681
4682
4683 if test "$cross_compiling" = yes; then
4684   LLVM_CROSS_COMPILING=1
4685
4686
4687 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4688 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4689 if test "${ac_cv_build_exeext+set}" = set; then
4690   echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4693   ac_cv_build_exeext=.exe
4694 else
4695   ac_build_prefix=${build_alias}-
4696
4697   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4698 set dummy ${ac_build_prefix}gcc; ac_word=$2
4699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4701 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   if test -n "$BUILD_CC"; then
4705   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4709 do
4710   IFS=$as_save_IFS
4711   test -z "$as_dir" && as_dir=.
4712   for ac_exec_ext in '' $ac_executable_extensions; do
4713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4714     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716     break 2
4717   fi
4718 done
4719 done
4720 IFS=$as_save_IFS
4721
4722 fi
4723 fi
4724 BUILD_CC=$ac_cv_prog_BUILD_CC
4725 if test -n "$BUILD_CC"; then
4726   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4727 echo "${ECHO_T}$BUILD_CC" >&6; }
4728 else
4729   { echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6; }
4731 fi
4732
4733
4734   if test -z "$BUILD_CC"; then
4735      # Extract the first word of "gcc", so it can be a program name with args.
4736 set dummy gcc; ac_word=$2
4737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4739 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4740   echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742   if test -n "$BUILD_CC"; then
4743   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748   IFS=$as_save_IFS
4749   test -z "$as_dir" && as_dir=.
4750   for ac_exec_ext in '' $ac_executable_extensions; do
4751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4752     ac_cv_prog_BUILD_CC="gcc"
4753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4754     break 2
4755   fi
4756 done
4757 done
4758 IFS=$as_save_IFS
4759
4760 fi
4761 fi
4762 BUILD_CC=$ac_cv_prog_BUILD_CC
4763 if test -n "$BUILD_CC"; then
4764   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4765 echo "${ECHO_T}$BUILD_CC" >&6; }
4766 else
4767   { echo "$as_me:$LINENO: result: no" >&5
4768 echo "${ECHO_T}no" >&6; }
4769 fi
4770
4771
4772      if test -z "$BUILD_CC"; then
4773        # Extract the first word of "cc", so it can be a program name with args.
4774 set dummy cc; ac_word=$2
4775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4777 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4778   echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780   if test -n "$BUILD_CC"; then
4781   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4782 else
4783   ac_prog_rejected=no
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787   IFS=$as_save_IFS
4788   test -z "$as_dir" && as_dir=.
4789   for ac_exec_ext in '' $ac_executable_extensions; do
4790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4791     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4792        ac_prog_rejected=yes
4793        continue
4794      fi
4795     ac_cv_prog_BUILD_CC="cc"
4796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797     break 2
4798   fi
4799 done
4800 done
4801 IFS=$as_save_IFS
4802
4803 if test $ac_prog_rejected = yes; then
4804   # We found a bogon in the path, so make sure we never use it.
4805   set dummy $ac_cv_prog_BUILD_CC
4806   shift
4807   if test $# != 0; then
4808     # We chose a different compiler from the bogus one.
4809     # However, it has the same basename, so the bogon will be chosen
4810     # first if we set BUILD_CC to just the basename; use the full file name.
4811     shift
4812     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4813   fi
4814 fi
4815 fi
4816 fi
4817 BUILD_CC=$ac_cv_prog_BUILD_CC
4818 if test -n "$BUILD_CC"; then
4819   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4820 echo "${ECHO_T}$BUILD_CC" >&6; }
4821 else
4822   { echo "$as_me:$LINENO: result: no" >&5
4823 echo "${ECHO_T}no" >&6; }
4824 fi
4825
4826
4827      fi
4828   fi
4829   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4830 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4831    { (exit 1); exit 1; }; }
4832   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4833   rm -f conftest*
4834   echo 'int main () { return 0; }' > conftest.$ac_ext
4835   ac_cv_build_exeext=
4836   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4837   (eval $ac_build_link) 2>&5
4838   ac_status=$?
4839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840   (exit $ac_status); }; then
4841     for file in conftest.*; do
4842       case $file in
4843       *.c | *.o | *.obj | *.dSYM) ;;
4844       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4845       esac
4846     done
4847   else
4848     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4849 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4850    { (exit 1); exit 1; }; }
4851   fi
4852   rm -f conftest*
4853   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4854 fi
4855 fi
4856
4857 BUILD_EXEEXT=""
4858 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4859 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4860 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4861 ac_build_exeext=$BUILD_EXEEXT
4862
4863   ac_build_prefix=${build_alias}-
4864   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4865 set dummy ${ac_build_prefix}g++; ac_word=$2
4866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4869   echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871   if test -n "$BUILD_CXX"; then
4872   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877   IFS=$as_save_IFS
4878   test -z "$as_dir" && as_dir=.
4879   for ac_exec_ext in '' $ac_executable_extensions; do
4880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4881     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883     break 2
4884   fi
4885 done
4886 done
4887 IFS=$as_save_IFS
4888
4889 fi
4890 fi
4891 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4892 if test -n "$BUILD_CXX"; then
4893   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4894 echo "${ECHO_T}$BUILD_CXX" >&6; }
4895 else
4896   { echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6; }
4898 fi
4899
4900
4901   if test -z "$BUILD_CXX"; then
4902      # Extract the first word of "g++", so it can be a program name with args.
4903 set dummy g++; ac_word=$2
4904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4906 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909   if test -n "$BUILD_CXX"; then
4910   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915   IFS=$as_save_IFS
4916   test -z "$as_dir" && as_dir=.
4917   for ac_exec_ext in '' $ac_executable_extensions; do
4918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4919     ac_cv_prog_BUILD_CXX="g++"
4920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921     break 2
4922   fi
4923 done
4924 done
4925 IFS=$as_save_IFS
4926
4927 fi
4928 fi
4929 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4930 if test -n "$BUILD_CXX"; then
4931   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4932 echo "${ECHO_T}$BUILD_CXX" >&6; }
4933 else
4934   { echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6; }
4936 fi
4937
4938
4939      if test -z "$BUILD_CXX"; then
4940        # Extract the first word of "c++", so it can be a program name with args.
4941 set dummy c++; ac_word=$2
4942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4944 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4945   echo $ECHO_N "(cached) $ECHO_C" >&6
4946 else
4947   if test -n "$BUILD_CXX"; then
4948   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4949 else
4950   ac_prog_rejected=no
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954   IFS=$as_save_IFS
4955   test -z "$as_dir" && as_dir=.
4956   for ac_exec_ext in '' $ac_executable_extensions; do
4957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4958     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4959        ac_prog_rejected=yes
4960        continue
4961      fi
4962     ac_cv_prog_BUILD_CXX="c++"
4963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4964     break 2
4965   fi
4966 done
4967 done
4968 IFS=$as_save_IFS
4969
4970 if test $ac_prog_rejected = yes; then
4971   # We found a bogon in the path, so make sure we never use it.
4972   set dummy $ac_cv_prog_BUILD_CXX
4973   shift
4974   if test $# != 0; then
4975     # We chose a different compiler from the bogus one.
4976     # However, it has the same basename, so the bogon will be chosen
4977     # first if we set BUILD_CXX to just the basename; use the full file name.
4978     shift
4979     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4980   fi
4981 fi
4982 fi
4983 fi
4984 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4985 if test -n "$BUILD_CXX"; then
4986   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4987 echo "${ECHO_T}$BUILD_CXX" >&6; }
4988 else
4989   { echo "$as_me:$LINENO: result: no" >&5
4990 echo "${ECHO_T}no" >&6; }
4991 fi
4992
4993
4994      fi
4995   fi
4996 else
4997   LLVM_CROSS_COMPILING=0
4998
4999 fi
5000
5001 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5002   cvsbuild="yes"
5003   optimize="no"
5004   CVSBUILD=CVSBUILD=1
5005
5006 else
5007   cvsbuild="no"
5008   optimize="yes"
5009 fi
5010
5011
5012 # Check whether --enable-libcpp was given.
5013 if test "${enable_libcpp+set}" = set; then
5014   enableval=$enable_libcpp;
5015 else
5016   enableval=default
5017 fi
5018
5019 case "$enableval" in
5020   yes) ENABLE_LIBCPP=1
5021  ;;
5022   no)  ENABLE_LIBCPP=0
5023  ;;
5024   default) ENABLE_LIBCPP=0
5025 ;;
5026   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5027 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5028    { (exit 1); exit 1; }; } ;;
5029 esac
5030
5031 # Check whether --enable-cxx11 was given.
5032 if test "${enable_cxx11+set}" = set; then
5033   enableval=$enable_cxx11;
5034 else
5035   enableval=default
5036 fi
5037
5038 case "$enableval" in
5039   yes) ENABLE_CXX11=1
5040  ;;
5041   no)  ENABLE_CXX11=0
5042  ;;
5043   default) ENABLE_CXX11=0
5044 ;;
5045   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5046 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5047    { (exit 1); exit 1; }; } ;;
5048 esac
5049
5050 # Check whether --enable-optimized was given.
5051 if test "${enable_optimized+set}" = set; then
5052   enableval=$enable_optimized;
5053 else
5054   enableval=$optimize
5055 fi
5056
5057 if test ${enableval} = "no" ; then
5058   ENABLE_OPTIMIZED=
5059
5060 else
5061   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5062
5063 fi
5064
5065 # Check whether --enable-profiling was given.
5066 if test "${enable_profiling+set}" = set; then
5067   enableval=$enable_profiling;
5068 else
5069   enableval="no"
5070 fi
5071
5072 if test ${enableval} = "no" ; then
5073   ENABLE_PROFILING=
5074
5075 else
5076   ENABLE_PROFILING=ENABLE_PROFILING=1
5077
5078 fi
5079
5080 # Check whether --enable-assertions was given.
5081 if test "${enable_assertions+set}" = set; then
5082   enableval=$enable_assertions;
5083 else
5084   enableval="yes"
5085 fi
5086
5087 if test ${enableval} = "yes" ; then
5088   DISABLE_ASSERTIONS=
5089
5090 else
5091   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5092
5093 fi
5094
5095 # Check whether --enable-werror was given.
5096 if test "${enable_werror+set}" = set; then
5097   enableval=$enable_werror;
5098 else
5099   enableval="no"
5100 fi
5101
5102 case "$enableval" in
5103   yes) ENABLE_WERROR=1
5104  ;;
5105   no)  ENABLE_WERROR=0
5106  ;;
5107   default) ENABLE_WERROR=0
5108 ;;
5109   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5110 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5111    { (exit 1); exit 1; }; } ;;
5112 esac
5113
5114 # Check whether --enable-expensive-checks was given.
5115 if test "${enable_expensive_checks+set}" = set; then
5116   enableval=$enable_expensive_checks;
5117 else
5118   enableval="no"
5119 fi
5120
5121 if test ${enableval} = "yes" ; then
5122   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5123
5124   EXPENSIVE_CHECKS=yes
5125
5126 else
5127   ENABLE_EXPENSIVE_CHECKS=
5128
5129   EXPENSIVE_CHECKS=no
5130
5131 fi
5132
5133 # Check whether --enable-debug-runtime was given.
5134 if test "${enable_debug_runtime+set}" = set; then
5135   enableval=$enable_debug_runtime;
5136 else
5137   enableval=no
5138 fi
5139
5140 if test ${enableval} = "no" ; then
5141   DEBUG_RUNTIME=
5142
5143 else
5144   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5145
5146 fi
5147
5148 # Check whether --enable-debug-symbols was given.
5149 if test "${enable_debug_symbols+set}" = set; then
5150   enableval=$enable_debug_symbols;
5151 else
5152   enableval=no
5153 fi
5154
5155 if test ${enableval} = "no" ; then
5156   DEBUG_SYMBOLS=
5157
5158 else
5159   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5160
5161 fi
5162
5163 # Check whether --enable-keep-symbols was given.
5164 if test "${enable_keep_symbols+set}" = set; then
5165   enableval=$enable_keep_symbols;
5166 else
5167   enableval=no
5168 fi
5169
5170 if test ${enableval} = "no" ; then
5171   KEEP_SYMBOLS=
5172
5173 else
5174   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5175
5176 fi
5177
5178 # Check whether --enable-jit was given.
5179 if test "${enable_jit+set}" = set; then
5180   enableval=$enable_jit;
5181 else
5182   enableval=default
5183 fi
5184
5185 if test ${enableval} = "no"
5186 then
5187   JIT=
5188
5189 else
5190   case "$llvm_cv_target_arch" in
5191     x86)         TARGET_HAS_JIT=1
5192  ;;
5193     Sparc)       TARGET_HAS_JIT=0
5194  ;;
5195     PowerPC)     TARGET_HAS_JIT=1
5196  ;;
5197     x86_64)      TARGET_HAS_JIT=1
5198  ;;
5199     ARM)         TARGET_HAS_JIT=1
5200  ;;
5201     Mips)        TARGET_HAS_JIT=1
5202  ;;
5203     XCore)       TARGET_HAS_JIT=0
5204  ;;
5205     MSP430)      TARGET_HAS_JIT=0
5206  ;;
5207     Hexagon)     TARGET_HAS_JIT=0
5208  ;;
5209     MBlaze)      TARGET_HAS_JIT=0
5210  ;;
5211     NVPTX)       TARGET_HAS_JIT=0
5212  ;;
5213     *)           TARGET_HAS_JIT=0
5214  ;;
5215   esac
5216 fi
5217
5218 # Check whether --enable-docs was given.
5219 if test "${enable_docs+set}" = set; then
5220   enableval=$enable_docs;
5221 else
5222   enableval=default
5223 fi
5224
5225 case "$enableval" in
5226   yes) ENABLE_DOCS=1
5227  ;;
5228   no)  ENABLE_DOCS=0
5229  ;;
5230   default) ENABLE_DOCS=1
5231  ;;
5232   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5233 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5234    { (exit 1); exit 1; }; } ;;
5235 esac
5236
5237 # Check whether --enable-doxygen was given.
5238 if test "${enable_doxygen+set}" = set; then
5239   enableval=$enable_doxygen;
5240 else
5241   enableval=default
5242 fi
5243
5244 case "$enableval" in
5245   yes) ENABLE_DOXYGEN=1
5246  ;;
5247   no)  ENABLE_DOXYGEN=0
5248  ;;
5249   default) ENABLE_DOXYGEN=0
5250  ;;
5251   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5252 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5253    { (exit 1); exit 1; }; } ;;
5254 esac
5255
5256 # Check whether --enable-threads was given.
5257 if test "${enable_threads+set}" = set; then
5258   enableval=$enable_threads;
5259 else
5260   enableval=default
5261 fi
5262
5263 case "$enableval" in
5264   yes) LLVM_ENABLE_THREADS=1
5265  ;;
5266   no)  LLVM_ENABLE_THREADS=0
5267  ;;
5268   default) LLVM_ENABLE_THREADS=1
5269  ;;
5270   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5271 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5272    { (exit 1); exit 1; }; } ;;
5273 esac
5274
5275 cat >>confdefs.h <<_ACEOF
5276 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5277 _ACEOF
5278
5279
5280 # Check whether --enable-pthreads was given.
5281 if test "${enable_pthreads+set}" = set; then
5282   enableval=$enable_pthreads;
5283 else
5284   enableval=default
5285 fi
5286
5287 case "$enableval" in
5288   yes) ENABLE_PTHREADS=1
5289  ;;
5290   no)  ENABLE_PTHREADS=0
5291  ;;
5292   default) ENABLE_PTHREADS=1
5293  ;;
5294   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5295 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5296    { (exit 1); exit 1; }; } ;;
5297 esac
5298
5299 # Check whether --enable-pic was given.
5300 if test "${enable_pic+set}" = set; then
5301   enableval=$enable_pic;
5302 else
5303   enableval=default
5304 fi
5305
5306 case "$enableval" in
5307   yes) ENABLE_PIC=1
5308  ;;
5309   no)  ENABLE_PIC=0
5310  ;;
5311   default) ENABLE_PIC=1
5312  ;;
5313   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5314 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5315    { (exit 1); exit 1; }; } ;;
5316 esac
5317
5318 cat >>confdefs.h <<_ACEOF
5319 #define ENABLE_PIC $ENABLE_PIC
5320 _ACEOF
5321
5322
5323 # Check whether --enable-shared was given.
5324 if test "${enable_shared+set}" = set; then
5325   enableval=$enable_shared;
5326 else
5327   enableval=default
5328 fi
5329
5330 case "$enableval" in
5331   yes) ENABLE_SHARED=1
5332  ;;
5333   no)  ENABLE_SHARED=0
5334  ;;
5335   default) ENABLE_SHARED=0
5336  ;;
5337   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5338 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5339    { (exit 1); exit 1; }; } ;;
5340 esac
5341
5342 # Check whether --enable-embed-stdcxx was given.
5343 if test "${enable_embed_stdcxx+set}" = set; then
5344   enableval=$enable_embed_stdcxx;
5345 else
5346   enableval=default
5347 fi
5348
5349 case "$enableval" in
5350   yes) ENABLE_EMBED_STDCXX=1
5351  ;;
5352   no)  ENABLE_EMBED_STDCXX=0
5353  ;;
5354   default) ENABLE_EMBED_STDCXX=0
5355  ;;
5356   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5357 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5358    { (exit 1); exit 1; }; } ;;
5359 esac
5360
5361 # Check whether --enable-timestamps was given.
5362 if test "${enable_timestamps+set}" = set; then
5363   enableval=$enable_timestamps;
5364 else
5365   enableval=default
5366 fi
5367
5368 case "$enableval" in
5369   yes) ENABLE_TIMESTAMPS=1
5370  ;;
5371   no)  ENABLE_TIMESTAMPS=0
5372  ;;
5373   default) ENABLE_TIMESTAMPS=1
5374  ;;
5375   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5376 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5377    { (exit 1); exit 1; }; } ;;
5378 esac
5379
5380 cat >>confdefs.h <<_ACEOF
5381 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5382 _ACEOF
5383
5384
5385
5386 # Check whether --enable-backtraces was given.
5387 if test "${enable_backtraces+set}" = set; then
5388   enableval=$enable_backtraces;
5389 else
5390   enableval=default
5391 fi
5392
5393 case "$enableval" in
5394   yes) ENABLE_BACKTRACES=1
5395  ;;
5396   no)  ENABLE_BACKTRACES=0
5397  ;;
5398   default) ENABLE_BACKTRACES=1
5399  ;;
5400   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5401 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5402    { (exit 1); exit 1; }; } ;;
5403 esac
5404
5405 cat >>confdefs.h <<_ACEOF
5406 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5407 _ACEOF
5408
5409
5410 TARGETS_TO_BUILD=""
5411 # Check whether --enable-targets was given.
5412 if test "${enable_targets+set}" = set; then
5413   enableval=$enable_targets;
5414 else
5415   enableval=all
5416 fi
5417
5418 if test "$enableval" = host-only ; then
5419   enableval=host
5420 fi
5421 case "$enableval" in
5422   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5423   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5424       case "$a_target" in
5425         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5426         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5427         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5428         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5429         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5430         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5431         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5432         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5433         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5434         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5435         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5436         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5437         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5438         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5439         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5440         host) case "$llvm_cv_target_arch" in
5441             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5442             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5443             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5444             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5445             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5446             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5447             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5448             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5449             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5450             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5451             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5452             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5453 echo "$as_me: error: Can not set target to build" >&2;}
5454    { (exit 1); exit 1; }; } ;;
5455           esac ;;
5456         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5457 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5458    { (exit 1); exit 1; }; } ;;
5459       esac
5460   done
5461   ;;
5462 esac
5463
5464 # Check whether --enable-experimental-targets was given.
5465 if test "${enable_experimental_targets+set}" = set; then
5466   enableval=$enable_experimental_targets;
5467 else
5468   enableval=disable
5469 fi
5470
5471
5472 if test ${enableval} != "disable"
5473 then
5474   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5475 fi
5476
5477 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5478
5479
5480 for a_target in $TARGETS_TO_BUILD; do
5481   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5482
5483 cat >>confdefs.h <<_ACEOF
5484 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5485 _ACEOF
5486
5487     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5488     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5489     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5490     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5491     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5492       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5493     fi
5494     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5495       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5496     fi
5497
5498 cat >>confdefs.h <<_ACEOF
5499 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5500 _ACEOF
5501
5502
5503 cat >>confdefs.h <<_ACEOF
5504 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5505 _ACEOF
5506
5507
5508 cat >>confdefs.h <<_ACEOF
5509 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5510 _ACEOF
5511
5512
5513 cat >>confdefs.h <<_ACEOF
5514 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5515 _ACEOF
5516
5517     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5518
5519 cat >>confdefs.h <<_ACEOF
5520 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5521 _ACEOF
5522
5523     fi
5524     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5525
5526 cat >>confdefs.h <<_ACEOF
5527 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5528 _ACEOF
5529
5530     fi
5531   fi
5532 done
5533
5534 LLVM_ENUM_TARGETS=""
5535 LLVM_ENUM_ASM_PRINTERS=""
5536 LLVM_ENUM_ASM_PARSERS=""
5537 LLVM_ENUM_DISASSEMBLERS=""
5538 for target_to_build in $TARGETS_TO_BUILD; do
5539   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5540   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5541     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5542   fi
5543   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5544     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5545   fi
5546   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5547     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5548   fi
5549 done
5550
5551
5552
5553
5554
5555
5556 # Check whether --with-optimize-option was given.
5557 if test "${with_optimize_option+set}" = set; then
5558   withval=$with_optimize_option;
5559 else
5560   withval=default
5561 fi
5562
5563 { echo "$as_me:$LINENO: checking optimization flags" >&5
5564 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5565 case "$withval" in
5566   default)
5567     case "$llvm_cv_os_type" in
5568     FreeBSD) optimize_option=-O2 ;;
5569     MingW) optimize_option=-O2 ;;
5570     *)     optimize_option=-O3 ;;
5571     esac ;;
5572   *) optimize_option="$withval" ;;
5573 esac
5574 OPTIMIZE_OPTION=$optimize_option
5575
5576 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5577 echo "${ECHO_T}$optimize_option" >&6; }
5578
5579
5580 # Check whether --with-extra-options was given.
5581 if test "${with_extra_options+set}" = set; then
5582   withval=$with_extra_options;
5583 else
5584   withval=default
5585 fi
5586
5587 case "$withval" in
5588   default) EXTRA_OPTIONS= ;;
5589   *) EXTRA_OPTIONS=$withval ;;
5590 esac
5591 EXTRA_OPTIONS=$EXTRA_OPTIONS
5592
5593
5594
5595 # Check whether --with-extra-ld-options was given.
5596 if test "${with_extra_ld_options+set}" = set; then
5597   withval=$with_extra_ld_options;
5598 else
5599   withval=default
5600 fi
5601
5602 case "$withval" in
5603   default) EXTRA_LD_OPTIONS= ;;
5604   *) EXTRA_LD_OPTIONS=$withval ;;
5605 esac
5606 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5607
5608
5609 # Check whether --enable-bindings was given.
5610 if test "${enable_bindings+set}" = set; then
5611   enableval=$enable_bindings;
5612 else
5613   enableval=default
5614 fi
5615
5616 BINDINGS_TO_BUILD=""
5617 case "$enableval" in
5618   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5619   all ) BINDINGS_TO_BUILD="ocaml" ;;
5620   none | no) BINDINGS_TO_BUILD="" ;;
5621   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5622       case "$a_binding" in
5623         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5624         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5625 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5626    { (exit 1); exit 1; }; } ;;
5627       esac
5628   done
5629   ;;
5630 esac
5631
5632
5633 # Check whether --with-ocaml-libdir was given.
5634 if test "${with_ocaml_libdir+set}" = set; then
5635   withval=$with_ocaml_libdir;
5636 else
5637   withval=auto
5638 fi
5639
5640 case "$withval" in
5641   auto) with_ocaml_libdir="$withval" ;;
5642   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5643   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5644 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5645    { (exit 1); exit 1; }; } ;;
5646 esac
5647
5648
5649 # Check whether --with-clang-srcdir was given.
5650 if test "${with_clang_srcdir+set}" = set; then
5651   withval=$with_clang_srcdir;
5652 else
5653   withval="-"
5654 fi
5655
5656 case "$withval" in
5657   -) clang_src_root="" ;;
5658   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5659   *) clang_src_root="$ac_pwd/$withval" ;;
5660 esac
5661 CLANG_SRC_ROOT=$clang_src_root
5662
5663
5664
5665 # Check whether --with-clang-resource-dir was given.
5666 if test "${with_clang_resource_dir+set}" = set; then
5667   withval=$with_clang_resource_dir;
5668 else
5669   withval=""
5670 fi
5671
5672
5673 cat >>confdefs.h <<_ACEOF
5674 #define CLANG_RESOURCE_DIR "$withval"
5675 _ACEOF
5676
5677
5678
5679 # Check whether --with-c-include-dirs was given.
5680 if test "${with_c_include_dirs+set}" = set; then
5681   withval=$with_c_include_dirs;
5682 else
5683   withval=""
5684 fi
5685
5686
5687 cat >>confdefs.h <<_ACEOF
5688 #define C_INCLUDE_DIRS "$withval"
5689 _ACEOF
5690
5691
5692 # Clang normally uses the system c++ headers and libraries. With this option,
5693 # clang will use the ones provided by a gcc installation instead. This option should
5694 # be passed the same value that was used with --prefix when configuring gcc.
5695
5696 # Check whether --with-gcc-toolchain was given.
5697 if test "${with_gcc_toolchain+set}" = set; then
5698   withval=$with_gcc_toolchain;
5699 else
5700   withval=""
5701 fi
5702
5703
5704 cat >>confdefs.h <<_ACEOF
5705 #define GCC_INSTALL_PREFIX "$withval"
5706 _ACEOF
5707
5708
5709
5710 # Check whether --with-default-sysroot was given.
5711 if test "${with_default_sysroot+set}" = set; then
5712   withval=$with_default_sysroot;
5713 else
5714   withval=""
5715 fi
5716
5717
5718 cat >>confdefs.h <<_ACEOF
5719 #define DEFAULT_SYSROOT "$withval"
5720 _ACEOF
5721
5722
5723
5724 # Check whether --with-binutils-include was given.
5725 if test "${with_binutils_include+set}" = set; then
5726   withval=$with_binutils_include;
5727 else
5728   withval=default
5729 fi
5730
5731 case "$withval" in
5732   default) WITH_BINUTILS_INCDIR=default ;;
5733   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5734   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5735 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5736    { (exit 1); exit 1; }; } ;;
5737 esac
5738 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5739   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5740
5741   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5742      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5743      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5744 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5745    { (exit 1); exit 1; }; };
5746   fi
5747 fi
5748
5749
5750 # Check whether --with-bug-report-url was given.
5751 if test "${with_bug_report_url+set}" = set; then
5752   withval=$with_bug_report_url;
5753 else
5754   withval="http://llvm.org/bugs/"
5755 fi
5756
5757
5758 cat >>confdefs.h <<_ACEOF
5759 #define BUG_REPORT_URL "$withval"
5760 _ACEOF
5761
5762
5763 # Check whether --enable-libffi was given.
5764 if test "${enable_libffi+set}" = set; then
5765   enableval=$enable_libffi; case "$enableval" in
5766     yes) llvm_cv_enable_libffi="yes" ;;
5767     no)  llvm_cv_enable_libffi="no"  ;;
5768     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5769 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5770    { (exit 1); exit 1; }; } ;;
5771   esac
5772 else
5773   llvm_cv_enable_libffi=no
5774 fi
5775
5776
5777
5778 # Check whether --with-internal-prefix was given.
5779 if test "${with_internal_prefix+set}" = set; then
5780   withval=$with_internal_prefix;
5781 else
5782   withval=""
5783 fi
5784
5785 INTERNAL_PREFIX=$withval
5786
5787
5788
5789 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5790 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5791 if test "${lt_cv_path_NM+set}" = set; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794   if test -n "$NM"; then
5795   # Let the user override the test.
5796   lt_cv_path_NM="$NM"
5797 else
5798   lt_nm_to_check="${ac_tool_prefix}nm"
5799   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5800     lt_nm_to_check="$lt_nm_to_check nm"
5801   fi
5802   for lt_tmp_nm in $lt_nm_to_check; do
5803     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5804     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5805       IFS="$lt_save_ifs"
5806       test -z "$ac_dir" && ac_dir=.
5807       tmp_nm="$ac_dir/$lt_tmp_nm"
5808       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5809         # Check to see if the nm accepts a BSD-compat flag.
5810         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5811         #   nm: unknown option "B" ignored
5812         # Tru64's nm complains that /dev/null is an invalid object file
5813         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5814         */dev/null* | *'Invalid file or object type'*)
5815           lt_cv_path_NM="$tmp_nm -B"
5816           break
5817           ;;
5818         *)
5819           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5820           */dev/null*)
5821             lt_cv_path_NM="$tmp_nm -p"
5822             break
5823             ;;
5824           *)
5825             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5826             continue # so that we can try to find one that supports BSD flags
5827             ;;
5828           esac
5829           ;;
5830         esac
5831       fi
5832     done
5833     IFS="$lt_save_ifs"
5834   done
5835   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5836 fi
5837 fi
5838 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5839 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5840 NM="$lt_cv_path_NM"
5841
5842
5843
5844 { echo "$as_me:$LINENO: checking for GNU make" >&5
5845 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5846 if test "${llvm_cv_gnu_make_command+set}" = set; then
5847   echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849   llvm_cv_gnu_make_command=''
5850  for a in "$MAKE" make gmake gnumake ; do
5851   if test -z "$a" ; then continue ; fi ;
5852   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5853   then
5854    llvm_cv_gnu_make_command=$a ;
5855    break;
5856   fi
5857  done
5858 fi
5859 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5860 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5861  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5862    ifGNUmake='' ;
5863  else
5864    ifGNUmake='#' ;
5865    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5866 echo "${ECHO_T}\"Not found\"" >&6; };
5867  fi
5868
5869
5870 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5871 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5872 LN_S=$as_ln_s
5873 if test "$LN_S" = "ln -s"; then
5874   { echo "$as_me:$LINENO: result: yes" >&5
5875 echo "${ECHO_T}yes" >&6; }
5876 else
5877   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5878 echo "${ECHO_T}no, using $LN_S" >&6; }
5879 fi
5880
5881 # Extract the first word of "cmp", so it can be a program name with args.
5882 set dummy cmp; ac_word=$2
5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885 if test "${ac_cv_path_CMP+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888   case $CMP in
5889   [\\/]* | ?:[\\/]*)
5890   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5891   ;;
5892   *)
5893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5895 do
5896   IFS=$as_save_IFS
5897   test -z "$as_dir" && as_dir=.
5898   for ac_exec_ext in '' $ac_executable_extensions; do
5899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5900     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902     break 2
5903   fi
5904 done
5905 done
5906 IFS=$as_save_IFS
5907
5908   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5909   ;;
5910 esac
5911 fi
5912 CMP=$ac_cv_path_CMP
5913 if test -n "$CMP"; then
5914   { echo "$as_me:$LINENO: result: $CMP" >&5
5915 echo "${ECHO_T}$CMP" >&6; }
5916 else
5917   { echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6; }
5919 fi
5920
5921
5922 # Extract the first word of "cp", so it can be a program name with args.
5923 set dummy cp; ac_word=$2
5924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5926 if test "${ac_cv_path_CP+set}" = set; then
5927   echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929   case $CP in
5930   [\\/]* | ?:[\\/]*)
5931   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5932   ;;
5933   *)
5934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937   IFS=$as_save_IFS
5938   test -z "$as_dir" && as_dir=.
5939   for ac_exec_ext in '' $ac_executable_extensions; do
5940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5941     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943     break 2
5944   fi
5945 done
5946 done
5947 IFS=$as_save_IFS
5948
5949   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5950   ;;
5951 esac
5952 fi
5953 CP=$ac_cv_path_CP
5954 if test -n "$CP"; then
5955   { echo "$as_me:$LINENO: result: $CP" >&5
5956 echo "${ECHO_T}$CP" >&6; }
5957 else
5958   { echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6; }
5960 fi
5961
5962
5963 # Extract the first word of "date", so it can be a program name with args.
5964 set dummy date; ac_word=$2
5965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5967 if test "${ac_cv_path_DATE+set}" = set; then
5968   echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970   case $DATE in
5971   [\\/]* | ?:[\\/]*)
5972   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5973   ;;
5974   *)
5975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978   IFS=$as_save_IFS
5979   test -z "$as_dir" && as_dir=.
5980   for ac_exec_ext in '' $ac_executable_extensions; do
5981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5982     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984     break 2
5985   fi
5986 done
5987 done
5988 IFS=$as_save_IFS
5989
5990   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5991   ;;
5992 esac
5993 fi
5994 DATE=$ac_cv_path_DATE
5995 if test -n "$DATE"; then
5996   { echo "$as_me:$LINENO: result: $DATE" >&5
5997 echo "${ECHO_T}$DATE" >&6; }
5998 else
5999   { echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6; }
6001 fi
6002
6003
6004 # Extract the first word of "find", so it can be a program name with args.
6005 set dummy find; ac_word=$2
6006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6008 if test "${ac_cv_path_FIND+set}" = set; then
6009   echo $ECHO_N "(cached) $ECHO_C" >&6
6010 else
6011   case $FIND in
6012   [\\/]* | ?:[\\/]*)
6013   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6014   ;;
6015   *)
6016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6018 do
6019   IFS=$as_save_IFS
6020   test -z "$as_dir" && as_dir=.
6021   for ac_exec_ext in '' $ac_executable_extensions; do
6022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6023     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025     break 2
6026   fi
6027 done
6028 done
6029 IFS=$as_save_IFS
6030
6031   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6032   ;;
6033 esac
6034 fi
6035 FIND=$ac_cv_path_FIND
6036 if test -n "$FIND"; then
6037   { echo "$as_me:$LINENO: result: $FIND" >&5
6038 echo "${ECHO_T}$FIND" >&6; }
6039 else
6040   { echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6; }
6042 fi
6043
6044
6045 # Extract the first word of "grep", so it can be a program name with args.
6046 set dummy grep; ac_word=$2
6047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6049 if test "${ac_cv_path_GREP+set}" = set; then
6050   echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052   case $GREP in
6053   [\\/]* | ?:[\\/]*)
6054   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6055   ;;
6056   *)
6057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6059 do
6060   IFS=$as_save_IFS
6061   test -z "$as_dir" && as_dir=.
6062   for ac_exec_ext in '' $ac_executable_extensions; do
6063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6064     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6066     break 2
6067   fi
6068 done
6069 done
6070 IFS=$as_save_IFS
6071
6072   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6073   ;;
6074 esac
6075 fi
6076 GREP=$ac_cv_path_GREP
6077 if test -n "$GREP"; then
6078   { echo "$as_me:$LINENO: result: $GREP" >&5
6079 echo "${ECHO_T}$GREP" >&6; }
6080 else
6081   { echo "$as_me:$LINENO: result: no" >&5
6082 echo "${ECHO_T}no" >&6; }
6083 fi
6084
6085
6086 # Extract the first word of "mkdir", so it can be a program name with args.
6087 set dummy mkdir; ac_word=$2
6088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6090 if test "${ac_cv_path_MKDIR+set}" = set; then
6091   echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093   case $MKDIR in
6094   [\\/]* | ?:[\\/]*)
6095   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6096   ;;
6097   *)
6098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101   IFS=$as_save_IFS
6102   test -z "$as_dir" && as_dir=.
6103   for ac_exec_ext in '' $ac_executable_extensions; do
6104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6105     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107     break 2
6108   fi
6109 done
6110 done
6111 IFS=$as_save_IFS
6112
6113   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6114   ;;
6115 esac
6116 fi
6117 MKDIR=$ac_cv_path_MKDIR
6118 if test -n "$MKDIR"; then
6119   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6120 echo "${ECHO_T}$MKDIR" >&6; }
6121 else
6122   { echo "$as_me:$LINENO: result: no" >&5
6123 echo "${ECHO_T}no" >&6; }
6124 fi
6125
6126
6127 # Extract the first word of "mv", so it can be a program name with args.
6128 set dummy mv; ac_word=$2
6129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6131 if test "${ac_cv_path_MV+set}" = set; then
6132   echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6134   case $MV in
6135   [\\/]* | ?:[\\/]*)
6136   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6137   ;;
6138   *)
6139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 for as_dir in $PATH
6141 do
6142   IFS=$as_save_IFS
6143   test -z "$as_dir" && as_dir=.
6144   for ac_exec_ext in '' $ac_executable_extensions; do
6145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6146     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6148     break 2
6149   fi
6150 done
6151 done
6152 IFS=$as_save_IFS
6153
6154   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6155   ;;
6156 esac
6157 fi
6158 MV=$ac_cv_path_MV
6159 if test -n "$MV"; then
6160   { echo "$as_me:$LINENO: result: $MV" >&5
6161 echo "${ECHO_T}$MV" >&6; }
6162 else
6163   { echo "$as_me:$LINENO: result: no" >&5
6164 echo "${ECHO_T}no" >&6; }
6165 fi
6166
6167
6168 if test -n "$ac_tool_prefix"; then
6169   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6170 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6173 if test "${ac_cv_prog_RANLIB+set}" = set; then
6174   echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176   if test -n "$RANLIB"; then
6177   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6178 else
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6181 do
6182   IFS=$as_save_IFS
6183   test -z "$as_dir" && as_dir=.
6184   for ac_exec_ext in '' $ac_executable_extensions; do
6185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6186     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188     break 2
6189   fi
6190 done
6191 done
6192 IFS=$as_save_IFS
6193
6194 fi
6195 fi
6196 RANLIB=$ac_cv_prog_RANLIB
6197 if test -n "$RANLIB"; then
6198   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6199 echo "${ECHO_T}$RANLIB" >&6; }
6200 else
6201   { echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6; }
6203 fi
6204
6205
6206 fi
6207 if test -z "$ac_cv_prog_RANLIB"; then
6208   ac_ct_RANLIB=$RANLIB
6209   # Extract the first word of "ranlib", so it can be a program name with args.
6210 set dummy ranlib; ac_word=$2
6211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6213 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6214   echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216   if test -n "$ac_ct_RANLIB"; then
6217   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222   IFS=$as_save_IFS
6223   test -z "$as_dir" && as_dir=.
6224   for ac_exec_ext in '' $ac_executable_extensions; do
6225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6226     ac_cv_prog_ac_ct_RANLIB="ranlib"
6227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228     break 2
6229   fi
6230 done
6231 done
6232 IFS=$as_save_IFS
6233
6234 fi
6235 fi
6236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6237 if test -n "$ac_ct_RANLIB"; then
6238   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6239 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6240 else
6241   { echo "$as_me:$LINENO: result: no" >&5
6242 echo "${ECHO_T}no" >&6; }
6243 fi
6244
6245   if test "x$ac_ct_RANLIB" = x; then
6246     RANLIB=":"
6247   else
6248     case $cross_compiling:$ac_tool_warned in
6249 yes:)
6250 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6251 whose name does not start with the host triplet.  If you think this
6252 configuration is useful to you, please write to autoconf@gnu.org." >&5
6253 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6254 whose name does not start with the host triplet.  If you think this
6255 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6256 ac_tool_warned=yes ;;
6257 esac
6258     RANLIB=$ac_ct_RANLIB
6259   fi
6260 else
6261   RANLIB="$ac_cv_prog_RANLIB"
6262 fi
6263
6264 if test -n "$ac_tool_prefix"; then
6265   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6266 set dummy ${ac_tool_prefix}ar; ac_word=$2
6267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6269 if test "${ac_cv_prog_AR+set}" = set; then
6270   echo $ECHO_N "(cached) $ECHO_C" >&6
6271 else
6272   if test -n "$AR"; then
6273   ac_cv_prog_AR="$AR" # Let the user override the test.
6274 else
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 for as_dir in $PATH
6277 do
6278   IFS=$as_save_IFS
6279   test -z "$as_dir" && as_dir=.
6280   for ac_exec_ext in '' $ac_executable_extensions; do
6281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6282     ac_cv_prog_AR="${ac_tool_prefix}ar"
6283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6284     break 2
6285   fi
6286 done
6287 done
6288 IFS=$as_save_IFS
6289
6290 fi
6291 fi
6292 AR=$ac_cv_prog_AR
6293 if test -n "$AR"; then
6294   { echo "$as_me:$LINENO: result: $AR" >&5
6295 echo "${ECHO_T}$AR" >&6; }
6296 else
6297   { echo "$as_me:$LINENO: result: no" >&5
6298 echo "${ECHO_T}no" >&6; }
6299 fi
6300
6301
6302 fi
6303 if test -z "$ac_cv_prog_AR"; then
6304   ac_ct_AR=$AR
6305   # Extract the first word of "ar", so it can be a program name with args.
6306 set dummy ar; ac_word=$2
6307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6309 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6310   echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312   if test -n "$ac_ct_AR"; then
6313   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318   IFS=$as_save_IFS
6319   test -z "$as_dir" && as_dir=.
6320   for ac_exec_ext in '' $ac_executable_extensions; do
6321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6322     ac_cv_prog_ac_ct_AR="ar"
6323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6324     break 2
6325   fi
6326 done
6327 done
6328 IFS=$as_save_IFS
6329
6330 fi
6331 fi
6332 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6333 if test -n "$ac_ct_AR"; then
6334   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6335 echo "${ECHO_T}$ac_ct_AR" >&6; }
6336 else
6337   { echo "$as_me:$LINENO: result: no" >&5
6338 echo "${ECHO_T}no" >&6; }
6339 fi
6340
6341   if test "x$ac_ct_AR" = x; then
6342     AR="false"
6343   else
6344     case $cross_compiling:$ac_tool_warned in
6345 yes:)
6346 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6347 whose name does not start with the host triplet.  If you think this
6348 configuration is useful to you, please write to autoconf@gnu.org." >&5
6349 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6350 whose name does not start with the host triplet.  If you think this
6351 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6352 ac_tool_warned=yes ;;
6353 esac
6354     AR=$ac_ct_AR
6355   fi
6356 else
6357   AR="$ac_cv_prog_AR"
6358 fi
6359
6360 # Extract the first word of "rm", so it can be a program name with args.
6361 set dummy rm; ac_word=$2
6362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6364 if test "${ac_cv_path_RM+set}" = set; then
6365   echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367   case $RM in
6368   [\\/]* | ?:[\\/]*)
6369   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6370   ;;
6371   *)
6372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6374 do
6375   IFS=$as_save_IFS
6376   test -z "$as_dir" && as_dir=.
6377   for ac_exec_ext in '' $ac_executable_extensions; do
6378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6379     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381     break 2
6382   fi
6383 done
6384 done
6385 IFS=$as_save_IFS
6386
6387   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6388   ;;
6389 esac
6390 fi
6391 RM=$ac_cv_path_RM
6392 if test -n "$RM"; then
6393   { echo "$as_me:$LINENO: result: $RM" >&5
6394 echo "${ECHO_T}$RM" >&6; }
6395 else
6396   { echo "$as_me:$LINENO: result: no" >&5
6397 echo "${ECHO_T}no" >&6; }
6398 fi
6399
6400
6401 # Extract the first word of "sed", so it can be a program name with args.
6402 set dummy sed; ac_word=$2
6403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6405 if test "${ac_cv_path_SED+set}" = set; then
6406   echo $ECHO_N "(cached) $ECHO_C" >&6
6407 else
6408   case $SED in
6409   [\\/]* | ?:[\\/]*)
6410   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6411   ;;
6412   *)
6413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6415 do
6416   IFS=$as_save_IFS
6417   test -z "$as_dir" && as_dir=.
6418   for ac_exec_ext in '' $ac_executable_extensions; do
6419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6420     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6422     break 2
6423   fi
6424 done
6425 done
6426 IFS=$as_save_IFS
6427
6428   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6429   ;;
6430 esac
6431 fi
6432 SED=$ac_cv_path_SED
6433 if test -n "$SED"; then
6434   { echo "$as_me:$LINENO: result: $SED" >&5
6435 echo "${ECHO_T}$SED" >&6; }
6436 else
6437   { echo "$as_me:$LINENO: result: no" >&5
6438 echo "${ECHO_T}no" >&6; }
6439 fi
6440
6441
6442 # Extract the first word of "tar", so it can be a program name with args.
6443 set dummy tar; ac_word=$2
6444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6446 if test "${ac_cv_path_TAR+set}" = set; then
6447   echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449   case $TAR in
6450   [\\/]* | ?:[\\/]*)
6451   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6452   ;;
6453   *)
6454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457   IFS=$as_save_IFS
6458   test -z "$as_dir" && as_dir=.
6459   for ac_exec_ext in '' $ac_executable_extensions; do
6460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6461     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6463     break 2
6464   fi
6465 done
6466 done
6467 IFS=$as_save_IFS
6468
6469   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6470   ;;
6471 esac
6472 fi
6473 TAR=$ac_cv_path_TAR
6474 if test -n "$TAR"; then
6475   { echo "$as_me:$LINENO: result: $TAR" >&5
6476 echo "${ECHO_T}$TAR" >&6; }
6477 else
6478   { echo "$as_me:$LINENO: result: no" >&5
6479 echo "${ECHO_T}no" >&6; }
6480 fi
6481
6482
6483 # Extract the first word of "pwd", so it can be a program name with args.
6484 set dummy pwd; ac_word=$2
6485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6487 if test "${ac_cv_path_BINPWD+set}" = set; then
6488   echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490   case $BINPWD in
6491   [\\/]* | ?:[\\/]*)
6492   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6493   ;;
6494   *)
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_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
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   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6511   ;;
6512 esac
6513 fi
6514 BINPWD=$ac_cv_path_BINPWD
6515 if test -n "$BINPWD"; then
6516   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6517 echo "${ECHO_T}$BINPWD" >&6; }
6518 else
6519   { echo "$as_me:$LINENO: result: no" >&5
6520 echo "${ECHO_T}no" >&6; }
6521 fi
6522
6523
6524
6525 # Extract the first word of "Graphviz", so it can be a program name with args.
6526 set dummy Graphviz; ac_word=$2
6527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6529 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6530   echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532   case $GRAPHVIZ in
6533   [\\/]* | ?:[\\/]*)
6534   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6535   ;;
6536   *)
6537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 for as_dir in $PATH
6539 do
6540   IFS=$as_save_IFS
6541   test -z "$as_dir" && as_dir=.
6542   for ac_exec_ext in '' $ac_executable_extensions; do
6543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6544     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6546     break 2
6547   fi
6548 done
6549 done
6550 IFS=$as_save_IFS
6551
6552   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6553   ;;
6554 esac
6555 fi
6556 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6557 if test -n "$GRAPHVIZ"; then
6558   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6559 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6560 else
6561   { echo "$as_me:$LINENO: result: no" >&5
6562 echo "${ECHO_T}no" >&6; }
6563 fi
6564
6565
6566 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6567
6568 cat >>confdefs.h <<\_ACEOF
6569 #define HAVE_GRAPHVIZ 1
6570 _ACEOF
6571
6572     if test "$llvm_cv_os_type" = "MingW" ; then
6573     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6574   fi
6575
6576 cat >>confdefs.h <<_ACEOF
6577 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6578 _ACEOF
6579
6580 fi
6581 # Extract the first word of "dot", so it can be a program name with args.
6582 set dummy dot; 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_DOT+set}" = set; then
6586   echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588   case $DOT in
6589   [\\/]* | ?:[\\/]*)
6590   ac_cv_path_DOT="$DOT" # 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_DOT="$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_DOT" && ac_cv_path_DOT="echo dot"
6609   ;;
6610 esac
6611 fi
6612 DOT=$ac_cv_path_DOT
6613 if test -n "$DOT"; then
6614   { echo "$as_me:$LINENO: result: $DOT" >&5
6615 echo "${ECHO_T}$DOT" >&6; }
6616 else
6617   { echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6; }
6619 fi
6620
6621
6622 if test "$DOT" != "echo dot" ; then
6623
6624 cat >>confdefs.h <<\_ACEOF
6625 #define HAVE_DOT 1
6626 _ACEOF
6627
6628     if test "$llvm_cv_os_type" = "MingW" ; then
6629     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6630   fi
6631
6632 cat >>confdefs.h <<_ACEOF
6633 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6634 _ACEOF
6635
6636 fi
6637 # Extract the first word of "fdp", so it can be a program name with args.
6638 set dummy fdp; ac_word=$2
6639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6641 if test "${ac_cv_path_FDP+set}" = set; then
6642   echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644   case $FDP in
6645   [\\/]* | ?:[\\/]*)
6646   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6647   ;;
6648   *)
6649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652   IFS=$as_save_IFS
6653   test -z "$as_dir" && as_dir=.
6654   for ac_exec_ext in '' $ac_executable_extensions; do
6655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6656     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658     break 2
6659   fi
6660 done
6661 done
6662 IFS=$as_save_IFS
6663
6664   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6665   ;;
6666 esac
6667 fi
6668 FDP=$ac_cv_path_FDP
6669 if test -n "$FDP"; then
6670   { echo "$as_me:$LINENO: result: $FDP" >&5
6671 echo "${ECHO_T}$FDP" >&6; }
6672 else
6673   { echo "$as_me:$LINENO: result: no" >&5
6674 echo "${ECHO_T}no" >&6; }
6675 fi
6676
6677
6678 if test "$FDP" != "echo fdp" ; then
6679
6680 cat >>confdefs.h <<\_ACEOF
6681 #define HAVE_FDP 1
6682 _ACEOF
6683
6684     if test "$llvm_cv_os_type" = "MingW" ; then
6685     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6686   fi
6687
6688 cat >>confdefs.h <<_ACEOF
6689 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6690 _ACEOF
6691
6692 fi
6693 # Extract the first word of "neato", so it can be a program name with args.
6694 set dummy neato; ac_word=$2
6695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6697 if test "${ac_cv_path_NEATO+set}" = set; then
6698   echo $ECHO_N "(cached) $ECHO_C" >&6
6699 else
6700   case $NEATO in
6701   [\\/]* | ?:[\\/]*)
6702   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6703   ;;
6704   *)
6705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6707 do
6708   IFS=$as_save_IFS
6709   test -z "$as_dir" && as_dir=.
6710   for ac_exec_ext in '' $ac_executable_extensions; do
6711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6712     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714     break 2
6715   fi
6716 done
6717 done
6718 IFS=$as_save_IFS
6719
6720   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6721   ;;
6722 esac
6723 fi
6724 NEATO=$ac_cv_path_NEATO
6725 if test -n "$NEATO"; then
6726   { echo "$as_me:$LINENO: result: $NEATO" >&5
6727 echo "${ECHO_T}$NEATO" >&6; }
6728 else
6729   { echo "$as_me:$LINENO: result: no" >&5
6730 echo "${ECHO_T}no" >&6; }
6731 fi
6732
6733
6734 if test "$NEATO" != "echo neato" ; then
6735
6736 cat >>confdefs.h <<\_ACEOF
6737 #define HAVE_NEATO 1
6738 _ACEOF
6739
6740     if test "$llvm_cv_os_type" = "MingW" ; then
6741     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6742   fi
6743
6744 cat >>confdefs.h <<_ACEOF
6745 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6746 _ACEOF
6747
6748 fi
6749 # Extract the first word of "twopi", so it can be a program name with args.
6750 set dummy twopi; ac_word=$2
6751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6753 if test "${ac_cv_path_TWOPI+set}" = set; then
6754   echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756   case $TWOPI in
6757   [\\/]* | ?:[\\/]*)
6758   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6759   ;;
6760   *)
6761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6763 do
6764   IFS=$as_save_IFS
6765   test -z "$as_dir" && as_dir=.
6766   for ac_exec_ext in '' $ac_executable_extensions; do
6767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6768     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770     break 2
6771   fi
6772 done
6773 done
6774 IFS=$as_save_IFS
6775
6776   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6777   ;;
6778 esac
6779 fi
6780 TWOPI=$ac_cv_path_TWOPI
6781 if test -n "$TWOPI"; then
6782   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6783 echo "${ECHO_T}$TWOPI" >&6; }
6784 else
6785   { echo "$as_me:$LINENO: result: no" >&5
6786 echo "${ECHO_T}no" >&6; }
6787 fi
6788
6789
6790 if test "$TWOPI" != "echo twopi" ; then
6791
6792 cat >>confdefs.h <<\_ACEOF
6793 #define HAVE_TWOPI 1
6794 _ACEOF
6795
6796     if test "$llvm_cv_os_type" = "MingW" ; then
6797     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6798   fi
6799
6800 cat >>confdefs.h <<_ACEOF
6801 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6802 _ACEOF
6803
6804 fi
6805 # Extract the first word of "circo", so it can be a program name with args.
6806 set dummy circo; ac_word=$2
6807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6809 if test "${ac_cv_path_CIRCO+set}" = set; then
6810   echo $ECHO_N "(cached) $ECHO_C" >&6
6811 else
6812   case $CIRCO in
6813   [\\/]* | ?:[\\/]*)
6814   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6815   ;;
6816   *)
6817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820   IFS=$as_save_IFS
6821   test -z "$as_dir" && as_dir=.
6822   for ac_exec_ext in '' $ac_executable_extensions; do
6823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6824     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6826     break 2
6827   fi
6828 done
6829 done
6830 IFS=$as_save_IFS
6831
6832   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6833   ;;
6834 esac
6835 fi
6836 CIRCO=$ac_cv_path_CIRCO
6837 if test -n "$CIRCO"; then
6838   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6839 echo "${ECHO_T}$CIRCO" >&6; }
6840 else
6841   { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6843 fi
6844
6845
6846 if test "$CIRCO" != "echo circo" ; then
6847
6848 cat >>confdefs.h <<\_ACEOF
6849 #define HAVE_CIRCO 1
6850 _ACEOF
6851
6852     if test "$llvm_cv_os_type" = "MingW" ; then
6853     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6854   fi
6855
6856 cat >>confdefs.h <<_ACEOF
6857 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6858 _ACEOF
6859
6860 fi
6861 for ac_prog in gv gsview32
6862 do
6863   # Extract the first word of "$ac_prog", so it can be a program name with args.
6864 set dummy $ac_prog; ac_word=$2
6865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867 if test "${ac_cv_path_GV+set}" = set; then
6868   echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870   case $GV in
6871   [\\/]* | ?:[\\/]*)
6872   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6873   ;;
6874   *)
6875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878   IFS=$as_save_IFS
6879   test -z "$as_dir" && as_dir=.
6880   for ac_exec_ext in '' $ac_executable_extensions; do
6881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6882     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884     break 2
6885   fi
6886 done
6887 done
6888 IFS=$as_save_IFS
6889
6890   ;;
6891 esac
6892 fi
6893 GV=$ac_cv_path_GV
6894 if test -n "$GV"; then
6895   { echo "$as_me:$LINENO: result: $GV" >&5
6896 echo "${ECHO_T}$GV" >&6; }
6897 else
6898   { echo "$as_me:$LINENO: result: no" >&5
6899 echo "${ECHO_T}no" >&6; }
6900 fi
6901
6902
6903   test -n "$GV" && break
6904 done
6905 test -n "$GV" || GV="echo gv"
6906
6907 if test "$GV" != "echo gv" ; then
6908
6909 cat >>confdefs.h <<\_ACEOF
6910 #define HAVE_GV 1
6911 _ACEOF
6912
6913     if test "$llvm_cv_os_type" = "MingW" ; then
6914     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6915   fi
6916
6917 cat >>confdefs.h <<_ACEOF
6918 #define LLVM_PATH_GV "$GV${EXEEXT}"
6919 _ACEOF
6920
6921 fi
6922 # Extract the first word of "dotty", so it can be a program name with args.
6923 set dummy dotty; ac_word=$2
6924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6926 if test "${ac_cv_path_DOTTY+set}" = set; then
6927   echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929   case $DOTTY in
6930   [\\/]* | ?:[\\/]*)
6931   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6932   ;;
6933   *)
6934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937   IFS=$as_save_IFS
6938   test -z "$as_dir" && as_dir=.
6939   for ac_exec_ext in '' $ac_executable_extensions; do
6940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6941     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6943     break 2
6944   fi
6945 done
6946 done
6947 IFS=$as_save_IFS
6948
6949   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6950   ;;
6951 esac
6952 fi
6953 DOTTY=$ac_cv_path_DOTTY
6954 if test -n "$DOTTY"; then
6955   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6956 echo "${ECHO_T}$DOTTY" >&6; }
6957 else
6958   { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6960 fi
6961
6962
6963 if test "$DOTTY" != "echo dotty" ; then
6964
6965 cat >>confdefs.h <<\_ACEOF
6966 #define HAVE_DOTTY 1
6967 _ACEOF
6968
6969     if test "$llvm_cv_os_type" = "MingW" ; then
6970     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6971   fi
6972
6973 cat >>confdefs.h <<_ACEOF
6974 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6975 _ACEOF
6976
6977 fi
6978 # Extract the first word of "xdot.py", so it can be a program name with args.
6979 set dummy xdot.py; ac_word=$2
6980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6983   echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985   case $XDOT_PY in
6986   [\\/]* | ?:[\\/]*)
6987   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6988   ;;
6989   *)
6990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6992 do
6993   IFS=$as_save_IFS
6994   test -z "$as_dir" && as_dir=.
6995   for ac_exec_ext in '' $ac_executable_extensions; do
6996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6997     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6999     break 2
7000   fi
7001 done
7002 done
7003 IFS=$as_save_IFS
7004
7005   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7006   ;;
7007 esac
7008 fi
7009 XDOT_PY=$ac_cv_path_XDOT_PY
7010 if test -n "$XDOT_PY"; then
7011   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7012 echo "${ECHO_T}$XDOT_PY" >&6; }
7013 else
7014   { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7016 fi
7017
7018
7019 if test "$XDOT_PY" != "echo xdot.py" ; then
7020
7021 cat >>confdefs.h <<\_ACEOF
7022 #define HAVE_XDOT_PY 1
7023 _ACEOF
7024
7025     if test "$llvm_cv_os_type" = "MingW" ; then
7026     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7027   fi
7028
7029 cat >>confdefs.h <<_ACEOF
7030 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7031 _ACEOF
7032
7033 fi
7034
7035 # Find a good install program.  We prefer a C program (faster),
7036 # so one script is as good as another.  But avoid the broken or
7037 # incompatible versions:
7038 # SysV /etc/install, /usr/sbin/install
7039 # SunOS /usr/etc/install
7040 # IRIX /sbin/install
7041 # AIX /bin/install
7042 # AmigaOS /C/install, which installs bootblocks on floppy discs
7043 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7044 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7045 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7046 # OS/2's system install, which has a completely different semantic
7047 # ./install, which can be erroneously created by make from ./install.sh.
7048 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7049 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7050 if test -z "$INSTALL"; then
7051 if test "${ac_cv_path_install+set}" = set; then
7052   echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7056 do
7057   IFS=$as_save_IFS
7058   test -z "$as_dir" && as_dir=.
7059   # Account for people who put trailing slashes in PATH elements.
7060 case $as_dir/ in
7061   ./ | .// | /cC/* | \
7062   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7063   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7064   /usr/ucb/* ) ;;
7065   *)
7066     # OSF1 and SCO ODT 3.0 have their own names for install.
7067     # Don't use installbsd from OSF since it installs stuff as root
7068     # by default.
7069     for ac_prog in ginstall scoinst install; do
7070       for ac_exec_ext in '' $ac_executable_extensions; do
7071         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7072           if test $ac_prog = install &&
7073             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7074             # AIX install.  It has an incompatible calling convention.
7075             :
7076           elif test $ac_prog = install &&
7077             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7078             # program-specific install script used by HP pwplus--don't use.
7079             :
7080           else
7081             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7082             break 3
7083           fi
7084         fi
7085       done
7086     done
7087     ;;
7088 esac
7089 done
7090 IFS=$as_save_IFS
7091
7092
7093 fi
7094   if test "${ac_cv_path_install+set}" = set; then
7095     INSTALL=$ac_cv_path_install
7096   else
7097     # As a last resort, use the slow shell script.  Don't cache a
7098     # value for INSTALL within a source directory, because that will
7099     # break other packages using the cache if that directory is
7100     # removed, or if the value is a relative name.
7101     INSTALL=$ac_install_sh
7102   fi
7103 fi
7104 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7105 echo "${ECHO_T}$INSTALL" >&6; }
7106
7107 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7108 # It thinks the first close brace ends the variable substitution.
7109 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7110
7111 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7112
7113 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7114
7115 case "$INSTALL" in
7116  [\\/$]* | ?:[\\/]* ) ;;
7117  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7118 esac
7119
7120 # Extract the first word of "bzip2", so it can be a program name with args.
7121 set dummy bzip2; ac_word=$2
7122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124 if test "${ac_cv_path_BZIP2+set}" = set; then
7125   echo $ECHO_N "(cached) $ECHO_C" >&6
7126 else
7127   case $BZIP2 in
7128   [\\/]* | ?:[\\/]*)
7129   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7130   ;;
7131   *)
7132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135   IFS=$as_save_IFS
7136   test -z "$as_dir" && as_dir=.
7137   for ac_exec_ext in '' $ac_executable_extensions; do
7138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7139     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141     break 2
7142   fi
7143 done
7144 done
7145 IFS=$as_save_IFS
7146
7147   ;;
7148 esac
7149 fi
7150 BZIP2=$ac_cv_path_BZIP2
7151 if test -n "$BZIP2"; then
7152   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7153 echo "${ECHO_T}$BZIP2" >&6; }
7154 else
7155   { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7157 fi
7158
7159
7160 # Extract the first word of "cat", so it can be a program name with args.
7161 set dummy cat; ac_word=$2
7162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7164 if test "${ac_cv_path_CAT+set}" = set; then
7165   echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167   case $CAT in
7168   [\\/]* | ?:[\\/]*)
7169   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7170   ;;
7171   *)
7172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175   IFS=$as_save_IFS
7176   test -z "$as_dir" && as_dir=.
7177   for ac_exec_ext in '' $ac_executable_extensions; do
7178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7179     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7181     break 2
7182   fi
7183 done
7184 done
7185 IFS=$as_save_IFS
7186
7187   ;;
7188 esac
7189 fi
7190 CAT=$ac_cv_path_CAT
7191 if test -n "$CAT"; then
7192   { echo "$as_me:$LINENO: result: $CAT" >&5
7193 echo "${ECHO_T}$CAT" >&6; }
7194 else
7195   { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7197 fi
7198
7199
7200 # Extract the first word of "doxygen", so it can be a program name with args.
7201 set dummy doxygen; ac_word=$2
7202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7204 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7205   echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207   case $DOXYGEN in
7208   [\\/]* | ?:[\\/]*)
7209   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7210   ;;
7211   *)
7212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215   IFS=$as_save_IFS
7216   test -z "$as_dir" && as_dir=.
7217   for ac_exec_ext in '' $ac_executable_extensions; do
7218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7219     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221     break 2
7222   fi
7223 done
7224 done
7225 IFS=$as_save_IFS
7226
7227   ;;
7228 esac
7229 fi
7230 DOXYGEN=$ac_cv_path_DOXYGEN
7231 if test -n "$DOXYGEN"; then
7232   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7233 echo "${ECHO_T}$DOXYGEN" >&6; }
7234 else
7235   { echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6; }
7237 fi
7238
7239
7240 # Extract the first word of "groff", so it can be a program name with args.
7241 set dummy groff; ac_word=$2
7242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7244 if test "${ac_cv_path_GROFF+set}" = set; then
7245   echo $ECHO_N "(cached) $ECHO_C" >&6
7246 else
7247   case $GROFF in
7248   [\\/]* | ?:[\\/]*)
7249   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7250   ;;
7251   *)
7252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7254 do
7255   IFS=$as_save_IFS
7256   test -z "$as_dir" && as_dir=.
7257   for ac_exec_ext in '' $ac_executable_extensions; do
7258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7259     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261     break 2
7262   fi
7263 done
7264 done
7265 IFS=$as_save_IFS
7266
7267   ;;
7268 esac
7269 fi
7270 GROFF=$ac_cv_path_GROFF
7271 if test -n "$GROFF"; then
7272   { echo "$as_me:$LINENO: result: $GROFF" >&5
7273 echo "${ECHO_T}$GROFF" >&6; }
7274 else
7275   { echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6; }
7277 fi
7278
7279
7280 # Extract the first word of "gzip", so it can be a program name with args.
7281 set dummy gzip; ac_word=$2
7282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7284 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7285   echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287   case $GZIPBIN in
7288   [\\/]* | ?:[\\/]*)
7289   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7290   ;;
7291   *)
7292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7294 do
7295   IFS=$as_save_IFS
7296   test -z "$as_dir" && as_dir=.
7297   for ac_exec_ext in '' $ac_executable_extensions; do
7298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7299     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7301     break 2
7302   fi
7303 done
7304 done
7305 IFS=$as_save_IFS
7306
7307   ;;
7308 esac
7309 fi
7310 GZIPBIN=$ac_cv_path_GZIPBIN
7311 if test -n "$GZIPBIN"; then
7312   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7313 echo "${ECHO_T}$GZIPBIN" >&6; }
7314 else
7315   { echo "$as_me:$LINENO: result: no" >&5
7316 echo "${ECHO_T}no" >&6; }
7317 fi
7318
7319
7320 # Extract the first word of "pdfroff", so it can be a program name with args.
7321 set dummy pdfroff; ac_word=$2
7322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7324 if test "${ac_cv_path_PDFROFF+set}" = set; then
7325   echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327   case $PDFROFF in
7328   [\\/]* | ?:[\\/]*)
7329   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7330   ;;
7331   *)
7332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 for as_dir in $PATH
7334 do
7335   IFS=$as_save_IFS
7336   test -z "$as_dir" && as_dir=.
7337   for ac_exec_ext in '' $ac_executable_extensions; do
7338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7339     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7341     break 2
7342   fi
7343 done
7344 done
7345 IFS=$as_save_IFS
7346
7347   ;;
7348 esac
7349 fi
7350 PDFROFF=$ac_cv_path_PDFROFF
7351 if test -n "$PDFROFF"; then
7352   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7353 echo "${ECHO_T}$PDFROFF" >&6; }
7354 else
7355   { echo "$as_me:$LINENO: result: no" >&5
7356 echo "${ECHO_T}no" >&6; }
7357 fi
7358
7359
7360 # Extract the first word of "zip", so it can be a program name with args.
7361 set dummy zip; ac_word=$2
7362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7364 if test "${ac_cv_path_ZIP+set}" = set; then
7365   echo $ECHO_N "(cached) $ECHO_C" >&6
7366 else
7367   case $ZIP in
7368   [\\/]* | ?:[\\/]*)
7369   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7370   ;;
7371   *)
7372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 for as_dir in $PATH
7374 do
7375   IFS=$as_save_IFS
7376   test -z "$as_dir" && as_dir=.
7377   for ac_exec_ext in '' $ac_executable_extensions; do
7378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7379     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7381     break 2
7382   fi
7383 done
7384 done
7385 IFS=$as_save_IFS
7386
7387   ;;
7388 esac
7389 fi
7390 ZIP=$ac_cv_path_ZIP
7391 if test -n "$ZIP"; then
7392   { echo "$as_me:$LINENO: result: $ZIP" >&5
7393 echo "${ECHO_T}$ZIP" >&6; }
7394 else
7395   { echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6; }
7397 fi
7398
7399
7400 for ac_prog in ocamlc
7401 do
7402   # Extract the first word of "$ac_prog", so it can be a program name with args.
7403 set dummy $ac_prog; ac_word=$2
7404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7406 if test "${ac_cv_path_OCAMLC+set}" = set; then
7407   echo $ECHO_N "(cached) $ECHO_C" >&6
7408 else
7409   case $OCAMLC in
7410   [\\/]* | ?:[\\/]*)
7411   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7412   ;;
7413   *)
7414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7416 do
7417   IFS=$as_save_IFS
7418   test -z "$as_dir" && as_dir=.
7419   for ac_exec_ext in '' $ac_executable_extensions; do
7420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7421     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7423     break 2
7424   fi
7425 done
7426 done
7427 IFS=$as_save_IFS
7428
7429   ;;
7430 esac
7431 fi
7432 OCAMLC=$ac_cv_path_OCAMLC
7433 if test -n "$OCAMLC"; then
7434   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7435 echo "${ECHO_T}$OCAMLC" >&6; }
7436 else
7437   { echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6; }
7439 fi
7440
7441
7442   test -n "$OCAMLC" && break
7443 done
7444
7445 for ac_prog in ocamlopt
7446 do
7447   # Extract the first word of "$ac_prog", so it can be a program name with args.
7448 set dummy $ac_prog; ac_word=$2
7449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7452   echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454   case $OCAMLOPT in
7455   [\\/]* | ?:[\\/]*)
7456   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7457   ;;
7458   *)
7459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462   IFS=$as_save_IFS
7463   test -z "$as_dir" && as_dir=.
7464   for ac_exec_ext in '' $ac_executable_extensions; do
7465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7466     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7468     break 2
7469   fi
7470 done
7471 done
7472 IFS=$as_save_IFS
7473
7474   ;;
7475 esac
7476 fi
7477 OCAMLOPT=$ac_cv_path_OCAMLOPT
7478 if test -n "$OCAMLOPT"; then
7479   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7480 echo "${ECHO_T}$OCAMLOPT" >&6; }
7481 else
7482   { echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6; }
7484 fi
7485
7486
7487   test -n "$OCAMLOPT" && break
7488 done
7489
7490 for ac_prog in ocamldep
7491 do
7492   # Extract the first word of "$ac_prog", so it can be a program name with args.
7493 set dummy $ac_prog; ac_word=$2
7494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7496 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7497   echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499   case $OCAMLDEP in
7500   [\\/]* | ?:[\\/]*)
7501   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7502   ;;
7503   *)
7504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507   IFS=$as_save_IFS
7508   test -z "$as_dir" && as_dir=.
7509   for ac_exec_ext in '' $ac_executable_extensions; do
7510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7511     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513     break 2
7514   fi
7515 done
7516 done
7517 IFS=$as_save_IFS
7518
7519   ;;
7520 esac
7521 fi
7522 OCAMLDEP=$ac_cv_path_OCAMLDEP
7523 if test -n "$OCAMLDEP"; then
7524   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7525 echo "${ECHO_T}$OCAMLDEP" >&6; }
7526 else
7527   { echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6; }
7529 fi
7530
7531
7532   test -n "$OCAMLDEP" && break
7533 done
7534
7535 for ac_prog in ocamldoc
7536 do
7537   # Extract the first word of "$ac_prog", so it can be a program name with args.
7538 set dummy $ac_prog; ac_word=$2
7539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7541 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7542   echo $ECHO_N "(cached) $ECHO_C" >&6
7543 else
7544   case $OCAMLDOC in
7545   [\\/]* | ?:[\\/]*)
7546   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7547   ;;
7548   *)
7549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 for as_dir in $PATH
7551 do
7552   IFS=$as_save_IFS
7553   test -z "$as_dir" && as_dir=.
7554   for ac_exec_ext in '' $ac_executable_extensions; do
7555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7556     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7558     break 2
7559   fi
7560 done
7561 done
7562 IFS=$as_save_IFS
7563
7564   ;;
7565 esac
7566 fi
7567 OCAMLDOC=$ac_cv_path_OCAMLDOC
7568 if test -n "$OCAMLDOC"; then
7569   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7570 echo "${ECHO_T}$OCAMLDOC" >&6; }
7571 else
7572   { echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6; }
7574 fi
7575
7576
7577   test -n "$OCAMLDOC" && break
7578 done
7579
7580 for ac_prog in gas as
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_GAS+set}" = set; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589   case $GAS in
7590   [\\/]* | ?:[\\/]*)
7591   ac_cv_path_GAS="$GAS" # 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_GAS="$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 GAS=$ac_cv_path_GAS
7613 if test -n "$GAS"; then
7614   { echo "$as_me:$LINENO: result: $GAS" >&5
7615 echo "${ECHO_T}$GAS" >&6; }
7616 else
7617   { echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6; }
7619 fi
7620
7621
7622   test -n "$GAS" && break
7623 done
7624
7625
7626 { echo "$as_me:$LINENO: checking for linker version" >&5
7627 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7628 if test "${llvm_cv_link_version+set}" = set; then
7629   echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631
7632    version_string="$(ld -v 2>&1 | head -1)"
7633
7634    # Check for ld64.
7635    if (echo "$version_string" | grep -q "ld64"); then
7636      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7637    else
7638      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7639    fi
7640
7641 fi
7642 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7643 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7644
7645 cat >>confdefs.h <<_ACEOF
7646 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7647 _ACEOF
7648
7649
7650
7651 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7652 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7653 if test "${llvm_cv_link_use_r+set}" = set; then
7654   echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656    ac_ext=c
7657 ac_cpp='$CPP $CPPFLAGS'
7658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7661
7662   oldcflags="$CFLAGS"
7663   CFLAGS="$CFLAGS -Wl,-R."
7664   cat >conftest.$ac_ext <<_ACEOF
7665 /* confdefs.h.  */
7666 _ACEOF
7667 cat confdefs.h >>conftest.$ac_ext
7668 cat >>conftest.$ac_ext <<_ACEOF
7669 /* end confdefs.h.  */
7670
7671 int
7672 main ()
7673 {
7674
7675   ;
7676   return 0;
7677 }
7678 _ACEOF
7679 rm -f conftest.$ac_objext conftest$ac_exeext
7680 if { (ac_try="$ac_link"
7681 case "(($ac_try" in
7682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7683   *) ac_try_echo=$ac_try;;
7684 esac
7685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7686   (eval "$ac_link") 2>conftest.er1
7687   ac_status=$?
7688   grep -v '^ *+' conftest.er1 >conftest.err
7689   rm -f conftest.er1
7690   cat conftest.err >&5
7691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692   (exit $ac_status); } &&
7693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7694   { (case "(($ac_try" in
7695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7696   *) ac_try_echo=$ac_try;;
7697 esac
7698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7699   (eval "$ac_try") 2>&5
7700   ac_status=$?
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); }; } &&
7703          { ac_try='test -s conftest$ac_exeext'
7704   { (case "(($ac_try" in
7705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706   *) ac_try_echo=$ac_try;;
7707 esac
7708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709   (eval "$ac_try") 2>&5
7710   ac_status=$?
7711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712   (exit $ac_status); }; }; then
7713   llvm_cv_link_use_r=yes
7714 else
7715   echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7717
7718         llvm_cv_link_use_r=no
7719 fi
7720
7721 rm -f core conftest.err conftest.$ac_objext \
7722       conftest$ac_exeext conftest.$ac_ext
7723   CFLAGS="$oldcflags"
7724   ac_ext=c
7725 ac_cpp='$CPP $CPPFLAGS'
7726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7729
7730
7731 fi
7732 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7733 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7734 if test "$llvm_cv_link_use_r" = yes ; then
7735
7736 cat >>confdefs.h <<\_ACEOF
7737 #define HAVE_LINK_R 1
7738 _ACEOF
7739
7740   fi
7741
7742
7743 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7744 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7745 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748    ac_ext=c
7749 ac_cpp='$CPP $CPPFLAGS'
7750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7753
7754   oldcflags="$CFLAGS"
7755   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7756   cat >conftest.$ac_ext <<_ACEOF
7757 /* confdefs.h.  */
7758 _ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h.  */
7762
7763 int
7764 main ()
7765 {
7766
7767   ;
7768   return 0;
7769 }
7770 _ACEOF
7771 rm -f conftest.$ac_objext conftest$ac_exeext
7772 if { (ac_try="$ac_link"
7773 case "(($ac_try" in
7774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775   *) ac_try_echo=$ac_try;;
7776 esac
7777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7778   (eval "$ac_link") 2>conftest.er1
7779   ac_status=$?
7780   grep -v '^ *+' conftest.er1 >conftest.err
7781   rm -f conftest.er1
7782   cat conftest.err >&5
7783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784   (exit $ac_status); } &&
7785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7786   { (case "(($ac_try" in
7787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788   *) ac_try_echo=$ac_try;;
7789 esac
7790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791   (eval "$ac_try") 2>&5
7792   ac_status=$?
7793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794   (exit $ac_status); }; } &&
7795          { ac_try='test -s conftest$ac_exeext'
7796   { (case "(($ac_try" in
7797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798   *) ac_try_echo=$ac_try;;
7799 esac
7800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801   (eval "$ac_try") 2>&5
7802   ac_status=$?
7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); }; }; then
7805   llvm_cv_link_use_export_dynamic=yes
7806 else
7807   echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7809
7810         llvm_cv_link_use_export_dynamic=no
7811 fi
7812
7813 rm -f core conftest.err conftest.$ac_objext \
7814       conftest$ac_exeext conftest.$ac_ext
7815   CFLAGS="$oldcflags"
7816   ac_ext=c
7817 ac_cpp='$CPP $CPPFLAGS'
7818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7821
7822
7823 fi
7824 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7825 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7826 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7827
7828 cat >>confdefs.h <<\_ACEOF
7829 #define HAVE_LINK_EXPORT_DYNAMIC 1
7830 _ACEOF
7831
7832   fi
7833
7834
7835 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7836 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7837 if test "${llvm_cv_link_use_version_script+set}" = set; then
7838   echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840    ac_ext=c
7841 ac_cpp='$CPP $CPPFLAGS'
7842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7845
7846   oldcflags="$CFLAGS"
7847
7848   # The following code is from the autoconf manual,
7849   # "11.13: Limitations of Usual Tools".
7850   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7851   # Use mktemp if possible; otherwise fall back on mkdir,
7852   # with $RANDOM to make collisions less likely.
7853   : ${TMPDIR=/tmp}
7854   {
7855     tmp=`
7856       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7857     ` &&
7858     test -n "$tmp" && test -d "$tmp"
7859   } || {
7860     tmp=$TMPDIR/foo$$-$RANDOM
7861     (umask 077 && mkdir "$tmp")
7862   } || exit $?
7863
7864   echo "{" > "$tmp/export.map"
7865   echo "  global: main;" >> "$tmp/export.map"
7866   echo "  local: *;" >> "$tmp/export.map"
7867   echo "};" >> "$tmp/export.map"
7868
7869   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7870   cat >conftest.$ac_ext <<_ACEOF
7871 /* confdefs.h.  */
7872 _ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h.  */
7876
7877 int
7878 main ()
7879 {
7880
7881   ;
7882   return 0;
7883 }
7884 _ACEOF
7885 rm -f conftest.$ac_objext conftest$ac_exeext
7886 if { (ac_try="$ac_link"
7887 case "(($ac_try" in
7888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889   *) ac_try_echo=$ac_try;;
7890 esac
7891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892   (eval "$ac_link") 2>conftest.er1
7893   ac_status=$?
7894   grep -v '^ *+' conftest.er1 >conftest.err
7895   rm -f conftest.er1
7896   cat conftest.err >&5
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); } &&
7899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7900   { (case "(($ac_try" in
7901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7902   *) ac_try_echo=$ac_try;;
7903 esac
7904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7905   (eval "$ac_try") 2>&5
7906   ac_status=$?
7907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908   (exit $ac_status); }; } &&
7909          { ac_try='test -s conftest$ac_exeext'
7910   { (case "(($ac_try" in
7911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912   *) ac_try_echo=$ac_try;;
7913 esac
7914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7915   (eval "$ac_try") 2>&5
7916   ac_status=$?
7917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918   (exit $ac_status); }; }; then
7919   llvm_cv_link_use_version_script=yes
7920 else
7921   echo "$as_me: failed program was:" >&5
7922 sed 's/^/| /' conftest.$ac_ext >&5
7923
7924         llvm_cv_link_use_version_script=no
7925 fi
7926
7927 rm -f core conftest.err conftest.$ac_objext \
7928       conftest$ac_exeext conftest.$ac_ext
7929   rm "$tmp/export.map"
7930   rmdir "$tmp"
7931   CFLAGS="$oldcflags"
7932   ac_ext=c
7933 ac_cpp='$CPP $CPPFLAGS'
7934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7937
7938
7939 fi
7940 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7941 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7942 if test "$llvm_cv_link_use_version_script" = yes ; then
7943   HAVE_LINK_VERSION_SCRIPT=1
7944
7945   fi
7946
7947
7948
7949
7950 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7951 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7952 if test "${ac_cv_c_const+set}" = set; then
7953   echo $ECHO_N "(cached) $ECHO_C" >&6
7954 else
7955   cat >conftest.$ac_ext <<_ACEOF
7956 /* confdefs.h.  */
7957 _ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h.  */
7961
7962 int
7963 main ()
7964 {
7965 /* FIXME: Include the comments suggested by Paul. */
7966 #ifndef __cplusplus
7967   /* Ultrix mips cc rejects this.  */
7968   typedef int charset[2];
7969   const charset x;
7970   /* SunOS 4.1.1 cc rejects this.  */
7971   char const *const *ccp;
7972   char **p;
7973   /* NEC SVR4.0.2 mips cc rejects this.  */
7974   struct point {int x, y;};
7975   static struct point const zero = {0,0};
7976   /* AIX XL C 1.02.0.0 rejects this.
7977      It does not let you subtract one const X* pointer from another in
7978      an arm of an if-expression whose if-part is not a constant
7979      expression */
7980   const char *g = "string";
7981   ccp = &g + (g ? g-g : 0);
7982   /* HPUX 7.0 cc rejects these. */
7983   ++ccp;
7984   p = (char**) ccp;
7985   ccp = (char const *const *) p;
7986   { /* SCO 3.2v4 cc rejects this.  */
7987     char *t;
7988     char const *s = 0 ? (char *) 0 : (char const *) 0;
7989
7990     *t++ = 0;
7991     if (s) return 0;
7992   }
7993   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7994     int x[] = {25, 17};
7995     const int *foo = &x[0];
7996     ++foo;
7997   }
7998   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7999     typedef const int *iptr;
8000     iptr p = 0;
8001     ++p;
8002   }
8003   { /* AIX XL C 1.02.0.0 rejects this saying
8004        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8005     struct s { int j; const int *ap[3]; };
8006     struct s *b; b->j = 5;
8007   }
8008   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8009     const int foo = 10;
8010     if (!foo) return 0;
8011   }
8012   return !x[0] && !zero.x;
8013 #endif
8014
8015   ;
8016   return 0;
8017 }
8018 _ACEOF
8019 rm -f conftest.$ac_objext
8020 if { (ac_try="$ac_compile"
8021 case "(($ac_try" in
8022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8023   *) ac_try_echo=$ac_try;;
8024 esac
8025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8026   (eval "$ac_compile") 2>conftest.er1
8027   ac_status=$?
8028   grep -v '^ *+' conftest.er1 >conftest.err
8029   rm -f conftest.er1
8030   cat conftest.err >&5
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); } &&
8033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8034   { (case "(($ac_try" in
8035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036   *) ac_try_echo=$ac_try;;
8037 esac
8038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039   (eval "$ac_try") 2>&5
8040   ac_status=$?
8041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042   (exit $ac_status); }; } &&
8043          { ac_try='test -s conftest.$ac_objext'
8044   { (case "(($ac_try" in
8045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046   *) ac_try_echo=$ac_try;;
8047 esac
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049   (eval "$ac_try") 2>&5
8050   ac_status=$?
8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); }; }; then
8053   ac_cv_c_const=yes
8054 else
8055   echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8057
8058         ac_cv_c_const=no
8059 fi
8060
8061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062 fi
8063 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8064 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8065 if test $ac_cv_c_const = no; then
8066
8067 cat >>confdefs.h <<\_ACEOF
8068 #define const
8069 _ACEOF
8070
8071 fi
8072
8073
8074
8075
8076
8077
8078 ac_header_dirent=no
8079 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8080   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8081 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8082 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8084   echo $ECHO_N "(cached) $ECHO_C" >&6
8085 else
8086   cat >conftest.$ac_ext <<_ACEOF
8087 /* confdefs.h.  */
8088 _ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h.  */
8092 #include <sys/types.h>
8093 #include <$ac_hdr>
8094
8095 int
8096 main ()
8097 {
8098 if ((DIR *) 0)
8099 return 0;
8100   ;
8101   return 0;
8102 }
8103 _ACEOF
8104 rm -f conftest.$ac_objext
8105 if { (ac_try="$ac_compile"
8106 case "(($ac_try" in
8107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108   *) ac_try_echo=$ac_try;;
8109 esac
8110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111   (eval "$ac_compile") 2>conftest.er1
8112   ac_status=$?
8113   grep -v '^ *+' conftest.er1 >conftest.err
8114   rm -f conftest.er1
8115   cat conftest.err >&5
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); } &&
8118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8119   { (case "(($ac_try" in
8120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121   *) ac_try_echo=$ac_try;;
8122 esac
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124   (eval "$ac_try") 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); }; } &&
8128          { ac_try='test -s conftest.$ac_objext'
8129   { (case "(($ac_try" in
8130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131   *) ac_try_echo=$ac_try;;
8132 esac
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134   (eval "$ac_try") 2>&5
8135   ac_status=$?
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); }; }; then
8138   eval "$as_ac_Header=yes"
8139 else
8140   echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8142
8143         eval "$as_ac_Header=no"
8144 fi
8145
8146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147 fi
8148 ac_res=`eval echo '${'$as_ac_Header'}'`
8149                { echo "$as_me:$LINENO: result: $ac_res" >&5
8150 echo "${ECHO_T}$ac_res" >&6; }
8151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8152   cat >>confdefs.h <<_ACEOF
8153 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8154 _ACEOF
8155
8156 ac_header_dirent=$ac_hdr; break
8157 fi
8158
8159 done
8160 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8161 if test $ac_header_dirent = dirent.h; then
8162   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8163 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8164 if test "${ac_cv_search_opendir+set}" = set; then
8165   echo $ECHO_N "(cached) $ECHO_C" >&6
8166 else
8167   ac_func_search_save_LIBS=$LIBS
8168 cat >conftest.$ac_ext <<_ACEOF
8169 /* confdefs.h.  */
8170 _ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h.  */
8174
8175 /* Override any GCC internal prototype to avoid an error.
8176    Use char because int might match the return type of a GCC
8177    builtin and then its argument prototype would still apply.  */
8178 #ifdef __cplusplus
8179 extern "C"
8180 #endif
8181 char opendir ();
8182 int
8183 main ()
8184 {
8185 return opendir ();
8186   ;
8187   return 0;
8188 }
8189 _ACEOF
8190 for ac_lib in '' dir; do
8191   if test -z "$ac_lib"; then
8192     ac_res="none required"
8193   else
8194     ac_res=-l$ac_lib
8195     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8196   fi
8197   rm -f conftest.$ac_objext conftest$ac_exeext
8198 if { (ac_try="$ac_link"
8199 case "(($ac_try" in
8200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201   *) ac_try_echo=$ac_try;;
8202 esac
8203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204   (eval "$ac_link") 2>conftest.er1
8205   ac_status=$?
8206   grep -v '^ *+' conftest.er1 >conftest.err
8207   rm -f conftest.er1
8208   cat conftest.err >&5
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); } &&
8211          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8212   { (case "(($ac_try" in
8213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8214   *) ac_try_echo=$ac_try;;
8215 esac
8216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8217   (eval "$ac_try") 2>&5
8218   ac_status=$?
8219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220   (exit $ac_status); }; } &&
8221          { ac_try='test -s conftest$ac_exeext'
8222   { (case "(($ac_try" in
8223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224   *) ac_try_echo=$ac_try;;
8225 esac
8226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8227   (eval "$ac_try") 2>&5
8228   ac_status=$?
8229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230   (exit $ac_status); }; }; then
8231   ac_cv_search_opendir=$ac_res
8232 else
8233   echo "$as_me: failed program was:" >&5
8234 sed 's/^/| /' conftest.$ac_ext >&5
8235
8236
8237 fi
8238
8239 rm -f core conftest.err conftest.$ac_objext \
8240       conftest$ac_exeext
8241   if test "${ac_cv_search_opendir+set}" = set; then
8242   break
8243 fi
8244 done
8245 if test "${ac_cv_search_opendir+set}" = set; then
8246   :
8247 else
8248   ac_cv_search_opendir=no
8249 fi
8250 rm conftest.$ac_ext
8251 LIBS=$ac_func_search_save_LIBS
8252 fi
8253 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8254 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8255 ac_res=$ac_cv_search_opendir
8256 if test "$ac_res" != no; then
8257   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8258
8259 fi
8260
8261 else
8262   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8263 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8264 if test "${ac_cv_search_opendir+set}" = set; then
8265   echo $ECHO_N "(cached) $ECHO_C" >&6
8266 else
8267   ac_func_search_save_LIBS=$LIBS
8268 cat >conftest.$ac_ext <<_ACEOF
8269 /* confdefs.h.  */
8270 _ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h.  */
8274
8275 /* Override any GCC internal prototype to avoid an error.
8276    Use char because int might match the return type of a GCC
8277    builtin and then its argument prototype would still apply.  */
8278 #ifdef __cplusplus
8279 extern "C"
8280 #endif
8281 char opendir ();
8282 int
8283 main ()
8284 {
8285 return opendir ();
8286   ;
8287   return 0;
8288 }
8289 _ACEOF
8290 for ac_lib in '' x; do
8291   if test -z "$ac_lib"; then
8292     ac_res="none required"
8293   else
8294     ac_res=-l$ac_lib
8295     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8296   fi
8297   rm -f conftest.$ac_objext conftest$ac_exeext
8298 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
8305   ac_status=$?
8306   grep -v '^ *+' conftest.er1 >conftest.err
8307   rm -f conftest.er1
8308   cat conftest.err >&5
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); } &&
8311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8312   { (case "(($ac_try" in
8313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314   *) ac_try_echo=$ac_try;;
8315 esac
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317   (eval "$ac_try") 2>&5
8318   ac_status=$?
8319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320   (exit $ac_status); }; } &&
8321          { ac_try='test -s conftest$ac_exeext'
8322   { (case "(($ac_try" in
8323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324   *) ac_try_echo=$ac_try;;
8325 esac
8326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327   (eval "$ac_try") 2>&5
8328   ac_status=$?
8329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   (exit $ac_status); }; }; then
8331   ac_cv_search_opendir=$ac_res
8332 else
8333   echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8335
8336
8337 fi
8338
8339 rm -f core conftest.err conftest.$ac_objext \
8340       conftest$ac_exeext
8341   if test "${ac_cv_search_opendir+set}" = set; then
8342   break
8343 fi
8344 done
8345 if test "${ac_cv_search_opendir+set}" = set; then
8346   :
8347 else
8348   ac_cv_search_opendir=no
8349 fi
8350 rm conftest.$ac_ext
8351 LIBS=$ac_func_search_save_LIBS
8352 fi
8353 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8354 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8355 ac_res=$ac_cv_search_opendir
8356 if test "$ac_res" != no; then
8357   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8358
8359 fi
8360
8361 fi
8362
8363
8364 for ac_header in dlfcn.h
8365 do
8366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8368   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8371   echo $ECHO_N "(cached) $ECHO_C" >&6
8372 fi
8373 ac_res=`eval echo '${'$as_ac_Header'}'`
8374                { echo "$as_me:$LINENO: result: $ac_res" >&5
8375 echo "${ECHO_T}$ac_res" >&6; }
8376 else
8377   # Is the header compilable?
8378 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8380 cat >conftest.$ac_ext <<_ACEOF
8381 /* confdefs.h.  */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h.  */
8386 $ac_includes_default
8387 #include <$ac_header>
8388 _ACEOF
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8391 case "(($ac_try" in
8392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393   *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396   (eval "$ac_compile") 2>conftest.er1
8397   ac_status=$?
8398   grep -v '^ *+' conftest.er1 >conftest.err
8399   rm -f conftest.er1
8400   cat conftest.err >&5
8401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402   (exit $ac_status); } &&
8403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8404   { (case "(($ac_try" in
8405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406   *) ac_try_echo=$ac_try;;
8407 esac
8408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409   (eval "$ac_try") 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); }; } &&
8413          { ac_try='test -s conftest.$ac_objext'
8414   { (case "(($ac_try" in
8415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416   *) ac_try_echo=$ac_try;;
8417 esac
8418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419   (eval "$ac_try") 2>&5
8420   ac_status=$?
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); }; }; then
8423   ac_header_compiler=yes
8424 else
8425   echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8427
8428         ac_header_compiler=no
8429 fi
8430
8431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8433 echo "${ECHO_T}$ac_header_compiler" >&6; }
8434
8435 # Is the header present?
8436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8438 cat >conftest.$ac_ext <<_ACEOF
8439 /* confdefs.h.  */
8440 _ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h.  */
8444 #include <$ac_header>
8445 _ACEOF
8446 if { (ac_try="$ac_cpp conftest.$ac_ext"
8447 case "(($ac_try" in
8448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8449   *) ac_try_echo=$ac_try;;
8450 esac
8451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8453   ac_status=$?
8454   grep -v '^ *+' conftest.er1 >conftest.err
8455   rm -f conftest.er1
8456   cat conftest.err >&5
8457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458   (exit $ac_status); } >/dev/null; then
8459   if test -s conftest.err; then
8460     ac_cpp_err=$ac_c_preproc_warn_flag
8461     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8462   else
8463     ac_cpp_err=
8464   fi
8465 else
8466   ac_cpp_err=yes
8467 fi
8468 if test -z "$ac_cpp_err"; then
8469   ac_header_preproc=yes
8470 else
8471   echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8473
8474   ac_header_preproc=no
8475 fi
8476
8477 rm -f conftest.err conftest.$ac_ext
8478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8479 echo "${ECHO_T}$ac_header_preproc" >&6; }
8480
8481 # So?  What about this header?
8482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8483   yes:no: )
8484     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8486     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8488     ac_header_preproc=yes
8489     ;;
8490   no:yes:* )
8491     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8493     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8494 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8495     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8497     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8498 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8499     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8501     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8503     ( cat <<\_ASBOX
8504 ## ------------------------------------ ##
8505 ## Report this to http://llvm.org/bugs/ ##
8506 ## ------------------------------------ ##
8507 _ASBOX
8508      ) | sed "s/^/$as_me: WARNING:     /" >&2
8509     ;;
8510 esac
8511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8514   echo $ECHO_N "(cached) $ECHO_C" >&6
8515 else
8516   eval "$as_ac_Header=\$ac_header_preproc"
8517 fi
8518 ac_res=`eval echo '${'$as_ac_Header'}'`
8519                { echo "$as_me:$LINENO: result: $ac_res" >&5
8520 echo "${ECHO_T}$ac_res" >&6; }
8521
8522 fi
8523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8524   cat >>confdefs.h <<_ACEOF
8525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8526 _ACEOF
8527
8528 fi
8529
8530 done
8531
8532 # Check whether --enable-ltdl-install was given.
8533 if test "${enable_ltdl_install+set}" = set; then
8534   enableval=$enable_ltdl_install;
8535 fi
8536
8537
8538
8539
8540 if test x"${enable_ltdl_install-no}" != xno; then
8541   INSTALL_LTDL_TRUE=
8542   INSTALL_LTDL_FALSE='#'
8543 else
8544   INSTALL_LTDL_TRUE='#'
8545   INSTALL_LTDL_FALSE=
8546 fi
8547
8548
8549
8550 if test x"${enable_ltdl_convenience-no}" != xno; then
8551   CONVENIENCE_LTDL_TRUE=
8552   CONVENIENCE_LTDL_FALSE='#'
8553 else
8554   CONVENIENCE_LTDL_TRUE='#'
8555   CONVENIENCE_LTDL_FALSE=
8556 fi
8557
8558
8559 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8560 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8561 library_names_spec=
8562 libname_spec='lib$name'
8563 soname_spec=
8564 shrext_cmds=".so"
8565 postinstall_cmds=
8566 postuninstall_cmds=
8567 finish_cmds=
8568 finish_eval=
8569 shlibpath_var=
8570 shlibpath_overrides_runpath=unknown
8571 version_type=none
8572 dynamic_linker="$host_os ld.so"
8573 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8574 if test "$GCC" = yes; then
8575   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8576   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8577     # if the path contains ";" then we assume it to be the separator
8578     # otherwise default to the standard path separator (i.e. ":") - it is
8579     # assumed that no part of a normal pathname contains ";" but that should
8580     # okay in the real world where ";" in dirpaths is itself problematic.
8581     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8582   else
8583     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8584   fi
8585 else
8586   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8587 fi
8588 need_lib_prefix=unknown
8589 hardcode_into_libs=no
8590
8591 # when you set need_version to no, make sure it does not cause -set_version
8592 # flags to be left without arguments
8593 need_version=unknown
8594
8595 case $host_os in
8596 aix3*)
8597   version_type=linux
8598   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8599   shlibpath_var=LIBPATH
8600
8601   # AIX 3 has no versioning support, so we append a major version to the name.
8602   soname_spec='${libname}${release}${shared_ext}$major'
8603   ;;
8604
8605 aix4* | aix5*)
8606   version_type=linux
8607   need_lib_prefix=no
8608   need_version=no
8609   hardcode_into_libs=yes
8610   if test "$host_cpu" = ia64; then
8611     # AIX 5 supports IA64
8612     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8613     shlibpath_var=LD_LIBRARY_PATH
8614   else
8615     # With GCC up to 2.95.x, collect2 would create an import file
8616     # for dependence libraries.  The import file would start with
8617     # the line `#! .'.  This would cause the generated library to
8618     # depend on `.', always an invalid library.  This was fixed in
8619     # development snapshots of GCC prior to 3.0.
8620     case $host_os in
8621       aix4 | aix4.[01] | aix4.[01].*)
8622       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8623            echo ' yes '
8624            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8625         :
8626       else
8627         can_build_shared=no
8628       fi
8629       ;;
8630     esac
8631     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8632     # soname into executable. Probably we can add versioning support to
8633     # collect2, so additional links can be useful in future.
8634     if test "$aix_use_runtimelinking" = yes; then
8635       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8636       # instead of lib<name>.a to let people know that these are not
8637       # typical AIX shared libraries.
8638       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8639     else
8640       # We preserve .a as extension for shared libraries through AIX4.2
8641       # and later when we are not doing run time linking.
8642       library_names_spec='${libname}${release}.a $libname.a'
8643       soname_spec='${libname}${release}${shared_ext}$major'
8644     fi
8645     shlibpath_var=LIBPATH
8646   fi
8647   ;;
8648
8649 amigaos*)
8650   library_names_spec='$libname.ixlibrary $libname.a'
8651   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8652   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'
8653   ;;
8654
8655 beos*)
8656   library_names_spec='${libname}${shared_ext}'
8657   dynamic_linker="$host_os ld.so"
8658   shlibpath_var=LIBRARY_PATH
8659   ;;
8660
8661 bsdi[45]*)
8662   version_type=linux
8663   need_version=no
8664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8665   soname_spec='${libname}${release}${shared_ext}$major'
8666   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8667   shlibpath_var=LD_LIBRARY_PATH
8668   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8669   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8670   # the default ld.so.conf also contains /usr/contrib/lib and
8671   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8672   # libtool to hard-code these into programs
8673   ;;
8674
8675 cygwin* | mingw* | pw32*)
8676   version_type=windows
8677   shrext_cmds=".dll"
8678   need_version=no
8679   need_lib_prefix=no
8680
8681   case $GCC,$host_os in
8682   yes,cygwin* | yes,mingw* | yes,pw32*)
8683     library_names_spec='$libname.dll.a'
8684     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8685     postinstall_cmds='base_file=`basename \${file}`~
8686       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8687       dldir=$destdir/`dirname \$dlpath`~
8688       test -d \$dldir || mkdir -p \$dldir~
8689       $install_prog $dir/$dlname \$dldir/$dlname~
8690       chmod a+x \$dldir/$dlname'
8691     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8692       dlpath=$dir/\$dldll~
8693        $rm \$dlpath'
8694     shlibpath_overrides_runpath=yes
8695
8696     case $host_os in
8697     cygwin*)
8698       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8699       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8700       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8701       ;;
8702     mingw*)
8703       # MinGW DLLs use traditional 'lib' prefix
8704       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8705       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8706       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8707         # It is most probably a Windows format PATH printed by
8708         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8709         # path with ; separators, and with drive letters. We can handle the
8710         # drive letters (cygwin fileutils understands them), so leave them,
8711         # especially as we might pass files found there to a mingw objdump,
8712         # which wouldn't understand a cygwinified path. Ahh.
8713         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8714       else
8715         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8716       fi
8717       ;;
8718     pw32*)
8719       # pw32 DLLs use 'pw' prefix rather than 'lib'
8720       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8721       ;;
8722     esac
8723     ;;
8724
8725   *)
8726     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8727     ;;
8728   esac
8729   dynamic_linker='Win32 ld.exe'
8730   # FIXME: first we should search . and the directory the executable is in
8731   shlibpath_var=PATH
8732   ;;
8733
8734 darwin* | rhapsody*)
8735   dynamic_linker="$host_os dyld"
8736   version_type=darwin
8737   need_lib_prefix=no
8738   need_version=no
8739   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8740   soname_spec='${libname}${release}${major}$shared_ext'
8741   shlibpath_overrides_runpath=yes
8742   shlibpath_var=DYLD_LIBRARY_PATH
8743   shrext_cmds='.dylib'
8744   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8745   if test "$GCC" = yes; then
8746     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"`
8747   else
8748     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8749   fi
8750   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8751   ;;
8752
8753 dgux*)
8754   version_type=linux
8755   need_lib_prefix=no
8756   need_version=no
8757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8758   soname_spec='${libname}${release}${shared_ext}$major'
8759   shlibpath_var=LD_LIBRARY_PATH
8760   ;;
8761
8762 freebsd1.*)
8763   dynamic_linker=no
8764   ;;
8765
8766 kfreebsd*-gnu)
8767   version_type=linux
8768   need_lib_prefix=no
8769   need_version=no
8770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8771   soname_spec='${libname}${release}${shared_ext}$major'
8772   shlibpath_var=LD_LIBRARY_PATH
8773   shlibpath_overrides_runpath=no
8774   hardcode_into_libs=yes
8775   dynamic_linker='GNU ld.so'
8776   ;;
8777
8778 freebsd* | dragonfly*)
8779   # DragonFly does not have aout.  When/if they implement a new
8780   # versioning mechanism, adjust this.
8781   if test -x /usr/bin/objformat; then
8782     objformat=`/usr/bin/objformat`
8783   else
8784     case $host_os in
8785     freebsd[123].*) objformat=aout ;;
8786     *) objformat=elf ;;
8787     esac
8788   fi
8789   version_type=freebsd-$objformat
8790   case $version_type in
8791     freebsd-elf*)
8792       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8793       need_version=no
8794       need_lib_prefix=no
8795       ;;
8796     freebsd-*)
8797       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8798       need_version=yes
8799       ;;
8800   esac
8801   shlibpath_var=LD_LIBRARY_PATH
8802   case $host_os in
8803   freebsd2.*)
8804     shlibpath_overrides_runpath=yes
8805     ;;
8806   freebsd3.[01]* | freebsdelf3.[01]*)
8807     shlibpath_overrides_runpath=yes
8808     hardcode_into_libs=yes
8809     ;;
8810   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8811   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8812     shlibpath_overrides_runpath=no
8813     hardcode_into_libs=yes
8814     ;;
8815   freebsd*) # from 4.6 on
8816     shlibpath_overrides_runpath=yes
8817     hardcode_into_libs=yes
8818     ;;
8819   esac
8820   ;;
8821
8822 gnu*)
8823   version_type=linux
8824   need_lib_prefix=no
8825   need_version=no
8826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8827   soname_spec='${libname}${release}${shared_ext}$major'
8828   shlibpath_var=LD_LIBRARY_PATH
8829   hardcode_into_libs=yes
8830   ;;
8831
8832 hpux9* | hpux10* | hpux11*)
8833   # Give a soname corresponding to the major version so that dld.sl refuses to
8834   # link against other versions.
8835   version_type=sunos
8836   need_lib_prefix=no
8837   need_version=no
8838   case $host_cpu in
8839   ia64*)
8840     shrext_cmds='.so'
8841     hardcode_into_libs=yes
8842     dynamic_linker="$host_os dld.so"
8843     shlibpath_var=LD_LIBRARY_PATH
8844     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8845     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846     soname_spec='${libname}${release}${shared_ext}$major'
8847     if test "X$HPUX_IA64_MODE" = X32; then
8848       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8849     else
8850       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8851     fi
8852     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8853     ;;
8854    hppa*64*)
8855      shrext_cmds='.sl'
8856      hardcode_into_libs=yes
8857      dynamic_linker="$host_os dld.sl"
8858      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8859      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8860      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8861      soname_spec='${libname}${release}${shared_ext}$major'
8862      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8863      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8864      ;;
8865    *)
8866     shrext_cmds='.sl'
8867     dynamic_linker="$host_os dld.sl"
8868     shlibpath_var=SHLIB_PATH
8869     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8871     soname_spec='${libname}${release}${shared_ext}$major'
8872     ;;
8873   esac
8874   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8875   postinstall_cmds='chmod 555 $lib'
8876   ;;
8877
8878 interix3*)
8879   version_type=linux
8880   need_lib_prefix=no
8881   need_version=no
8882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8883   soname_spec='${libname}${release}${shared_ext}$major'
8884   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8885   shlibpath_var=LD_LIBRARY_PATH
8886   shlibpath_overrides_runpath=no
8887   hardcode_into_libs=yes
8888   ;;
8889
8890 irix5* | irix6* | nonstopux*)
8891   case $host_os in
8892     nonstopux*) version_type=nonstopux ;;
8893     *)
8894         if test "$lt_cv_prog_gnu_ld" = yes; then
8895                 version_type=linux
8896         else
8897                 version_type=irix
8898         fi ;;
8899   esac
8900   need_lib_prefix=no
8901   need_version=no
8902   soname_spec='${libname}${release}${shared_ext}$major'
8903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8904   case $host_os in
8905   irix5* | nonstopux*)
8906     libsuff= shlibsuff=
8907     ;;
8908   *)
8909     case $LD in # libtool.m4 will add one of these switches to LD
8910     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8911       libsuff= shlibsuff= libmagic=32-bit;;
8912     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8913       libsuff=32 shlibsuff=N32 libmagic=N32;;
8914     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8915       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8916     *) libsuff= shlibsuff= libmagic=never-match;;
8917     esac
8918     ;;
8919   esac
8920   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8921   shlibpath_overrides_runpath=no
8922   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8923   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8924   hardcode_into_libs=yes
8925   ;;
8926
8927 # No shared lib support for Linux oldld, aout, or coff.
8928 linux*oldld* | linux*aout* | linux*coff*)
8929   dynamic_linker=no
8930   ;;
8931
8932 # This must be Linux ELF.
8933 linux*)
8934   version_type=linux
8935   need_lib_prefix=no
8936   need_version=no
8937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8938   soname_spec='${libname}${release}${shared_ext}$major'
8939   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8940   shlibpath_var=LD_LIBRARY_PATH
8941   shlibpath_overrides_runpath=no
8942   # This implies no fast_install, which is unacceptable.
8943   # Some rework will be needed to allow for fast_install
8944   # before this can be enabled.
8945   hardcode_into_libs=yes
8946
8947   # Append ld.so.conf contents to the search path
8948   if test -f /etc/ld.so.conf; then
8949     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' ' '`
8950     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8951   fi
8952
8953   # We used to test for /lib/ld.so.1 and disable shared libraries on
8954   # powerpc, because MkLinux only supported shared libraries with the
8955   # GNU dynamic linker.  Since this was broken with cross compilers,
8956   # most powerpc-linux boxes support dynamic linking these days and
8957   # people can always --disable-shared, the test was removed, and we
8958   # assume the GNU/Linux dynamic linker is in use.
8959   dynamic_linker='GNU/Linux ld.so'
8960   ;;
8961
8962 knetbsd*-gnu)
8963   version_type=linux
8964   need_lib_prefix=no
8965   need_version=no
8966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8967   soname_spec='${libname}${release}${shared_ext}$major'
8968   shlibpath_var=LD_LIBRARY_PATH
8969   shlibpath_overrides_runpath=no
8970   hardcode_into_libs=yes
8971   dynamic_linker='GNU ld.so'
8972   ;;
8973
8974 netbsd*)
8975   version_type=sunos
8976   need_lib_prefix=no
8977   need_version=no
8978   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8979     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8980     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8981     dynamic_linker='NetBSD (a.out) ld.so'
8982   else
8983     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8984     soname_spec='${libname}${release}${shared_ext}$major'
8985     dynamic_linker='NetBSD ld.elf_so'
8986   fi
8987   shlibpath_var=LD_LIBRARY_PATH
8988   shlibpath_overrides_runpath=yes
8989   hardcode_into_libs=yes
8990   ;;
8991
8992 newsos6)
8993   version_type=linux
8994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8995   shlibpath_var=LD_LIBRARY_PATH
8996   shlibpath_overrides_runpath=yes
8997   ;;
8998
8999 nto-qnx*)
9000   version_type=linux
9001   need_lib_prefix=no
9002   need_version=no
9003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9004   soname_spec='${libname}${release}${shared_ext}$major'
9005   shlibpath_var=LD_LIBRARY_PATH
9006   shlibpath_overrides_runpath=yes
9007   ;;
9008
9009 openbsd* | bitrig*)
9010   version_type=sunos
9011   sys_lib_dlsearch_path_spec="/usr/lib"
9012   need_lib_prefix=no
9013   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9014   case $host_os in
9015     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9016     *)                         need_version=no  ;;
9017   esac
9018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9019   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9020   shlibpath_var=LD_LIBRARY_PATH
9021   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9022     case $host_os in
9023       openbsd2.[89] | openbsd2.[89].*)
9024         shlibpath_overrides_runpath=no
9025         ;;
9026       *)
9027         shlibpath_overrides_runpath=yes
9028         ;;
9029       esac
9030   else
9031     shlibpath_overrides_runpath=yes
9032   fi
9033   ;;
9034
9035 os2*)
9036   libname_spec='$name'
9037   shrext_cmds=".dll"
9038   need_lib_prefix=no
9039   library_names_spec='$libname${shared_ext} $libname.a'
9040   dynamic_linker='OS/2 ld.exe'
9041   shlibpath_var=LIBPATH
9042   ;;
9043
9044 osf3* | osf4* | osf5*)
9045   version_type=osf
9046   need_lib_prefix=no
9047   need_version=no
9048   soname_spec='${libname}${release}${shared_ext}$major'
9049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9050   shlibpath_var=LD_LIBRARY_PATH
9051   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9052   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9053   ;;
9054
9055 solaris*)
9056   version_type=linux
9057   need_lib_prefix=no
9058   need_version=no
9059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9060   soname_spec='${libname}${release}${shared_ext}$major'
9061   shlibpath_var=LD_LIBRARY_PATH
9062   shlibpath_overrides_runpath=yes
9063   hardcode_into_libs=yes
9064   # ldd complains unless libraries are executable
9065   postinstall_cmds='chmod +x $lib'
9066   ;;
9067
9068 sunos4*)
9069   version_type=sunos
9070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9071   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9072   shlibpath_var=LD_LIBRARY_PATH
9073   shlibpath_overrides_runpath=yes
9074   if test "$with_gnu_ld" = yes; then
9075     need_lib_prefix=no
9076   fi
9077   need_version=yes
9078   ;;
9079
9080 sysv4 | sysv4.3*)
9081   version_type=linux
9082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083   soname_spec='${libname}${release}${shared_ext}$major'
9084   shlibpath_var=LD_LIBRARY_PATH
9085   case $host_vendor in
9086     sni)
9087       shlibpath_overrides_runpath=no
9088       need_lib_prefix=no
9089       export_dynamic_flag_spec='${wl}-Blargedynsym'
9090       runpath_var=LD_RUN_PATH
9091       ;;
9092     siemens)
9093       need_lib_prefix=no
9094       ;;
9095     motorola)
9096       need_lib_prefix=no
9097       need_version=no
9098       shlibpath_overrides_runpath=no
9099       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9100       ;;
9101   esac
9102   ;;
9103
9104 sysv4*MP*)
9105   if test -d /usr/nec ;then
9106     version_type=linux
9107     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9108     soname_spec='$libname${shared_ext}.$major'
9109     shlibpath_var=LD_LIBRARY_PATH
9110   fi
9111   ;;
9112
9113 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9114   version_type=freebsd-elf
9115   need_lib_prefix=no
9116   need_version=no
9117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9118   soname_spec='${libname}${release}${shared_ext}$major'
9119   shlibpath_var=LD_LIBRARY_PATH
9120   hardcode_into_libs=yes
9121   if test "$with_gnu_ld" = yes; then
9122     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9123     shlibpath_overrides_runpath=no
9124   else
9125     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9126     shlibpath_overrides_runpath=yes
9127     case $host_os in
9128       sco3.2v5*)
9129         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9130         ;;
9131     esac
9132   fi
9133   sys_lib_dlsearch_path_spec='/usr/lib'
9134   ;;
9135
9136 uts4*)
9137   version_type=linux
9138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9139   soname_spec='${libname}${release}${shared_ext}$major'
9140   shlibpath_var=LD_LIBRARY_PATH
9141   ;;
9142
9143 *)
9144   dynamic_linker=no
9145   ;;
9146 esac
9147 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9148 echo "${ECHO_T}$dynamic_linker" >&6; }
9149 test "$dynamic_linker" = no && can_build_shared=no
9150
9151 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9152 if test "$GCC" = yes; then
9153   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9154 fi
9155
9156
9157 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9158 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9159 if test "${libltdl_cv_shlibext+set}" = set; then
9160   echo $ECHO_N "(cached) $ECHO_C" >&6
9161 else
9162
9163 module=yes
9164 eval libltdl_cv_shlibext=$shrext_cmds
9165
9166 fi
9167 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9168 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9169 if test -n "$libltdl_cv_shlibext"; then
9170
9171 cat >>confdefs.h <<_ACEOF
9172 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9173 _ACEOF
9174
9175 fi
9176
9177
9178 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9179 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9180 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9181   echo $ECHO_N "(cached) $ECHO_C" >&6
9182 else
9183   libltdl_cv_shlibpath_var="$shlibpath_var"
9184 fi
9185 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9186 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9187 if test -n "$libltdl_cv_shlibpath_var"; then
9188
9189 cat >>confdefs.h <<_ACEOF
9190 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9191 _ACEOF
9192
9193 fi
9194
9195
9196 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9197 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9198 if test "${libltdl_cv_sys_search_path+set}" = set; then
9199   echo $ECHO_N "(cached) $ECHO_C" >&6
9200 else
9201   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9202 fi
9203 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9204 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9205 if test -n "$libltdl_cv_sys_search_path"; then
9206   sys_search_path=
9207   for dir in $libltdl_cv_sys_search_path; do
9208     if test -z "$sys_search_path"; then
9209       sys_search_path="$dir"
9210     else
9211       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9212     fi
9213   done
9214
9215 cat >>confdefs.h <<_ACEOF
9216 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9217 _ACEOF
9218
9219 fi
9220
9221 { echo "$as_me:$LINENO: checking for objdir" >&5
9222 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9223 if test "${libltdl_cv_objdir+set}" = set; then
9224   echo $ECHO_N "(cached) $ECHO_C" >&6
9225 else
9226   libltdl_cv_objdir="$objdir"
9227   if test -n "$objdir"; then
9228     :
9229   else
9230     rm -f .libs 2>/dev/null
9231     mkdir .libs 2>/dev/null
9232     if test -d .libs; then
9233       libltdl_cv_objdir=.libs
9234     else
9235       # MS-DOS does not allow filenames that begin with a dot.
9236       libltdl_cv_objdir=_libs
9237     fi
9238   rmdir .libs 2>/dev/null
9239   fi
9240
9241 fi
9242 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9243 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9244
9245 cat >>confdefs.h <<_ACEOF
9246 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9247 _ACEOF
9248
9249
9250
9251
9252
9253
9254 # Check for command to grab the raw symbol name followed by C symbol from nm.
9255 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9256 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9257 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9258   echo $ECHO_N "(cached) $ECHO_C" >&6
9259 else
9260
9261 # These are sane defaults that work on at least a few old systems.
9262 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9263
9264 # Character class describing NM global symbol codes.
9265 symcode='[BCDEGRST]'
9266
9267 # Regexp to match symbols that can be accessed directly from C.
9268 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9269
9270 # Transform an extracted symbol line into a proper C declaration
9271 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9272
9273 # Transform an extracted symbol line into symbol name and symbol address
9274 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'"
9275
9276 # Define system-specific variables.
9277 case $host_os in
9278 aix*)
9279   symcode='[BCDT]'
9280   ;;
9281 cygwin* | mingw* | pw32*)
9282   symcode='[ABCDGISTW]'
9283   ;;
9284 hpux*) # Its linker distinguishes data from code symbols
9285   if test "$host_cpu" = ia64; then
9286     symcode='[ABCDEGRST]'
9287   fi
9288   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9289   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'"
9290   ;;
9291 linux*)
9292   if test "$host_cpu" = ia64; then
9293     symcode='[ABCDGIRSTW]'
9294     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9295     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'"
9296   fi
9297   ;;
9298 irix* | nonstopux*)
9299   symcode='[BCDEGRST]'
9300   ;;
9301 osf*)
9302   symcode='[BCDEGQRST]'
9303   ;;
9304 solaris*)
9305   symcode='[BDRT]'
9306   ;;
9307 sco3.2v5*)
9308   symcode='[DT]'
9309   ;;
9310 sysv4.2uw2*)
9311   symcode='[DT]'
9312   ;;
9313 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9314   symcode='[ABDT]'
9315   ;;
9316 sysv4)
9317   symcode='[DFNSTU]'
9318   ;;
9319 esac
9320
9321 # Handle CRLF in mingw tool chain
9322 opt_cr=
9323 case $build_os in
9324 mingw*)
9325   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9326   ;;
9327 esac
9328
9329 # If we're using GNU nm, then use its standard symbol codes.
9330 case `$NM -V 2>&1` in
9331 *GNU* | *'with BFD'*)
9332   symcode='[ABCDGIRSTW]' ;;
9333 esac
9334
9335 # Try without a prefix undercore, then with it.
9336 for ac_symprfx in "" "_"; do
9337
9338   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9339   symxfrm="\\1 $ac_symprfx\\2 \\2"
9340
9341   # Write the raw and C identifiers.
9342   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9343
9344   # Check to see that the pipe works correctly.
9345   pipe_works=no
9346
9347   rm -f conftest*
9348   cat > conftest.$ac_ext <<EOF
9349 #ifdef __cplusplus
9350 extern "C" {
9351 #endif
9352 char nm_test_var;
9353 void nm_test_func(){}
9354 #ifdef __cplusplus
9355 }
9356 #endif
9357 int main(){nm_test_var='a';nm_test_func();return(0);}
9358 EOF
9359
9360   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9361   (eval $ac_compile) 2>&5
9362   ac_status=$?
9363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364   (exit $ac_status); }; then
9365     # Now try to grab the symbols.
9366     nlist=conftest.nm
9367     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9368   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9369   ac_status=$?
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   (exit $ac_status); } && test -s "$nlist"; then
9372       # Try sorting and uniquifying the output.
9373       if sort "$nlist" | uniq > "$nlist"T; then
9374         mv -f "$nlist"T "$nlist"
9375       else
9376         rm -f "$nlist"T
9377       fi
9378
9379       # Make sure that we snagged all the symbols we need.
9380       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9381         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9382           cat <<EOF > conftest.$ac_ext
9383 #ifdef __cplusplus
9384 extern "C" {
9385 #endif
9386
9387 EOF
9388           # Now generate the symbol file.
9389           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9390
9391           cat <<EOF >> conftest.$ac_ext
9392 #if defined (__STDC__) && __STDC__
9393 # define lt_ptr_t void *
9394 #else
9395 # define lt_ptr_t char *
9396 # define const
9397 #endif
9398
9399 /* The mapping between symbol names and symbols. */
9400 const struct {
9401   const char *name;
9402   lt_ptr_t address;
9403 }
9404 lt_preloaded_symbols[] =
9405 {
9406 EOF
9407           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9408           cat <<\EOF >> conftest.$ac_ext
9409   {0, (lt_ptr_t) 0}
9410 };
9411
9412 #ifdef __cplusplus
9413 }
9414 #endif
9415 EOF
9416           # Now try linking the two files.
9417           mv conftest.$ac_objext conftstm.$ac_objext
9418           lt_save_LIBS="$LIBS"
9419           lt_save_CFLAGS="$CFLAGS"
9420           LIBS="conftstm.$ac_objext"
9421           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9422           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9423   (eval $ac_link) 2>&5
9424   ac_status=$?
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9427             pipe_works=yes
9428           fi
9429           LIBS="$lt_save_LIBS"
9430           CFLAGS="$lt_save_CFLAGS"
9431         else
9432           echo "cannot find nm_test_func in $nlist" >&5
9433         fi
9434       else
9435         echo "cannot find nm_test_var in $nlist" >&5
9436       fi
9437     else
9438       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9439     fi
9440   else
9441     echo "$progname: failed program was:" >&5
9442     cat conftest.$ac_ext >&5
9443   fi
9444   rm -f conftest* conftst*
9445
9446   # Do not use the global_symbol_pipe unless it works.
9447   if test "$pipe_works" = yes; then
9448     break
9449   else
9450     lt_cv_sys_global_symbol_pipe=
9451   fi
9452 done
9453
9454 fi
9455
9456 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9457   lt_cv_sys_global_symbol_to_cdecl=
9458 fi
9459 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9460   { echo "$as_me:$LINENO: result: failed" >&5
9461 echo "${ECHO_T}failed" >&6; }
9462 else
9463   { echo "$as_me:$LINENO: result: ok" >&5
9464 echo "${ECHO_T}ok" >&6; }
9465 fi
9466
9467
9468 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9469 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9470 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9471   echo $ECHO_N "(cached) $ECHO_C" >&6
9472 else
9473   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9474     libltdl_cv_preloaded_symbols=yes
9475   else
9476     libltdl_cv_preloaded_symbols=no
9477   fi
9478
9479 fi
9480 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9481 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9482 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9483
9484 cat >>confdefs.h <<\_ACEOF
9485 #define HAVE_PRELOADED_SYMBOLS 1
9486 _ACEOF
9487
9488 fi
9489
9490 LIBADD_DL=
9491
9492 ac_ext=c
9493 ac_cpp='$CPP $CPPFLAGS'
9494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9497
9498
9499 { echo "$as_me:$LINENO: checking for shl_load" >&5
9500 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9501 if test "${ac_cv_func_shl_load+set}" = set; then
9502   echo $ECHO_N "(cached) $ECHO_C" >&6
9503 else
9504   cat >conftest.$ac_ext <<_ACEOF
9505 /* confdefs.h.  */
9506 _ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h.  */
9510 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9512 #define shl_load innocuous_shl_load
9513
9514 /* System header to define __stub macros and hopefully few prototypes,
9515     which can conflict with char shl_load (); below.
9516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9517     <limits.h> exists even on freestanding compilers.  */
9518
9519 #ifdef __STDC__
9520 # include <limits.h>
9521 #else
9522 # include <assert.h>
9523 #endif
9524
9525 #undef shl_load
9526
9527 /* Override any GCC internal prototype to avoid an error.
9528    Use char because int might match the return type of a GCC
9529    builtin and then its argument prototype would still apply.  */
9530 #ifdef __cplusplus
9531 extern "C"
9532 #endif
9533 char shl_load ();
9534 /* The GNU C library defines this for functions which it implements
9535     to always fail with ENOSYS.  Some functions are actually named
9536     something starting with __ and the normal name is an alias.  */
9537 #if defined __stub_shl_load || defined __stub___shl_load
9538 choke me
9539 #endif
9540
9541 int
9542 main ()
9543 {
9544 return shl_load ();
9545   ;
9546   return 0;
9547 }
9548 _ACEOF
9549 rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (ac_try="$ac_link"
9551 case "(($ac_try" in
9552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553   *) ac_try_echo=$ac_try;;
9554 esac
9555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556   (eval "$ac_link") 2>conftest.er1
9557   ac_status=$?
9558   grep -v '^ *+' conftest.er1 >conftest.err
9559   rm -f conftest.er1
9560   cat conftest.err >&5
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); } &&
9563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9564   { (case "(($ac_try" in
9565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566   *) ac_try_echo=$ac_try;;
9567 esac
9568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569   (eval "$ac_try") 2>&5
9570   ac_status=$?
9571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572   (exit $ac_status); }; } &&
9573          { ac_try='test -s conftest$ac_exeext'
9574   { (case "(($ac_try" in
9575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576   *) ac_try_echo=$ac_try;;
9577 esac
9578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579   (eval "$ac_try") 2>&5
9580   ac_status=$?
9581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582   (exit $ac_status); }; }; then
9583   ac_cv_func_shl_load=yes
9584 else
9585   echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9587
9588         ac_cv_func_shl_load=no
9589 fi
9590
9591 rm -f core conftest.err conftest.$ac_objext \
9592       conftest$ac_exeext conftest.$ac_ext
9593 fi
9594 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9595 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9596 if test $ac_cv_func_shl_load = yes; then
9597
9598 cat >>confdefs.h <<\_ACEOF
9599 #define HAVE_SHL_LOAD 1
9600 _ACEOF
9601
9602 else
9603   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9604 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9605 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9606   echo $ECHO_N "(cached) $ECHO_C" >&6
9607 else
9608   ac_check_lib_save_LIBS=$LIBS
9609 LIBS="-ldld  $LIBS"
9610 cat >conftest.$ac_ext <<_ACEOF
9611 /* confdefs.h.  */
9612 _ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h.  */
9616
9617 /* Override any GCC internal prototype to avoid an error.
9618    Use char because int might match the return type of a GCC
9619    builtin and then its argument prototype would still apply.  */
9620 #ifdef __cplusplus
9621 extern "C"
9622 #endif
9623 char shl_load ();
9624 int
9625 main ()
9626 {
9627 return shl_load ();
9628   ;
9629   return 0;
9630 }
9631 _ACEOF
9632 rm -f conftest.$ac_objext conftest$ac_exeext
9633 if { (ac_try="$ac_link"
9634 case "(($ac_try" in
9635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636   *) ac_try_echo=$ac_try;;
9637 esac
9638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639   (eval "$ac_link") 2>conftest.er1
9640   ac_status=$?
9641   grep -v '^ *+' conftest.er1 >conftest.err
9642   rm -f conftest.er1
9643   cat conftest.err >&5
9644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645   (exit $ac_status); } &&
9646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9647   { (case "(($ac_try" in
9648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649   *) ac_try_echo=$ac_try;;
9650 esac
9651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652   (eval "$ac_try") 2>&5
9653   ac_status=$?
9654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655   (exit $ac_status); }; } &&
9656          { ac_try='test -s conftest$ac_exeext'
9657   { (case "(($ac_try" in
9658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659   *) ac_try_echo=$ac_try;;
9660 esac
9661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662   (eval "$ac_try") 2>&5
9663   ac_status=$?
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   (exit $ac_status); }; }; then
9666   ac_cv_lib_dld_shl_load=yes
9667 else
9668   echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9670
9671         ac_cv_lib_dld_shl_load=no
9672 fi
9673
9674 rm -f core conftest.err conftest.$ac_objext \
9675       conftest$ac_exeext conftest.$ac_ext
9676 LIBS=$ac_check_lib_save_LIBS
9677 fi
9678 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9679 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9680 if test $ac_cv_lib_dld_shl_load = yes; then
9681
9682 cat >>confdefs.h <<\_ACEOF
9683 #define HAVE_SHL_LOAD 1
9684 _ACEOF
9685
9686         LIBADD_DL="$LIBADD_DL -ldld"
9687 else
9688   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9689 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9690 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9691   echo $ECHO_N "(cached) $ECHO_C" >&6
9692 else
9693   ac_check_lib_save_LIBS=$LIBS
9694 LIBS="-ldl  $LIBS"
9695 cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h.  */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h.  */
9701
9702 /* Override any GCC internal prototype to avoid an error.
9703    Use char because int might match the return type of a GCC
9704    builtin and then its argument prototype would still apply.  */
9705 #ifdef __cplusplus
9706 extern "C"
9707 #endif
9708 char dlopen ();
9709 int
9710 main ()
9711 {
9712 return dlopen ();
9713   ;
9714   return 0;
9715 }
9716 _ACEOF
9717 rm -f conftest.$ac_objext conftest$ac_exeext
9718 if { (ac_try="$ac_link"
9719 case "(($ac_try" in
9720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721   *) ac_try_echo=$ac_try;;
9722 esac
9723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724   (eval "$ac_link") 2>conftest.er1
9725   ac_status=$?
9726   grep -v '^ *+' conftest.er1 >conftest.err
9727   rm -f conftest.er1
9728   cat conftest.err >&5
9729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730   (exit $ac_status); } &&
9731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9732   { (case "(($ac_try" in
9733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734   *) ac_try_echo=$ac_try;;
9735 esac
9736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9737   (eval "$ac_try") 2>&5
9738   ac_status=$?
9739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); }; } &&
9741          { ac_try='test -s conftest$ac_exeext'
9742   { (case "(($ac_try" in
9743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744   *) ac_try_echo=$ac_try;;
9745 esac
9746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9747   (eval "$ac_try") 2>&5
9748   ac_status=$?
9749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); }; }; then
9751   ac_cv_lib_dl_dlopen=yes
9752 else
9753   echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9755
9756         ac_cv_lib_dl_dlopen=no
9757 fi
9758
9759 rm -f core conftest.err conftest.$ac_objext \
9760       conftest$ac_exeext conftest.$ac_ext
9761 LIBS=$ac_check_lib_save_LIBS
9762 fi
9763 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9764 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9765 if test $ac_cv_lib_dl_dlopen = yes; then
9766
9767 cat >>confdefs.h <<\_ACEOF
9768 #define HAVE_LIBDL 1
9769 _ACEOF
9770
9771                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9772 else
9773   cat >conftest.$ac_ext <<_ACEOF
9774 /* confdefs.h.  */
9775 _ACEOF
9776 cat confdefs.h >>conftest.$ac_ext
9777 cat >>conftest.$ac_ext <<_ACEOF
9778 /* end confdefs.h.  */
9779 #if HAVE_DLFCN_H
9780 #  include <dlfcn.h>
9781 #endif
9782
9783 int
9784 main ()
9785 {
9786 dlopen(0, 0);
9787   ;
9788   return 0;
9789 }
9790 _ACEOF
9791 rm -f conftest.$ac_objext conftest$ac_exeext
9792 if { (ac_try="$ac_link"
9793 case "(($ac_try" in
9794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795   *) ac_try_echo=$ac_try;;
9796 esac
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798   (eval "$ac_link") 2>conftest.er1
9799   ac_status=$?
9800   grep -v '^ *+' conftest.er1 >conftest.err
9801   rm -f conftest.er1
9802   cat conftest.err >&5
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); } &&
9805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9806   { (case "(($ac_try" in
9807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808   *) ac_try_echo=$ac_try;;
9809 esac
9810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811   (eval "$ac_try") 2>&5
9812   ac_status=$?
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); }; } &&
9815          { ac_try='test -s conftest$ac_exeext'
9816   { (case "(($ac_try" in
9817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9818   *) ac_try_echo=$ac_try;;
9819 esac
9820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9821   (eval "$ac_try") 2>&5
9822   ac_status=$?
9823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824   (exit $ac_status); }; }; then
9825
9826 cat >>confdefs.h <<\_ACEOF
9827 #define HAVE_LIBDL 1
9828 _ACEOF
9829  libltdl_cv_func_dlopen="yes"
9830 else
9831   echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9833
9834         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9835 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9836 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9837   echo $ECHO_N "(cached) $ECHO_C" >&6
9838 else
9839   ac_check_lib_save_LIBS=$LIBS
9840 LIBS="-lsvld  $LIBS"
9841 cat >conftest.$ac_ext <<_ACEOF
9842 /* confdefs.h.  */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h.  */
9847
9848 /* Override any GCC internal prototype to avoid an error.
9849    Use char because int might match the return type of a GCC
9850    builtin and then its argument prototype would still apply.  */
9851 #ifdef __cplusplus
9852 extern "C"
9853 #endif
9854 char dlopen ();
9855 int
9856 main ()
9857 {
9858 return dlopen ();
9859   ;
9860   return 0;
9861 }
9862 _ACEOF
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (ac_try="$ac_link"
9865 case "(($ac_try" in
9866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867   *) ac_try_echo=$ac_try;;
9868 esac
9869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870   (eval "$ac_link") 2>conftest.er1
9871   ac_status=$?
9872   grep -v '^ *+' conftest.er1 >conftest.err
9873   rm -f conftest.er1
9874   cat conftest.err >&5
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); } &&
9877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9878   { (case "(($ac_try" in
9879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880   *) ac_try_echo=$ac_try;;
9881 esac
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883   (eval "$ac_try") 2>&5
9884   ac_status=$?
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); }; } &&
9887          { ac_try='test -s conftest$ac_exeext'
9888   { (case "(($ac_try" in
9889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890   *) ac_try_echo=$ac_try;;
9891 esac
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893   (eval "$ac_try") 2>&5
9894   ac_status=$?
9895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896   (exit $ac_status); }; }; then
9897   ac_cv_lib_svld_dlopen=yes
9898 else
9899   echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9901
9902         ac_cv_lib_svld_dlopen=no
9903 fi
9904
9905 rm -f core conftest.err conftest.$ac_objext \
9906       conftest$ac_exeext conftest.$ac_ext
9907 LIBS=$ac_check_lib_save_LIBS
9908 fi
9909 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9910 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9911 if test $ac_cv_lib_svld_dlopen = yes; then
9912
9913 cat >>confdefs.h <<\_ACEOF
9914 #define HAVE_LIBDL 1
9915 _ACEOF
9916
9917                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9918 else
9919   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9920 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9921 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9922   echo $ECHO_N "(cached) $ECHO_C" >&6
9923 else
9924   ac_check_lib_save_LIBS=$LIBS
9925 LIBS="-ldld  $LIBS"
9926 cat >conftest.$ac_ext <<_ACEOF
9927 /* confdefs.h.  */
9928 _ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h.  */
9932
9933 /* Override any GCC internal prototype to avoid an error.
9934    Use char because int might match the return type of a GCC
9935    builtin and then its argument prototype would still apply.  */
9936 #ifdef __cplusplus
9937 extern "C"
9938 #endif
9939 char dld_link ();
9940 int
9941 main ()
9942 {
9943 return dld_link ();
9944   ;
9945   return 0;
9946 }
9947 _ACEOF
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (ac_try="$ac_link"
9950 case "(($ac_try" in
9951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952   *) ac_try_echo=$ac_try;;
9953 esac
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955   (eval "$ac_link") 2>conftest.er1
9956   ac_status=$?
9957   grep -v '^ *+' conftest.er1 >conftest.err
9958   rm -f conftest.er1
9959   cat conftest.err >&5
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); } &&
9962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9963   { (case "(($ac_try" in
9964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965   *) ac_try_echo=$ac_try;;
9966 esac
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968   (eval "$ac_try") 2>&5
9969   ac_status=$?
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); }; } &&
9972          { ac_try='test -s conftest$ac_exeext'
9973   { (case "(($ac_try" in
9974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975   *) ac_try_echo=$ac_try;;
9976 esac
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978   (eval "$ac_try") 2>&5
9979   ac_status=$?
9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981   (exit $ac_status); }; }; then
9982   ac_cv_lib_dld_dld_link=yes
9983 else
9984   echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9986
9987         ac_cv_lib_dld_dld_link=no
9988 fi
9989
9990 rm -f core conftest.err conftest.$ac_objext \
9991       conftest$ac_exeext conftest.$ac_ext
9992 LIBS=$ac_check_lib_save_LIBS
9993 fi
9994 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9995 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9996 if test $ac_cv_lib_dld_dld_link = yes; then
9997
9998 cat >>confdefs.h <<\_ACEOF
9999 #define HAVE_DLD 1
10000 _ACEOF
10001
10002                 LIBADD_DL="$LIBADD_DL -ldld"
10003 else
10004   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10005 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10006 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10007   echo $ECHO_N "(cached) $ECHO_C" >&6
10008 else
10009   cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h.  */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h.  */
10015 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10017 #define _dyld_func_lookup innocuous__dyld_func_lookup
10018
10019 /* System header to define __stub macros and hopefully few prototypes,
10020     which can conflict with char _dyld_func_lookup (); below.
10021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10022     <limits.h> exists even on freestanding compilers.  */
10023
10024 #ifdef __STDC__
10025 # include <limits.h>
10026 #else
10027 # include <assert.h>
10028 #endif
10029
10030 #undef _dyld_func_lookup
10031
10032 /* Override any GCC internal prototype to avoid an error.
10033    Use char because int might match the return type of a GCC
10034    builtin and then its argument prototype would still apply.  */
10035 #ifdef __cplusplus
10036 extern "C"
10037 #endif
10038 char _dyld_func_lookup ();
10039 /* The GNU C library defines this for functions which it implements
10040     to always fail with ENOSYS.  Some functions are actually named
10041     something starting with __ and the normal name is an alias.  */
10042 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10043 choke me
10044 #endif
10045
10046 int
10047 main ()
10048 {
10049 return _dyld_func_lookup ();
10050   ;
10051   return 0;
10052 }
10053 _ACEOF
10054 rm -f conftest.$ac_objext conftest$ac_exeext
10055 if { (ac_try="$ac_link"
10056 case "(($ac_try" in
10057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10058   *) ac_try_echo=$ac_try;;
10059 esac
10060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10061   (eval "$ac_link") 2>conftest.er1
10062   ac_status=$?
10063   grep -v '^ *+' conftest.er1 >conftest.err
10064   rm -f conftest.er1
10065   cat conftest.err >&5
10066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); } &&
10068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10069   { (case "(($ac_try" in
10070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071   *) ac_try_echo=$ac_try;;
10072 esac
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074   (eval "$ac_try") 2>&5
10075   ac_status=$?
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); }; } &&
10078          { ac_try='test -s conftest$ac_exeext'
10079   { (case "(($ac_try" in
10080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081   *) ac_try_echo=$ac_try;;
10082 esac
10083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084   (eval "$ac_try") 2>&5
10085   ac_status=$?
10086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); }; }; then
10088   ac_cv_func__dyld_func_lookup=yes
10089 else
10090   echo "$as_me: failed program was:" >&5
10091 sed 's/^/| /' conftest.$ac_ext >&5
10092
10093         ac_cv_func__dyld_func_lookup=no
10094 fi
10095
10096 rm -f core conftest.err conftest.$ac_objext \
10097       conftest$ac_exeext conftest.$ac_ext
10098 fi
10099 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10100 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10101 if test $ac_cv_func__dyld_func_lookup = yes; then
10102
10103 cat >>confdefs.h <<\_ACEOF
10104 #define HAVE_DYLD 1
10105 _ACEOF
10106
10107 fi
10108
10109
10110 fi
10111
10112
10113 fi
10114
10115
10116 fi
10117
10118 rm -f core conftest.err conftest.$ac_objext \
10119       conftest$ac_exeext conftest.$ac_ext
10120
10121 fi
10122
10123
10124 fi
10125
10126
10127 fi
10128
10129
10130 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10131 then
10132   lt_save_LIBS="$LIBS"
10133   LIBS="$LIBS $LIBADD_DL"
10134
10135 for ac_func in dlerror
10136 do
10137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10141   echo $ECHO_N "(cached) $ECHO_C" >&6
10142 else
10143   cat >conftest.$ac_ext <<_ACEOF
10144 /* confdefs.h.  */
10145 _ACEOF
10146 cat confdefs.h >>conftest.$ac_ext
10147 cat >>conftest.$ac_ext <<_ACEOF
10148 /* end confdefs.h.  */
10149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10151 #define $ac_func innocuous_$ac_func
10152
10153 /* System header to define __stub macros and hopefully few prototypes,
10154     which can conflict with char $ac_func (); below.
10155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10156     <limits.h> exists even on freestanding compilers.  */
10157
10158 #ifdef __STDC__
10159 # include <limits.h>
10160 #else
10161 # include <assert.h>
10162 #endif
10163
10164 #undef $ac_func
10165
10166 /* Override any GCC internal prototype to avoid an error.
10167    Use char because int might match the return type of a GCC
10168    builtin and then its argument prototype would still apply.  */
10169 #ifdef __cplusplus
10170 extern "C"
10171 #endif
10172 char $ac_func ();
10173 /* The GNU C library defines this for functions which it implements
10174     to always fail with ENOSYS.  Some functions are actually named
10175     something starting with __ and the normal name is an alias.  */
10176 #if defined __stub_$ac_func || defined __stub___$ac_func
10177 choke me
10178 #endif
10179
10180 int
10181 main ()
10182 {
10183 return $ac_func ();
10184   ;
10185   return 0;
10186 }
10187 _ACEOF
10188 rm -f conftest.$ac_objext conftest$ac_exeext
10189 if { (ac_try="$ac_link"
10190 case "(($ac_try" in
10191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10192   *) ac_try_echo=$ac_try;;
10193 esac
10194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10195   (eval "$ac_link") 2>conftest.er1
10196   ac_status=$?
10197   grep -v '^ *+' conftest.er1 >conftest.err
10198   rm -f conftest.er1
10199   cat conftest.err >&5
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); } &&
10202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10203   { (case "(($ac_try" in
10204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205   *) ac_try_echo=$ac_try;;
10206 esac
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208   (eval "$ac_try") 2>&5
10209   ac_status=$?
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); }; } &&
10212          { ac_try='test -s conftest$ac_exeext'
10213   { (case "(($ac_try" in
10214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215   *) ac_try_echo=$ac_try;;
10216 esac
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218   (eval "$ac_try") 2>&5
10219   ac_status=$?
10220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221   (exit $ac_status); }; }; then
10222   eval "$as_ac_var=yes"
10223 else
10224   echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10226
10227         eval "$as_ac_var=no"
10228 fi
10229
10230 rm -f core conftest.err conftest.$ac_objext \
10231       conftest$ac_exeext conftest.$ac_ext
10232 fi
10233 ac_res=`eval echo '${'$as_ac_var'}'`
10234                { echo "$as_me:$LINENO: result: $ac_res" >&5
10235 echo "${ECHO_T}$ac_res" >&6; }
10236 if test `eval echo '${'$as_ac_var'}'` = yes; then
10237   cat >>confdefs.h <<_ACEOF
10238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10239 _ACEOF
10240
10241 fi
10242 done
10243
10244   LIBS="$lt_save_LIBS"
10245 fi
10246 ac_ext=c
10247 ac_cpp='$CPP $CPPFLAGS'
10248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10251
10252
10253
10254 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10255 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10256 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10257   echo $ECHO_N "(cached) $ECHO_C" >&6
10258 else
10259   ac_cv_sys_symbol_underscore=no
10260   cat > conftest.$ac_ext <<EOF
10261 void nm_test_func(){}
10262 int main(){nm_test_func;return 0;}
10263 EOF
10264   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10265   (eval $ac_compile) 2>&5
10266   ac_status=$?
10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); }; then
10269     # Now try to grab the symbols.
10270     ac_nlist=conftest.nm
10271     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10272   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10273   ac_status=$?
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); } && test -s "$ac_nlist"; then
10276       # See whether the symbols have a leading underscore.
10277       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10278         ac_cv_sys_symbol_underscore=yes
10279       else
10280         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10281           :
10282         else
10283           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10284         fi
10285       fi
10286     else
10287       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10288     fi
10289   else
10290     echo "configure: failed program was:" >&5
10291     cat conftest.c >&5
10292   fi
10293   rm -rf conftest*
10294
10295 fi
10296 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10297 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10298
10299
10300 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10301   if test x"$libltdl_cv_func_dlopen" = xyes ||
10302      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10303         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10304 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10305 if test "${libltdl_cv_need_uscore+set}" = set; then
10306   echo $ECHO_N "(cached) $ECHO_C" >&6
10307 else
10308   libltdl_cv_need_uscore=unknown
10309           save_LIBS="$LIBS"
10310           LIBS="$LIBS $LIBADD_DL"
10311           if test "$cross_compiling" = yes; then :
10312   libltdl_cv_need_uscore=cross
10313 else
10314   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10315   lt_status=$lt_dlunknown
10316   cat > conftest.$ac_ext <<EOF
10317 #line 10317 "configure"
10318 #include "confdefs.h"
10319
10320 #if HAVE_DLFCN_H
10321 #include <dlfcn.h>
10322 #endif
10323
10324 #include <stdio.h>
10325
10326 #ifdef RTLD_GLOBAL
10327 #  define LT_DLGLOBAL           RTLD_GLOBAL
10328 #else
10329 #  ifdef DL_GLOBAL
10330 #    define LT_DLGLOBAL         DL_GLOBAL
10331 #  else
10332 #    define LT_DLGLOBAL         0
10333 #  endif
10334 #endif
10335
10336 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10337    find out it does not work in some platform. */
10338 #ifndef LT_DLLAZY_OR_NOW
10339 #  ifdef RTLD_LAZY
10340 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10341 #  else
10342 #    ifdef DL_LAZY
10343 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10344 #    else
10345 #      ifdef RTLD_NOW
10346 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10347 #      else
10348 #        ifdef DL_NOW
10349 #          define LT_DLLAZY_OR_NOW      DL_NOW
10350 #        else
10351 #          define LT_DLLAZY_OR_NOW      0
10352 #        endif
10353 #      endif
10354 #    endif
10355 #  endif
10356 #endif
10357
10358 #ifdef __cplusplus
10359 extern "C" void exit (int);
10360 #endif
10361
10362 void fnord() { int i=42;}
10363 int main ()
10364 {
10365   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10366   int status = $lt_dlunknown;
10367
10368   if (self)
10369     {
10370       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10371       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10372       /* dlclose (self); */
10373     }
10374   else
10375     puts (dlerror ());
10376
10377     exit (status);
10378 }
10379 EOF
10380   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10381   (eval $ac_link) 2>&5
10382   ac_status=$?
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10385     (./conftest; exit; ) >&5 2>/dev/null
10386     lt_status=$?
10387     case x$lt_status in
10388       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10389       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10390       x$lt_dlunknown|x*)  ;;
10391     esac
10392   else :
10393     # compilation failed
10394
10395   fi
10396 fi
10397 rm -fr conftest*
10398
10399           LIBS="$save_LIBS"
10400
10401 fi
10402 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10403 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10404   fi
10405 fi
10406
10407 if test x"$libltdl_cv_need_uscore" = xyes; then
10408
10409 cat >>confdefs.h <<\_ACEOF
10410 #define NEED_USCORE 1
10411 _ACEOF
10412
10413 fi
10414
10415
10416 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10417 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10418 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10419   echo $ECHO_N "(cached) $ECHO_C" >&6
10420 else
10421   # PORTME does your system automatically load deplibs for dlopen?
10422   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10423   # For now, we just catch OSes we know something about -- in the
10424   # future, we'll try test this programmatically.
10425   libltdl_cv_sys_dlopen_deplibs=unknown
10426   case "$host_os" in
10427   aix3*|aix4.1.*|aix4.2.*)
10428     # Unknown whether this is true for these versions of AIX, but
10429     # we want this `case' here to explicitly catch those versions.
10430     libltdl_cv_sys_dlopen_deplibs=unknown
10431     ;;
10432   aix[45]*)
10433     libltdl_cv_sys_dlopen_deplibs=yes
10434     ;;
10435   darwin*)
10436     # Assuming the user has installed a libdl from somewhere, this is true
10437     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10438     libltdl_cv_sys_dlopen_deplibs=yes
10439     ;;
10440   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10441     # GNU and its variants, using gnu ld.so (Glibc)
10442     libltdl_cv_sys_dlopen_deplibs=yes
10443     ;;
10444   hpux10*|hpux11*)
10445     libltdl_cv_sys_dlopen_deplibs=yes
10446     ;;
10447   interix*)
10448     libltdl_cv_sys_dlopen_deplibs=yes
10449     ;;
10450   irix[12345]*|irix6.[01]*)
10451     # Catch all versions of IRIX before 6.2, and indicate that we don't
10452     # know how it worked for any of those versions.
10453     libltdl_cv_sys_dlopen_deplibs=unknown
10454     ;;
10455   irix*)
10456     # The case above catches anything before 6.2, and it's known that
10457     # at 6.2 and later dlopen does load deplibs.
10458     libltdl_cv_sys_dlopen_deplibs=yes
10459     ;;
10460   netbsd*)
10461     libltdl_cv_sys_dlopen_deplibs=yes
10462     ;;
10463   openbsd*)
10464     libltdl_cv_sys_dlopen_deplibs=yes
10465     ;;
10466   osf[1234]*)
10467     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10468     # it did *not* use an RPATH in a shared library to find objects the
10469     # library depends on, so we explicitly say `no'.
10470     libltdl_cv_sys_dlopen_deplibs=no
10471     ;;
10472   osf5.0|osf5.0a|osf5.1)
10473     # dlopen *does* load deplibs and with the right loader patch applied
10474     # it even uses RPATH in a shared library to search for shared objects
10475     # that the library depends on, but there's no easy way to know if that
10476     # patch is installed.  Since this is the case, all we can really
10477     # say is unknown -- it depends on the patch being installed.  If
10478     # it is, this changes to `yes'.  Without it, it would be `no'.
10479     libltdl_cv_sys_dlopen_deplibs=unknown
10480     ;;
10481   osf*)
10482     # the two cases above should catch all versions of osf <= 5.1.  Read
10483     # the comments above for what we know about them.
10484     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10485     # is used to find them so we can finally say `yes'.
10486     libltdl_cv_sys_dlopen_deplibs=yes
10487     ;;
10488   solaris*)
10489     libltdl_cv_sys_dlopen_deplibs=yes
10490     ;;
10491   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10492     libltdl_cv_sys_dlopen_deplibs=yes
10493     ;;
10494   esac
10495
10496 fi
10497 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10498 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10499 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10500
10501 cat >>confdefs.h <<\_ACEOF
10502 #define LTDL_DLOPEN_DEPLIBS 1
10503 _ACEOF
10504
10505 fi
10506
10507
10508 for ac_header in argz.h
10509 do
10510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10512   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10515   echo $ECHO_N "(cached) $ECHO_C" >&6
10516 fi
10517 ac_res=`eval echo '${'$as_ac_Header'}'`
10518                { echo "$as_me:$LINENO: result: $ac_res" >&5
10519 echo "${ECHO_T}$ac_res" >&6; }
10520 else
10521   # Is the header compilable?
10522 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10524 cat >conftest.$ac_ext <<_ACEOF
10525 /* confdefs.h.  */
10526 _ACEOF
10527 cat confdefs.h >>conftest.$ac_ext
10528 cat >>conftest.$ac_ext <<_ACEOF
10529 /* end confdefs.h.  */
10530 $ac_includes_default
10531 #include <$ac_header>
10532 _ACEOF
10533 rm -f conftest.$ac_objext
10534 if { (ac_try="$ac_compile"
10535 case "(($ac_try" in
10536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537   *) ac_try_echo=$ac_try;;
10538 esac
10539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540   (eval "$ac_compile") 2>conftest.er1
10541   ac_status=$?
10542   grep -v '^ *+' conftest.er1 >conftest.err
10543   rm -f conftest.er1
10544   cat conftest.err >&5
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); } &&
10547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10548   { (case "(($ac_try" in
10549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550   *) ac_try_echo=$ac_try;;
10551 esac
10552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10553   (eval "$ac_try") 2>&5
10554   ac_status=$?
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); }; } &&
10557          { ac_try='test -s conftest.$ac_objext'
10558   { (case "(($ac_try" in
10559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560   *) ac_try_echo=$ac_try;;
10561 esac
10562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563   (eval "$ac_try") 2>&5
10564   ac_status=$?
10565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566   (exit $ac_status); }; }; then
10567   ac_header_compiler=yes
10568 else
10569   echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10571
10572         ac_header_compiler=no
10573 fi
10574
10575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10577 echo "${ECHO_T}$ac_header_compiler" >&6; }
10578
10579 # Is the header present?
10580 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10582 cat >conftest.$ac_ext <<_ACEOF
10583 /* confdefs.h.  */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h.  */
10588 #include <$ac_header>
10589 _ACEOF
10590 if { (ac_try="$ac_cpp conftest.$ac_ext"
10591 case "(($ac_try" in
10592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10593   *) ac_try_echo=$ac_try;;
10594 esac
10595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10596   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10597   ac_status=$?
10598   grep -v '^ *+' conftest.er1 >conftest.err
10599   rm -f conftest.er1
10600   cat conftest.err >&5
10601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602   (exit $ac_status); } >/dev/null; then
10603   if test -s conftest.err; then
10604     ac_cpp_err=$ac_c_preproc_warn_flag
10605     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10606   else
10607     ac_cpp_err=
10608   fi
10609 else
10610   ac_cpp_err=yes
10611 fi
10612 if test -z "$ac_cpp_err"; then
10613   ac_header_preproc=yes
10614 else
10615   echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.$ac_ext >&5
10617
10618   ac_header_preproc=no
10619 fi
10620
10621 rm -f conftest.err conftest.$ac_ext
10622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10623 echo "${ECHO_T}$ac_header_preproc" >&6; }
10624
10625 # So?  What about this header?
10626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10627   yes:no: )
10628     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10632     ac_header_preproc=yes
10633     ;;
10634   no:yes:* )
10635     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10637     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10638 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10639     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10641     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10642 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10645     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10647     ( cat <<\_ASBOX
10648 ## ------------------------------------ ##
10649 ## Report this to http://llvm.org/bugs/ ##
10650 ## ------------------------------------ ##
10651 _ASBOX
10652      ) | sed "s/^/$as_me: WARNING:     /" >&2
10653     ;;
10654 esac
10655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10658   echo $ECHO_N "(cached) $ECHO_C" >&6
10659 else
10660   eval "$as_ac_Header=\$ac_header_preproc"
10661 fi
10662 ac_res=`eval echo '${'$as_ac_Header'}'`
10663                { echo "$as_me:$LINENO: result: $ac_res" >&5
10664 echo "${ECHO_T}$ac_res" >&6; }
10665
10666 fi
10667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10668   cat >>confdefs.h <<_ACEOF
10669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10670 _ACEOF
10671
10672 fi
10673
10674 done
10675
10676
10677 { echo "$as_me:$LINENO: checking for error_t" >&5
10678 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10679 if test "${ac_cv_type_error_t+set}" = set; then
10680   echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682   cat >conftest.$ac_ext <<_ACEOF
10683 /* confdefs.h.  */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h.  */
10688 #if HAVE_ARGZ_H
10689 #  include <argz.h>
10690 #endif
10691
10692 typedef error_t ac__type_new_;
10693 int
10694 main ()
10695 {
10696 if ((ac__type_new_ *) 0)
10697   return 0;
10698 if (sizeof (ac__type_new_))
10699   return 0;
10700   ;
10701   return 0;
10702 }
10703 _ACEOF
10704 rm -f conftest.$ac_objext
10705 if { (ac_try="$ac_compile"
10706 case "(($ac_try" in
10707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708   *) ac_try_echo=$ac_try;;
10709 esac
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711   (eval "$ac_compile") 2>conftest.er1
10712   ac_status=$?
10713   grep -v '^ *+' conftest.er1 >conftest.err
10714   rm -f conftest.er1
10715   cat conftest.err >&5
10716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717   (exit $ac_status); } &&
10718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10719   { (case "(($ac_try" in
10720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721   *) ac_try_echo=$ac_try;;
10722 esac
10723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724   (eval "$ac_try") 2>&5
10725   ac_status=$?
10726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727   (exit $ac_status); }; } &&
10728          { ac_try='test -s conftest.$ac_objext'
10729   { (case "(($ac_try" in
10730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731   *) ac_try_echo=$ac_try;;
10732 esac
10733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734   (eval "$ac_try") 2>&5
10735   ac_status=$?
10736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737   (exit $ac_status); }; }; then
10738   ac_cv_type_error_t=yes
10739 else
10740   echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10742
10743         ac_cv_type_error_t=no
10744 fi
10745
10746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747 fi
10748 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10749 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10750 if test $ac_cv_type_error_t = yes; then
10751
10752 cat >>confdefs.h <<_ACEOF
10753 #define HAVE_ERROR_T 1
10754 _ACEOF
10755
10756
10757 else
10758
10759 cat >>confdefs.h <<\_ACEOF
10760 #define error_t int
10761 _ACEOF
10762
10763 fi
10764
10765
10766
10767
10768
10769
10770
10771 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10772 do
10773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10774 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10776 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10777   echo $ECHO_N "(cached) $ECHO_C" >&6
10778 else
10779   cat >conftest.$ac_ext <<_ACEOF
10780 /* confdefs.h.  */
10781 _ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h.  */
10785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10787 #define $ac_func innocuous_$ac_func
10788
10789 /* System header to define __stub macros and hopefully few prototypes,
10790     which can conflict with char $ac_func (); below.
10791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10792     <limits.h> exists even on freestanding compilers.  */
10793
10794 #ifdef __STDC__
10795 # include <limits.h>
10796 #else
10797 # include <assert.h>
10798 #endif
10799
10800 #undef $ac_func
10801
10802 /* Override any GCC internal prototype to avoid an error.
10803    Use char because int might match the return type of a GCC
10804    builtin and then its argument prototype would still apply.  */
10805 #ifdef __cplusplus
10806 extern "C"
10807 #endif
10808 char $ac_func ();
10809 /* The GNU C library defines this for functions which it implements
10810     to always fail with ENOSYS.  Some functions are actually named
10811     something starting with __ and the normal name is an alias.  */
10812 #if defined __stub_$ac_func || defined __stub___$ac_func
10813 choke me
10814 #endif
10815
10816 int
10817 main ()
10818 {
10819 return $ac_func ();
10820   ;
10821   return 0;
10822 }
10823 _ACEOF
10824 rm -f conftest.$ac_objext conftest$ac_exeext
10825 if { (ac_try="$ac_link"
10826 case "(($ac_try" in
10827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828   *) ac_try_echo=$ac_try;;
10829 esac
10830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831   (eval "$ac_link") 2>conftest.er1
10832   ac_status=$?
10833   grep -v '^ *+' conftest.er1 >conftest.err
10834   rm -f conftest.er1
10835   cat conftest.err >&5
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); } &&
10838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10839   { (case "(($ac_try" in
10840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841   *) ac_try_echo=$ac_try;;
10842 esac
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844   (eval "$ac_try") 2>&5
10845   ac_status=$?
10846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847   (exit $ac_status); }; } &&
10848          { ac_try='test -s conftest$ac_exeext'
10849   { (case "(($ac_try" in
10850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851   *) ac_try_echo=$ac_try;;
10852 esac
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854   (eval "$ac_try") 2>&5
10855   ac_status=$?
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); }; }; then
10858   eval "$as_ac_var=yes"
10859 else
10860   echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10862
10863         eval "$as_ac_var=no"
10864 fi
10865
10866 rm -f core conftest.err conftest.$ac_objext \
10867       conftest$ac_exeext conftest.$ac_ext
10868 fi
10869 ac_res=`eval echo '${'$as_ac_var'}'`
10870                { echo "$as_me:$LINENO: result: $ac_res" >&5
10871 echo "${ECHO_T}$ac_res" >&6; }
10872 if test `eval echo '${'$as_ac_var'}'` = yes; then
10873   cat >>confdefs.h <<_ACEOF
10874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10875 _ACEOF
10876
10877 fi
10878 done
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10908                   stdio.h unistd.h
10909 do
10910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10912   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10915   echo $ECHO_N "(cached) $ECHO_C" >&6
10916 fi
10917 ac_res=`eval echo '${'$as_ac_Header'}'`
10918                { echo "$as_me:$LINENO: result: $ac_res" >&5
10919 echo "${ECHO_T}$ac_res" >&6; }
10920 else
10921   # Is the header compilable?
10922 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10924 cat >conftest.$ac_ext <<_ACEOF
10925 /* confdefs.h.  */
10926 _ACEOF
10927 cat confdefs.h >>conftest.$ac_ext
10928 cat >>conftest.$ac_ext <<_ACEOF
10929 /* end confdefs.h.  */
10930 $ac_includes_default
10931 #include <$ac_header>
10932 _ACEOF
10933 rm -f conftest.$ac_objext
10934 if { (ac_try="$ac_compile"
10935 case "(($ac_try" in
10936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937   *) ac_try_echo=$ac_try;;
10938 esac
10939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940   (eval "$ac_compile") 2>conftest.er1
10941   ac_status=$?
10942   grep -v '^ *+' conftest.er1 >conftest.err
10943   rm -f conftest.er1
10944   cat conftest.err >&5
10945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946   (exit $ac_status); } &&
10947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10948   { (case "(($ac_try" in
10949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950   *) ac_try_echo=$ac_try;;
10951 esac
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953   (eval "$ac_try") 2>&5
10954   ac_status=$?
10955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956   (exit $ac_status); }; } &&
10957          { ac_try='test -s conftest.$ac_objext'
10958   { (case "(($ac_try" in
10959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960   *) ac_try_echo=$ac_try;;
10961 esac
10962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963   (eval "$ac_try") 2>&5
10964   ac_status=$?
10965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966   (exit $ac_status); }; }; then
10967   ac_header_compiler=yes
10968 else
10969   echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10971
10972         ac_header_compiler=no
10973 fi
10974
10975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10977 echo "${ECHO_T}$ac_header_compiler" >&6; }
10978
10979 # Is the header present?
10980 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10982 cat >conftest.$ac_ext <<_ACEOF
10983 /* confdefs.h.  */
10984 _ACEOF
10985 cat confdefs.h >>conftest.$ac_ext
10986 cat >>conftest.$ac_ext <<_ACEOF
10987 /* end confdefs.h.  */
10988 #include <$ac_header>
10989 _ACEOF
10990 if { (ac_try="$ac_cpp conftest.$ac_ext"
10991 case "(($ac_try" in
10992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993   *) ac_try_echo=$ac_try;;
10994 esac
10995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10997   ac_status=$?
10998   grep -v '^ *+' conftest.er1 >conftest.err
10999   rm -f conftest.er1
11000   cat conftest.err >&5
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); } >/dev/null; then
11003   if test -s conftest.err; then
11004     ac_cpp_err=$ac_c_preproc_warn_flag
11005     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11006   else
11007     ac_cpp_err=
11008   fi
11009 else
11010   ac_cpp_err=yes
11011 fi
11012 if test -z "$ac_cpp_err"; then
11013   ac_header_preproc=yes
11014 else
11015   echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11017
11018   ac_header_preproc=no
11019 fi
11020
11021 rm -f conftest.err conftest.$ac_ext
11022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11023 echo "${ECHO_T}$ac_header_preproc" >&6; }
11024
11025 # So?  What about this header?
11026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11027   yes:no: )
11028     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11032     ac_header_preproc=yes
11033     ;;
11034   no:yes:* )
11035     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11037     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11038 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11039     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11041     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11042 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11045     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11047     ( cat <<\_ASBOX
11048 ## ------------------------------------ ##
11049 ## Report this to http://llvm.org/bugs/ ##
11050 ## ------------------------------------ ##
11051 _ASBOX
11052      ) | sed "s/^/$as_me: WARNING:     /" >&2
11053     ;;
11054 esac
11055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11058   echo $ECHO_N "(cached) $ECHO_C" >&6
11059 else
11060   eval "$as_ac_Header=\$ac_header_preproc"
11061 fi
11062 ac_res=`eval echo '${'$as_ac_Header'}'`
11063                { echo "$as_me:$LINENO: result: $ac_res" >&5
11064 echo "${ECHO_T}$ac_res" >&6; }
11065
11066 fi
11067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11068   cat >>confdefs.h <<_ACEOF
11069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11070 _ACEOF
11071
11072 fi
11073
11074 done
11075
11076
11077
11078
11079
11080 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11081 do
11082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11084   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11087   echo $ECHO_N "(cached) $ECHO_C" >&6
11088 fi
11089 ac_res=`eval echo '${'$as_ac_Header'}'`
11090                { echo "$as_me:$LINENO: result: $ac_res" >&5
11091 echo "${ECHO_T}$ac_res" >&6; }
11092 else
11093   # Is the header compilable?
11094 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11096 cat >conftest.$ac_ext <<_ACEOF
11097 /* confdefs.h.  */
11098 _ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h.  */
11102 $ac_includes_default
11103 #include <$ac_header>
11104 _ACEOF
11105 rm -f conftest.$ac_objext
11106 if { (ac_try="$ac_compile"
11107 case "(($ac_try" in
11108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109   *) ac_try_echo=$ac_try;;
11110 esac
11111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11112   (eval "$ac_compile") 2>conftest.er1
11113   ac_status=$?
11114   grep -v '^ *+' conftest.er1 >conftest.err
11115   rm -f conftest.er1
11116   cat conftest.err >&5
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); } &&
11119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11120   { (case "(($ac_try" in
11121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122   *) ac_try_echo=$ac_try;;
11123 esac
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125   (eval "$ac_try") 2>&5
11126   ac_status=$?
11127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); }; } &&
11129          { ac_try='test -s conftest.$ac_objext'
11130   { (case "(($ac_try" in
11131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132   *) ac_try_echo=$ac_try;;
11133 esac
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135   (eval "$ac_try") 2>&5
11136   ac_status=$?
11137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138   (exit $ac_status); }; }; then
11139   ac_header_compiler=yes
11140 else
11141   echo "$as_me: failed program was:" >&5
11142 sed 's/^/| /' conftest.$ac_ext >&5
11143
11144         ac_header_compiler=no
11145 fi
11146
11147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11149 echo "${ECHO_T}$ac_header_compiler" >&6; }
11150
11151 # Is the header present?
11152 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11154 cat >conftest.$ac_ext <<_ACEOF
11155 /* confdefs.h.  */
11156 _ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h.  */
11160 #include <$ac_header>
11161 _ACEOF
11162 if { (ac_try="$ac_cpp conftest.$ac_ext"
11163 case "(($ac_try" in
11164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165   *) ac_try_echo=$ac_try;;
11166 esac
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11169   ac_status=$?
11170   grep -v '^ *+' conftest.er1 >conftest.err
11171   rm -f conftest.er1
11172   cat conftest.err >&5
11173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174   (exit $ac_status); } >/dev/null; then
11175   if test -s conftest.err; then
11176     ac_cpp_err=$ac_c_preproc_warn_flag
11177     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11178   else
11179     ac_cpp_err=
11180   fi
11181 else
11182   ac_cpp_err=yes
11183 fi
11184 if test -z "$ac_cpp_err"; then
11185   ac_header_preproc=yes
11186 else
11187   echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11189
11190   ac_header_preproc=no
11191 fi
11192
11193 rm -f conftest.err conftest.$ac_ext
11194 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11195 echo "${ECHO_T}$ac_header_preproc" >&6; }
11196
11197 # So?  What about this header?
11198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11199   yes:no: )
11200     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11202     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11204     ac_header_preproc=yes
11205     ;;
11206   no:yes:* )
11207     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11209     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11210 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11211     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11213     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11214 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11215     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11217     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11219     ( cat <<\_ASBOX
11220 ## ------------------------------------ ##
11221 ## Report this to http://llvm.org/bugs/ ##
11222 ## ------------------------------------ ##
11223 _ASBOX
11224      ) | sed "s/^/$as_me: WARNING:     /" >&2
11225     ;;
11226 esac
11227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11230   echo $ECHO_N "(cached) $ECHO_C" >&6
11231 else
11232   eval "$as_ac_Header=\$ac_header_preproc"
11233 fi
11234 ac_res=`eval echo '${'$as_ac_Header'}'`
11235                { echo "$as_me:$LINENO: result: $ac_res" >&5
11236 echo "${ECHO_T}$ac_res" >&6; }
11237
11238 fi
11239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11240   cat >>confdefs.h <<_ACEOF
11241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11242 _ACEOF
11243
11244 fi
11245
11246 done
11247
11248
11249
11250 for ac_header in string.h strings.h
11251 do
11252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11254   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11257   echo $ECHO_N "(cached) $ECHO_C" >&6
11258 fi
11259 ac_res=`eval echo '${'$as_ac_Header'}'`
11260                { echo "$as_me:$LINENO: result: $ac_res" >&5
11261 echo "${ECHO_T}$ac_res" >&6; }
11262 else
11263   # Is the header compilable?
11264 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11266 cat >conftest.$ac_ext <<_ACEOF
11267 /* confdefs.h.  */
11268 _ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h.  */
11272 $ac_includes_default
11273 #include <$ac_header>
11274 _ACEOF
11275 rm -f conftest.$ac_objext
11276 if { (ac_try="$ac_compile"
11277 case "(($ac_try" in
11278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279   *) ac_try_echo=$ac_try;;
11280 esac
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282   (eval "$ac_compile") 2>conftest.er1
11283   ac_status=$?
11284   grep -v '^ *+' conftest.er1 >conftest.err
11285   rm -f conftest.er1
11286   cat conftest.err >&5
11287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288   (exit $ac_status); } &&
11289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11290   { (case "(($ac_try" in
11291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292   *) ac_try_echo=$ac_try;;
11293 esac
11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295   (eval "$ac_try") 2>&5
11296   ac_status=$?
11297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298   (exit $ac_status); }; } &&
11299          { ac_try='test -s conftest.$ac_objext'
11300   { (case "(($ac_try" in
11301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302   *) ac_try_echo=$ac_try;;
11303 esac
11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305   (eval "$ac_try") 2>&5
11306   ac_status=$?
11307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308   (exit $ac_status); }; }; then
11309   ac_header_compiler=yes
11310 else
11311   echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11313
11314         ac_header_compiler=no
11315 fi
11316
11317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11319 echo "${ECHO_T}$ac_header_compiler" >&6; }
11320
11321 # Is the header present?
11322 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11324 cat >conftest.$ac_ext <<_ACEOF
11325 /* confdefs.h.  */
11326 _ACEOF
11327 cat confdefs.h >>conftest.$ac_ext
11328 cat >>conftest.$ac_ext <<_ACEOF
11329 /* end confdefs.h.  */
11330 #include <$ac_header>
11331 _ACEOF
11332 if { (ac_try="$ac_cpp conftest.$ac_ext"
11333 case "(($ac_try" in
11334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335   *) ac_try_echo=$ac_try;;
11336 esac
11337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11338   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11339   ac_status=$?
11340   grep -v '^ *+' conftest.er1 >conftest.err
11341   rm -f conftest.er1
11342   cat conftest.err >&5
11343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344   (exit $ac_status); } >/dev/null; then
11345   if test -s conftest.err; then
11346     ac_cpp_err=$ac_c_preproc_warn_flag
11347     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11348   else
11349     ac_cpp_err=
11350   fi
11351 else
11352   ac_cpp_err=yes
11353 fi
11354 if test -z "$ac_cpp_err"; then
11355   ac_header_preproc=yes
11356 else
11357   echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11359
11360   ac_header_preproc=no
11361 fi
11362
11363 rm -f conftest.err conftest.$ac_ext
11364 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11365 echo "${ECHO_T}$ac_header_preproc" >&6; }
11366
11367 # So?  What about this header?
11368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11369   yes:no: )
11370     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11372     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11374     ac_header_preproc=yes
11375     ;;
11376   no:yes:* )
11377     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11379     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11380 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11381     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11383     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11384 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11385     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11387     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11389     ( cat <<\_ASBOX
11390 ## ------------------------------------ ##
11391 ## Report this to http://llvm.org/bugs/ ##
11392 ## ------------------------------------ ##
11393 _ASBOX
11394      ) | sed "s/^/$as_me: WARNING:     /" >&2
11395     ;;
11396 esac
11397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11400   echo $ECHO_N "(cached) $ECHO_C" >&6
11401 else
11402   eval "$as_ac_Header=\$ac_header_preproc"
11403 fi
11404 ac_res=`eval echo '${'$as_ac_Header'}'`
11405                { echo "$as_me:$LINENO: result: $ac_res" >&5
11406 echo "${ECHO_T}$ac_res" >&6; }
11407
11408 fi
11409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11410   cat >>confdefs.h <<_ACEOF
11411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11412 _ACEOF
11413  break
11414 fi
11415
11416 done
11417
11418
11419
11420
11421 for ac_func in strchr index
11422 do
11423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11424 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11426 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11427   echo $ECHO_N "(cached) $ECHO_C" >&6
11428 else
11429   cat >conftest.$ac_ext <<_ACEOF
11430 /* confdefs.h.  */
11431 _ACEOF
11432 cat confdefs.h >>conftest.$ac_ext
11433 cat >>conftest.$ac_ext <<_ACEOF
11434 /* end confdefs.h.  */
11435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11436    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11437 #define $ac_func innocuous_$ac_func
11438
11439 /* System header to define __stub macros and hopefully few prototypes,
11440     which can conflict with char $ac_func (); below.
11441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11442     <limits.h> exists even on freestanding compilers.  */
11443
11444 #ifdef __STDC__
11445 # include <limits.h>
11446 #else
11447 # include <assert.h>
11448 #endif
11449
11450 #undef $ac_func
11451
11452 /* Override any GCC internal prototype to avoid an error.
11453    Use char because int might match the return type of a GCC
11454    builtin and then its argument prototype would still apply.  */
11455 #ifdef __cplusplus
11456 extern "C"
11457 #endif
11458 char $ac_func ();
11459 /* The GNU C library defines this for functions which it implements
11460     to always fail with ENOSYS.  Some functions are actually named
11461     something starting with __ and the normal name is an alias.  */
11462 #if defined __stub_$ac_func || defined __stub___$ac_func
11463 choke me
11464 #endif
11465
11466 int
11467 main ()
11468 {
11469 return $ac_func ();
11470   ;
11471   return 0;
11472 }
11473 _ACEOF
11474 rm -f conftest.$ac_objext conftest$ac_exeext
11475 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
11482   ac_status=$?
11483   grep -v '^ *+' conftest.er1 >conftest.err
11484   rm -f conftest.er1
11485   cat conftest.err >&5
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); } &&
11488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11489   { (case "(($ac_try" in
11490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491   *) ac_try_echo=$ac_try;;
11492 esac
11493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494   (eval "$ac_try") 2>&5
11495   ac_status=$?
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); }; } &&
11498          { ac_try='test -s conftest$ac_exeext'
11499   { (case "(($ac_try" in
11500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501   *) ac_try_echo=$ac_try;;
11502 esac
11503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504   (eval "$ac_try") 2>&5
11505   ac_status=$?
11506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507   (exit $ac_status); }; }; then
11508   eval "$as_ac_var=yes"
11509 else
11510   echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11512
11513         eval "$as_ac_var=no"
11514 fi
11515
11516 rm -f core conftest.err conftest.$ac_objext \
11517       conftest$ac_exeext conftest.$ac_ext
11518 fi
11519 ac_res=`eval echo '${'$as_ac_var'}'`
11520                { echo "$as_me:$LINENO: result: $ac_res" >&5
11521 echo "${ECHO_T}$ac_res" >&6; }
11522 if test `eval echo '${'$as_ac_var'}'` = yes; then
11523   cat >>confdefs.h <<_ACEOF
11524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11525 _ACEOF
11526  break
11527 fi
11528 done
11529
11530
11531
11532 for ac_func in strrchr rindex
11533 do
11534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11535 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11537 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11538   echo $ECHO_N "(cached) $ECHO_C" >&6
11539 else
11540   cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h.  */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h.  */
11546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11548 #define $ac_func innocuous_$ac_func
11549
11550 /* System header to define __stub macros and hopefully few prototypes,
11551     which can conflict with char $ac_func (); below.
11552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11553     <limits.h> exists even on freestanding compilers.  */
11554
11555 #ifdef __STDC__
11556 # include <limits.h>
11557 #else
11558 # include <assert.h>
11559 #endif
11560
11561 #undef $ac_func
11562
11563 /* Override any GCC internal prototype to avoid an error.
11564    Use char because int might match the return type of a GCC
11565    builtin and then its argument prototype would still apply.  */
11566 #ifdef __cplusplus
11567 extern "C"
11568 #endif
11569 char $ac_func ();
11570 /* The GNU C library defines this for functions which it implements
11571     to always fail with ENOSYS.  Some functions are actually named
11572     something starting with __ and the normal name is an alias.  */
11573 #if defined __stub_$ac_func || defined __stub___$ac_func
11574 choke me
11575 #endif
11576
11577 int
11578 main ()
11579 {
11580 return $ac_func ();
11581   ;
11582   return 0;
11583 }
11584 _ACEOF
11585 rm -f conftest.$ac_objext conftest$ac_exeext
11586 if { (ac_try="$ac_link"
11587 case "(($ac_try" in
11588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589   *) ac_try_echo=$ac_try;;
11590 esac
11591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592   (eval "$ac_link") 2>conftest.er1
11593   ac_status=$?
11594   grep -v '^ *+' conftest.er1 >conftest.err
11595   rm -f conftest.er1
11596   cat conftest.err >&5
11597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598   (exit $ac_status); } &&
11599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11600   { (case "(($ac_try" in
11601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11602   *) ac_try_echo=$ac_try;;
11603 esac
11604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11605   (eval "$ac_try") 2>&5
11606   ac_status=$?
11607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608   (exit $ac_status); }; } &&
11609          { ac_try='test -s conftest$ac_exeext'
11610   { (case "(($ac_try" in
11611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612   *) ac_try_echo=$ac_try;;
11613 esac
11614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11615   (eval "$ac_try") 2>&5
11616   ac_status=$?
11617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618   (exit $ac_status); }; }; then
11619   eval "$as_ac_var=yes"
11620 else
11621   echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.$ac_ext >&5
11623
11624         eval "$as_ac_var=no"
11625 fi
11626
11627 rm -f core conftest.err conftest.$ac_objext \
11628       conftest$ac_exeext conftest.$ac_ext
11629 fi
11630 ac_res=`eval echo '${'$as_ac_var'}'`
11631                { echo "$as_me:$LINENO: result: $ac_res" >&5
11632 echo "${ECHO_T}$ac_res" >&6; }
11633 if test `eval echo '${'$as_ac_var'}'` = yes; then
11634   cat >>confdefs.h <<_ACEOF
11635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11636 _ACEOF
11637  break
11638 fi
11639 done
11640
11641
11642
11643 for ac_func in memcpy bcopy
11644 do
11645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11646 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11648 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11649   echo $ECHO_N "(cached) $ECHO_C" >&6
11650 else
11651   cat >conftest.$ac_ext <<_ACEOF
11652 /* confdefs.h.  */
11653 _ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h.  */
11657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11658    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11659 #define $ac_func innocuous_$ac_func
11660
11661 /* System header to define __stub macros and hopefully few prototypes,
11662     which can conflict with char $ac_func (); below.
11663     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11664     <limits.h> exists even on freestanding compilers.  */
11665
11666 #ifdef __STDC__
11667 # include <limits.h>
11668 #else
11669 # include <assert.h>
11670 #endif
11671
11672 #undef $ac_func
11673
11674 /* Override any GCC internal prototype to avoid an error.
11675    Use char because int might match the return type of a GCC
11676    builtin and then its argument prototype would still apply.  */
11677 #ifdef __cplusplus
11678 extern "C"
11679 #endif
11680 char $ac_func ();
11681 /* The GNU C library defines this for functions which it implements
11682     to always fail with ENOSYS.  Some functions are actually named
11683     something starting with __ and the normal name is an alias.  */
11684 #if defined __stub_$ac_func || defined __stub___$ac_func
11685 choke me
11686 #endif
11687
11688 int
11689 main ()
11690 {
11691 return $ac_func ();
11692   ;
11693   return 0;
11694 }
11695 _ACEOF
11696 rm -f conftest.$ac_objext conftest$ac_exeext
11697 if { (ac_try="$ac_link"
11698 case "(($ac_try" in
11699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700   *) ac_try_echo=$ac_try;;
11701 esac
11702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703   (eval "$ac_link") 2>conftest.er1
11704   ac_status=$?
11705   grep -v '^ *+' conftest.er1 >conftest.err
11706   rm -f conftest.er1
11707   cat conftest.err >&5
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); } &&
11710          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11711   { (case "(($ac_try" in
11712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713   *) ac_try_echo=$ac_try;;
11714 esac
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716   (eval "$ac_try") 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); }; } &&
11720          { ac_try='test -s conftest$ac_exeext'
11721   { (case "(($ac_try" in
11722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723   *) ac_try_echo=$ac_try;;
11724 esac
11725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11726   (eval "$ac_try") 2>&5
11727   ac_status=$?
11728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729   (exit $ac_status); }; }; then
11730   eval "$as_ac_var=yes"
11731 else
11732   echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11734
11735         eval "$as_ac_var=no"
11736 fi
11737
11738 rm -f core conftest.err conftest.$ac_objext \
11739       conftest$ac_exeext conftest.$ac_ext
11740 fi
11741 ac_res=`eval echo '${'$as_ac_var'}'`
11742                { echo "$as_me:$LINENO: result: $ac_res" >&5
11743 echo "${ECHO_T}$ac_res" >&6; }
11744 if test `eval echo '${'$as_ac_var'}'` = yes; then
11745   cat >>confdefs.h <<_ACEOF
11746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11747 _ACEOF
11748  break
11749 fi
11750 done
11751
11752
11753
11754 for ac_func in memmove strcmp
11755 do
11756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11760   echo $ECHO_N "(cached) $ECHO_C" >&6
11761 else
11762   cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h.  */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h.  */
11768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11770 #define $ac_func innocuous_$ac_func
11771
11772 /* System header to define __stub macros and hopefully few prototypes,
11773     which can conflict with char $ac_func (); below.
11774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11775     <limits.h> exists even on freestanding compilers.  */
11776
11777 #ifdef __STDC__
11778 # include <limits.h>
11779 #else
11780 # include <assert.h>
11781 #endif
11782
11783 #undef $ac_func
11784
11785 /* Override any GCC internal prototype to avoid an error.
11786    Use char because int might match the return type of a GCC
11787    builtin and then its argument prototype would still apply.  */
11788 #ifdef __cplusplus
11789 extern "C"
11790 #endif
11791 char $ac_func ();
11792 /* The GNU C library defines this for functions which it implements
11793     to always fail with ENOSYS.  Some functions are actually named
11794     something starting with __ and the normal name is an alias.  */
11795 #if defined __stub_$ac_func || defined __stub___$ac_func
11796 choke me
11797 #endif
11798
11799 int
11800 main ()
11801 {
11802 return $ac_func ();
11803   ;
11804   return 0;
11805 }
11806 _ACEOF
11807 rm -f conftest.$ac_objext conftest$ac_exeext
11808 if { (ac_try="$ac_link"
11809 case "(($ac_try" in
11810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811   *) ac_try_echo=$ac_try;;
11812 esac
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814   (eval "$ac_link") 2>conftest.er1
11815   ac_status=$?
11816   grep -v '^ *+' conftest.er1 >conftest.err
11817   rm -f conftest.er1
11818   cat conftest.err >&5
11819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820   (exit $ac_status); } &&
11821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11822   { (case "(($ac_try" in
11823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824   *) ac_try_echo=$ac_try;;
11825 esac
11826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827   (eval "$ac_try") 2>&5
11828   ac_status=$?
11829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830   (exit $ac_status); }; } &&
11831          { ac_try='test -s conftest$ac_exeext'
11832   { (case "(($ac_try" in
11833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834   *) ac_try_echo=$ac_try;;
11835 esac
11836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837   (eval "$ac_try") 2>&5
11838   ac_status=$?
11839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840   (exit $ac_status); }; }; then
11841   eval "$as_ac_var=yes"
11842 else
11843   echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11845
11846         eval "$as_ac_var=no"
11847 fi
11848
11849 rm -f core conftest.err conftest.$ac_objext \
11850       conftest$ac_exeext conftest.$ac_ext
11851 fi
11852 ac_res=`eval echo '${'$as_ac_var'}'`
11853                { echo "$as_me:$LINENO: result: $ac_res" >&5
11854 echo "${ECHO_T}$ac_res" >&6; }
11855 if test `eval echo '${'$as_ac_var'}'` = yes; then
11856   cat >>confdefs.h <<_ACEOF
11857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11858 _ACEOF
11859
11860 fi
11861 done
11862
11863
11864
11865
11866 for ac_func in closedir opendir readdir
11867 do
11868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11872   echo $ECHO_N "(cached) $ECHO_C" >&6
11873 else
11874   cat >conftest.$ac_ext <<_ACEOF
11875 /* confdefs.h.  */
11876 _ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h.  */
11880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11881    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11882 #define $ac_func innocuous_$ac_func
11883
11884 /* System header to define __stub macros and hopefully few prototypes,
11885     which can conflict with char $ac_func (); below.
11886     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11887     <limits.h> exists even on freestanding compilers.  */
11888
11889 #ifdef __STDC__
11890 # include <limits.h>
11891 #else
11892 # include <assert.h>
11893 #endif
11894
11895 #undef $ac_func
11896
11897 /* Override any GCC internal prototype to avoid an error.
11898    Use char because int might match the return type of a GCC
11899    builtin and then its argument prototype would still apply.  */
11900 #ifdef __cplusplus
11901 extern "C"
11902 #endif
11903 char $ac_func ();
11904 /* The GNU C library defines this for functions which it implements
11905     to always fail with ENOSYS.  Some functions are actually named
11906     something starting with __ and the normal name is an alias.  */
11907 #if defined __stub_$ac_func || defined __stub___$ac_func
11908 choke me
11909 #endif
11910
11911 int
11912 main ()
11913 {
11914 return $ac_func ();
11915   ;
11916   return 0;
11917 }
11918 _ACEOF
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (ac_try="$ac_link"
11921 case "(($ac_try" in
11922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923   *) ac_try_echo=$ac_try;;
11924 esac
11925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926   (eval "$ac_link") 2>conftest.er1
11927   ac_status=$?
11928   grep -v '^ *+' conftest.er1 >conftest.err
11929   rm -f conftest.er1
11930   cat conftest.err >&5
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); } &&
11933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11934   { (case "(($ac_try" in
11935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936   *) ac_try_echo=$ac_try;;
11937 esac
11938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939   (eval "$ac_try") 2>&5
11940   ac_status=$?
11941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942   (exit $ac_status); }; } &&
11943          { ac_try='test -s conftest$ac_exeext'
11944   { (case "(($ac_try" in
11945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946   *) ac_try_echo=$ac_try;;
11947 esac
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949   (eval "$ac_try") 2>&5
11950   ac_status=$?
11951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952   (exit $ac_status); }; }; then
11953   eval "$as_ac_var=yes"
11954 else
11955   echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11957
11958         eval "$as_ac_var=no"
11959 fi
11960
11961 rm -f core conftest.err conftest.$ac_objext \
11962       conftest$ac_exeext conftest.$ac_ext
11963 fi
11964 ac_res=`eval echo '${'$as_ac_var'}'`
11965                { echo "$as_me:$LINENO: result: $ac_res" >&5
11966 echo "${ECHO_T}$ac_res" >&6; }
11967 if test `eval echo '${'$as_ac_var'}'` = yes; then
11968   cat >>confdefs.h <<_ACEOF
11969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11970 _ACEOF
11971
11972 fi
11973 done
11974
11975
11976
11977 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11978 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11979
11980 ICC=no
11981 IXX=no
11982 case $CC in
11983   icc*|icpc*)
11984     ICC=yes
11985     IXX=yes
11986     ;;
11987    *)
11988     ;;
11989 esac
11990
11991 if test "$GCC" != "yes" && test "$ICC" != "yes"
11992 then
11993   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11994 echo "$as_me: error: gcc|icc required but not found" >&2;}
11995    { (exit 1); exit 1; }; }
11996 fi
11997
11998 if test "$GXX" != "yes" && test "$IXX" != "yes"
11999 then
12000   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12001 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12002    { (exit 1); exit 1; }; }
12003 fi
12004
12005 if test "$GCC" = "yes"
12006 then
12007   cat >conftest.$ac_ext <<_ACEOF
12008 #if !defined(__GNUC__) || __GNUC__ < 3
12009 #error Unsupported GCC version
12010 #endif
12011
12012 _ACEOF
12013 rm -f conftest.$ac_objext
12014 if { (ac_try="$ac_compile"
12015 case "(($ac_try" in
12016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017   *) ac_try_echo=$ac_try;;
12018 esac
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020   (eval "$ac_compile") 2>conftest.er1
12021   ac_status=$?
12022   grep -v '^ *+' conftest.er1 >conftest.err
12023   rm -f conftest.er1
12024   cat conftest.err >&5
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); } &&
12027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12028   { (case "(($ac_try" in
12029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030   *) ac_try_echo=$ac_try;;
12031 esac
12032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033   (eval "$ac_try") 2>&5
12034   ac_status=$?
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); }; } &&
12037          { ac_try='test -s conftest.$ac_objext'
12038   { (case "(($ac_try" in
12039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040   *) ac_try_echo=$ac_try;;
12041 esac
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043   (eval "$ac_try") 2>&5
12044   ac_status=$?
12045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046   (exit $ac_status); }; }; then
12047   :
12048 else
12049   echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12051
12052         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12053 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12054    { (exit 1); exit 1; }; }
12055 fi
12056
12057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12058 fi
12059
12060 if test -z "$llvm_cv_gnu_make_command"
12061 then
12062   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12063 echo "$as_me: error: GNU Make required but not found" >&2;}
12064    { (exit 1); exit 1; }; }
12065 fi
12066
12067 { echo "$as_me:$LINENO: result: ok" >&5
12068 echo "${ECHO_T}ok" >&6; }
12069
12070 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12071 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12072 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12073
12074 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12075
12076 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12077
12078 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12079 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12080
12081
12082
12083 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12084 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12085 if test "${ac_cv_lib_m_sin+set}" = set; then
12086   echo $ECHO_N "(cached) $ECHO_C" >&6
12087 else
12088   ac_check_lib_save_LIBS=$LIBS
12089 LIBS="-lm  $LIBS"
12090 cat >conftest.$ac_ext <<_ACEOF
12091 /* confdefs.h.  */
12092 _ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h.  */
12096
12097 /* Override any GCC internal prototype to avoid an error.
12098    Use char because int might match the return type of a GCC
12099    builtin and then its argument prototype would still apply.  */
12100 #ifdef __cplusplus
12101 extern "C"
12102 #endif
12103 char sin ();
12104 int
12105 main ()
12106 {
12107 return sin ();
12108   ;
12109   return 0;
12110 }
12111 _ACEOF
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (ac_try="$ac_link"
12114 case "(($ac_try" in
12115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116   *) ac_try_echo=$ac_try;;
12117 esac
12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119   (eval "$ac_link") 2>conftest.er1
12120   ac_status=$?
12121   grep -v '^ *+' conftest.er1 >conftest.err
12122   rm -f conftest.er1
12123   cat conftest.err >&5
12124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125   (exit $ac_status); } &&
12126          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12127   { (case "(($ac_try" in
12128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129   *) ac_try_echo=$ac_try;;
12130 esac
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132   (eval "$ac_try") 2>&5
12133   ac_status=$?
12134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135   (exit $ac_status); }; } &&
12136          { ac_try='test -s conftest$ac_exeext'
12137   { (case "(($ac_try" in
12138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139   *) ac_try_echo=$ac_try;;
12140 esac
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142   (eval "$ac_try") 2>&5
12143   ac_status=$?
12144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145   (exit $ac_status); }; }; then
12146   ac_cv_lib_m_sin=yes
12147 else
12148   echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12150
12151         ac_cv_lib_m_sin=no
12152 fi
12153
12154 rm -f core conftest.err conftest.$ac_objext \
12155       conftest$ac_exeext conftest.$ac_ext
12156 LIBS=$ac_check_lib_save_LIBS
12157 fi
12158 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12159 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12160 if test $ac_cv_lib_m_sin = yes; then
12161   cat >>confdefs.h <<_ACEOF
12162 #define HAVE_LIBM 1
12163 _ACEOF
12164
12165   LIBS="-lm $LIBS"
12166
12167 fi
12168
12169 if test "$llvm_cv_os_type" = "MingW" ; then
12170
12171 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12172 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12173 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12174   echo $ECHO_N "(cached) $ECHO_C" >&6
12175 else
12176   ac_check_lib_save_LIBS=$LIBS
12177 LIBS="-limagehlp  $LIBS"
12178 cat >conftest.$ac_ext <<_ACEOF
12179 /* confdefs.h.  */
12180 _ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h.  */
12184
12185
12186 int
12187 main ()
12188 {
12189 return main ();
12190   ;
12191   return 0;
12192 }
12193 _ACEOF
12194 rm -f conftest.$ac_objext conftest$ac_exeext
12195 if { (ac_try="$ac_link"
12196 case "(($ac_try" in
12197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198   *) ac_try_echo=$ac_try;;
12199 esac
12200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201   (eval "$ac_link") 2>conftest.er1
12202   ac_status=$?
12203   grep -v '^ *+' conftest.er1 >conftest.err
12204   rm -f conftest.er1
12205   cat conftest.err >&5
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); } &&
12208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12209   { (case "(($ac_try" in
12210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211   *) ac_try_echo=$ac_try;;
12212 esac
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214   (eval "$ac_try") 2>&5
12215   ac_status=$?
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); }; } &&
12218          { ac_try='test -s conftest$ac_exeext'
12219   { (case "(($ac_try" in
12220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221   *) ac_try_echo=$ac_try;;
12222 esac
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224   (eval "$ac_try") 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); }; }; then
12228   ac_cv_lib_imagehlp_main=yes
12229 else
12230   echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12232
12233         ac_cv_lib_imagehlp_main=no
12234 fi
12235
12236 rm -f core conftest.err conftest.$ac_objext \
12237       conftest$ac_exeext conftest.$ac_ext
12238 LIBS=$ac_check_lib_save_LIBS
12239 fi
12240 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12241 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12242 if test $ac_cv_lib_imagehlp_main = yes; then
12243   cat >>confdefs.h <<_ACEOF
12244 #define HAVE_LIBIMAGEHLP 1
12245 _ACEOF
12246
12247   LIBS="-limagehlp $LIBS"
12248
12249 fi
12250
12251
12252 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12253 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12254 if test "${ac_cv_lib_psapi_main+set}" = set; then
12255   echo $ECHO_N "(cached) $ECHO_C" >&6
12256 else
12257   ac_check_lib_save_LIBS=$LIBS
12258 LIBS="-lpsapi  $LIBS"
12259 cat >conftest.$ac_ext <<_ACEOF
12260 /* confdefs.h.  */
12261 _ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h.  */
12265
12266
12267 int
12268 main ()
12269 {
12270 return main ();
12271   ;
12272   return 0;
12273 }
12274 _ACEOF
12275 rm -f conftest.$ac_objext conftest$ac_exeext
12276 if { (ac_try="$ac_link"
12277 case "(($ac_try" in
12278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279   *) ac_try_echo=$ac_try;;
12280 esac
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282   (eval "$ac_link") 2>conftest.er1
12283   ac_status=$?
12284   grep -v '^ *+' conftest.er1 >conftest.err
12285   rm -f conftest.er1
12286   cat conftest.err >&5
12287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288   (exit $ac_status); } &&
12289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12290   { (case "(($ac_try" in
12291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292   *) ac_try_echo=$ac_try;;
12293 esac
12294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295   (eval "$ac_try") 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); }; } &&
12299          { ac_try='test -s conftest$ac_exeext'
12300   { (case "(($ac_try" in
12301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302   *) ac_try_echo=$ac_try;;
12303 esac
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305   (eval "$ac_try") 2>&5
12306   ac_status=$?
12307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308   (exit $ac_status); }; }; then
12309   ac_cv_lib_psapi_main=yes
12310 else
12311   echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12313
12314         ac_cv_lib_psapi_main=no
12315 fi
12316
12317 rm -f core conftest.err conftest.$ac_objext \
12318       conftest$ac_exeext conftest.$ac_ext
12319 LIBS=$ac_check_lib_save_LIBS
12320 fi
12321 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12322 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12323 if test $ac_cv_lib_psapi_main = yes; then
12324   cat >>confdefs.h <<_ACEOF
12325 #define HAVE_LIBPSAPI 1
12326 _ACEOF
12327
12328   LIBS="-lpsapi $LIBS"
12329
12330 fi
12331
12332 fi
12333
12334 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12335 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12336 if test "${ac_cv_search_dlopen+set}" = set; then
12337   echo $ECHO_N "(cached) $ECHO_C" >&6
12338 else
12339   ac_func_search_save_LIBS=$LIBS
12340 cat >conftest.$ac_ext <<_ACEOF
12341 /* confdefs.h.  */
12342 _ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h.  */
12346
12347 /* Override any GCC internal prototype to avoid an error.
12348    Use char because int might match the return type of a GCC
12349    builtin and then its argument prototype would still apply.  */
12350 #ifdef __cplusplus
12351 extern "C"
12352 #endif
12353 char dlopen ();
12354 int
12355 main ()
12356 {
12357 return dlopen ();
12358   ;
12359   return 0;
12360 }
12361 _ACEOF
12362 for ac_lib in '' dl; do
12363   if test -z "$ac_lib"; then
12364     ac_res="none required"
12365   else
12366     ac_res=-l$ac_lib
12367     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12368   fi
12369   rm -f conftest.$ac_objext conftest$ac_exeext
12370 if { (ac_try="$ac_link"
12371 case "(($ac_try" in
12372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373   *) ac_try_echo=$ac_try;;
12374 esac
12375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376   (eval "$ac_link") 2>conftest.er1
12377   ac_status=$?
12378   grep -v '^ *+' conftest.er1 >conftest.err
12379   rm -f conftest.er1
12380   cat conftest.err >&5
12381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382   (exit $ac_status); } &&
12383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12384   { (case "(($ac_try" in
12385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12386   *) ac_try_echo=$ac_try;;
12387 esac
12388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12389   (eval "$ac_try") 2>&5
12390   ac_status=$?
12391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392   (exit $ac_status); }; } &&
12393          { ac_try='test -s conftest$ac_exeext'
12394   { (case "(($ac_try" in
12395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396   *) ac_try_echo=$ac_try;;
12397 esac
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399   (eval "$ac_try") 2>&5
12400   ac_status=$?
12401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402   (exit $ac_status); }; }; then
12403   ac_cv_search_dlopen=$ac_res
12404 else
12405   echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12407
12408
12409 fi
12410
12411 rm -f core conftest.err conftest.$ac_objext \
12412       conftest$ac_exeext
12413   if test "${ac_cv_search_dlopen+set}" = set; then
12414   break
12415 fi
12416 done
12417 if test "${ac_cv_search_dlopen+set}" = set; then
12418   :
12419 else
12420   ac_cv_search_dlopen=no
12421 fi
12422 rm conftest.$ac_ext
12423 LIBS=$ac_func_search_save_LIBS
12424 fi
12425 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12426 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12427 ac_res=$ac_cv_search_dlopen
12428 if test "$ac_res" != no; then
12429   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12430
12431 cat >>confdefs.h <<\_ACEOF
12432 #define HAVE_DLOPEN 1
12433 _ACEOF
12434
12435 else
12436   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12437 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12438 fi
12439
12440
12441 if test "$llvm_cv_enable_libffi" = "yes" ; then
12442   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12443 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12444 if test "${ac_cv_search_ffi_call+set}" = set; then
12445   echo $ECHO_N "(cached) $ECHO_C" >&6
12446 else
12447   ac_func_search_save_LIBS=$LIBS
12448 cat >conftest.$ac_ext <<_ACEOF
12449 /* confdefs.h.  */
12450 _ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h.  */
12454
12455 /* Override any GCC internal prototype to avoid an error.
12456    Use char because int might match the return type of a GCC
12457    builtin and then its argument prototype would still apply.  */
12458 #ifdef __cplusplus
12459 extern "C"
12460 #endif
12461 char ffi_call ();
12462 int
12463 main ()
12464 {
12465 return ffi_call ();
12466   ;
12467   return 0;
12468 }
12469 _ACEOF
12470 for ac_lib in '' ffi; do
12471   if test -z "$ac_lib"; then
12472     ac_res="none required"
12473   else
12474     ac_res=-l$ac_lib
12475     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12476   fi
12477   rm -f conftest.$ac_objext conftest$ac_exeext
12478 if { (ac_try="$ac_link"
12479 case "(($ac_try" in
12480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12481   *) ac_try_echo=$ac_try;;
12482 esac
12483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12484   (eval "$ac_link") 2>conftest.er1
12485   ac_status=$?
12486   grep -v '^ *+' conftest.er1 >conftest.err
12487   rm -f conftest.er1
12488   cat conftest.err >&5
12489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490   (exit $ac_status); } &&
12491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12492   { (case "(($ac_try" in
12493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494   *) ac_try_echo=$ac_try;;
12495 esac
12496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12497   (eval "$ac_try") 2>&5
12498   ac_status=$?
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); }; } &&
12501          { ac_try='test -s conftest$ac_exeext'
12502   { (case "(($ac_try" in
12503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504   *) ac_try_echo=$ac_try;;
12505 esac
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507   (eval "$ac_try") 2>&5
12508   ac_status=$?
12509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510   (exit $ac_status); }; }; then
12511   ac_cv_search_ffi_call=$ac_res
12512 else
12513   echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12515
12516
12517 fi
12518
12519 rm -f core conftest.err conftest.$ac_objext \
12520       conftest$ac_exeext
12521   if test "${ac_cv_search_ffi_call+set}" = set; then
12522   break
12523 fi
12524 done
12525 if test "${ac_cv_search_ffi_call+set}" = set; then
12526   :
12527 else
12528   ac_cv_search_ffi_call=no
12529 fi
12530 rm conftest.$ac_ext
12531 LIBS=$ac_func_search_save_LIBS
12532 fi
12533 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12534 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12535 ac_res=$ac_cv_search_ffi_call
12536 if test "$ac_res" != no; then
12537   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12538
12539 cat >>confdefs.h <<\_ACEOF
12540 #define HAVE_FFI_CALL 1
12541 _ACEOF
12542
12543 else
12544   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12545 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12546    { (exit 1); exit 1; }; }
12547 fi
12548
12549 fi
12550
12551 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12552 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12553 if test "${ac_cv_search_mallinfo+set}" = set; then
12554   echo $ECHO_N "(cached) $ECHO_C" >&6
12555 else
12556   ac_func_search_save_LIBS=$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 /* Override any GCC internal prototype to avoid an error.
12565    Use char because int might match the return type of a GCC
12566    builtin and then its argument prototype would still apply.  */
12567 #ifdef __cplusplus
12568 extern "C"
12569 #endif
12570 char mallinfo ();
12571 int
12572 main ()
12573 {
12574 return mallinfo ();
12575   ;
12576   return 0;
12577 }
12578 _ACEOF
12579 for ac_lib in '' malloc; do
12580   if test -z "$ac_lib"; then
12581     ac_res="none required"
12582   else
12583     ac_res=-l$ac_lib
12584     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12585   fi
12586   rm -f conftest.$ac_objext conftest$ac_exeext
12587 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12594   ac_status=$?
12595   grep -v '^ *+' conftest.er1 >conftest.err
12596   rm -f conftest.er1
12597   cat conftest.err >&5
12598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); } &&
12600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12601   { (case "(($ac_try" in
12602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603   *) ac_try_echo=$ac_try;;
12604 esac
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606   (eval "$ac_try") 2>&5
12607   ac_status=$?
12608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609   (exit $ac_status); }; } &&
12610          { ac_try='test -s conftest$ac_exeext'
12611   { (case "(($ac_try" in
12612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613   *) ac_try_echo=$ac_try;;
12614 esac
12615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616   (eval "$ac_try") 2>&5
12617   ac_status=$?
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); }; }; then
12620   ac_cv_search_mallinfo=$ac_res
12621 else
12622   echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12624
12625
12626 fi
12627
12628 rm -f core conftest.err conftest.$ac_objext \
12629       conftest$ac_exeext
12630   if test "${ac_cv_search_mallinfo+set}" = set; then
12631   break
12632 fi
12633 done
12634 if test "${ac_cv_search_mallinfo+set}" = set; then
12635   :
12636 else
12637   ac_cv_search_mallinfo=no
12638 fi
12639 rm conftest.$ac_ext
12640 LIBS=$ac_func_search_save_LIBS
12641 fi
12642 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12643 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12644 ac_res=$ac_cv_search_mallinfo
12645 if test "$ac_res" != no; then
12646   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12647
12648 cat >>confdefs.h <<\_ACEOF
12649 #define HAVE_MALLINFO 1
12650 _ACEOF
12651
12652 fi
12653
12654
12655 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12656
12657 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12658 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12659 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12660   echo $ECHO_N "(cached) $ECHO_C" >&6
12661 else
12662   ac_check_lib_save_LIBS=$LIBS
12663 LIBS="-lpthread  $LIBS"
12664 cat >conftest.$ac_ext <<_ACEOF
12665 /* confdefs.h.  */
12666 _ACEOF
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h.  */
12670
12671 /* Override any GCC internal prototype to avoid an error.
12672    Use char because int might match the return type of a GCC
12673    builtin and then its argument prototype would still apply.  */
12674 #ifdef __cplusplus
12675 extern "C"
12676 #endif
12677 char pthread_mutex_init ();
12678 int
12679 main ()
12680 {
12681 return pthread_mutex_init ();
12682   ;
12683   return 0;
12684 }
12685 _ACEOF
12686 rm -f conftest.$ac_objext conftest$ac_exeext
12687 if { (ac_try="$ac_link"
12688 case "(($ac_try" in
12689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12690   *) ac_try_echo=$ac_try;;
12691 esac
12692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12693   (eval "$ac_link") 2>conftest.er1
12694   ac_status=$?
12695   grep -v '^ *+' conftest.er1 >conftest.err
12696   rm -f conftest.er1
12697   cat conftest.err >&5
12698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699   (exit $ac_status); } &&
12700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12701   { (case "(($ac_try" in
12702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703   *) ac_try_echo=$ac_try;;
12704 esac
12705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706   (eval "$ac_try") 2>&5
12707   ac_status=$?
12708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709   (exit $ac_status); }; } &&
12710          { ac_try='test -s conftest$ac_exeext'
12711   { (case "(($ac_try" in
12712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713   *) ac_try_echo=$ac_try;;
12714 esac
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716   (eval "$ac_try") 2>&5
12717   ac_status=$?
12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719   (exit $ac_status); }; }; then
12720   ac_cv_lib_pthread_pthread_mutex_init=yes
12721 else
12722   echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.$ac_ext >&5
12724
12725         ac_cv_lib_pthread_pthread_mutex_init=no
12726 fi
12727
12728 rm -f core conftest.err conftest.$ac_objext \
12729       conftest$ac_exeext conftest.$ac_ext
12730 LIBS=$ac_check_lib_save_LIBS
12731 fi
12732 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12733 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12734 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12735   cat >>confdefs.h <<_ACEOF
12736 #define HAVE_LIBPTHREAD 1
12737 _ACEOF
12738
12739   LIBS="-lpthread $LIBS"
12740
12741 fi
12742
12743   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12744 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12745 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12746   echo $ECHO_N "(cached) $ECHO_C" >&6
12747 else
12748   ac_func_search_save_LIBS=$LIBS
12749 cat >conftest.$ac_ext <<_ACEOF
12750 /* confdefs.h.  */
12751 _ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h.  */
12755
12756 /* Override any GCC internal prototype to avoid an error.
12757    Use char because int might match the return type of a GCC
12758    builtin and then its argument prototype would still apply.  */
12759 #ifdef __cplusplus
12760 extern "C"
12761 #endif
12762 char pthread_mutex_lock ();
12763 int
12764 main ()
12765 {
12766 return pthread_mutex_lock ();
12767   ;
12768   return 0;
12769 }
12770 _ACEOF
12771 for ac_lib in '' pthread; do
12772   if test -z "$ac_lib"; then
12773     ac_res="none required"
12774   else
12775     ac_res=-l$ac_lib
12776     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12777   fi
12778   rm -f conftest.$ac_objext conftest$ac_exeext
12779 if { (ac_try="$ac_link"
12780 case "(($ac_try" in
12781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782   *) ac_try_echo=$ac_try;;
12783 esac
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785   (eval "$ac_link") 2>conftest.er1
12786   ac_status=$?
12787   grep -v '^ *+' conftest.er1 >conftest.err
12788   rm -f conftest.er1
12789   cat conftest.err >&5
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); } &&
12792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12793   { (case "(($ac_try" in
12794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795   *) ac_try_echo=$ac_try;;
12796 esac
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798   (eval "$ac_try") 2>&5
12799   ac_status=$?
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); }; } &&
12802          { ac_try='test -s conftest$ac_exeext'
12803   { (case "(($ac_try" in
12804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805   *) ac_try_echo=$ac_try;;
12806 esac
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808   (eval "$ac_try") 2>&5
12809   ac_status=$?
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); }; }; then
12812   ac_cv_search_pthread_mutex_lock=$ac_res
12813 else
12814   echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12816
12817
12818 fi
12819
12820 rm -f core conftest.err conftest.$ac_objext \
12821       conftest$ac_exeext
12822   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12823   break
12824 fi
12825 done
12826 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12827   :
12828 else
12829   ac_cv_search_pthread_mutex_lock=no
12830 fi
12831 rm conftest.$ac_ext
12832 LIBS=$ac_func_search_save_LIBS
12833 fi
12834 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12835 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12836 ac_res=$ac_cv_search_pthread_mutex_lock
12837 if test "$ac_res" != no; then
12838   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12839
12840 cat >>confdefs.h <<\_ACEOF
12841 #define HAVE_PTHREAD_MUTEX_LOCK 1
12842 _ACEOF
12843
12844 fi
12845
12846   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12847 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12848 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12849   echo $ECHO_N "(cached) $ECHO_C" >&6
12850 else
12851   ac_func_search_save_LIBS=$LIBS
12852 cat >conftest.$ac_ext <<_ACEOF
12853 /* confdefs.h.  */
12854 _ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h.  */
12858
12859 /* Override any GCC internal prototype to avoid an error.
12860    Use char because int might match the return type of a GCC
12861    builtin and then its argument prototype would still apply.  */
12862 #ifdef __cplusplus
12863 extern "C"
12864 #endif
12865 char pthread_rwlock_init ();
12866 int
12867 main ()
12868 {
12869 return pthread_rwlock_init ();
12870   ;
12871   return 0;
12872 }
12873 _ACEOF
12874 for ac_lib in '' pthread; do
12875   if test -z "$ac_lib"; then
12876     ac_res="none required"
12877   else
12878     ac_res=-l$ac_lib
12879     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12880   fi
12881   rm -f conftest.$ac_objext conftest$ac_exeext
12882 if { (ac_try="$ac_link"
12883 case "(($ac_try" in
12884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885   *) ac_try_echo=$ac_try;;
12886 esac
12887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12888   (eval "$ac_link") 2>conftest.er1
12889   ac_status=$?
12890   grep -v '^ *+' conftest.er1 >conftest.err
12891   rm -f conftest.er1
12892   cat conftest.err >&5
12893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894   (exit $ac_status); } &&
12895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12896   { (case "(($ac_try" in
12897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898   *) ac_try_echo=$ac_try;;
12899 esac
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901   (eval "$ac_try") 2>&5
12902   ac_status=$?
12903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); }; } &&
12905          { ac_try='test -s conftest$ac_exeext'
12906   { (case "(($ac_try" in
12907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908   *) ac_try_echo=$ac_try;;
12909 esac
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911   (eval "$ac_try") 2>&5
12912   ac_status=$?
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); }; }; then
12915   ac_cv_search_pthread_rwlock_init=$ac_res
12916 else
12917   echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12919
12920
12921 fi
12922
12923 rm -f core conftest.err conftest.$ac_objext \
12924       conftest$ac_exeext
12925   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12926   break
12927 fi
12928 done
12929 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12930   :
12931 else
12932   ac_cv_search_pthread_rwlock_init=no
12933 fi
12934 rm conftest.$ac_ext
12935 LIBS=$ac_func_search_save_LIBS
12936 fi
12937 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12938 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12939 ac_res=$ac_cv_search_pthread_rwlock_init
12940 if test "$ac_res" != no; then
12941   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12942
12943 cat >>confdefs.h <<\_ACEOF
12944 #define HAVE_PTHREAD_RWLOCK_INIT 1
12945 _ACEOF
12946
12947 fi
12948
12949   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12950 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12951 if test "${ac_cv_search_pthread_getspecific+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 pthread_getspecific ();
12969 int
12970 main ()
12971 {
12972 return pthread_getspecific ();
12973   ;
12974   return 0;
12975 }
12976 _ACEOF
12977 for ac_lib in '' pthread; 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_pthread_getspecific=$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_pthread_getspecific+set}" = set; then
13029   break
13030 fi
13031 done
13032 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13033   :
13034 else
13035   ac_cv_search_pthread_getspecific=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_pthread_getspecific" >&5
13041 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13042 ac_res=$ac_cv_search_pthread_getspecific
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_PTHREAD_GETSPECIFIC 1
13048 _ACEOF
13049
13050 fi
13051
13052 fi
13053
13054
13055 # Check whether --with-udis86 was given.
13056 if test "${with_udis86+set}" = set; then
13057   withval=$with_udis86;
13058       USE_UDIS86=1
13059
13060       case "$withval" in
13061         /usr/lib|yes) ;;
13062         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13063       esac
13064
13065 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13066 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13067 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13068   echo $ECHO_N "(cached) $ECHO_C" >&6
13069 else
13070   ac_check_lib_save_LIBS=$LIBS
13071 LIBS="-ludis86  $LIBS"
13072 cat >conftest.$ac_ext <<_ACEOF
13073 /* confdefs.h.  */
13074 _ACEOF
13075 cat confdefs.h >>conftest.$ac_ext
13076 cat >>conftest.$ac_ext <<_ACEOF
13077 /* end confdefs.h.  */
13078
13079 /* Override any GCC internal prototype to avoid an error.
13080    Use char because int might match the return type of a GCC
13081    builtin and then its argument prototype would still apply.  */
13082 #ifdef __cplusplus
13083 extern "C"
13084 #endif
13085 char ud_init ();
13086 int
13087 main ()
13088 {
13089 return ud_init ();
13090   ;
13091   return 0;
13092 }
13093 _ACEOF
13094 rm -f conftest.$ac_objext conftest$ac_exeext
13095 if { (ac_try="$ac_link"
13096 case "(($ac_try" in
13097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098   *) ac_try_echo=$ac_try;;
13099 esac
13100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13101   (eval "$ac_link") 2>conftest.er1
13102   ac_status=$?
13103   grep -v '^ *+' conftest.er1 >conftest.err
13104   rm -f conftest.er1
13105   cat conftest.err >&5
13106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107   (exit $ac_status); } &&
13108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13118          { ac_try='test -s conftest$ac_exeext'
13119   { (case "(($ac_try" in
13120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121   *) ac_try_echo=$ac_try;;
13122 esac
13123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124   (eval "$ac_try") 2>&5
13125   ac_status=$?
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); }; }; then
13128   ac_cv_lib_udis86_ud_init=yes
13129 else
13130   echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13132
13133         ac_cv_lib_udis86_ud_init=no
13134 fi
13135
13136 rm -f core conftest.err conftest.$ac_objext \
13137       conftest$ac_exeext conftest.$ac_ext
13138 LIBS=$ac_check_lib_save_LIBS
13139 fi
13140 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13141 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13142 if test $ac_cv_lib_udis86_ud_init = yes; then
13143   cat >>confdefs.h <<_ACEOF
13144 #define HAVE_LIBUDIS86 1
13145 _ACEOF
13146
13147   LIBS="-ludis86 $LIBS"
13148
13149 else
13150
13151         echo "Error! You need to have libudis86 around."
13152         exit -1
13153
13154 fi
13155
13156
13157 else
13158   USE_UDIS86=0
13159
13160 fi
13161
13162
13163 cat >>confdefs.h <<_ACEOF
13164 #define USE_UDIS86 $USE_UDIS86
13165 _ACEOF
13166
13167
13168
13169 # Check whether --with-oprofile was given.
13170 if test "${with_oprofile+set}" = set; then
13171   withval=$with_oprofile;
13172       USE_OPROFILE=1
13173
13174       case "$withval" in
13175         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13176         no) llvm_cv_oppath=
13177             USE_OPROFILE=0
13178  ;;
13179         *) llvm_cv_oppath="${withval}/lib/oprofile"
13180            CPPFLAGS="-I${withval}/include";;
13181       esac
13182       case $llvm_cv_os_type in
13183         Linux)
13184           if test -n "$llvm_cv_oppath" ; then
13185             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13186                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13187 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13188 if test "${ac_cv_search_bfd_init+set}" = set; then
13189   echo $ECHO_N "(cached) $ECHO_C" >&6
13190 else
13191   ac_func_search_save_LIBS=$LIBS
13192 cat >conftest.$ac_ext <<_ACEOF
13193 /* confdefs.h.  */
13194 _ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h.  */
13198
13199 /* Override any GCC internal prototype to avoid an error.
13200    Use char because int might match the return type of a GCC
13201    builtin and then its argument prototype would still apply.  */
13202 #ifdef __cplusplus
13203 extern "C"
13204 #endif
13205 char bfd_init ();
13206 int
13207 main ()
13208 {
13209 return bfd_init ();
13210   ;
13211   return 0;
13212 }
13213 _ACEOF
13214 for ac_lib in '' bfd; do
13215   if test -z "$ac_lib"; then
13216     ac_res="none required"
13217   else
13218     ac_res=-l$ac_lib
13219     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13220   fi
13221   rm -f conftest.$ac_objext conftest$ac_exeext
13222 if { (ac_try="$ac_link"
13223 case "(($ac_try" in
13224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225   *) ac_try_echo=$ac_try;;
13226 esac
13227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228   (eval "$ac_link") 2>conftest.er1
13229   ac_status=$?
13230   grep -v '^ *+' conftest.er1 >conftest.err
13231   rm -f conftest.er1
13232   cat conftest.err >&5
13233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234   (exit $ac_status); } &&
13235          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13236   { (case "(($ac_try" in
13237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238   *) ac_try_echo=$ac_try;;
13239 esac
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241   (eval "$ac_try") 2>&5
13242   ac_status=$?
13243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244   (exit $ac_status); }; } &&
13245          { ac_try='test -s conftest$ac_exeext'
13246   { (case "(($ac_try" in
13247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248   *) ac_try_echo=$ac_try;;
13249 esac
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251   (eval "$ac_try") 2>&5
13252   ac_status=$?
13253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); }; }; then
13255   ac_cv_search_bfd_init=$ac_res
13256 else
13257   echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13259
13260
13261 fi
13262
13263 rm -f core conftest.err conftest.$ac_objext \
13264       conftest$ac_exeext
13265   if test "${ac_cv_search_bfd_init+set}" = set; then
13266   break
13267 fi
13268 done
13269 if test "${ac_cv_search_bfd_init+set}" = set; then
13270   :
13271 else
13272   ac_cv_search_bfd_init=no
13273 fi
13274 rm conftest.$ac_ext
13275 LIBS=$ac_func_search_save_LIBS
13276 fi
13277 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13278 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13279 ac_res=$ac_cv_search_bfd_init
13280 if test "$ac_res" != no; then
13281   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13282
13283 fi
13284
13285             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13286 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13287 if test "${ac_cv_search_op_open_agent+set}" = set; then
13288   echo $ECHO_N "(cached) $ECHO_C" >&6
13289 else
13290   ac_func_search_save_LIBS=$LIBS
13291 cat >conftest.$ac_ext <<_ACEOF
13292 /* confdefs.h.  */
13293 _ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h.  */
13297
13298 /* Override any GCC internal prototype to avoid an error.
13299    Use char because int might match the return type of a GCC
13300    builtin and then its argument prototype would still apply.  */
13301 #ifdef __cplusplus
13302 extern "C"
13303 #endif
13304 char op_open_agent ();
13305 int
13306 main ()
13307 {
13308 return op_open_agent ();
13309   ;
13310   return 0;
13311 }
13312 _ACEOF
13313 for ac_lib in '' opagent; do
13314   if test -z "$ac_lib"; then
13315     ac_res="none required"
13316   else
13317     ac_res=-l$ac_lib
13318     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13319   fi
13320   rm -f conftest.$ac_objext conftest$ac_exeext
13321 if { (ac_try="$ac_link"
13322 case "(($ac_try" in
13323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324   *) ac_try_echo=$ac_try;;
13325 esac
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327   (eval "$ac_link") 2>conftest.er1
13328   ac_status=$?
13329   grep -v '^ *+' conftest.er1 >conftest.err
13330   rm -f conftest.er1
13331   cat conftest.err >&5
13332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333   (exit $ac_status); } &&
13334          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13335   { (case "(($ac_try" in
13336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337   *) ac_try_echo=$ac_try;;
13338 esac
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340   (eval "$ac_try") 2>&5
13341   ac_status=$?
13342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343   (exit $ac_status); }; } &&
13344          { ac_try='test -s conftest$ac_exeext'
13345   { (case "(($ac_try" in
13346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347   *) ac_try_echo=$ac_try;;
13348 esac
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350   (eval "$ac_try") 2>&5
13351   ac_status=$?
13352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353   (exit $ac_status); }; }; then
13354   ac_cv_search_op_open_agent=$ac_res
13355 else
13356   echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13358
13359
13360 fi
13361
13362 rm -f core conftest.err conftest.$ac_objext \
13363       conftest$ac_exeext
13364   if test "${ac_cv_search_op_open_agent+set}" = set; then
13365   break
13366 fi
13367 done
13368 if test "${ac_cv_search_op_open_agent+set}" = set; then
13369   :
13370 else
13371   ac_cv_search_op_open_agent=no
13372 fi
13373 rm conftest.$ac_ext
13374 LIBS=$ac_func_search_save_LIBS
13375 fi
13376 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13377 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13378 ac_res=$ac_cv_search_op_open_agent
13379 if test "$ac_res" != no; then
13380   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13381
13382 else
13383
13384               echo "Error! You need to have libopagent around."
13385               exit -1
13386
13387 fi
13388
13389             if test "${ac_cv_header_opagent_h+set}" = set; then
13390   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13391 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13392 if test "${ac_cv_header_opagent_h+set}" = set; then
13393   echo $ECHO_N "(cached) $ECHO_C" >&6
13394 fi
13395 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13396 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13397 else
13398   # Is the header compilable?
13399 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13400 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13401 cat >conftest.$ac_ext <<_ACEOF
13402 /* confdefs.h.  */
13403 _ACEOF
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h.  */
13407 $ac_includes_default
13408 #include <opagent.h>
13409 _ACEOF
13410 rm -f conftest.$ac_objext
13411 if { (ac_try="$ac_compile"
13412 case "(($ac_try" in
13413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414   *) ac_try_echo=$ac_try;;
13415 esac
13416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13417   (eval "$ac_compile") 2>conftest.er1
13418   ac_status=$?
13419   grep -v '^ *+' conftest.er1 >conftest.err
13420   rm -f conftest.er1
13421   cat conftest.err >&5
13422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423   (exit $ac_status); } &&
13424          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13425   { (case "(($ac_try" in
13426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427   *) ac_try_echo=$ac_try;;
13428 esac
13429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430   (eval "$ac_try") 2>&5
13431   ac_status=$?
13432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433   (exit $ac_status); }; } &&
13434          { ac_try='test -s conftest.$ac_objext'
13435   { (case "(($ac_try" in
13436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437   *) ac_try_echo=$ac_try;;
13438 esac
13439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13440   (eval "$ac_try") 2>&5
13441   ac_status=$?
13442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443   (exit $ac_status); }; }; then
13444   ac_header_compiler=yes
13445 else
13446   echo "$as_me: failed program was:" >&5
13447 sed 's/^/| /' conftest.$ac_ext >&5
13448
13449         ac_header_compiler=no
13450 fi
13451
13452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13454 echo "${ECHO_T}$ac_header_compiler" >&6; }
13455
13456 # Is the header present?
13457 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13458 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13459 cat >conftest.$ac_ext <<_ACEOF
13460 /* confdefs.h.  */
13461 _ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h.  */
13465 #include <opagent.h>
13466 _ACEOF
13467 if { (ac_try="$ac_cpp conftest.$ac_ext"
13468 case "(($ac_try" in
13469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470   *) ac_try_echo=$ac_try;;
13471 esac
13472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13473   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13474   ac_status=$?
13475   grep -v '^ *+' conftest.er1 >conftest.err
13476   rm -f conftest.er1
13477   cat conftest.err >&5
13478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479   (exit $ac_status); } >/dev/null; then
13480   if test -s conftest.err; then
13481     ac_cpp_err=$ac_c_preproc_warn_flag
13482     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13483   else
13484     ac_cpp_err=
13485   fi
13486 else
13487   ac_cpp_err=yes
13488 fi
13489 if test -z "$ac_cpp_err"; then
13490   ac_header_preproc=yes
13491 else
13492   echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13494
13495   ac_header_preproc=no
13496 fi
13497
13498 rm -f conftest.err conftest.$ac_ext
13499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13500 echo "${ECHO_T}$ac_header_preproc" >&6; }
13501
13502 # So?  What about this header?
13503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13504   yes:no: )
13505     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13506 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13507     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13508 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13509     ac_header_preproc=yes
13510     ;;
13511   no:yes:* )
13512     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13513 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13514     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13515 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13516     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13517 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13518     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13519 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13520     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13521 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13522     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13523 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13524     ( cat <<\_ASBOX
13525 ## ------------------------------------ ##
13526 ## Report this to http://llvm.org/bugs/ ##
13527 ## ------------------------------------ ##
13528 _ASBOX
13529      ) | sed "s/^/$as_me: WARNING:     /" >&2
13530     ;;
13531 esac
13532 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13533 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13534 if test "${ac_cv_header_opagent_h+set}" = set; then
13535   echo $ECHO_N "(cached) $ECHO_C" >&6
13536 else
13537   ac_cv_header_opagent_h=$ac_header_preproc
13538 fi
13539 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13540 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13541
13542 fi
13543 if test $ac_cv_header_opagent_h = yes; then
13544   :
13545 else
13546
13547               echo "Error! You need to have opagent.h around."
13548               exit -1
13549
13550 fi
13551
13552
13553           fi ;;
13554         *)
13555           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13556 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13557    { (exit 1); exit 1; }; } ;;
13558       esac
13559
13560 else
13561
13562       USE_OPROFILE=0
13563
13564
13565 fi
13566
13567
13568 cat >>confdefs.h <<_ACEOF
13569 #define LLVM_USE_OPROFILE $USE_OPROFILE
13570 _ACEOF
13571
13572
13573
13574 # Check whether --with-intel-jitevents was given.
13575 if test "${with_intel_jitevents+set}" = set; then
13576   withval=$with_intel_jitevents;
13577        case "$withval" in
13578           yes) USE_INTEL_JITEVENTS=1
13579 ;;
13580           no)  USE_INTEL_JITEVENTS=0
13581 ;;
13582           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13583 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13584    { (exit 1); exit 1; }; };;
13585        esac
13586
13587       case $llvm_cv_os_type in
13588         Linux|Win32|Cygwin|MingW) ;;
13589         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13590 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13591    { (exit 1); exit 1; }; };;
13592       esac
13593
13594       case "$llvm_cv_target_arch" in
13595         x86|x86_64) ;;
13596         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13597 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13598    { (exit 1); exit 1; }; };;
13599       esac
13600
13601 else
13602
13603       USE_INTEL_JITEVENTS=0
13604
13605
13606 fi
13607
13608
13609 cat >>confdefs.h <<_ACEOF
13610 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13611 _ACEOF
13612
13613
13614 for ac_prog in xml2-config
13615 do
13616   # Extract the first word of "$ac_prog", so it can be a program name with args.
13617 set dummy $ac_prog; ac_word=$2
13618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13620 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13621   echo $ECHO_N "(cached) $ECHO_C" >&6
13622 else
13623   if test -n "$XML2CONFIG"; then
13624   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13625 else
13626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627 for as_dir in $PATH
13628 do
13629   IFS=$as_save_IFS
13630   test -z "$as_dir" && as_dir=.
13631   for ac_exec_ext in '' $ac_executable_extensions; do
13632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13633     ac_cv_prog_XML2CONFIG="$ac_prog"
13634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13635     break 2
13636   fi
13637 done
13638 done
13639 IFS=$as_save_IFS
13640
13641 fi
13642 fi
13643 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13644 if test -n "$XML2CONFIG"; then
13645   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13646 echo "${ECHO_T}$XML2CONFIG" >&6; }
13647 else
13648   { echo "$as_me:$LINENO: result: no" >&5
13649 echo "${ECHO_T}no" >&6; }
13650 fi
13651
13652
13653   test -n "$XML2CONFIG" && break
13654 done
13655
13656
13657 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13658 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13659 if test "x$XML2CONFIG" = "x"; then
13660  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13661 echo "${ECHO_T}xml2-config not found" >&6; }
13662 else
13663  LIBXML2_INC=`$XML2CONFIG --cflags`
13664  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13665 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13666  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13667 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13668 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13669   echo $ECHO_N "(cached) $ECHO_C" >&6
13670 else
13671   ac_check_lib_save_LIBS=$LIBS
13672 LIBS="-lxml2  $LIBS"
13673 cat >conftest.$ac_ext <<_ACEOF
13674 /* confdefs.h.  */
13675 _ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h.  */
13679
13680 /* Override any GCC internal prototype to avoid an error.
13681    Use char because int might match the return type of a GCC
13682    builtin and then its argument prototype would still apply.  */
13683 #ifdef __cplusplus
13684 extern "C"
13685 #endif
13686 char xmlReadFile ();
13687 int
13688 main ()
13689 {
13690 return xmlReadFile ();
13691   ;
13692   return 0;
13693 }
13694 _ACEOF
13695 rm -f conftest.$ac_objext conftest$ac_exeext
13696 if { (ac_try="$ac_link"
13697 case "(($ac_try" in
13698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699   *) ac_try_echo=$ac_try;;
13700 esac
13701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702   (eval "$ac_link") 2>conftest.er1
13703   ac_status=$?
13704   grep -v '^ *+' conftest.er1 >conftest.err
13705   rm -f conftest.er1
13706   cat conftest.err >&5
13707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708   (exit $ac_status); } &&
13709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13710   { (case "(($ac_try" in
13711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712   *) ac_try_echo=$ac_try;;
13713 esac
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715   (eval "$ac_try") 2>&5
13716   ac_status=$?
13717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718   (exit $ac_status); }; } &&
13719          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13726   ac_status=$?
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); }; }; then
13729   ac_cv_lib_xml2_xmlReadFile=yes
13730 else
13731   echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13733
13734         ac_cv_lib_xml2_xmlReadFile=no
13735 fi
13736
13737 rm -f core conftest.err conftest.$ac_objext \
13738       conftest$ac_exeext conftest.$ac_ext
13739 LIBS=$ac_check_lib_save_LIBS
13740 fi
13741 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13742 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13743 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13744
13745 cat >>confdefs.h <<\_ACEOF
13746 #define CLANG_HAVE_LIBXML 1
13747 _ACEOF
13748
13749                                 LIBXML2_LIBS="-lxml2"
13750 fi
13751
13752 fi
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762 ac_header_dirent=no
13763 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13764   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13765 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13766 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13768   echo $ECHO_N "(cached) $ECHO_C" >&6
13769 else
13770   cat >conftest.$ac_ext <<_ACEOF
13771 /* confdefs.h.  */
13772 _ACEOF
13773 cat confdefs.h >>conftest.$ac_ext
13774 cat >>conftest.$ac_ext <<_ACEOF
13775 /* end confdefs.h.  */
13776 #include <sys/types.h>
13777 #include <$ac_hdr>
13778
13779 int
13780 main ()
13781 {
13782 if ((DIR *) 0)
13783 return 0;
13784   ;
13785   return 0;
13786 }
13787 _ACEOF
13788 rm -f conftest.$ac_objext
13789 if { (ac_try="$ac_compile"
13790 case "(($ac_try" in
13791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792   *) ac_try_echo=$ac_try;;
13793 esac
13794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795   (eval "$ac_compile") 2>conftest.er1
13796   ac_status=$?
13797   grep -v '^ *+' conftest.er1 >conftest.err
13798   rm -f conftest.er1
13799   cat conftest.err >&5
13800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801   (exit $ac_status); } &&
13802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13803   { (case "(($ac_try" in
13804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805   *) ac_try_echo=$ac_try;;
13806 esac
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808   (eval "$ac_try") 2>&5
13809   ac_status=$?
13810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811   (exit $ac_status); }; } &&
13812          { ac_try='test -s conftest.$ac_objext'
13813   { (case "(($ac_try" in
13814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13815   *) ac_try_echo=$ac_try;;
13816 esac
13817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13818   (eval "$ac_try") 2>&5
13819   ac_status=$?
13820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821   (exit $ac_status); }; }; then
13822   eval "$as_ac_Header=yes"
13823 else
13824   echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13826
13827         eval "$as_ac_Header=no"
13828 fi
13829
13830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13831 fi
13832 ac_res=`eval echo '${'$as_ac_Header'}'`
13833                { echo "$as_me:$LINENO: result: $ac_res" >&5
13834 echo "${ECHO_T}$ac_res" >&6; }
13835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13836   cat >>confdefs.h <<_ACEOF
13837 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13838 _ACEOF
13839
13840 ac_header_dirent=$ac_hdr; break
13841 fi
13842
13843 done
13844 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13845 if test $ac_header_dirent = dirent.h; then
13846   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13847 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13848 if test "${ac_cv_search_opendir+set}" = set; then
13849   echo $ECHO_N "(cached) $ECHO_C" >&6
13850 else
13851   ac_func_search_save_LIBS=$LIBS
13852 cat >conftest.$ac_ext <<_ACEOF
13853 /* confdefs.h.  */
13854 _ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h.  */
13858
13859 /* Override any GCC internal prototype to avoid an error.
13860    Use char because int might match the return type of a GCC
13861    builtin and then its argument prototype would still apply.  */
13862 #ifdef __cplusplus
13863 extern "C"
13864 #endif
13865 char opendir ();
13866 int
13867 main ()
13868 {
13869 return opendir ();
13870   ;
13871   return 0;
13872 }
13873 _ACEOF
13874 for ac_lib in '' dir; do
13875   if test -z "$ac_lib"; then
13876     ac_res="none required"
13877   else
13878     ac_res=-l$ac_lib
13879     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13880   fi
13881   rm -f conftest.$ac_objext conftest$ac_exeext
13882 if { (ac_try="$ac_link"
13883 case "(($ac_try" in
13884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885   *) ac_try_echo=$ac_try;;
13886 esac
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888   (eval "$ac_link") 2>conftest.er1
13889   ac_status=$?
13890   grep -v '^ *+' conftest.er1 >conftest.err
13891   rm -f conftest.er1
13892   cat conftest.err >&5
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); } &&
13895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13896   { (case "(($ac_try" in
13897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13898   *) ac_try_echo=$ac_try;;
13899 esac
13900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13901   (eval "$ac_try") 2>&5
13902   ac_status=$?
13903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904   (exit $ac_status); }; } &&
13905          { ac_try='test -s conftest$ac_exeext'
13906   { (case "(($ac_try" in
13907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908   *) ac_try_echo=$ac_try;;
13909 esac
13910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911   (eval "$ac_try") 2>&5
13912   ac_status=$?
13913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914   (exit $ac_status); }; }; then
13915   ac_cv_search_opendir=$ac_res
13916 else
13917   echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13919
13920
13921 fi
13922
13923 rm -f core conftest.err conftest.$ac_objext \
13924       conftest$ac_exeext
13925   if test "${ac_cv_search_opendir+set}" = set; then
13926   break
13927 fi
13928 done
13929 if test "${ac_cv_search_opendir+set}" = set; then
13930   :
13931 else
13932   ac_cv_search_opendir=no
13933 fi
13934 rm conftest.$ac_ext
13935 LIBS=$ac_func_search_save_LIBS
13936 fi
13937 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13938 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13939 ac_res=$ac_cv_search_opendir
13940 if test "$ac_res" != no; then
13941   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13942
13943 fi
13944
13945 else
13946   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13947 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13948 if test "${ac_cv_search_opendir+set}" = set; then
13949   echo $ECHO_N "(cached) $ECHO_C" >&6
13950 else
13951   ac_func_search_save_LIBS=$LIBS
13952 cat >conftest.$ac_ext <<_ACEOF
13953 /* confdefs.h.  */
13954 _ACEOF
13955 cat confdefs.h >>conftest.$ac_ext
13956 cat >>conftest.$ac_ext <<_ACEOF
13957 /* end confdefs.h.  */
13958
13959 /* Override any GCC internal prototype to avoid an error.
13960    Use char because int might match the return type of a GCC
13961    builtin and then its argument prototype would still apply.  */
13962 #ifdef __cplusplus
13963 extern "C"
13964 #endif
13965 char opendir ();
13966 int
13967 main ()
13968 {
13969 return opendir ();
13970   ;
13971   return 0;
13972 }
13973 _ACEOF
13974 for ac_lib in '' x; do
13975   if test -z "$ac_lib"; then
13976     ac_res="none required"
13977   else
13978     ac_res=-l$ac_lib
13979     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13980   fi
13981   rm -f conftest.$ac_objext conftest$ac_exeext
13982 if { (ac_try="$ac_link"
13983 case "(($ac_try" in
13984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13985   *) ac_try_echo=$ac_try;;
13986 esac
13987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13988   (eval "$ac_link") 2>conftest.er1
13989   ac_status=$?
13990   grep -v '^ *+' conftest.er1 >conftest.err
13991   rm -f conftest.er1
13992   cat conftest.err >&5
13993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994   (exit $ac_status); } &&
13995          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13996   { (case "(($ac_try" in
13997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998   *) ac_try_echo=$ac_try;;
13999 esac
14000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001   (eval "$ac_try") 2>&5
14002   ac_status=$?
14003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004   (exit $ac_status); }; } &&
14005          { ac_try='test -s conftest$ac_exeext'
14006   { (case "(($ac_try" in
14007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14008   *) ac_try_echo=$ac_try;;
14009 esac
14010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14011   (eval "$ac_try") 2>&5
14012   ac_status=$?
14013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014   (exit $ac_status); }; }; then
14015   ac_cv_search_opendir=$ac_res
14016 else
14017   echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14019
14020
14021 fi
14022
14023 rm -f core conftest.err conftest.$ac_objext \
14024       conftest$ac_exeext
14025   if test "${ac_cv_search_opendir+set}" = set; then
14026   break
14027 fi
14028 done
14029 if test "${ac_cv_search_opendir+set}" = set; then
14030   :
14031 else
14032   ac_cv_search_opendir=no
14033 fi
14034 rm conftest.$ac_ext
14035 LIBS=$ac_func_search_save_LIBS
14036 fi
14037 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14038 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14039 ac_res=$ac_cv_search_opendir
14040 if test "$ac_res" != no; then
14041   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14042
14043 fi
14044
14045 fi
14046
14047 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14048 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14049 if test "${ac_cv_header_mmap_anon+set}" = set; then
14050   echo $ECHO_N "(cached) $ECHO_C" >&6
14051 else
14052    ac_ext=c
14053 ac_cpp='$CPP $CPPFLAGS'
14054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14057
14058   cat >conftest.$ac_ext <<_ACEOF
14059 /* confdefs.h.  */
14060 _ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h.  */
14064 #include <sys/mman.h>
14065 #include <unistd.h>
14066 #include <fcntl.h>
14067 int
14068 main ()
14069 {
14070 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14071   ;
14072   return 0;
14073 }
14074 _ACEOF
14075 rm -f conftest.$ac_objext
14076 if { (ac_try="$ac_compile"
14077 case "(($ac_try" in
14078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079   *) ac_try_echo=$ac_try;;
14080 esac
14081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082   (eval "$ac_compile") 2>conftest.er1
14083   ac_status=$?
14084   grep -v '^ *+' conftest.er1 >conftest.err
14085   rm -f conftest.er1
14086   cat conftest.err >&5
14087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088   (exit $ac_status); } &&
14089          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14090   { (case "(($ac_try" in
14091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14092   *) ac_try_echo=$ac_try;;
14093 esac
14094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14095   (eval "$ac_try") 2>&5
14096   ac_status=$?
14097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098   (exit $ac_status); }; } &&
14099          { ac_try='test -s conftest.$ac_objext'
14100   { (case "(($ac_try" in
14101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14102   *) ac_try_echo=$ac_try;;
14103 esac
14104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14105   (eval "$ac_try") 2>&5
14106   ac_status=$?
14107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108   (exit $ac_status); }; }; then
14109   ac_cv_header_mmap_anon=yes
14110 else
14111   echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14113
14114         ac_cv_header_mmap_anon=no
14115 fi
14116
14117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14118   ac_ext=c
14119 ac_cpp='$CPP $CPPFLAGS'
14120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14123
14124
14125 fi
14126 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14127 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14128 if test "$ac_cv_header_mmap_anon" = yes; then
14129
14130 cat >>confdefs.h <<\_ACEOF
14131 #define HAVE_MMAP_ANONYMOUS 1
14132 _ACEOF
14133
14134 fi
14135
14136 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14137 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14138 if test "${ac_cv_header_stat_broken+set}" = set; then
14139   echo $ECHO_N "(cached) $ECHO_C" >&6
14140 else
14141   cat >conftest.$ac_ext <<_ACEOF
14142 /* confdefs.h.  */
14143 _ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h.  */
14147 #include <sys/types.h>
14148 #include <sys/stat.h>
14149
14150 #if defined S_ISBLK && defined S_IFDIR
14151 # if S_ISBLK (S_IFDIR)
14152 You lose.
14153 # endif
14154 #endif
14155
14156 #if defined S_ISBLK && defined S_IFCHR
14157 # if S_ISBLK (S_IFCHR)
14158 You lose.
14159 # endif
14160 #endif
14161
14162 #if defined S_ISLNK && defined S_IFREG
14163 # if S_ISLNK (S_IFREG)
14164 You lose.
14165 # endif
14166 #endif
14167
14168 #if defined S_ISSOCK && defined S_IFREG
14169 # if S_ISSOCK (S_IFREG)
14170 You lose.
14171 # endif
14172 #endif
14173
14174 _ACEOF
14175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14176   $EGREP "You lose" >/dev/null 2>&1; then
14177   ac_cv_header_stat_broken=yes
14178 else
14179   ac_cv_header_stat_broken=no
14180 fi
14181 rm -f conftest*
14182
14183 fi
14184 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14185 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14186 if test $ac_cv_header_stat_broken = yes; then
14187
14188 cat >>confdefs.h <<\_ACEOF
14189 #define STAT_MACROS_BROKEN 1
14190 _ACEOF
14191
14192 fi
14193
14194 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14195 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14196 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14197   echo $ECHO_N "(cached) $ECHO_C" >&6
14198 else
14199   cat >conftest.$ac_ext <<_ACEOF
14200 /* confdefs.h.  */
14201 _ACEOF
14202 cat confdefs.h >>conftest.$ac_ext
14203 cat >>conftest.$ac_ext <<_ACEOF
14204 /* end confdefs.h.  */
14205 #include <sys/types.h>
14206 #include <sys/wait.h>
14207 #ifndef WEXITSTATUS
14208 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14209 #endif
14210 #ifndef WIFEXITED
14211 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14212 #endif
14213
14214 int
14215 main ()
14216 {
14217   int s;
14218   wait (&s);
14219   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14220   ;
14221   return 0;
14222 }
14223 _ACEOF
14224 rm -f conftest.$ac_objext
14225 if { (ac_try="$ac_compile"
14226 case "(($ac_try" in
14227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228   *) ac_try_echo=$ac_try;;
14229 esac
14230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231   (eval "$ac_compile") 2>conftest.er1
14232   ac_status=$?
14233   grep -v '^ *+' conftest.er1 >conftest.err
14234   rm -f conftest.er1
14235   cat conftest.err >&5
14236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237   (exit $ac_status); } &&
14238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14239   { (case "(($ac_try" in
14240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241   *) ac_try_echo=$ac_try;;
14242 esac
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244   (eval "$ac_try") 2>&5
14245   ac_status=$?
14246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247   (exit $ac_status); }; } &&
14248          { ac_try='test -s conftest.$ac_objext'
14249   { (case "(($ac_try" in
14250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251   *) ac_try_echo=$ac_try;;
14252 esac
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254   (eval "$ac_try") 2>&5
14255   ac_status=$?
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); }; }; then
14258   ac_cv_header_sys_wait_h=yes
14259 else
14260   echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14262
14263         ac_cv_header_sys_wait_h=no
14264 fi
14265
14266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14267 fi
14268 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14269 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14270 if test $ac_cv_header_sys_wait_h = yes; then
14271
14272 cat >>confdefs.h <<\_ACEOF
14273 #define HAVE_SYS_WAIT_H 1
14274 _ACEOF
14275
14276 fi
14277
14278 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14279 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14280 if test "${ac_cv_header_time+set}" = set; then
14281   echo $ECHO_N "(cached) $ECHO_C" >&6
14282 else
14283   cat >conftest.$ac_ext <<_ACEOF
14284 /* confdefs.h.  */
14285 _ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h.  */
14289 #include <sys/types.h>
14290 #include <sys/time.h>
14291 #include <time.h>
14292
14293 int
14294 main ()
14295 {
14296 if ((struct tm *) 0)
14297 return 0;
14298   ;
14299   return 0;
14300 }
14301 _ACEOF
14302 rm -f conftest.$ac_objext
14303 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14310   ac_status=$?
14311   grep -v '^ *+' conftest.er1 >conftest.err
14312   rm -f conftest.er1
14313   cat conftest.err >&5
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); } &&
14316          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14317   { (case "(($ac_try" in
14318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319   *) ac_try_echo=$ac_try;;
14320 esac
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322   (eval "$ac_try") 2>&5
14323   ac_status=$?
14324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); }; } &&
14326          { ac_try='test -s conftest.$ac_objext'
14327   { (case "(($ac_try" in
14328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329   *) ac_try_echo=$ac_try;;
14330 esac
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332   (eval "$ac_try") 2>&5
14333   ac_status=$?
14334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335   (exit $ac_status); }; }; then
14336   ac_cv_header_time=yes
14337 else
14338   echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14340
14341         ac_cv_header_time=no
14342 fi
14343
14344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14345 fi
14346 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14347 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14348 if test $ac_cv_header_time = yes; then
14349
14350 cat >>confdefs.h <<\_ACEOF
14351 #define TIME_WITH_SYS_TIME 1
14352 _ACEOF
14353
14354 fi
14355
14356
14357
14358
14359
14360
14361
14362
14363 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14364 do
14365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14367   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14370   echo $ECHO_N "(cached) $ECHO_C" >&6
14371 fi
14372 ac_res=`eval echo '${'$as_ac_Header'}'`
14373                { echo "$as_me:$LINENO: result: $ac_res" >&5
14374 echo "${ECHO_T}$ac_res" >&6; }
14375 else
14376   # Is the header compilable?
14377 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14379 cat >conftest.$ac_ext <<_ACEOF
14380 /* confdefs.h.  */
14381 _ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h.  */
14385 $ac_includes_default
14386 #include <$ac_header>
14387 _ACEOF
14388 rm -f conftest.$ac_objext
14389 if { (ac_try="$ac_compile"
14390 case "(($ac_try" in
14391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392   *) ac_try_echo=$ac_try;;
14393 esac
14394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395   (eval "$ac_compile") 2>conftest.er1
14396   ac_status=$?
14397   grep -v '^ *+' conftest.er1 >conftest.err
14398   rm -f conftest.er1
14399   cat conftest.err >&5
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); } &&
14402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14403   { (case "(($ac_try" in
14404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405   *) ac_try_echo=$ac_try;;
14406 esac
14407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408   (eval "$ac_try") 2>&5
14409   ac_status=$?
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); }; } &&
14412          { ac_try='test -s conftest.$ac_objext'
14413   { (case "(($ac_try" in
14414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415   *) ac_try_echo=$ac_try;;
14416 esac
14417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418   (eval "$ac_try") 2>&5
14419   ac_status=$?
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); }; }; then
14422   ac_header_compiler=yes
14423 else
14424   echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14426
14427         ac_header_compiler=no
14428 fi
14429
14430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14432 echo "${ECHO_T}$ac_header_compiler" >&6; }
14433
14434 # Is the header present?
14435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14437 cat >conftest.$ac_ext <<_ACEOF
14438 /* confdefs.h.  */
14439 _ACEOF
14440 cat confdefs.h >>conftest.$ac_ext
14441 cat >>conftest.$ac_ext <<_ACEOF
14442 /* end confdefs.h.  */
14443 #include <$ac_header>
14444 _ACEOF
14445 if { (ac_try="$ac_cpp conftest.$ac_ext"
14446 case "(($ac_try" in
14447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448   *) ac_try_echo=$ac_try;;
14449 esac
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14452   ac_status=$?
14453   grep -v '^ *+' conftest.er1 >conftest.err
14454   rm -f conftest.er1
14455   cat conftest.err >&5
14456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457   (exit $ac_status); } >/dev/null; then
14458   if test -s conftest.err; then
14459     ac_cpp_err=$ac_c_preproc_warn_flag
14460     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14461   else
14462     ac_cpp_err=
14463   fi
14464 else
14465   ac_cpp_err=yes
14466 fi
14467 if test -z "$ac_cpp_err"; then
14468   ac_header_preproc=yes
14469 else
14470   echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14472
14473   ac_header_preproc=no
14474 fi
14475
14476 rm -f conftest.err conftest.$ac_ext
14477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14478 echo "${ECHO_T}$ac_header_preproc" >&6; }
14479
14480 # So?  What about this header?
14481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14482   yes:no: )
14483     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14487     ac_header_preproc=yes
14488     ;;
14489   no:yes:* )
14490     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14492     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14493 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14494     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14496     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14497 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14500     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14502     ( cat <<\_ASBOX
14503 ## ------------------------------------ ##
14504 ## Report this to http://llvm.org/bugs/ ##
14505 ## ------------------------------------ ##
14506 _ASBOX
14507      ) | sed "s/^/$as_me: WARNING:     /" >&2
14508     ;;
14509 esac
14510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14513   echo $ECHO_N "(cached) $ECHO_C" >&6
14514 else
14515   eval "$as_ac_Header=\$ac_header_preproc"
14516 fi
14517 ac_res=`eval echo '${'$as_ac_Header'}'`
14518                { echo "$as_me:$LINENO: result: $ac_res" >&5
14519 echo "${ECHO_T}$ac_res" >&6; }
14520
14521 fi
14522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14523   cat >>confdefs.h <<_ACEOF
14524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14525 _ACEOF
14526
14527 fi
14528
14529 done
14530
14531
14532
14533
14534
14535
14536
14537 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14538 do
14539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14541   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14544   echo $ECHO_N "(cached) $ECHO_C" >&6
14545 fi
14546 ac_res=`eval echo '${'$as_ac_Header'}'`
14547                { echo "$as_me:$LINENO: result: $ac_res" >&5
14548 echo "${ECHO_T}$ac_res" >&6; }
14549 else
14550   # Is the header compilable?
14551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14553 cat >conftest.$ac_ext <<_ACEOF
14554 /* confdefs.h.  */
14555 _ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h.  */
14559 $ac_includes_default
14560 #include <$ac_header>
14561 _ACEOF
14562 rm -f conftest.$ac_objext
14563 if { (ac_try="$ac_compile"
14564 case "(($ac_try" in
14565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566   *) ac_try_echo=$ac_try;;
14567 esac
14568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569   (eval "$ac_compile") 2>conftest.er1
14570   ac_status=$?
14571   grep -v '^ *+' conftest.er1 >conftest.err
14572   rm -f conftest.er1
14573   cat conftest.err >&5
14574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575   (exit $ac_status); } &&
14576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14577   { (case "(($ac_try" in
14578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579   *) ac_try_echo=$ac_try;;
14580 esac
14581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582   (eval "$ac_try") 2>&5
14583   ac_status=$?
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); }; } &&
14586          { ac_try='test -s conftest.$ac_objext'
14587   { (case "(($ac_try" in
14588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589   *) ac_try_echo=$ac_try;;
14590 esac
14591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592   (eval "$ac_try") 2>&5
14593   ac_status=$?
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); }; }; then
14596   ac_header_compiler=yes
14597 else
14598   echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14600
14601         ac_header_compiler=no
14602 fi
14603
14604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14606 echo "${ECHO_T}$ac_header_compiler" >&6; }
14607
14608 # Is the header present?
14609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14611 cat >conftest.$ac_ext <<_ACEOF
14612 /* confdefs.h.  */
14613 _ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h.  */
14617 #include <$ac_header>
14618 _ACEOF
14619 if { (ac_try="$ac_cpp conftest.$ac_ext"
14620 case "(($ac_try" in
14621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622   *) ac_try_echo=$ac_try;;
14623 esac
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14626   ac_status=$?
14627   grep -v '^ *+' conftest.er1 >conftest.err
14628   rm -f conftest.er1
14629   cat conftest.err >&5
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); } >/dev/null; then
14632   if test -s conftest.err; then
14633     ac_cpp_err=$ac_c_preproc_warn_flag
14634     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14635   else
14636     ac_cpp_err=
14637   fi
14638 else
14639   ac_cpp_err=yes
14640 fi
14641 if test -z "$ac_cpp_err"; then
14642   ac_header_preproc=yes
14643 else
14644   echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14646
14647   ac_header_preproc=no
14648 fi
14649
14650 rm -f conftest.err conftest.$ac_ext
14651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14652 echo "${ECHO_T}$ac_header_preproc" >&6; }
14653
14654 # So?  What about this header?
14655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14656   yes:no: )
14657     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14661     ac_header_preproc=yes
14662     ;;
14663   no:yes:* )
14664     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14666     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14667 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14668     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14670     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14671 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14672     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14674     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14676     ( cat <<\_ASBOX
14677 ## ------------------------------------ ##
14678 ## Report this to http://llvm.org/bugs/ ##
14679 ## ------------------------------------ ##
14680 _ASBOX
14681      ) | sed "s/^/$as_me: WARNING:     /" >&2
14682     ;;
14683 esac
14684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14687   echo $ECHO_N "(cached) $ECHO_C" >&6
14688 else
14689   eval "$as_ac_Header=\$ac_header_preproc"
14690 fi
14691 ac_res=`eval echo '${'$as_ac_Header'}'`
14692                { echo "$as_me:$LINENO: result: $ac_res" >&5
14693 echo "${ECHO_T}$ac_res" >&6; }
14694
14695 fi
14696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14697   cat >>confdefs.h <<_ACEOF
14698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14699 _ACEOF
14700
14701 fi
14702
14703 done
14704
14705
14706
14707 for ac_header in utime.h windows.h
14708 do
14709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14711   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14714   echo $ECHO_N "(cached) $ECHO_C" >&6
14715 fi
14716 ac_res=`eval echo '${'$as_ac_Header'}'`
14717                { echo "$as_me:$LINENO: result: $ac_res" >&5
14718 echo "${ECHO_T}$ac_res" >&6; }
14719 else
14720   # Is the header compilable?
14721 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14723 cat >conftest.$ac_ext <<_ACEOF
14724 /* confdefs.h.  */
14725 _ACEOF
14726 cat confdefs.h >>conftest.$ac_ext
14727 cat >>conftest.$ac_ext <<_ACEOF
14728 /* end confdefs.h.  */
14729 $ac_includes_default
14730 #include <$ac_header>
14731 _ACEOF
14732 rm -f conftest.$ac_objext
14733 if { (ac_try="$ac_compile"
14734 case "(($ac_try" in
14735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736   *) ac_try_echo=$ac_try;;
14737 esac
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739   (eval "$ac_compile") 2>conftest.er1
14740   ac_status=$?
14741   grep -v '^ *+' conftest.er1 >conftest.err
14742   rm -f conftest.er1
14743   cat conftest.err >&5
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); } &&
14746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14747   { (case "(($ac_try" in
14748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749   *) ac_try_echo=$ac_try;;
14750 esac
14751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752   (eval "$ac_try") 2>&5
14753   ac_status=$?
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); }; } &&
14756          { ac_try='test -s conftest.$ac_objext'
14757   { (case "(($ac_try" in
14758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759   *) ac_try_echo=$ac_try;;
14760 esac
14761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762   (eval "$ac_try") 2>&5
14763   ac_status=$?
14764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765   (exit $ac_status); }; }; then
14766   ac_header_compiler=yes
14767 else
14768   echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14770
14771         ac_header_compiler=no
14772 fi
14773
14774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14776 echo "${ECHO_T}$ac_header_compiler" >&6; }
14777
14778 # Is the header present?
14779 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14781 cat >conftest.$ac_ext <<_ACEOF
14782 /* confdefs.h.  */
14783 _ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h.  */
14787 #include <$ac_header>
14788 _ACEOF
14789 if { (ac_try="$ac_cpp conftest.$ac_ext"
14790 case "(($ac_try" in
14791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14792   *) ac_try_echo=$ac_try;;
14793 esac
14794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14796   ac_status=$?
14797   grep -v '^ *+' conftest.er1 >conftest.err
14798   rm -f conftest.er1
14799   cat conftest.err >&5
14800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801   (exit $ac_status); } >/dev/null; then
14802   if test -s conftest.err; then
14803     ac_cpp_err=$ac_c_preproc_warn_flag
14804     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14805   else
14806     ac_cpp_err=
14807   fi
14808 else
14809   ac_cpp_err=yes
14810 fi
14811 if test -z "$ac_cpp_err"; then
14812   ac_header_preproc=yes
14813 else
14814   echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14816
14817   ac_header_preproc=no
14818 fi
14819
14820 rm -f conftest.err conftest.$ac_ext
14821 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14822 echo "${ECHO_T}$ac_header_preproc" >&6; }
14823
14824 # So?  What about this header?
14825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14826   yes:no: )
14827     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14829     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14830 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14831     ac_header_preproc=yes
14832     ;;
14833   no:yes:* )
14834     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14836     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14837 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14838     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14839 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14840     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14841 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14844     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14845 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14846     ( cat <<\_ASBOX
14847 ## ------------------------------------ ##
14848 ## Report this to http://llvm.org/bugs/ ##
14849 ## ------------------------------------ ##
14850 _ASBOX
14851      ) | sed "s/^/$as_me: WARNING:     /" >&2
14852     ;;
14853 esac
14854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14857   echo $ECHO_N "(cached) $ECHO_C" >&6
14858 else
14859   eval "$as_ac_Header=\$ac_header_preproc"
14860 fi
14861 ac_res=`eval echo '${'$as_ac_Header'}'`
14862                { echo "$as_me:$LINENO: result: $ac_res" >&5
14863 echo "${ECHO_T}$ac_res" >&6; }
14864
14865 fi
14866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14867   cat >>confdefs.h <<_ACEOF
14868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14869 _ACEOF
14870
14871 fi
14872
14873 done
14874
14875
14876
14877
14878
14879
14880 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14881 do
14882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14884   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14887   echo $ECHO_N "(cached) $ECHO_C" >&6
14888 fi
14889 ac_res=`eval echo '${'$as_ac_Header'}'`
14890                { echo "$as_me:$LINENO: result: $ac_res" >&5
14891 echo "${ECHO_T}$ac_res" >&6; }
14892 else
14893   # Is the header compilable?
14894 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14896 cat >conftest.$ac_ext <<_ACEOF
14897 /* confdefs.h.  */
14898 _ACEOF
14899 cat confdefs.h >>conftest.$ac_ext
14900 cat >>conftest.$ac_ext <<_ACEOF
14901 /* end confdefs.h.  */
14902 $ac_includes_default
14903 #include <$ac_header>
14904 _ACEOF
14905 rm -f conftest.$ac_objext
14906 if { (ac_try="$ac_compile"
14907 case "(($ac_try" in
14908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909   *) ac_try_echo=$ac_try;;
14910 esac
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912   (eval "$ac_compile") 2>conftest.er1
14913   ac_status=$?
14914   grep -v '^ *+' conftest.er1 >conftest.err
14915   rm -f conftest.er1
14916   cat conftest.err >&5
14917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918   (exit $ac_status); } &&
14919          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14920   { (case "(($ac_try" in
14921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14922   *) ac_try_echo=$ac_try;;
14923 esac
14924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14925   (eval "$ac_try") 2>&5
14926   ac_status=$?
14927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928   (exit $ac_status); }; } &&
14929          { ac_try='test -s conftest.$ac_objext'
14930   { (case "(($ac_try" in
14931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14932   *) ac_try_echo=$ac_try;;
14933 esac
14934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14935   (eval "$ac_try") 2>&5
14936   ac_status=$?
14937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938   (exit $ac_status); }; }; then
14939   ac_header_compiler=yes
14940 else
14941   echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.$ac_ext >&5
14943
14944         ac_header_compiler=no
14945 fi
14946
14947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14949 echo "${ECHO_T}$ac_header_compiler" >&6; }
14950
14951 # Is the header present?
14952 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14954 cat >conftest.$ac_ext <<_ACEOF
14955 /* confdefs.h.  */
14956 _ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h.  */
14960 #include <$ac_header>
14961 _ACEOF
14962 if { (ac_try="$ac_cpp conftest.$ac_ext"
14963 case "(($ac_try" in
14964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965   *) ac_try_echo=$ac_try;;
14966 esac
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14969   ac_status=$?
14970   grep -v '^ *+' conftest.er1 >conftest.err
14971   rm -f conftest.er1
14972   cat conftest.err >&5
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); } >/dev/null; then
14975   if test -s conftest.err; then
14976     ac_cpp_err=$ac_c_preproc_warn_flag
14977     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14978   else
14979     ac_cpp_err=
14980   fi
14981 else
14982   ac_cpp_err=yes
14983 fi
14984 if test -z "$ac_cpp_err"; then
14985   ac_header_preproc=yes
14986 else
14987   echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14989
14990   ac_header_preproc=no
14991 fi
14992
14993 rm -f conftest.err conftest.$ac_ext
14994 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14995 echo "${ECHO_T}$ac_header_preproc" >&6; }
14996
14997 # So?  What about this header?
14998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14999   yes:no: )
15000     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15004     ac_header_preproc=yes
15005     ;;
15006   no:yes:* )
15007     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15009     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15010 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15011     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15013     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15014 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15015     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15017     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15019     ( cat <<\_ASBOX
15020 ## ------------------------------------ ##
15021 ## Report this to http://llvm.org/bugs/ ##
15022 ## ------------------------------------ ##
15023 _ASBOX
15024      ) | sed "s/^/$as_me: WARNING:     /" >&2
15025     ;;
15026 esac
15027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15030   echo $ECHO_N "(cached) $ECHO_C" >&6
15031 else
15032   eval "$as_ac_Header=\$ac_header_preproc"
15033 fi
15034 ac_res=`eval echo '${'$as_ac_Header'}'`
15035                { echo "$as_me:$LINENO: result: $ac_res" >&5
15036 echo "${ECHO_T}$ac_res" >&6; }
15037
15038 fi
15039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15040   cat >>confdefs.h <<_ACEOF
15041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15042 _ACEOF
15043
15044 fi
15045
15046 done
15047
15048
15049
15050
15051
15052 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15053 do
15054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15056   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15059   echo $ECHO_N "(cached) $ECHO_C" >&6
15060 fi
15061 ac_res=`eval echo '${'$as_ac_Header'}'`
15062                { echo "$as_me:$LINENO: result: $ac_res" >&5
15063 echo "${ECHO_T}$ac_res" >&6; }
15064 else
15065   # Is the header compilable?
15066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15068 cat >conftest.$ac_ext <<_ACEOF
15069 /* confdefs.h.  */
15070 _ACEOF
15071 cat confdefs.h >>conftest.$ac_ext
15072 cat >>conftest.$ac_ext <<_ACEOF
15073 /* end confdefs.h.  */
15074 $ac_includes_default
15075 #include <$ac_header>
15076 _ACEOF
15077 rm -f conftest.$ac_objext
15078 if { (ac_try="$ac_compile"
15079 case "(($ac_try" in
15080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081   *) ac_try_echo=$ac_try;;
15082 esac
15083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15084   (eval "$ac_compile") 2>conftest.er1
15085   ac_status=$?
15086   grep -v '^ *+' conftest.er1 >conftest.err
15087   rm -f conftest.er1
15088   cat conftest.err >&5
15089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090   (exit $ac_status); } &&
15091          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15092   { (case "(($ac_try" in
15093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094   *) ac_try_echo=$ac_try;;
15095 esac
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097   (eval "$ac_try") 2>&5
15098   ac_status=$?
15099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100   (exit $ac_status); }; } &&
15101          { ac_try='test -s conftest.$ac_objext'
15102   { (case "(($ac_try" in
15103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104   *) ac_try_echo=$ac_try;;
15105 esac
15106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107   (eval "$ac_try") 2>&5
15108   ac_status=$?
15109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110   (exit $ac_status); }; }; then
15111   ac_header_compiler=yes
15112 else
15113   echo "$as_me: failed program was:" >&5
15114 sed 's/^/| /' conftest.$ac_ext >&5
15115
15116         ac_header_compiler=no
15117 fi
15118
15119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15121 echo "${ECHO_T}$ac_header_compiler" >&6; }
15122
15123 # Is the header present?
15124 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15126 cat >conftest.$ac_ext <<_ACEOF
15127 /* confdefs.h.  */
15128 _ACEOF
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h.  */
15132 #include <$ac_header>
15133 _ACEOF
15134 if { (ac_try="$ac_cpp conftest.$ac_ext"
15135 case "(($ac_try" in
15136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137   *) ac_try_echo=$ac_try;;
15138 esac
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15141   ac_status=$?
15142   grep -v '^ *+' conftest.er1 >conftest.err
15143   rm -f conftest.er1
15144   cat conftest.err >&5
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); } >/dev/null; then
15147   if test -s conftest.err; then
15148     ac_cpp_err=$ac_c_preproc_warn_flag
15149     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15150   else
15151     ac_cpp_err=
15152   fi
15153 else
15154   ac_cpp_err=yes
15155 fi
15156 if test -z "$ac_cpp_err"; then
15157   ac_header_preproc=yes
15158 else
15159   echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15161
15162   ac_header_preproc=no
15163 fi
15164
15165 rm -f conftest.err conftest.$ac_ext
15166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15167 echo "${ECHO_T}$ac_header_preproc" >&6; }
15168
15169 # So?  What about this header?
15170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15171   yes:no: )
15172     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15176     ac_header_preproc=yes
15177     ;;
15178   no:yes:* )
15179     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15181     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15182 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15183     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15185     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15186 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15189     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15191     ( cat <<\_ASBOX
15192 ## ------------------------------------ ##
15193 ## Report this to http://llvm.org/bugs/ ##
15194 ## ------------------------------------ ##
15195 _ASBOX
15196      ) | sed "s/^/$as_me: WARNING:     /" >&2
15197     ;;
15198 esac
15199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15202   echo $ECHO_N "(cached) $ECHO_C" >&6
15203 else
15204   eval "$as_ac_Header=\$ac_header_preproc"
15205 fi
15206 ac_res=`eval echo '${'$as_ac_Header'}'`
15207                { echo "$as_me:$LINENO: result: $ac_res" >&5
15208 echo "${ECHO_T}$ac_res" >&6; }
15209
15210 fi
15211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15212   cat >>confdefs.h <<_ACEOF
15213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15214 _ACEOF
15215
15216 fi
15217
15218 done
15219
15220
15221 for ac_header in valgrind/valgrind.h
15222 do
15223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15225   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15228   echo $ECHO_N "(cached) $ECHO_C" >&6
15229 fi
15230 ac_res=`eval echo '${'$as_ac_Header'}'`
15231                { echo "$as_me:$LINENO: result: $ac_res" >&5
15232 echo "${ECHO_T}$ac_res" >&6; }
15233 else
15234   # Is the header compilable?
15235 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15237 cat >conftest.$ac_ext <<_ACEOF
15238 /* confdefs.h.  */
15239 _ACEOF
15240 cat confdefs.h >>conftest.$ac_ext
15241 cat >>conftest.$ac_ext <<_ACEOF
15242 /* end confdefs.h.  */
15243 $ac_includes_default
15244 #include <$ac_header>
15245 _ACEOF
15246 rm -f conftest.$ac_objext
15247 if { (ac_try="$ac_compile"
15248 case "(($ac_try" in
15249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250   *) ac_try_echo=$ac_try;;
15251 esac
15252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253   (eval "$ac_compile") 2>conftest.er1
15254   ac_status=$?
15255   grep -v '^ *+' conftest.er1 >conftest.err
15256   rm -f conftest.er1
15257   cat conftest.err >&5
15258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259   (exit $ac_status); } &&
15260          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15261   { (case "(($ac_try" in
15262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263   *) ac_try_echo=$ac_try;;
15264 esac
15265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266   (eval "$ac_try") 2>&5
15267   ac_status=$?
15268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269   (exit $ac_status); }; } &&
15270          { ac_try='test -s conftest.$ac_objext'
15271   { (case "(($ac_try" in
15272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15273   *) ac_try_echo=$ac_try;;
15274 esac
15275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15276   (eval "$ac_try") 2>&5
15277   ac_status=$?
15278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279   (exit $ac_status); }; }; then
15280   ac_header_compiler=yes
15281 else
15282   echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15284
15285         ac_header_compiler=no
15286 fi
15287
15288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15290 echo "${ECHO_T}$ac_header_compiler" >&6; }
15291
15292 # Is the header present?
15293 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15295 cat >conftest.$ac_ext <<_ACEOF
15296 /* confdefs.h.  */
15297 _ACEOF
15298 cat confdefs.h >>conftest.$ac_ext
15299 cat >>conftest.$ac_ext <<_ACEOF
15300 /* end confdefs.h.  */
15301 #include <$ac_header>
15302 _ACEOF
15303 if { (ac_try="$ac_cpp conftest.$ac_ext"
15304 case "(($ac_try" in
15305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306   *) ac_try_echo=$ac_try;;
15307 esac
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15310   ac_status=$?
15311   grep -v '^ *+' conftest.er1 >conftest.err
15312   rm -f conftest.er1
15313   cat conftest.err >&5
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); } >/dev/null; then
15316   if test -s conftest.err; then
15317     ac_cpp_err=$ac_c_preproc_warn_flag
15318     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15319   else
15320     ac_cpp_err=
15321   fi
15322 else
15323   ac_cpp_err=yes
15324 fi
15325 if test -z "$ac_cpp_err"; then
15326   ac_header_preproc=yes
15327 else
15328   echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15330
15331   ac_header_preproc=no
15332 fi
15333
15334 rm -f conftest.err conftest.$ac_ext
15335 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15336 echo "${ECHO_T}$ac_header_preproc" >&6; }
15337
15338 # So?  What about this header?
15339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15340   yes:no: )
15341     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15343     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15344 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15345     ac_header_preproc=yes
15346     ;;
15347   no:yes:* )
15348     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15350     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15351 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15352     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15353 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15354     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15355 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15356     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15358     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15359 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15360     ( cat <<\_ASBOX
15361 ## ------------------------------------ ##
15362 ## Report this to http://llvm.org/bugs/ ##
15363 ## ------------------------------------ ##
15364 _ASBOX
15365      ) | sed "s/^/$as_me: WARNING:     /" >&2
15366     ;;
15367 esac
15368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15371   echo $ECHO_N "(cached) $ECHO_C" >&6
15372 else
15373   eval "$as_ac_Header=\$ac_header_preproc"
15374 fi
15375 ac_res=`eval echo '${'$as_ac_Header'}'`
15376                { echo "$as_me:$LINENO: result: $ac_res" >&5
15377 echo "${ECHO_T}$ac_res" >&6; }
15378
15379 fi
15380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15381   cat >>confdefs.h <<_ACEOF
15382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15383 _ACEOF
15384
15385 fi
15386
15387 done
15388
15389
15390 for ac_header in fenv.h
15391 do
15392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15394   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15397   echo $ECHO_N "(cached) $ECHO_C" >&6
15398 fi
15399 ac_res=`eval echo '${'$as_ac_Header'}'`
15400                { echo "$as_me:$LINENO: result: $ac_res" >&5
15401 echo "${ECHO_T}$ac_res" >&6; }
15402 else
15403   # Is the header compilable?
15404 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15406 cat >conftest.$ac_ext <<_ACEOF
15407 /* confdefs.h.  */
15408 _ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h.  */
15412 $ac_includes_default
15413 #include <$ac_header>
15414 _ACEOF
15415 rm -f conftest.$ac_objext
15416 if { (ac_try="$ac_compile"
15417 case "(($ac_try" in
15418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419   *) ac_try_echo=$ac_try;;
15420 esac
15421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15422   (eval "$ac_compile") 2>conftest.er1
15423   ac_status=$?
15424   grep -v '^ *+' conftest.er1 >conftest.err
15425   rm -f conftest.er1
15426   cat conftest.err >&5
15427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428   (exit $ac_status); } &&
15429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15430   { (case "(($ac_try" in
15431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432   *) ac_try_echo=$ac_try;;
15433 esac
15434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435   (eval "$ac_try") 2>&5
15436   ac_status=$?
15437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438   (exit $ac_status); }; } &&
15439          { ac_try='test -s conftest.$ac_objext'
15440   { (case "(($ac_try" in
15441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442   *) ac_try_echo=$ac_try;;
15443 esac
15444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445   (eval "$ac_try") 2>&5
15446   ac_status=$?
15447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448   (exit $ac_status); }; }; then
15449   ac_header_compiler=yes
15450 else
15451   echo "$as_me: failed program was:" >&5
15452 sed 's/^/| /' conftest.$ac_ext >&5
15453
15454         ac_header_compiler=no
15455 fi
15456
15457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15459 echo "${ECHO_T}$ac_header_compiler" >&6; }
15460
15461 # Is the header present?
15462 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15464 cat >conftest.$ac_ext <<_ACEOF
15465 /* confdefs.h.  */
15466 _ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h.  */
15470 #include <$ac_header>
15471 _ACEOF
15472 if { (ac_try="$ac_cpp conftest.$ac_ext"
15473 case "(($ac_try" in
15474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15475   *) ac_try_echo=$ac_try;;
15476 esac
15477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15478   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15479   ac_status=$?
15480   grep -v '^ *+' conftest.er1 >conftest.err
15481   rm -f conftest.er1
15482   cat conftest.err >&5
15483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484   (exit $ac_status); } >/dev/null; then
15485   if test -s conftest.err; then
15486     ac_cpp_err=$ac_c_preproc_warn_flag
15487     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15488   else
15489     ac_cpp_err=
15490   fi
15491 else
15492   ac_cpp_err=yes
15493 fi
15494 if test -z "$ac_cpp_err"; then
15495   ac_header_preproc=yes
15496 else
15497   echo "$as_me: failed program was:" >&5
15498 sed 's/^/| /' conftest.$ac_ext >&5
15499
15500   ac_header_preproc=no
15501 fi
15502
15503 rm -f conftest.err conftest.$ac_ext
15504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15505 echo "${ECHO_T}$ac_header_preproc" >&6; }
15506
15507 # So?  What about this header?
15508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15509   yes:no: )
15510     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15514     ac_header_preproc=yes
15515     ;;
15516   no:yes:* )
15517     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15519     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15520 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15521     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15523     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15524 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15527     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15529     ( cat <<\_ASBOX
15530 ## ------------------------------------ ##
15531 ## Report this to http://llvm.org/bugs/ ##
15532 ## ------------------------------------ ##
15533 _ASBOX
15534      ) | sed "s/^/$as_me: WARNING:     /" >&2
15535     ;;
15536 esac
15537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15540   echo $ECHO_N "(cached) $ECHO_C" >&6
15541 else
15542   eval "$as_ac_Header=\$ac_header_preproc"
15543 fi
15544 ac_res=`eval echo '${'$as_ac_Header'}'`
15545                { echo "$as_me:$LINENO: result: $ac_res" >&5
15546 echo "${ECHO_T}$ac_res" >&6; }
15547
15548 fi
15549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15550   cat >>confdefs.h <<_ACEOF
15551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15552 _ACEOF
15553
15554 fi
15555
15556 done
15557
15558 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15559
15560 for ac_header in pthread.h
15561 do
15562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15564   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15567   echo $ECHO_N "(cached) $ECHO_C" >&6
15568 fi
15569 ac_res=`eval echo '${'$as_ac_Header'}'`
15570                { echo "$as_me:$LINENO: result: $ac_res" >&5
15571 echo "${ECHO_T}$ac_res" >&6; }
15572 else
15573   # Is the header compilable?
15574 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15575 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15576 cat >conftest.$ac_ext <<_ACEOF
15577 /* confdefs.h.  */
15578 _ACEOF
15579 cat confdefs.h >>conftest.$ac_ext
15580 cat >>conftest.$ac_ext <<_ACEOF
15581 /* end confdefs.h.  */
15582 $ac_includes_default
15583 #include <$ac_header>
15584 _ACEOF
15585 rm -f conftest.$ac_objext
15586 if { (ac_try="$ac_compile"
15587 case "(($ac_try" in
15588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589   *) ac_try_echo=$ac_try;;
15590 esac
15591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15592   (eval "$ac_compile") 2>conftest.er1
15593   ac_status=$?
15594   grep -v '^ *+' conftest.er1 >conftest.err
15595   rm -f conftest.er1
15596   cat conftest.err >&5
15597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598   (exit $ac_status); } &&
15599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15600   { (case "(($ac_try" in
15601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15602   *) ac_try_echo=$ac_try;;
15603 esac
15604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15605   (eval "$ac_try") 2>&5
15606   ac_status=$?
15607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608   (exit $ac_status); }; } &&
15609          { ac_try='test -s conftest.$ac_objext'
15610   { (case "(($ac_try" in
15611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612   *) ac_try_echo=$ac_try;;
15613 esac
15614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15615   (eval "$ac_try") 2>&5
15616   ac_status=$?
15617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618   (exit $ac_status); }; }; then
15619   ac_header_compiler=yes
15620 else
15621   echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15623
15624         ac_header_compiler=no
15625 fi
15626
15627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15629 echo "${ECHO_T}$ac_header_compiler" >&6; }
15630
15631 # Is the header present?
15632 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15634 cat >conftest.$ac_ext <<_ACEOF
15635 /* confdefs.h.  */
15636 _ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h.  */
15640 #include <$ac_header>
15641 _ACEOF
15642 if { (ac_try="$ac_cpp conftest.$ac_ext"
15643 case "(($ac_try" in
15644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645   *) ac_try_echo=$ac_try;;
15646 esac
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15649   ac_status=$?
15650   grep -v '^ *+' conftest.er1 >conftest.err
15651   rm -f conftest.er1
15652   cat conftest.err >&5
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); } >/dev/null; then
15655   if test -s conftest.err; then
15656     ac_cpp_err=$ac_c_preproc_warn_flag
15657     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15658   else
15659     ac_cpp_err=
15660   fi
15661 else
15662   ac_cpp_err=yes
15663 fi
15664 if test -z "$ac_cpp_err"; then
15665   ac_header_preproc=yes
15666 else
15667   echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15669
15670   ac_header_preproc=no
15671 fi
15672
15673 rm -f conftest.err conftest.$ac_ext
15674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15675 echo "${ECHO_T}$ac_header_preproc" >&6; }
15676
15677 # So?  What about this header?
15678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15679   yes:no: )
15680     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15684     ac_header_preproc=yes
15685     ;;
15686   no:yes:* )
15687     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15689     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15690 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15691     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15693     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15694 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15697     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15699     ( cat <<\_ASBOX
15700 ## ------------------------------------ ##
15701 ## Report this to http://llvm.org/bugs/ ##
15702 ## ------------------------------------ ##
15703 _ASBOX
15704      ) | sed "s/^/$as_me: WARNING:     /" >&2
15705     ;;
15706 esac
15707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15710   echo $ECHO_N "(cached) $ECHO_C" >&6
15711 else
15712   eval "$as_ac_Header=\$ac_header_preproc"
15713 fi
15714 ac_res=`eval echo '${'$as_ac_Header'}'`
15715                { echo "$as_me:$LINENO: result: $ac_res" >&5
15716 echo "${ECHO_T}$ac_res" >&6; }
15717
15718 fi
15719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15720   cat >>confdefs.h <<_ACEOF
15721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15722 _ACEOF
15723  HAVE_PTHREAD=1
15724
15725 else
15726   HAVE_PTHREAD=0
15727
15728 fi
15729
15730 done
15731
15732 else
15733   HAVE_PTHREAD=0
15734
15735 fi
15736
15737 if test "$llvm_cv_enable_libffi" = "yes" ; then
15738
15739
15740 for ac_header in ffi.h ffi/ffi.h
15741 do
15742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15744   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15747   echo $ECHO_N "(cached) $ECHO_C" >&6
15748 fi
15749 ac_res=`eval echo '${'$as_ac_Header'}'`
15750                { echo "$as_me:$LINENO: result: $ac_res" >&5
15751 echo "${ECHO_T}$ac_res" >&6; }
15752 else
15753   # Is the header compilable?
15754 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15756 cat >conftest.$ac_ext <<_ACEOF
15757 /* confdefs.h.  */
15758 _ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h.  */
15762 $ac_includes_default
15763 #include <$ac_header>
15764 _ACEOF
15765 rm -f conftest.$ac_objext
15766 if { (ac_try="$ac_compile"
15767 case "(($ac_try" in
15768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769   *) ac_try_echo=$ac_try;;
15770 esac
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772   (eval "$ac_compile") 2>conftest.er1
15773   ac_status=$?
15774   grep -v '^ *+' conftest.er1 >conftest.err
15775   rm -f conftest.er1
15776   cat conftest.err >&5
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); } &&
15779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15780   { (case "(($ac_try" in
15781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782   *) ac_try_echo=$ac_try;;
15783 esac
15784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785   (eval "$ac_try") 2>&5
15786   ac_status=$?
15787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788   (exit $ac_status); }; } &&
15789          { ac_try='test -s conftest.$ac_objext'
15790   { (case "(($ac_try" in
15791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792   *) ac_try_echo=$ac_try;;
15793 esac
15794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795   (eval "$ac_try") 2>&5
15796   ac_status=$?
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); }; }; then
15799   ac_header_compiler=yes
15800 else
15801   echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15803
15804         ac_header_compiler=no
15805 fi
15806
15807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15809 echo "${ECHO_T}$ac_header_compiler" >&6; }
15810
15811 # Is the header present?
15812 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15814 cat >conftest.$ac_ext <<_ACEOF
15815 /* confdefs.h.  */
15816 _ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h.  */
15820 #include <$ac_header>
15821 _ACEOF
15822 if { (ac_try="$ac_cpp conftest.$ac_ext"
15823 case "(($ac_try" in
15824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825   *) ac_try_echo=$ac_try;;
15826 esac
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15829   ac_status=$?
15830   grep -v '^ *+' conftest.er1 >conftest.err
15831   rm -f conftest.er1
15832   cat conftest.err >&5
15833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834   (exit $ac_status); } >/dev/null; then
15835   if test -s conftest.err; then
15836     ac_cpp_err=$ac_c_preproc_warn_flag
15837     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15838   else
15839     ac_cpp_err=
15840   fi
15841 else
15842   ac_cpp_err=yes
15843 fi
15844 if test -z "$ac_cpp_err"; then
15845   ac_header_preproc=yes
15846 else
15847   echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15849
15850   ac_header_preproc=no
15851 fi
15852
15853 rm -f conftest.err conftest.$ac_ext
15854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15855 echo "${ECHO_T}$ac_header_preproc" >&6; }
15856
15857 # So?  What about this header?
15858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15859   yes:no: )
15860     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15862     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15864     ac_header_preproc=yes
15865     ;;
15866   no:yes:* )
15867     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15869     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15870 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15871     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15873     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15874 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15877     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15879     ( cat <<\_ASBOX
15880 ## ------------------------------------ ##
15881 ## Report this to http://llvm.org/bugs/ ##
15882 ## ------------------------------------ ##
15883 _ASBOX
15884      ) | sed "s/^/$as_me: WARNING:     /" >&2
15885     ;;
15886 esac
15887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15890   echo $ECHO_N "(cached) $ECHO_C" >&6
15891 else
15892   eval "$as_ac_Header=\$ac_header_preproc"
15893 fi
15894 ac_res=`eval echo '${'$as_ac_Header'}'`
15895                { echo "$as_me:$LINENO: result: $ac_res" >&5
15896 echo "${ECHO_T}$ac_res" >&6; }
15897
15898 fi
15899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15900   cat >>confdefs.h <<_ACEOF
15901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15902 _ACEOF
15903
15904 fi
15905
15906 done
15907
15908 fi
15909
15910
15911 for ac_header in CrashReporterClient.h
15912 do
15913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15915   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15918   echo $ECHO_N "(cached) $ECHO_C" >&6
15919 fi
15920 ac_res=`eval echo '${'$as_ac_Header'}'`
15921                { echo "$as_me:$LINENO: result: $ac_res" >&5
15922 echo "${ECHO_T}$ac_res" >&6; }
15923 else
15924   # Is the header compilable?
15925 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15927 cat >conftest.$ac_ext <<_ACEOF
15928 /* confdefs.h.  */
15929 _ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h.  */
15933 $ac_includes_default
15934 #include <$ac_header>
15935 _ACEOF
15936 rm -f conftest.$ac_objext
15937 if { (ac_try="$ac_compile"
15938 case "(($ac_try" in
15939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940   *) ac_try_echo=$ac_try;;
15941 esac
15942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943   (eval "$ac_compile") 2>conftest.er1
15944   ac_status=$?
15945   grep -v '^ *+' conftest.er1 >conftest.err
15946   rm -f conftest.er1
15947   cat conftest.err >&5
15948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949   (exit $ac_status); } &&
15950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15951   { (case "(($ac_try" in
15952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953   *) ac_try_echo=$ac_try;;
15954 esac
15955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956   (eval "$ac_try") 2>&5
15957   ac_status=$?
15958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959   (exit $ac_status); }; } &&
15960          { ac_try='test -s conftest.$ac_objext'
15961   { (case "(($ac_try" in
15962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963   *) ac_try_echo=$ac_try;;
15964 esac
15965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966   (eval "$ac_try") 2>&5
15967   ac_status=$?
15968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969   (exit $ac_status); }; }; then
15970   ac_header_compiler=yes
15971 else
15972   echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15974
15975         ac_header_compiler=no
15976 fi
15977
15978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15980 echo "${ECHO_T}$ac_header_compiler" >&6; }
15981
15982 # Is the header present?
15983 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15985 cat >conftest.$ac_ext <<_ACEOF
15986 /* confdefs.h.  */
15987 _ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h.  */
15991 #include <$ac_header>
15992 _ACEOF
15993 if { (ac_try="$ac_cpp conftest.$ac_ext"
15994 case "(($ac_try" in
15995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996   *) ac_try_echo=$ac_try;;
15997 esac
15998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15999   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16000   ac_status=$?
16001   grep -v '^ *+' conftest.er1 >conftest.err
16002   rm -f conftest.er1
16003   cat conftest.err >&5
16004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005   (exit $ac_status); } >/dev/null; then
16006   if test -s conftest.err; then
16007     ac_cpp_err=$ac_c_preproc_warn_flag
16008     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16009   else
16010     ac_cpp_err=
16011   fi
16012 else
16013   ac_cpp_err=yes
16014 fi
16015 if test -z "$ac_cpp_err"; then
16016   ac_header_preproc=yes
16017 else
16018   echo "$as_me: failed program was:" >&5
16019 sed 's/^/| /' conftest.$ac_ext >&5
16020
16021   ac_header_preproc=no
16022 fi
16023
16024 rm -f conftest.err conftest.$ac_ext
16025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16026 echo "${ECHO_T}$ac_header_preproc" >&6; }
16027
16028 # So?  What about this header?
16029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16030   yes:no: )
16031     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16035     ac_header_preproc=yes
16036     ;;
16037   no:yes:* )
16038     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16040     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16041 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16042     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16044     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16045 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16048     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16050     ( cat <<\_ASBOX
16051 ## ------------------------------------ ##
16052 ## Report this to http://llvm.org/bugs/ ##
16053 ## ------------------------------------ ##
16054 _ASBOX
16055      ) | sed "s/^/$as_me: WARNING:     /" >&2
16056     ;;
16057 esac
16058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16061   echo $ECHO_N "(cached) $ECHO_C" >&6
16062 else
16063   eval "$as_ac_Header=\$ac_header_preproc"
16064 fi
16065 ac_res=`eval echo '${'$as_ac_Header'}'`
16066                { echo "$as_me:$LINENO: result: $ac_res" >&5
16067 echo "${ECHO_T}$ac_res" >&6; }
16068
16069 fi
16070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16071   cat >>confdefs.h <<_ACEOF
16072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16073 _ACEOF
16074
16075 fi
16076
16077 done
16078
16079
16080 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16081 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16082 cat >conftest.$ac_ext <<_ACEOF
16083 /* confdefs.h.  */
16084 _ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h.  */
16088 extern const char *__crashreporter_info__;
16089       int main() {
16090         __crashreporter_info__ = "test";
16091         return 0;
16092       }
16093
16094 _ACEOF
16095 rm -f conftest.$ac_objext conftest$ac_exeext
16096 if { (ac_try="$ac_link"
16097 case "(($ac_try" in
16098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16099   *) ac_try_echo=$ac_try;;
16100 esac
16101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16102   (eval "$ac_link") 2>conftest.er1
16103   ac_status=$?
16104   grep -v '^ *+' conftest.er1 >conftest.err
16105   rm -f conftest.er1
16106   cat conftest.err >&5
16107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108   (exit $ac_status); } &&
16109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16110   { (case "(($ac_try" in
16111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16112   *) ac_try_echo=$ac_try;;
16113 esac
16114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16115   (eval "$ac_try") 2>&5
16116   ac_status=$?
16117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118   (exit $ac_status); }; } &&
16119          { ac_try='test -s conftest$ac_exeext'
16120   { (case "(($ac_try" in
16121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16122   *) ac_try_echo=$ac_try;;
16123 esac
16124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16125   (eval "$ac_try") 2>&5
16126   ac_status=$?
16127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128   (exit $ac_status); }; }; then
16129   { echo "$as_me:$LINENO: result: yes" >&5
16130 echo "${ECHO_T}yes" >&6; }
16131
16132 cat >>confdefs.h <<\_ACEOF
16133 #define HAVE_CRASHREPORTER_INFO 1
16134 _ACEOF
16135
16136 else
16137   echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16139
16140         { echo "$as_me:$LINENO: result: no" >&5
16141 echo "${ECHO_T}no" >&6; }
16142
16143 cat >>confdefs.h <<\_ACEOF
16144 #define HAVE_CRASHREPORTER_INFO 0
16145 _ACEOF
16146
16147 fi
16148
16149 rm -f core conftest.err conftest.$ac_objext \
16150       conftest$ac_exeext conftest.$ac_ext
16151
16152
16153
16154
16155   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16156 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16157 if test "${ac_cv_huge_val_sanity+set}" = set; then
16158   echo $ECHO_N "(cached) $ECHO_C" >&6
16159 else
16160
16161     ac_ext=cpp
16162 ac_cpp='$CXXCPP $CPPFLAGS'
16163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16166
16167     ac_save_CXXFLAGS=$CXXFLAGS
16168     CXXFLAGS="$CXXFLAGS -pedantic"
16169     if test "$cross_compiling" = yes; then
16170   ac_cv_huge_val_sanity=yes
16171 else
16172   cat >conftest.$ac_ext <<_ACEOF
16173 /* confdefs.h.  */
16174 _ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h.  */
16178 #include <math.h>
16179 int
16180 main ()
16181 {
16182 double x = HUGE_VAL; return x != x;
16183   ;
16184   return 0;
16185 }
16186 _ACEOF
16187 rm -f conftest$ac_exeext
16188 if { (ac_try="$ac_link"
16189 case "(($ac_try" in
16190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191   *) ac_try_echo=$ac_try;;
16192 esac
16193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194   (eval "$ac_link") 2>&5
16195   ac_status=$?
16196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16198   { (case "(($ac_try" in
16199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200   *) ac_try_echo=$ac_try;;
16201 esac
16202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16203   (eval "$ac_try") 2>&5
16204   ac_status=$?
16205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206   (exit $ac_status); }; }; then
16207   ac_cv_huge_val_sanity=yes
16208 else
16209   echo "$as_me: program exited with status $ac_status" >&5
16210 echo "$as_me: failed program was:" >&5
16211 sed 's/^/| /' conftest.$ac_ext >&5
16212
16213 ( exit $ac_status )
16214 ac_cv_huge_val_sanity=no
16215 fi
16216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16217 fi
16218
16219
16220     CXXFLAGS=$ac_save_CXXFLAGS
16221     ac_ext=c
16222 ac_cpp='$CPP $CPPFLAGS'
16223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16226
16227
16228 fi
16229 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16230 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16231   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16232
16233
16234 { echo "$as_me:$LINENO: checking for pid_t" >&5
16235 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16236 if test "${ac_cv_type_pid_t+set}" = set; then
16237   echo $ECHO_N "(cached) $ECHO_C" >&6
16238 else
16239   cat >conftest.$ac_ext <<_ACEOF
16240 /* confdefs.h.  */
16241 _ACEOF
16242 cat confdefs.h >>conftest.$ac_ext
16243 cat >>conftest.$ac_ext <<_ACEOF
16244 /* end confdefs.h.  */
16245 $ac_includes_default
16246 typedef pid_t ac__type_new_;
16247 int
16248 main ()
16249 {
16250 if ((ac__type_new_ *) 0)
16251   return 0;
16252 if (sizeof (ac__type_new_))
16253   return 0;
16254   ;
16255   return 0;
16256 }
16257 _ACEOF
16258 rm -f conftest.$ac_objext
16259 if { (ac_try="$ac_compile"
16260 case "(($ac_try" in
16261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262   *) ac_try_echo=$ac_try;;
16263 esac
16264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265   (eval "$ac_compile") 2>conftest.er1
16266   ac_status=$?
16267   grep -v '^ *+' conftest.er1 >conftest.err
16268   rm -f conftest.er1
16269   cat conftest.err >&5
16270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271   (exit $ac_status); } &&
16272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16273   { (case "(($ac_try" in
16274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16275   *) ac_try_echo=$ac_try;;
16276 esac
16277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16278   (eval "$ac_try") 2>&5
16279   ac_status=$?
16280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281   (exit $ac_status); }; } &&
16282          { ac_try='test -s conftest.$ac_objext'
16283   { (case "(($ac_try" in
16284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16285   *) ac_try_echo=$ac_try;;
16286 esac
16287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16288   (eval "$ac_try") 2>&5
16289   ac_status=$?
16290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291   (exit $ac_status); }; }; then
16292   ac_cv_type_pid_t=yes
16293 else
16294   echo "$as_me: failed program was:" >&5
16295 sed 's/^/| /' conftest.$ac_ext >&5
16296
16297         ac_cv_type_pid_t=no
16298 fi
16299
16300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16301 fi
16302 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16303 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16304 if test $ac_cv_type_pid_t = yes; then
16305   :
16306 else
16307
16308 cat >>confdefs.h <<_ACEOF
16309 #define pid_t int
16310 _ACEOF
16311
16312 fi
16313
16314 { echo "$as_me:$LINENO: checking for size_t" >&5
16315 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16316 if test "${ac_cv_type_size_t+set}" = set; then
16317   echo $ECHO_N "(cached) $ECHO_C" >&6
16318 else
16319   cat >conftest.$ac_ext <<_ACEOF
16320 /* confdefs.h.  */
16321 _ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h.  */
16325 $ac_includes_default
16326 typedef size_t ac__type_new_;
16327 int
16328 main ()
16329 {
16330 if ((ac__type_new_ *) 0)
16331   return 0;
16332 if (sizeof (ac__type_new_))
16333   return 0;
16334   ;
16335   return 0;
16336 }
16337 _ACEOF
16338 rm -f conftest.$ac_objext
16339 if { (ac_try="$ac_compile"
16340 case "(($ac_try" in
16341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342   *) ac_try_echo=$ac_try;;
16343 esac
16344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345   (eval "$ac_compile") 2>conftest.er1
16346   ac_status=$?
16347   grep -v '^ *+' conftest.er1 >conftest.err
16348   rm -f conftest.er1
16349   cat conftest.err >&5
16350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351   (exit $ac_status); } &&
16352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16353   { (case "(($ac_try" in
16354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355   *) ac_try_echo=$ac_try;;
16356 esac
16357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358   (eval "$ac_try") 2>&5
16359   ac_status=$?
16360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361   (exit $ac_status); }; } &&
16362          { ac_try='test -s conftest.$ac_objext'
16363   { (case "(($ac_try" in
16364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365   *) ac_try_echo=$ac_try;;
16366 esac
16367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368   (eval "$ac_try") 2>&5
16369   ac_status=$?
16370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371   (exit $ac_status); }; }; then
16372   ac_cv_type_size_t=yes
16373 else
16374   echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16376
16377         ac_cv_type_size_t=no
16378 fi
16379
16380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16381 fi
16382 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16383 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16384 if test $ac_cv_type_size_t = yes; then
16385   :
16386 else
16387
16388 cat >>confdefs.h <<_ACEOF
16389 #define size_t unsigned int
16390 _ACEOF
16391
16392 fi
16393
16394
16395 cat >>confdefs.h <<_ACEOF
16396 #define RETSIGTYPE void
16397 _ACEOF
16398
16399 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16400 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16401 if test "${ac_cv_struct_tm+set}" = set; then
16402   echo $ECHO_N "(cached) $ECHO_C" >&6
16403 else
16404   cat >conftest.$ac_ext <<_ACEOF
16405 /* confdefs.h.  */
16406 _ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h.  */
16410 #include <sys/types.h>
16411 #include <time.h>
16412
16413 int
16414 main ()
16415 {
16416 struct tm *tp; tp->tm_sec;
16417   ;
16418   return 0;
16419 }
16420 _ACEOF
16421 rm -f conftest.$ac_objext
16422 if { (ac_try="$ac_compile"
16423 case "(($ac_try" in
16424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425   *) ac_try_echo=$ac_try;;
16426 esac
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428   (eval "$ac_compile") 2>conftest.er1
16429   ac_status=$?
16430   grep -v '^ *+' conftest.er1 >conftest.err
16431   rm -f conftest.er1
16432   cat conftest.err >&5
16433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434   (exit $ac_status); } &&
16435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16436   { (case "(($ac_try" in
16437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16438   *) ac_try_echo=$ac_try;;
16439 esac
16440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16441   (eval "$ac_try") 2>&5
16442   ac_status=$?
16443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444   (exit $ac_status); }; } &&
16445          { ac_try='test -s conftest.$ac_objext'
16446   { (case "(($ac_try" in
16447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448   *) ac_try_echo=$ac_try;;
16449 esac
16450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451   (eval "$ac_try") 2>&5
16452   ac_status=$?
16453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454   (exit $ac_status); }; }; then
16455   ac_cv_struct_tm=time.h
16456 else
16457   echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16459
16460         ac_cv_struct_tm=sys/time.h
16461 fi
16462
16463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16464 fi
16465 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16466 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16467 if test $ac_cv_struct_tm = sys/time.h; then
16468
16469 cat >>confdefs.h <<\_ACEOF
16470 #define TM_IN_SYS_TIME 1
16471 _ACEOF
16472
16473 fi
16474
16475 { echo "$as_me:$LINENO: checking for int64_t" >&5
16476 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16477 if test "${ac_cv_type_int64_t+set}" = set; then
16478   echo $ECHO_N "(cached) $ECHO_C" >&6
16479 else
16480   cat >conftest.$ac_ext <<_ACEOF
16481 /* confdefs.h.  */
16482 _ACEOF
16483 cat confdefs.h >>conftest.$ac_ext
16484 cat >>conftest.$ac_ext <<_ACEOF
16485 /* end confdefs.h.  */
16486 $ac_includes_default
16487 typedef int64_t ac__type_new_;
16488 int
16489 main ()
16490 {
16491 if ((ac__type_new_ *) 0)
16492   return 0;
16493 if (sizeof (ac__type_new_))
16494   return 0;
16495   ;
16496   return 0;
16497 }
16498 _ACEOF
16499 rm -f conftest.$ac_objext
16500 if { (ac_try="$ac_compile"
16501 case "(($ac_try" in
16502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503   *) ac_try_echo=$ac_try;;
16504 esac
16505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506   (eval "$ac_compile") 2>conftest.er1
16507   ac_status=$?
16508   grep -v '^ *+' conftest.er1 >conftest.err
16509   rm -f conftest.er1
16510   cat conftest.err >&5
16511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512   (exit $ac_status); } &&
16513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16514   { (case "(($ac_try" in
16515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516   *) ac_try_echo=$ac_try;;
16517 esac
16518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519   (eval "$ac_try") 2>&5
16520   ac_status=$?
16521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522   (exit $ac_status); }; } &&
16523          { ac_try='test -s conftest.$ac_objext'
16524   { (case "(($ac_try" in
16525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526   *) ac_try_echo=$ac_try;;
16527 esac
16528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529   (eval "$ac_try") 2>&5
16530   ac_status=$?
16531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); }; }; then
16533   ac_cv_type_int64_t=yes
16534 else
16535   echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16537
16538         ac_cv_type_int64_t=no
16539 fi
16540
16541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16542 fi
16543 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16544 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16545 if test $ac_cv_type_int64_t = yes; then
16546
16547 cat >>confdefs.h <<_ACEOF
16548 #define HAVE_INT64_T 1
16549 _ACEOF
16550
16551
16552 else
16553   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16554 echo "$as_me: error: Type int64_t required but not found" >&2;}
16555    { (exit 1); exit 1; }; }
16556 fi
16557
16558 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16559 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16560 if test "${ac_cv_type_uint64_t+set}" = set; then
16561   echo $ECHO_N "(cached) $ECHO_C" >&6
16562 else
16563   cat >conftest.$ac_ext <<_ACEOF
16564 /* confdefs.h.  */
16565 _ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h.  */
16569 $ac_includes_default
16570 typedef uint64_t ac__type_new_;
16571 int
16572 main ()
16573 {
16574 if ((ac__type_new_ *) 0)
16575   return 0;
16576 if (sizeof (ac__type_new_))
16577   return 0;
16578   ;
16579   return 0;
16580 }
16581 _ACEOF
16582 rm -f conftest.$ac_objext
16583 if { (ac_try="$ac_compile"
16584 case "(($ac_try" in
16585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586   *) ac_try_echo=$ac_try;;
16587 esac
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589   (eval "$ac_compile") 2>conftest.er1
16590   ac_status=$?
16591   grep -v '^ *+' conftest.er1 >conftest.err
16592   rm -f conftest.er1
16593   cat conftest.err >&5
16594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595   (exit $ac_status); } &&
16596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16597   { (case "(($ac_try" in
16598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16599   *) ac_try_echo=$ac_try;;
16600 esac
16601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16602   (eval "$ac_try") 2>&5
16603   ac_status=$?
16604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605   (exit $ac_status); }; } &&
16606          { ac_try='test -s conftest.$ac_objext'
16607   { (case "(($ac_try" in
16608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609   *) ac_try_echo=$ac_try;;
16610 esac
16611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612   (eval "$ac_try") 2>&5
16613   ac_status=$?
16614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615   (exit $ac_status); }; }; then
16616   ac_cv_type_uint64_t=yes
16617 else
16618   echo "$as_me: failed program was:" >&5
16619 sed 's/^/| /' conftest.$ac_ext >&5
16620
16621         ac_cv_type_uint64_t=no
16622 fi
16623
16624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16625 fi
16626 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16627 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16628 if test $ac_cv_type_uint64_t = yes; then
16629
16630 cat >>confdefs.h <<_ACEOF
16631 #define HAVE_UINT64_T 1
16632 _ACEOF
16633
16634
16635 else
16636   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16637 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16638 if test "${ac_cv_type_u_int64_t+set}" = set; then
16639   echo $ECHO_N "(cached) $ECHO_C" >&6
16640 else
16641   cat >conftest.$ac_ext <<_ACEOF
16642 /* confdefs.h.  */
16643 _ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h.  */
16647 $ac_includes_default
16648 typedef u_int64_t ac__type_new_;
16649 int
16650 main ()
16651 {
16652 if ((ac__type_new_ *) 0)
16653   return 0;
16654 if (sizeof (ac__type_new_))
16655   return 0;
16656   ;
16657   return 0;
16658 }
16659 _ACEOF
16660 rm -f conftest.$ac_objext
16661 if { (ac_try="$ac_compile"
16662 case "(($ac_try" in
16663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16664   *) ac_try_echo=$ac_try;;
16665 esac
16666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16667   (eval "$ac_compile") 2>conftest.er1
16668   ac_status=$?
16669   grep -v '^ *+' conftest.er1 >conftest.err
16670   rm -f conftest.er1
16671   cat conftest.err >&5
16672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673   (exit $ac_status); } &&
16674          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16675   { (case "(($ac_try" in
16676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677   *) ac_try_echo=$ac_try;;
16678 esac
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680   (eval "$ac_try") 2>&5
16681   ac_status=$?
16682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683   (exit $ac_status); }; } &&
16684          { ac_try='test -s conftest.$ac_objext'
16685   { (case "(($ac_try" in
16686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16687   *) ac_try_echo=$ac_try;;
16688 esac
16689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16690   (eval "$ac_try") 2>&5
16691   ac_status=$?
16692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693   (exit $ac_status); }; }; then
16694   ac_cv_type_u_int64_t=yes
16695 else
16696   echo "$as_me: failed program was:" >&5
16697 sed 's/^/| /' conftest.$ac_ext >&5
16698
16699         ac_cv_type_u_int64_t=no
16700 fi
16701
16702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16703 fi
16704 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16705 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16706 if test $ac_cv_type_u_int64_t = yes; then
16707
16708 cat >>confdefs.h <<_ACEOF
16709 #define HAVE_U_INT64_T 1
16710 _ACEOF
16711
16712
16713 else
16714   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16715 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16716    { (exit 1); exit 1; }; }
16717 fi
16718
16719 fi
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16731 do
16732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16733 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16735 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16736   echo $ECHO_N "(cached) $ECHO_C" >&6
16737 else
16738   cat >conftest.$ac_ext <<_ACEOF
16739 /* confdefs.h.  */
16740 _ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h.  */
16744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16745    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16746 #define $ac_func innocuous_$ac_func
16747
16748 /* System header to define __stub macros and hopefully few prototypes,
16749     which can conflict with char $ac_func (); below.
16750     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16751     <limits.h> exists even on freestanding compilers.  */
16752
16753 #ifdef __STDC__
16754 # include <limits.h>
16755 #else
16756 # include <assert.h>
16757 #endif
16758
16759 #undef $ac_func
16760
16761 /* Override any GCC internal prototype to avoid an error.
16762    Use char because int might match the return type of a GCC
16763    builtin and then its argument prototype would still apply.  */
16764 #ifdef __cplusplus
16765 extern "C"
16766 #endif
16767 char $ac_func ();
16768 /* The GNU C library defines this for functions which it implements
16769     to always fail with ENOSYS.  Some functions are actually named
16770     something starting with __ and the normal name is an alias.  */
16771 #if defined __stub_$ac_func || defined __stub___$ac_func
16772 choke me
16773 #endif
16774
16775 int
16776 main ()
16777 {
16778 return $ac_func ();
16779   ;
16780   return 0;
16781 }
16782 _ACEOF
16783 rm -f conftest.$ac_objext conftest$ac_exeext
16784 if { (ac_try="$ac_link"
16785 case "(($ac_try" in
16786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787   *) ac_try_echo=$ac_try;;
16788 esac
16789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16790   (eval "$ac_link") 2>conftest.er1
16791   ac_status=$?
16792   grep -v '^ *+' conftest.er1 >conftest.err
16793   rm -f conftest.er1
16794   cat conftest.err >&5
16795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796   (exit $ac_status); } &&
16797          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16798   { (case "(($ac_try" in
16799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800   *) ac_try_echo=$ac_try;;
16801 esac
16802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803   (eval "$ac_try") 2>&5
16804   ac_status=$?
16805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806   (exit $ac_status); }; } &&
16807          { ac_try='test -s conftest$ac_exeext'
16808   { (case "(($ac_try" in
16809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810   *) ac_try_echo=$ac_try;;
16811 esac
16812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16813   (eval "$ac_try") 2>&5
16814   ac_status=$?
16815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816   (exit $ac_status); }; }; then
16817   eval "$as_ac_var=yes"
16818 else
16819   echo "$as_me: failed program was:" >&5
16820 sed 's/^/| /' conftest.$ac_ext >&5
16821
16822         eval "$as_ac_var=no"
16823 fi
16824
16825 rm -f core conftest.err conftest.$ac_objext \
16826       conftest$ac_exeext conftest.$ac_ext
16827 fi
16828 ac_res=`eval echo '${'$as_ac_var'}'`
16829                { echo "$as_me:$LINENO: result: $ac_res" >&5
16830 echo "${ECHO_T}$ac_res" >&6; }
16831 if test `eval echo '${'$as_ac_var'}'` = yes; then
16832   cat >>confdefs.h <<_ACEOF
16833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16834 _ACEOF
16835
16836 fi
16837 done
16838
16839
16840
16841
16842
16843 for ac_func in powf fmodf strtof round
16844 do
16845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16846 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16848 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16849   echo $ECHO_N "(cached) $ECHO_C" >&6
16850 else
16851   cat >conftest.$ac_ext <<_ACEOF
16852 /* confdefs.h.  */
16853 _ACEOF
16854 cat confdefs.h >>conftest.$ac_ext
16855 cat >>conftest.$ac_ext <<_ACEOF
16856 /* end confdefs.h.  */
16857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16858    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16859 #define $ac_func innocuous_$ac_func
16860
16861 /* System header to define __stub macros and hopefully few prototypes,
16862     which can conflict with char $ac_func (); below.
16863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16864     <limits.h> exists even on freestanding compilers.  */
16865
16866 #ifdef __STDC__
16867 # include <limits.h>
16868 #else
16869 # include <assert.h>
16870 #endif
16871
16872 #undef $ac_func
16873
16874 /* Override any GCC internal prototype to avoid an error.
16875    Use char because int might match the return type of a GCC
16876    builtin and then its argument prototype would still apply.  */
16877 #ifdef __cplusplus
16878 extern "C"
16879 #endif
16880 char $ac_func ();
16881 /* The GNU C library defines this for functions which it implements
16882     to always fail with ENOSYS.  Some functions are actually named
16883     something starting with __ and the normal name is an alias.  */
16884 #if defined __stub_$ac_func || defined __stub___$ac_func
16885 choke me
16886 #endif
16887
16888 int
16889 main ()
16890 {
16891 return $ac_func ();
16892   ;
16893   return 0;
16894 }
16895 _ACEOF
16896 rm -f conftest.$ac_objext conftest$ac_exeext
16897 if { (ac_try="$ac_link"
16898 case "(($ac_try" in
16899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900   *) ac_try_echo=$ac_try;;
16901 esac
16902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903   (eval "$ac_link") 2>conftest.er1
16904   ac_status=$?
16905   grep -v '^ *+' conftest.er1 >conftest.err
16906   rm -f conftest.er1
16907   cat conftest.err >&5
16908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909   (exit $ac_status); } &&
16910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16911   { (case "(($ac_try" in
16912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913   *) ac_try_echo=$ac_try;;
16914 esac
16915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16916   (eval "$ac_try") 2>&5
16917   ac_status=$?
16918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919   (exit $ac_status); }; } &&
16920          { ac_try='test -s conftest$ac_exeext'
16921   { (case "(($ac_try" in
16922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923   *) ac_try_echo=$ac_try;;
16924 esac
16925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926   (eval "$ac_try") 2>&5
16927   ac_status=$?
16928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929   (exit $ac_status); }; }; then
16930   eval "$as_ac_var=yes"
16931 else
16932   echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16934
16935         eval "$as_ac_var=no"
16936 fi
16937
16938 rm -f core conftest.err conftest.$ac_objext \
16939       conftest$ac_exeext conftest.$ac_ext
16940 fi
16941 ac_res=`eval echo '${'$as_ac_var'}'`
16942                { echo "$as_me:$LINENO: result: $ac_res" >&5
16943 echo "${ECHO_T}$ac_res" >&6; }
16944 if test `eval echo '${'$as_ac_var'}'` = yes; then
16945   cat >>confdefs.h <<_ACEOF
16946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16947 _ACEOF
16948
16949 fi
16950 done
16951
16952
16953
16954
16955
16956
16957 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16958 do
16959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16963   echo $ECHO_N "(cached) $ECHO_C" >&6
16964 else
16965   cat >conftest.$ac_ext <<_ACEOF
16966 /* confdefs.h.  */
16967 _ACEOF
16968 cat confdefs.h >>conftest.$ac_ext
16969 cat >>conftest.$ac_ext <<_ACEOF
16970 /* end confdefs.h.  */
16971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16973 #define $ac_func innocuous_$ac_func
16974
16975 /* System header to define __stub macros and hopefully few prototypes,
16976     which can conflict with char $ac_func (); below.
16977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16978     <limits.h> exists even on freestanding compilers.  */
16979
16980 #ifdef __STDC__
16981 # include <limits.h>
16982 #else
16983 # include <assert.h>
16984 #endif
16985
16986 #undef $ac_func
16987
16988 /* Override any GCC internal prototype to avoid an error.
16989    Use char because int might match the return type of a GCC
16990    builtin and then its argument prototype would still apply.  */
16991 #ifdef __cplusplus
16992 extern "C"
16993 #endif
16994 char $ac_func ();
16995 /* The GNU C library defines this for functions which it implements
16996     to always fail with ENOSYS.  Some functions are actually named
16997     something starting with __ and the normal name is an alias.  */
16998 #if defined __stub_$ac_func || defined __stub___$ac_func
16999 choke me
17000 #endif
17001
17002 int
17003 main ()
17004 {
17005 return $ac_func ();
17006   ;
17007   return 0;
17008 }
17009 _ACEOF
17010 rm -f conftest.$ac_objext conftest$ac_exeext
17011 if { (ac_try="$ac_link"
17012 case "(($ac_try" in
17013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014   *) ac_try_echo=$ac_try;;
17015 esac
17016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017   (eval "$ac_link") 2>conftest.er1
17018   ac_status=$?
17019   grep -v '^ *+' conftest.er1 >conftest.err
17020   rm -f conftest.er1
17021   cat conftest.err >&5
17022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023   (exit $ac_status); } &&
17024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17025   { (case "(($ac_try" in
17026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17027   *) ac_try_echo=$ac_try;;
17028 esac
17029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030   (eval "$ac_try") 2>&5
17031   ac_status=$?
17032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033   (exit $ac_status); }; } &&
17034          { ac_try='test -s conftest$ac_exeext'
17035   { (case "(($ac_try" in
17036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037   *) ac_try_echo=$ac_try;;
17038 esac
17039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040   (eval "$ac_try") 2>&5
17041   ac_status=$?
17042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043   (exit $ac_status); }; }; then
17044   eval "$as_ac_var=yes"
17045 else
17046   echo "$as_me: failed program was:" >&5
17047 sed 's/^/| /' conftest.$ac_ext >&5
17048
17049         eval "$as_ac_var=no"
17050 fi
17051
17052 rm -f core conftest.err conftest.$ac_objext \
17053       conftest$ac_exeext conftest.$ac_ext
17054 fi
17055 ac_res=`eval echo '${'$as_ac_var'}'`
17056                { echo "$as_me:$LINENO: result: $ac_res" >&5
17057 echo "${ECHO_T}$ac_res" >&6; }
17058 if test `eval echo '${'$as_ac_var'}'` = yes; then
17059   cat >>confdefs.h <<_ACEOF
17060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17061 _ACEOF
17062
17063 fi
17064 done
17065
17066
17067
17068
17069 for ac_func in isatty mkdtemp mkstemp
17070 do
17071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17075   echo $ECHO_N "(cached) $ECHO_C" >&6
17076 else
17077   cat >conftest.$ac_ext <<_ACEOF
17078 /* confdefs.h.  */
17079 _ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h.  */
17083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17085 #define $ac_func innocuous_$ac_func
17086
17087 /* System header to define __stub macros and hopefully few prototypes,
17088     which can conflict with char $ac_func (); below.
17089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17090     <limits.h> exists even on freestanding compilers.  */
17091
17092 #ifdef __STDC__
17093 # include <limits.h>
17094 #else
17095 # include <assert.h>
17096 #endif
17097
17098 #undef $ac_func
17099
17100 /* Override any GCC internal prototype to avoid an error.
17101    Use char because int might match the return type of a GCC
17102    builtin and then its argument prototype would still apply.  */
17103 #ifdef __cplusplus
17104 extern "C"
17105 #endif
17106 char $ac_func ();
17107 /* The GNU C library defines this for functions which it implements
17108     to always fail with ENOSYS.  Some functions are actually named
17109     something starting with __ and the normal name is an alias.  */
17110 #if defined __stub_$ac_func || defined __stub___$ac_func
17111 choke me
17112 #endif
17113
17114 int
17115 main ()
17116 {
17117 return $ac_func ();
17118   ;
17119   return 0;
17120 }
17121 _ACEOF
17122 rm -f conftest.$ac_objext conftest$ac_exeext
17123 if { (ac_try="$ac_link"
17124 case "(($ac_try" in
17125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126   *) ac_try_echo=$ac_try;;
17127 esac
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129   (eval "$ac_link") 2>conftest.er1
17130   ac_status=$?
17131   grep -v '^ *+' conftest.er1 >conftest.err
17132   rm -f conftest.er1
17133   cat conftest.err >&5
17134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135   (exit $ac_status); } &&
17136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17137   { (case "(($ac_try" in
17138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139   *) ac_try_echo=$ac_try;;
17140 esac
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142   (eval "$ac_try") 2>&5
17143   ac_status=$?
17144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145   (exit $ac_status); }; } &&
17146          { ac_try='test -s conftest$ac_exeext'
17147   { (case "(($ac_try" in
17148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149   *) ac_try_echo=$ac_try;;
17150 esac
17151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17152   (eval "$ac_try") 2>&5
17153   ac_status=$?
17154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); }; }; then
17156   eval "$as_ac_var=yes"
17157 else
17158   echo "$as_me: failed program was:" >&5
17159 sed 's/^/| /' conftest.$ac_ext >&5
17160
17161         eval "$as_ac_var=no"
17162 fi
17163
17164 rm -f core conftest.err conftest.$ac_objext \
17165       conftest$ac_exeext conftest.$ac_ext
17166 fi
17167 ac_res=`eval echo '${'$as_ac_var'}'`
17168                { echo "$as_me:$LINENO: result: $ac_res" >&5
17169 echo "${ECHO_T}$ac_res" >&6; }
17170 if test `eval echo '${'$as_ac_var'}'` = yes; then
17171   cat >>confdefs.h <<_ACEOF
17172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17173 _ACEOF
17174
17175 fi
17176 done
17177
17178
17179
17180
17181
17182
17183
17184
17185 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17186 do
17187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17191   echo $ECHO_N "(cached) $ECHO_C" >&6
17192 else
17193   cat >conftest.$ac_ext <<_ACEOF
17194 /* confdefs.h.  */
17195 _ACEOF
17196 cat confdefs.h >>conftest.$ac_ext
17197 cat >>conftest.$ac_ext <<_ACEOF
17198 /* end confdefs.h.  */
17199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17201 #define $ac_func innocuous_$ac_func
17202
17203 /* System header to define __stub macros and hopefully few prototypes,
17204     which can conflict with char $ac_func (); below.
17205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17206     <limits.h> exists even on freestanding compilers.  */
17207
17208 #ifdef __STDC__
17209 # include <limits.h>
17210 #else
17211 # include <assert.h>
17212 #endif
17213
17214 #undef $ac_func
17215
17216 /* Override any GCC internal prototype to avoid an error.
17217    Use char because int might match the return type of a GCC
17218    builtin and then its argument prototype would still apply.  */
17219 #ifdef __cplusplus
17220 extern "C"
17221 #endif
17222 char $ac_func ();
17223 /* The GNU C library defines this for functions which it implements
17224     to always fail with ENOSYS.  Some functions are actually named
17225     something starting with __ and the normal name is an alias.  */
17226 #if defined __stub_$ac_func || defined __stub___$ac_func
17227 choke me
17228 #endif
17229
17230 int
17231 main ()
17232 {
17233 return $ac_func ();
17234   ;
17235   return 0;
17236 }
17237 _ACEOF
17238 rm -f conftest.$ac_objext conftest$ac_exeext
17239 if { (ac_try="$ac_link"
17240 case "(($ac_try" in
17241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17242   *) ac_try_echo=$ac_try;;
17243 esac
17244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17245   (eval "$ac_link") 2>conftest.er1
17246   ac_status=$?
17247   grep -v '^ *+' conftest.er1 >conftest.err
17248   rm -f conftest.er1
17249   cat conftest.err >&5
17250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); } &&
17252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17253   { (case "(($ac_try" in
17254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255   *) ac_try_echo=$ac_try;;
17256 esac
17257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258   (eval "$ac_try") 2>&5
17259   ac_status=$?
17260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261   (exit $ac_status); }; } &&
17262          { ac_try='test -s conftest$ac_exeext'
17263   { (case "(($ac_try" in
17264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265   *) ac_try_echo=$ac_try;;
17266 esac
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268   (eval "$ac_try") 2>&5
17269   ac_status=$?
17270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271   (exit $ac_status); }; }; then
17272   eval "$as_ac_var=yes"
17273 else
17274   echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17276
17277         eval "$as_ac_var=no"
17278 fi
17279
17280 rm -f core conftest.err conftest.$ac_objext \
17281       conftest$ac_exeext conftest.$ac_ext
17282 fi
17283 ac_res=`eval echo '${'$as_ac_var'}'`
17284                { echo "$as_me:$LINENO: result: $ac_res" >&5
17285 echo "${ECHO_T}$ac_res" >&6; }
17286 if test `eval echo '${'$as_ac_var'}'` = yes; then
17287   cat >>confdefs.h <<_ACEOF
17288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17289 _ACEOF
17290
17291 fi
17292 done
17293
17294
17295
17296
17297
17298 for ac_func in strerror strerror_r setenv arc4random
17299 do
17300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17304   echo $ECHO_N "(cached) $ECHO_C" >&6
17305 else
17306   cat >conftest.$ac_ext <<_ACEOF
17307 /* confdefs.h.  */
17308 _ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h.  */
17312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17314 #define $ac_func innocuous_$ac_func
17315
17316 /* System header to define __stub macros and hopefully few prototypes,
17317     which can conflict with char $ac_func (); below.
17318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17319     <limits.h> exists even on freestanding compilers.  */
17320
17321 #ifdef __STDC__
17322 # include <limits.h>
17323 #else
17324 # include <assert.h>
17325 #endif
17326
17327 #undef $ac_func
17328
17329 /* Override any GCC internal prototype to avoid an error.
17330    Use char because int might match the return type of a GCC
17331    builtin and then its argument prototype would still apply.  */
17332 #ifdef __cplusplus
17333 extern "C"
17334 #endif
17335 char $ac_func ();
17336 /* The GNU C library defines this for functions which it implements
17337     to always fail with ENOSYS.  Some functions are actually named
17338     something starting with __ and the normal name is an alias.  */
17339 #if defined __stub_$ac_func || defined __stub___$ac_func
17340 choke me
17341 #endif
17342
17343 int
17344 main ()
17345 {
17346 return $ac_func ();
17347   ;
17348   return 0;
17349 }
17350 _ACEOF
17351 rm -f conftest.$ac_objext conftest$ac_exeext
17352 if { (ac_try="$ac_link"
17353 case "(($ac_try" in
17354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355   *) ac_try_echo=$ac_try;;
17356 esac
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358   (eval "$ac_link") 2>conftest.er1
17359   ac_status=$?
17360   grep -v '^ *+' conftest.er1 >conftest.err
17361   rm -f conftest.er1
17362   cat conftest.err >&5
17363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364   (exit $ac_status); } &&
17365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17366   { (case "(($ac_try" in
17367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368   *) ac_try_echo=$ac_try;;
17369 esac
17370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371   (eval "$ac_try") 2>&5
17372   ac_status=$?
17373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374   (exit $ac_status); }; } &&
17375          { ac_try='test -s conftest$ac_exeext'
17376   { (case "(($ac_try" in
17377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17378   *) ac_try_echo=$ac_try;;
17379 esac
17380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17381   (eval "$ac_try") 2>&5
17382   ac_status=$?
17383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384   (exit $ac_status); }; }; then
17385   eval "$as_ac_var=yes"
17386 else
17387   echo "$as_me: failed program was:" >&5
17388 sed 's/^/| /' conftest.$ac_ext >&5
17389
17390         eval "$as_ac_var=no"
17391 fi
17392
17393 rm -f core conftest.err conftest.$ac_objext \
17394       conftest$ac_exeext conftest.$ac_ext
17395 fi
17396 ac_res=`eval echo '${'$as_ac_var'}'`
17397                { echo "$as_me:$LINENO: result: $ac_res" >&5
17398 echo "${ECHO_T}$ac_res" >&6; }
17399 if test `eval echo '${'$as_ac_var'}'` = yes; then
17400   cat >>confdefs.h <<_ACEOF
17401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17402 _ACEOF
17403
17404 fi
17405 done
17406
17407
17408
17409
17410
17411 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17412 do
17413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17414 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17417   echo $ECHO_N "(cached) $ECHO_C" >&6
17418 else
17419   cat >conftest.$ac_ext <<_ACEOF
17420 /* confdefs.h.  */
17421 _ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h.  */
17425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17427 #define $ac_func innocuous_$ac_func
17428
17429 /* System header to define __stub macros and hopefully few prototypes,
17430     which can conflict with char $ac_func (); below.
17431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17432     <limits.h> exists even on freestanding compilers.  */
17433
17434 #ifdef __STDC__
17435 # include <limits.h>
17436 #else
17437 # include <assert.h>
17438 #endif
17439
17440 #undef $ac_func
17441
17442 /* Override any GCC internal prototype to avoid an error.
17443    Use char because int might match the return type of a GCC
17444    builtin and then its argument prototype would still apply.  */
17445 #ifdef __cplusplus
17446 extern "C"
17447 #endif
17448 char $ac_func ();
17449 /* The GNU C library defines this for functions which it implements
17450     to always fail with ENOSYS.  Some functions are actually named
17451     something starting with __ and the normal name is an alias.  */
17452 #if defined __stub_$ac_func || defined __stub___$ac_func
17453 choke me
17454 #endif
17455
17456 int
17457 main ()
17458 {
17459 return $ac_func ();
17460   ;
17461   return 0;
17462 }
17463 _ACEOF
17464 rm -f conftest.$ac_objext conftest$ac_exeext
17465 if { (ac_try="$ac_link"
17466 case "(($ac_try" in
17467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468   *) ac_try_echo=$ac_try;;
17469 esac
17470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17471   (eval "$ac_link") 2>conftest.er1
17472   ac_status=$?
17473   grep -v '^ *+' conftest.er1 >conftest.err
17474   rm -f conftest.er1
17475   cat conftest.err >&5
17476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477   (exit $ac_status); } &&
17478          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17479   { (case "(($ac_try" in
17480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17481   *) ac_try_echo=$ac_try;;
17482 esac
17483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17484   (eval "$ac_try") 2>&5
17485   ac_status=$?
17486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487   (exit $ac_status); }; } &&
17488          { ac_try='test -s conftest$ac_exeext'
17489   { (case "(($ac_try" in
17490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491   *) ac_try_echo=$ac_try;;
17492 esac
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494   (eval "$ac_try") 2>&5
17495   ac_status=$?
17496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497   (exit $ac_status); }; }; then
17498   eval "$as_ac_var=yes"
17499 else
17500   echo "$as_me: failed program was:" >&5
17501 sed 's/^/| /' conftest.$ac_ext >&5
17502
17503         eval "$as_ac_var=no"
17504 fi
17505
17506 rm -f core conftest.err conftest.$ac_objext \
17507       conftest$ac_exeext conftest.$ac_ext
17508 fi
17509 ac_res=`eval echo '${'$as_ac_var'}'`
17510                { echo "$as_me:$LINENO: result: $ac_res" >&5
17511 echo "${ECHO_T}$ac_res" >&6; }
17512 if test `eval echo '${'$as_ac_var'}'` = yes; then
17513   cat >>confdefs.h <<_ACEOF
17514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17515 _ACEOF
17516
17517 fi
17518 done
17519
17520
17521
17522
17523
17524
17525 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17526 do
17527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17528 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17531   echo $ECHO_N "(cached) $ECHO_C" >&6
17532 else
17533   cat >conftest.$ac_ext <<_ACEOF
17534 /* confdefs.h.  */
17535 _ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h.  */
17539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17541 #define $ac_func innocuous_$ac_func
17542
17543 /* System header to define __stub macros and hopefully few prototypes,
17544     which can conflict with char $ac_func (); below.
17545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17546     <limits.h> exists even on freestanding compilers.  */
17547
17548 #ifdef __STDC__
17549 # include <limits.h>
17550 #else
17551 # include <assert.h>
17552 #endif
17553
17554 #undef $ac_func
17555
17556 /* Override any GCC internal prototype to avoid an error.
17557    Use char because int might match the return type of a GCC
17558    builtin and then its argument prototype would still apply.  */
17559 #ifdef __cplusplus
17560 extern "C"
17561 #endif
17562 char $ac_func ();
17563 /* The GNU C library defines this for functions which it implements
17564     to always fail with ENOSYS.  Some functions are actually named
17565     something starting with __ and the normal name is an alias.  */
17566 #if defined __stub_$ac_func || defined __stub___$ac_func
17567 choke me
17568 #endif
17569
17570 int
17571 main ()
17572 {
17573 return $ac_func ();
17574   ;
17575   return 0;
17576 }
17577 _ACEOF
17578 rm -f conftest.$ac_objext conftest$ac_exeext
17579 if { (ac_try="$ac_link"
17580 case "(($ac_try" in
17581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17582   *) ac_try_echo=$ac_try;;
17583 esac
17584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17585   (eval "$ac_link") 2>conftest.er1
17586   ac_status=$?
17587   grep -v '^ *+' conftest.er1 >conftest.err
17588   rm -f conftest.er1
17589   cat conftest.err >&5
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); } &&
17592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17593   { (case "(($ac_try" in
17594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595   *) ac_try_echo=$ac_try;;
17596 esac
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598   (eval "$ac_try") 2>&5
17599   ac_status=$?
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); }; } &&
17602          { ac_try='test -s conftest$ac_exeext'
17603   { (case "(($ac_try" in
17604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605   *) ac_try_echo=$ac_try;;
17606 esac
17607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608   (eval "$ac_try") 2>&5
17609   ac_status=$?
17610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611   (exit $ac_status); }; }; then
17612   eval "$as_ac_var=yes"
17613 else
17614   echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17616
17617         eval "$as_ac_var=no"
17618 fi
17619
17620 rm -f core conftest.err conftest.$ac_objext \
17621       conftest$ac_exeext conftest.$ac_ext
17622 fi
17623 ac_res=`eval echo '${'$as_ac_var'}'`
17624                { echo "$as_me:$LINENO: result: $ac_res" >&5
17625 echo "${ECHO_T}$ac_res" >&6; }
17626 if test `eval echo '${'$as_ac_var'}'` = yes; then
17627   cat >>confdefs.h <<_ACEOF
17628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17629 _ACEOF
17630
17631 fi
17632 done
17633
17634 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17635 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17636 if test "${llvm_cv_c_printf_a+set}" = set; then
17637   echo $ECHO_N "(cached) $ECHO_C" >&6
17638 else
17639   ac_ext=c
17640 ac_cpp='$CPP $CPPFLAGS'
17641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17644
17645  if test "$cross_compiling" = yes; then
17646   llvmac_cv_c_printf_a=no
17647 else
17648   cat >conftest.$ac_ext <<_ACEOF
17649
17650   /* confdefs.h.  */
17651 _ACEOF
17652 cat confdefs.h >>conftest.$ac_ext
17653 cat >>conftest.$ac_ext <<_ACEOF
17654 /* end confdefs.h.  */
17655
17656 #include <stdio.h>
17657 #include <stdlib.h>
17658
17659 int
17660 main ()
17661 {
17662
17663 volatile double A, B;
17664 char Buffer[100];
17665 A = 1;
17666 A /= 10.0;
17667 sprintf(Buffer, "%a", A);
17668 B = atof(Buffer);
17669 if (A != B)
17670   return (1);
17671 if (A != 0x1.999999999999ap-4)
17672   return (1);
17673 return (0);
17674   ;
17675   return 0;
17676 }
17677 _ACEOF
17678 rm -f conftest$ac_exeext
17679 if { (ac_try="$ac_link"
17680 case "(($ac_try" in
17681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17682   *) ac_try_echo=$ac_try;;
17683 esac
17684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17685   (eval "$ac_link") 2>&5
17686   ac_status=$?
17687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17689   { (case "(($ac_try" in
17690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17691   *) ac_try_echo=$ac_try;;
17692 esac
17693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17694   (eval "$ac_try") 2>&5
17695   ac_status=$?
17696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697   (exit $ac_status); }; }; then
17698   llvm_cv_c_printf_a=yes
17699 else
17700   echo "$as_me: program exited with status $ac_status" >&5
17701 echo "$as_me: failed program was:" >&5
17702 sed 's/^/| /' conftest.$ac_ext >&5
17703
17704 ( exit $ac_status )
17705 llvmac_cv_c_printf_a=no
17706 fi
17707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17708 fi
17709
17710
17711  ac_ext=c
17712 ac_cpp='$CPP $CPPFLAGS'
17713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17716
17717 fi
17718 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17719 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17720  if test "$llvm_cv_c_printf_a" = "yes"; then
17721
17722 cat >>confdefs.h <<\_ACEOF
17723 #define HAVE_PRINTF_A 1
17724 _ACEOF
17725
17726  fi
17727
17728
17729 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17730 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17731 if test "${ac_cv_func_rand48+set}" = set; then
17732   echo $ECHO_N "(cached) $ECHO_C" >&6
17733 else
17734   ac_ext=cpp
17735 ac_cpp='$CXXCPP $CPPFLAGS'
17736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17739
17740    cat >conftest.$ac_ext <<_ACEOF
17741 /* confdefs.h.  */
17742 _ACEOF
17743 cat confdefs.h >>conftest.$ac_ext
17744 cat >>conftest.$ac_ext <<_ACEOF
17745 /* end confdefs.h.  */
17746 #include <stdlib.h>
17747 int
17748 main ()
17749 {
17750 srand48(0);lrand48();drand48();
17751   ;
17752   return 0;
17753 }
17754 _ACEOF
17755 rm -f conftest.$ac_objext
17756 if { (ac_try="$ac_compile"
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_compile") 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_cxx_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_objext'
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   ac_cv_func_rand48=yes
17790 else
17791   echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17793
17794         ac_cv_func_rand48=no
17795 fi
17796
17797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17798   ac_ext=c
17799 ac_cpp='$CPP $CPPFLAGS'
17800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17803
17804 fi
17805 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17806 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17807
17808 if test "$ac_cv_func_rand48" = "yes" ; then
17809
17810 cat >>confdefs.h <<\_ACEOF
17811 #define HAVE_RAND48 1
17812 _ACEOF
17813
17814 fi
17815
17816
17817 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17818 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17819 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17820   echo $ECHO_N "(cached) $ECHO_C" >&6
17821 else
17822   cat >conftest.$ac_ext <<_ACEOF
17823 /* confdefs.h.  */
17824 _ACEOF
17825 cat confdefs.h >>conftest.$ac_ext
17826 cat >>conftest.$ac_ext <<_ACEOF
17827 /* end confdefs.h.  */
17828 $ac_includes_default
17829 int
17830 main ()
17831 {
17832 #ifndef strerror_s
17833   char *p = (char *) strerror_s;
17834   return !p;
17835 #endif
17836
17837   ;
17838   return 0;
17839 }
17840 _ACEOF
17841 rm -f conftest.$ac_objext
17842 if { (ac_try="$ac_compile"
17843 case "(($ac_try" in
17844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845   *) ac_try_echo=$ac_try;;
17846 esac
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848   (eval "$ac_compile") 2>conftest.er1
17849   ac_status=$?
17850   grep -v '^ *+' conftest.er1 >conftest.err
17851   rm -f conftest.er1
17852   cat conftest.err >&5
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); } &&
17855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17856   { (case "(($ac_try" in
17857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858   *) ac_try_echo=$ac_try;;
17859 esac
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861   (eval "$ac_try") 2>&5
17862   ac_status=$?
17863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864   (exit $ac_status); }; } &&
17865          { ac_try='test -s conftest.$ac_objext'
17866   { (case "(($ac_try" in
17867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868   *) ac_try_echo=$ac_try;;
17869 esac
17870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871   (eval "$ac_try") 2>&5
17872   ac_status=$?
17873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874   (exit $ac_status); }; }; then
17875   ac_cv_have_decl_strerror_s=yes
17876 else
17877   echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17879
17880         ac_cv_have_decl_strerror_s=no
17881 fi
17882
17883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17884 fi
17885 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17886 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17887 if test $ac_cv_have_decl_strerror_s = yes; then
17888
17889 cat >>confdefs.h <<_ACEOF
17890 #define HAVE_DECL_STRERROR_S 1
17891 _ACEOF
17892
17893
17894 else
17895   cat >>confdefs.h <<_ACEOF
17896 #define HAVE_DECL_STRERROR_S 0
17897 _ACEOF
17898
17899
17900 fi
17901
17902
17903
17904 if test "$llvm_cv_os_type" = "MingW" ; then
17905   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17906 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17907 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17908   echo $ECHO_N "(cached) $ECHO_C" >&6
17909 else
17910   ac_check_lib_save_LIBS=$LIBS
17911 LIBS="-lgcc  $LIBS"
17912 cat >conftest.$ac_ext <<_ACEOF
17913 /* confdefs.h.  */
17914 _ACEOF
17915 cat confdefs.h >>conftest.$ac_ext
17916 cat >>conftest.$ac_ext <<_ACEOF
17917 /* end confdefs.h.  */
17918
17919 /* Override any GCC internal prototype to avoid an error.
17920    Use char because int might match the return type of a GCC
17921    builtin and then its argument prototype would still apply.  */
17922 #ifdef __cplusplus
17923 extern "C"
17924 #endif
17925 char _alloca ();
17926 int
17927 main ()
17928 {
17929 return _alloca ();
17930   ;
17931   return 0;
17932 }
17933 _ACEOF
17934 rm -f conftest.$ac_objext conftest$ac_exeext
17935 if { (ac_try="$ac_link"
17936 case "(($ac_try" in
17937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938   *) ac_try_echo=$ac_try;;
17939 esac
17940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941   (eval "$ac_link") 2>conftest.er1
17942   ac_status=$?
17943   grep -v '^ *+' conftest.er1 >conftest.err
17944   rm -f conftest.er1
17945   cat conftest.err >&5
17946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947   (exit $ac_status); } &&
17948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17949   { (case "(($ac_try" in
17950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951   *) ac_try_echo=$ac_try;;
17952 esac
17953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17954   (eval "$ac_try") 2>&5
17955   ac_status=$?
17956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957   (exit $ac_status); }; } &&
17958          { ac_try='test -s conftest$ac_exeext'
17959   { (case "(($ac_try" in
17960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961   *) ac_try_echo=$ac_try;;
17962 esac
17963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17964   (eval "$ac_try") 2>&5
17965   ac_status=$?
17966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967   (exit $ac_status); }; }; then
17968   ac_cv_lib_gcc__alloca=yes
17969 else
17970   echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17972
17973         ac_cv_lib_gcc__alloca=no
17974 fi
17975
17976 rm -f core conftest.err conftest.$ac_objext \
17977       conftest$ac_exeext conftest.$ac_ext
17978 LIBS=$ac_check_lib_save_LIBS
17979 fi
17980 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17981 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17982 if test $ac_cv_lib_gcc__alloca = yes; then
17983
17984 cat >>confdefs.h <<\_ACEOF
17985 #define HAVE__ALLOCA 1
17986 _ACEOF
17987
17988 fi
17989
17990   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17991 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17992 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17993   echo $ECHO_N "(cached) $ECHO_C" >&6
17994 else
17995   ac_check_lib_save_LIBS=$LIBS
17996 LIBS="-lgcc  $LIBS"
17997 cat >conftest.$ac_ext <<_ACEOF
17998 /* confdefs.h.  */
17999 _ACEOF
18000 cat confdefs.h >>conftest.$ac_ext
18001 cat >>conftest.$ac_ext <<_ACEOF
18002 /* end confdefs.h.  */
18003
18004 /* Override any GCC internal prototype to avoid an error.
18005    Use char because int might match the return type of a GCC
18006    builtin and then its argument prototype would still apply.  */
18007 #ifdef __cplusplus
18008 extern "C"
18009 #endif
18010 char __alloca ();
18011 int
18012 main ()
18013 {
18014 return __alloca ();
18015   ;
18016   return 0;
18017 }
18018 _ACEOF
18019 rm -f conftest.$ac_objext conftest$ac_exeext
18020 if { (ac_try="$ac_link"
18021 case "(($ac_try" in
18022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023   *) ac_try_echo=$ac_try;;
18024 esac
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026   (eval "$ac_link") 2>conftest.er1
18027   ac_status=$?
18028   grep -v '^ *+' conftest.er1 >conftest.err
18029   rm -f conftest.er1
18030   cat conftest.err >&5
18031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032   (exit $ac_status); } &&
18033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18034   { (case "(($ac_try" in
18035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036   *) ac_try_echo=$ac_try;;
18037 esac
18038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039   (eval "$ac_try") 2>&5
18040   ac_status=$?
18041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042   (exit $ac_status); }; } &&
18043          { ac_try='test -s conftest$ac_exeext'
18044   { (case "(($ac_try" in
18045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18046   *) ac_try_echo=$ac_try;;
18047 esac
18048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18049   (eval "$ac_try") 2>&5
18050   ac_status=$?
18051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052   (exit $ac_status); }; }; then
18053   ac_cv_lib_gcc___alloca=yes
18054 else
18055   echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18057
18058         ac_cv_lib_gcc___alloca=no
18059 fi
18060
18061 rm -f core conftest.err conftest.$ac_objext \
18062       conftest$ac_exeext conftest.$ac_ext
18063 LIBS=$ac_check_lib_save_LIBS
18064 fi
18065 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18066 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18067 if test $ac_cv_lib_gcc___alloca = yes; then
18068
18069 cat >>confdefs.h <<\_ACEOF
18070 #define HAVE___ALLOCA 1
18071 _ACEOF
18072
18073 fi
18074
18075   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18076 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18077 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18078   echo $ECHO_N "(cached) $ECHO_C" >&6
18079 else
18080   ac_check_lib_save_LIBS=$LIBS
18081 LIBS="-lgcc  $LIBS"
18082 cat >conftest.$ac_ext <<_ACEOF
18083 /* confdefs.h.  */
18084 _ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h.  */
18088
18089 /* Override any GCC internal prototype to avoid an error.
18090    Use char because int might match the return type of a GCC
18091    builtin and then its argument prototype would still apply.  */
18092 #ifdef __cplusplus
18093 extern "C"
18094 #endif
18095 char __chkstk ();
18096 int
18097 main ()
18098 {
18099 return __chkstk ();
18100   ;
18101   return 0;
18102 }
18103 _ACEOF
18104 rm -f conftest.$ac_objext conftest$ac_exeext
18105 if { (ac_try="$ac_link"
18106 case "(($ac_try" in
18107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108   *) ac_try_echo=$ac_try;;
18109 esac
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111   (eval "$ac_link") 2>conftest.er1
18112   ac_status=$?
18113   grep -v '^ *+' conftest.er1 >conftest.err
18114   rm -f conftest.er1
18115   cat conftest.err >&5
18116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117   (exit $ac_status); } &&
18118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18119   { (case "(($ac_try" in
18120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121   *) ac_try_echo=$ac_try;;
18122 esac
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124   (eval "$ac_try") 2>&5
18125   ac_status=$?
18126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127   (exit $ac_status); }; } &&
18128          { ac_try='test -s conftest$ac_exeext'
18129   { (case "(($ac_try" in
18130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131   *) ac_try_echo=$ac_try;;
18132 esac
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134   (eval "$ac_try") 2>&5
18135   ac_status=$?
18136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137   (exit $ac_status); }; }; then
18138   ac_cv_lib_gcc___chkstk=yes
18139 else
18140   echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18142
18143         ac_cv_lib_gcc___chkstk=no
18144 fi
18145
18146 rm -f core conftest.err conftest.$ac_objext \
18147       conftest$ac_exeext conftest.$ac_ext
18148 LIBS=$ac_check_lib_save_LIBS
18149 fi
18150 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18151 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18152 if test $ac_cv_lib_gcc___chkstk = yes; then
18153
18154 cat >>confdefs.h <<\_ACEOF
18155 #define HAVE___CHKSTK 1
18156 _ACEOF
18157
18158 fi
18159
18160   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18161 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18162 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18163   echo $ECHO_N "(cached) $ECHO_C" >&6
18164 else
18165   ac_check_lib_save_LIBS=$LIBS
18166 LIBS="-lgcc  $LIBS"
18167 cat >conftest.$ac_ext <<_ACEOF
18168 /* confdefs.h.  */
18169 _ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h.  */
18173
18174 /* Override any GCC internal prototype to avoid an error.
18175    Use char because int might match the return type of a GCC
18176    builtin and then its argument prototype would still apply.  */
18177 #ifdef __cplusplus
18178 extern "C"
18179 #endif
18180 char ___chkstk ();
18181 int
18182 main ()
18183 {
18184 return ___chkstk ();
18185   ;
18186   return 0;
18187 }
18188 _ACEOF
18189 rm -f conftest.$ac_objext conftest$ac_exeext
18190 if { (ac_try="$ac_link"
18191 case "(($ac_try" in
18192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193   *) ac_try_echo=$ac_try;;
18194 esac
18195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196   (eval "$ac_link") 2>conftest.er1
18197   ac_status=$?
18198   grep -v '^ *+' conftest.er1 >conftest.err
18199   rm -f conftest.er1
18200   cat conftest.err >&5
18201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202   (exit $ac_status); } &&
18203          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18204   { (case "(($ac_try" in
18205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206   *) ac_try_echo=$ac_try;;
18207 esac
18208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18209   (eval "$ac_try") 2>&5
18210   ac_status=$?
18211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212   (exit $ac_status); }; } &&
18213          { ac_try='test -s conftest$ac_exeext'
18214   { (case "(($ac_try" in
18215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216   *) ac_try_echo=$ac_try;;
18217 esac
18218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219   (eval "$ac_try") 2>&5
18220   ac_status=$?
18221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222   (exit $ac_status); }; }; then
18223   ac_cv_lib_gcc____chkstk=yes
18224 else
18225   echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18227
18228         ac_cv_lib_gcc____chkstk=no
18229 fi
18230
18231 rm -f core conftest.err conftest.$ac_objext \
18232       conftest$ac_exeext conftest.$ac_ext
18233 LIBS=$ac_check_lib_save_LIBS
18234 fi
18235 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18236 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18237 if test $ac_cv_lib_gcc____chkstk = yes; then
18238
18239 cat >>confdefs.h <<\_ACEOF
18240 #define HAVE____CHKSTK 1
18241 _ACEOF
18242
18243 fi
18244
18245
18246   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18247 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18248 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18249   echo $ECHO_N "(cached) $ECHO_C" >&6
18250 else
18251   ac_check_lib_save_LIBS=$LIBS
18252 LIBS="-lgcc  $LIBS"
18253 cat >conftest.$ac_ext <<_ACEOF
18254 /* confdefs.h.  */
18255 _ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h.  */
18259
18260 /* Override any GCC internal prototype to avoid an error.
18261    Use char because int might match the return type of a GCC
18262    builtin and then its argument prototype would still apply.  */
18263 #ifdef __cplusplus
18264 extern "C"
18265 #endif
18266 char __ashldi3 ();
18267 int
18268 main ()
18269 {
18270 return __ashldi3 ();
18271   ;
18272   return 0;
18273 }
18274 _ACEOF
18275 rm -f conftest.$ac_objext conftest$ac_exeext
18276 if { (ac_try="$ac_link"
18277 case "(($ac_try" in
18278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279   *) ac_try_echo=$ac_try;;
18280 esac
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282   (eval "$ac_link") 2>conftest.er1
18283   ac_status=$?
18284   grep -v '^ *+' conftest.er1 >conftest.err
18285   rm -f conftest.er1
18286   cat conftest.err >&5
18287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288   (exit $ac_status); } &&
18289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18290   { (case "(($ac_try" in
18291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292   *) ac_try_echo=$ac_try;;
18293 esac
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295   (eval "$ac_try") 2>&5
18296   ac_status=$?
18297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); }; } &&
18299          { ac_try='test -s conftest$ac_exeext'
18300   { (case "(($ac_try" in
18301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302   *) ac_try_echo=$ac_try;;
18303 esac
18304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305   (eval "$ac_try") 2>&5
18306   ac_status=$?
18307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308   (exit $ac_status); }; }; then
18309   ac_cv_lib_gcc___ashldi3=yes
18310 else
18311   echo "$as_me: failed program was:" >&5
18312 sed 's/^/| /' conftest.$ac_ext >&5
18313
18314         ac_cv_lib_gcc___ashldi3=no
18315 fi
18316
18317 rm -f core conftest.err conftest.$ac_objext \
18318       conftest$ac_exeext conftest.$ac_ext
18319 LIBS=$ac_check_lib_save_LIBS
18320 fi
18321 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18322 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18323 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18324
18325 cat >>confdefs.h <<\_ACEOF
18326 #define HAVE___ASHLDI3 1
18327 _ACEOF
18328
18329 fi
18330
18331   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18332 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18333 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18334   echo $ECHO_N "(cached) $ECHO_C" >&6
18335 else
18336   ac_check_lib_save_LIBS=$LIBS
18337 LIBS="-lgcc  $LIBS"
18338 cat >conftest.$ac_ext <<_ACEOF
18339 /* confdefs.h.  */
18340 _ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h.  */
18344
18345 /* Override any GCC internal prototype to avoid an error.
18346    Use char because int might match the return type of a GCC
18347    builtin and then its argument prototype would still apply.  */
18348 #ifdef __cplusplus
18349 extern "C"
18350 #endif
18351 char __ashrdi3 ();
18352 int
18353 main ()
18354 {
18355 return __ashrdi3 ();
18356   ;
18357   return 0;
18358 }
18359 _ACEOF
18360 rm -f conftest.$ac_objext conftest$ac_exeext
18361 if { (ac_try="$ac_link"
18362 case "(($ac_try" in
18363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364   *) ac_try_echo=$ac_try;;
18365 esac
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367   (eval "$ac_link") 2>conftest.er1
18368   ac_status=$?
18369   grep -v '^ *+' conftest.er1 >conftest.err
18370   rm -f conftest.er1
18371   cat conftest.err >&5
18372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373   (exit $ac_status); } &&
18374          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18375   { (case "(($ac_try" in
18376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377   *) ac_try_echo=$ac_try;;
18378 esac
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380   (eval "$ac_try") 2>&5
18381   ac_status=$?
18382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383   (exit $ac_status); }; } &&
18384          { ac_try='test -s conftest$ac_exeext'
18385   { (case "(($ac_try" in
18386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387   *) ac_try_echo=$ac_try;;
18388 esac
18389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18390   (eval "$ac_try") 2>&5
18391   ac_status=$?
18392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393   (exit $ac_status); }; }; then
18394   ac_cv_lib_gcc___ashrdi3=yes
18395 else
18396   echo "$as_me: failed program was:" >&5
18397 sed 's/^/| /' conftest.$ac_ext >&5
18398
18399         ac_cv_lib_gcc___ashrdi3=no
18400 fi
18401
18402 rm -f core conftest.err conftest.$ac_objext \
18403       conftest$ac_exeext conftest.$ac_ext
18404 LIBS=$ac_check_lib_save_LIBS
18405 fi
18406 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18407 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18408 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18409
18410 cat >>confdefs.h <<\_ACEOF
18411 #define HAVE___ASHRDI3 1
18412 _ACEOF
18413
18414 fi
18415
18416   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18417 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18418 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18419   echo $ECHO_N "(cached) $ECHO_C" >&6
18420 else
18421   ac_check_lib_save_LIBS=$LIBS
18422 LIBS="-lgcc  $LIBS"
18423 cat >conftest.$ac_ext <<_ACEOF
18424 /* confdefs.h.  */
18425 _ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h.  */
18429
18430 /* Override any GCC internal prototype to avoid an error.
18431    Use char because int might match the return type of a GCC
18432    builtin and then its argument prototype would still apply.  */
18433 #ifdef __cplusplus
18434 extern "C"
18435 #endif
18436 char __divdi3 ();
18437 int
18438 main ()
18439 {
18440 return __divdi3 ();
18441   ;
18442   return 0;
18443 }
18444 _ACEOF
18445 rm -f conftest.$ac_objext conftest$ac_exeext
18446 if { (ac_try="$ac_link"
18447 case "(($ac_try" in
18448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449   *) ac_try_echo=$ac_try;;
18450 esac
18451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452   (eval "$ac_link") 2>conftest.er1
18453   ac_status=$?
18454   grep -v '^ *+' conftest.er1 >conftest.err
18455   rm -f conftest.er1
18456   cat conftest.err >&5
18457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458   (exit $ac_status); } &&
18459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18460   { (case "(($ac_try" in
18461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462   *) ac_try_echo=$ac_try;;
18463 esac
18464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465   (eval "$ac_try") 2>&5
18466   ac_status=$?
18467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468   (exit $ac_status); }; } &&
18469          { ac_try='test -s conftest$ac_exeext'
18470   { (case "(($ac_try" in
18471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18472   *) ac_try_echo=$ac_try;;
18473 esac
18474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18475   (eval "$ac_try") 2>&5
18476   ac_status=$?
18477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478   (exit $ac_status); }; }; then
18479   ac_cv_lib_gcc___divdi3=yes
18480 else
18481   echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18483
18484         ac_cv_lib_gcc___divdi3=no
18485 fi
18486
18487 rm -f core conftest.err conftest.$ac_objext \
18488       conftest$ac_exeext conftest.$ac_ext
18489 LIBS=$ac_check_lib_save_LIBS
18490 fi
18491 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18492 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18493 if test $ac_cv_lib_gcc___divdi3 = yes; then
18494
18495 cat >>confdefs.h <<\_ACEOF
18496 #define HAVE___DIVDI3 1
18497 _ACEOF
18498
18499 fi
18500
18501   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18502 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18503 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18504   echo $ECHO_N "(cached) $ECHO_C" >&6
18505 else
18506   ac_check_lib_save_LIBS=$LIBS
18507 LIBS="-lgcc  $LIBS"
18508 cat >conftest.$ac_ext <<_ACEOF
18509 /* confdefs.h.  */
18510 _ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h.  */
18514
18515 /* Override any GCC internal prototype to avoid an error.
18516    Use char because int might match the return type of a GCC
18517    builtin and then its argument prototype would still apply.  */
18518 #ifdef __cplusplus
18519 extern "C"
18520 #endif
18521 char __fixdfdi ();
18522 int
18523 main ()
18524 {
18525 return __fixdfdi ();
18526   ;
18527   return 0;
18528 }
18529 _ACEOF
18530 rm -f conftest.$ac_objext conftest$ac_exeext
18531 if { (ac_try="$ac_link"
18532 case "(($ac_try" in
18533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534   *) ac_try_echo=$ac_try;;
18535 esac
18536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537   (eval "$ac_link") 2>conftest.er1
18538   ac_status=$?
18539   grep -v '^ *+' conftest.er1 >conftest.err
18540   rm -f conftest.er1
18541   cat conftest.err >&5
18542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543   (exit $ac_status); } &&
18544          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18545   { (case "(($ac_try" in
18546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547   *) ac_try_echo=$ac_try;;
18548 esac
18549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550   (eval "$ac_try") 2>&5
18551   ac_status=$?
18552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553   (exit $ac_status); }; } &&
18554          { ac_try='test -s conftest$ac_exeext'
18555   { (case "(($ac_try" in
18556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18557   *) ac_try_echo=$ac_try;;
18558 esac
18559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18560   (eval "$ac_try") 2>&5
18561   ac_status=$?
18562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563   (exit $ac_status); }; }; then
18564   ac_cv_lib_gcc___fixdfdi=yes
18565 else
18566   echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18568
18569         ac_cv_lib_gcc___fixdfdi=no
18570 fi
18571
18572 rm -f core conftest.err conftest.$ac_objext \
18573       conftest$ac_exeext conftest.$ac_ext
18574 LIBS=$ac_check_lib_save_LIBS
18575 fi
18576 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18577 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18578 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18579
18580 cat >>confdefs.h <<\_ACEOF
18581 #define HAVE___FIXDFDI 1
18582 _ACEOF
18583
18584 fi
18585
18586   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18587 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18588 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18589   echo $ECHO_N "(cached) $ECHO_C" >&6
18590 else
18591   ac_check_lib_save_LIBS=$LIBS
18592 LIBS="-lgcc  $LIBS"
18593 cat >conftest.$ac_ext <<_ACEOF
18594 /* confdefs.h.  */
18595 _ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h.  */
18599
18600 /* Override any GCC internal prototype to avoid an error.
18601    Use char because int might match the return type of a GCC
18602    builtin and then its argument prototype would still apply.  */
18603 #ifdef __cplusplus
18604 extern "C"
18605 #endif
18606 char __fixsfdi ();
18607 int
18608 main ()
18609 {
18610 return __fixsfdi ();
18611   ;
18612   return 0;
18613 }
18614 _ACEOF
18615 rm -f conftest.$ac_objext conftest$ac_exeext
18616 if { (ac_try="$ac_link"
18617 case "(($ac_try" in
18618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619   *) ac_try_echo=$ac_try;;
18620 esac
18621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622   (eval "$ac_link") 2>conftest.er1
18623   ac_status=$?
18624   grep -v '^ *+' conftest.er1 >conftest.err
18625   rm -f conftest.er1
18626   cat conftest.err >&5
18627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628   (exit $ac_status); } &&
18629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18630   { (case "(($ac_try" in
18631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18632   *) ac_try_echo=$ac_try;;
18633 esac
18634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18635   (eval "$ac_try") 2>&5
18636   ac_status=$?
18637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638   (exit $ac_status); }; } &&
18639          { ac_try='test -s conftest$ac_exeext'
18640   { (case "(($ac_try" in
18641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18642   *) ac_try_echo=$ac_try;;
18643 esac
18644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18645   (eval "$ac_try") 2>&5
18646   ac_status=$?
18647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648   (exit $ac_status); }; }; then
18649   ac_cv_lib_gcc___fixsfdi=yes
18650 else
18651   echo "$as_me: failed program was:" >&5
18652 sed 's/^/| /' conftest.$ac_ext >&5
18653
18654         ac_cv_lib_gcc___fixsfdi=no
18655 fi
18656
18657 rm -f core conftest.err conftest.$ac_objext \
18658       conftest$ac_exeext conftest.$ac_ext
18659 LIBS=$ac_check_lib_save_LIBS
18660 fi
18661 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18662 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18663 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18664
18665 cat >>confdefs.h <<\_ACEOF
18666 #define HAVE___FIXSFDI 1
18667 _ACEOF
18668
18669 fi
18670
18671   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18672 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18673 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18674   echo $ECHO_N "(cached) $ECHO_C" >&6
18675 else
18676   ac_check_lib_save_LIBS=$LIBS
18677 LIBS="-lgcc  $LIBS"
18678 cat >conftest.$ac_ext <<_ACEOF
18679 /* confdefs.h.  */
18680 _ACEOF
18681 cat confdefs.h >>conftest.$ac_ext
18682 cat >>conftest.$ac_ext <<_ACEOF
18683 /* end confdefs.h.  */
18684
18685 /* Override any GCC internal prototype to avoid an error.
18686    Use char because int might match the return type of a GCC
18687    builtin and then its argument prototype would still apply.  */
18688 #ifdef __cplusplus
18689 extern "C"
18690 #endif
18691 char __floatdidf ();
18692 int
18693 main ()
18694 {
18695 return __floatdidf ();
18696   ;
18697   return 0;
18698 }
18699 _ACEOF
18700 rm -f conftest.$ac_objext conftest$ac_exeext
18701 if { (ac_try="$ac_link"
18702 case "(($ac_try" in
18703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704   *) ac_try_echo=$ac_try;;
18705 esac
18706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18707   (eval "$ac_link") 2>conftest.er1
18708   ac_status=$?
18709   grep -v '^ *+' conftest.er1 >conftest.err
18710   rm -f conftest.er1
18711   cat conftest.err >&5
18712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713   (exit $ac_status); } &&
18714          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18715   { (case "(($ac_try" in
18716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717   *) ac_try_echo=$ac_try;;
18718 esac
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720   (eval "$ac_try") 2>&5
18721   ac_status=$?
18722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723   (exit $ac_status); }; } &&
18724          { ac_try='test -s conftest$ac_exeext'
18725   { (case "(($ac_try" in
18726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727   *) ac_try_echo=$ac_try;;
18728 esac
18729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730   (eval "$ac_try") 2>&5
18731   ac_status=$?
18732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733   (exit $ac_status); }; }; then
18734   ac_cv_lib_gcc___floatdidf=yes
18735 else
18736   echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18738
18739         ac_cv_lib_gcc___floatdidf=no
18740 fi
18741
18742 rm -f core conftest.err conftest.$ac_objext \
18743       conftest$ac_exeext conftest.$ac_ext
18744 LIBS=$ac_check_lib_save_LIBS
18745 fi
18746 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18747 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18748 if test $ac_cv_lib_gcc___floatdidf = yes; then
18749
18750 cat >>confdefs.h <<\_ACEOF
18751 #define HAVE___FLOATDIDF 1
18752 _ACEOF
18753
18754 fi
18755
18756   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18757 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18758 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18759   echo $ECHO_N "(cached) $ECHO_C" >&6
18760 else
18761   ac_check_lib_save_LIBS=$LIBS
18762 LIBS="-lgcc  $LIBS"
18763 cat >conftest.$ac_ext <<_ACEOF
18764 /* confdefs.h.  */
18765 _ACEOF
18766 cat confdefs.h >>conftest.$ac_ext
18767 cat >>conftest.$ac_ext <<_ACEOF
18768 /* end confdefs.h.  */
18769
18770 /* Override any GCC internal prototype to avoid an error.
18771    Use char because int might match the return type of a GCC
18772    builtin and then its argument prototype would still apply.  */
18773 #ifdef __cplusplus
18774 extern "C"
18775 #endif
18776 char __lshrdi3 ();
18777 int
18778 main ()
18779 {
18780 return __lshrdi3 ();
18781   ;
18782   return 0;
18783 }
18784 _ACEOF
18785 rm -f conftest.$ac_objext conftest$ac_exeext
18786 if { (ac_try="$ac_link"
18787 case "(($ac_try" in
18788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789   *) ac_try_echo=$ac_try;;
18790 esac
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792   (eval "$ac_link") 2>conftest.er1
18793   ac_status=$?
18794   grep -v '^ *+' conftest.er1 >conftest.err
18795   rm -f conftest.er1
18796   cat conftest.err >&5
18797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798   (exit $ac_status); } &&
18799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18800   { (case "(($ac_try" in
18801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802   *) ac_try_echo=$ac_try;;
18803 esac
18804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18805   (eval "$ac_try") 2>&5
18806   ac_status=$?
18807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); }; } &&
18809          { ac_try='test -s conftest$ac_exeext'
18810   { (case "(($ac_try" in
18811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18812   *) ac_try_echo=$ac_try;;
18813 esac
18814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18815   (eval "$ac_try") 2>&5
18816   ac_status=$?
18817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818   (exit $ac_status); }; }; then
18819   ac_cv_lib_gcc___lshrdi3=yes
18820 else
18821   echo "$as_me: failed program was:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18823
18824         ac_cv_lib_gcc___lshrdi3=no
18825 fi
18826
18827 rm -f core conftest.err conftest.$ac_objext \
18828       conftest$ac_exeext conftest.$ac_ext
18829 LIBS=$ac_check_lib_save_LIBS
18830 fi
18831 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18832 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18833 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18834
18835 cat >>confdefs.h <<\_ACEOF
18836 #define HAVE___LSHRDI3 1
18837 _ACEOF
18838
18839 fi
18840
18841   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18842 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18843 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18844   echo $ECHO_N "(cached) $ECHO_C" >&6
18845 else
18846   ac_check_lib_save_LIBS=$LIBS
18847 LIBS="-lgcc  $LIBS"
18848 cat >conftest.$ac_ext <<_ACEOF
18849 /* confdefs.h.  */
18850 _ACEOF
18851 cat confdefs.h >>conftest.$ac_ext
18852 cat >>conftest.$ac_ext <<_ACEOF
18853 /* end confdefs.h.  */
18854
18855 /* Override any GCC internal prototype to avoid an error.
18856    Use char because int might match the return type of a GCC
18857    builtin and then its argument prototype would still apply.  */
18858 #ifdef __cplusplus
18859 extern "C"
18860 #endif
18861 char __moddi3 ();
18862 int
18863 main ()
18864 {
18865 return __moddi3 ();
18866   ;
18867   return 0;
18868 }
18869 _ACEOF
18870 rm -f conftest.$ac_objext conftest$ac_exeext
18871 if { (ac_try="$ac_link"
18872 case "(($ac_try" in
18873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874   *) ac_try_echo=$ac_try;;
18875 esac
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877   (eval "$ac_link") 2>conftest.er1
18878   ac_status=$?
18879   grep -v '^ *+' conftest.er1 >conftest.err
18880   rm -f conftest.er1
18881   cat conftest.err >&5
18882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883   (exit $ac_status); } &&
18884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18885   { (case "(($ac_try" in
18886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887   *) ac_try_echo=$ac_try;;
18888 esac
18889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890   (eval "$ac_try") 2>&5
18891   ac_status=$?
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); }; } &&
18894          { ac_try='test -s conftest$ac_exeext'
18895   { (case "(($ac_try" in
18896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897   *) ac_try_echo=$ac_try;;
18898 esac
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900   (eval "$ac_try") 2>&5
18901   ac_status=$?
18902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903   (exit $ac_status); }; }; then
18904   ac_cv_lib_gcc___moddi3=yes
18905 else
18906   echo "$as_me: failed program was:" >&5
18907 sed 's/^/| /' conftest.$ac_ext >&5
18908
18909         ac_cv_lib_gcc___moddi3=no
18910 fi
18911
18912 rm -f core conftest.err conftest.$ac_objext \
18913       conftest$ac_exeext conftest.$ac_ext
18914 LIBS=$ac_check_lib_save_LIBS
18915 fi
18916 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18917 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18918 if test $ac_cv_lib_gcc___moddi3 = yes; then
18919
18920 cat >>confdefs.h <<\_ACEOF
18921 #define HAVE___MODDI3 1
18922 _ACEOF
18923
18924 fi
18925
18926   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18927 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18928 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18929   echo $ECHO_N "(cached) $ECHO_C" >&6
18930 else
18931   ac_check_lib_save_LIBS=$LIBS
18932 LIBS="-lgcc  $LIBS"
18933 cat >conftest.$ac_ext <<_ACEOF
18934 /* confdefs.h.  */
18935 _ACEOF
18936 cat confdefs.h >>conftest.$ac_ext
18937 cat >>conftest.$ac_ext <<_ACEOF
18938 /* end confdefs.h.  */
18939
18940 /* Override any GCC internal prototype to avoid an error.
18941    Use char because int might match the return type of a GCC
18942    builtin and then its argument prototype would still apply.  */
18943 #ifdef __cplusplus
18944 extern "C"
18945 #endif
18946 char __udivdi3 ();
18947 int
18948 main ()
18949 {
18950 return __udivdi3 ();
18951   ;
18952   return 0;
18953 }
18954 _ACEOF
18955 rm -f conftest.$ac_objext conftest$ac_exeext
18956 if { (ac_try="$ac_link"
18957 case "(($ac_try" in
18958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959   *) ac_try_echo=$ac_try;;
18960 esac
18961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18962   (eval "$ac_link") 2>conftest.er1
18963   ac_status=$?
18964   grep -v '^ *+' conftest.er1 >conftest.err
18965   rm -f conftest.er1
18966   cat conftest.err >&5
18967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968   (exit $ac_status); } &&
18969          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18970   { (case "(($ac_try" in
18971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972   *) ac_try_echo=$ac_try;;
18973 esac
18974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975   (eval "$ac_try") 2>&5
18976   ac_status=$?
18977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978   (exit $ac_status); }; } &&
18979          { ac_try='test -s conftest$ac_exeext'
18980   { (case "(($ac_try" in
18981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982   *) ac_try_echo=$ac_try;;
18983 esac
18984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985   (eval "$ac_try") 2>&5
18986   ac_status=$?
18987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988   (exit $ac_status); }; }; then
18989   ac_cv_lib_gcc___udivdi3=yes
18990 else
18991   echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18993
18994         ac_cv_lib_gcc___udivdi3=no
18995 fi
18996
18997 rm -f core conftest.err conftest.$ac_objext \
18998       conftest$ac_exeext conftest.$ac_ext
18999 LIBS=$ac_check_lib_save_LIBS
19000 fi
19001 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19002 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19003 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19004
19005 cat >>confdefs.h <<\_ACEOF
19006 #define HAVE___UDIVDI3 1
19007 _ACEOF
19008
19009 fi
19010
19011   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19012 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19013 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19014   echo $ECHO_N "(cached) $ECHO_C" >&6
19015 else
19016   ac_check_lib_save_LIBS=$LIBS
19017 LIBS="-lgcc  $LIBS"
19018 cat >conftest.$ac_ext <<_ACEOF
19019 /* confdefs.h.  */
19020 _ACEOF
19021 cat confdefs.h >>conftest.$ac_ext
19022 cat >>conftest.$ac_ext <<_ACEOF
19023 /* end confdefs.h.  */
19024
19025 /* Override any GCC internal prototype to avoid an error.
19026    Use char because int might match the return type of a GCC
19027    builtin and then its argument prototype would still apply.  */
19028 #ifdef __cplusplus
19029 extern "C"
19030 #endif
19031 char __umoddi3 ();
19032 int
19033 main ()
19034 {
19035 return __umoddi3 ();
19036   ;
19037   return 0;
19038 }
19039 _ACEOF
19040 rm -f conftest.$ac_objext conftest$ac_exeext
19041 if { (ac_try="$ac_link"
19042 case "(($ac_try" in
19043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044   *) ac_try_echo=$ac_try;;
19045 esac
19046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047   (eval "$ac_link") 2>conftest.er1
19048   ac_status=$?
19049   grep -v '^ *+' conftest.er1 >conftest.err
19050   rm -f conftest.er1
19051   cat conftest.err >&5
19052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053   (exit $ac_status); } &&
19054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19055   { (case "(($ac_try" in
19056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057   *) ac_try_echo=$ac_try;;
19058 esac
19059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060   (eval "$ac_try") 2>&5
19061   ac_status=$?
19062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063   (exit $ac_status); }; } &&
19064          { ac_try='test -s conftest$ac_exeext'
19065   { (case "(($ac_try" in
19066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067   *) ac_try_echo=$ac_try;;
19068 esac
19069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19070   (eval "$ac_try") 2>&5
19071   ac_status=$?
19072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073   (exit $ac_status); }; }; then
19074   ac_cv_lib_gcc___umoddi3=yes
19075 else
19076   echo "$as_me: failed program was:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19078
19079         ac_cv_lib_gcc___umoddi3=no
19080 fi
19081
19082 rm -f core conftest.err conftest.$ac_objext \
19083       conftest$ac_exeext conftest.$ac_ext
19084 LIBS=$ac_check_lib_save_LIBS
19085 fi
19086 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19087 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19088 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19089
19090 cat >>confdefs.h <<\_ACEOF
19091 #define HAVE___UMODDI3 1
19092 _ACEOF
19093
19094 fi
19095
19096
19097   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19098 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19099 if test "${ac_cv_lib_gcc___main+set}" = set; then
19100   echo $ECHO_N "(cached) $ECHO_C" >&6
19101 else
19102   ac_check_lib_save_LIBS=$LIBS
19103 LIBS="-lgcc  $LIBS"
19104 cat >conftest.$ac_ext <<_ACEOF
19105 /* confdefs.h.  */
19106 _ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h.  */
19110
19111 /* Override any GCC internal prototype to avoid an error.
19112    Use char because int might match the return type of a GCC
19113    builtin and then its argument prototype would still apply.  */
19114 #ifdef __cplusplus
19115 extern "C"
19116 #endif
19117 char __main ();
19118 int
19119 main ()
19120 {
19121 return __main ();
19122   ;
19123   return 0;
19124 }
19125 _ACEOF
19126 rm -f conftest.$ac_objext conftest$ac_exeext
19127 if { (ac_try="$ac_link"
19128 case "(($ac_try" in
19129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130   *) ac_try_echo=$ac_try;;
19131 esac
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133   (eval "$ac_link") 2>conftest.er1
19134   ac_status=$?
19135   grep -v '^ *+' conftest.er1 >conftest.err
19136   rm -f conftest.er1
19137   cat conftest.err >&5
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); } &&
19140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19141   { (case "(($ac_try" in
19142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143   *) ac_try_echo=$ac_try;;
19144 esac
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146   (eval "$ac_try") 2>&5
19147   ac_status=$?
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); }; } &&
19150          { ac_try='test -s conftest$ac_exeext'
19151   { (case "(($ac_try" in
19152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153   *) ac_try_echo=$ac_try;;
19154 esac
19155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156   (eval "$ac_try") 2>&5
19157   ac_status=$?
19158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159   (exit $ac_status); }; }; then
19160   ac_cv_lib_gcc___main=yes
19161 else
19162   echo "$as_me: failed program was:" >&5
19163 sed 's/^/| /' conftest.$ac_ext >&5
19164
19165         ac_cv_lib_gcc___main=no
19166 fi
19167
19168 rm -f core conftest.err conftest.$ac_objext \
19169       conftest$ac_exeext conftest.$ac_ext
19170 LIBS=$ac_check_lib_save_LIBS
19171 fi
19172 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19173 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19174 if test $ac_cv_lib_gcc___main = yes; then
19175
19176 cat >>confdefs.h <<\_ACEOF
19177 #define HAVE___MAIN 1
19178 _ACEOF
19179
19180 fi
19181
19182   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19183 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19184 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19185   echo $ECHO_N "(cached) $ECHO_C" >&6
19186 else
19187   ac_check_lib_save_LIBS=$LIBS
19188 LIBS="-lgcc  $LIBS"
19189 cat >conftest.$ac_ext <<_ACEOF
19190 /* confdefs.h.  */
19191 _ACEOF
19192 cat confdefs.h >>conftest.$ac_ext
19193 cat >>conftest.$ac_ext <<_ACEOF
19194 /* end confdefs.h.  */
19195
19196 /* Override any GCC internal prototype to avoid an error.
19197    Use char because int might match the return type of a GCC
19198    builtin and then its argument prototype would still apply.  */
19199 #ifdef __cplusplus
19200 extern "C"
19201 #endif
19202 char __cmpdi2 ();
19203 int
19204 main ()
19205 {
19206 return __cmpdi2 ();
19207   ;
19208   return 0;
19209 }
19210 _ACEOF
19211 rm -f conftest.$ac_objext conftest$ac_exeext
19212 if { (ac_try="$ac_link"
19213 case "(($ac_try" in
19214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215   *) ac_try_echo=$ac_try;;
19216 esac
19217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218   (eval "$ac_link") 2>conftest.er1
19219   ac_status=$?
19220   grep -v '^ *+' conftest.er1 >conftest.err
19221   rm -f conftest.er1
19222   cat conftest.err >&5
19223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224   (exit $ac_status); } &&
19225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19226   { (case "(($ac_try" in
19227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228   *) ac_try_echo=$ac_try;;
19229 esac
19230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231   (eval "$ac_try") 2>&5
19232   ac_status=$?
19233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234   (exit $ac_status); }; } &&
19235          { ac_try='test -s conftest$ac_exeext'
19236   { (case "(($ac_try" in
19237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238   *) ac_try_echo=$ac_try;;
19239 esac
19240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241   (eval "$ac_try") 2>&5
19242   ac_status=$?
19243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); }; }; then
19245   ac_cv_lib_gcc___cmpdi2=yes
19246 else
19247   echo "$as_me: failed program was:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19249
19250         ac_cv_lib_gcc___cmpdi2=no
19251 fi
19252
19253 rm -f core conftest.err conftest.$ac_objext \
19254       conftest$ac_exeext conftest.$ac_ext
19255 LIBS=$ac_check_lib_save_LIBS
19256 fi
19257 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19258 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19259 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19260
19261 cat >>confdefs.h <<\_ACEOF
19262 #define HAVE___CMPDI2 1
19263 _ACEOF
19264
19265 fi
19266
19267 fi
19268
19269 if test "$llvm_cv_os_type" = "MingW" ; then
19270   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19271 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19272   cat >conftest.$ac_ext <<_ACEOF
19273 #include <windows.h>
19274 #include <imagehlp.h>
19275 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19276 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19277 _ACEOF
19278 rm -f conftest.$ac_objext
19279 if { (ac_try="$ac_compile"
19280 case "(($ac_try" in
19281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282   *) ac_try_echo=$ac_try;;
19283 esac
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285   (eval "$ac_compile") 2>conftest.er1
19286   ac_status=$?
19287   grep -v '^ *+' conftest.er1 >conftest.err
19288   rm -f conftest.er1
19289   cat conftest.err >&5
19290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291   (exit $ac_status); } &&
19292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19293   { (case "(($ac_try" in
19294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295   *) ac_try_echo=$ac_try;;
19296 esac
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298   (eval "$ac_try") 2>&5
19299   ac_status=$?
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); }; } &&
19302          { ac_try='test -s conftest.$ac_objext'
19303   { (case "(($ac_try" in
19304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305   *) ac_try_echo=$ac_try;;
19306 esac
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308   (eval "$ac_try") 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); }; }; then
19312
19313   { echo "$as_me:$LINENO: result: yes" >&5
19314 echo "${ECHO_T}yes" >&6; }
19315   llvm_cv_win32_elmcb_pcstr="PCSTR"
19316
19317 else
19318   echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19320
19321
19322   { echo "$as_me:$LINENO: result: no" >&5
19323 echo "${ECHO_T}no" >&6; }
19324   llvm_cv_win32_elmcb_pcstr="PSTR"
19325
19326 fi
19327
19328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19329
19330 cat >>confdefs.h <<_ACEOF
19331 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19332 _ACEOF
19333
19334 fi
19335
19336
19337 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19338 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19339 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19340   echo $ECHO_N "(cached) $ECHO_C" >&6
19341 else
19342   ac_ext=cpp
19343 ac_cpp='$CXXCPP $CPPFLAGS'
19344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19347
19348    cat >conftest.$ac_ext <<_ACEOF
19349 /* confdefs.h.  */
19350 _ACEOF
19351 cat confdefs.h >>conftest.$ac_ext
19352 cat >>conftest.$ac_ext <<_ACEOF
19353 /* end confdefs.h.  */
19354 #include <math.h>
19355 int
19356 main ()
19357 {
19358 float f; isnan(f);
19359   ;
19360   return 0;
19361 }
19362 _ACEOF
19363 rm -f conftest.$ac_objext
19364 if { (ac_try="$ac_compile"
19365 case "(($ac_try" in
19366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367   *) ac_try_echo=$ac_try;;
19368 esac
19369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370   (eval "$ac_compile") 2>conftest.er1
19371   ac_status=$?
19372   grep -v '^ *+' conftest.er1 >conftest.err
19373   rm -f conftest.er1
19374   cat conftest.err >&5
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); } &&
19377          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19378   { (case "(($ac_try" in
19379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380   *) ac_try_echo=$ac_try;;
19381 esac
19382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383   (eval "$ac_try") 2>&5
19384   ac_status=$?
19385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386   (exit $ac_status); }; } &&
19387          { ac_try='test -s conftest.$ac_objext'
19388   { (case "(($ac_try" in
19389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390   *) ac_try_echo=$ac_try;;
19391 esac
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393   (eval "$ac_try") 2>&5
19394   ac_status=$?
19395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396   (exit $ac_status); }; }; then
19397   ac_cv_func_isnan_in_math_h=yes
19398 else
19399   echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19401
19402         ac_cv_func_isnan_in_math_h=no
19403 fi
19404
19405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19406   ac_ext=c
19407 ac_cpp='$CPP $CPPFLAGS'
19408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19411
19412 fi
19413 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19414 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19415
19416
19417 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19418
19419 cat >>confdefs.h <<\_ACEOF
19420 #define HAVE_ISNAN_IN_MATH_H 1
19421 _ACEOF
19422
19423 fi
19424
19425 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19426 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19427 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19428   echo $ECHO_N "(cached) $ECHO_C" >&6
19429 else
19430   ac_ext=cpp
19431 ac_cpp='$CXXCPP $CPPFLAGS'
19432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19435
19436    cat >conftest.$ac_ext <<_ACEOF
19437 /* confdefs.h.  */
19438 _ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h.  */
19442 #include <cmath>
19443 int
19444 main ()
19445 {
19446 float f; isnan(f);
19447   ;
19448   return 0;
19449 }
19450 _ACEOF
19451 rm -f conftest.$ac_objext
19452 if { (ac_try="$ac_compile"
19453 case "(($ac_try" in
19454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455   *) ac_try_echo=$ac_try;;
19456 esac
19457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458   (eval "$ac_compile") 2>conftest.er1
19459   ac_status=$?
19460   grep -v '^ *+' conftest.er1 >conftest.err
19461   rm -f conftest.er1
19462   cat conftest.err >&5
19463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464   (exit $ac_status); } &&
19465          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19466   { (case "(($ac_try" in
19467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468   *) ac_try_echo=$ac_try;;
19469 esac
19470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471   (eval "$ac_try") 2>&5
19472   ac_status=$?
19473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474   (exit $ac_status); }; } &&
19475          { ac_try='test -s conftest.$ac_objext'
19476   { (case "(($ac_try" in
19477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478   *) ac_try_echo=$ac_try;;
19479 esac
19480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19481   (eval "$ac_try") 2>&5
19482   ac_status=$?
19483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484   (exit $ac_status); }; }; then
19485   ac_cv_func_isnan_in_cmath=yes
19486 else
19487   echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19489
19490         ac_cv_func_isnan_in_cmath=no
19491 fi
19492
19493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19494   ac_ext=c
19495 ac_cpp='$CPP $CPPFLAGS'
19496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19499
19500 fi
19501 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19502 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19503
19504 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19505
19506 cat >>confdefs.h <<\_ACEOF
19507 #define HAVE_ISNAN_IN_CMATH 1
19508 _ACEOF
19509
19510 fi
19511
19512 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19513 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19514 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19515   echo $ECHO_N "(cached) $ECHO_C" >&6
19516 else
19517   ac_ext=cpp
19518 ac_cpp='$CXXCPP $CPPFLAGS'
19519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19522
19523    cat >conftest.$ac_ext <<_ACEOF
19524 /* confdefs.h.  */
19525 _ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h.  */
19529 #include <cmath>
19530 int
19531 main ()
19532 {
19533 float f; std::isnan(f);
19534   ;
19535   return 0;
19536 }
19537 _ACEOF
19538 rm -f conftest.$ac_objext
19539 if { (ac_try="$ac_compile"
19540 case "(($ac_try" in
19541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542   *) ac_try_echo=$ac_try;;
19543 esac
19544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545   (eval "$ac_compile") 2>conftest.er1
19546   ac_status=$?
19547   grep -v '^ *+' conftest.er1 >conftest.err
19548   rm -f conftest.er1
19549   cat conftest.err >&5
19550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551   (exit $ac_status); } &&
19552          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19553   { (case "(($ac_try" in
19554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555   *) ac_try_echo=$ac_try;;
19556 esac
19557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558   (eval "$ac_try") 2>&5
19559   ac_status=$?
19560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561   (exit $ac_status); }; } &&
19562          { ac_try='test -s conftest.$ac_objext'
19563   { (case "(($ac_try" in
19564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565   *) ac_try_echo=$ac_try;;
19566 esac
19567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568   (eval "$ac_try") 2>&5
19569   ac_status=$?
19570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); }; }; then
19572   ac_cv_func_std_isnan_in_cmath=yes
19573 else
19574   echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19576
19577         ac_cv_func_std_isnan_in_cmath=no
19578 fi
19579
19580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19581   ac_ext=c
19582 ac_cpp='$CPP $CPPFLAGS'
19583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19586
19587 fi
19588 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19589 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19590
19591 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19592
19593 cat >>confdefs.h <<\_ACEOF
19594 #define HAVE_STD_ISNAN_IN_CMATH 1
19595 _ACEOF
19596
19597 fi
19598
19599
19600 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19601 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19602 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19603   echo $ECHO_N "(cached) $ECHO_C" >&6
19604 else
19605   ac_ext=cpp
19606 ac_cpp='$CXXCPP $CPPFLAGS'
19607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19610
19611    cat >conftest.$ac_ext <<_ACEOF
19612 /* confdefs.h.  */
19613 _ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h.  */
19617 #include <math.h>
19618 int
19619 main ()
19620 {
19621 float f; isinf(f);
19622   ;
19623   return 0;
19624 }
19625 _ACEOF
19626 rm -f conftest.$ac_objext
19627 if { (ac_try="$ac_compile"
19628 case "(($ac_try" in
19629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630   *) ac_try_echo=$ac_try;;
19631 esac
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633   (eval "$ac_compile") 2>conftest.er1
19634   ac_status=$?
19635   grep -v '^ *+' conftest.er1 >conftest.err
19636   rm -f conftest.er1
19637   cat conftest.err >&5
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); } &&
19640          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19641   { (case "(($ac_try" in
19642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643   *) ac_try_echo=$ac_try;;
19644 esac
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646   (eval "$ac_try") 2>&5
19647   ac_status=$?
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); }; } &&
19650          { ac_try='test -s conftest.$ac_objext'
19651   { (case "(($ac_try" in
19652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653   *) ac_try_echo=$ac_try;;
19654 esac
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656   (eval "$ac_try") 2>&5
19657   ac_status=$?
19658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659   (exit $ac_status); }; }; then
19660   ac_cv_func_isinf_in_math_h=yes
19661 else
19662   echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19664
19665         ac_cv_func_isinf_in_math_h=no
19666 fi
19667
19668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19669   ac_ext=c
19670 ac_cpp='$CPP $CPPFLAGS'
19671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19674
19675 fi
19676 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19677 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19678
19679 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19680
19681 cat >>confdefs.h <<\_ACEOF
19682 #define HAVE_ISINF_IN_MATH_H 1
19683 _ACEOF
19684
19685 fi
19686
19687 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19688 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19689 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19690   echo $ECHO_N "(cached) $ECHO_C" >&6
19691 else
19692   ac_ext=cpp
19693 ac_cpp='$CXXCPP $CPPFLAGS'
19694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19697
19698    cat >conftest.$ac_ext <<_ACEOF
19699 /* confdefs.h.  */
19700 _ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h.  */
19704 #include <cmath>
19705 int
19706 main ()
19707 {
19708 float f; isinf(f);
19709   ;
19710   return 0;
19711 }
19712 _ACEOF
19713 rm -f conftest.$ac_objext
19714 if { (ac_try="$ac_compile"
19715 case "(($ac_try" in
19716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717   *) ac_try_echo=$ac_try;;
19718 esac
19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720   (eval "$ac_compile") 2>conftest.er1
19721   ac_status=$?
19722   grep -v '^ *+' conftest.er1 >conftest.err
19723   rm -f conftest.er1
19724   cat conftest.err >&5
19725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726   (exit $ac_status); } &&
19727          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19728   { (case "(($ac_try" in
19729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730   *) ac_try_echo=$ac_try;;
19731 esac
19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733   (eval "$ac_try") 2>&5
19734   ac_status=$?
19735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736   (exit $ac_status); }; } &&
19737          { ac_try='test -s conftest.$ac_objext'
19738   { (case "(($ac_try" in
19739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740   *) ac_try_echo=$ac_try;;
19741 esac
19742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19743   (eval "$ac_try") 2>&5
19744   ac_status=$?
19745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746   (exit $ac_status); }; }; then
19747   ac_cv_func_isinf_in_cmath=yes
19748 else
19749   echo "$as_me: failed program was:" >&5
19750 sed 's/^/| /' conftest.$ac_ext >&5
19751
19752         ac_cv_func_isinf_in_cmath=no
19753 fi
19754
19755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19756   ac_ext=c
19757 ac_cpp='$CPP $CPPFLAGS'
19758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19761
19762 fi
19763 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19764 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19765
19766 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19767
19768 cat >>confdefs.h <<\_ACEOF
19769 #define HAVE_ISINF_IN_CMATH 1
19770 _ACEOF
19771
19772 fi
19773
19774 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19775 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19776 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19777   echo $ECHO_N "(cached) $ECHO_C" >&6
19778 else
19779   ac_ext=cpp
19780 ac_cpp='$CXXCPP $CPPFLAGS'
19781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19784
19785    cat >conftest.$ac_ext <<_ACEOF
19786 /* confdefs.h.  */
19787 _ACEOF
19788 cat confdefs.h >>conftest.$ac_ext
19789 cat >>conftest.$ac_ext <<_ACEOF
19790 /* end confdefs.h.  */
19791 #include <cmath>
19792 int
19793 main ()
19794 {
19795 float f; std::isinf(f);
19796   ;
19797   return 0;
19798 }
19799 _ACEOF
19800 rm -f conftest.$ac_objext
19801 if { (ac_try="$ac_compile"
19802 case "(($ac_try" in
19803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804   *) ac_try_echo=$ac_try;;
19805 esac
19806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807   (eval "$ac_compile") 2>conftest.er1
19808   ac_status=$?
19809   grep -v '^ *+' conftest.er1 >conftest.err
19810   rm -f conftest.er1
19811   cat conftest.err >&5
19812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813   (exit $ac_status); } &&
19814          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19815   { (case "(($ac_try" in
19816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817   *) ac_try_echo=$ac_try;;
19818 esac
19819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820   (eval "$ac_try") 2>&5
19821   ac_status=$?
19822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823   (exit $ac_status); }; } &&
19824          { ac_try='test -s conftest.$ac_objext'
19825   { (case "(($ac_try" in
19826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19827   *) ac_try_echo=$ac_try;;
19828 esac
19829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19830   (eval "$ac_try") 2>&5
19831   ac_status=$?
19832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833   (exit $ac_status); }; }; then
19834   ac_cv_func_std_isinf_in_cmath=yes
19835 else
19836   echo "$as_me: failed program was:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19838
19839         ac_cv_func_std_isinf_in_cmath=no
19840 fi
19841
19842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19843   ac_ext=c
19844 ac_cpp='$CPP $CPPFLAGS'
19845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19848
19849 fi
19850 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19851 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19852
19853 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19854
19855 cat >>confdefs.h <<\_ACEOF
19856 #define HAVE_STD_ISINF_IN_CMATH 1
19857 _ACEOF
19858
19859 fi
19860
19861 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19862 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19863 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19864   echo $ECHO_N "(cached) $ECHO_C" >&6
19865 else
19866   ac_ext=cpp
19867 ac_cpp='$CXXCPP $CPPFLAGS'
19868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19871
19872    cat >conftest.$ac_ext <<_ACEOF
19873 /* confdefs.h.  */
19874 _ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h.  */
19878 #include <ieeefp.h>
19879 int
19880 main ()
19881 {
19882 float f; finite(f);
19883   ;
19884   return 0;
19885 }
19886 _ACEOF
19887 rm -f conftest.$ac_objext
19888 if { (ac_try="$ac_compile"
19889 case "(($ac_try" in
19890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891   *) ac_try_echo=$ac_try;;
19892 esac
19893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19894   (eval "$ac_compile") 2>conftest.er1
19895   ac_status=$?
19896   grep -v '^ *+' conftest.er1 >conftest.err
19897   rm -f conftest.er1
19898   cat conftest.err >&5
19899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900   (exit $ac_status); } &&
19901          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19902   { (case "(($ac_try" in
19903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19904   *) ac_try_echo=$ac_try;;
19905 esac
19906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19907   (eval "$ac_try") 2>&5
19908   ac_status=$?
19909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910   (exit $ac_status); }; } &&
19911          { ac_try='test -s conftest.$ac_objext'
19912   { (case "(($ac_try" in
19913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914   *) ac_try_echo=$ac_try;;
19915 esac
19916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917   (eval "$ac_try") 2>&5
19918   ac_status=$?
19919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920   (exit $ac_status); }; }; then
19921   ac_cv_func_finite_in_ieeefp_h=yes
19922 else
19923   echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19925
19926         ac_cv_func_finite_in_ieeefp_h=no
19927 fi
19928
19929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19930   ac_ext=c
19931 ac_cpp='$CPP $CPPFLAGS'
19932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19935
19936 fi
19937 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19938 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19939
19940 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19941
19942 cat >>confdefs.h <<\_ACEOF
19943 #define HAVE_FINITE_IN_IEEEFP_H 1
19944 _ACEOF
19945
19946 fi
19947
19948
19949
19950 if test "$llvm_cv_platform_type" = "Unix" ; then
19951
19952
19953 for ac_header in stdlib.h unistd.h
19954 do
19955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19957   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19960   echo $ECHO_N "(cached) $ECHO_C" >&6
19961 fi
19962 ac_res=`eval echo '${'$as_ac_Header'}'`
19963                { echo "$as_me:$LINENO: result: $ac_res" >&5
19964 echo "${ECHO_T}$ac_res" >&6; }
19965 else
19966   # Is the header compilable?
19967 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19969 cat >conftest.$ac_ext <<_ACEOF
19970 /* confdefs.h.  */
19971 _ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h.  */
19975 $ac_includes_default
19976 #include <$ac_header>
19977 _ACEOF
19978 rm -f conftest.$ac_objext
19979 if { (ac_try="$ac_compile"
19980 case "(($ac_try" in
19981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982   *) ac_try_echo=$ac_try;;
19983 esac
19984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985   (eval "$ac_compile") 2>conftest.er1
19986   ac_status=$?
19987   grep -v '^ *+' conftest.er1 >conftest.err
19988   rm -f conftest.er1
19989   cat conftest.err >&5
19990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991   (exit $ac_status); } &&
19992          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19993   { (case "(($ac_try" in
19994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995   *) ac_try_echo=$ac_try;;
19996 esac
19997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998   (eval "$ac_try") 2>&5
19999   ac_status=$?
20000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001   (exit $ac_status); }; } &&
20002          { ac_try='test -s conftest.$ac_objext'
20003   { (case "(($ac_try" in
20004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20005   *) ac_try_echo=$ac_try;;
20006 esac
20007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20008   (eval "$ac_try") 2>&5
20009   ac_status=$?
20010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011   (exit $ac_status); }; }; then
20012   ac_header_compiler=yes
20013 else
20014   echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20016
20017         ac_header_compiler=no
20018 fi
20019
20020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20021 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20022 echo "${ECHO_T}$ac_header_compiler" >&6; }
20023
20024 # Is the header present?
20025 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20027 cat >conftest.$ac_ext <<_ACEOF
20028 /* confdefs.h.  */
20029 _ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h.  */
20033 #include <$ac_header>
20034 _ACEOF
20035 if { (ac_try="$ac_cpp conftest.$ac_ext"
20036 case "(($ac_try" in
20037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038   *) ac_try_echo=$ac_try;;
20039 esac
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20042   ac_status=$?
20043   grep -v '^ *+' conftest.er1 >conftest.err
20044   rm -f conftest.er1
20045   cat conftest.err >&5
20046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047   (exit $ac_status); } >/dev/null; then
20048   if test -s conftest.err; then
20049     ac_cpp_err=$ac_c_preproc_warn_flag
20050     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20051   else
20052     ac_cpp_err=
20053   fi
20054 else
20055   ac_cpp_err=yes
20056 fi
20057 if test -z "$ac_cpp_err"; then
20058   ac_header_preproc=yes
20059 else
20060   echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20062
20063   ac_header_preproc=no
20064 fi
20065
20066 rm -f conftest.err conftest.$ac_ext
20067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20068 echo "${ECHO_T}$ac_header_preproc" >&6; }
20069
20070 # So?  What about this header?
20071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20072   yes:no: )
20073     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20077     ac_header_preproc=yes
20078     ;;
20079   no:yes:* )
20080     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20082     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20083 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20084     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20086     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20087 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20088     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20090     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20092     ( cat <<\_ASBOX
20093 ## ------------------------------------ ##
20094 ## Report this to http://llvm.org/bugs/ ##
20095 ## ------------------------------------ ##
20096 _ASBOX
20097      ) | sed "s/^/$as_me: WARNING:     /" >&2
20098     ;;
20099 esac
20100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20103   echo $ECHO_N "(cached) $ECHO_C" >&6
20104 else
20105   eval "$as_ac_Header=\$ac_header_preproc"
20106 fi
20107 ac_res=`eval echo '${'$as_ac_Header'}'`
20108                { echo "$as_me:$LINENO: result: $ac_res" >&5
20109 echo "${ECHO_T}$ac_res" >&6; }
20110
20111 fi
20112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20113   cat >>confdefs.h <<_ACEOF
20114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20115 _ACEOF
20116
20117 fi
20118
20119 done
20120
20121
20122 for ac_func in getpagesize
20123 do
20124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20128   echo $ECHO_N "(cached) $ECHO_C" >&6
20129 else
20130   cat >conftest.$ac_ext <<_ACEOF
20131 /* confdefs.h.  */
20132 _ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h.  */
20136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20138 #define $ac_func innocuous_$ac_func
20139
20140 /* System header to define __stub macros and hopefully few prototypes,
20141     which can conflict with char $ac_func (); below.
20142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20143     <limits.h> exists even on freestanding compilers.  */
20144
20145 #ifdef __STDC__
20146 # include <limits.h>
20147 #else
20148 # include <assert.h>
20149 #endif
20150
20151 #undef $ac_func
20152
20153 /* Override any GCC internal prototype to avoid an error.
20154    Use char because int might match the return type of a GCC
20155    builtin and then its argument prototype would still apply.  */
20156 #ifdef __cplusplus
20157 extern "C"
20158 #endif
20159 char $ac_func ();
20160 /* The GNU C library defines this for functions which it implements
20161     to always fail with ENOSYS.  Some functions are actually named
20162     something starting with __ and the normal name is an alias.  */
20163 #if defined __stub_$ac_func || defined __stub___$ac_func
20164 choke me
20165 #endif
20166
20167 int
20168 main ()
20169 {
20170 return $ac_func ();
20171   ;
20172   return 0;
20173 }
20174 _ACEOF
20175 rm -f conftest.$ac_objext conftest$ac_exeext
20176 if { (ac_try="$ac_link"
20177 case "(($ac_try" in
20178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179   *) ac_try_echo=$ac_try;;
20180 esac
20181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182   (eval "$ac_link") 2>conftest.er1
20183   ac_status=$?
20184   grep -v '^ *+' conftest.er1 >conftest.err
20185   rm -f conftest.er1
20186   cat conftest.err >&5
20187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188   (exit $ac_status); } &&
20189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20190   { (case "(($ac_try" in
20191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192   *) ac_try_echo=$ac_try;;
20193 esac
20194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195   (eval "$ac_try") 2>&5
20196   ac_status=$?
20197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198   (exit $ac_status); }; } &&
20199          { ac_try='test -s conftest$ac_exeext'
20200   { (case "(($ac_try" in
20201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202   *) ac_try_echo=$ac_try;;
20203 esac
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205   (eval "$ac_try") 2>&5
20206   ac_status=$?
20207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208   (exit $ac_status); }; }; then
20209   eval "$as_ac_var=yes"
20210 else
20211   echo "$as_me: failed program was:" >&5
20212 sed 's/^/| /' conftest.$ac_ext >&5
20213
20214         eval "$as_ac_var=no"
20215 fi
20216
20217 rm -f core conftest.err conftest.$ac_objext \
20218       conftest$ac_exeext conftest.$ac_ext
20219 fi
20220 ac_res=`eval echo '${'$as_ac_var'}'`
20221                { echo "$as_me:$LINENO: result: $ac_res" >&5
20222 echo "${ECHO_T}$ac_res" >&6; }
20223 if test `eval echo '${'$as_ac_var'}'` = yes; then
20224   cat >>confdefs.h <<_ACEOF
20225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20226 _ACEOF
20227
20228 fi
20229 done
20230
20231 { echo "$as_me:$LINENO: checking for working mmap" >&5
20232 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20233 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20234   echo $ECHO_N "(cached) $ECHO_C" >&6
20235 else
20236   if test "$cross_compiling" = yes; then
20237   ac_cv_func_mmap_fixed_mapped=no
20238 else
20239   cat >conftest.$ac_ext <<_ACEOF
20240 /* confdefs.h.  */
20241 _ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h.  */
20245 $ac_includes_default
20246 /* malloc might have been renamed as rpl_malloc. */
20247 #undef malloc
20248
20249 /* Thanks to Mike Haertel and Jim Avera for this test.
20250    Here is a matrix of mmap possibilities:
20251         mmap private not fixed
20252         mmap private fixed at somewhere currently unmapped
20253         mmap private fixed at somewhere already mapped
20254         mmap shared not fixed
20255         mmap shared fixed at somewhere currently unmapped
20256         mmap shared fixed at somewhere already mapped
20257    For private mappings, we should verify that changes cannot be read()
20258    back from the file, nor mmap's back from the file at a different
20259    address.  (There have been systems where private was not correctly
20260    implemented like the infamous i386 svr4.0, and systems where the
20261    VM page cache was not coherent with the file system buffer cache
20262    like early versions of FreeBSD and possibly contemporary NetBSD.)
20263    For shared mappings, we should conversely verify that changes get
20264    propagated back to all the places they're supposed to be.
20265
20266    Grep wants private fixed already mapped.
20267    The main things grep needs to know about mmap are:
20268    * does it exist and is it safe to write into the mmap'd area
20269    * how to use it (BSD variants)  */
20270
20271 #include <fcntl.h>
20272 #include <sys/mman.h>
20273
20274 #if !STDC_HEADERS && !HAVE_STDLIB_H
20275 char *malloc ();
20276 #endif
20277
20278 /* This mess was copied from the GNU getpagesize.h.  */
20279 #if !HAVE_GETPAGESIZE
20280 /* Assume that all systems that can run configure have sys/param.h.  */
20281 # if !HAVE_SYS_PARAM_H
20282 #  define HAVE_SYS_PARAM_H 1
20283 # endif
20284
20285 # ifdef _SC_PAGESIZE
20286 #  define getpagesize() sysconf(_SC_PAGESIZE)
20287 # else /* no _SC_PAGESIZE */
20288 #  if HAVE_SYS_PARAM_H
20289 #   include <sys/param.h>
20290 #   ifdef EXEC_PAGESIZE
20291 #    define getpagesize() EXEC_PAGESIZE
20292 #   else /* no EXEC_PAGESIZE */
20293 #    ifdef NBPG
20294 #     define getpagesize() NBPG * CLSIZE
20295 #     ifndef CLSIZE
20296 #      define CLSIZE 1
20297 #     endif /* no CLSIZE */
20298 #    else /* no NBPG */
20299 #     ifdef NBPC
20300 #      define getpagesize() NBPC
20301 #     else /* no NBPC */
20302 #      ifdef PAGESIZE
20303 #       define getpagesize() PAGESIZE
20304 #      endif /* PAGESIZE */
20305 #     endif /* no NBPC */
20306 #    endif /* no NBPG */
20307 #   endif /* no EXEC_PAGESIZE */
20308 #  else /* no HAVE_SYS_PARAM_H */
20309 #   define getpagesize() 8192   /* punt totally */
20310 #  endif /* no HAVE_SYS_PARAM_H */
20311 # endif /* no _SC_PAGESIZE */
20312
20313 #endif /* no HAVE_GETPAGESIZE */
20314
20315 int
20316 main ()
20317 {
20318   char *data, *data2, *data3;
20319   int i, pagesize;
20320   int fd;
20321
20322   pagesize = getpagesize ();
20323
20324   /* First, make a file with some known garbage in it. */
20325   data = (char *) malloc (pagesize);
20326   if (!data)
20327     return 1;
20328   for (i = 0; i < pagesize; ++i)
20329     *(data + i) = rand ();
20330   umask (0);
20331   fd = creat ("conftest.mmap", 0600);
20332   if (fd < 0)
20333     return 1;
20334   if (write (fd, data, pagesize) != pagesize)
20335     return 1;
20336   close (fd);
20337
20338   /* Next, try to mmap the file at a fixed address which already has
20339      something else allocated at it.  If we can, also make sure that
20340      we see the same garbage.  */
20341   fd = open ("conftest.mmap", O_RDWR);
20342   if (fd < 0)
20343     return 1;
20344   data2 = (char *) malloc (2 * pagesize);
20345   if (!data2)
20346     return 1;
20347   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20348   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20349                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20350     return 1;
20351   for (i = 0; i < pagesize; ++i)
20352     if (*(data + i) != *(data2 + i))
20353       return 1;
20354
20355   /* Finally, make sure that changes to the mapped area do not
20356      percolate back to the file as seen by read().  (This is a bug on
20357      some variants of i386 svr4.0.)  */
20358   for (i = 0; i < pagesize; ++i)
20359     *(data2 + i) = *(data2 + i) + 1;
20360   data3 = (char *) malloc (pagesize);
20361   if (!data3)
20362     return 1;
20363   if (read (fd, data3, pagesize) != pagesize)
20364     return 1;
20365   for (i = 0; i < pagesize; ++i)
20366     if (*(data + i) != *(data3 + i))
20367       return 1;
20368   close (fd);
20369   return 0;
20370 }
20371 _ACEOF
20372 rm -f conftest$ac_exeext
20373 if { (ac_try="$ac_link"
20374 case "(($ac_try" in
20375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376   *) ac_try_echo=$ac_try;;
20377 esac
20378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379   (eval "$ac_link") 2>&5
20380   ac_status=$?
20381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20383   { (case "(($ac_try" in
20384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20385   *) ac_try_echo=$ac_try;;
20386 esac
20387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20388   (eval "$ac_try") 2>&5
20389   ac_status=$?
20390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391   (exit $ac_status); }; }; then
20392   ac_cv_func_mmap_fixed_mapped=yes
20393 else
20394   echo "$as_me: program exited with status $ac_status" >&5
20395 echo "$as_me: failed program was:" >&5
20396 sed 's/^/| /' conftest.$ac_ext >&5
20397
20398 ( exit $ac_status )
20399 ac_cv_func_mmap_fixed_mapped=no
20400 fi
20401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20402 fi
20403
20404
20405 fi
20406 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20407 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20408 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20409
20410 cat >>confdefs.h <<\_ACEOF
20411 #define HAVE_MMAP 1
20412 _ACEOF
20413
20414 fi
20415 rm -f conftest.mmap
20416
20417   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20418 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20419 if test "${ac_cv_func_mmap_file+set}" = set; then
20420   echo $ECHO_N "(cached) $ECHO_C" >&6
20421 else
20422    ac_ext=c
20423 ac_cpp='$CPP $CPPFLAGS'
20424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20427
20428   if test "$cross_compiling" = yes; then
20429   ac_cv_func_mmap_file=no
20430 else
20431   cat >conftest.$ac_ext <<_ACEOF
20432
20433     /* confdefs.h.  */
20434 _ACEOF
20435 cat confdefs.h >>conftest.$ac_ext
20436 cat >>conftest.$ac_ext <<_ACEOF
20437 /* end confdefs.h.  */
20438
20439 #include <sys/types.h>
20440 #include <sys/mman.h>
20441 #include <fcntl.h>
20442
20443 int
20444 main ()
20445 {
20446
20447   int fd;
20448   fd = creat ("foo",0777);
20449   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20450   unlink ("foo");
20451   return (fd != (int) MAP_FAILED);
20452   ;
20453   return 0;
20454 }
20455 _ACEOF
20456 rm -f conftest$ac_exeext
20457 if { (ac_try="$ac_link"
20458 case "(($ac_try" in
20459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460   *) ac_try_echo=$ac_try;;
20461 esac
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463   (eval "$ac_link") 2>&5
20464   ac_status=$?
20465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20467   { (case "(($ac_try" in
20468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469   *) ac_try_echo=$ac_try;;
20470 esac
20471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20472   (eval "$ac_try") 2>&5
20473   ac_status=$?
20474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475   (exit $ac_status); }; }; then
20476   ac_cv_func_mmap_file=yes
20477 else
20478   echo "$as_me: program exited with status $ac_status" >&5
20479 echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20481
20482 ( exit $ac_status )
20483 ac_cv_func_mmap_file=no
20484 fi
20485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20486 fi
20487
20488
20489   ac_ext=c
20490 ac_cpp='$CPP $CPPFLAGS'
20491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20494
20495
20496 fi
20497 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20498 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20499 if test "$ac_cv_func_mmap_file" = yes; then
20500
20501 cat >>confdefs.h <<\_ACEOF
20502 #define HAVE_MMAP_FILE
20503 _ACEOF
20504
20505    MMAP_FILE=yes
20506
20507 fi
20508
20509   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20510 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20511 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20512   echo $ECHO_N "(cached) $ECHO_C" >&6
20513 else
20514   if test "$llvm_cv_os_type" = "Interix" ; then
20515    ac_cv_need_dev_zero_for_mmap=yes
20516  else
20517    ac_cv_need_dev_zero_for_mmap=no
20518  fi
20519
20520 fi
20521 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20522 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20523 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20524
20525 cat >>confdefs.h <<\_ACEOF
20526 #define NEED_DEV_ZERO_FOR_MMAP 1
20527 _ACEOF
20528
20529 fi
20530
20531   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20532   then
20533     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20534 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20535   fi
20536   if test "$ac_cv_func_mmap_file" = "no"
20537   then
20538     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20539 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20540   fi
20541 fi
20542
20543 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20544 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20545 ac_ext=cpp
20546 ac_cpp='$CXXCPP $CPPFLAGS'
20547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20550
20551 cat >conftest.$ac_ext <<_ACEOF
20552 /* confdefs.h.  */
20553 _ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h.  */
20557 int main() {
20558         volatile unsigned long val = 1;
20559         __sync_synchronize();
20560         __sync_val_compare_and_swap(&val, 1, 0);
20561         __sync_add_and_fetch(&val, 1);
20562         __sync_sub_and_fetch(&val, 1);
20563         return 0;
20564       }
20565
20566 _ACEOF
20567 rm -f conftest.$ac_objext conftest$ac_exeext
20568 if { (ac_try="$ac_link"
20569 case "(($ac_try" in
20570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571   *) ac_try_echo=$ac_try;;
20572 esac
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574   (eval "$ac_link") 2>conftest.er1
20575   ac_status=$?
20576   grep -v '^ *+' conftest.er1 >conftest.err
20577   rm -f conftest.er1
20578   cat conftest.err >&5
20579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580   (exit $ac_status); } &&
20581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20582   { (case "(($ac_try" in
20583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584   *) ac_try_echo=$ac_try;;
20585 esac
20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587   (eval "$ac_try") 2>&5
20588   ac_status=$?
20589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590   (exit $ac_status); }; } &&
20591          { ac_try='test -s conftest$ac_exeext'
20592   { (case "(($ac_try" in
20593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594   *) ac_try_echo=$ac_try;;
20595 esac
20596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20597   (eval "$ac_try") 2>&5
20598   ac_status=$?
20599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600   (exit $ac_status); }; }; then
20601   ac_ext=c
20602 ac_cpp='$CPP $CPPFLAGS'
20603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20606
20607   { echo "$as_me:$LINENO: result: yes" >&5
20608 echo "${ECHO_T}yes" >&6; }
20609
20610 cat >>confdefs.h <<\_ACEOF
20611 #define LLVM_HAS_ATOMICS 1
20612 _ACEOF
20613
20614 else
20615   echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20617
20618         { echo "$as_me:$LINENO: result: no" >&5
20619 echo "${ECHO_T}no" >&6; }
20620
20621 cat >>confdefs.h <<\_ACEOF
20622 #define LLVM_HAS_ATOMICS 0
20623 _ACEOF
20624
20625   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20626 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20627 fi
20628
20629 rm -f core conftest.err conftest.$ac_objext \
20630       conftest$ac_exeext conftest.$ac_ext
20631
20632
20633 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20634   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20635 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20636 if test "${llvm_cv_linux_mixed+set}" = set; then
20637   echo $ECHO_N "(cached) $ECHO_C" >&6
20638 else
20639    ac_ext=c
20640 ac_cpp='$CPP $CPPFLAGS'
20641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20644
20645   cat >conftest.$ac_ext <<_ACEOF
20646 /* confdefs.h.  */
20647 _ACEOF
20648 cat confdefs.h >>conftest.$ac_ext
20649 cat >>conftest.$ac_ext <<_ACEOF
20650 /* end confdefs.h.  */
20651 #ifndef __x86_64__
20652        error: Not x86-64 even if uname says so!
20653       #endif
20654
20655 int
20656 main ()
20657 {
20658
20659   ;
20660   return 0;
20661 }
20662 _ACEOF
20663 rm -f conftest.$ac_objext
20664 if { (ac_try="$ac_compile"
20665 case "(($ac_try" in
20666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667   *) ac_try_echo=$ac_try;;
20668 esac
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670   (eval "$ac_compile") 2>conftest.er1
20671   ac_status=$?
20672   grep -v '^ *+' conftest.er1 >conftest.err
20673   rm -f conftest.er1
20674   cat conftest.err >&5
20675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); } &&
20677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20678   { (case "(($ac_try" in
20679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680   *) ac_try_echo=$ac_try;;
20681 esac
20682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683   (eval "$ac_try") 2>&5
20684   ac_status=$?
20685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686   (exit $ac_status); }; } &&
20687          { ac_try='test -s conftest.$ac_objext'
20688   { (case "(($ac_try" in
20689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690   *) ac_try_echo=$ac_try;;
20691 esac
20692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20693   (eval "$ac_try") 2>&5
20694   ac_status=$?
20695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696   (exit $ac_status); }; }; then
20697   llvm_cv_linux_mixed=no
20698 else
20699   echo "$as_me: failed program was:" >&5
20700 sed 's/^/| /' conftest.$ac_ext >&5
20701
20702         llvm_cv_linux_mixed=yes
20703 fi
20704
20705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20706   ac_ext=c
20707 ac_cpp='$CPP $CPPFLAGS'
20708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20711
20712
20713 fi
20714 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20715 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20716
20717   if test "$llvm_cv_linux_mixed" = "yes"; then
20718     llvm_cv_target_arch="x86"
20719     ARCH="x86"
20720   fi
20721 fi
20722
20723
20724 for ac_func in __dso_handle
20725 do
20726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20730   echo $ECHO_N "(cached) $ECHO_C" >&6
20731 else
20732   cat >conftest.$ac_ext <<_ACEOF
20733 /* confdefs.h.  */
20734 _ACEOF
20735 cat confdefs.h >>conftest.$ac_ext
20736 cat >>conftest.$ac_ext <<_ACEOF
20737 /* end confdefs.h.  */
20738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20740 #define $ac_func innocuous_$ac_func
20741
20742 /* System header to define __stub macros and hopefully few prototypes,
20743     which can conflict with char $ac_func (); below.
20744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20745     <limits.h> exists even on freestanding compilers.  */
20746
20747 #ifdef __STDC__
20748 # include <limits.h>
20749 #else
20750 # include <assert.h>
20751 #endif
20752
20753 #undef $ac_func
20754
20755 /* Override any GCC internal prototype to avoid an error.
20756    Use char because int might match the return type of a GCC
20757    builtin and then its argument prototype would still apply.  */
20758 #ifdef __cplusplus
20759 extern "C"
20760 #endif
20761 char $ac_func ();
20762 /* The GNU C library defines this for functions which it implements
20763     to always fail with ENOSYS.  Some functions are actually named
20764     something starting with __ and the normal name is an alias.  */
20765 #if defined __stub_$ac_func || defined __stub___$ac_func
20766 choke me
20767 #endif
20768
20769 int
20770 main ()
20771 {
20772 return $ac_func ();
20773   ;
20774   return 0;
20775 }
20776 _ACEOF
20777 rm -f conftest.$ac_objext conftest$ac_exeext
20778 if { (ac_try="$ac_link"
20779 case "(($ac_try" in
20780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781   *) ac_try_echo=$ac_try;;
20782 esac
20783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784   (eval "$ac_link") 2>conftest.er1
20785   ac_status=$?
20786   grep -v '^ *+' conftest.er1 >conftest.err
20787   rm -f conftest.er1
20788   cat conftest.err >&5
20789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790   (exit $ac_status); } &&
20791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20792   { (case "(($ac_try" in
20793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20794   *) ac_try_echo=$ac_try;;
20795 esac
20796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20797   (eval "$ac_try") 2>&5
20798   ac_status=$?
20799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800   (exit $ac_status); }; } &&
20801          { ac_try='test -s conftest$ac_exeext'
20802   { (case "(($ac_try" in
20803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804   *) ac_try_echo=$ac_try;;
20805 esac
20806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807   (eval "$ac_try") 2>&5
20808   ac_status=$?
20809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810   (exit $ac_status); }; }; then
20811   eval "$as_ac_var=yes"
20812 else
20813   echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20815
20816         eval "$as_ac_var=no"
20817 fi
20818
20819 rm -f core conftest.err conftest.$ac_objext \
20820       conftest$ac_exeext conftest.$ac_ext
20821 fi
20822 ac_res=`eval echo '${'$as_ac_var'}'`
20823                { echo "$as_me:$LINENO: result: $ac_res" >&5
20824 echo "${ECHO_T}$ac_res" >&6; }
20825 if test `eval echo '${'$as_ac_var'}'` = yes; then
20826   cat >>confdefs.h <<_ACEOF
20827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20828 _ACEOF
20829
20830 fi
20831 done
20832
20833
20834 SHLIBEXT=$libltdl_cv_shlibext
20835
20836
20837 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20838
20839
20840 if test "${prefix}" = "NONE" ; then
20841   prefix="/usr/local"
20842 fi
20843 eval LLVM_PREFIX="${prefix}";
20844 eval LLVM_BINDIR="${prefix}/bin";
20845 eval LLVM_LIBDIR="${prefix}/lib";
20846 eval LLVM_DATADIR="${prefix}/share/llvm";
20847 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20848 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20849 eval LLVM_INCLUDEDIR="${prefix}/include";
20850 eval LLVM_INFODIR="${prefix}/info";
20851 eval LLVM_MANDIR="${prefix}/man";
20852 LLVM_CONFIGTIME=`date`
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20865   LLVM_CONFIGTIME="(timestamp not enabled)"
20866 fi
20867
20868
20869 cat >>confdefs.h <<_ACEOF
20870 #define LLVM_PREFIX "$LLVM_PREFIX"
20871 _ACEOF
20872
20873
20874 cat >>confdefs.h <<_ACEOF
20875 #define LLVM_BINDIR "$LLVM_BINDIR"
20876 _ACEOF
20877
20878
20879 cat >>confdefs.h <<_ACEOF
20880 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20881 _ACEOF
20882
20883
20884 cat >>confdefs.h <<_ACEOF
20885 #define LLVM_DATADIR "$LLVM_DATADIR"
20886 _ACEOF
20887
20888
20889 cat >>confdefs.h <<_ACEOF
20890 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20891 _ACEOF
20892
20893
20894 cat >>confdefs.h <<_ACEOF
20895 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20896 _ACEOF
20897
20898
20899 cat >>confdefs.h <<_ACEOF
20900 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20901 _ACEOF
20902
20903
20904 cat >>confdefs.h <<_ACEOF
20905 #define LLVM_INFODIR "$LLVM_INFODIR"
20906 _ACEOF
20907
20908
20909 cat >>confdefs.h <<_ACEOF
20910 #define LLVM_MANDIR "$LLVM_MANDIR"
20911 _ACEOF
20912
20913
20914 cat >>confdefs.h <<_ACEOF
20915 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20916 _ACEOF
20917
20918
20919 cat >>confdefs.h <<_ACEOF
20920 #define LLVM_HOSTTRIPLE "$host"
20921 _ACEOF
20922
20923
20924 cat >>confdefs.h <<_ACEOF
20925 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20926 _ACEOF
20927
20928
20929 if test "$BINDINGS_TO_BUILD" = auto ; then
20930   BINDINGS_TO_BUILD=""
20931   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20932     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20933   fi
20934 fi
20935 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20936
20937
20938 ALL_BINDINGS=ocaml
20939
20940
20941 binding_prereqs_failed=0
20942 for a_binding in $BINDINGS_TO_BUILD ; do
20943   case "$a_binding" in
20944   ocaml)
20945     if test "x$OCAMLC" = x ; then
20946       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20947 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20948       binding_prereqs_failed=1
20949     fi
20950     if test "x$OCAMLDEP" = x ; then
20951       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20952 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20953       binding_prereqs_failed=1
20954     fi
20955     if test "x$OCAMLOPT" = x ; then
20956       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20957 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20958           fi
20959     if test "x$with_ocaml_libdir" != xauto ; then
20960       OCAML_LIBDIR=$with_ocaml_libdir
20961
20962     else
20963       ocaml_stdlib="`"$OCAMLC" -where`"
20964       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20965       then
20966         # ocaml stdlib is beneath our prefix; use stdlib
20967         OCAML_LIBDIR=$ocaml_stdlib
20968
20969       else
20970         # ocaml stdlib is outside our prefix; use libdir/ocaml
20971         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20972
20973       fi
20974     fi
20975     ;;
20976   esac
20977 done
20978 if test "$binding_prereqs_failed" = 1 ; then
20979   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20980 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20981    { (exit 1); exit 1; }; }
20982 fi
20983
20984 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20985 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20986 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20987   echo $ECHO_N "(cached) $ECHO_C" >&6
20988 else
20989    ac_ext=cpp
20990 ac_cpp='$CXXCPP $CPPFLAGS'
20991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20994
20995   oldcxxflags="$CXXFLAGS"
20996   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20997   cat >conftest.$ac_ext <<_ACEOF
20998 /* confdefs.h.  */
20999 _ACEOF
21000 cat confdefs.h >>conftest.$ac_ext
21001 cat >>conftest.$ac_ext <<_ACEOF
21002 /* end confdefs.h.  */
21003 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21004 int
21005 main ()
21006 {
21007 X<int>().f();
21008   ;
21009   return 0;
21010 }
21011 _ACEOF
21012 rm -f conftest.$ac_objext
21013 if { (ac_try="$ac_compile"
21014 case "(($ac_try" in
21015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016   *) ac_try_echo=$ac_try;;
21017 esac
21018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21019   (eval "$ac_compile") 2>conftest.er1
21020   ac_status=$?
21021   grep -v '^ *+' conftest.er1 >conftest.err
21022   rm -f conftest.er1
21023   cat conftest.err >&5
21024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025   (exit $ac_status); } &&
21026          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21027   { (case "(($ac_try" in
21028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21029   *) ac_try_echo=$ac_try;;
21030 esac
21031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21032   (eval "$ac_try") 2>&5
21033   ac_status=$?
21034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035   (exit $ac_status); }; } &&
21036          { ac_try='test -s conftest.$ac_objext'
21037   { (case "(($ac_try" in
21038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21039   *) ac_try_echo=$ac_try;;
21040 esac
21041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21042   (eval "$ac_try") 2>&5
21043   ac_status=$?
21044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045   (exit $ac_status); }; }; then
21046   llvm_cv_cxx_visibility_inlines_hidden=yes
21047 else
21048   echo "$as_me: failed program was:" >&5
21049 sed 's/^/| /' conftest.$ac_ext >&5
21050
21051         llvm_cv_cxx_visibility_inlines_hidden=no
21052 fi
21053
21054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21055   CXXFLAGS="$oldcxxflags"
21056   ac_ext=c
21057 ac_cpp='$CPP $CPPFLAGS'
21058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21061
21062
21063 fi
21064 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21065 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21066 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21067   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21068
21069 else
21070   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21071
21072 fi
21073
21074
21075 if test "$llvm_cv_link_use_r" = "yes" ; then
21076   RPATH="-Wl,-R"
21077 else
21078   RPATH="-Wl,-rpath"
21079 fi
21080
21081
21082 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21083   RDYNAMIC="-Wl,-export-dynamic"
21084 else
21085   RDYNAMIC=""
21086 fi
21087
21088
21089
21090 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21091
21092
21093
21094
21095
21096
21097 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21098
21099 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21100
21101 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21102
21103 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21104
21105 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21106
21107
21108 ac_config_files="$ac_config_files Makefile.config"
21109
21110
21111 ac_config_files="$ac_config_files llvm.spec"
21112
21113
21114 ac_config_files="$ac_config_files docs/doxygen.cfg"
21115
21116
21117 if test "${clang_src_root}" = ""; then
21118   clang_src_root="$srcdir/tools/clang"
21119 fi
21120 if test -f ${clang_src_root}/README.txt; then
21121     configh="include/clang/Config/config.h"
21122   doxy="docs/doxygen.cfg"
21123   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21124
21125   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21126
21127 fi
21128
21129 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21130
21131
21132 test "x$program_prefix" = "xNONE" && program_prefix=""
21133
21134
21135
21136 ac_config_commands="$ac_config_commands setup"
21137
21138 ac_config_commands="$ac_config_commands Makefile"
21139
21140
21141 ac_config_commands="$ac_config_commands Makefile.common"
21142
21143
21144 ac_config_commands="$ac_config_commands examples/Makefile"
21145
21146
21147 ac_config_commands="$ac_config_commands lib/Makefile"
21148
21149
21150 ac_config_commands="$ac_config_commands runtime/Makefile"
21151
21152
21153 ac_config_commands="$ac_config_commands test/Makefile"
21154
21155
21156 ac_config_commands="$ac_config_commands test/Makefile.tests"
21157
21158
21159 ac_config_commands="$ac_config_commands unittests/Makefile"
21160
21161
21162 ac_config_commands="$ac_config_commands tools/Makefile"
21163
21164
21165 ac_config_commands="$ac_config_commands utils/Makefile"
21166
21167
21168 ac_config_commands="$ac_config_commands projects/Makefile"
21169
21170
21171 ac_config_commands="$ac_config_commands bindings/Makefile"
21172
21173
21174 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21175
21176
21177
21178 cat >confcache <<\_ACEOF
21179 # This file is a shell script that caches the results of configure
21180 # tests run on this system so they can be shared between configure
21181 # scripts and configure runs, see configure's option --config-cache.
21182 # It is not useful on other systems.  If it contains results you don't
21183 # want to keep, you may remove or edit it.
21184 #
21185 # config.status only pays attention to the cache file if you give it
21186 # the --recheck option to rerun configure.
21187 #
21188 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21189 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21190 # following values.
21191
21192 _ACEOF
21193
21194 # The following way of writing the cache mishandles newlines in values,
21195 # but we know of no workaround that is simple, portable, and efficient.
21196 # So, we kill variables containing newlines.
21197 # Ultrix sh set writes to stderr and can't be redirected directly,
21198 # and sets the high bit in the cache file unless we assign to the vars.
21199 (
21200   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21201     eval ac_val=\$$ac_var
21202     case $ac_val in #(
21203     *${as_nl}*)
21204       case $ac_var in #(
21205       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21206 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21207       esac
21208       case $ac_var in #(
21209       _ | IFS | as_nl) ;; #(
21210       *) $as_unset $ac_var ;;
21211       esac ;;
21212     esac
21213   done
21214
21215   (set) 2>&1 |
21216     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21217     *${as_nl}ac_space=\ *)
21218       # `set' does not quote correctly, so add quotes (double-quote
21219       # substitution turns \\\\ into \\, and sed turns \\ into \).
21220       sed -n \
21221         "s/'/'\\\\''/g;
21222           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21223       ;; #(
21224     *)
21225       # `set' quotes correctly as required by POSIX, so do not add quotes.
21226       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21227       ;;
21228     esac |
21229     sort
21230 ) |
21231   sed '
21232      /^ac_cv_env_/b end
21233      t clear
21234      :clear
21235      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21236      t end
21237      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21238      :end' >>confcache
21239 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21240   if test -w "$cache_file"; then
21241     test "x$cache_file" != "x/dev/null" &&
21242       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21243 echo "$as_me: updating cache $cache_file" >&6;}
21244     cat confcache >$cache_file
21245   else
21246     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21247 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21248   fi
21249 fi
21250 rm -f confcache
21251
21252 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21253 # Let make expand exec_prefix.
21254 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21255
21256 DEFS=-DHAVE_CONFIG_H
21257
21258 ac_libobjs=
21259 ac_ltlibobjs=
21260 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21261   # 1. Remove the extension, and $U if already installed.
21262   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21263   ac_i=`echo "$ac_i" | sed "$ac_script"`
21264   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21265   #    will be set to the directory where LIBOBJS objects are built.
21266   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21267   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21268 done
21269 LIBOBJS=$ac_libobjs
21270
21271 LTLIBOBJS=$ac_ltlibobjs
21272
21273
21274 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21275   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21276 Usually this means the macro was only invoked conditionally." >&5
21277 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21278 Usually this means the macro was only invoked conditionally." >&2;}
21279    { (exit 1); exit 1; }; }
21280 fi
21281 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21282   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21283 Usually this means the macro was only invoked conditionally." >&5
21284 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21285 Usually this means the macro was only invoked conditionally." >&2;}
21286    { (exit 1); exit 1; }; }
21287 fi
21288
21289 : ${CONFIG_STATUS=./config.status}
21290 ac_clean_files_save=$ac_clean_files
21291 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21292 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21293 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21294 cat >$CONFIG_STATUS <<_ACEOF
21295 #! $SHELL
21296 # Generated by $as_me.
21297 # Run this file to recreate the current configuration.
21298 # Compiler output produced by configure, useful for debugging
21299 # configure, is in config.log if it exists.
21300
21301 debug=false
21302 ac_cs_recheck=false
21303 ac_cs_silent=false
21304 SHELL=\${CONFIG_SHELL-$SHELL}
21305 _ACEOF
21306
21307 cat >>$CONFIG_STATUS <<\_ACEOF
21308 ## --------------------- ##
21309 ## M4sh Initialization.  ##
21310 ## --------------------- ##
21311
21312 # Be Bourne compatible
21313 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21314   emulate sh
21315   NULLCMD=:
21316   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21317   # is contrary to our usage.  Disable this feature.
21318   alias -g '${1+"$@"}'='"$@"'
21319   setopt NO_GLOB_SUBST
21320 else
21321   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21322 fi
21323 BIN_SH=xpg4; export BIN_SH # for Tru64
21324 DUALCASE=1; export DUALCASE # for MKS sh
21325
21326
21327 # PATH needs CR
21328 # Avoid depending upon Character Ranges.
21329 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21330 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21331 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21332 as_cr_digits='0123456789'
21333 as_cr_alnum=$as_cr_Letters$as_cr_digits
21334
21335 # The user is always right.
21336 if test "${PATH_SEPARATOR+set}" != set; then
21337   echo "#! /bin/sh" >conf$$.sh
21338   echo  "exit 0"   >>conf$$.sh
21339   chmod +x conf$$.sh
21340   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21341     PATH_SEPARATOR=';'
21342   else
21343     PATH_SEPARATOR=:
21344   fi
21345   rm -f conf$$.sh
21346 fi
21347
21348 # Support unset when possible.
21349 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21350   as_unset=unset
21351 else
21352   as_unset=false
21353 fi
21354
21355
21356 # IFS
21357 # We need space, tab and new line, in precisely that order.  Quoting is
21358 # there to prevent editors from complaining about space-tab.
21359 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21360 # splitting by setting IFS to empty value.)
21361 as_nl='
21362 '
21363 IFS=" ""        $as_nl"
21364
21365 # Find who we are.  Look in the path if we contain no directory separator.
21366 case $0 in
21367   *[\\/]* ) as_myself=$0 ;;
21368   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21369 for as_dir in $PATH
21370 do
21371   IFS=$as_save_IFS
21372   test -z "$as_dir" && as_dir=.
21373   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21374 done
21375 IFS=$as_save_IFS
21376
21377      ;;
21378 esac
21379 # We did not find ourselves, most probably we were run as `sh COMMAND'
21380 # in which case we are not to be found in the path.
21381 if test "x$as_myself" = x; then
21382   as_myself=$0
21383 fi
21384 if test ! -f "$as_myself"; then
21385   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21386   { (exit 1); exit 1; }
21387 fi
21388
21389 # Work around bugs in pre-3.0 UWIN ksh.
21390 for as_var in ENV MAIL MAILPATH
21391 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21392 done
21393 PS1='$ '
21394 PS2='> '
21395 PS4='+ '
21396
21397 # NLS nuisances.
21398 for as_var in \
21399   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21400   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21401   LC_TELEPHONE LC_TIME
21402 do
21403   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21404     eval $as_var=C; export $as_var
21405   else
21406     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21407   fi
21408 done
21409
21410 # Required to use basename.
21411 if expr a : '\(a\)' >/dev/null 2>&1 &&
21412    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21413   as_expr=expr
21414 else
21415   as_expr=false
21416 fi
21417
21418 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21419   as_basename=basename
21420 else
21421   as_basename=false
21422 fi
21423
21424
21425 # Name of the executable.
21426 as_me=`$as_basename -- "$0" ||
21427 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21428          X"$0" : 'X\(//\)$' \| \
21429          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21430 echo X/"$0" |
21431     sed '/^.*\/\([^/][^/]*\)\/*$/{
21432             s//\1/
21433             q
21434           }
21435           /^X\/\(\/\/\)$/{
21436             s//\1/
21437             q
21438           }
21439           /^X\/\(\/\).*/{
21440             s//\1/
21441             q
21442           }
21443           s/.*/./; q'`
21444
21445 # CDPATH.
21446 $as_unset CDPATH
21447
21448
21449
21450   as_lineno_1=$LINENO
21451   as_lineno_2=$LINENO
21452   test "x$as_lineno_1" != "x$as_lineno_2" &&
21453   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21454
21455   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21456   # uniformly replaced by the line number.  The first 'sed' inserts a
21457   # line-number line after each line using $LINENO; the second 'sed'
21458   # does the real work.  The second script uses 'N' to pair each
21459   # line-number line with the line containing $LINENO, and appends
21460   # trailing '-' during substitution so that $LINENO is not a special
21461   # case at line end.
21462   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21463   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21464   # E. McMahon (1931-1989) for sed's syntax.  :-)
21465   sed -n '
21466     p
21467     /[$]LINENO/=
21468   ' <$as_myself |
21469     sed '
21470       s/[$]LINENO.*/&-/
21471       t lineno
21472       b
21473       :lineno
21474       N
21475       :loop
21476       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21477       t loop
21478       s/-\n.*//
21479     ' >$as_me.lineno &&
21480   chmod +x "$as_me.lineno" ||
21481     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21482    { (exit 1); exit 1; }; }
21483
21484   # Don't try to exec as it changes $[0], causing all sort of problems
21485   # (the dirname of $[0] is not the place where we might find the
21486   # original and so on.  Autoconf is especially sensitive to this).
21487   . "./$as_me.lineno"
21488   # Exit status is that of the last command.
21489   exit
21490 }
21491
21492
21493 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21494   as_dirname=dirname
21495 else
21496   as_dirname=false
21497 fi
21498
21499 ECHO_C= ECHO_N= ECHO_T=
21500 case `echo -n x` in
21501 -n*)
21502   case `echo 'x\c'` in
21503   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21504   *)   ECHO_C='\c';;
21505   esac;;
21506 *)
21507   ECHO_N='-n';;
21508 esac
21509
21510 if expr a : '\(a\)' >/dev/null 2>&1 &&
21511    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21512   as_expr=expr
21513 else
21514   as_expr=false
21515 fi
21516
21517 rm -f conf$$ conf$$.exe conf$$.file
21518 if test -d conf$$.dir; then
21519   rm -f conf$$.dir/conf$$.file
21520 else
21521   rm -f conf$$.dir
21522   mkdir conf$$.dir
21523 fi
21524 echo >conf$$.file
21525 if ln -s conf$$.file conf$$ 2>/dev/null; then
21526   as_ln_s='ln -s'
21527   # ... but there are two gotchas:
21528   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21529   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21530   # In both cases, we have to default to `cp -p'.
21531   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21532     as_ln_s='cp -p'
21533 elif ln conf$$.file conf$$ 2>/dev/null; then
21534   as_ln_s=ln
21535 else
21536   as_ln_s='cp -p'
21537 fi
21538 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21539 rmdir conf$$.dir 2>/dev/null
21540
21541 if mkdir -p . 2>/dev/null; then
21542   as_mkdir_p=:
21543 else
21544   test -d ./-p && rmdir ./-p
21545   as_mkdir_p=false
21546 fi
21547
21548 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21549 # systems may use methods other than mode bits to determine executability.
21550 cat >conf$$.file <<_ASEOF
21551 #! /bin/sh
21552 exit 0
21553 _ASEOF
21554 chmod +x conf$$.file
21555 if test -x conf$$.file >/dev/null 2>&1; then
21556   as_executable_p="test -x"
21557 else
21558   as_executable_p=:
21559 fi
21560 rm -f conf$$.file
21561
21562 # Sed expression to map a string onto a valid CPP name.
21563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21564
21565 # Sed expression to map a string onto a valid variable name.
21566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21567
21568
21569 exec 6>&1
21570
21571 # Save the log message, to keep $[0] and so on meaningful, and to
21572 # report actual input values of CONFIG_FILES etc. instead of their
21573 # values after options handling.
21574 ac_log="
21575 This file was extended by LLVM $as_me 3.3svn, which was
21576 generated by GNU Autoconf 2.60.  Invocation command line was
21577
21578   CONFIG_FILES    = $CONFIG_FILES
21579   CONFIG_HEADERS  = $CONFIG_HEADERS
21580   CONFIG_LINKS    = $CONFIG_LINKS
21581   CONFIG_COMMANDS = $CONFIG_COMMANDS
21582   $ $0 $@
21583
21584 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21585 "
21586
21587 _ACEOF
21588
21589 cat >>$CONFIG_STATUS <<_ACEOF
21590 # Files that config.status was made for.
21591 config_files="$ac_config_files"
21592 config_headers="$ac_config_headers"
21593 config_commands="$ac_config_commands"
21594
21595 _ACEOF
21596
21597 cat >>$CONFIG_STATUS <<\_ACEOF
21598 ac_cs_usage="\
21599 \`$as_me' instantiates files from templates according to the
21600 current configuration.
21601
21602 Usage: $0 [OPTIONS] [FILE]...
21603
21604   -h, --help       print this help, then exit
21605   -V, --version    print version number, then exit
21606   -q, --quiet      do not print progress messages
21607   -d, --debug      don't remove temporary files
21608       --recheck    update $as_me by reconfiguring in the same conditions
21609   --file=FILE[:TEMPLATE]
21610                    instantiate the configuration file FILE
21611   --header=FILE[:TEMPLATE]
21612                    instantiate the configuration header FILE
21613
21614 Configuration files:
21615 $config_files
21616
21617 Configuration headers:
21618 $config_headers
21619
21620 Configuration commands:
21621 $config_commands
21622
21623 Report bugs to <bug-autoconf@gnu.org>."
21624
21625 _ACEOF
21626 cat >>$CONFIG_STATUS <<_ACEOF
21627 ac_cs_version="\\
21628 LLVM config.status 3.3svn
21629 configured by $0, generated by GNU Autoconf 2.60,
21630   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21631
21632 Copyright (C) 2006 Free Software Foundation, Inc.
21633 This config.status script is free software; the Free Software Foundation
21634 gives unlimited permission to copy, distribute and modify it."
21635
21636 ac_pwd='$ac_pwd'
21637 srcdir='$srcdir'
21638 INSTALL='$INSTALL'
21639 _ACEOF
21640
21641 cat >>$CONFIG_STATUS <<\_ACEOF
21642 # If no file are specified by the user, then we need to provide default
21643 # value.  By we need to know if files were specified by the user.
21644 ac_need_defaults=:
21645 while test $# != 0
21646 do
21647   case $1 in
21648   --*=*)
21649     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21650     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21651     ac_shift=:
21652     ;;
21653   *)
21654     ac_option=$1
21655     ac_optarg=$2
21656     ac_shift=shift
21657     ;;
21658   esac
21659
21660   case $ac_option in
21661   # Handling of the options.
21662   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21663     ac_cs_recheck=: ;;
21664   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21665     echo "$ac_cs_version"; exit ;;
21666   --debug | --debu | --deb | --de | --d | -d )
21667     debug=: ;;
21668   --file | --fil | --fi | --f )
21669     $ac_shift
21670     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21671     ac_need_defaults=false;;
21672   --header | --heade | --head | --hea )
21673     $ac_shift
21674     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21675     ac_need_defaults=false;;
21676   --he | --h)
21677     # Conflict between --help and --header
21678     { echo "$as_me: error: ambiguous option: $1
21679 Try \`$0 --help' for more information." >&2
21680    { (exit 1); exit 1; }; };;
21681   --help | --hel | -h )
21682     echo "$ac_cs_usage"; exit ;;
21683   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21684   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21685     ac_cs_silent=: ;;
21686
21687   # This is an error.
21688   -*) { echo "$as_me: error: unrecognized option: $1
21689 Try \`$0 --help' for more information." >&2
21690    { (exit 1); exit 1; }; } ;;
21691
21692   *) ac_config_targets="$ac_config_targets $1"
21693      ac_need_defaults=false ;;
21694
21695   esac
21696   shift
21697 done
21698
21699 ac_configure_extra_args=
21700
21701 if $ac_cs_silent; then
21702   exec 6>/dev/null
21703   ac_configure_extra_args="$ac_configure_extra_args --silent"
21704 fi
21705
21706 _ACEOF
21707 cat >>$CONFIG_STATUS <<_ACEOF
21708 if \$ac_cs_recheck; then
21709   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21710   CONFIG_SHELL=$SHELL
21711   export CONFIG_SHELL
21712   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21713 fi
21714
21715 _ACEOF
21716 cat >>$CONFIG_STATUS <<\_ACEOF
21717 exec 5>>config.log
21718 {
21719   echo
21720   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21721 ## Running $as_me. ##
21722 _ASBOX
21723   echo "$ac_log"
21724 } >&5
21725
21726 _ACEOF
21727 cat >>$CONFIG_STATUS <<_ACEOF
21728 #
21729 # INIT-COMMANDS
21730 #
21731 llvm_src="${srcdir}"
21732
21733 _ACEOF
21734
21735 cat >>$CONFIG_STATUS <<\_ACEOF
21736
21737 # Handling of arguments.
21738 for ac_config_target in $ac_config_targets
21739 do
21740   case $ac_config_target in
21741     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21742     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21743     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21744     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21745     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21746     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21747     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21748     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21749     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21750     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21751     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21752     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21753     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21754     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21755     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21756     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21757     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21758     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21759     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21760     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21761     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21762     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21763     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21764     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21765     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21766     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21767     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21768
21769   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21770 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21771    { (exit 1); exit 1; }; };;
21772   esac
21773 done
21774
21775
21776 # If the user did not use the arguments to specify the items to instantiate,
21777 # then the envvar interface is used.  Set only those that are not.
21778 # We use the long form for the default assignment because of an extremely
21779 # bizarre bug on SunOS 4.1.3.
21780 if $ac_need_defaults; then
21781   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21782   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21783   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21784 fi
21785
21786 # Have a temporary directory for convenience.  Make it in the build tree
21787 # simply because there is no reason against having it here, and in addition,
21788 # creating and moving files from /tmp can sometimes cause problems.
21789 # Hook for its removal unless debugging.
21790 # Note that there is a small window in which the directory will not be cleaned:
21791 # after its creation but before its name has been assigned to `$tmp'.
21792 $debug ||
21793 {
21794   tmp=
21795   trap 'exit_status=$?
21796   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21797 ' 0
21798   trap '{ (exit 1); exit 1; }' 1 2 13 15
21799 }
21800 # Create a (secure) tmp directory for tmp files.
21801
21802 {
21803   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21804   test -n "$tmp" && test -d "$tmp"
21805 }  ||
21806 {
21807   tmp=./conf$$-$RANDOM
21808   (umask 077 && mkdir "$tmp")
21809 } ||
21810 {
21811    echo "$me: cannot create a temporary directory in ." >&2
21812    { (exit 1); exit 1; }
21813 }
21814
21815 #
21816 # Set up the sed scripts for CONFIG_FILES section.
21817 #
21818
21819 # No need to generate the scripts if there are no CONFIG_FILES.
21820 # This happens for instance when ./config.status config.h
21821 if test -n "$CONFIG_FILES"; then
21822
21823 _ACEOF
21824
21825
21826
21827 ac_delim='%!_!# '
21828 for ac_last_try in false false false false false :; do
21829   cat >conf$$subs.sed <<_ACEOF
21830 SHELL!$SHELL$ac_delim
21831 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21832 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21833 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21834 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21835 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21836 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21837 exec_prefix!$exec_prefix$ac_delim
21838 prefix!$prefix$ac_delim
21839 program_transform_name!$program_transform_name$ac_delim
21840 bindir!$bindir$ac_delim
21841 sbindir!$sbindir$ac_delim
21842 libexecdir!$libexecdir$ac_delim
21843 datarootdir!$datarootdir$ac_delim
21844 datadir!$datadir$ac_delim
21845 sysconfdir!$sysconfdir$ac_delim
21846 sharedstatedir!$sharedstatedir$ac_delim
21847 localstatedir!$localstatedir$ac_delim
21848 includedir!$includedir$ac_delim
21849 oldincludedir!$oldincludedir$ac_delim
21850 docdir!$docdir$ac_delim
21851 infodir!$infodir$ac_delim
21852 htmldir!$htmldir$ac_delim
21853 dvidir!$dvidir$ac_delim
21854 pdfdir!$pdfdir$ac_delim
21855 psdir!$psdir$ac_delim
21856 libdir!$libdir$ac_delim
21857 localedir!$localedir$ac_delim
21858 mandir!$mandir$ac_delim
21859 DEFS!$DEFS$ac_delim
21860 ECHO_C!$ECHO_C$ac_delim
21861 ECHO_N!$ECHO_N$ac_delim
21862 ECHO_T!$ECHO_T$ac_delim
21863 LIBS!$LIBS$ac_delim
21864 build_alias!$build_alias$ac_delim
21865 host_alias!$host_alias$ac_delim
21866 target_alias!$target_alias$ac_delim
21867 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21868 CC!$CC$ac_delim
21869 CFLAGS!$CFLAGS$ac_delim
21870 LDFLAGS!$LDFLAGS$ac_delim
21871 CPPFLAGS!$CPPFLAGS$ac_delim
21872 ac_ct_CC!$ac_ct_CC$ac_delim
21873 EXEEXT!$EXEEXT$ac_delim
21874 OBJEXT!$OBJEXT$ac_delim
21875 CXX!$CXX$ac_delim
21876 CXXFLAGS!$CXXFLAGS$ac_delim
21877 ac_ct_CXX!$ac_ct_CXX$ac_delim
21878 CPP!$CPP$ac_delim
21879 subdirs!$subdirs$ac_delim
21880 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21881 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21882 build!$build$ac_delim
21883 build_cpu!$build_cpu$ac_delim
21884 build_vendor!$build_vendor$ac_delim
21885 build_os!$build_os$ac_delim
21886 host!$host$ac_delim
21887 host_cpu!$host_cpu$ac_delim
21888 host_vendor!$host_vendor$ac_delim
21889 host_os!$host_os$ac_delim
21890 target!$target$ac_delim
21891 target_cpu!$target_cpu$ac_delim
21892 target_vendor!$target_vendor$ac_delim
21893 target_os!$target_os$ac_delim
21894 OS!$OS$ac_delim
21895 HOST_OS!$HOST_OS$ac_delim
21896 TARGET_OS!$TARGET_OS$ac_delim
21897 LINKALL!$LINKALL$ac_delim
21898 NOLINKALL!$NOLINKALL$ac_delim
21899 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21900 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21901 ARCH!$ARCH$ac_delim
21902 HOST_ARCH!$HOST_ARCH$ac_delim
21903 ENDIAN!$ENDIAN$ac_delim
21904 GREP!$GREP$ac_delim
21905 EGREP!$EGREP$ac_delim
21906 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21907 BUILD_CC!$BUILD_CC$ac_delim
21908 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21909 BUILD_CXX!$BUILD_CXX$ac_delim
21910 CVSBUILD!$CVSBUILD$ac_delim
21911 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21912 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21913 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21914 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21915 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21916 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21917 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21918 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21919 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21920 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21921 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
21922 JIT!$JIT$ac_delim
21923 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21924 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21925 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21926 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21927 _ACEOF
21928
21929   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21930     break
21931   elif $ac_last_try; then
21932     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21933 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21934    { (exit 1); exit 1; }; }
21935   else
21936     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21937   fi
21938 done
21939
21940 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21941 if test -n "$ac_eof"; then
21942   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21943   ac_eof=`expr $ac_eof + 1`
21944 fi
21945
21946 cat >>$CONFIG_STATUS <<_ACEOF
21947 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21948 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21949 _ACEOF
21950 sed '
21951 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21952 s/^/s,@/; s/!/@,|#_!!_#|/
21953 :n
21954 t n
21955 s/'"$ac_delim"'$/,g/; t
21956 s/$/\\/; p
21957 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21958 ' >>$CONFIG_STATUS <conf$$subs.sed
21959 rm -f conf$$subs.sed
21960 cat >>$CONFIG_STATUS <<_ACEOF
21961 CEOF$ac_eof
21962 _ACEOF
21963
21964
21965 ac_delim='%!_!# '
21966 for ac_last_try in false false false false false :; do
21967   cat >conf$$subs.sed <<_ACEOF
21968 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21969 ENABLE_PIC!$ENABLE_PIC$ac_delim
21970 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21971 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21972 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21973 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
21974 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21975 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21976 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21977 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21978 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21979 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21980 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21981 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21982 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21983 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21984 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21985 NM!$NM$ac_delim
21986 ifGNUmake!$ifGNUmake$ac_delim
21987 LN_S!$LN_S$ac_delim
21988 CMP!$CMP$ac_delim
21989 CP!$CP$ac_delim
21990 DATE!$DATE$ac_delim
21991 FIND!$FIND$ac_delim
21992 MKDIR!$MKDIR$ac_delim
21993 MV!$MV$ac_delim
21994 RANLIB!$RANLIB$ac_delim
21995 AR!$AR$ac_delim
21996 RM!$RM$ac_delim
21997 SED!$SED$ac_delim
21998 TAR!$TAR$ac_delim
21999 BINPWD!$BINPWD$ac_delim
22000 GRAPHVIZ!$GRAPHVIZ$ac_delim
22001 DOT!$DOT$ac_delim
22002 FDP!$FDP$ac_delim
22003 NEATO!$NEATO$ac_delim
22004 TWOPI!$TWOPI$ac_delim
22005 CIRCO!$CIRCO$ac_delim
22006 GV!$GV$ac_delim
22007 DOTTY!$DOTTY$ac_delim
22008 XDOT_PY!$XDOT_PY$ac_delim
22009 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22010 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22011 INSTALL_DATA!$INSTALL_DATA$ac_delim
22012 BZIP2!$BZIP2$ac_delim
22013 CAT!$CAT$ac_delim
22014 DOXYGEN!$DOXYGEN$ac_delim
22015 GROFF!$GROFF$ac_delim
22016 GZIPBIN!$GZIPBIN$ac_delim
22017 PDFROFF!$PDFROFF$ac_delim
22018 ZIP!$ZIP$ac_delim
22019 OCAMLC!$OCAMLC$ac_delim
22020 OCAMLOPT!$OCAMLOPT$ac_delim
22021 OCAMLDEP!$OCAMLDEP$ac_delim
22022 OCAMLDOC!$OCAMLDOC$ac_delim
22023 GAS!$GAS$ac_delim
22024 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22025 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22026 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22027 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22028 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22029 LIBADD_DL!$LIBADD_DL$ac_delim
22030 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22031 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22032 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22033 USE_UDIS86!$USE_UDIS86$ac_delim
22034 USE_OPROFILE!$USE_OPROFILE$ac_delim
22035 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22036 XML2CONFIG!$XML2CONFIG$ac_delim
22037 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22038 LIBXML2_INC!$LIBXML2_INC$ac_delim
22039 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22040 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22041 MMAP_FILE!$MMAP_FILE$ac_delim
22042 SHLIBEXT!$SHLIBEXT$ac_delim
22043 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22044 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22045 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22046 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22047 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22048 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22049 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22050 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22051 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22052 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22053 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22054 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22055 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22056 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22057 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22058 RPATH!$RPATH$ac_delim
22059 RDYNAMIC!$RDYNAMIC$ac_delim
22060 program_prefix!$program_prefix$ac_delim
22061 LIBOBJS!$LIBOBJS$ac_delim
22062 LTLIBOBJS!$LTLIBOBJS$ac_delim
22063 _ACEOF
22064
22065   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
22066     break
22067   elif $ac_last_try; then
22068     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22069 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22070    { (exit 1); exit 1; }; }
22071   else
22072     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22073   fi
22074 done
22075
22076 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22077 if test -n "$ac_eof"; then
22078   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22079   ac_eof=`expr $ac_eof + 1`
22080 fi
22081
22082 cat >>$CONFIG_STATUS <<_ACEOF
22083 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22084 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22085 _ACEOF
22086 sed '
22087 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22088 s/^/s,@/; s/!/@,|#_!!_#|/
22089 :n
22090 t n
22091 s/'"$ac_delim"'$/,g/; t
22092 s/$/\\/; p
22093 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22094 ' >>$CONFIG_STATUS <conf$$subs.sed
22095 rm -f conf$$subs.sed
22096 cat >>$CONFIG_STATUS <<_ACEOF
22097 :end
22098 s/|#_!!_#|//g
22099 CEOF$ac_eof
22100 _ACEOF
22101
22102
22103 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22104 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22105 # trailing colons and then remove the whole line if VPATH becomes empty
22106 # (actually we leave an empty line to preserve line numbers).
22107 if test "x$srcdir" = x.; then
22108   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22109 s/:*\$(srcdir):*/:/
22110 s/:*\${srcdir}:*/:/
22111 s/:*@srcdir@:*/:/
22112 s/^\([^=]*=[     ]*\):*/\1/
22113 s/:*$//
22114 s/^[^=]*=[       ]*$//
22115 }'
22116 fi
22117
22118 cat >>$CONFIG_STATUS <<\_ACEOF
22119 fi # test -n "$CONFIG_FILES"
22120
22121
22122 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22123 do
22124   case $ac_tag in
22125   :[FHLC]) ac_mode=$ac_tag; continue;;
22126   esac
22127   case $ac_mode$ac_tag in
22128   :[FHL]*:*);;
22129   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22130 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22131    { (exit 1); exit 1; }; };;
22132   :[FH]-) ac_tag=-:-;;
22133   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22134   esac
22135   ac_save_IFS=$IFS
22136   IFS=:
22137   set x $ac_tag
22138   IFS=$ac_save_IFS
22139   shift
22140   ac_file=$1
22141   shift
22142
22143   case $ac_mode in
22144   :L) ac_source=$1;;
22145   :[FH])
22146     ac_file_inputs=
22147     for ac_f
22148     do
22149       case $ac_f in
22150       -) ac_f="$tmp/stdin";;
22151       *) # Look for the file first in the build tree, then in the source tree
22152          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22153          # because $ac_f cannot contain `:'.
22154          test -f "$ac_f" ||
22155            case $ac_f in
22156            [\\/$]*) false;;
22157            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22158            esac ||
22159            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22160 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22161    { (exit 1); exit 1; }; };;
22162       esac
22163       ac_file_inputs="$ac_file_inputs $ac_f"
22164     done
22165
22166     # Let's still pretend it is `configure' which instantiates (i.e., don't
22167     # use $as_me), people would be surprised to read:
22168     #    /* config.h.  Generated by config.status.  */
22169     configure_input="Generated from "`IFS=:
22170           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22171     if test x"$ac_file" != x-; then
22172       configure_input="$ac_file.  $configure_input"
22173       { echo "$as_me:$LINENO: creating $ac_file" >&5
22174 echo "$as_me: creating $ac_file" >&6;}
22175     fi
22176
22177     case $ac_tag in
22178     *:-:* | *:-) cat >"$tmp/stdin";;
22179     esac
22180     ;;
22181   esac
22182
22183   ac_dir=`$as_dirname -- "$ac_file" ||
22184 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22185          X"$ac_file" : 'X\(//\)[^/]' \| \
22186          X"$ac_file" : 'X\(//\)$' \| \
22187          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22188 echo X"$ac_file" |
22189     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22190             s//\1/
22191             q
22192           }
22193           /^X\(\/\/\)[^/].*/{
22194             s//\1/
22195             q
22196           }
22197           /^X\(\/\/\)$/{
22198             s//\1/
22199             q
22200           }
22201           /^X\(\/\).*/{
22202             s//\1/
22203             q
22204           }
22205           s/.*/./; q'`
22206   { as_dir="$ac_dir"
22207   case $as_dir in #(
22208   -*) as_dir=./$as_dir;;
22209   esac
22210   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22211     as_dirs=
22212     while :; do
22213       case $as_dir in #(
22214       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22215       *) as_qdir=$as_dir;;
22216       esac
22217       as_dirs="'$as_qdir' $as_dirs"
22218       as_dir=`$as_dirname -- "$as_dir" ||
22219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22220          X"$as_dir" : 'X\(//\)[^/]' \| \
22221          X"$as_dir" : 'X\(//\)$' \| \
22222          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22223 echo X"$as_dir" |
22224     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22225             s//\1/
22226             q
22227           }
22228           /^X\(\/\/\)[^/].*/{
22229             s//\1/
22230             q
22231           }
22232           /^X\(\/\/\)$/{
22233             s//\1/
22234             q
22235           }
22236           /^X\(\/\).*/{
22237             s//\1/
22238             q
22239           }
22240           s/.*/./; q'`
22241       test -d "$as_dir" && break
22242     done
22243     test -z "$as_dirs" || eval "mkdir $as_dirs"
22244   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22245 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22246    { (exit 1); exit 1; }; }; }
22247   ac_builddir=.
22248
22249 case "$ac_dir" in
22250 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22251 *)
22252   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22253   # A ".." for each directory in $ac_dir_suffix.
22254   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22255   case $ac_top_builddir_sub in
22256   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22257   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22258   esac ;;
22259 esac
22260 ac_abs_top_builddir=$ac_pwd
22261 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22262 # for backward compatibility:
22263 ac_top_builddir=$ac_top_build_prefix
22264
22265 case $srcdir in
22266   .)  # We are building in place.
22267     ac_srcdir=.
22268     ac_top_srcdir=$ac_top_builddir_sub
22269     ac_abs_top_srcdir=$ac_pwd ;;
22270   [\\/]* | ?:[\\/]* )  # Absolute name.
22271     ac_srcdir=$srcdir$ac_dir_suffix;
22272     ac_top_srcdir=$srcdir
22273     ac_abs_top_srcdir=$srcdir ;;
22274   *) # Relative name.
22275     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22276     ac_top_srcdir=$ac_top_build_prefix$srcdir
22277     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22278 esac
22279 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22280
22281
22282   case $ac_mode in
22283   :F)
22284   #
22285   # CONFIG_FILE
22286   #
22287
22288   case $INSTALL in
22289   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22290   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22291   esac
22292 _ACEOF
22293
22294 cat >>$CONFIG_STATUS <<\_ACEOF
22295 # If the template does not know about datarootdir, expand it.
22296 # FIXME: This hack should be removed a few years after 2.60.
22297 ac_datarootdir_hack=; ac_datarootdir_seen=
22298
22299 case `sed -n '/datarootdir/ {
22300   p
22301   q
22302 }
22303 /@datadir@/p
22304 /@docdir@/p
22305 /@infodir@/p
22306 /@localedir@/p
22307 /@mandir@/p
22308 ' $ac_file_inputs` in
22309 *datarootdir*) ac_datarootdir_seen=yes;;
22310 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22311   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22312 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22313 _ACEOF
22314 cat >>$CONFIG_STATUS <<_ACEOF
22315   ac_datarootdir_hack='
22316   s&@datadir@&$datadir&g
22317   s&@docdir@&$docdir&g
22318   s&@infodir@&$infodir&g
22319   s&@localedir@&$localedir&g
22320   s&@mandir@&$mandir&g
22321     s&\\\${datarootdir}&$datarootdir&g' ;;
22322 esac
22323 _ACEOF
22324
22325 # Neutralize VPATH when `$srcdir' = `.'.
22326 # Shell code in configure.ac might set extrasub.
22327 # FIXME: do we really want to maintain this feature?
22328 cat >>$CONFIG_STATUS <<_ACEOF
22329   sed "$ac_vpsub
22330 $extrasub
22331 _ACEOF
22332 cat >>$CONFIG_STATUS <<\_ACEOF
22333 :t
22334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22335 s&@configure_input@&$configure_input&;t t
22336 s&@top_builddir@&$ac_top_builddir_sub&;t t
22337 s&@srcdir@&$ac_srcdir&;t t
22338 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22339 s&@top_srcdir@&$ac_top_srcdir&;t t
22340 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22341 s&@builddir@&$ac_builddir&;t t
22342 s&@abs_builddir@&$ac_abs_builddir&;t t
22343 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22344 s&@INSTALL@&$ac_INSTALL&;t t
22345 $ac_datarootdir_hack
22346 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22347
22348 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22349   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22350   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22351   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22352 which seems to be undefined.  Please make sure it is defined." >&5
22353 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22354 which seems to be undefined.  Please make sure it is defined." >&2;}
22355
22356   rm -f "$tmp/stdin"
22357   case $ac_file in
22358   -) cat "$tmp/out"; rm -f "$tmp/out";;
22359   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22360   esac
22361  ;;
22362   :H)
22363   #
22364   # CONFIG_HEADER
22365   #
22366 _ACEOF
22367
22368 # Transform confdefs.h into a sed script `conftest.defines', that
22369 # substitutes the proper values into config.h.in to produce config.h.
22370 rm -f conftest.defines conftest.tail
22371 # First, append a space to every undef/define line, to ease matching.
22372 echo 's/$/ /' >conftest.defines
22373 # Then, protect against being on the right side of a sed subst, or in
22374 # an unquoted here document, in config.status.  If some macros were
22375 # called several times there might be several #defines for the same
22376 # symbol, which is useless.  But do not sort them, since the last
22377 # AC_DEFINE must be honored.
22378 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22379 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22380 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22381 # PARAMS is the parameter list in the macro definition--in most cases, it's
22382 # just an empty string.
22383 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22384 ac_dB='\\)[      (].*,\\1define\\2'
22385 ac_dC=' '
22386 ac_dD=' ,'
22387
22388 uniq confdefs.h |
22389   sed -n '
22390         t rset
22391         :rset
22392         s/^[     ]*#[    ]*define[       ][      ]*//
22393         t ok
22394         d
22395         :ok
22396         s/[\\&,]/\\&/g
22397         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22398         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22399   ' >>conftest.defines
22400
22401 # Remove the space that was appended to ease matching.
22402 # Then replace #undef with comments.  This is necessary, for
22403 # example, in the case of _POSIX_SOURCE, which is predefined and required
22404 # on some systems where configure will not decide to define it.
22405 # (The regexp can be short, since the line contains either #define or #undef.)
22406 echo 's/ $//
22407 s,^[     #]*u.*,/* & */,' >>conftest.defines
22408
22409 # Break up conftest.defines:
22410 ac_max_sed_lines=50
22411
22412 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22413 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22414 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22415 # et cetera.
22416 ac_in='$ac_file_inputs'
22417 ac_out='"$tmp/out1"'
22418 ac_nxt='"$tmp/out2"'
22419
22420 while :
22421 do
22422   # Write a here document:
22423     cat >>$CONFIG_STATUS <<_ACEOF
22424     # First, check the format of the line:
22425     cat >"\$tmp/defines.sed" <<\\CEOF
22426 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22427 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22428 b
22429 :def
22430 _ACEOF
22431   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22432   echo 'CEOF
22433     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22434   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22435   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22436   grep . conftest.tail >/dev/null || break
22437   rm -f conftest.defines
22438   mv conftest.tail conftest.defines
22439 done
22440 rm -f conftest.defines conftest.tail
22441
22442 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22443 cat >>$CONFIG_STATUS <<\_ACEOF
22444   if test x"$ac_file" != x-; then
22445     echo "/* $configure_input  */" >"$tmp/config.h"
22446     cat "$ac_result" >>"$tmp/config.h"
22447     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22448       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22449 echo "$as_me: $ac_file is unchanged" >&6;}
22450     else
22451       rm -f $ac_file
22452       mv "$tmp/config.h" $ac_file
22453     fi
22454   else
22455     echo "/* $configure_input  */"
22456     cat "$ac_result"
22457   fi
22458   rm -f "$tmp/out12"
22459  ;;
22460
22461   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22462 echo "$as_me: executing $ac_file commands" >&6;}
22463  ;;
22464   esac
22465
22466
22467   case $ac_file$ac_mode in
22468     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22469    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22470     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22471    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22472     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22473    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22474     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22475    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22476     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22477    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22478     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22479    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22480     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22481    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22482     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22483    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22484     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22485    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22486     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22487    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22488     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22489    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22490     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22491    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22492     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22493    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22494
22495   esac
22496 done # for ac_tag
22497
22498
22499 { (exit 0); exit 0; }
22500 _ACEOF
22501 chmod +x $CONFIG_STATUS
22502 ac_clean_files=$ac_clean_files_save
22503
22504
22505 # configure is writing to config.log, and then calls config.status.
22506 # config.status does its own redirection, appending to config.log.
22507 # Unfortunately, on DOS this fails, as config.log is still kept open
22508 # by configure, so config.status won't be able to write to it; its
22509 # output is simply discarded.  So we exec the FD to /dev/null,
22510 # effectively closing config.log, so it can be properly (re)opened and
22511 # appended to by config.status.  When coming back to configure, we
22512 # need to make the FD available again.
22513 if test "$no_create" != yes; then
22514   ac_cs_success=:
22515   ac_config_status_args=
22516   test "$silent" = yes &&
22517     ac_config_status_args="$ac_config_status_args --quiet"
22518   exec 5>/dev/null
22519   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22520   exec 5>>config.log
22521   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22522   # would make configure fail if this is the last instruction.
22523   $ac_cs_success || { (exit 1); exit 1; }
22524 fi
22525
22526 #
22527 # CONFIG_SUBDIRS section.
22528 #
22529 if test "$no_recursion" != yes; then
22530
22531   # Remove --cache-file and --srcdir arguments so they do not pile up.
22532   ac_sub_configure_args=
22533   ac_prev=
22534   eval "set x $ac_configure_args"
22535   shift
22536   for ac_arg
22537   do
22538     if test -n "$ac_prev"; then
22539       ac_prev=
22540       continue
22541     fi
22542     case $ac_arg in
22543     -cache-file | --cache-file | --cache-fil | --cache-fi \
22544     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22545       ac_prev=cache_file ;;
22546     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22547     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22548     | --c=*)
22549       ;;
22550     --config-cache | -C)
22551       ;;
22552     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22553       ac_prev=srcdir ;;
22554     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22555       ;;
22556     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22557       ac_prev=prefix ;;
22558     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22559       ;;
22560     *)
22561       case $ac_arg in
22562       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22563       esac
22564       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22565     esac
22566   done
22567
22568   # Always prepend --prefix to ensure using the same prefix
22569   # in subdir configurations.
22570   ac_arg="--prefix=$prefix"
22571   case $ac_arg in
22572   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22573   esac
22574   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22575
22576   ac_popdir=`pwd`
22577   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22578
22579     # Do not complain, so a configure script can configure whichever
22580     # parts of a large source tree are present.
22581     test -d "$srcdir/$ac_dir" || continue
22582
22583     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22584     echo "$as_me:$LINENO: $ac_msg" >&5
22585     echo "$ac_msg" >&6
22586     { as_dir="$ac_dir"
22587   case $as_dir in #(
22588   -*) as_dir=./$as_dir;;
22589   esac
22590   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22591     as_dirs=
22592     while :; do
22593       case $as_dir in #(
22594       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22595       *) as_qdir=$as_dir;;
22596       esac
22597       as_dirs="'$as_qdir' $as_dirs"
22598       as_dir=`$as_dirname -- "$as_dir" ||
22599 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22600          X"$as_dir" : 'X\(//\)[^/]' \| \
22601          X"$as_dir" : 'X\(//\)$' \| \
22602          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22603 echo X"$as_dir" |
22604     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22605             s//\1/
22606             q
22607           }
22608           /^X\(\/\/\)[^/].*/{
22609             s//\1/
22610             q
22611           }
22612           /^X\(\/\/\)$/{
22613             s//\1/
22614             q
22615           }
22616           /^X\(\/\).*/{
22617             s//\1/
22618             q
22619           }
22620           s/.*/./; q'`
22621       test -d "$as_dir" && break
22622     done
22623     test -z "$as_dirs" || eval "mkdir $as_dirs"
22624   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22625 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22626    { (exit 1); exit 1; }; }; }
22627     ac_builddir=.
22628
22629 case "$ac_dir" in
22630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22631 *)
22632   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22633   # A ".." for each directory in $ac_dir_suffix.
22634   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22635   case $ac_top_builddir_sub in
22636   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22637   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22638   esac ;;
22639 esac
22640 ac_abs_top_builddir=$ac_pwd
22641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22642 # for backward compatibility:
22643 ac_top_builddir=$ac_top_build_prefix
22644
22645 case $srcdir in
22646   .)  # We are building in place.
22647     ac_srcdir=.
22648     ac_top_srcdir=$ac_top_builddir_sub
22649     ac_abs_top_srcdir=$ac_pwd ;;
22650   [\\/]* | ?:[\\/]* )  # Absolute name.
22651     ac_srcdir=$srcdir$ac_dir_suffix;
22652     ac_top_srcdir=$srcdir
22653     ac_abs_top_srcdir=$srcdir ;;
22654   *) # Relative name.
22655     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22656     ac_top_srcdir=$ac_top_build_prefix$srcdir
22657     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22658 esac
22659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22660
22661
22662     cd "$ac_dir"
22663
22664     # Check for guested configure; otherwise get Cygnus style configure.
22665     if test -f "$ac_srcdir/configure.gnu"; then
22666       ac_sub_configure=$ac_srcdir/configure.gnu
22667     elif test -f "$ac_srcdir/configure"; then
22668       ac_sub_configure=$ac_srcdir/configure
22669     elif test -f "$ac_srcdir/configure.in"; then
22670       # This should be Cygnus configure.
22671       ac_sub_configure=$ac_aux_dir/configure
22672     else
22673       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22674 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22675       ac_sub_configure=
22676     fi
22677
22678     # The recursion is here.
22679     if test -n "$ac_sub_configure"; then
22680       # Make the cache file name correct relative to the subdirectory.
22681       case $cache_file in
22682       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22683       *) # Relative name.
22684         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22685       esac
22686
22687       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22688 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22689       # The eval makes quoting arguments work.
22690       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22691            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22692         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22693 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22694    { (exit 1); exit 1; }; }
22695     fi
22696
22697     cd "$ac_popdir"
22698   done
22699 fi
22700