c76e6c007a6c516499fb89de5856371dbc59fa58
[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.1svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
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-2011 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.1svn'
565 PACKAGE_STRING='llvm 3.1svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
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 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_OPTIMIZED
686 ENABLE_PROFILING
687 DISABLE_ASSERTIONS
688 ENABLE_EXPENSIVE_CHECKS
689 EXPENSIVE_CHECKS
690 DEBUG_RUNTIME
691 DEBUG_SYMBOLS
692 JIT
693 TARGET_HAS_JIT
694 ENABLE_DOCS
695 ENABLE_DOXYGEN
696 ENABLE_THREADS
697 ENABLE_PTHREADS
698 ENABLE_PIC
699 ENABLE_SHARED
700 ENABLE_EMBED_STDCXX
701 ENABLE_TIMESTAMPS
702 TARGETS_TO_BUILD
703 LLVM_ENUM_TARGETS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
707 ENABLE_CBE_PRINTF_A
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 EXTRA_LD_OPTIONS
711 CLANG_SRC_ROOT
712 BINUTILS_INCDIR
713 NM
714 ifGNUmake
715 LN_S
716 CMP
717 CP
718 DATE
719 FIND
720 MKDIR
721 MV
722 RANLIB
723 AR
724 RM
725 SED
726 TAR
727 BINPWD
728 GRAPHVIZ
729 DOT
730 FDP
731 NEATO
732 TWOPI
733 CIRCO
734 GV
735 DOTTY
736 XDOT_PY
737 PERL
738 HAVE_PERL
739 INSTALL_PROGRAM
740 INSTALL_SCRIPT
741 INSTALL_DATA
742 BZIP2
743 CAT
744 DOXYGEN
745 GROFF
746 GZIPBIN
747 POD2HTML
748 POD2MAN
749 PDFROFF
750 RUNTEST
751 TCLSH
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 USE_UDIS86
767 USE_OPROFILE
768 HAVE_PTHREAD
769 HUGE_VAL_SANITY
770 MMAP_FILE
771 SHLIBEXT
772 SHLIBPATH_VAR
773 LLVM_PREFIX
774 LLVM_BINDIR
775 LLVM_LIBDIR
776 LLVM_DATADIR
777 LLVM_DOCSDIR
778 LLVM_ETCDIR
779 LLVM_INCLUDEDIR
780 LLVM_INFODIR
781 LLVM_MANDIR
782 LLVM_CONFIGTIME
783 BINDINGS_TO_BUILD
784 ALL_BINDINGS
785 OCAML_LIBDIR
786 ENABLE_VISIBILITY_INLINES_HIDDEN
787 RPATH
788 RDYNAMIC
789 LIBOBJS
790 LTLIBOBJS'
791 ac_subst_files=''
792       ac_precious_vars='build_alias
793 host_alias
794 target_alias
795 CC
796 CFLAGS
797 LDFLAGS
798 CPPFLAGS
799 CXX
800 CXXFLAGS
801 CCC
802 CPP'
803 ac_subdirs_all='projects/llvm-gcc
804 projects/test-suite
805 projects/llvm-test
806 projects/poolalloc
807 projects/llvm-poolalloc
808 projects/sample
809 projects/privbracket
810 projects/llvm-stacker
811 projects/llvm-reopt
812 projects/llvm-java
813 projects/llvm-tv
814 projects/safecode
815 projects/llvm-kernel
816 tools/polly'
817
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
837
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
863
864 ac_prev=
865 ac_dashdash=
866 for ac_option
867 do
868   # If the previous option needs an argument, assign it.
869   if test -n "$ac_prev"; then
870     eval $ac_prev=\$ac_option
871     ac_prev=
872     continue
873   fi
874
875   case $ac_option in
876   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877   *)    ac_optarg=yes ;;
878   esac
879
880   # Accept the important Cygnus configure options, so we can diagnose typos.
881
882   case $ac_dashdash$ac_option in
883   --)
884     ac_dashdash=yes ;;
885
886   -bindir | --bindir | --bindi | --bind | --bin | --bi)
887     ac_prev=bindir ;;
888   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889     bindir=$ac_optarg ;;
890
891   -build | --build | --buil | --bui | --bu)
892     ac_prev=build_alias ;;
893   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894     build_alias=$ac_optarg ;;
895
896   -cache-file | --cache-file | --cache-fil | --cache-fi \
897   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898     ac_prev=cache_file ;;
899   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901     cache_file=$ac_optarg ;;
902
903   --config-cache | -C)
904     cache_file=config.cache ;;
905
906   -datadir | --datadir | --datadi | --datad)
907     ac_prev=datadir ;;
908   -datadir=* | --datadir=* | --datadi=* | --datad=*)
909     datadir=$ac_optarg ;;
910
911   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912   | --dataroo | --dataro | --datar)
913     ac_prev=datarootdir ;;
914   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916     datarootdir=$ac_optarg ;;
917
918   -disable-* | --disable-*)
919     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920     # Reject names that are not valid shell variable names.
921     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923    { (exit 1); exit 1; }; }
924     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925     eval enable_$ac_feature=no ;;
926
927   -docdir | --docdir | --docdi | --doc | --do)
928     ac_prev=docdir ;;
929   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930     docdir=$ac_optarg ;;
931
932   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933     ac_prev=dvidir ;;
934   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935     dvidir=$ac_optarg ;;
936
937   -enable-* | --enable-*)
938     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939     # Reject names that are not valid shell variable names.
940     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942    { (exit 1); exit 1; }; }
943     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944     eval enable_$ac_feature=\$ac_optarg ;;
945
946   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948   | --exec | --exe | --ex)
949     ac_prev=exec_prefix ;;
950   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952   | --exec=* | --exe=* | --ex=*)
953     exec_prefix=$ac_optarg ;;
954
955   -gas | --gas | --ga | --g)
956     # Obsolete; use --with-gas.
957     with_gas=yes ;;
958
959   -help | --help | --hel | --he | -h)
960     ac_init_help=long ;;
961   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962     ac_init_help=recursive ;;
963   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964     ac_init_help=short ;;
965
966   -host | --host | --hos | --ho)
967     ac_prev=host_alias ;;
968   -host=* | --host=* | --hos=* | --ho=*)
969     host_alias=$ac_optarg ;;
970
971   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972     ac_prev=htmldir ;;
973   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974   | --ht=*)
975     htmldir=$ac_optarg ;;
976
977   -includedir | --includedir | --includedi | --included | --include \
978   | --includ | --inclu | --incl | --inc)
979     ac_prev=includedir ;;
980   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981   | --includ=* | --inclu=* | --incl=* | --inc=*)
982     includedir=$ac_optarg ;;
983
984   -infodir | --infodir | --infodi | --infod | --info | --inf)
985     ac_prev=infodir ;;
986   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987     infodir=$ac_optarg ;;
988
989   -libdir | --libdir | --libdi | --libd)
990     ac_prev=libdir ;;
991   -libdir=* | --libdir=* | --libdi=* | --libd=*)
992     libdir=$ac_optarg ;;
993
994   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995   | --libexe | --libex | --libe)
996     ac_prev=libexecdir ;;
997   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998   | --libexe=* | --libex=* | --libe=*)
999     libexecdir=$ac_optarg ;;
1000
1001   -localedir | --localedir | --localedi | --localed | --locale)
1002     ac_prev=localedir ;;
1003   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004     localedir=$ac_optarg ;;
1005
1006   -localstatedir | --localstatedir | --localstatedi | --localstated \
1007   | --localstate | --localstat | --localsta | --localst | --locals)
1008     ac_prev=localstatedir ;;
1009   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011     localstatedir=$ac_optarg ;;
1012
1013   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014     ac_prev=mandir ;;
1015   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016     mandir=$ac_optarg ;;
1017
1018   -nfp | --nfp | --nf)
1019     # Obsolete; use --without-fp.
1020     with_fp=no ;;
1021
1022   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023   | --no-cr | --no-c | -n)
1024     no_create=yes ;;
1025
1026   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028     no_recursion=yes ;;
1029
1030   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032   | --oldin | --oldi | --old | --ol | --o)
1033     ac_prev=oldincludedir ;;
1034   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037     oldincludedir=$ac_optarg ;;
1038
1039   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040     ac_prev=prefix ;;
1041   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042     prefix=$ac_optarg ;;
1043
1044   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045   | --program-pre | --program-pr | --program-p)
1046     ac_prev=program_prefix ;;
1047   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049     program_prefix=$ac_optarg ;;
1050
1051   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052   | --program-suf | --program-su | --program-s)
1053     ac_prev=program_suffix ;;
1054   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056     program_suffix=$ac_optarg ;;
1057
1058   -program-transform-name | --program-transform-name \
1059   | --program-transform-nam | --program-transform-na \
1060   | --program-transform-n | --program-transform- \
1061   | --program-transform | --program-transfor \
1062   | --program-transfo | --program-transf \
1063   | --program-trans | --program-tran \
1064   | --progr-tra | --program-tr | --program-t)
1065     ac_prev=program_transform_name ;;
1066   -program-transform-name=* | --program-transform-name=* \
1067   | --program-transform-nam=* | --program-transform-na=* \
1068   | --program-transform-n=* | --program-transform-=* \
1069   | --program-transform=* | --program-transfor=* \
1070   | --program-transfo=* | --program-transf=* \
1071   | --program-trans=* | --program-tran=* \
1072   | --progr-tra=* | --program-tr=* | --program-t=*)
1073     program_transform_name=$ac_optarg ;;
1074
1075   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076     ac_prev=pdfdir ;;
1077   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078     pdfdir=$ac_optarg ;;
1079
1080   -psdir | --psdir | --psdi | --psd | --ps)
1081     ac_prev=psdir ;;
1082   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083     psdir=$ac_optarg ;;
1084
1085   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086   | -silent | --silent | --silen | --sile | --sil)
1087     silent=yes ;;
1088
1089   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090     ac_prev=sbindir ;;
1091   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092   | --sbi=* | --sb=*)
1093     sbindir=$ac_optarg ;;
1094
1095   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097   | --sharedst | --shareds | --shared | --share | --shar \
1098   | --sha | --sh)
1099     ac_prev=sharedstatedir ;;
1100   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103   | --sha=* | --sh=*)
1104     sharedstatedir=$ac_optarg ;;
1105
1106   -site | --site | --sit)
1107     ac_prev=site ;;
1108   -site=* | --site=* | --sit=*)
1109     site=$ac_optarg ;;
1110
1111   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112     ac_prev=srcdir ;;
1113   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114     srcdir=$ac_optarg ;;
1115
1116   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117   | --syscon | --sysco | --sysc | --sys | --sy)
1118     ac_prev=sysconfdir ;;
1119   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121     sysconfdir=$ac_optarg ;;
1122
1123   -target | --target | --targe | --targ | --tar | --ta | --t)
1124     ac_prev=target_alias ;;
1125   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126     target_alias=$ac_optarg ;;
1127
1128   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129     verbose=yes ;;
1130
1131   -version | --version | --versio | --versi | --vers | -V)
1132     ac_init_version=: ;;
1133
1134   -with-* | --with-*)
1135     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136     # Reject names that are not valid shell variable names.
1137     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138       { echo "$as_me: error: invalid package name: $ac_package" >&2
1139    { (exit 1); exit 1; }; }
1140     ac_package=`echo $ac_package| sed 's/-/_/g'`
1141     eval with_$ac_package=\$ac_optarg ;;
1142
1143   -without-* | --without-*)
1144     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147       { echo "$as_me: error: invalid package name: $ac_package" >&2
1148    { (exit 1); exit 1; }; }
1149     ac_package=`echo $ac_package | sed 's/-/_/g'`
1150     eval with_$ac_package=no ;;
1151
1152   --x)
1153     # Obsolete; use --with-x.
1154     with_x=yes ;;
1155
1156   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157   | --x-incl | --x-inc | --x-in | --x-i)
1158     ac_prev=x_includes ;;
1159   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161     x_includes=$ac_optarg ;;
1162
1163   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165     ac_prev=x_libraries ;;
1166   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168     x_libraries=$ac_optarg ;;
1169
1170   -*) { echo "$as_me: error: unrecognized option: $ac_option
1171 Try \`$0 --help' for more information." >&2
1172    { (exit 1); exit 1; }; }
1173     ;;
1174
1175   *=*)
1176     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177     # Reject names that are not valid shell variable names.
1178     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180    { (exit 1); exit 1; }; }
1181     eval $ac_envvar=\$ac_optarg
1182     export $ac_envvar ;;
1183
1184   *)
1185     # FIXME: should be removed in autoconf 3.0.
1186     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190     ;;
1191
1192   esac
1193 done
1194
1195 if test -n "$ac_prev"; then
1196   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197   { echo "$as_me: error: missing argument to $ac_option" >&2
1198    { (exit 1); exit 1; }; }
1199 fi
1200
1201 # Be sure to have absolute directory names.
1202 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203                 datadir sysconfdir sharedstatedir localstatedir includedir \
1204                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205                 libdir localedir mandir
1206 do
1207   eval ac_val=\$$ac_var
1208   case $ac_val in
1209     [\\/$]* | ?:[\\/]* )  continue;;
1210     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211   esac
1212   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213    { (exit 1); exit 1; }; }
1214 done
1215
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1219 build=$build_alias
1220 host=$host_alias
1221 target=$target_alias
1222
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225   if test "x$build_alias" = x; then
1226     cross_compiling=maybe
1227     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228     If a cross compiler is detected then cross compile mode will be used." >&2
1229   elif test "x$build_alias" != "x$host_alias"; then
1230     cross_compiling=yes
1231   fi
1232 fi
1233
1234 ac_tool_prefix=
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237 test "$silent" = yes && exec 6>/dev/null
1238
1239
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243   { echo "$as_me: error: Working directory cannot be determined" >&2
1244    { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246   { echo "$as_me: error: pwd does not report name of working directory" >&2
1247    { (exit 1); exit 1; }; }
1248
1249
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252   ac_srcdir_defaulted=yes
1253   # Try the directory containing this script, then the parent directory.
1254   ac_confdir=`$as_dirname -- "$0" ||
1255 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256          X"$0" : 'X\(//\)[^/]' \| \
1257          X"$0" : 'X\(//\)$' \| \
1258          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259 echo X"$0" |
1260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261             s//\1/
1262             q
1263           }
1264           /^X\(\/\/\)[^/].*/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)$/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\).*/{
1273             s//\1/
1274             q
1275           }
1276           s/.*/./; q'`
1277   srcdir=$ac_confdir
1278   if test ! -r "$srcdir/$ac_unique_file"; then
1279     srcdir=..
1280   fi
1281 else
1282   ac_srcdir_defaulted=no
1283 fi
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287    { (exit 1); exit 1; }; }
1288 fi
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292    { (exit 1); exit 1; }; }
1293         pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296   srcdir=.
1297 fi
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306   eval ac_env_${ac_var}_value=\$${ac_var}
1307   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1310
1311 #
1312 # Report the --help message.
1313 #
1314 if test "$ac_init_help" = "long"; then
1315   # Omit some internal or obsolete options to make the list less imposing.
1316   # This message is too long to be a string in the A/UX 3.1 sh.
1317   cat <<_ACEOF
1318 \`configure' configures llvm 3.1svn to adapt to many kinds of systems.
1319
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE.  See below for descriptions of some of the useful variables.
1324
1325 Defaults for the options are specified in brackets.
1326
1327 Configuration:
1328   -h, --help              display this help and exit
1329       --help=short        display options specific to this package
1330       --help=recursive    display the short help of all the included packages
1331   -V, --version           display version information and exit
1332   -q, --quiet, --silent   do not print \`checking...' messages
1333       --cache-file=FILE   cache test results in FILE [disabled]
1334   -C, --config-cache      alias for \`--cache-file=config.cache'
1335   -n, --no-create         do not create output files
1336       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1337
1338 Installation directories:
1339   --prefix=PREFIX         install architecture-independent files in PREFIX
1340                           [$ac_default_prefix]
1341   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1342                           [PREFIX]
1343
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1348
1349 For better control, use the options below.
1350
1351 Fine tuning of the installation directories:
1352   --bindir=DIR           user executables [EPREFIX/bin]
1353   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1354   --libexecdir=DIR       program executables [EPREFIX/libexec]
1355   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1356   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1357   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1358   --libdir=DIR           object code libraries [EPREFIX/lib]
1359   --includedir=DIR       C header files [PREFIX/include]
1360   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1361   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1362   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1363   --infodir=DIR          info documentation [DATAROOTDIR/info]
1364   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1365   --mandir=DIR           man documentation [DATAROOTDIR/man]
1366   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1367   --htmldir=DIR          html documentation [DOCDIR]
1368   --dvidir=DIR           dvi documentation [DOCDIR]
1369   --pdfdir=DIR           pdf documentation [DOCDIR]
1370   --psdir=DIR            ps documentation [DOCDIR]
1371 _ACEOF
1372
1373   cat <<\_ACEOF
1374
1375 System types:
1376   --build=BUILD     configure for building on BUILD [guessed]
1377   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1378   --target=TARGET   configure for building compilers for TARGET [HOST]
1379 _ACEOF
1380 fi
1381
1382 if test -n "$ac_init_help"; then
1383   case $ac_init_help in
1384      short | recursive ) echo "Configuration of llvm 3.1svn:";;
1385    esac
1386   cat <<\_ACEOF
1387
1388 Optional Features:
1389   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1390   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1391   --enable-polly          Use polly if available (default is YES)
1392   --enable-optimized      Compile with optimizations enabled (default is NO)
1393   --enable-profiling      Compile with profiling enabled (default is NO)
1394   --enable-assertions     Compile with assertion checks enabled (default is
1395                           YES)
1396   --enable-expensive-checks
1397                           Compile with expensive debug checks enabled (default
1398                           is NO)
1399   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1400                           NO)
1401   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1402                           optimization is on and YES if it's off)
1403   --enable-jit            Enable Just In Time Compiling (default is YES)
1404   --enable-docs           Build documents (default is YES)
1405   --enable-doxygen        Build doxygen documentation (default is NO)
1406   --enable-threads        Use threads if available (default is YES)
1407   --enable-pthreads       Use pthreads if available (default is YES)
1408   --enable-pic            Build LLVM with Position Independent Code (default
1409                           is YES)
1410   --enable-shared         Build a shared library and link tools against it
1411                           (default is NO)
1412   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1413                           Win32 DLL (default is NO)
1414   --enable-timestamps     Enable embedding timestamp information in build
1415                           (default is YES)
1416   --enable-targets        Build specific host targets: all or
1417                           target1,target2,... Valid targets are: host, x86,
1418                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1419                           xcore, msp430, ptx, cbe, and cpp
1420                           (default=all)
1421   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1422                           %a (default is YES)
1423   --enable-bindings       Build specific language bindings:
1424                           all,auto,none,{binding-name} (default=auto)
1425   --enable-libffi         Check for the presence of libffi (default is NO)
1426   --enable-ltdl-install   install libltdl
1427
1428 Optional Packages:
1429   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1430   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1431   --with-optimize-option  Select the compiler options to use for optimized
1432                           builds
1433   --with-extra-options    Specify additional options to compile LLVM with
1434   --with-extra-ld-options Specify additional options to link LLVM with
1435   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1436                           is stdlib)
1437   --with-clang-srcdir     Directory to the out-of-tree Clang source
1438   --with-clang-resource-dir
1439                           Relative directory from the Clang binary for
1440                           resource files
1441   --with-c-include-dirs   Colon separated list of directories clang will
1442                           search for headers
1443   --with-cxx-include-root Directory with the libstdc++ headers.
1444   --with-cxx-include-arch Architecture of the libstdc++ headers.
1445   --with-cxx-include-32bit-dir
1446                           32 bit multilib dir.
1447   --with-cxx-include-64bit-dir
1448                           64 bit multilib directory.
1449   --with-binutils-include Specify path to binutils/include/ containing
1450                           plugin-api.h file for gold plugin.
1451   --with-bug-report-url   Specify the URL where bug reports should be
1452                           submitted (default=http://llvm.org/bugs/)
1453   --with-tclinclude       directory where tcl headers are
1454   --with-udis86=<path>    Use udis86 external x86 disassembler library
1455   --with-oprofile=<prefix>
1456                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1457
1458 Some influential environment variables:
1459   CC          C compiler command
1460   CFLAGS      C compiler flags
1461   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1462               nonstandard directory <lib dir>
1463   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1464               you have headers in a nonstandard directory <include dir>
1465   CXX         C++ compiler command
1466   CXXFLAGS    C++ compiler flags
1467   CPP         C preprocessor
1468
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1471
1472 Report bugs to <llvmbugs@cs.uiuc.edu>.
1473 _ACEOF
1474 ac_status=$?
1475 fi
1476
1477 if test "$ac_init_help" = "recursive"; then
1478   # If there are subdirs, report their specific --help.
1479   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480     test -d "$ac_dir" || continue
1481     ac_builddir=.
1482
1483 case "$ac_dir" in
1484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *)
1486   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1487   # A ".." for each directory in $ac_dir_suffix.
1488   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1489   case $ac_top_builddir_sub in
1490   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492   esac ;;
1493 esac
1494 ac_abs_top_builddir=$ac_pwd
1495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496 # for backward compatibility:
1497 ac_top_builddir=$ac_top_build_prefix
1498
1499 case $srcdir in
1500   .)  # We are building in place.
1501     ac_srcdir=.
1502     ac_top_srcdir=$ac_top_builddir_sub
1503     ac_abs_top_srcdir=$ac_pwd ;;
1504   [\\/]* | ?:[\\/]* )  # Absolute name.
1505     ac_srcdir=$srcdir$ac_dir_suffix;
1506     ac_top_srcdir=$srcdir
1507     ac_abs_top_srcdir=$srcdir ;;
1508   *) # Relative name.
1509     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510     ac_top_srcdir=$ac_top_build_prefix$srcdir
1511     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512 esac
1513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514
1515     cd "$ac_dir" || { ac_status=$?; continue; }
1516     # Check for guested configure.
1517     if test -f "$ac_srcdir/configure.gnu"; then
1518       echo &&
1519       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520     elif test -f "$ac_srcdir/configure"; then
1521       echo &&
1522       $SHELL "$ac_srcdir/configure" --help=recursive
1523     else
1524       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525     fi || ac_status=$?
1526     cd "$ac_pwd" || { ac_status=$?; break; }
1527   done
1528 fi
1529
1530 test -n "$ac_init_help" && exit $ac_status
1531 if $ac_init_version; then
1532   cat <<\_ACEOF
1533 llvm configure 3.1svn
1534 generated by GNU Autoconf 2.60
1535
1536 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1537 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1540
1541 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1542 _ACEOF
1543   exit
1544 fi
1545 cat >config.log <<_ACEOF
1546 This file contains any messages produced by compilers while
1547 running configure, to aid debugging if configure makes a mistake.
1548
1549 It was created by llvm $as_me 3.1svn, which was
1550 generated by GNU Autoconf 2.60.  Invocation command line was
1551
1552   $ $0 $@
1553
1554 _ACEOF
1555 exec 5>>config.log
1556 {
1557 cat <<_ASUNAME
1558 ## --------- ##
1559 ## Platform. ##
1560 ## --------- ##
1561
1562 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1563 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1564 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1565 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1566 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1567
1568 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1569 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1570
1571 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1572 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1573 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1574 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1575 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1576 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1577 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1578
1579 _ASUNAME
1580
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 for as_dir in $PATH
1583 do
1584   IFS=$as_save_IFS
1585   test -z "$as_dir" && as_dir=.
1586   echo "PATH: $as_dir"
1587 done
1588 IFS=$as_save_IFS
1589
1590 } >&5
1591
1592 cat >&5 <<_ACEOF
1593
1594
1595 ## ----------- ##
1596 ## Core tests. ##
1597 ## ----------- ##
1598
1599 _ACEOF
1600
1601
1602 # Keep a trace of the command line.
1603 # Strip out --no-create and --no-recursion so they do not pile up.
1604 # Strip out --silent because we don't want to record it for future runs.
1605 # Also quote any args containing shell meta-characters.
1606 # Make two passes to allow for proper duplicate-argument suppression.
1607 ac_configure_args=
1608 ac_configure_args0=
1609 ac_configure_args1=
1610 ac_must_keep_next=false
1611 for ac_pass in 1 2
1612 do
1613   for ac_arg
1614   do
1615     case $ac_arg in
1616     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1617     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618     | -silent | --silent | --silen | --sile | --sil)
1619       continue ;;
1620     *\'*)
1621       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1622     esac
1623     case $ac_pass in
1624     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1625     2)
1626       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1627       if test $ac_must_keep_next = true; then
1628         ac_must_keep_next=false # Got value, back to normal.
1629       else
1630         case $ac_arg in
1631           *=* | --config-cache | -C | -disable-* | --disable-* \
1632           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1633           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1634           | -with-* | --with-* | -without-* | --without-* | --x)
1635             case "$ac_configure_args0 " in
1636               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1637             esac
1638             ;;
1639           -* ) ac_must_keep_next=true ;;
1640         esac
1641       fi
1642       ac_configure_args="$ac_configure_args '$ac_arg'"
1643       ;;
1644     esac
1645   done
1646 done
1647 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1648 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1649
1650 # When interrupted or exit'd, cleanup temporary files, and complete
1651 # config.log.  We remove comments because anyway the quotes in there
1652 # would cause problems or look ugly.
1653 # WARNING: Use '\'' to represent an apostrophe within the trap.
1654 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1655 trap 'exit_status=$?
1656   # Save into config.log some information that might help in debugging.
1657   {
1658     echo
1659
1660     cat <<\_ASBOX
1661 ## ---------------- ##
1662 ## Cache variables. ##
1663 ## ---------------- ##
1664 _ASBOX
1665     echo
1666     # The following way of writing the cache mishandles newlines in values,
1667 (
1668   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1669     eval ac_val=\$$ac_var
1670     case $ac_val in #(
1671     *${as_nl}*)
1672       case $ac_var in #(
1673       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1674 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1675       esac
1676       case $ac_var in #(
1677       _ | IFS | as_nl) ;; #(
1678       *) $as_unset $ac_var ;;
1679       esac ;;
1680     esac
1681   done
1682   (set) 2>&1 |
1683     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1684     *${as_nl}ac_space=\ *)
1685       sed -n \
1686         "s/'\''/'\''\\\\'\'''\''/g;
1687           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1688       ;; #(
1689     *)
1690       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1691       ;;
1692     esac |
1693     sort
1694 )
1695     echo
1696
1697     cat <<\_ASBOX
1698 ## ----------------- ##
1699 ## Output variables. ##
1700 ## ----------------- ##
1701 _ASBOX
1702     echo
1703     for ac_var in $ac_subst_vars
1704     do
1705       eval ac_val=\$$ac_var
1706       case $ac_val in
1707       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1708       esac
1709       echo "$ac_var='\''$ac_val'\''"
1710     done | sort
1711     echo
1712
1713     if test -n "$ac_subst_files"; then
1714       cat <<\_ASBOX
1715 ## ------------------- ##
1716 ## File substitutions. ##
1717 ## ------------------- ##
1718 _ASBOX
1719       echo
1720       for ac_var in $ac_subst_files
1721       do
1722         eval ac_val=\$$ac_var
1723         case $ac_val in
1724         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1725         esac
1726         echo "$ac_var='\''$ac_val'\''"
1727       done | sort
1728       echo
1729     fi
1730
1731     if test -s confdefs.h; then
1732       cat <<\_ASBOX
1733 ## ----------- ##
1734 ## confdefs.h. ##
1735 ## ----------- ##
1736 _ASBOX
1737       echo
1738       cat confdefs.h
1739       echo
1740     fi
1741     test "$ac_signal" != 0 &&
1742       echo "$as_me: caught signal $ac_signal"
1743     echo "$as_me: exit $exit_status"
1744   } >&5
1745   rm -f core *.core core.conftest.* &&
1746     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1747     exit $exit_status
1748 ' 0
1749 for ac_signal in 1 2 13 15; do
1750   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1751 done
1752 ac_signal=0
1753
1754 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1755 rm -f -r conftest* confdefs.h
1756
1757 # Predefined preprocessor variables.
1758
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_NAME "$PACKAGE_NAME"
1761 _ACEOF
1762
1763
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1766 _ACEOF
1767
1768
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1771 _ACEOF
1772
1773
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_STRING "$PACKAGE_STRING"
1776 _ACEOF
1777
1778
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1781 _ACEOF
1782
1783
1784 # Let the site file select an alternate cache file if it wants to.
1785 # Prefer explicitly selected file to automatically selected ones.
1786 if test -n "$CONFIG_SITE"; then
1787   set x "$CONFIG_SITE"
1788 elif test "x$prefix" != xNONE; then
1789   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1790 else
1791   set x "$ac_default_prefix/share/config.site" \
1792         "$ac_default_prefix/etc/config.site"
1793 fi
1794 shift
1795 for ac_site_file
1796 do
1797   if test -r "$ac_site_file"; then
1798     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1799 echo "$as_me: loading site script $ac_site_file" >&6;}
1800     sed 's/^/| /' "$ac_site_file" >&5
1801     . "$ac_site_file"
1802   fi
1803 done
1804
1805 if test -r "$cache_file"; then
1806   # Some versions of bash will fail to source /dev/null (special
1807   # files actually), so we avoid doing that.
1808   if test -f "$cache_file"; then
1809     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1810 echo "$as_me: loading cache $cache_file" >&6;}
1811     case $cache_file in
1812       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1813       *)                      . "./$cache_file";;
1814     esac
1815   fi
1816 else
1817   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1818 echo "$as_me: creating cache $cache_file" >&6;}
1819   >$cache_file
1820 fi
1821
1822 # Check that the precious variables saved in the cache have kept the same
1823 # value.
1824 ac_cache_corrupted=false
1825 for ac_var in $ac_precious_vars; do
1826   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1827   eval ac_new_set=\$ac_env_${ac_var}_set
1828   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1829   eval ac_new_val=\$ac_env_${ac_var}_value
1830   case $ac_old_set,$ac_new_set in
1831     set,)
1832       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1833 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1834       ac_cache_corrupted=: ;;
1835     ,set)
1836       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1838       ac_cache_corrupted=: ;;
1839     ,);;
1840     *)
1841       if test "x$ac_old_val" != "x$ac_new_val"; then
1842         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1843 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1844         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1845 echo "$as_me:   former value:  $ac_old_val" >&2;}
1846         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1847 echo "$as_me:   current value: $ac_new_val" >&2;}
1848         ac_cache_corrupted=:
1849       fi;;
1850   esac
1851   # Pass precious variables to config.status.
1852   if test "$ac_new_set" = set; then
1853     case $ac_new_val in
1854     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1855     *) ac_arg=$ac_var=$ac_new_val ;;
1856     esac
1857     case " $ac_configure_args " in
1858       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1859       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1860     esac
1861   fi
1862 done
1863 if $ac_cache_corrupted; then
1864   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1865 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1866   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1867 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1868    { (exit 1); exit 1; }; }
1869 fi
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895 ac_ext=c
1896 ac_cpp='$CPP $CPPFLAGS'
1897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1900
1901
1902
1903 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1904
1905
1906
1907
1908
1909
1910
1911 ac_aux_dir=
1912 for ac_dir in autoconf "$srcdir"/autoconf; do
1913   if test -f "$ac_dir/install-sh"; then
1914     ac_aux_dir=$ac_dir
1915     ac_install_sh="$ac_aux_dir/install-sh -c"
1916     break
1917   elif test -f "$ac_dir/install.sh"; then
1918     ac_aux_dir=$ac_dir
1919     ac_install_sh="$ac_aux_dir/install.sh -c"
1920     break
1921   elif test -f "$ac_dir/shtool"; then
1922     ac_aux_dir=$ac_dir
1923     ac_install_sh="$ac_aux_dir/shtool install -c"
1924     break
1925   fi
1926 done
1927 if test -z "$ac_aux_dir"; then
1928   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1929 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1930    { (exit 1); exit 1; }; }
1931 fi
1932
1933 # These three variables are undocumented and unsupported,
1934 # and are intended to be withdrawn in a future Autoconf release.
1935 # They can cause serious problems if a builder's source tree is in a directory
1936 # whose full name contains unusual characters.
1937 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1938 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1939 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1940
1941
1942
1943 if test ${srcdir} != "." ; then
1944   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1945     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1946 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1947    { (exit 1); exit 1; }; }
1948   fi
1949 fi
1950
1951 ac_ext=c
1952 ac_cpp='$CPP $CPPFLAGS'
1953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956 if test -n "$ac_tool_prefix"; then
1957   for ac_prog in clang llvm-gcc gcc
1958   do
1959     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1963 if test "${ac_cv_prog_CC+set}" = set; then
1964   echo $ECHO_N "(cached) $ECHO_C" >&6
1965 else
1966   if test -n "$CC"; then
1967   ac_cv_prog_CC="$CC" # Let the user override the test.
1968 else
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 for as_dir in $PATH
1971 do
1972   IFS=$as_save_IFS
1973   test -z "$as_dir" && as_dir=.
1974   for ac_exec_ext in '' $ac_executable_extensions; do
1975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1976     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978     break 2
1979   fi
1980 done
1981 done
1982 IFS=$as_save_IFS
1983
1984 fi
1985 fi
1986 CC=$ac_cv_prog_CC
1987 if test -n "$CC"; then
1988   { echo "$as_me:$LINENO: result: $CC" >&5
1989 echo "${ECHO_T}$CC" >&6; }
1990 else
1991   { echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6; }
1993 fi
1994
1995
1996     test -n "$CC" && break
1997   done
1998 fi
1999 if test -z "$CC"; then
2000   ac_ct_CC=$CC
2001   for ac_prog in clang llvm-gcc gcc
2002 do
2003   # Extract the first word of "$ac_prog", so it can be a program name with args.
2004 set dummy $ac_prog; ac_word=$2
2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   if test -n "$ac_ct_CC"; then
2011   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016   IFS=$as_save_IFS
2017   test -z "$as_dir" && as_dir=.
2018   for ac_exec_ext in '' $ac_executable_extensions; do
2019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2020     ac_cv_prog_ac_ct_CC="$ac_prog"
2021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022     break 2
2023   fi
2024 done
2025 done
2026 IFS=$as_save_IFS
2027
2028 fi
2029 fi
2030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031 if test -n "$ac_ct_CC"; then
2032   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033 echo "${ECHO_T}$ac_ct_CC" >&6; }
2034 else
2035   { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2037 fi
2038
2039
2040   test -n "$ac_ct_CC" && break
2041 done
2042
2043   if test "x$ac_ct_CC" = x; then
2044     CC=""
2045   else
2046     case $cross_compiling:$ac_tool_warned in
2047 yes:)
2048 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2049 whose name does not start with the host triplet.  If you think this
2050 configuration is useful to you, please write to autoconf@gnu.org." >&5
2051 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2052 whose name does not start with the host triplet.  If you think this
2053 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2054 ac_tool_warned=yes ;;
2055 esac
2056     CC=$ac_ct_CC
2057   fi
2058 fi
2059
2060
2061 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: no acceptable C compiler found in \$PATH
2064 See \`config.log' for more details." >&2;}
2065    { (exit 1); exit 1; }; }
2066
2067 # Provide some information about the compiler.
2068 echo "$as_me:$LINENO: checking for C compiler version" >&5
2069 ac_compiler=`set X $ac_compile; echo $2`
2070 { (ac_try="$ac_compiler --version >&5"
2071 case "(($ac_try" in
2072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073   *) ac_try_echo=$ac_try;;
2074 esac
2075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2076   (eval "$ac_compiler --version >&5") 2>&5
2077   ac_status=$?
2078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079   (exit $ac_status); }
2080 { (ac_try="$ac_compiler -v >&5"
2081 case "(($ac_try" in
2082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083   *) ac_try_echo=$ac_try;;
2084 esac
2085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2086   (eval "$ac_compiler -v >&5") 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); }
2090 { (ac_try="$ac_compiler -V >&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 -V >&5") 2>&5
2097   ac_status=$?
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); }
2100
2101 cat >conftest.$ac_ext <<_ACEOF
2102 /* confdefs.h.  */
2103 _ACEOF
2104 cat confdefs.h >>conftest.$ac_ext
2105 cat >>conftest.$ac_ext <<_ACEOF
2106 /* end confdefs.h.  */
2107
2108 int
2109 main ()
2110 {
2111
2112   ;
2113   return 0;
2114 }
2115 _ACEOF
2116 ac_clean_files_save=$ac_clean_files
2117 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2118 # Try to create an executable without -o first, disregard a.out.
2119 # It will help us diagnose broken compilers, and finding out an intuition
2120 # of exeext.
2121 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2122 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2123 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2124 #
2125 # List of possible output files, starting from the most likely.
2126 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2127 # only as a last resort.  b.out is created by i960 compilers.
2128 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2129 #
2130 # The IRIX 6 linker writes into existing files which may not be
2131 # executable, retaining their permissions.  Remove them first so a
2132 # subsequent execution test works.
2133 ac_rmfiles=
2134 for ac_file in $ac_files
2135 do
2136   case $ac_file in
2137     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2138     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2139   esac
2140 done
2141 rm -f $ac_rmfiles
2142
2143 if { (ac_try="$ac_link_default"
2144 case "(($ac_try" in
2145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146   *) ac_try_echo=$ac_try;;
2147 esac
2148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2149   (eval "$ac_link_default") 2>&5
2150   ac_status=$?
2151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152   (exit $ac_status); }; then
2153   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2154 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2155 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2156 # so that the user can short-circuit this test for compilers unknown to
2157 # Autoconf.
2158 for ac_file in $ac_files
2159 do
2160   test -f "$ac_file" || continue
2161   case $ac_file in
2162     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2163         ;;
2164     [ab].out )
2165         # We found the default executable, but exeext='' is most
2166         # certainly right.
2167         break;;
2168     *.* )
2169         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2170         then :; else
2171            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2172         fi
2173         # We set ac_cv_exeext here because the later test for it is not
2174         # safe: cross compilers may not add the suffix if given an `-o'
2175         # argument, so we may need to know it at that point already.
2176         # Even if this section looks crufty: it has the advantage of
2177         # actually working.
2178         break;;
2179     * )
2180         break;;
2181   esac
2182 done
2183 test "$ac_cv_exeext" = no && ac_cv_exeext=
2184
2185 else
2186   echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2188
2189 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: C compiler cannot create executables
2192 See \`config.log' for more details." >&2;}
2193    { (exit 77); exit 77; }; }
2194 fi
2195
2196 ac_exeext=$ac_cv_exeext
2197 { echo "$as_me:$LINENO: result: $ac_file" >&5
2198 echo "${ECHO_T}$ac_file" >&6; }
2199
2200 # Check that the compiler produces executables we can run.  If not, either
2201 # the compiler is broken, or we cross compile.
2202 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2203 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2204 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2205 # If not cross compiling, check that we can run a simple program.
2206 if test "$cross_compiling" != yes; then
2207   if { ac_try='./$ac_file'
2208   { (case "(($ac_try" in
2209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210   *) ac_try_echo=$ac_try;;
2211 esac
2212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213   (eval "$ac_try") 2>&5
2214   ac_status=$?
2215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216   (exit $ac_status); }; }; then
2217     cross_compiling=no
2218   else
2219     if test "$cross_compiling" = maybe; then
2220         cross_compiling=yes
2221     else
2222         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2223 If you meant to cross compile, use \`--host'.
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&2;}
2228    { (exit 1); exit 1; }; }
2229     fi
2230   fi
2231 fi
2232 { echo "$as_me:$LINENO: result: yes" >&5
2233 echo "${ECHO_T}yes" >&6; }
2234
2235 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2236 ac_clean_files=$ac_clean_files_save
2237 # Check that the compiler produces executables we can run.  If not, either
2238 # the compiler is broken, or we cross compile.
2239 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2240 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2241 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2242 echo "${ECHO_T}$cross_compiling" >&6; }
2243
2244 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2245 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2246 if { (ac_try="$ac_link"
2247 case "(($ac_try" in
2248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249   *) ac_try_echo=$ac_try;;
2250 esac
2251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2252   (eval "$ac_link") 2>&5
2253   ac_status=$?
2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255   (exit $ac_status); }; then
2256   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2257 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2258 # work properly (i.e., refer to `conftest.exe'), while it won't with
2259 # `rm'.
2260 for ac_file in conftest.exe conftest conftest.*; do
2261   test -f "$ac_file" || continue
2262   case $ac_file in
2263     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2264     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2265           break;;
2266     * ) break;;
2267   esac
2268 done
2269 else
2270   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274    { (exit 1); exit 1; }; }
2275 fi
2276
2277 rm -f conftest$ac_cv_exeext
2278 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2280
2281 rm -f conftest.$ac_ext
2282 EXEEXT=$ac_cv_exeext
2283 ac_exeext=$EXEEXT
2284 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2286 if test "${ac_cv_objext+set}" = set; then
2287   echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289   cat >conftest.$ac_ext <<_ACEOF
2290 /* confdefs.h.  */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h.  */
2295
2296 int
2297 main ()
2298 {
2299
2300   ;
2301   return 0;
2302 }
2303 _ACEOF
2304 rm -f conftest.o conftest.obj
2305 if { (ac_try="$ac_compile"
2306 case "(($ac_try" in
2307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308   *) ac_try_echo=$ac_try;;
2309 esac
2310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2311   (eval "$ac_compile") 2>&5
2312   ac_status=$?
2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314   (exit $ac_status); }; then
2315   for ac_file in conftest.o conftest.obj conftest.*; do
2316   test -f "$ac_file" || continue;
2317   case $ac_file in
2318     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2319     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2320        break;;
2321   esac
2322 done
2323 else
2324   echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2326
2327 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2328 See \`config.log' for more details." >&5
2329 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2330 See \`config.log' for more details." >&2;}
2331    { (exit 1); exit 1; }; }
2332 fi
2333
2334 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2335 fi
2336 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2337 echo "${ECHO_T}$ac_cv_objext" >&6; }
2338 OBJEXT=$ac_cv_objext
2339 ac_objext=$OBJEXT
2340 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2341 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2342 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2343   echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345   cat >conftest.$ac_ext <<_ACEOF
2346 /* confdefs.h.  */
2347 _ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h.  */
2351
2352 int
2353 main ()
2354 {
2355 #ifndef __GNUC__
2356        choke me
2357 #endif
2358
2359   ;
2360   return 0;
2361 }
2362 _ACEOF
2363 rm -f conftest.$ac_objext
2364 if { (ac_try="$ac_compile"
2365 case "(($ac_try" in
2366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367   *) ac_try_echo=$ac_try;;
2368 esac
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370   (eval "$ac_compile") 2>conftest.er1
2371   ac_status=$?
2372   grep -v '^ *+' conftest.er1 >conftest.err
2373   rm -f conftest.er1
2374   cat conftest.err >&5
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); } &&
2377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2378   { (case "(($ac_try" in
2379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380   *) ac_try_echo=$ac_try;;
2381 esac
2382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383   (eval "$ac_try") 2>&5
2384   ac_status=$?
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); }; } &&
2387          { ac_try='test -s conftest.$ac_objext'
2388   { (case "(($ac_try" in
2389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390   *) ac_try_echo=$ac_try;;
2391 esac
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393   (eval "$ac_try") 2>&5
2394   ac_status=$?
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); }; }; then
2397   ac_compiler_gnu=yes
2398 else
2399   echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402         ac_compiler_gnu=no
2403 fi
2404
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2407
2408 fi
2409 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2410 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2411 GCC=`test $ac_compiler_gnu = yes && echo yes`
2412 ac_test_CFLAGS=${CFLAGS+set}
2413 ac_save_CFLAGS=$CFLAGS
2414 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2416 if test "${ac_cv_prog_cc_g+set}" = set; then
2417   echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419   ac_save_c_werror_flag=$ac_c_werror_flag
2420    ac_c_werror_flag=yes
2421    ac_cv_prog_cc_g=no
2422    CFLAGS="-g"
2423    cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h.  */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h.  */
2429
2430 int
2431 main ()
2432 {
2433
2434   ;
2435   return 0;
2436 }
2437 _ACEOF
2438 rm -f conftest.$ac_objext
2439 if { (ac_try="$ac_compile"
2440 case "(($ac_try" in
2441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442   *) ac_try_echo=$ac_try;;
2443 esac
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445   (eval "$ac_compile") 2>conftest.er1
2446   ac_status=$?
2447   grep -v '^ *+' conftest.er1 >conftest.err
2448   rm -f conftest.er1
2449   cat conftest.err >&5
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); } &&
2452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2453   { (case "(($ac_try" in
2454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455   *) ac_try_echo=$ac_try;;
2456 esac
2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458   (eval "$ac_try") 2>&5
2459   ac_status=$?
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); }; } &&
2462          { ac_try='test -s conftest.$ac_objext'
2463   { (case "(($ac_try" in
2464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465   *) ac_try_echo=$ac_try;;
2466 esac
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468   (eval "$ac_try") 2>&5
2469   ac_status=$?
2470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471   (exit $ac_status); }; }; then
2472   ac_cv_prog_cc_g=yes
2473 else
2474   echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2476
2477         CFLAGS=""
2478       cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h.  */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h.  */
2484
2485 int
2486 main ()
2487 {
2488
2489   ;
2490   return 0;
2491 }
2492 _ACEOF
2493 rm -f conftest.$ac_objext
2494 if { (ac_try="$ac_compile"
2495 case "(($ac_try" in
2496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497   *) ac_try_echo=$ac_try;;
2498 esac
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500   (eval "$ac_compile") 2>conftest.er1
2501   ac_status=$?
2502   grep -v '^ *+' conftest.er1 >conftest.err
2503   rm -f conftest.er1
2504   cat conftest.err >&5
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); } &&
2507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2508   { (case "(($ac_try" in
2509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510   *) ac_try_echo=$ac_try;;
2511 esac
2512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513   (eval "$ac_try") 2>&5
2514   ac_status=$?
2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516   (exit $ac_status); }; } &&
2517          { ac_try='test -s conftest.$ac_objext'
2518   { (case "(($ac_try" in
2519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520   *) ac_try_echo=$ac_try;;
2521 esac
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523   (eval "$ac_try") 2>&5
2524   ac_status=$?
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); }; }; then
2527   :
2528 else
2529   echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2531
2532         ac_c_werror_flag=$ac_save_c_werror_flag
2533          CFLAGS="-g"
2534          cat >conftest.$ac_ext <<_ACEOF
2535 /* confdefs.h.  */
2536 _ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h.  */
2540
2541 int
2542 main ()
2543 {
2544
2545   ;
2546   return 0;
2547 }
2548 _ACEOF
2549 rm -f conftest.$ac_objext
2550 if { (ac_try="$ac_compile"
2551 case "(($ac_try" in
2552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553   *) ac_try_echo=$ac_try;;
2554 esac
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556   (eval "$ac_compile") 2>conftest.er1
2557   ac_status=$?
2558   grep -v '^ *+' conftest.er1 >conftest.err
2559   rm -f conftest.er1
2560   cat conftest.err >&5
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); } &&
2563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2564   { (case "(($ac_try" in
2565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566   *) ac_try_echo=$ac_try;;
2567 esac
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569   (eval "$ac_try") 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); }; } &&
2573          { ac_try='test -s conftest.$ac_objext'
2574   { (case "(($ac_try" in
2575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576   *) ac_try_echo=$ac_try;;
2577 esac
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579   (eval "$ac_try") 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }; }; then
2583   ac_cv_prog_cc_g=yes
2584 else
2585   echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2587
2588
2589 fi
2590
2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592 fi
2593
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595 fi
2596
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598    ac_c_werror_flag=$ac_save_c_werror_flag
2599 fi
2600 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2601 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2602 if test "$ac_test_CFLAGS" = set; then
2603   CFLAGS=$ac_save_CFLAGS
2604 elif test $ac_cv_prog_cc_g = yes; then
2605   if test "$GCC" = yes; then
2606     CFLAGS="-g -O2"
2607   else
2608     CFLAGS="-g"
2609   fi
2610 else
2611   if test "$GCC" = yes; then
2612     CFLAGS="-O2"
2613   else
2614     CFLAGS=
2615   fi
2616 fi
2617 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2618 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2619 if test "${ac_cv_prog_cc_c89+set}" = set; then
2620   echo $ECHO_N "(cached) $ECHO_C" >&6
2621 else
2622   ac_cv_prog_cc_c89=no
2623 ac_save_CC=$CC
2624 cat >conftest.$ac_ext <<_ACEOF
2625 /* confdefs.h.  */
2626 _ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h.  */
2630 #include <stdarg.h>
2631 #include <stdio.h>
2632 #include <sys/types.h>
2633 #include <sys/stat.h>
2634 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2635 struct buf { int x; };
2636 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2637 static char *e (p, i)
2638      char **p;
2639      int i;
2640 {
2641   return p[i];
2642 }
2643 static char *f (char * (*g) (char **, int), char **p, ...)
2644 {
2645   char *s;
2646   va_list v;
2647   va_start (v,p);
2648   s = g (p, va_arg (v,int));
2649   va_end (v);
2650   return s;
2651 }
2652
2653 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2654    function prototypes and stuff, but not '\xHH' hex character constants.
2655    These don't provoke an error unfortunately, instead are silently treated
2656    as 'x'.  The following induces an error, until -std is added to get
2657    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2658    array size at least.  It's necessary to write '\x00'==0 to get something
2659    that's true only with -std.  */
2660 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2661
2662 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2663    inside strings and character constants.  */
2664 #define FOO(x) 'x'
2665 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2666
2667 int test (int i, double x);
2668 struct s1 {int (*f) (int a);};
2669 struct s2 {int (*f) (double a);};
2670 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2671 int argc;
2672 char **argv;
2673 int
2674 main ()
2675 {
2676 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2677   ;
2678   return 0;
2679 }
2680 _ACEOF
2681 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2682         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2683 do
2684   CC="$ac_save_CC $ac_arg"
2685   rm -f conftest.$ac_objext
2686 if { (ac_try="$ac_compile"
2687 case "(($ac_try" in
2688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689   *) ac_try_echo=$ac_try;;
2690 esac
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692   (eval "$ac_compile") 2>conftest.er1
2693   ac_status=$?
2694   grep -v '^ *+' conftest.er1 >conftest.err
2695   rm -f conftest.er1
2696   cat conftest.err >&5
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); } &&
2699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2700   { (case "(($ac_try" in
2701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702   *) ac_try_echo=$ac_try;;
2703 esac
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705   (eval "$ac_try") 2>&5
2706   ac_status=$?
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); }; } &&
2709          { ac_try='test -s conftest.$ac_objext'
2710   { (case "(($ac_try" in
2711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712   *) ac_try_echo=$ac_try;;
2713 esac
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715   (eval "$ac_try") 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); }; }; then
2719   ac_cv_prog_cc_c89=$ac_arg
2720 else
2721   echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2723
2724
2725 fi
2726
2727 rm -f core conftest.err conftest.$ac_objext
2728   test "x$ac_cv_prog_cc_c89" != "xno" && break
2729 done
2730 rm -f conftest.$ac_ext
2731 CC=$ac_save_CC
2732
2733 fi
2734 # AC_CACHE_VAL
2735 case "x$ac_cv_prog_cc_c89" in
2736   x)
2737     { echo "$as_me:$LINENO: result: none needed" >&5
2738 echo "${ECHO_T}none needed" >&6; } ;;
2739   xno)
2740     { echo "$as_me:$LINENO: result: unsupported" >&5
2741 echo "${ECHO_T}unsupported" >&6; } ;;
2742   *)
2743     CC="$CC $ac_cv_prog_cc_c89"
2744     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2745 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2746 esac
2747
2748
2749 ac_ext=c
2750 ac_cpp='$CPP $CPPFLAGS'
2751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2754
2755 ac_ext=cpp
2756 ac_cpp='$CXXCPP $CPPFLAGS'
2757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2760 if test -z "$CXX"; then
2761   if test -n "$CCC"; then
2762     CXX=$CCC
2763   else
2764     if test -n "$ac_tool_prefix"; then
2765   for ac_prog in clang++ llvm-g++ g++
2766   do
2767     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2771 if test "${ac_cv_prog_CXX+set}" = set; then
2772   echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774   if test -n "$CXX"; then
2775   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2779 do
2780   IFS=$as_save_IFS
2781   test -z "$as_dir" && as_dir=.
2782   for ac_exec_ext in '' $ac_executable_extensions; do
2783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2784     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786     break 2
2787   fi
2788 done
2789 done
2790 IFS=$as_save_IFS
2791
2792 fi
2793 fi
2794 CXX=$ac_cv_prog_CXX
2795 if test -n "$CXX"; then
2796   { echo "$as_me:$LINENO: result: $CXX" >&5
2797 echo "${ECHO_T}$CXX" >&6; }
2798 else
2799   { echo "$as_me:$LINENO: result: no" >&5
2800 echo "${ECHO_T}no" >&6; }
2801 fi
2802
2803
2804     test -n "$CXX" && break
2805   done
2806 fi
2807 if test -z "$CXX"; then
2808   ac_ct_CXX=$CXX
2809   for ac_prog in clang++ llvm-g++ g++
2810 do
2811   # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy $ac_prog; ac_word=$2
2813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2816   echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818   if test -n "$ac_ct_CXX"; then
2819   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826   for ac_exec_ext in '' $ac_executable_extensions; do
2827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2828     ac_cv_prog_ac_ct_CXX="$ac_prog"
2829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833 done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2839 if test -n "$ac_ct_CXX"; then
2840   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2841 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2842 else
2843   { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2845 fi
2846
2847
2848   test -n "$ac_ct_CXX" && break
2849 done
2850
2851   if test "x$ac_ct_CXX" = x; then
2852     CXX="g++"
2853   else
2854     case $cross_compiling:$ac_tool_warned in
2855 yes:)
2856 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2857 whose name does not start with the host triplet.  If you think this
2858 configuration is useful to you, please write to autoconf@gnu.org." >&5
2859 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2860 whose name does not start with the host triplet.  If you think this
2861 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2862 ac_tool_warned=yes ;;
2863 esac
2864     CXX=$ac_ct_CXX
2865   fi
2866 fi
2867
2868   fi
2869 fi
2870 # Provide some information about the compiler.
2871 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2872 ac_compiler=`set X $ac_compile; echo $2`
2873 { (ac_try="$ac_compiler --version >&5"
2874 case "(($ac_try" in
2875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876   *) ac_try_echo=$ac_try;;
2877 esac
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879   (eval "$ac_compiler --version >&5") 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }
2883 { (ac_try="$ac_compiler -v >&5"
2884 case "(($ac_try" in
2885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886   *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889   (eval "$ac_compiler -v >&5") 2>&5
2890   ac_status=$?
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); }
2893 { (ac_try="$ac_compiler -V >&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 -V >&5") 2>&5
2900   ac_status=$?
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); }
2903
2904 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2905 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2906 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2907   echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909   cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h.  */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h.  */
2915
2916 int
2917 main ()
2918 {
2919 #ifndef __GNUC__
2920        choke me
2921 #endif
2922
2923   ;
2924   return 0;
2925 }
2926 _ACEOF
2927 rm -f conftest.$ac_objext
2928 if { (ac_try="$ac_compile"
2929 case "(($ac_try" in
2930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931   *) ac_try_echo=$ac_try;;
2932 esac
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934   (eval "$ac_compile") 2>conftest.er1
2935   ac_status=$?
2936   grep -v '^ *+' conftest.er1 >conftest.err
2937   rm -f conftest.er1
2938   cat conftest.err >&5
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); } &&
2941          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2942   { (case "(($ac_try" in
2943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944   *) ac_try_echo=$ac_try;;
2945 esac
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947   (eval "$ac_try") 2>&5
2948   ac_status=$?
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); }; } &&
2951          { ac_try='test -s conftest.$ac_objext'
2952   { (case "(($ac_try" in
2953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954   *) ac_try_echo=$ac_try;;
2955 esac
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957   (eval "$ac_try") 2>&5
2958   ac_status=$?
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); }; }; then
2961   ac_compiler_gnu=yes
2962 else
2963   echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2965
2966         ac_compiler_gnu=no
2967 fi
2968
2969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2971
2972 fi
2973 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2974 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2975 GXX=`test $ac_compiler_gnu = yes && echo yes`
2976 ac_test_CXXFLAGS=${CXXFLAGS+set}
2977 ac_save_CXXFLAGS=$CXXFLAGS
2978 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2979 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2980 if test "${ac_cv_prog_cxx_g+set}" = set; then
2981   echo $ECHO_N "(cached) $ECHO_C" >&6
2982 else
2983   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2984    ac_cxx_werror_flag=yes
2985    ac_cv_prog_cxx_g=no
2986    CXXFLAGS="-g"
2987    cat >conftest.$ac_ext <<_ACEOF
2988 /* confdefs.h.  */
2989 _ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h.  */
2993
2994 int
2995 main ()
2996 {
2997
2998   ;
2999   return 0;
3000 }
3001 _ACEOF
3002 rm -f conftest.$ac_objext
3003 if { (ac_try="$ac_compile"
3004 case "(($ac_try" in
3005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006   *) ac_try_echo=$ac_try;;
3007 esac
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009   (eval "$ac_compile") 2>conftest.er1
3010   ac_status=$?
3011   grep -v '^ *+' conftest.er1 >conftest.err
3012   rm -f conftest.er1
3013   cat conftest.err >&5
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); } &&
3016          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3017   { (case "(($ac_try" in
3018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019   *) ac_try_echo=$ac_try;;
3020 esac
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022   (eval "$ac_try") 2>&5
3023   ac_status=$?
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); }; } &&
3026          { ac_try='test -s conftest.$ac_objext'
3027   { (case "(($ac_try" in
3028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029   *) ac_try_echo=$ac_try;;
3030 esac
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032   (eval "$ac_try") 2>&5
3033   ac_status=$?
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); }; }; then
3036   ac_cv_prog_cxx_g=yes
3037 else
3038   echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3040
3041         CXXFLAGS=""
3042       cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h.  */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h.  */
3048
3049 int
3050 main ()
3051 {
3052
3053   ;
3054   return 0;
3055 }
3056 _ACEOF
3057 rm -f conftest.$ac_objext
3058 if { (ac_try="$ac_compile"
3059 case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064   (eval "$ac_compile") 2>conftest.er1
3065   ac_status=$?
3066   grep -v '^ *+' conftest.er1 >conftest.err
3067   rm -f conftest.er1
3068   cat conftest.err >&5
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); } &&
3071          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3072   { (case "(($ac_try" in
3073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074   *) ac_try_echo=$ac_try;;
3075 esac
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077   (eval "$ac_try") 2>&5
3078   ac_status=$?
3079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080   (exit $ac_status); }; } &&
3081          { ac_try='test -s conftest.$ac_objext'
3082   { (case "(($ac_try" in
3083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084   *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087   (eval "$ac_try") 2>&5
3088   ac_status=$?
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); }; }; then
3091   :
3092 else
3093   echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3095
3096         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3097          CXXFLAGS="-g"
3098          cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h.  */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h.  */
3104
3105 int
3106 main ()
3107 {
3108
3109   ;
3110   return 0;
3111 }
3112 _ACEOF
3113 rm -f conftest.$ac_objext
3114 if { (ac_try="$ac_compile"
3115 case "(($ac_try" in
3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117   *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120   (eval "$ac_compile") 2>conftest.er1
3121   ac_status=$?
3122   grep -v '^ *+' conftest.er1 >conftest.err
3123   rm -f conftest.er1
3124   cat conftest.err >&5
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); } &&
3127          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3128   { (case "(($ac_try" in
3129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130   *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133   (eval "$ac_try") 2>&5
3134   ac_status=$?
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); }; } &&
3137          { ac_try='test -s conftest.$ac_objext'
3138   { (case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143   (eval "$ac_try") 2>&5
3144   ac_status=$?
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); }; }; then
3147   ac_cv_prog_cxx_g=yes
3148 else
3149   echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152
3153 fi
3154
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156 fi
3157
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159 fi
3160
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3163 fi
3164 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3165 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3166 if test "$ac_test_CXXFLAGS" = set; then
3167   CXXFLAGS=$ac_save_CXXFLAGS
3168 elif test $ac_cv_prog_cxx_g = yes; then
3169   if test "$GXX" = yes; then
3170     CXXFLAGS="-g -O2"
3171   else
3172     CXXFLAGS="-g"
3173   fi
3174 else
3175   if test "$GXX" = yes; then
3176     CXXFLAGS="-O2"
3177   else
3178     CXXFLAGS=
3179   fi
3180 fi
3181 ac_ext=c
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3186
3187 ac_ext=c
3188 ac_cpp='$CPP $CPPFLAGS'
3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3193 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3194 # On Suns, sometimes $CPP names a directory.
3195 if test -n "$CPP" && test -d "$CPP"; then
3196   CPP=
3197 fi
3198 if test -z "$CPP"; then
3199   if test "${ac_cv_prog_CPP+set}" = set; then
3200   echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202       # Double quotes because CPP needs to be expanded
3203     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3204     do
3205       ac_preproc_ok=false
3206 for ac_c_preproc_warn_flag in '' yes
3207 do
3208   # Use a header file that comes with gcc, so configuring glibc
3209   # with a fresh cross-compiler works.
3210   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3211   # <limits.h> exists even on freestanding compilers.
3212   # On the NeXT, cc -E runs the code through the compiler's parser,
3213   # not just through cpp. "Syntax error" is here to catch this case.
3214   cat >conftest.$ac_ext <<_ACEOF
3215 /* confdefs.h.  */
3216 _ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h.  */
3220 #ifdef __STDC__
3221 # include <limits.h>
3222 #else
3223 # include <assert.h>
3224 #endif
3225                      Syntax error
3226 _ACEOF
3227 if { (ac_try="$ac_cpp conftest.$ac_ext"
3228 case "(($ac_try" in
3229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230   *) ac_try_echo=$ac_try;;
3231 esac
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3234   ac_status=$?
3235   grep -v '^ *+' conftest.er1 >conftest.err
3236   rm -f conftest.er1
3237   cat conftest.err >&5
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); } >/dev/null; then
3240   if test -s conftest.err; then
3241     ac_cpp_err=$ac_c_preproc_warn_flag
3242     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3243   else
3244     ac_cpp_err=
3245   fi
3246 else
3247   ac_cpp_err=yes
3248 fi
3249 if test -z "$ac_cpp_err"; then
3250   :
3251 else
3252   echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255   # Broken: fails on valid input.
3256 continue
3257 fi
3258
3259 rm -f conftest.err conftest.$ac_ext
3260
3261   # OK, works on sane cases.  Now check whether nonexistent headers
3262   # can be detected and how.
3263   cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h.  */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h.  */
3269 #include <ac_nonexistent.h>
3270 _ACEOF
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3272 case "(($ac_try" in
3273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274   *) ac_try_echo=$ac_try;;
3275 esac
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278   ac_status=$?
3279   grep -v '^ *+' conftest.er1 >conftest.err
3280   rm -f conftest.er1
3281   cat conftest.err >&5
3282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283   (exit $ac_status); } >/dev/null; then
3284   if test -s conftest.err; then
3285     ac_cpp_err=$ac_c_preproc_warn_flag
3286     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3287   else
3288     ac_cpp_err=
3289   fi
3290 else
3291   ac_cpp_err=yes
3292 fi
3293 if test -z "$ac_cpp_err"; then
3294   # Broken: success on invalid input.
3295 continue
3296 else
3297   echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3299
3300   # Passes both tests.
3301 ac_preproc_ok=:
3302 break
3303 fi
3304
3305 rm -f conftest.err conftest.$ac_ext
3306
3307 done
3308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3309 rm -f conftest.err conftest.$ac_ext
3310 if $ac_preproc_ok; then
3311   break
3312 fi
3313
3314     done
3315     ac_cv_prog_CPP=$CPP
3316
3317 fi
3318   CPP=$ac_cv_prog_CPP
3319 else
3320   ac_cv_prog_CPP=$CPP
3321 fi
3322 { echo "$as_me:$LINENO: result: $CPP" >&5
3323 echo "${ECHO_T}$CPP" >&6; }
3324 ac_preproc_ok=false
3325 for ac_c_preproc_warn_flag in '' yes
3326 do
3327   # Use a header file that comes with gcc, so configuring glibc
3328   # with a fresh cross-compiler works.
3329   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3330   # <limits.h> exists even on freestanding compilers.
3331   # On the NeXT, cc -E runs the code through the compiler's parser,
3332   # not just through cpp. "Syntax error" is here to catch this case.
3333   cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h.  */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h.  */
3339 #ifdef __STDC__
3340 # include <limits.h>
3341 #else
3342 # include <assert.h>
3343 #endif
3344                      Syntax error
3345 _ACEOF
3346 if { (ac_try="$ac_cpp conftest.$ac_ext"
3347 case "(($ac_try" in
3348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349   *) ac_try_echo=$ac_try;;
3350 esac
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3353   ac_status=$?
3354   grep -v '^ *+' conftest.er1 >conftest.err
3355   rm -f conftest.er1
3356   cat conftest.err >&5
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); } >/dev/null; then
3359   if test -s conftest.err; then
3360     ac_cpp_err=$ac_c_preproc_warn_flag
3361     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3362   else
3363     ac_cpp_err=
3364   fi
3365 else
3366   ac_cpp_err=yes
3367 fi
3368 if test -z "$ac_cpp_err"; then
3369   :
3370 else
3371   echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374   # Broken: fails on valid input.
3375 continue
3376 fi
3377
3378 rm -f conftest.err conftest.$ac_ext
3379
3380   # OK, works on sane cases.  Now check whether nonexistent headers
3381   # can be detected and how.
3382   cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h.  */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h.  */
3388 #include <ac_nonexistent.h>
3389 _ACEOF
3390 if { (ac_try="$ac_cpp conftest.$ac_ext"
3391 case "(($ac_try" in
3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393   *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397   ac_status=$?
3398   grep -v '^ *+' conftest.er1 >conftest.err
3399   rm -f conftest.er1
3400   cat conftest.err >&5
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); } >/dev/null; then
3403   if test -s conftest.err; then
3404     ac_cpp_err=$ac_c_preproc_warn_flag
3405     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3406   else
3407     ac_cpp_err=
3408   fi
3409 else
3410   ac_cpp_err=yes
3411 fi
3412 if test -z "$ac_cpp_err"; then
3413   # Broken: success on invalid input.
3414 continue
3415 else
3416   echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3418
3419   # Passes both tests.
3420 ac_preproc_ok=:
3421 break
3422 fi
3423
3424 rm -f conftest.err conftest.$ac_ext
3425
3426 done
3427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428 rm -f conftest.err conftest.$ac_ext
3429 if $ac_preproc_ok; then
3430   :
3431 else
3432   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3433 See \`config.log' for more details." >&5
3434 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3435 See \`config.log' for more details." >&2;}
3436    { (exit 1); exit 1; }; }
3437 fi
3438
3439 ac_ext=c
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444
3445
3446
3447
3448 if test -d ${srcdir}/projects/llvm-gcc ; then
3449   subdirs="$subdirs projects/llvm-gcc"
3450
3451 fi
3452
3453 if test -d ${srcdir}/projects/test-suite ; then
3454   subdirs="$subdirs projects/test-suite"
3455
3456 fi
3457
3458 if test -d ${srcdir}/projects/llvm-test ; then
3459   subdirs="$subdirs projects/llvm-test"
3460
3461 fi
3462
3463 if test -d ${srcdir}/projects/poolalloc ; then
3464   subdirs="$subdirs projects/poolalloc"
3465
3466 fi
3467
3468 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3469   subdirs="$subdirs projects/llvm-poolalloc"
3470
3471 fi
3472
3473 for i in `ls ${srcdir}/projects`
3474 do
3475   if test -d ${srcdir}/projects/${i} ; then
3476     case ${i} in
3477       sample)       subdirs="$subdirs projects/sample"
3478     ;;
3479       privbracket)  subdirs="$subdirs projects/privbracket"
3480  ;;
3481       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3482  ;;
3483       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3484 ;;
3485       llvm-java)    subdirs="$subdirs projects/llvm-java"
3486  ;;
3487       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3488    ;;
3489       safecode)     subdirs="$subdirs projects/safecode"
3490  ;;
3491       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3492  ;;
3493       llvm-gcc)       ;;
3494       test-suite)     ;;
3495       llvm-test)      ;;
3496       poolalloc)      ;;
3497       llvm-poolalloc) ;;
3498       *)
3499         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3500 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3501         ;;
3502     esac
3503   fi
3504 done
3505
3506 # Check whether --enable-polly was given.
3507 if test "${enable_polly+set}" = set; then
3508   enableval=$enable_polly;
3509 else
3510   enableval=default
3511 fi
3512
3513 case "$enableval" in
3514   yes) ENABLE_POLLY=1
3515  ;;
3516   no)  ENABLE_POLLY=0
3517  ;;
3518   default) ENABLE_POLLY=1
3519  ;;
3520   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3521 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3522    { (exit 1); exit 1; }; } ;;
3523 esac
3524
3525
3526 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3527   LLVM_HAS_POLLY=1
3528
3529   subdirs="$subdirs tools/polly"
3530
3531 fi
3532
3533
3534 # Make sure we can run config.sub.
3535 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3536   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3537 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3538    { (exit 1); exit 1; }; }
3539
3540 { echo "$as_me:$LINENO: checking build system type" >&5
3541 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3542 if test "${ac_cv_build+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   ac_build_alias=$build_alias
3546 test "x$ac_build_alias" = x &&
3547   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3548 test "x$ac_build_alias" = x &&
3549   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3550 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3551    { (exit 1); exit 1; }; }
3552 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3553   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3554 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3555    { (exit 1); exit 1; }; }
3556
3557 fi
3558 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3559 echo "${ECHO_T}$ac_cv_build" >&6; }
3560 case $ac_cv_build in
3561 *-*-*) ;;
3562 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3563 echo "$as_me: error: invalid value of canonical build" >&2;}
3564    { (exit 1); exit 1; }; };;
3565 esac
3566 build=$ac_cv_build
3567 ac_save_IFS=$IFS; IFS='-'
3568 set x $ac_cv_build
3569 shift
3570 build_cpu=$1
3571 build_vendor=$2
3572 shift; shift
3573 # Remember, the first character of IFS is used to create $*,
3574 # except with old shells:
3575 build_os=$*
3576 IFS=$ac_save_IFS
3577 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3578
3579
3580 { echo "$as_me:$LINENO: checking host system type" >&5
3581 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3582 if test "${ac_cv_host+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   if test "x$host_alias" = x; then
3586   ac_cv_host=$ac_cv_build
3587 else
3588   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3589     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3590 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3591    { (exit 1); exit 1; }; }
3592 fi
3593
3594 fi
3595 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3596 echo "${ECHO_T}$ac_cv_host" >&6; }
3597 case $ac_cv_host in
3598 *-*-*) ;;
3599 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3600 echo "$as_me: error: invalid value of canonical host" >&2;}
3601    { (exit 1); exit 1; }; };;
3602 esac
3603 host=$ac_cv_host
3604 ac_save_IFS=$IFS; IFS='-'
3605 set x $ac_cv_host
3606 shift
3607 host_cpu=$1
3608 host_vendor=$2
3609 shift; shift
3610 # Remember, the first character of IFS is used to create $*,
3611 # except with old shells:
3612 host_os=$*
3613 IFS=$ac_save_IFS
3614 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3615
3616
3617 { echo "$as_me:$LINENO: checking target system type" >&5
3618 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3619 if test "${ac_cv_target+set}" = set; then
3620   echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622   if test "x$target_alias" = x; then
3623   ac_cv_target=$ac_cv_host
3624 else
3625   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3626     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3627 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3628    { (exit 1); exit 1; }; }
3629 fi
3630
3631 fi
3632 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3633 echo "${ECHO_T}$ac_cv_target" >&6; }
3634 case $ac_cv_target in
3635 *-*-*) ;;
3636 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3637 echo "$as_me: error: invalid value of canonical target" >&2;}
3638    { (exit 1); exit 1; }; };;
3639 esac
3640 target=$ac_cv_target
3641 ac_save_IFS=$IFS; IFS='-'
3642 set x $ac_cv_target
3643 shift
3644 target_cpu=$1
3645 target_vendor=$2
3646 shift; shift
3647 # Remember, the first character of IFS is used to create $*,
3648 # except with old shells:
3649 target_os=$*
3650 IFS=$ac_save_IFS
3651 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3652
3653
3654 # The aliases save the names the user supplied, while $host etc.
3655 # will get canonicalized.
3656 test -n "$target_alias" &&
3657   test "$program_prefix$program_suffix$program_transform_name" = \
3658     NONENONEs,x,x, &&
3659   program_prefix=${target_alias}-
3660
3661 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3662 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3663 if test "${llvm_cv_os_type+set}" = set; then
3664   echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666   case $host in
3667   *-*-aix*)
3668     llvm_cv_link_all_option="-Wl,--whole-archive"
3669     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670     llvm_cv_os_type="AIX"
3671     llvm_cv_platform_type="Unix" ;;
3672   *-*-irix*)
3673     llvm_cv_link_all_option="-Wl,--whole-archive"
3674     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675     llvm_cv_os_type="IRIX"
3676     llvm_cv_platform_type="Unix" ;;
3677   *-*-cygwin*)
3678     llvm_cv_link_all_option="-Wl,--whole-archive"
3679     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680     llvm_cv_os_type="Cygwin"
3681     llvm_cv_platform_type="Unix" ;;
3682   *-*-darwin*)
3683     llvm_cv_link_all_option="-Wl,-all_load"
3684     llvm_cv_no_link_all_option="-Wl,-noall_load"
3685     llvm_cv_os_type="Darwin"
3686     llvm_cv_platform_type="Unix" ;;
3687   *-*-minix*)
3688     llvm_cv_link_all_option="-Wl,-all_load"
3689     llvm_cv_no_link_all_option="-Wl,-noall_load"
3690     llvm_cv_os_type="Minix"
3691     llvm_cv_platform_type="Unix" ;;
3692   *-*-freebsd*)
3693     llvm_cv_link_all_option="-Wl,--whole-archive"
3694     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695     llvm_cv_os_type="FreeBSD"
3696     llvm_cv_platform_type="Unix" ;;
3697   *-*-openbsd*)
3698     llvm_cv_link_all_option="-Wl,--whole-archive"
3699     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700     llvm_cv_os_type="OpenBSD"
3701     llvm_cv_platform_type="Unix" ;;
3702   *-*-netbsd*)
3703     llvm_cv_link_all_option="-Wl,--whole-archive"
3704     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705     llvm_cv_os_type="NetBSD"
3706     llvm_cv_platform_type="Unix" ;;
3707   *-*-dragonfly*)
3708     llvm_cv_link_all_option="-Wl,--whole-archive"
3709     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710     llvm_cv_os_type="DragonFly"
3711     llvm_cv_platform_type="Unix" ;;
3712   *-*-hpux*)
3713     llvm_cv_link_all_option="-Wl,--whole-archive"
3714     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715     llvm_cv_os_type="HP-UX"
3716     llvm_cv_platform_type="Unix" ;;
3717   *-*-interix*)
3718     llvm_cv_link_all_option="-Wl,--whole-archive"
3719     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720     llvm_cv_os_type="Interix"
3721     llvm_cv_platform_type="Unix" ;;
3722   *-*-linux*)
3723     llvm_cv_link_all_option="-Wl,--whole-archive"
3724     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725     llvm_cv_os_type="Linux"
3726     llvm_cv_platform_type="Unix" ;;
3727   *-*-solaris*)
3728     llvm_cv_link_all_option="-Wl,-z,allextract"
3729     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3730     llvm_cv_os_type="SunOS"
3731     llvm_cv_platform_type="Unix" ;;
3732   *-*-auroraux*)
3733     llvm_cv_link_all_option="-Wl,-z,allextract"
3734     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3735     llvm_cv_os_type="AuroraUX"
3736     llvm_cv_platform_type="Unix" ;;
3737   *-*-win32*)
3738     llvm_cv_link_all_option="-Wl,--whole-archive"
3739     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740     llvm_cv_os_type="Win32"
3741     llvm_cv_platform_type="Win32" ;;
3742   *-*-mingw*)
3743     llvm_cv_link_all_option="-Wl,--whole-archive"
3744     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745     llvm_cv_os_type="MingW"
3746     llvm_cv_platform_type="Win32" ;;
3747   *-*-haiku*)
3748     llvm_cv_link_all_option="-Wl,--whole-archive"
3749     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750     llvm_cv_os_type="Haiku"
3751     llvm_cv_platform_type="Unix" ;;
3752   *-unknown-eabi*)
3753     llvm_cv_link_all_option="-Wl,--whole-archive"
3754     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3755     llvm_cv_os_type="Freestanding"
3756     llvm_cv_platform_type="Unix" ;;
3757   *-unknown-elf*)
3758     llvm_cv_link_all_option="-Wl,--whole-archive"
3759     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3760     llvm_cv_os_type="Freestanding"
3761     llvm_cv_platform_type="Unix" ;;
3762   *)
3763     llvm_cv_link_all_option=""
3764     llvm_cv_no_link_all_option=""
3765     llvm_cv_os_type="Unknown"
3766     llvm_cv_platform_type="Unknown" ;;
3767 esac
3768 fi
3769 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3770 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3771
3772 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3773 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3774 if test "${llvm_cv_target_os_type+set}" = set; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777   case $target in
3778   *-*-aix*)
3779     llvm_cv_target_os_type="AIX" ;;
3780   *-*-irix*)
3781     llvm_cv_target_os_type="IRIX" ;;
3782   *-*-cygwin*)
3783     llvm_cv_target_os_type="Cygwin" ;;
3784   *-*-darwin*)
3785     llvm_cv_target_os_type="Darwin" ;;
3786   *-*-minix*)
3787     llvm_cv_target_os_type="Minix" ;;
3788   *-*-freebsd*)
3789     llvm_cv_target_os_type="FreeBSD" ;;
3790   *-*-openbsd*)
3791     llvm_cv_target_os_type="OpenBSD" ;;
3792   *-*-netbsd*)
3793     llvm_cv_target_os_type="NetBSD" ;;
3794   *-*-dragonfly*)
3795     llvm_cv_target_os_type="DragonFly" ;;
3796   *-*-hpux*)
3797     llvm_cv_target_os_type="HP-UX" ;;
3798   *-*-interix*)
3799     llvm_cv_target_os_type="Interix" ;;
3800   *-*-linux*)
3801     llvm_cv_target_os_type="Linux" ;;
3802   *-*-solaris*)
3803     llvm_cv_target_os_type="SunOS" ;;
3804   *-*-auroraux*)
3805     llvm_cv_target_os_type="AuroraUX" ;;
3806   *-*-win32*)
3807     llvm_cv_target_os_type="Win32" ;;
3808   *-*-mingw*)
3809     llvm_cv_target_os_type="MingW" ;;
3810   *-*-haiku*)
3811     llvm_cv_target_os_type="Haiku" ;;
3812   *-*-rtems*)
3813     llvm_cv_target_os_type="RTEMS" ;;
3814   *-*-nacl*)
3815     llvm_cv_target_os_type="NativeClient" ;;
3816   *-unknown-eabi*)
3817     llvm_cv_target_os_type="Freestanding" ;;
3818   *)
3819     llvm_cv_target_os_type="Unknown" ;;
3820 esac
3821 fi
3822 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3823 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3824
3825 if test "$llvm_cv_os_type" = "Unknown" ; then
3826   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3827 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3828    { (exit 1); exit 1; }; }
3829 fi
3830
3831 OS=$llvm_cv_os_type
3832
3833 HOST_OS=$llvm_cv_os_type
3834
3835 TARGET_OS=$llvm_cv_target_os_type
3836
3837
3838 LINKALL=$llvm_cv_link_all_option
3839
3840 NOLINKALL=$llvm_cv_no_link_all_option
3841
3842
3843 case $llvm_cv_platform_type in
3844   Unix)
3845
3846 cat >>confdefs.h <<\_ACEOF
3847 #define LLVM_ON_UNIX 1
3848 _ACEOF
3849
3850     LLVM_ON_UNIX=1
3851
3852     LLVM_ON_WIN32=0
3853
3854     ;;
3855   Win32)
3856
3857 cat >>confdefs.h <<\_ACEOF
3858 #define LLVM_ON_WIN32 1
3859 _ACEOF
3860
3861     LLVM_ON_UNIX=0
3862
3863     LLVM_ON_WIN32=1
3864
3865     ;;
3866 esac
3867
3868 { echo "$as_me:$LINENO: checking target architecture" >&5
3869 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3870 if test "${llvm_cv_target_arch+set}" = set; then
3871   echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873   case $target in
3874   i?86-*)                 llvm_cv_target_arch="x86" ;;
3875   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3876   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3877   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3878   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
3879   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3880   mips-*)                 llvm_cv_target_arch="Mips" ;;
3881   xcore-*)                llvm_cv_target_arch="XCore" ;;
3882   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3883   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3884   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3885   *)                      llvm_cv_target_arch="Unknown" ;;
3886 esac
3887 fi
3888 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3889 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3890
3891 if test "$llvm_cv_target_arch" = "Unknown" ; then
3892   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3893 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3894 fi
3895
3896 # Determine the LLVM native architecture for the target
3897 case "$llvm_cv_target_arch" in
3898     x86)     LLVM_NATIVE_ARCH="X86" ;;
3899     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3900     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3901 esac
3902
3903 ARCH=$llvm_cv_target_arch
3904
3905
3906
3907
3908 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3909 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3910 if test "${ac_cv_path_GREP+set}" = set; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913   # Extract the first word of "grep ggrep" to use in msg output
3914 if test -z "$GREP"; then
3915 set dummy grep ggrep; ac_prog_name=$2
3916 if test "${ac_cv_path_GREP+set}" = set; then
3917   echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919   ac_path_GREP_found=false
3920 # Loop through the user's path and test for each of PROGNAME-LIST
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3923 do
3924   IFS=$as_save_IFS
3925   test -z "$as_dir" && as_dir=.
3926   for ac_prog in grep ggrep; do
3927   for ac_exec_ext in '' $ac_executable_extensions; do
3928     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3929     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3930     # Check for GNU ac_path_GREP and select it if it is found.
3931   # Check for GNU $ac_path_GREP
3932 case `"$ac_path_GREP" --version 2>&1` in
3933 *GNU*)
3934   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3935 *)
3936   ac_count=0
3937   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3938   while :
3939   do
3940     cat "conftest.in" "conftest.in" >"conftest.tmp"
3941     mv "conftest.tmp" "conftest.in"
3942     cp "conftest.in" "conftest.nl"
3943     echo 'GREP' >> "conftest.nl"
3944     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3945     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3946     ac_count=`expr $ac_count + 1`
3947     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3948       # Best one so far, save it but keep looking for a better one
3949       ac_cv_path_GREP="$ac_path_GREP"
3950       ac_path_GREP_max=$ac_count
3951     fi
3952     # 10*(2^10) chars as input seems more than enough
3953     test $ac_count -gt 10 && break
3954   done
3955   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3956 esac
3957
3958
3959     $ac_path_GREP_found && break 3
3960   done
3961 done
3962
3963 done
3964 IFS=$as_save_IFS
3965
3966
3967 fi
3968
3969 GREP="$ac_cv_path_GREP"
3970 if test -z "$GREP"; then
3971   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3972 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3973    { (exit 1); exit 1; }; }
3974 fi
3975
3976 else
3977   ac_cv_path_GREP=$GREP
3978 fi
3979
3980
3981 fi
3982 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3983 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3984  GREP="$ac_cv_path_GREP"
3985
3986
3987 { echo "$as_me:$LINENO: checking for egrep" >&5
3988 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3989 if test "${ac_cv_path_EGREP+set}" = set; then
3990   echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3993    then ac_cv_path_EGREP="$GREP -E"
3994    else
3995      # Extract the first word of "egrep" to use in msg output
3996 if test -z "$EGREP"; then
3997 set dummy egrep; ac_prog_name=$2
3998 if test "${ac_cv_path_EGREP+set}" = set; then
3999   echo $ECHO_N "(cached) $ECHO_C" >&6
4000 else
4001   ac_path_EGREP_found=false
4002 # Loop through the user's path and test for each of PROGNAME-LIST
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4005 do
4006   IFS=$as_save_IFS
4007   test -z "$as_dir" && as_dir=.
4008   for ac_prog in egrep; do
4009   for ac_exec_ext in '' $ac_executable_extensions; do
4010     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4011     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4012     # Check for GNU ac_path_EGREP and select it if it is found.
4013   # Check for GNU $ac_path_EGREP
4014 case `"$ac_path_EGREP" --version 2>&1` in
4015 *GNU*)
4016   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4017 *)
4018   ac_count=0
4019   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4020   while :
4021   do
4022     cat "conftest.in" "conftest.in" >"conftest.tmp"
4023     mv "conftest.tmp" "conftest.in"
4024     cp "conftest.in" "conftest.nl"
4025     echo 'EGREP' >> "conftest.nl"
4026     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4028     ac_count=`expr $ac_count + 1`
4029     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4030       # Best one so far, save it but keep looking for a better one
4031       ac_cv_path_EGREP="$ac_path_EGREP"
4032       ac_path_EGREP_max=$ac_count
4033     fi
4034     # 10*(2^10) chars as input seems more than enough
4035     test $ac_count -gt 10 && break
4036   done
4037   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4038 esac
4039
4040
4041     $ac_path_EGREP_found && break 3
4042   done
4043 done
4044
4045 done
4046 IFS=$as_save_IFS
4047
4048
4049 fi
4050
4051 EGREP="$ac_cv_path_EGREP"
4052 if test -z "$EGREP"; then
4053   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4054 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4055    { (exit 1); exit 1; }; }
4056 fi
4057
4058 else
4059   ac_cv_path_EGREP=$EGREP
4060 fi
4061
4062
4063    fi
4064 fi
4065 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4066 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4067  EGREP="$ac_cv_path_EGREP"
4068
4069
4070 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4071 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4072 if test "${ac_cv_header_stdc+set}" = set; then
4073   echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075   cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h.  */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h.  */
4081 #include <stdlib.h>
4082 #include <stdarg.h>
4083 #include <string.h>
4084 #include <float.h>
4085
4086 int
4087 main ()
4088 {
4089
4090   ;
4091   return 0;
4092 }
4093 _ACEOF
4094 rm -f conftest.$ac_objext
4095 if { (ac_try="$ac_compile"
4096 case "(($ac_try" in
4097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098   *) ac_try_echo=$ac_try;;
4099 esac
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101   (eval "$ac_compile") 2>conftest.er1
4102   ac_status=$?
4103   grep -v '^ *+' conftest.er1 >conftest.err
4104   rm -f conftest.er1
4105   cat conftest.err >&5
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); } &&
4108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4109   { (case "(($ac_try" in
4110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111   *) ac_try_echo=$ac_try;;
4112 esac
4113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114   (eval "$ac_try") 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }; } &&
4118          { ac_try='test -s conftest.$ac_objext'
4119   { (case "(($ac_try" in
4120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121   *) ac_try_echo=$ac_try;;
4122 esac
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124   (eval "$ac_try") 2>&5
4125   ac_status=$?
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); }; }; then
4128   ac_cv_header_stdc=yes
4129 else
4130   echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133         ac_cv_header_stdc=no
4134 fi
4135
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137
4138 if test $ac_cv_header_stdc = yes; then
4139   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4140   cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146 #include <string.h>
4147
4148 _ACEOF
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150   $EGREP "memchr" >/dev/null 2>&1; then
4151   :
4152 else
4153   ac_cv_header_stdc=no
4154 fi
4155 rm -f conftest*
4156
4157 fi
4158
4159 if test $ac_cv_header_stdc = yes; then
4160   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4161   cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h.  */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h.  */
4167 #include <stdlib.h>
4168
4169 _ACEOF
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171   $EGREP "free" >/dev/null 2>&1; then
4172   :
4173 else
4174   ac_cv_header_stdc=no
4175 fi
4176 rm -f conftest*
4177
4178 fi
4179
4180 if test $ac_cv_header_stdc = yes; then
4181   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4182   if test "$cross_compiling" = yes; then
4183   :
4184 else
4185   cat >conftest.$ac_ext <<_ACEOF
4186 /* confdefs.h.  */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h.  */
4191 #include <ctype.h>
4192 #include <stdlib.h>
4193 #if ((' ' & 0x0FF) == 0x020)
4194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4196 #else
4197 # define ISLOWER(c) \
4198                    (('a' <= (c) && (c) <= 'i') \
4199                      || ('j' <= (c) && (c) <= 'r') \
4200                      || ('s' <= (c) && (c) <= 'z'))
4201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4202 #endif
4203
4204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4205 int
4206 main ()
4207 {
4208   int i;
4209   for (i = 0; i < 256; i++)
4210     if (XOR (islower (i), ISLOWER (i))
4211         || toupper (i) != TOUPPER (i))
4212       return 2;
4213   return 0;
4214 }
4215 _ACEOF
4216 rm -f conftest$ac_exeext
4217 if { (ac_try="$ac_link"
4218 case "(($ac_try" in
4219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220   *) ac_try_echo=$ac_try;;
4221 esac
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223   (eval "$ac_link") 2>&5
4224   ac_status=$?
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4227   { (case "(($ac_try" in
4228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229   *) ac_try_echo=$ac_try;;
4230 esac
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232   (eval "$ac_try") 2>&5
4233   ac_status=$?
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); }; }; then
4236   :
4237 else
4238   echo "$as_me: program exited with status $ac_status" >&5
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242 ( exit $ac_status )
4243 ac_cv_header_stdc=no
4244 fi
4245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4246 fi
4247
4248
4249 fi
4250 fi
4251 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4252 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4253 if test $ac_cv_header_stdc = yes; then
4254
4255 cat >>confdefs.h <<\_ACEOF
4256 #define STDC_HEADERS 1
4257 _ACEOF
4258
4259 fi
4260
4261 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4272                   inttypes.h stdint.h unistd.h
4273 do
4274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4278   echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280   cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h.  */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h.  */
4286 $ac_includes_default
4287
4288 #include <$ac_header>
4289 _ACEOF
4290 rm -f conftest.$ac_objext
4291 if { (ac_try="$ac_compile"
4292 case "(($ac_try" in
4293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294   *) ac_try_echo=$ac_try;;
4295 esac
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297   (eval "$ac_compile") 2>conftest.er1
4298   ac_status=$?
4299   grep -v '^ *+' conftest.er1 >conftest.err
4300   rm -f conftest.er1
4301   cat conftest.err >&5
4302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303   (exit $ac_status); } &&
4304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4305   { (case "(($ac_try" in
4306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307   *) ac_try_echo=$ac_try;;
4308 esac
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310   (eval "$ac_try") 2>&5
4311   ac_status=$?
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); }; } &&
4314          { ac_try='test -s conftest.$ac_objext'
4315   { (case "(($ac_try" in
4316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317   *) ac_try_echo=$ac_try;;
4318 esac
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320   (eval "$ac_try") 2>&5
4321   ac_status=$?
4322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323   (exit $ac_status); }; }; then
4324   eval "$as_ac_Header=yes"
4325 else
4326   echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4328
4329         eval "$as_ac_Header=no"
4330 fi
4331
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333 fi
4334 ac_res=`eval echo '${'$as_ac_Header'}'`
4335                { echo "$as_me:$LINENO: result: $ac_res" >&5
4336 echo "${ECHO_T}$ac_res" >&6; }
4337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4338   cat >>confdefs.h <<_ACEOF
4339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4340 _ACEOF
4341
4342 fi
4343
4344 done
4345
4346
4347 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4348 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4349 if test "${ac_cv_c_bigendian+set}" = set; then
4350   echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352   # See if sys/param.h defines the BYTE_ORDER macro.
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h.  */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h.  */
4359 #include <sys/types.h>
4360 #include <sys/param.h>
4361
4362 int
4363 main ()
4364 {
4365 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4366  bogus endian macros
4367 #endif
4368
4369   ;
4370   return 0;
4371 }
4372 _ACEOF
4373 rm -f conftest.$ac_objext
4374 if { (ac_try="$ac_compile"
4375 case "(($ac_try" in
4376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377   *) ac_try_echo=$ac_try;;
4378 esac
4379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380   (eval "$ac_compile") 2>conftest.er1
4381   ac_status=$?
4382   grep -v '^ *+' conftest.er1 >conftest.err
4383   rm -f conftest.er1
4384   cat conftest.err >&5
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); } &&
4387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4388   { (case "(($ac_try" in
4389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390   *) ac_try_echo=$ac_try;;
4391 esac
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393   (eval "$ac_try") 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); }; } &&
4397          { ac_try='test -s conftest.$ac_objext'
4398   { (case "(($ac_try" in
4399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400   *) ac_try_echo=$ac_try;;
4401 esac
4402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403   (eval "$ac_try") 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); }; }; then
4407   # It does; now see whether it defined to BIG_ENDIAN or not.
4408 cat >conftest.$ac_ext <<_ACEOF
4409 /* confdefs.h.  */
4410 _ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h.  */
4414 #include <sys/types.h>
4415 #include <sys/param.h>
4416
4417 int
4418 main ()
4419 {
4420 #if BYTE_ORDER != BIG_ENDIAN
4421  not big endian
4422 #endif
4423
4424   ;
4425   return 0;
4426 }
4427 _ACEOF
4428 rm -f conftest.$ac_objext
4429 if { (ac_try="$ac_compile"
4430 case "(($ac_try" in
4431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432   *) ac_try_echo=$ac_try;;
4433 esac
4434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435   (eval "$ac_compile") 2>conftest.er1
4436   ac_status=$?
4437   grep -v '^ *+' conftest.er1 >conftest.err
4438   rm -f conftest.er1
4439   cat conftest.err >&5
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); } &&
4442          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4443   { (case "(($ac_try" in
4444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445   *) ac_try_echo=$ac_try;;
4446 esac
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448   (eval "$ac_try") 2>&5
4449   ac_status=$?
4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451   (exit $ac_status); }; } &&
4452          { ac_try='test -s conftest.$ac_objext'
4453   { (case "(($ac_try" in
4454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455   *) ac_try_echo=$ac_try;;
4456 esac
4457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458   (eval "$ac_try") 2>&5
4459   ac_status=$?
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); }; }; then
4462   ac_cv_c_bigendian=yes
4463 else
4464   echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4466
4467         ac_cv_c_bigendian=no
4468 fi
4469
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 else
4472   echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4474
4475         # It does not; compile a test program.
4476 if test "$cross_compiling" = yes; then
4477   # try to guess the endianness by grepping values into an object file
4478   ac_cv_c_bigendian=unknown
4479   cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h.  */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h.  */
4485 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4486 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4487 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4488 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4489 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4490 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4491 int
4492 main ()
4493 {
4494  _ascii (); _ebcdic ();
4495   ;
4496   return 0;
4497 }
4498 _ACEOF
4499 rm -f conftest.$ac_objext
4500 if { (ac_try="$ac_compile"
4501 case "(($ac_try" in
4502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503   *) ac_try_echo=$ac_try;;
4504 esac
4505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506   (eval "$ac_compile") 2>conftest.er1
4507   ac_status=$?
4508   grep -v '^ *+' conftest.er1 >conftest.err
4509   rm -f conftest.er1
4510   cat conftest.err >&5
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); } &&
4513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4514   { (case "(($ac_try" in
4515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516   *) ac_try_echo=$ac_try;;
4517 esac
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519   (eval "$ac_try") 2>&5
4520   ac_status=$?
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); }; } &&
4523          { ac_try='test -s conftest.$ac_objext'
4524   { (case "(($ac_try" in
4525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526   *) ac_try_echo=$ac_try;;
4527 esac
4528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529   (eval "$ac_try") 2>&5
4530   ac_status=$?
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); }; }; then
4533   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4534   ac_cv_c_bigendian=yes
4535 fi
4536 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4537   if test "$ac_cv_c_bigendian" = unknown; then
4538     ac_cv_c_bigendian=no
4539   else
4540     # finding both strings is unlikely to happen, but who knows?
4541     ac_cv_c_bigendian=unknown
4542   fi
4543 fi
4544 else
4545   echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4547
4548
4549 fi
4550
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 else
4553   cat >conftest.$ac_ext <<_ACEOF
4554 /* confdefs.h.  */
4555 _ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h.  */
4559 $ac_includes_default
4560 int
4561 main ()
4562 {
4563
4564   /* Are we little or big endian?  From Harbison&Steele.  */
4565   union
4566   {
4567     long int l;
4568     char c[sizeof (long int)];
4569   } u;
4570   u.l = 1;
4571   return u.c[sizeof (long int) - 1] == 1;
4572
4573   ;
4574   return 0;
4575 }
4576 _ACEOF
4577 rm -f conftest$ac_exeext
4578 if { (ac_try="$ac_link"
4579 case "(($ac_try" in
4580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581   *) ac_try_echo=$ac_try;;
4582 esac
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584   (eval "$ac_link") 2>&5
4585   ac_status=$?
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4588   { (case "(($ac_try" in
4589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590   *) ac_try_echo=$ac_try;;
4591 esac
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593   (eval "$ac_try") 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }; }; then
4597   ac_cv_c_bigendian=no
4598 else
4599   echo "$as_me: program exited with status $ac_status" >&5
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4602
4603 ( exit $ac_status )
4604 ac_cv_c_bigendian=yes
4605 fi
4606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4607 fi
4608
4609
4610 fi
4611
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 fi
4614 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4615 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4616 case $ac_cv_c_bigendian in
4617   yes)
4618     ENDIAN=big
4619  ;;
4620   no)
4621     ENDIAN=little
4622  ;;
4623   *)
4624     { { echo "$as_me:$LINENO: error: unknown endianness
4625 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4626 echo "$as_me: error: unknown endianness
4627 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4628    { (exit 1); exit 1; }; } ;;
4629 esac
4630
4631
4632 if test "$cross_compiling" = yes; then
4633   LLVM_CROSS_COMPILING=1
4634
4635
4636 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4637 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4638 if test "${ac_cv_build_exeext+set}" = set; then
4639   echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4642   ac_cv_build_exeext=.exe
4643 else
4644   ac_build_prefix=${build_alias}-
4645
4646   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4647 set dummy ${ac_build_prefix}gcc; ac_word=$2
4648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4651   echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653   if test -n "$BUILD_CC"; then
4654   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4658 do
4659   IFS=$as_save_IFS
4660   test -z "$as_dir" && as_dir=.
4661   for ac_exec_ext in '' $ac_executable_extensions; do
4662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4663     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665     break 2
4666   fi
4667 done
4668 done
4669 IFS=$as_save_IFS
4670
4671 fi
4672 fi
4673 BUILD_CC=$ac_cv_prog_BUILD_CC
4674 if test -n "$BUILD_CC"; then
4675   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4676 echo "${ECHO_T}$BUILD_CC" >&6; }
4677 else
4678   { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4680 fi
4681
4682
4683   if test -z "$BUILD_CC"; then
4684      # Extract the first word of "gcc", so it can be a program name with args.
4685 set dummy gcc; ac_word=$2
4686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4689   echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691   if test -n "$BUILD_CC"; then
4692   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699   for ac_exec_ext in '' $ac_executable_extensions; do
4700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4701     ac_cv_prog_BUILD_CC="gcc"
4702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703     break 2
4704   fi
4705 done
4706 done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 BUILD_CC=$ac_cv_prog_BUILD_CC
4712 if test -n "$BUILD_CC"; then
4713   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4714 echo "${ECHO_T}$BUILD_CC" >&6; }
4715 else
4716   { echo "$as_me:$LINENO: result: no" >&5
4717 echo "${ECHO_T}no" >&6; }
4718 fi
4719
4720
4721      if test -z "$BUILD_CC"; then
4722        # Extract the first word of "cc", so it can be a program name with args.
4723 set dummy cc; ac_word=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4727   echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729   if test -n "$BUILD_CC"; then
4730   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4731 else
4732   ac_prog_rejected=no
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4735 do
4736   IFS=$as_save_IFS
4737   test -z "$as_dir" && as_dir=.
4738   for ac_exec_ext in '' $ac_executable_extensions; do
4739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4740     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4741        ac_prog_rejected=yes
4742        continue
4743      fi
4744     ac_cv_prog_BUILD_CC="cc"
4745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746     break 2
4747   fi
4748 done
4749 done
4750 IFS=$as_save_IFS
4751
4752 if test $ac_prog_rejected = yes; then
4753   # We found a bogon in the path, so make sure we never use it.
4754   set dummy $ac_cv_prog_BUILD_CC
4755   shift
4756   if test $# != 0; then
4757     # We chose a different compiler from the bogus one.
4758     # However, it has the same basename, so the bogon will be chosen
4759     # first if we set BUILD_CC to just the basename; use the full file name.
4760     shift
4761     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4762   fi
4763 fi
4764 fi
4765 fi
4766 BUILD_CC=$ac_cv_prog_BUILD_CC
4767 if test -n "$BUILD_CC"; then
4768   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4769 echo "${ECHO_T}$BUILD_CC" >&6; }
4770 else
4771   { echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6; }
4773 fi
4774
4775
4776      fi
4777   fi
4778   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4779 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4780    { (exit 1); exit 1; }; }
4781   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4782   rm -f conftest*
4783   echo 'int main () { return 0; }' > conftest.$ac_ext
4784   ac_cv_build_exeext=
4785   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4786   (eval $ac_build_link) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); }; then
4790     for file in conftest.*; do
4791       case $file in
4792       *.c | *.o | *.obj | *.dSYM) ;;
4793       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4794       esac
4795     done
4796   else
4797     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4798 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4799    { (exit 1); exit 1; }; }
4800   fi
4801   rm -f conftest*
4802   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4803 fi
4804 fi
4805
4806 BUILD_EXEEXT=""
4807 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4808 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4809 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4810 ac_build_exeext=$BUILD_EXEEXT
4811
4812   ac_build_prefix=${build_alias}-
4813   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4814 set dummy ${ac_build_prefix}g++; ac_word=$2
4815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4818   echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820   if test -n "$BUILD_CXX"; then
4821   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826   IFS=$as_save_IFS
4827   test -z "$as_dir" && as_dir=.
4828   for ac_exec_ext in '' $ac_executable_extensions; do
4829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4830     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4832     break 2
4833   fi
4834 done
4835 done
4836 IFS=$as_save_IFS
4837
4838 fi
4839 fi
4840 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4841 if test -n "$BUILD_CXX"; then
4842   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4843 echo "${ECHO_T}$BUILD_CXX" >&6; }
4844 else
4845   { echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6; }
4847 fi
4848
4849
4850   if test -z "$BUILD_CXX"; then
4851      # Extract the first word of "g++", so it can be a program name with args.
4852 set dummy g++; ac_word=$2
4853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4856   echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858   if test -n "$BUILD_CXX"; then
4859   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864   IFS=$as_save_IFS
4865   test -z "$as_dir" && as_dir=.
4866   for ac_exec_ext in '' $ac_executable_extensions; do
4867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4868     ac_cv_prog_BUILD_CXX="g++"
4869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870     break 2
4871   fi
4872 done
4873 done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4879 if test -n "$BUILD_CXX"; then
4880   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4881 echo "${ECHO_T}$BUILD_CXX" >&6; }
4882 else
4883   { echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6; }
4885 fi
4886
4887
4888      if test -z "$BUILD_CXX"; then
4889        # Extract the first word of "c++", so it can be a program name with args.
4890 set dummy c++; ac_word=$2
4891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   if test -n "$BUILD_CXX"; then
4897   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4898 else
4899   ac_prog_rejected=no
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903   IFS=$as_save_IFS
4904   test -z "$as_dir" && as_dir=.
4905   for ac_exec_ext in '' $ac_executable_extensions; do
4906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4907     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4908        ac_prog_rejected=yes
4909        continue
4910      fi
4911     ac_cv_prog_BUILD_CXX="c++"
4912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913     break 2
4914   fi
4915 done
4916 done
4917 IFS=$as_save_IFS
4918
4919 if test $ac_prog_rejected = yes; then
4920   # We found a bogon in the path, so make sure we never use it.
4921   set dummy $ac_cv_prog_BUILD_CXX
4922   shift
4923   if test $# != 0; then
4924     # We chose a different compiler from the bogus one.
4925     # However, it has the same basename, so the bogon will be chosen
4926     # first if we set BUILD_CXX to just the basename; use the full file name.
4927     shift
4928     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4929   fi
4930 fi
4931 fi
4932 fi
4933 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4934 if test -n "$BUILD_CXX"; then
4935   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4936 echo "${ECHO_T}$BUILD_CXX" >&6; }
4937 else
4938   { echo "$as_me:$LINENO: result: no" >&5
4939 echo "${ECHO_T}no" >&6; }
4940 fi
4941
4942
4943      fi
4944   fi
4945 else
4946   LLVM_CROSS_COMPILING=0
4947
4948 fi
4949
4950 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4951   cvsbuild="yes"
4952   optimize="no"
4953   CVSBUILD=CVSBUILD=1
4954
4955 else
4956   cvsbuild="no"
4957   optimize="yes"
4958 fi
4959
4960
4961 # Check whether --enable-optimized was given.
4962 if test "${enable_optimized+set}" = set; then
4963   enableval=$enable_optimized;
4964 else
4965   enableval=$optimize
4966 fi
4967
4968 if test ${enableval} = "no" ; then
4969   ENABLE_OPTIMIZED=
4970
4971 else
4972   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4973
4974 fi
4975
4976 # Check whether --enable-profiling was given.
4977 if test "${enable_profiling+set}" = set; then
4978   enableval=$enable_profiling;
4979 else
4980   enableval="no"
4981 fi
4982
4983 if test ${enableval} = "no" ; then
4984   ENABLE_PROFILING=
4985
4986 else
4987   ENABLE_PROFILING=ENABLE_PROFILING=1
4988
4989 fi
4990
4991 # Check whether --enable-assertions was given.
4992 if test "${enable_assertions+set}" = set; then
4993   enableval=$enable_assertions;
4994 else
4995   enableval="yes"
4996 fi
4997
4998 if test ${enableval} = "yes" ; then
4999   DISABLE_ASSERTIONS=
5000
5001 else
5002   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5003
5004 fi
5005
5006 # Check whether --enable-expensive-checks was given.
5007 if test "${enable_expensive_checks+set}" = set; then
5008   enableval=$enable_expensive_checks;
5009 else
5010   enableval="no"
5011 fi
5012
5013 if test ${enableval} = "yes" ; then
5014   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5015
5016   EXPENSIVE_CHECKS=yes
5017
5018 else
5019   ENABLE_EXPENSIVE_CHECKS=
5020
5021   EXPENSIVE_CHECKS=no
5022
5023 fi
5024
5025 # Check whether --enable-debug-runtime was given.
5026 if test "${enable_debug_runtime+set}" = set; then
5027   enableval=$enable_debug_runtime;
5028 else
5029   enableval=no
5030 fi
5031
5032 if test ${enableval} = "no" ; then
5033   DEBUG_RUNTIME=
5034
5035 else
5036   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5037
5038 fi
5039
5040 # Check whether --enable-debug-symbols was given.
5041 if test "${enable_debug_symbols+set}" = set; then
5042   enableval=$enable_debug_symbols;
5043 else
5044   enableval=no
5045 fi
5046
5047 if test ${enableval} = "no" ; then
5048   DEBUG_SYMBOLS=
5049
5050 else
5051   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5052
5053 fi
5054
5055 # Check whether --enable-jit was given.
5056 if test "${enable_jit+set}" = set; then
5057   enableval=$enable_jit;
5058 else
5059   enableval=default
5060 fi
5061
5062 if test ${enableval} = "no"
5063 then
5064   JIT=
5065
5066 else
5067   case "$llvm_cv_target_arch" in
5068     x86)         TARGET_HAS_JIT=1
5069  ;;
5070     Sparc)       TARGET_HAS_JIT=0
5071  ;;
5072     PowerPC)     TARGET_HAS_JIT=1
5073  ;;
5074     x86_64)      TARGET_HAS_JIT=1
5075  ;;
5076     Alpha)       TARGET_HAS_JIT=0
5077  ;;
5078     ARM)         TARGET_HAS_JIT=1
5079  ;;
5080     Mips)        TARGET_HAS_JIT=1
5081  ;;
5082     XCore)       TARGET_HAS_JIT=0
5083  ;;
5084     MSP430)      TARGET_HAS_JIT=0
5085  ;;
5086     Blackfin)    TARGET_HAS_JIT=0
5087  ;;
5088     MBlaze)      TARGET_HAS_JIT=0
5089  ;;
5090     PTX)         TARGET_HAS_JIT=0
5091  ;;
5092     *)           TARGET_HAS_JIT=0
5093  ;;
5094   esac
5095 fi
5096
5097 # Check whether --enable-docs was given.
5098 if test "${enable_docs+set}" = set; then
5099   enableval=$enable_docs;
5100 else
5101   enableval=default
5102 fi
5103
5104 case "$enableval" in
5105   yes) ENABLE_DOCS=1
5106  ;;
5107   no)  ENABLE_DOCS=0
5108  ;;
5109   default) ENABLE_DOCS=1
5110  ;;
5111   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5112 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5113    { (exit 1); exit 1; }; } ;;
5114 esac
5115
5116 # Check whether --enable-doxygen was given.
5117 if test "${enable_doxygen+set}" = set; then
5118   enableval=$enable_doxygen;
5119 else
5120   enableval=default
5121 fi
5122
5123 case "$enableval" in
5124   yes) ENABLE_DOXYGEN=1
5125  ;;
5126   no)  ENABLE_DOXYGEN=0
5127  ;;
5128   default) ENABLE_DOXYGEN=0
5129  ;;
5130   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5131 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5132    { (exit 1); exit 1; }; } ;;
5133 esac
5134
5135 # Check whether --enable-threads was given.
5136 if test "${enable_threads+set}" = set; then
5137   enableval=$enable_threads;
5138 else
5139   enableval=default
5140 fi
5141
5142 case "$enableval" in
5143   yes) ENABLE_THREADS=1
5144  ;;
5145   no)  ENABLE_THREADS=0
5146  ;;
5147   default) ENABLE_THREADS=1
5148  ;;
5149   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5150 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5151    { (exit 1); exit 1; }; } ;;
5152 esac
5153
5154 cat >>confdefs.h <<_ACEOF
5155 #define ENABLE_THREADS $ENABLE_THREADS
5156 _ACEOF
5157
5158
5159 # Check whether --enable-pthreads was given.
5160 if test "${enable_pthreads+set}" = set; then
5161   enableval=$enable_pthreads;
5162 else
5163   enableval=default
5164 fi
5165
5166 case "$enableval" in
5167   yes) ENABLE_PTHREADS=1
5168  ;;
5169   no)  ENABLE_PTHREADS=0
5170  ;;
5171   default) ENABLE_PTHREADS=1
5172  ;;
5173   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5174 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5175    { (exit 1); exit 1; }; } ;;
5176 esac
5177
5178 # Check whether --enable-pic was given.
5179 if test "${enable_pic+set}" = set; then
5180   enableval=$enable_pic;
5181 else
5182   enableval=default
5183 fi
5184
5185 case "$enableval" in
5186   yes) ENABLE_PIC=1
5187  ;;
5188   no)  ENABLE_PIC=0
5189  ;;
5190   default) ENABLE_PIC=1
5191  ;;
5192   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5193 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5194    { (exit 1); exit 1; }; } ;;
5195 esac
5196
5197 cat >>confdefs.h <<_ACEOF
5198 #define ENABLE_PIC $ENABLE_PIC
5199 _ACEOF
5200
5201
5202 # Check whether --enable-shared was given.
5203 if test "${enable_shared+set}" = set; then
5204   enableval=$enable_shared;
5205 else
5206   enableval=default
5207 fi
5208
5209 case "$enableval" in
5210   yes) ENABLE_SHARED=1
5211  ;;
5212   no)  ENABLE_SHARED=0
5213  ;;
5214   default) ENABLE_SHARED=0
5215  ;;
5216   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5217 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5218    { (exit 1); exit 1; }; } ;;
5219 esac
5220
5221 # Check whether --enable-embed-stdcxx was given.
5222 if test "${enable_embed_stdcxx+set}" = set; then
5223   enableval=$enable_embed_stdcxx;
5224 else
5225   enableval=default
5226 fi
5227
5228 case "$enableval" in
5229   yes) ENABLE_EMBED_STDCXX=1
5230  ;;
5231   no)  ENABLE_EMBED_STDCXX=0
5232  ;;
5233   default) ENABLE_EMBED_STDCXX=0
5234  ;;
5235   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5236 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5237    { (exit 1); exit 1; }; } ;;
5238 esac
5239
5240 # Check whether --enable-timestamps was given.
5241 if test "${enable_timestamps+set}" = set; then
5242   enableval=$enable_timestamps;
5243 else
5244   enableval=default
5245 fi
5246
5247 case "$enableval" in
5248   yes) ENABLE_TIMESTAMPS=1
5249  ;;
5250   no)  ENABLE_TIMESTAMPS=0
5251  ;;
5252   default) ENABLE_TIMESTAMPS=1
5253  ;;
5254   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5255 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5256    { (exit 1); exit 1; }; } ;;
5257 esac
5258
5259 cat >>confdefs.h <<_ACEOF
5260 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5261 _ACEOF
5262
5263
5264 TARGETS_TO_BUILD=""
5265 # Check whether --enable-targets was given.
5266 if test "${enable_targets+set}" = set; then
5267   enableval=$enable_targets;
5268 else
5269   enableval=all
5270 fi
5271
5272 if test "$enableval" = host-only ; then
5273   enableval=host
5274 fi
5275 case "$enableval" in
5276   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 Blackfin CBackend CppBackend MBlaze PTX" ;;
5277   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5278       case "$a_target" in
5279         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5280         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5281         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5282         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5283         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5284         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5285         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5286         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5287         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5288         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5289         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5290         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5291         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5292         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5293         host) case "$llvm_cv_target_arch" in
5294             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5295             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5296             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5297             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5298             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5299             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5300             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5301             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5302             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5303             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5304             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5305             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5306             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5307             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5308 echo "$as_me: error: Can not set target to build" >&2;}
5309    { (exit 1); exit 1; }; } ;;
5310           esac ;;
5311         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5312 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5313    { (exit 1); exit 1; }; } ;;
5314       esac
5315   done
5316   ;;
5317 esac
5318 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5319
5320
5321 # Determine whether we are building LLVM support for the native architecture.
5322 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5323 for a_target in $TARGETS_TO_BUILD; do
5324   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5325
5326 cat >>confdefs.h <<_ACEOF
5327 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5328 _ACEOF
5329
5330     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5331     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5332     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5333     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5334     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5335       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5336     fi
5337
5338 cat >>confdefs.h <<_ACEOF
5339 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5340 _ACEOF
5341
5342
5343 cat >>confdefs.h <<_ACEOF
5344 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5345 _ACEOF
5346
5347
5348 cat >>confdefs.h <<_ACEOF
5349 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5350 _ACEOF
5351
5352
5353 cat >>confdefs.h <<_ACEOF
5354 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5355 _ACEOF
5356
5357     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5358
5359 cat >>confdefs.h <<_ACEOF
5360 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5361 _ACEOF
5362
5363     fi
5364   fi
5365 done
5366
5367 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5368 # target feature def files.
5369 LLVM_ENUM_TARGETS=""
5370 LLVM_ENUM_ASM_PRINTERS=""
5371 LLVM_ENUM_ASM_PARSERS=""
5372 LLVM_ENUM_DISASSEMBLERS=""
5373 for target_to_build in $TARGETS_TO_BUILD; do
5374   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5375   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5376     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5377   fi
5378   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5379     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5380   fi
5381   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5382     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5383   fi
5384 done
5385
5386
5387
5388
5389
5390 # Check whether --enable-cbe-printf-a was given.
5391 if test "${enable_cbe_printf_a+set}" = set; then
5392   enableval=$enable_cbe_printf_a;
5393 else
5394   enableval=default
5395 fi
5396
5397 case "$enableval" in
5398   yes) ENABLE_CBE_PRINTF_A=1
5399  ;;
5400   no)  ENABLE_CBE_PRINTF_A=0
5401  ;;
5402   default)  ENABLE_CBE_PRINTF_A=1
5403  ;;
5404   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5405 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5406    { (exit 1); exit 1; }; } ;;
5407 esac
5408
5409 cat >>confdefs.h <<_ACEOF
5410 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5411 _ACEOF
5412
5413
5414
5415 # Check whether --with-optimize-option was given.
5416 if test "${with_optimize_option+set}" = set; then
5417   withval=$with_optimize_option;
5418 else
5419   withval=default
5420 fi
5421
5422 { echo "$as_me:$LINENO: checking optimization flags" >&5
5423 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5424 case "$withval" in
5425   default)
5426     case "$llvm_cv_os_type" in
5427     FreeBSD) optimize_option=-O2 ;;
5428     MingW) optimize_option=-O2 ;;
5429     *)     optimize_option=-O3 ;;
5430     esac ;;
5431   *) optimize_option="$withval" ;;
5432 esac
5433 OPTIMIZE_OPTION=$optimize_option
5434
5435 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5436 echo "${ECHO_T}$optimize_option" >&6; }
5437
5438
5439 # Check whether --with-extra-options was given.
5440 if test "${with_extra_options+set}" = set; then
5441   withval=$with_extra_options;
5442 else
5443   withval=default
5444 fi
5445
5446 case "$withval" in
5447   default) EXTRA_OPTIONS= ;;
5448   *) EXTRA_OPTIONS=$withval ;;
5449 esac
5450 EXTRA_OPTIONS=$EXTRA_OPTIONS
5451
5452
5453
5454 # Check whether --with-extra-ld-options was given.
5455 if test "${with_extra_ld_options+set}" = set; then
5456   withval=$with_extra_ld_options;
5457 else
5458   withval=default
5459 fi
5460
5461 case "$withval" in
5462   default) EXTRA_LD_OPTIONS= ;;
5463   *) EXTRA_LD_OPTIONS=$withval ;;
5464 esac
5465 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5466
5467
5468 # Check whether --enable-bindings was given.
5469 if test "${enable_bindings+set}" = set; then
5470   enableval=$enable_bindings;
5471 else
5472   enableval=default
5473 fi
5474
5475 BINDINGS_TO_BUILD=""
5476 case "$enableval" in
5477   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5478   all ) BINDINGS_TO_BUILD="ocaml" ;;
5479   none | no) BINDINGS_TO_BUILD="" ;;
5480   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5481       case "$a_binding" in
5482         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5483         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5484 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5485    { (exit 1); exit 1; }; } ;;
5486       esac
5487   done
5488   ;;
5489 esac
5490
5491
5492 # Check whether --with-ocaml-libdir was given.
5493 if test "${with_ocaml_libdir+set}" = set; then
5494   withval=$with_ocaml_libdir;
5495 else
5496   withval=auto
5497 fi
5498
5499 case "$withval" in
5500   auto) with_ocaml_libdir="$withval" ;;
5501   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5502   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5503 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5504    { (exit 1); exit 1; }; } ;;
5505 esac
5506
5507
5508 # Check whether --with-clang-srcdir was given.
5509 if test "${with_clang_srcdir+set}" = set; then
5510   withval=$with_clang_srcdir;
5511 else
5512   withval="-"
5513 fi
5514
5515 case "$withval" in
5516   -) clang_src_root="" ;;
5517   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5518   *) clang_src_root="$ac_pwd/$withval" ;;
5519 esac
5520 CLANG_SRC_ROOT=$clang_src_root
5521
5522
5523
5524 # Check whether --with-clang-resource-dir was given.
5525 if test "${with_clang_resource_dir+set}" = set; then
5526   withval=$with_clang_resource_dir;
5527 else
5528   withval=""
5529 fi
5530
5531
5532 cat >>confdefs.h <<_ACEOF
5533 #define CLANG_RESOURCE_DIR "$withval"
5534 _ACEOF
5535
5536
5537
5538 # Check whether --with-c-include-dirs was given.
5539 if test "${with_c_include_dirs+set}" = set; then
5540   withval=$with_c_include_dirs;
5541 else
5542   withval=""
5543 fi
5544
5545
5546 cat >>confdefs.h <<_ACEOF
5547 #define C_INCLUDE_DIRS "$withval"
5548 _ACEOF
5549
5550
5551
5552 # Check whether --with-cxx-include-root was given.
5553 if test "${with_cxx_include_root+set}" = set; then
5554   withval=$with_cxx_include_root;
5555 else
5556   withval=""
5557 fi
5558
5559
5560 cat >>confdefs.h <<_ACEOF
5561 #define CXX_INCLUDE_ROOT "$withval"
5562 _ACEOF
5563
5564
5565
5566 # Check whether --with-cxx-include-arch was given.
5567 if test "${with_cxx_include_arch+set}" = set; then
5568   withval=$with_cxx_include_arch;
5569 else
5570   withval=""
5571 fi
5572
5573
5574 cat >>confdefs.h <<_ACEOF
5575 #define CXX_INCLUDE_ARCH "$withval"
5576 _ACEOF
5577
5578
5579
5580 # Check whether --with-cxx-include-32bit-dir was given.
5581 if test "${with_cxx_include_32bit_dir+set}" = set; then
5582   withval=$with_cxx_include_32bit_dir;
5583 else
5584   withval=""
5585 fi
5586
5587
5588 cat >>confdefs.h <<_ACEOF
5589 #define CXX_INCLUDE_32BIT_DIR "$withval"
5590 _ACEOF
5591
5592
5593
5594 # Check whether --with-cxx-include-64bit-dir was given.
5595 if test "${with_cxx_include_64bit_dir+set}" = set; then
5596   withval=$with_cxx_include_64bit_dir;
5597 else
5598   withval=""
5599 fi
5600
5601
5602 cat >>confdefs.h <<_ACEOF
5603 #define CXX_INCLUDE_64BIT_DIR "$withval"
5604 _ACEOF
5605
5606
5607
5608 # Check whether --with-binutils-include was given.
5609 if test "${with_binutils_include+set}" = set; then
5610   withval=$with_binutils_include;
5611 else
5612   withval=default
5613 fi
5614
5615 case "$withval" in
5616   default) WITH_BINUTILS_INCDIR=default ;;
5617   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5618   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5619 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5620    { (exit 1); exit 1; }; } ;;
5621 esac
5622 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5623   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5624
5625   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5626      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5627      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5628 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5629    { (exit 1); exit 1; }; };
5630   fi
5631 fi
5632
5633
5634 # Check whether --with-bug-report-url was given.
5635 if test "${with_bug_report_url+set}" = set; then
5636   withval=$with_bug_report_url;
5637 else
5638   withval="http://llvm.org/bugs/"
5639 fi
5640
5641
5642 cat >>confdefs.h <<_ACEOF
5643 #define BUG_REPORT_URL "$withval"
5644 _ACEOF
5645
5646
5647 # Check whether --enable-libffi was given.
5648 if test "${enable_libffi+set}" = set; then
5649   enableval=$enable_libffi; case "$enableval" in
5650     yes) llvm_cv_enable_libffi="yes" ;;
5651     no)  llvm_cv_enable_libffi="no"  ;;
5652     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5653 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5654    { (exit 1); exit 1; }; } ;;
5655   esac
5656 else
5657   llvm_cv_enable_libffi=no
5658 fi
5659
5660
5661
5662 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5663 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5664 if test "${lt_cv_path_NM+set}" = set; then
5665   echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667   if test -n "$NM"; then
5668   # Let the user override the test.
5669   lt_cv_path_NM="$NM"
5670 else
5671   lt_nm_to_check="${ac_tool_prefix}nm"
5672   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5673     lt_nm_to_check="$lt_nm_to_check nm"
5674   fi
5675   for lt_tmp_nm in $lt_nm_to_check; do
5676     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5677     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5678       IFS="$lt_save_ifs"
5679       test -z "$ac_dir" && ac_dir=.
5680       tmp_nm="$ac_dir/$lt_tmp_nm"
5681       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5682         # Check to see if the nm accepts a BSD-compat flag.
5683         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5684         #   nm: unknown option "B" ignored
5685         # Tru64's nm complains that /dev/null is an invalid object file
5686         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5687         */dev/null* | *'Invalid file or object type'*)
5688           lt_cv_path_NM="$tmp_nm -B"
5689           break
5690           ;;
5691         *)
5692           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5693           */dev/null*)
5694             lt_cv_path_NM="$tmp_nm -p"
5695             break
5696             ;;
5697           *)
5698             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5699             continue # so that we can try to find one that supports BSD flags
5700             ;;
5701           esac
5702           ;;
5703         esac
5704       fi
5705     done
5706     IFS="$lt_save_ifs"
5707   done
5708   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5709 fi
5710 fi
5711 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5712 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5713 NM="$lt_cv_path_NM"
5714
5715
5716
5717 { echo "$as_me:$LINENO: checking for GNU make" >&5
5718 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5719 if test "${llvm_cv_gnu_make_command+set}" = set; then
5720   echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722   llvm_cv_gnu_make_command=''
5723  for a in "$MAKE" make gmake gnumake ; do
5724   if test -z "$a" ; then continue ; fi ;
5725   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5726   then
5727    llvm_cv_gnu_make_command=$a ;
5728    break;
5729   fi
5730  done
5731 fi
5732 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5733 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5734  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5735    ifGNUmake='' ;
5736  else
5737    ifGNUmake='#' ;
5738    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5739 echo "${ECHO_T}\"Not found\"" >&6; };
5740  fi
5741
5742
5743 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5744 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5745 LN_S=$as_ln_s
5746 if test "$LN_S" = "ln -s"; then
5747   { echo "$as_me:$LINENO: result: yes" >&5
5748 echo "${ECHO_T}yes" >&6; }
5749 else
5750   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5751 echo "${ECHO_T}no, using $LN_S" >&6; }
5752 fi
5753
5754 # Extract the first word of "cmp", so it can be a program name with args.
5755 set dummy cmp; ac_word=$2
5756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5758 if test "${ac_cv_path_CMP+set}" = set; then
5759   echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761   case $CMP in
5762   [\\/]* | ?:[\\/]*)
5763   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5764   ;;
5765   *)
5766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5768 do
5769   IFS=$as_save_IFS
5770   test -z "$as_dir" && as_dir=.
5771   for ac_exec_ext in '' $ac_executable_extensions; do
5772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5773     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5775     break 2
5776   fi
5777 done
5778 done
5779 IFS=$as_save_IFS
5780
5781   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5782   ;;
5783 esac
5784 fi
5785 CMP=$ac_cv_path_CMP
5786 if test -n "$CMP"; then
5787   { echo "$as_me:$LINENO: result: $CMP" >&5
5788 echo "${ECHO_T}$CMP" >&6; }
5789 else
5790   { echo "$as_me:$LINENO: result: no" >&5
5791 echo "${ECHO_T}no" >&6; }
5792 fi
5793
5794
5795 # Extract the first word of "cp", so it can be a program name with args.
5796 set dummy cp; ac_word=$2
5797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5799 if test "${ac_cv_path_CP+set}" = set; then
5800   echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802   case $CP in
5803   [\\/]* | ?:[\\/]*)
5804   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5805   ;;
5806   *)
5807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH
5809 do
5810   IFS=$as_save_IFS
5811   test -z "$as_dir" && as_dir=.
5812   for ac_exec_ext in '' $ac_executable_extensions; do
5813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5814     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816     break 2
5817   fi
5818 done
5819 done
5820 IFS=$as_save_IFS
5821
5822   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5823   ;;
5824 esac
5825 fi
5826 CP=$ac_cv_path_CP
5827 if test -n "$CP"; then
5828   { echo "$as_me:$LINENO: result: $CP" >&5
5829 echo "${ECHO_T}$CP" >&6; }
5830 else
5831   { echo "$as_me:$LINENO: result: no" >&5
5832 echo "${ECHO_T}no" >&6; }
5833 fi
5834
5835
5836 # Extract the first word of "date", so it can be a program name with args.
5837 set dummy date; ac_word=$2
5838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5840 if test "${ac_cv_path_DATE+set}" = set; then
5841   echo $ECHO_N "(cached) $ECHO_C" >&6
5842 else
5843   case $DATE in
5844   [\\/]* | ?:[\\/]*)
5845   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5846   ;;
5847   *)
5848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5850 do
5851   IFS=$as_save_IFS
5852   test -z "$as_dir" && as_dir=.
5853   for ac_exec_ext in '' $ac_executable_extensions; do
5854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5855     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5857     break 2
5858   fi
5859 done
5860 done
5861 IFS=$as_save_IFS
5862
5863   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5864   ;;
5865 esac
5866 fi
5867 DATE=$ac_cv_path_DATE
5868 if test -n "$DATE"; then
5869   { echo "$as_me:$LINENO: result: $DATE" >&5
5870 echo "${ECHO_T}$DATE" >&6; }
5871 else
5872   { echo "$as_me:$LINENO: result: no" >&5
5873 echo "${ECHO_T}no" >&6; }
5874 fi
5875
5876
5877 # Extract the first word of "find", so it can be a program name with args.
5878 set dummy find; ac_word=$2
5879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5881 if test "${ac_cv_path_FIND+set}" = set; then
5882   echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884   case $FIND in
5885   [\\/]* | ?:[\\/]*)
5886   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5887   ;;
5888   *)
5889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5891 do
5892   IFS=$as_save_IFS
5893   test -z "$as_dir" && as_dir=.
5894   for ac_exec_ext in '' $ac_executable_extensions; do
5895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5896     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5898     break 2
5899   fi
5900 done
5901 done
5902 IFS=$as_save_IFS
5903
5904   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5905   ;;
5906 esac
5907 fi
5908 FIND=$ac_cv_path_FIND
5909 if test -n "$FIND"; then
5910   { echo "$as_me:$LINENO: result: $FIND" >&5
5911 echo "${ECHO_T}$FIND" >&6; }
5912 else
5913   { echo "$as_me:$LINENO: result: no" >&5
5914 echo "${ECHO_T}no" >&6; }
5915 fi
5916
5917
5918 # Extract the first word of "grep", so it can be a program name with args.
5919 set dummy grep; ac_word=$2
5920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5922 if test "${ac_cv_path_GREP+set}" = set; then
5923   echo $ECHO_N "(cached) $ECHO_C" >&6
5924 else
5925   case $GREP in
5926   [\\/]* | ?:[\\/]*)
5927   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5928   ;;
5929   *)
5930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933   IFS=$as_save_IFS
5934   test -z "$as_dir" && as_dir=.
5935   for ac_exec_ext in '' $ac_executable_extensions; do
5936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5937     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939     break 2
5940   fi
5941 done
5942 done
5943 IFS=$as_save_IFS
5944
5945   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5946   ;;
5947 esac
5948 fi
5949 GREP=$ac_cv_path_GREP
5950 if test -n "$GREP"; then
5951   { echo "$as_me:$LINENO: result: $GREP" >&5
5952 echo "${ECHO_T}$GREP" >&6; }
5953 else
5954   { echo "$as_me:$LINENO: result: no" >&5
5955 echo "${ECHO_T}no" >&6; }
5956 fi
5957
5958
5959 # Extract the first word of "mkdir", so it can be a program name with args.
5960 set dummy mkdir; ac_word=$2
5961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5963 if test "${ac_cv_path_MKDIR+set}" = set; then
5964   echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966   case $MKDIR in
5967   [\\/]* | ?:[\\/]*)
5968   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5969   ;;
5970   *)
5971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 for as_dir in $PATH
5973 do
5974   IFS=$as_save_IFS
5975   test -z "$as_dir" && as_dir=.
5976   for ac_exec_ext in '' $ac_executable_extensions; do
5977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5978     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5980     break 2
5981   fi
5982 done
5983 done
5984 IFS=$as_save_IFS
5985
5986   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5987   ;;
5988 esac
5989 fi
5990 MKDIR=$ac_cv_path_MKDIR
5991 if test -n "$MKDIR"; then
5992   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5993 echo "${ECHO_T}$MKDIR" >&6; }
5994 else
5995   { echo "$as_me:$LINENO: result: no" >&5
5996 echo "${ECHO_T}no" >&6; }
5997 fi
5998
5999
6000 # Extract the first word of "mv", so it can be a program name with args.
6001 set dummy mv; ac_word=$2
6002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6004 if test "${ac_cv_path_MV+set}" = set; then
6005   echo $ECHO_N "(cached) $ECHO_C" >&6
6006 else
6007   case $MV in
6008   [\\/]* | ?:[\\/]*)
6009   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6010   ;;
6011   *)
6012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 for as_dir in $PATH
6014 do
6015   IFS=$as_save_IFS
6016   test -z "$as_dir" && as_dir=.
6017   for ac_exec_ext in '' $ac_executable_extensions; do
6018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6019     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6021     break 2
6022   fi
6023 done
6024 done
6025 IFS=$as_save_IFS
6026
6027   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6028   ;;
6029 esac
6030 fi
6031 MV=$ac_cv_path_MV
6032 if test -n "$MV"; then
6033   { echo "$as_me:$LINENO: result: $MV" >&5
6034 echo "${ECHO_T}$MV" >&6; }
6035 else
6036   { echo "$as_me:$LINENO: result: no" >&5
6037 echo "${ECHO_T}no" >&6; }
6038 fi
6039
6040
6041 if test -n "$ac_tool_prefix"; then
6042   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6043 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6046 if test "${ac_cv_prog_RANLIB+set}" = set; then
6047   echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049   if test -n "$RANLIB"; then
6050   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6051 else
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 for as_dir in $PATH
6054 do
6055   IFS=$as_save_IFS
6056   test -z "$as_dir" && as_dir=.
6057   for ac_exec_ext in '' $ac_executable_extensions; do
6058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6059     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6061     break 2
6062   fi
6063 done
6064 done
6065 IFS=$as_save_IFS
6066
6067 fi
6068 fi
6069 RANLIB=$ac_cv_prog_RANLIB
6070 if test -n "$RANLIB"; then
6071   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6072 echo "${ECHO_T}$RANLIB" >&6; }
6073 else
6074   { echo "$as_me:$LINENO: result: no" >&5
6075 echo "${ECHO_T}no" >&6; }
6076 fi
6077
6078
6079 fi
6080 if test -z "$ac_cv_prog_RANLIB"; then
6081   ac_ct_RANLIB=$RANLIB
6082   # Extract the first word of "ranlib", so it can be a program name with args.
6083 set dummy ranlib; ac_word=$2
6084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6086 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6087   echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089   if test -n "$ac_ct_RANLIB"; then
6090   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6091 else
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 for as_dir in $PATH
6094 do
6095   IFS=$as_save_IFS
6096   test -z "$as_dir" && as_dir=.
6097   for ac_exec_ext in '' $ac_executable_extensions; do
6098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6099     ac_cv_prog_ac_ct_RANLIB="ranlib"
6100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6101     break 2
6102   fi
6103 done
6104 done
6105 IFS=$as_save_IFS
6106
6107 fi
6108 fi
6109 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6110 if test -n "$ac_ct_RANLIB"; then
6111   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6112 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6113 else
6114   { echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6; }
6116 fi
6117
6118   if test "x$ac_ct_RANLIB" = x; then
6119     RANLIB=":"
6120   else
6121     case $cross_compiling:$ac_tool_warned in
6122 yes:)
6123 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6124 whose name does not start with the host triplet.  If you think this
6125 configuration is useful to you, please write to autoconf@gnu.org." >&5
6126 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6127 whose name does not start with the host triplet.  If you think this
6128 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6129 ac_tool_warned=yes ;;
6130 esac
6131     RANLIB=$ac_ct_RANLIB
6132   fi
6133 else
6134   RANLIB="$ac_cv_prog_RANLIB"
6135 fi
6136
6137 if test -n "$ac_tool_prefix"; then
6138   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6139 set dummy ${ac_tool_prefix}ar; ac_word=$2
6140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6142 if test "${ac_cv_prog_AR+set}" = set; then
6143   echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145   if test -n "$AR"; then
6146   ac_cv_prog_AR="$AR" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6150 do
6151   IFS=$as_save_IFS
6152   test -z "$as_dir" && as_dir=.
6153   for ac_exec_ext in '' $ac_executable_extensions; do
6154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6155     ac_cv_prog_AR="${ac_tool_prefix}ar"
6156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6157     break 2
6158   fi
6159 done
6160 done
6161 IFS=$as_save_IFS
6162
6163 fi
6164 fi
6165 AR=$ac_cv_prog_AR
6166 if test -n "$AR"; then
6167   { echo "$as_me:$LINENO: result: $AR" >&5
6168 echo "${ECHO_T}$AR" >&6; }
6169 else
6170   { echo "$as_me:$LINENO: result: no" >&5
6171 echo "${ECHO_T}no" >&6; }
6172 fi
6173
6174
6175 fi
6176 if test -z "$ac_cv_prog_AR"; then
6177   ac_ct_AR=$AR
6178   # Extract the first word of "ar", so it can be a program name with args.
6179 set dummy ar; ac_word=$2
6180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6182 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6183   echo $ECHO_N "(cached) $ECHO_C" >&6
6184 else
6185   if test -n "$ac_ct_AR"; then
6186   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6187 else
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH
6190 do
6191   IFS=$as_save_IFS
6192   test -z "$as_dir" && as_dir=.
6193   for ac_exec_ext in '' $ac_executable_extensions; do
6194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6195     ac_cv_prog_ac_ct_AR="ar"
6196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6197     break 2
6198   fi
6199 done
6200 done
6201 IFS=$as_save_IFS
6202
6203 fi
6204 fi
6205 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6206 if test -n "$ac_ct_AR"; then
6207   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6208 echo "${ECHO_T}$ac_ct_AR" >&6; }
6209 else
6210   { echo "$as_me:$LINENO: result: no" >&5
6211 echo "${ECHO_T}no" >&6; }
6212 fi
6213
6214   if test "x$ac_ct_AR" = x; then
6215     AR="false"
6216   else
6217     case $cross_compiling:$ac_tool_warned in
6218 yes:)
6219 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6220 whose name does not start with the host triplet.  If you think this
6221 configuration is useful to you, please write to autoconf@gnu.org." >&5
6222 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6223 whose name does not start with the host triplet.  If you think this
6224 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6225 ac_tool_warned=yes ;;
6226 esac
6227     AR=$ac_ct_AR
6228   fi
6229 else
6230   AR="$ac_cv_prog_AR"
6231 fi
6232
6233 # Extract the first word of "rm", so it can be a program name with args.
6234 set dummy rm; ac_word=$2
6235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6237 if test "${ac_cv_path_RM+set}" = set; then
6238   echo $ECHO_N "(cached) $ECHO_C" >&6
6239 else
6240   case $RM in
6241   [\\/]* | ?:[\\/]*)
6242   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6243   ;;
6244   *)
6245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6247 do
6248   IFS=$as_save_IFS
6249   test -z "$as_dir" && as_dir=.
6250   for ac_exec_ext in '' $ac_executable_extensions; do
6251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6252     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6254     break 2
6255   fi
6256 done
6257 done
6258 IFS=$as_save_IFS
6259
6260   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6261   ;;
6262 esac
6263 fi
6264 RM=$ac_cv_path_RM
6265 if test -n "$RM"; then
6266   { echo "$as_me:$LINENO: result: $RM" >&5
6267 echo "${ECHO_T}$RM" >&6; }
6268 else
6269   { echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6; }
6271 fi
6272
6273
6274 # Extract the first word of "sed", so it can be a program name with args.
6275 set dummy sed; ac_word=$2
6276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6278 if test "${ac_cv_path_SED+set}" = set; then
6279   echo $ECHO_N "(cached) $ECHO_C" >&6
6280 else
6281   case $SED in
6282   [\\/]* | ?:[\\/]*)
6283   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6284   ;;
6285   *)
6286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 for as_dir in $PATH
6288 do
6289   IFS=$as_save_IFS
6290   test -z "$as_dir" && as_dir=.
6291   for ac_exec_ext in '' $ac_executable_extensions; do
6292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6293     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6295     break 2
6296   fi
6297 done
6298 done
6299 IFS=$as_save_IFS
6300
6301   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6302   ;;
6303 esac
6304 fi
6305 SED=$ac_cv_path_SED
6306 if test -n "$SED"; then
6307   { echo "$as_me:$LINENO: result: $SED" >&5
6308 echo "${ECHO_T}$SED" >&6; }
6309 else
6310   { echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6; }
6312 fi
6313
6314
6315 # Extract the first word of "tar", so it can be a program name with args.
6316 set dummy tar; ac_word=$2
6317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6319 if test "${ac_cv_path_TAR+set}" = set; then
6320   echo $ECHO_N "(cached) $ECHO_C" >&6
6321 else
6322   case $TAR in
6323   [\\/]* | ?:[\\/]*)
6324   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6325   ;;
6326   *)
6327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH
6329 do
6330   IFS=$as_save_IFS
6331   test -z "$as_dir" && as_dir=.
6332   for ac_exec_ext in '' $ac_executable_extensions; do
6333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6334     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336     break 2
6337   fi
6338 done
6339 done
6340 IFS=$as_save_IFS
6341
6342   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6343   ;;
6344 esac
6345 fi
6346 TAR=$ac_cv_path_TAR
6347 if test -n "$TAR"; then
6348   { echo "$as_me:$LINENO: result: $TAR" >&5
6349 echo "${ECHO_T}$TAR" >&6; }
6350 else
6351   { echo "$as_me:$LINENO: result: no" >&5
6352 echo "${ECHO_T}no" >&6; }
6353 fi
6354
6355
6356 # Extract the first word of "pwd", so it can be a program name with args.
6357 set dummy pwd; ac_word=$2
6358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6360 if test "${ac_cv_path_BINPWD+set}" = set; then
6361   echo $ECHO_N "(cached) $ECHO_C" >&6
6362 else
6363   case $BINPWD in
6364   [\\/]* | ?:[\\/]*)
6365   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6366   ;;
6367   *)
6368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6370 do
6371   IFS=$as_save_IFS
6372   test -z "$as_dir" && as_dir=.
6373   for ac_exec_ext in '' $ac_executable_extensions; do
6374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6375     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377     break 2
6378   fi
6379 done
6380 done
6381 IFS=$as_save_IFS
6382
6383   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6384   ;;
6385 esac
6386 fi
6387 BINPWD=$ac_cv_path_BINPWD
6388 if test -n "$BINPWD"; then
6389   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6390 echo "${ECHO_T}$BINPWD" >&6; }
6391 else
6392   { echo "$as_me:$LINENO: result: no" >&5
6393 echo "${ECHO_T}no" >&6; }
6394 fi
6395
6396
6397
6398 # Extract the first word of "Graphviz", so it can be a program name with args.
6399 set dummy Graphviz; ac_word=$2
6400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6402 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6403   echo $ECHO_N "(cached) $ECHO_C" >&6
6404 else
6405   case $GRAPHVIZ in
6406   [\\/]* | ?:[\\/]*)
6407   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6408   ;;
6409   *)
6410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 for as_dir in $PATH
6412 do
6413   IFS=$as_save_IFS
6414   test -z "$as_dir" && as_dir=.
6415   for ac_exec_ext in '' $ac_executable_extensions; do
6416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6417     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419     break 2
6420   fi
6421 done
6422 done
6423 IFS=$as_save_IFS
6424
6425   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6426   ;;
6427 esac
6428 fi
6429 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6430 if test -n "$GRAPHVIZ"; then
6431   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6432 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6433 else
6434   { echo "$as_me:$LINENO: result: no" >&5
6435 echo "${ECHO_T}no" >&6; }
6436 fi
6437
6438
6439 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6440
6441 cat >>confdefs.h <<\_ACEOF
6442 #define HAVE_GRAPHVIZ 1
6443 _ACEOF
6444
6445     if test "$llvm_cv_os_type" = "MingW" ; then
6446     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6447   fi
6448
6449 cat >>confdefs.h <<_ACEOF
6450 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6451 _ACEOF
6452
6453 fi
6454 # Extract the first word of "dot", so it can be a program name with args.
6455 set dummy dot; ac_word=$2
6456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6458 if test "${ac_cv_path_DOT+set}" = set; then
6459   echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461   case $DOT in
6462   [\\/]* | ?:[\\/]*)
6463   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6464   ;;
6465   *)
6466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469   IFS=$as_save_IFS
6470   test -z "$as_dir" && as_dir=.
6471   for ac_exec_ext in '' $ac_executable_extensions; do
6472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6473     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475     break 2
6476   fi
6477 done
6478 done
6479 IFS=$as_save_IFS
6480
6481   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6482   ;;
6483 esac
6484 fi
6485 DOT=$ac_cv_path_DOT
6486 if test -n "$DOT"; then
6487   { echo "$as_me:$LINENO: result: $DOT" >&5
6488 echo "${ECHO_T}$DOT" >&6; }
6489 else
6490   { echo "$as_me:$LINENO: result: no" >&5
6491 echo "${ECHO_T}no" >&6; }
6492 fi
6493
6494
6495 if test "$DOT" != "echo dot" ; then
6496
6497 cat >>confdefs.h <<\_ACEOF
6498 #define HAVE_DOT 1
6499 _ACEOF
6500
6501     if test "$llvm_cv_os_type" = "MingW" ; then
6502     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6503   fi
6504
6505 cat >>confdefs.h <<_ACEOF
6506 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6507 _ACEOF
6508
6509 fi
6510 # Extract the first word of "fdp", so it can be a program name with args.
6511 set dummy fdp; ac_word=$2
6512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6514 if test "${ac_cv_path_FDP+set}" = set; then
6515   echo $ECHO_N "(cached) $ECHO_C" >&6
6516 else
6517   case $FDP in
6518   [\\/]* | ?:[\\/]*)
6519   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6520   ;;
6521   *)
6522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 for as_dir in $PATH
6524 do
6525   IFS=$as_save_IFS
6526   test -z "$as_dir" && as_dir=.
6527   for ac_exec_ext in '' $ac_executable_extensions; do
6528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6529     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6531     break 2
6532   fi
6533 done
6534 done
6535 IFS=$as_save_IFS
6536
6537   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6538   ;;
6539 esac
6540 fi
6541 FDP=$ac_cv_path_FDP
6542 if test -n "$FDP"; then
6543   { echo "$as_me:$LINENO: result: $FDP" >&5
6544 echo "${ECHO_T}$FDP" >&6; }
6545 else
6546   { echo "$as_me:$LINENO: result: no" >&5
6547 echo "${ECHO_T}no" >&6; }
6548 fi
6549
6550
6551 if test "$FDP" != "echo fdp" ; then
6552
6553 cat >>confdefs.h <<\_ACEOF
6554 #define HAVE_FDP 1
6555 _ACEOF
6556
6557     if test "$llvm_cv_os_type" = "MingW" ; then
6558     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6559   fi
6560
6561 cat >>confdefs.h <<_ACEOF
6562 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6563 _ACEOF
6564
6565 fi
6566 # Extract the first word of "neato", so it can be a program name with args.
6567 set dummy neato; ac_word=$2
6568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6570 if test "${ac_cv_path_NEATO+set}" = set; then
6571   echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573   case $NEATO in
6574   [\\/]* | ?:[\\/]*)
6575   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6576   ;;
6577   *)
6578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6580 do
6581   IFS=$as_save_IFS
6582   test -z "$as_dir" && as_dir=.
6583   for ac_exec_ext in '' $ac_executable_extensions; do
6584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6585     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6587     break 2
6588   fi
6589 done
6590 done
6591 IFS=$as_save_IFS
6592
6593   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6594   ;;
6595 esac
6596 fi
6597 NEATO=$ac_cv_path_NEATO
6598 if test -n "$NEATO"; then
6599   { echo "$as_me:$LINENO: result: $NEATO" >&5
6600 echo "${ECHO_T}$NEATO" >&6; }
6601 else
6602   { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6604 fi
6605
6606
6607 if test "$NEATO" != "echo neato" ; then
6608
6609 cat >>confdefs.h <<\_ACEOF
6610 #define HAVE_NEATO 1
6611 _ACEOF
6612
6613     if test "$llvm_cv_os_type" = "MingW" ; then
6614     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6615   fi
6616
6617 cat >>confdefs.h <<_ACEOF
6618 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6619 _ACEOF
6620
6621 fi
6622 # Extract the first word of "twopi", so it can be a program name with args.
6623 set dummy twopi; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_path_TWOPI+set}" = set; then
6627   echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629   case $TWOPI in
6630   [\\/]* | ?:[\\/]*)
6631   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6632   ;;
6633   *)
6634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637   IFS=$as_save_IFS
6638   test -z "$as_dir" && as_dir=.
6639   for ac_exec_ext in '' $ac_executable_extensions; do
6640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6641     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643     break 2
6644   fi
6645 done
6646 done
6647 IFS=$as_save_IFS
6648
6649   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6650   ;;
6651 esac
6652 fi
6653 TWOPI=$ac_cv_path_TWOPI
6654 if test -n "$TWOPI"; then
6655   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6656 echo "${ECHO_T}$TWOPI" >&6; }
6657 else
6658   { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6660 fi
6661
6662
6663 if test "$TWOPI" != "echo twopi" ; then
6664
6665 cat >>confdefs.h <<\_ACEOF
6666 #define HAVE_TWOPI 1
6667 _ACEOF
6668
6669     if test "$llvm_cv_os_type" = "MingW" ; then
6670     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6671   fi
6672
6673 cat >>confdefs.h <<_ACEOF
6674 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6675 _ACEOF
6676
6677 fi
6678 # Extract the first word of "circo", so it can be a program name with args.
6679 set dummy circo; ac_word=$2
6680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6682 if test "${ac_cv_path_CIRCO+set}" = set; then
6683   echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685   case $CIRCO in
6686   [\\/]* | ?:[\\/]*)
6687   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6688   ;;
6689   *)
6690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6692 do
6693   IFS=$as_save_IFS
6694   test -z "$as_dir" && as_dir=.
6695   for ac_exec_ext in '' $ac_executable_extensions; do
6696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6697     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699     break 2
6700   fi
6701 done
6702 done
6703 IFS=$as_save_IFS
6704
6705   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6706   ;;
6707 esac
6708 fi
6709 CIRCO=$ac_cv_path_CIRCO
6710 if test -n "$CIRCO"; then
6711   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6712 echo "${ECHO_T}$CIRCO" >&6; }
6713 else
6714   { echo "$as_me:$LINENO: result: no" >&5
6715 echo "${ECHO_T}no" >&6; }
6716 fi
6717
6718
6719 if test "$CIRCO" != "echo circo" ; then
6720
6721 cat >>confdefs.h <<\_ACEOF
6722 #define HAVE_CIRCO 1
6723 _ACEOF
6724
6725     if test "$llvm_cv_os_type" = "MingW" ; then
6726     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6727   fi
6728
6729 cat >>confdefs.h <<_ACEOF
6730 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6731 _ACEOF
6732
6733 fi
6734 for ac_prog in gv gsview32
6735 do
6736   # Extract the first word of "$ac_prog", so it can be a program name with args.
6737 set dummy $ac_prog; ac_word=$2
6738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740 if test "${ac_cv_path_GV+set}" = set; then
6741   echo $ECHO_N "(cached) $ECHO_C" >&6
6742 else
6743   case $GV in
6744   [\\/]* | ?:[\\/]*)
6745   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6746   ;;
6747   *)
6748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 for as_dir in $PATH
6750 do
6751   IFS=$as_save_IFS
6752   test -z "$as_dir" && as_dir=.
6753   for ac_exec_ext in '' $ac_executable_extensions; do
6754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6755     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757     break 2
6758   fi
6759 done
6760 done
6761 IFS=$as_save_IFS
6762
6763   ;;
6764 esac
6765 fi
6766 GV=$ac_cv_path_GV
6767 if test -n "$GV"; then
6768   { echo "$as_me:$LINENO: result: $GV" >&5
6769 echo "${ECHO_T}$GV" >&6; }
6770 else
6771   { echo "$as_me:$LINENO: result: no" >&5
6772 echo "${ECHO_T}no" >&6; }
6773 fi
6774
6775
6776   test -n "$GV" && break
6777 done
6778 test -n "$GV" || GV="echo gv"
6779
6780 if test "$GV" != "echo gv" ; then
6781
6782 cat >>confdefs.h <<\_ACEOF
6783 #define HAVE_GV 1
6784 _ACEOF
6785
6786     if test "$llvm_cv_os_type" = "MingW" ; then
6787     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6788   fi
6789
6790 cat >>confdefs.h <<_ACEOF
6791 #define LLVM_PATH_GV "$GV${EXEEXT}"
6792 _ACEOF
6793
6794 fi
6795 # Extract the first word of "dotty", so it can be a program name with args.
6796 set dummy dotty; ac_word=$2
6797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6799 if test "${ac_cv_path_DOTTY+set}" = set; then
6800   echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802   case $DOTTY in
6803   [\\/]* | ?:[\\/]*)
6804   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6805   ;;
6806   *)
6807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 for as_dir in $PATH
6809 do
6810   IFS=$as_save_IFS
6811   test -z "$as_dir" && as_dir=.
6812   for ac_exec_ext in '' $ac_executable_extensions; do
6813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6814     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816     break 2
6817   fi
6818 done
6819 done
6820 IFS=$as_save_IFS
6821
6822   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6823   ;;
6824 esac
6825 fi
6826 DOTTY=$ac_cv_path_DOTTY
6827 if test -n "$DOTTY"; then
6828   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6829 echo "${ECHO_T}$DOTTY" >&6; }
6830 else
6831   { echo "$as_me:$LINENO: result: no" >&5
6832 echo "${ECHO_T}no" >&6; }
6833 fi
6834
6835
6836 if test "$DOTTY" != "echo dotty" ; then
6837
6838 cat >>confdefs.h <<\_ACEOF
6839 #define HAVE_DOTTY 1
6840 _ACEOF
6841
6842     if test "$llvm_cv_os_type" = "MingW" ; then
6843     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6844   fi
6845
6846 cat >>confdefs.h <<_ACEOF
6847 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6848 _ACEOF
6849
6850 fi
6851 # Extract the first word of "xdot.py", so it can be a program name with args.
6852 set dummy xdot.py; ac_word=$2
6853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6856   echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858   case $XDOT_PY in
6859   [\\/]* | ?:[\\/]*)
6860   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6861   ;;
6862   *)
6863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH
6865 do
6866   IFS=$as_save_IFS
6867   test -z "$as_dir" && as_dir=.
6868   for ac_exec_ext in '' $ac_executable_extensions; do
6869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6870     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6872     break 2
6873   fi
6874 done
6875 done
6876 IFS=$as_save_IFS
6877
6878   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6879   ;;
6880 esac
6881 fi
6882 XDOT_PY=$ac_cv_path_XDOT_PY
6883 if test -n "$XDOT_PY"; then
6884   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6885 echo "${ECHO_T}$XDOT_PY" >&6; }
6886 else
6887   { echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6; }
6889 fi
6890
6891
6892 if test "$XDOT_PY" != "echo xdot.py" ; then
6893
6894 cat >>confdefs.h <<\_ACEOF
6895 #define HAVE_XDOT_PY 1
6896 _ACEOF
6897
6898     if test "$llvm_cv_os_type" = "MingW" ; then
6899     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6900   fi
6901
6902 cat >>confdefs.h <<_ACEOF
6903 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6904 _ACEOF
6905
6906 fi
6907
6908
6909 # Extract the first word of "perl", so it can be a program name with args.
6910 set dummy perl; ac_word=$2
6911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913 if test "${ac_cv_path_PERL+set}" = set; then
6914   echo $ECHO_N "(cached) $ECHO_C" >&6
6915 else
6916   case $PERL in
6917   [\\/]* | ?:[\\/]*)
6918   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6919   ;;
6920   *)
6921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924   IFS=$as_save_IFS
6925   test -z "$as_dir" && as_dir=.
6926   for ac_exec_ext in '' $ac_executable_extensions; do
6927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6928     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6930     break 2
6931   fi
6932 done
6933 done
6934 IFS=$as_save_IFS
6935
6936   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6937   ;;
6938 esac
6939 fi
6940 PERL=$ac_cv_path_PERL
6941 if test -n "$PERL"; then
6942   { echo "$as_me:$LINENO: result: $PERL" >&5
6943 echo "${ECHO_T}$PERL" >&6; }
6944 else
6945   { echo "$as_me:$LINENO: result: no" >&5
6946 echo "${ECHO_T}no" >&6; }
6947 fi
6948
6949
6950 if test "$PERL" != "none"; then
6951   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6952 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6953   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6954     { echo "$as_me:$LINENO: result: yes" >&5
6955 echo "${ECHO_T}yes" >&6; }
6956   else
6957     PERL=none
6958     { echo "$as_me:$LINENO: result: not found" >&5
6959 echo "${ECHO_T}not found" >&6; }
6960   fi
6961 fi
6962
6963
6964 if test x"$PERL" = xnone; then
6965    HAVE_PERL=0
6966
6967    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6968 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6969    { (exit 1); exit 1; }; }
6970 else
6971    HAVE_PERL=1
6972
6973 fi
6974
6975 # Find a good install program.  We prefer a C program (faster),
6976 # so one script is as good as another.  But avoid the broken or
6977 # incompatible versions:
6978 # SysV /etc/install, /usr/sbin/install
6979 # SunOS /usr/etc/install
6980 # IRIX /sbin/install
6981 # AIX /bin/install
6982 # AmigaOS /C/install, which installs bootblocks on floppy discs
6983 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6984 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6985 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6986 # OS/2's system install, which has a completely different semantic
6987 # ./install, which can be erroneously created by make from ./install.sh.
6988 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6989 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6990 if test -z "$INSTALL"; then
6991 if test "${ac_cv_path_install+set}" = set; then
6992   echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6996 do
6997   IFS=$as_save_IFS
6998   test -z "$as_dir" && as_dir=.
6999   # Account for people who put trailing slashes in PATH elements.
7000 case $as_dir/ in
7001   ./ | .// | /cC/* | \
7002   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7003   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7004   /usr/ucb/* ) ;;
7005   *)
7006     # OSF1 and SCO ODT 3.0 have their own names for install.
7007     # Don't use installbsd from OSF since it installs stuff as root
7008     # by default.
7009     for ac_prog in ginstall scoinst install; do
7010       for ac_exec_ext in '' $ac_executable_extensions; do
7011         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7012           if test $ac_prog = install &&
7013             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7014             # AIX install.  It has an incompatible calling convention.
7015             :
7016           elif test $ac_prog = install &&
7017             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7018             # program-specific install script used by HP pwplus--don't use.
7019             :
7020           else
7021             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7022             break 3
7023           fi
7024         fi
7025       done
7026     done
7027     ;;
7028 esac
7029 done
7030 IFS=$as_save_IFS
7031
7032
7033 fi
7034   if test "${ac_cv_path_install+set}" = set; then
7035     INSTALL=$ac_cv_path_install
7036   else
7037     # As a last resort, use the slow shell script.  Don't cache a
7038     # value for INSTALL within a source directory, because that will
7039     # break other packages using the cache if that directory is
7040     # removed, or if the value is a relative name.
7041     INSTALL=$ac_install_sh
7042   fi
7043 fi
7044 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7045 echo "${ECHO_T}$INSTALL" >&6; }
7046
7047 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7048 # It thinks the first close brace ends the variable substitution.
7049 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7050
7051 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7052
7053 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7054
7055 case "$INSTALL" in
7056  [\\/$]* | ?:[\\/]* ) ;;
7057  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7058 esac
7059
7060 # Extract the first word of "bzip2", so it can be a program name with args.
7061 set dummy bzip2; ac_word=$2
7062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7064 if test "${ac_cv_path_BZIP2+set}" = set; then
7065   echo $ECHO_N "(cached) $ECHO_C" >&6
7066 else
7067   case $BZIP2 in
7068   [\\/]* | ?:[\\/]*)
7069   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7070   ;;
7071   *)
7072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7074 do
7075   IFS=$as_save_IFS
7076   test -z "$as_dir" && as_dir=.
7077   for ac_exec_ext in '' $ac_executable_extensions; do
7078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7079     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081     break 2
7082   fi
7083 done
7084 done
7085 IFS=$as_save_IFS
7086
7087   ;;
7088 esac
7089 fi
7090 BZIP2=$ac_cv_path_BZIP2
7091 if test -n "$BZIP2"; then
7092   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7093 echo "${ECHO_T}$BZIP2" >&6; }
7094 else
7095   { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7097 fi
7098
7099
7100 # Extract the first word of "cat", so it can be a program name with args.
7101 set dummy cat; ac_word=$2
7102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7104 if test "${ac_cv_path_CAT+set}" = set; then
7105   echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107   case $CAT in
7108   [\\/]* | ?:[\\/]*)
7109   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7110   ;;
7111   *)
7112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 for as_dir in $PATH
7114 do
7115   IFS=$as_save_IFS
7116   test -z "$as_dir" && as_dir=.
7117   for ac_exec_ext in '' $ac_executable_extensions; do
7118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7119     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7121     break 2
7122   fi
7123 done
7124 done
7125 IFS=$as_save_IFS
7126
7127   ;;
7128 esac
7129 fi
7130 CAT=$ac_cv_path_CAT
7131 if test -n "$CAT"; then
7132   { echo "$as_me:$LINENO: result: $CAT" >&5
7133 echo "${ECHO_T}$CAT" >&6; }
7134 else
7135   { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7137 fi
7138
7139
7140 # Extract the first word of "doxygen", so it can be a program name with args.
7141 set dummy doxygen; ac_word=$2
7142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7144 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7145   echo $ECHO_N "(cached) $ECHO_C" >&6
7146 else
7147   case $DOXYGEN in
7148   [\\/]* | ?:[\\/]*)
7149   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7150   ;;
7151   *)
7152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 for as_dir in $PATH
7154 do
7155   IFS=$as_save_IFS
7156   test -z "$as_dir" && as_dir=.
7157   for ac_exec_ext in '' $ac_executable_extensions; do
7158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7159     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161     break 2
7162   fi
7163 done
7164 done
7165 IFS=$as_save_IFS
7166
7167   ;;
7168 esac
7169 fi
7170 DOXYGEN=$ac_cv_path_DOXYGEN
7171 if test -n "$DOXYGEN"; then
7172   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7173 echo "${ECHO_T}$DOXYGEN" >&6; }
7174 else
7175   { echo "$as_me:$LINENO: result: no" >&5
7176 echo "${ECHO_T}no" >&6; }
7177 fi
7178
7179
7180 # Extract the first word of "groff", so it can be a program name with args.
7181 set dummy groff; ac_word=$2
7182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7184 if test "${ac_cv_path_GROFF+set}" = set; then
7185   echo $ECHO_N "(cached) $ECHO_C" >&6
7186 else
7187   case $GROFF in
7188   [\\/]* | ?:[\\/]*)
7189   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7190   ;;
7191   *)
7192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 for as_dir in $PATH
7194 do
7195   IFS=$as_save_IFS
7196   test -z "$as_dir" && as_dir=.
7197   for ac_exec_ext in '' $ac_executable_extensions; do
7198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7199     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201     break 2
7202   fi
7203 done
7204 done
7205 IFS=$as_save_IFS
7206
7207   ;;
7208 esac
7209 fi
7210 GROFF=$ac_cv_path_GROFF
7211 if test -n "$GROFF"; then
7212   { echo "$as_me:$LINENO: result: $GROFF" >&5
7213 echo "${ECHO_T}$GROFF" >&6; }
7214 else
7215   { echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6; }
7217 fi
7218
7219
7220 # Extract the first word of "gzip", so it can be a program name with args.
7221 set dummy gzip; ac_word=$2
7222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7225   echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227   case $GZIPBIN in
7228   [\\/]* | ?:[\\/]*)
7229   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7230   ;;
7231   *)
7232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235   IFS=$as_save_IFS
7236   test -z "$as_dir" && as_dir=.
7237   for ac_exec_ext in '' $ac_executable_extensions; do
7238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7239     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241     break 2
7242   fi
7243 done
7244 done
7245 IFS=$as_save_IFS
7246
7247   ;;
7248 esac
7249 fi
7250 GZIPBIN=$ac_cv_path_GZIPBIN
7251 if test -n "$GZIPBIN"; then
7252   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7253 echo "${ECHO_T}$GZIPBIN" >&6; }
7254 else
7255   { echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6; }
7257 fi
7258
7259
7260 # Extract the first word of "pod2html", so it can be a program name with args.
7261 set dummy pod2html; ac_word=$2
7262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264 if test "${ac_cv_path_POD2HTML+set}" = set; then
7265   echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267   case $POD2HTML in
7268   [\\/]* | ?:[\\/]*)
7269   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7270   ;;
7271   *)
7272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275   IFS=$as_save_IFS
7276   test -z "$as_dir" && as_dir=.
7277   for ac_exec_ext in '' $ac_executable_extensions; do
7278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281     break 2
7282   fi
7283 done
7284 done
7285 IFS=$as_save_IFS
7286
7287   ;;
7288 esac
7289 fi
7290 POD2HTML=$ac_cv_path_POD2HTML
7291 if test -n "$POD2HTML"; then
7292   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7293 echo "${ECHO_T}$POD2HTML" >&6; }
7294 else
7295   { echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6; }
7297 fi
7298
7299
7300 # Extract the first word of "pod2man", so it can be a program name with args.
7301 set dummy pod2man; ac_word=$2
7302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304 if test "${ac_cv_path_POD2MAN+set}" = set; then
7305   echo $ECHO_N "(cached) $ECHO_C" >&6
7306 else
7307   case $POD2MAN in
7308   [\\/]* | ?:[\\/]*)
7309   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7310   ;;
7311   *)
7312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315   IFS=$as_save_IFS
7316   test -z "$as_dir" && as_dir=.
7317   for ac_exec_ext in '' $ac_executable_extensions; do
7318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7319     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321     break 2
7322   fi
7323 done
7324 done
7325 IFS=$as_save_IFS
7326
7327   ;;
7328 esac
7329 fi
7330 POD2MAN=$ac_cv_path_POD2MAN
7331 if test -n "$POD2MAN"; then
7332   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7333 echo "${ECHO_T}$POD2MAN" >&6; }
7334 else
7335   { echo "$as_me:$LINENO: result: no" >&5
7336 echo "${ECHO_T}no" >&6; }
7337 fi
7338
7339
7340 # Extract the first word of "pdfroff", so it can be a program name with args.
7341 set dummy pdfroff; ac_word=$2
7342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344 if test "${ac_cv_path_PDFROFF+set}" = set; then
7345   echo $ECHO_N "(cached) $ECHO_C" >&6
7346 else
7347   case $PDFROFF in
7348   [\\/]* | ?:[\\/]*)
7349   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7350   ;;
7351   *)
7352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7354 do
7355   IFS=$as_save_IFS
7356   test -z "$as_dir" && as_dir=.
7357   for ac_exec_ext in '' $ac_executable_extensions; do
7358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7359     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361     break 2
7362   fi
7363 done
7364 done
7365 IFS=$as_save_IFS
7366
7367   ;;
7368 esac
7369 fi
7370 PDFROFF=$ac_cv_path_PDFROFF
7371 if test -n "$PDFROFF"; then
7372   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7373 echo "${ECHO_T}$PDFROFF" >&6; }
7374 else
7375   { echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6; }
7377 fi
7378
7379
7380 # Extract the first word of "runtest", so it can be a program name with args.
7381 set dummy runtest; ac_word=$2
7382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7384 if test "${ac_cv_path_RUNTEST+set}" = set; then
7385   echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387   case $RUNTEST in
7388   [\\/]* | ?:[\\/]*)
7389   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7390   ;;
7391   *)
7392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 for as_dir in $PATH
7394 do
7395   IFS=$as_save_IFS
7396   test -z "$as_dir" && as_dir=.
7397   for ac_exec_ext in '' $ac_executable_extensions; do
7398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7399     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401     break 2
7402   fi
7403 done
7404 done
7405 IFS=$as_save_IFS
7406
7407   ;;
7408 esac
7409 fi
7410 RUNTEST=$ac_cv_path_RUNTEST
7411 if test -n "$RUNTEST"; then
7412   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7413 echo "${ECHO_T}$RUNTEST" >&6; }
7414 else
7415   { echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6; }
7417 fi
7418
7419
7420
7421 no_itcl=true
7422 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7423 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7424
7425 # Check whether --with-tclinclude was given.
7426 if test "${with_tclinclude+set}" = set; then
7427   withval=$with_tclinclude; with_tclinclude=${withval}
7428 else
7429   with_tclinclude=''
7430 fi
7431
7432 if test "${ac_cv_path_tclsh+set}" = set; then
7433   echo $ECHO_N "(cached) $ECHO_C" >&6
7434 else
7435
7436 if test x"${with_tclinclude}" != x ; then
7437   if test -f ${with_tclinclude}/tclsh ; then
7438     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7439   elif test -f ${with_tclinclude}/src/tclsh ; then
7440     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7441   else
7442     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7443 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7444    { (exit 1); exit 1; }; }
7445   fi
7446 fi
7447 fi
7448
7449
7450 if test x"${ac_cv_path_tclsh}" = x ; then
7451   { echo "$as_me:$LINENO: result: none" >&5
7452 echo "${ECHO_T}none" >&6; }
7453   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7454 do
7455   # Extract the first word of "$ac_prog", so it can be a program name with args.
7456 set dummy $ac_prog; ac_word=$2
7457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7459 if test "${ac_cv_path_TCLSH+set}" = set; then
7460   echo $ECHO_N "(cached) $ECHO_C" >&6
7461 else
7462   case $TCLSH in
7463   [\\/]* | ?:[\\/]*)
7464   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7465   ;;
7466   *)
7467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 for as_dir in $PATH
7469 do
7470   IFS=$as_save_IFS
7471   test -z "$as_dir" && as_dir=.
7472   for ac_exec_ext in '' $ac_executable_extensions; do
7473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7474     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476     break 2
7477   fi
7478 done
7479 done
7480 IFS=$as_save_IFS
7481
7482   ;;
7483 esac
7484 fi
7485 TCLSH=$ac_cv_path_TCLSH
7486 if test -n "$TCLSH"; then
7487   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7488 echo "${ECHO_T}$TCLSH" >&6; }
7489 else
7490   { echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6; }
7492 fi
7493
7494
7495   test -n "$TCLSH" && break
7496 done
7497
7498   if test x"${TCLSH}" = x ; then
7499     ac_cv_path_tclsh='';
7500   else
7501     ac_cv_path_tclsh="${TCLSH}";
7502   fi
7503 else
7504   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7505 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7506   TCLSH="${ac_cv_path_tclsh}"
7507
7508 fi
7509
7510 # Extract the first word of "zip", so it can be a program name with args.
7511 set dummy zip; ac_word=$2
7512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7514 if test "${ac_cv_path_ZIP+set}" = set; then
7515   echo $ECHO_N "(cached) $ECHO_C" >&6
7516 else
7517   case $ZIP in
7518   [\\/]* | ?:[\\/]*)
7519   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7520   ;;
7521   *)
7522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7524 do
7525   IFS=$as_save_IFS
7526   test -z "$as_dir" && as_dir=.
7527   for ac_exec_ext in '' $ac_executable_extensions; do
7528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7529     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531     break 2
7532   fi
7533 done
7534 done
7535 IFS=$as_save_IFS
7536
7537   ;;
7538 esac
7539 fi
7540 ZIP=$ac_cv_path_ZIP
7541 if test -n "$ZIP"; then
7542   { echo "$as_me:$LINENO: result: $ZIP" >&5
7543 echo "${ECHO_T}$ZIP" >&6; }
7544 else
7545   { echo "$as_me:$LINENO: result: no" >&5
7546 echo "${ECHO_T}no" >&6; }
7547 fi
7548
7549
7550 for ac_prog in ocamlc
7551 do
7552   # Extract the first word of "$ac_prog", so it can be a program name with args.
7553 set dummy $ac_prog; ac_word=$2
7554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556 if test "${ac_cv_path_OCAMLC+set}" = set; then
7557   echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559   case $OCAMLC in
7560   [\\/]* | ?:[\\/]*)
7561   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7562   ;;
7563   *)
7564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7566 do
7567   IFS=$as_save_IFS
7568   test -z "$as_dir" && as_dir=.
7569   for ac_exec_ext in '' $ac_executable_extensions; do
7570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7571     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573     break 2
7574   fi
7575 done
7576 done
7577 IFS=$as_save_IFS
7578
7579   ;;
7580 esac
7581 fi
7582 OCAMLC=$ac_cv_path_OCAMLC
7583 if test -n "$OCAMLC"; then
7584   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7585 echo "${ECHO_T}$OCAMLC" >&6; }
7586 else
7587   { echo "$as_me:$LINENO: result: no" >&5
7588 echo "${ECHO_T}no" >&6; }
7589 fi
7590
7591
7592   test -n "$OCAMLC" && break
7593 done
7594
7595 for ac_prog in ocamlopt
7596 do
7597   # Extract the first word of "$ac_prog", so it can be a program name with args.
7598 set dummy $ac_prog; ac_word=$2
7599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7602   echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604   case $OCAMLOPT in
7605   [\\/]* | ?:[\\/]*)
7606   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7607   ;;
7608   *)
7609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7611 do
7612   IFS=$as_save_IFS
7613   test -z "$as_dir" && as_dir=.
7614   for ac_exec_ext in '' $ac_executable_extensions; do
7615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7616     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618     break 2
7619   fi
7620 done
7621 done
7622 IFS=$as_save_IFS
7623
7624   ;;
7625 esac
7626 fi
7627 OCAMLOPT=$ac_cv_path_OCAMLOPT
7628 if test -n "$OCAMLOPT"; then
7629   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7630 echo "${ECHO_T}$OCAMLOPT" >&6; }
7631 else
7632   { echo "$as_me:$LINENO: result: no" >&5
7633 echo "${ECHO_T}no" >&6; }
7634 fi
7635
7636
7637   test -n "$OCAMLOPT" && break
7638 done
7639
7640 for ac_prog in ocamldep
7641 do
7642   # Extract the first word of "$ac_prog", so it can be a program name with args.
7643 set dummy $ac_prog; ac_word=$2
7644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7647   echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649   case $OCAMLDEP in
7650   [\\/]* | ?:[\\/]*)
7651   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7652   ;;
7653   *)
7654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657   IFS=$as_save_IFS
7658   test -z "$as_dir" && as_dir=.
7659   for ac_exec_ext in '' $ac_executable_extensions; do
7660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7661     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663     break 2
7664   fi
7665 done
7666 done
7667 IFS=$as_save_IFS
7668
7669   ;;
7670 esac
7671 fi
7672 OCAMLDEP=$ac_cv_path_OCAMLDEP
7673 if test -n "$OCAMLDEP"; then
7674   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7675 echo "${ECHO_T}$OCAMLDEP" >&6; }
7676 else
7677   { echo "$as_me:$LINENO: result: no" >&5
7678 echo "${ECHO_T}no" >&6; }
7679 fi
7680
7681
7682   test -n "$OCAMLDEP" && break
7683 done
7684
7685 for ac_prog in ocamldoc
7686 do
7687   # Extract the first word of "$ac_prog", so it can be a program name with args.
7688 set dummy $ac_prog; ac_word=$2
7689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7691 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7692   echo $ECHO_N "(cached) $ECHO_C" >&6
7693 else
7694   case $OCAMLDOC in
7695   [\\/]* | ?:[\\/]*)
7696   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7697   ;;
7698   *)
7699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 for as_dir in $PATH
7701 do
7702   IFS=$as_save_IFS
7703   test -z "$as_dir" && as_dir=.
7704   for ac_exec_ext in '' $ac_executable_extensions; do
7705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7706     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708     break 2
7709   fi
7710 done
7711 done
7712 IFS=$as_save_IFS
7713
7714   ;;
7715 esac
7716 fi
7717 OCAMLDOC=$ac_cv_path_OCAMLDOC
7718 if test -n "$OCAMLDOC"; then
7719   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7720 echo "${ECHO_T}$OCAMLDOC" >&6; }
7721 else
7722   { echo "$as_me:$LINENO: result: no" >&5
7723 echo "${ECHO_T}no" >&6; }
7724 fi
7725
7726
7727   test -n "$OCAMLDOC" && break
7728 done
7729
7730 for ac_prog in gas as
7731 do
7732   # Extract the first word of "$ac_prog", so it can be a program name with args.
7733 set dummy $ac_prog; ac_word=$2
7734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7736 if test "${ac_cv_path_GAS+set}" = set; then
7737   echo $ECHO_N "(cached) $ECHO_C" >&6
7738 else
7739   case $GAS in
7740   [\\/]* | ?:[\\/]*)
7741   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7742   ;;
7743   *)
7744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 for as_dir in $PATH
7746 do
7747   IFS=$as_save_IFS
7748   test -z "$as_dir" && as_dir=.
7749   for ac_exec_ext in '' $ac_executable_extensions; do
7750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7751     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753     break 2
7754   fi
7755 done
7756 done
7757 IFS=$as_save_IFS
7758
7759   ;;
7760 esac
7761 fi
7762 GAS=$ac_cv_path_GAS
7763 if test -n "$GAS"; then
7764   { echo "$as_me:$LINENO: result: $GAS" >&5
7765 echo "${ECHO_T}$GAS" >&6; }
7766 else
7767   { echo "$as_me:$LINENO: result: no" >&5
7768 echo "${ECHO_T}no" >&6; }
7769 fi
7770
7771
7772   test -n "$GAS" && break
7773 done
7774
7775
7776 { echo "$as_me:$LINENO: checking for linker version" >&5
7777 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7778 if test "${llvm_cv_link_version+set}" = set; then
7779   echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781
7782    version_string="$(ld -v 2>&1 | head -1)"
7783
7784    # Check for ld64.
7785    if (echo "$version_string" | grep -q "ld64"); then
7786      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7787    else
7788      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7789    fi
7790
7791 fi
7792 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7793 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7794
7795 cat >>confdefs.h <<_ACEOF
7796 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7797 _ACEOF
7798
7799
7800
7801 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7802 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7803 if test "${llvm_cv_link_use_r+set}" = set; then
7804   echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806    ac_ext=c
7807 ac_cpp='$CPP $CPPFLAGS'
7808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7811
7812   oldcflags="$CFLAGS"
7813   CFLAGS="$CFLAGS -Wl,-R."
7814   cat >conftest.$ac_ext <<_ACEOF
7815 /* confdefs.h.  */
7816 _ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h.  */
7820
7821 int
7822 main ()
7823 {
7824
7825   ;
7826   return 0;
7827 }
7828 _ACEOF
7829 rm -f conftest.$ac_objext conftest$ac_exeext
7830 if { (ac_try="$ac_link"
7831 case "(($ac_try" in
7832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833   *) ac_try_echo=$ac_try;;
7834 esac
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836   (eval "$ac_link") 2>conftest.er1
7837   ac_status=$?
7838   grep -v '^ *+' conftest.er1 >conftest.err
7839   rm -f conftest.er1
7840   cat conftest.err >&5
7841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842   (exit $ac_status); } &&
7843          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7844   { (case "(($ac_try" in
7845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846   *) ac_try_echo=$ac_try;;
7847 esac
7848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849   (eval "$ac_try") 2>&5
7850   ac_status=$?
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); }; } &&
7853          { ac_try='test -s conftest$ac_exeext'
7854   { (case "(($ac_try" in
7855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856   *) ac_try_echo=$ac_try;;
7857 esac
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859   (eval "$ac_try") 2>&5
7860   ac_status=$?
7861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862   (exit $ac_status); }; }; then
7863   llvm_cv_link_use_r=yes
7864 else
7865   echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7867
7868         llvm_cv_link_use_r=no
7869 fi
7870
7871 rm -f core conftest.err conftest.$ac_objext \
7872       conftest$ac_exeext conftest.$ac_ext
7873   CFLAGS="$oldcflags"
7874   ac_ext=c
7875 ac_cpp='$CPP $CPPFLAGS'
7876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7879
7880
7881 fi
7882 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7883 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7884 if test "$llvm_cv_link_use_r" = yes ; then
7885
7886 cat >>confdefs.h <<\_ACEOF
7887 #define HAVE_LINK_R 1
7888 _ACEOF
7889
7890   fi
7891
7892
7893 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7894 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7895 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7896   echo $ECHO_N "(cached) $ECHO_C" >&6
7897 else
7898    ac_ext=c
7899 ac_cpp='$CPP $CPPFLAGS'
7900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7903
7904   oldcflags="$CFLAGS"
7905   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7906   cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h.  */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h.  */
7912
7913 int
7914 main ()
7915 {
7916
7917   ;
7918   return 0;
7919 }
7920 _ACEOF
7921 rm -f conftest.$ac_objext conftest$ac_exeext
7922 if { (ac_try="$ac_link"
7923 case "(($ac_try" in
7924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925   *) ac_try_echo=$ac_try;;
7926 esac
7927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928   (eval "$ac_link") 2>conftest.er1
7929   ac_status=$?
7930   grep -v '^ *+' conftest.er1 >conftest.err
7931   rm -f conftest.er1
7932   cat conftest.err >&5
7933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934   (exit $ac_status); } &&
7935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7936   { (case "(($ac_try" in
7937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938   *) ac_try_echo=$ac_try;;
7939 esac
7940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941   (eval "$ac_try") 2>&5
7942   ac_status=$?
7943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944   (exit $ac_status); }; } &&
7945          { ac_try='test -s conftest$ac_exeext'
7946   { (case "(($ac_try" in
7947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948   *) ac_try_echo=$ac_try;;
7949 esac
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951   (eval "$ac_try") 2>&5
7952   ac_status=$?
7953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954   (exit $ac_status); }; }; then
7955   llvm_cv_link_use_export_dynamic=yes
7956 else
7957   echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7959
7960         llvm_cv_link_use_export_dynamic=no
7961 fi
7962
7963 rm -f core conftest.err conftest.$ac_objext \
7964       conftest$ac_exeext conftest.$ac_ext
7965   CFLAGS="$oldcflags"
7966   ac_ext=c
7967 ac_cpp='$CPP $CPPFLAGS'
7968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7971
7972
7973 fi
7974 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7975 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7976 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7977
7978 cat >>confdefs.h <<\_ACEOF
7979 #define HAVE_LINK_EXPORT_DYNAMIC 1
7980 _ACEOF
7981
7982   fi
7983
7984
7985 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7986 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7987 if test "${llvm_cv_link_use_version_script+set}" = set; then
7988   echo $ECHO_N "(cached) $ECHO_C" >&6
7989 else
7990    ac_ext=c
7991 ac_cpp='$CPP $CPPFLAGS'
7992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7995
7996   oldcflags="$CFLAGS"
7997
7998   # The following code is from the autoconf manual,
7999   # "11.13: Limitations of Usual Tools".
8000   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8001   # Use mktemp if possible; otherwise fall back on mkdir,
8002   # with $RANDOM to make collisions less likely.
8003   : ${TMPDIR=/tmp}
8004   {
8005     tmp=`
8006       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8007     ` &&
8008     test -n "$tmp" && test -d "$tmp"
8009   } || {
8010     tmp=$TMPDIR/foo$$-$RANDOM
8011     (umask 077 && mkdir "$tmp")
8012   } || exit $?
8013
8014   echo "{" > "$tmp/export.map"
8015   echo "  global: main;" >> "$tmp/export.map"
8016   echo "  local: *;" >> "$tmp/export.map"
8017   echo "};" >> "$tmp/export.map"
8018
8019   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8020   cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h.  */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h.  */
8026
8027 int
8028 main ()
8029 {
8030
8031   ;
8032   return 0;
8033 }
8034 _ACEOF
8035 rm -f conftest.$ac_objext conftest$ac_exeext
8036 if { (ac_try="$ac_link"
8037 case "(($ac_try" in
8038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039   *) ac_try_echo=$ac_try;;
8040 esac
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042   (eval "$ac_link") 2>conftest.er1
8043   ac_status=$?
8044   grep -v '^ *+' conftest.er1 >conftest.err
8045   rm -f conftest.er1
8046   cat conftest.err >&5
8047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048   (exit $ac_status); } &&
8049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8050   { (case "(($ac_try" in
8051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052   *) ac_try_echo=$ac_try;;
8053 esac
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055   (eval "$ac_try") 2>&5
8056   ac_status=$?
8057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058   (exit $ac_status); }; } &&
8059          { ac_try='test -s conftest$ac_exeext'
8060   { (case "(($ac_try" in
8061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062   *) ac_try_echo=$ac_try;;
8063 esac
8064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065   (eval "$ac_try") 2>&5
8066   ac_status=$?
8067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068   (exit $ac_status); }; }; then
8069   llvm_cv_link_use_version_script=yes
8070 else
8071   echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.$ac_ext >&5
8073
8074         llvm_cv_link_use_version_script=no
8075 fi
8076
8077 rm -f core conftest.err conftest.$ac_objext \
8078       conftest$ac_exeext conftest.$ac_ext
8079   rm "$tmp/export.map"
8080   rmdir "$tmp"
8081   CFLAGS="$oldcflags"
8082   ac_ext=c
8083 ac_cpp='$CPP $CPPFLAGS'
8084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8087
8088
8089 fi
8090 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8091 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8092 if test "$llvm_cv_link_use_version_script" = yes ; then
8093   HAVE_LINK_VERSION_SCRIPT=1
8094
8095   fi
8096
8097
8098
8099
8100 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8101 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8102 if test "${ac_cv_c_const+set}" = set; then
8103   echo $ECHO_N "(cached) $ECHO_C" >&6
8104 else
8105   cat >conftest.$ac_ext <<_ACEOF
8106 /* confdefs.h.  */
8107 _ACEOF
8108 cat confdefs.h >>conftest.$ac_ext
8109 cat >>conftest.$ac_ext <<_ACEOF
8110 /* end confdefs.h.  */
8111
8112 int
8113 main ()
8114 {
8115 /* FIXME: Include the comments suggested by Paul. */
8116 #ifndef __cplusplus
8117   /* Ultrix mips cc rejects this.  */
8118   typedef int charset[2];
8119   const charset x;
8120   /* SunOS 4.1.1 cc rejects this.  */
8121   char const *const *ccp;
8122   char **p;
8123   /* NEC SVR4.0.2 mips cc rejects this.  */
8124   struct point {int x, y;};
8125   static struct point const zero = {0,0};
8126   /* AIX XL C 1.02.0.0 rejects this.
8127      It does not let you subtract one const X* pointer from another in
8128      an arm of an if-expression whose if-part is not a constant
8129      expression */
8130   const char *g = "string";
8131   ccp = &g + (g ? g-g : 0);
8132   /* HPUX 7.0 cc rejects these. */
8133   ++ccp;
8134   p = (char**) ccp;
8135   ccp = (char const *const *) p;
8136   { /* SCO 3.2v4 cc rejects this.  */
8137     char *t;
8138     char const *s = 0 ? (char *) 0 : (char const *) 0;
8139
8140     *t++ = 0;
8141     if (s) return 0;
8142   }
8143   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8144     int x[] = {25, 17};
8145     const int *foo = &x[0];
8146     ++foo;
8147   }
8148   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8149     typedef const int *iptr;
8150     iptr p = 0;
8151     ++p;
8152   }
8153   { /* AIX XL C 1.02.0.0 rejects this saying
8154        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8155     struct s { int j; const int *ap[3]; };
8156     struct s *b; b->j = 5;
8157   }
8158   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8159     const int foo = 10;
8160     if (!foo) return 0;
8161   }
8162   return !x[0] && !zero.x;
8163 #endif
8164
8165   ;
8166   return 0;
8167 }
8168 _ACEOF
8169 rm -f conftest.$ac_objext
8170 if { (ac_try="$ac_compile"
8171 case "(($ac_try" in
8172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173   *) ac_try_echo=$ac_try;;
8174 esac
8175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176   (eval "$ac_compile") 2>conftest.er1
8177   ac_status=$?
8178   grep -v '^ *+' conftest.er1 >conftest.err
8179   rm -f conftest.er1
8180   cat conftest.err >&5
8181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182   (exit $ac_status); } &&
8183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8184   { (case "(($ac_try" in
8185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186   *) ac_try_echo=$ac_try;;
8187 esac
8188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8189   (eval "$ac_try") 2>&5
8190   ac_status=$?
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); }; } &&
8193          { ac_try='test -s conftest.$ac_objext'
8194   { (case "(($ac_try" in
8195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196   *) ac_try_echo=$ac_try;;
8197 esac
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199   (eval "$ac_try") 2>&5
8200   ac_status=$?
8201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202   (exit $ac_status); }; }; then
8203   ac_cv_c_const=yes
8204 else
8205   echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8207
8208         ac_cv_c_const=no
8209 fi
8210
8211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212 fi
8213 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8214 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8215 if test $ac_cv_c_const = no; then
8216
8217 cat >>confdefs.h <<\_ACEOF
8218 #define const
8219 _ACEOF
8220
8221 fi
8222
8223
8224
8225
8226
8227
8228 ac_header_dirent=no
8229 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8230   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8231 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8232 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8234   echo $ECHO_N "(cached) $ECHO_C" >&6
8235 else
8236   cat >conftest.$ac_ext <<_ACEOF
8237 /* confdefs.h.  */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h.  */
8242 #include <sys/types.h>
8243 #include <$ac_hdr>
8244
8245 int
8246 main ()
8247 {
8248 if ((DIR *) 0)
8249 return 0;
8250   ;
8251   return 0;
8252 }
8253 _ACEOF
8254 rm -f conftest.$ac_objext
8255 if { (ac_try="$ac_compile"
8256 case "(($ac_try" in
8257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258   *) ac_try_echo=$ac_try;;
8259 esac
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261   (eval "$ac_compile") 2>conftest.er1
8262   ac_status=$?
8263   grep -v '^ *+' conftest.er1 >conftest.err
8264   rm -f conftest.er1
8265   cat conftest.err >&5
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); } &&
8268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8269   { (case "(($ac_try" in
8270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271   *) ac_try_echo=$ac_try;;
8272 esac
8273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8274   (eval "$ac_try") 2>&5
8275   ac_status=$?
8276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277   (exit $ac_status); }; } &&
8278          { ac_try='test -s conftest.$ac_objext'
8279   { (case "(($ac_try" in
8280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281   *) ac_try_echo=$ac_try;;
8282 esac
8283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284   (eval "$ac_try") 2>&5
8285   ac_status=$?
8286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287   (exit $ac_status); }; }; then
8288   eval "$as_ac_Header=yes"
8289 else
8290   echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8292
8293         eval "$as_ac_Header=no"
8294 fi
8295
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 fi
8298 ac_res=`eval echo '${'$as_ac_Header'}'`
8299                { echo "$as_me:$LINENO: result: $ac_res" >&5
8300 echo "${ECHO_T}$ac_res" >&6; }
8301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8302   cat >>confdefs.h <<_ACEOF
8303 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8304 _ACEOF
8305
8306 ac_header_dirent=$ac_hdr; break
8307 fi
8308
8309 done
8310 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8311 if test $ac_header_dirent = dirent.h; then
8312   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8313 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8314 if test "${ac_cv_search_opendir+set}" = set; then
8315   echo $ECHO_N "(cached) $ECHO_C" >&6
8316 else
8317   ac_func_search_save_LIBS=$LIBS
8318 cat >conftest.$ac_ext <<_ACEOF
8319 /* confdefs.h.  */
8320 _ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h.  */
8324
8325 /* Override any GCC internal prototype to avoid an error.
8326    Use char because int might match the return type of a GCC
8327    builtin and then its argument prototype would still apply.  */
8328 #ifdef __cplusplus
8329 extern "C"
8330 #endif
8331 char opendir ();
8332 int
8333 main ()
8334 {
8335 return opendir ();
8336   ;
8337   return 0;
8338 }
8339 _ACEOF
8340 for ac_lib in '' dir; do
8341   if test -z "$ac_lib"; then
8342     ac_res="none required"
8343   else
8344     ac_res=-l$ac_lib
8345     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8346   fi
8347   rm -f conftest.$ac_objext conftest$ac_exeext
8348 if { (ac_try="$ac_link"
8349 case "(($ac_try" in
8350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351   *) ac_try_echo=$ac_try;;
8352 esac
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354   (eval "$ac_link") 2>conftest.er1
8355   ac_status=$?
8356   grep -v '^ *+' conftest.er1 >conftest.err
8357   rm -f conftest.er1
8358   cat conftest.err >&5
8359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360   (exit $ac_status); } &&
8361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8362   { (case "(($ac_try" in
8363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364   *) ac_try_echo=$ac_try;;
8365 esac
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367   (eval "$ac_try") 2>&5
8368   ac_status=$?
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); }; } &&
8371          { ac_try='test -s conftest$ac_exeext'
8372   { (case "(($ac_try" in
8373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374   *) ac_try_echo=$ac_try;;
8375 esac
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377   (eval "$ac_try") 2>&5
8378   ac_status=$?
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); }; }; then
8381   ac_cv_search_opendir=$ac_res
8382 else
8383   echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8385
8386
8387 fi
8388
8389 rm -f core conftest.err conftest.$ac_objext \
8390       conftest$ac_exeext
8391   if test "${ac_cv_search_opendir+set}" = set; then
8392   break
8393 fi
8394 done
8395 if test "${ac_cv_search_opendir+set}" = set; then
8396   :
8397 else
8398   ac_cv_search_opendir=no
8399 fi
8400 rm conftest.$ac_ext
8401 LIBS=$ac_func_search_save_LIBS
8402 fi
8403 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8404 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8405 ac_res=$ac_cv_search_opendir
8406 if test "$ac_res" != no; then
8407   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8408
8409 fi
8410
8411 else
8412   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8413 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8414 if test "${ac_cv_search_opendir+set}" = set; then
8415   echo $ECHO_N "(cached) $ECHO_C" >&6
8416 else
8417   ac_func_search_save_LIBS=$LIBS
8418 cat >conftest.$ac_ext <<_ACEOF
8419 /* confdefs.h.  */
8420 _ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h.  */
8424
8425 /* Override any GCC internal prototype to avoid an error.
8426    Use char because int might match the return type of a GCC
8427    builtin and then its argument prototype would still apply.  */
8428 #ifdef __cplusplus
8429 extern "C"
8430 #endif
8431 char opendir ();
8432 int
8433 main ()
8434 {
8435 return opendir ();
8436   ;
8437   return 0;
8438 }
8439 _ACEOF
8440 for ac_lib in '' x; do
8441   if test -z "$ac_lib"; then
8442     ac_res="none required"
8443   else
8444     ac_res=-l$ac_lib
8445     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8446   fi
8447   rm -f conftest.$ac_objext conftest$ac_exeext
8448 if { (ac_try="$ac_link"
8449 case "(($ac_try" in
8450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451   *) ac_try_echo=$ac_try;;
8452 esac
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454   (eval "$ac_link") 2>conftest.er1
8455   ac_status=$?
8456   grep -v '^ *+' conftest.er1 >conftest.err
8457   rm -f conftest.er1
8458   cat conftest.err >&5
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); } &&
8461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8462   { (case "(($ac_try" in
8463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464   *) ac_try_echo=$ac_try;;
8465 esac
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467   (eval "$ac_try") 2>&5
8468   ac_status=$?
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); }; } &&
8471          { ac_try='test -s conftest$ac_exeext'
8472   { (case "(($ac_try" in
8473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474   *) ac_try_echo=$ac_try;;
8475 esac
8476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477   (eval "$ac_try") 2>&5
8478   ac_status=$?
8479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480   (exit $ac_status); }; }; then
8481   ac_cv_search_opendir=$ac_res
8482 else
8483   echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8485
8486
8487 fi
8488
8489 rm -f core conftest.err conftest.$ac_objext \
8490       conftest$ac_exeext
8491   if test "${ac_cv_search_opendir+set}" = set; then
8492   break
8493 fi
8494 done
8495 if test "${ac_cv_search_opendir+set}" = set; then
8496   :
8497 else
8498   ac_cv_search_opendir=no
8499 fi
8500 rm conftest.$ac_ext
8501 LIBS=$ac_func_search_save_LIBS
8502 fi
8503 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8504 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8505 ac_res=$ac_cv_search_opendir
8506 if test "$ac_res" != no; then
8507   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8508
8509 fi
8510
8511 fi
8512
8513
8514 for ac_header in dlfcn.h
8515 do
8516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8518   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8521   echo $ECHO_N "(cached) $ECHO_C" >&6
8522 fi
8523 ac_res=`eval echo '${'$as_ac_Header'}'`
8524                { echo "$as_me:$LINENO: result: $ac_res" >&5
8525 echo "${ECHO_T}$ac_res" >&6; }
8526 else
8527   # Is the header compilable?
8528 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8530 cat >conftest.$ac_ext <<_ACEOF
8531 /* confdefs.h.  */
8532 _ACEOF
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h.  */
8536 $ac_includes_default
8537 #include <$ac_header>
8538 _ACEOF
8539 rm -f conftest.$ac_objext
8540 if { (ac_try="$ac_compile"
8541 case "(($ac_try" in
8542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543   *) ac_try_echo=$ac_try;;
8544 esac
8545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546   (eval "$ac_compile") 2>conftest.er1
8547   ac_status=$?
8548   grep -v '^ *+' conftest.er1 >conftest.err
8549   rm -f conftest.er1
8550   cat conftest.err >&5
8551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552   (exit $ac_status); } &&
8553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8554   { (case "(($ac_try" in
8555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8556   *) ac_try_echo=$ac_try;;
8557 esac
8558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8559   (eval "$ac_try") 2>&5
8560   ac_status=$?
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); }; } &&
8563          { ac_try='test -s conftest.$ac_objext'
8564   { (case "(($ac_try" in
8565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566   *) ac_try_echo=$ac_try;;
8567 esac
8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569   (eval "$ac_try") 2>&5
8570   ac_status=$?
8571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572   (exit $ac_status); }; }; then
8573   ac_header_compiler=yes
8574 else
8575   echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.$ac_ext >&5
8577
8578         ac_header_compiler=no
8579 fi
8580
8581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8583 echo "${ECHO_T}$ac_header_compiler" >&6; }
8584
8585 # Is the header present?
8586 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8588 cat >conftest.$ac_ext <<_ACEOF
8589 /* confdefs.h.  */
8590 _ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h.  */
8594 #include <$ac_header>
8595 _ACEOF
8596 if { (ac_try="$ac_cpp conftest.$ac_ext"
8597 case "(($ac_try" in
8598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599   *) ac_try_echo=$ac_try;;
8600 esac
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8603   ac_status=$?
8604   grep -v '^ *+' conftest.er1 >conftest.err
8605   rm -f conftest.er1
8606   cat conftest.err >&5
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); } >/dev/null; then
8609   if test -s conftest.err; then
8610     ac_cpp_err=$ac_c_preproc_warn_flag
8611     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8612   else
8613     ac_cpp_err=
8614   fi
8615 else
8616   ac_cpp_err=yes
8617 fi
8618 if test -z "$ac_cpp_err"; then
8619   ac_header_preproc=yes
8620 else
8621   echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8623
8624   ac_header_preproc=no
8625 fi
8626
8627 rm -f conftest.err conftest.$ac_ext
8628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8629 echo "${ECHO_T}$ac_header_preproc" >&6; }
8630
8631 # So?  What about this header?
8632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8633   yes:no: )
8634     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8638     ac_header_preproc=yes
8639     ;;
8640   no:yes:* )
8641     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8643     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8644 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8645     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8647     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8648 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8651     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8653     ( cat <<\_ASBOX
8654 ## ----------------------------------- ##
8655 ## Report this to llvmbugs@cs.uiuc.edu ##
8656 ## ----------------------------------- ##
8657 _ASBOX
8658      ) | sed "s/^/$as_me: WARNING:     /" >&2
8659     ;;
8660 esac
8661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8664   echo $ECHO_N "(cached) $ECHO_C" >&6
8665 else
8666   eval "$as_ac_Header=\$ac_header_preproc"
8667 fi
8668 ac_res=`eval echo '${'$as_ac_Header'}'`
8669                { echo "$as_me:$LINENO: result: $ac_res" >&5
8670 echo "${ECHO_T}$ac_res" >&6; }
8671
8672 fi
8673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8674   cat >>confdefs.h <<_ACEOF
8675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8676 _ACEOF
8677
8678 fi
8679
8680 done
8681
8682 # Check whether --enable-ltdl-install was given.
8683 if test "${enable_ltdl_install+set}" = set; then
8684   enableval=$enable_ltdl_install;
8685 fi
8686
8687
8688
8689
8690 if test x"${enable_ltdl_install-no}" != xno; then
8691   INSTALL_LTDL_TRUE=
8692   INSTALL_LTDL_FALSE='#'
8693 else
8694   INSTALL_LTDL_TRUE='#'
8695   INSTALL_LTDL_FALSE=
8696 fi
8697
8698
8699
8700 if test x"${enable_ltdl_convenience-no}" != xno; then
8701   CONVENIENCE_LTDL_TRUE=
8702   CONVENIENCE_LTDL_FALSE='#'
8703 else
8704   CONVENIENCE_LTDL_TRUE='#'
8705   CONVENIENCE_LTDL_FALSE=
8706 fi
8707
8708
8709 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8710 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8711 library_names_spec=
8712 libname_spec='lib$name'
8713 soname_spec=
8714 shrext_cmds=".so"
8715 postinstall_cmds=
8716 postuninstall_cmds=
8717 finish_cmds=
8718 finish_eval=
8719 shlibpath_var=
8720 shlibpath_overrides_runpath=unknown
8721 version_type=none
8722 dynamic_linker="$host_os ld.so"
8723 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8724 if test "$GCC" = yes; then
8725   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8726   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8727     # if the path contains ";" then we assume it to be the separator
8728     # otherwise default to the standard path separator (i.e. ":") - it is
8729     # assumed that no part of a normal pathname contains ";" but that should
8730     # okay in the real world where ";" in dirpaths is itself problematic.
8731     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8732   else
8733     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8734   fi
8735 else
8736   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8737 fi
8738 need_lib_prefix=unknown
8739 hardcode_into_libs=no
8740
8741 # when you set need_version to no, make sure it does not cause -set_version
8742 # flags to be left without arguments
8743 need_version=unknown
8744
8745 case $host_os in
8746 aix3*)
8747   version_type=linux
8748   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8749   shlibpath_var=LIBPATH
8750
8751   # AIX 3 has no versioning support, so we append a major version to the name.
8752   soname_spec='${libname}${release}${shared_ext}$major'
8753   ;;
8754
8755 aix4* | aix5*)
8756   version_type=linux
8757   need_lib_prefix=no
8758   need_version=no
8759   hardcode_into_libs=yes
8760   if test "$host_cpu" = ia64; then
8761     # AIX 5 supports IA64
8762     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8763     shlibpath_var=LD_LIBRARY_PATH
8764   else
8765     # With GCC up to 2.95.x, collect2 would create an import file
8766     # for dependence libraries.  The import file would start with
8767     # the line `#! .'.  This would cause the generated library to
8768     # depend on `.', always an invalid library.  This was fixed in
8769     # development snapshots of GCC prior to 3.0.
8770     case $host_os in
8771       aix4 | aix4.[01] | aix4.[01].*)
8772       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8773            echo ' yes '
8774            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8775         :
8776       else
8777         can_build_shared=no
8778       fi
8779       ;;
8780     esac
8781     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8782     # soname into executable. Probably we can add versioning support to
8783     # collect2, so additional links can be useful in future.
8784     if test "$aix_use_runtimelinking" = yes; then
8785       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8786       # instead of lib<name>.a to let people know that these are not
8787       # typical AIX shared libraries.
8788       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8789     else
8790       # We preserve .a as extension for shared libraries through AIX4.2
8791       # and later when we are not doing run time linking.
8792       library_names_spec='${libname}${release}.a $libname.a'
8793       soname_spec='${libname}${release}${shared_ext}$major'
8794     fi
8795     shlibpath_var=LIBPATH
8796   fi
8797   ;;
8798
8799 amigaos*)
8800   library_names_spec='$libname.ixlibrary $libname.a'
8801   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8802   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'
8803   ;;
8804
8805 beos*)
8806   library_names_spec='${libname}${shared_ext}'
8807   dynamic_linker="$host_os ld.so"
8808   shlibpath_var=LIBRARY_PATH
8809   ;;
8810
8811 bsdi[45]*)
8812   version_type=linux
8813   need_version=no
8814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8815   soname_spec='${libname}${release}${shared_ext}$major'
8816   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8817   shlibpath_var=LD_LIBRARY_PATH
8818   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8819   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8820   # the default ld.so.conf also contains /usr/contrib/lib and
8821   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8822   # libtool to hard-code these into programs
8823   ;;
8824
8825 cygwin* | mingw* | pw32*)
8826   version_type=windows
8827   shrext_cmds=".dll"
8828   need_version=no
8829   need_lib_prefix=no
8830
8831   case $GCC,$host_os in
8832   yes,cygwin* | yes,mingw* | yes,pw32*)
8833     library_names_spec='$libname.dll.a'
8834     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8835     postinstall_cmds='base_file=`basename \${file}`~
8836       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8837       dldir=$destdir/`dirname \$dlpath`~
8838       test -d \$dldir || mkdir -p \$dldir~
8839       $install_prog $dir/$dlname \$dldir/$dlname~
8840       chmod a+x \$dldir/$dlname'
8841     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8842       dlpath=$dir/\$dldll~
8843        $rm \$dlpath'
8844     shlibpath_overrides_runpath=yes
8845
8846     case $host_os in
8847     cygwin*)
8848       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8849       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8850       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8851       ;;
8852     mingw*)
8853       # MinGW DLLs use traditional 'lib' prefix
8854       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8855       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8856       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8857         # It is most probably a Windows format PATH printed by
8858         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8859         # path with ; separators, and with drive letters. We can handle the
8860         # drive letters (cygwin fileutils understands them), so leave them,
8861         # especially as we might pass files found there to a mingw objdump,
8862         # which wouldn't understand a cygwinified path. Ahh.
8863         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8864       else
8865         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8866       fi
8867       ;;
8868     pw32*)
8869       # pw32 DLLs use 'pw' prefix rather than 'lib'
8870       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8871       ;;
8872     esac
8873     ;;
8874
8875   *)
8876     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8877     ;;
8878   esac
8879   dynamic_linker='Win32 ld.exe'
8880   # FIXME: first we should search . and the directory the executable is in
8881   shlibpath_var=PATH
8882   ;;
8883
8884 darwin* | rhapsody*)
8885   dynamic_linker="$host_os dyld"
8886   version_type=darwin
8887   need_lib_prefix=no
8888   need_version=no
8889   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8890   soname_spec='${libname}${release}${major}$shared_ext'
8891   shlibpath_overrides_runpath=yes
8892   shlibpath_var=DYLD_LIBRARY_PATH
8893   shrext_cmds='.dylib'
8894   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8895   if test "$GCC" = yes; then
8896     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"`
8897   else
8898     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8899   fi
8900   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8901   ;;
8902
8903 dgux*)
8904   version_type=linux
8905   need_lib_prefix=no
8906   need_version=no
8907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8908   soname_spec='${libname}${release}${shared_ext}$major'
8909   shlibpath_var=LD_LIBRARY_PATH
8910   ;;
8911
8912 freebsd1*)
8913   dynamic_linker=no
8914   ;;
8915
8916 kfreebsd*-gnu)
8917   version_type=linux
8918   need_lib_prefix=no
8919   need_version=no
8920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8921   soname_spec='${libname}${release}${shared_ext}$major'
8922   shlibpath_var=LD_LIBRARY_PATH
8923   shlibpath_overrides_runpath=no
8924   hardcode_into_libs=yes
8925   dynamic_linker='GNU ld.so'
8926   ;;
8927
8928 freebsd* | dragonfly*)
8929   # DragonFly does not have aout.  When/if they implement a new
8930   # versioning mechanism, adjust this.
8931   if test -x /usr/bin/objformat; then
8932     objformat=`/usr/bin/objformat`
8933   else
8934     case $host_os in
8935     freebsd[123]*) objformat=aout ;;
8936     *) objformat=elf ;;
8937     esac
8938   fi
8939   version_type=freebsd-$objformat
8940   case $version_type in
8941     freebsd-elf*)
8942       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8943       need_version=no
8944       need_lib_prefix=no
8945       ;;
8946     freebsd-*)
8947       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8948       need_version=yes
8949       ;;
8950   esac
8951   shlibpath_var=LD_LIBRARY_PATH
8952   case $host_os in
8953   freebsd2*)
8954     shlibpath_overrides_runpath=yes
8955     ;;
8956   freebsd3.[01]* | freebsdelf3.[01]*)
8957     shlibpath_overrides_runpath=yes
8958     hardcode_into_libs=yes
8959     ;;
8960   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8961   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8962     shlibpath_overrides_runpath=no
8963     hardcode_into_libs=yes
8964     ;;
8965   freebsd*) # from 4.6 on
8966     shlibpath_overrides_runpath=yes
8967     hardcode_into_libs=yes
8968     ;;
8969   esac
8970   ;;
8971
8972 gnu*)
8973   version_type=linux
8974   need_lib_prefix=no
8975   need_version=no
8976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8977   soname_spec='${libname}${release}${shared_ext}$major'
8978   shlibpath_var=LD_LIBRARY_PATH
8979   hardcode_into_libs=yes
8980   ;;
8981
8982 hpux9* | hpux10* | hpux11*)
8983   # Give a soname corresponding to the major version so that dld.sl refuses to
8984   # link against other versions.
8985   version_type=sunos
8986   need_lib_prefix=no
8987   need_version=no
8988   case $host_cpu in
8989   ia64*)
8990     shrext_cmds='.so'
8991     hardcode_into_libs=yes
8992     dynamic_linker="$host_os dld.so"
8993     shlibpath_var=LD_LIBRARY_PATH
8994     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8995     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996     soname_spec='${libname}${release}${shared_ext}$major'
8997     if test "X$HPUX_IA64_MODE" = X32; then
8998       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8999     else
9000       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9001     fi
9002     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9003     ;;
9004    hppa*64*)
9005      shrext_cmds='.sl'
9006      hardcode_into_libs=yes
9007      dynamic_linker="$host_os dld.sl"
9008      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9009      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9010      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011      soname_spec='${libname}${release}${shared_ext}$major'
9012      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9013      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9014      ;;
9015    *)
9016     shrext_cmds='.sl'
9017     dynamic_linker="$host_os dld.sl"
9018     shlibpath_var=SHLIB_PATH
9019     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9020     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021     soname_spec='${libname}${release}${shared_ext}$major'
9022     ;;
9023   esac
9024   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9025   postinstall_cmds='chmod 555 $lib'
9026   ;;
9027
9028 interix3*)
9029   version_type=linux
9030   need_lib_prefix=no
9031   need_version=no
9032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9033   soname_spec='${libname}${release}${shared_ext}$major'
9034   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9035   shlibpath_var=LD_LIBRARY_PATH
9036   shlibpath_overrides_runpath=no
9037   hardcode_into_libs=yes
9038   ;;
9039
9040 irix5* | irix6* | nonstopux*)
9041   case $host_os in
9042     nonstopux*) version_type=nonstopux ;;
9043     *)
9044         if test "$lt_cv_prog_gnu_ld" = yes; then
9045                 version_type=linux
9046         else
9047                 version_type=irix
9048         fi ;;
9049   esac
9050   need_lib_prefix=no
9051   need_version=no
9052   soname_spec='${libname}${release}${shared_ext}$major'
9053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9054   case $host_os in
9055   irix5* | nonstopux*)
9056     libsuff= shlibsuff=
9057     ;;
9058   *)
9059     case $LD in # libtool.m4 will add one of these switches to LD
9060     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9061       libsuff= shlibsuff= libmagic=32-bit;;
9062     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9063       libsuff=32 shlibsuff=N32 libmagic=N32;;
9064     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9065       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9066     *) libsuff= shlibsuff= libmagic=never-match;;
9067     esac
9068     ;;
9069   esac
9070   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9071   shlibpath_overrides_runpath=no
9072   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9073   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9074   hardcode_into_libs=yes
9075   ;;
9076
9077 # No shared lib support for Linux oldld, aout, or coff.
9078 linux*oldld* | linux*aout* | linux*coff*)
9079   dynamic_linker=no
9080   ;;
9081
9082 # This must be Linux ELF.
9083 linux*)
9084   version_type=linux
9085   need_lib_prefix=no
9086   need_version=no
9087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9088   soname_spec='${libname}${release}${shared_ext}$major'
9089   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9090   shlibpath_var=LD_LIBRARY_PATH
9091   shlibpath_overrides_runpath=no
9092   # This implies no fast_install, which is unacceptable.
9093   # Some rework will be needed to allow for fast_install
9094   # before this can be enabled.
9095   hardcode_into_libs=yes
9096
9097   # Append ld.so.conf contents to the search path
9098   if test -f /etc/ld.so.conf; then
9099     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' ' '`
9100     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9101   fi
9102
9103   # We used to test for /lib/ld.so.1 and disable shared libraries on
9104   # powerpc, because MkLinux only supported shared libraries with the
9105   # GNU dynamic linker.  Since this was broken with cross compilers,
9106   # most powerpc-linux boxes support dynamic linking these days and
9107   # people can always --disable-shared, the test was removed, and we
9108   # assume the GNU/Linux dynamic linker is in use.
9109   dynamic_linker='GNU/Linux ld.so'
9110   ;;
9111
9112 knetbsd*-gnu)
9113   version_type=linux
9114   need_lib_prefix=no
9115   need_version=no
9116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9117   soname_spec='${libname}${release}${shared_ext}$major'
9118   shlibpath_var=LD_LIBRARY_PATH
9119   shlibpath_overrides_runpath=no
9120   hardcode_into_libs=yes
9121   dynamic_linker='GNU ld.so'
9122   ;;
9123
9124 netbsd*)
9125   version_type=sunos
9126   need_lib_prefix=no
9127   need_version=no
9128   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9129     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9130     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9131     dynamic_linker='NetBSD (a.out) ld.so'
9132   else
9133     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9134     soname_spec='${libname}${release}${shared_ext}$major'
9135     dynamic_linker='NetBSD ld.elf_so'
9136   fi
9137   shlibpath_var=LD_LIBRARY_PATH
9138   shlibpath_overrides_runpath=yes
9139   hardcode_into_libs=yes
9140   ;;
9141
9142 newsos6)
9143   version_type=linux
9144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145   shlibpath_var=LD_LIBRARY_PATH
9146   shlibpath_overrides_runpath=yes
9147   ;;
9148
9149 nto-qnx*)
9150   version_type=linux
9151   need_lib_prefix=no
9152   need_version=no
9153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9154   soname_spec='${libname}${release}${shared_ext}$major'
9155   shlibpath_var=LD_LIBRARY_PATH
9156   shlibpath_overrides_runpath=yes
9157   ;;
9158
9159 openbsd*)
9160   version_type=sunos
9161   sys_lib_dlsearch_path_spec="/usr/lib"
9162   need_lib_prefix=no
9163   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9164   case $host_os in
9165     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9166     *)                         need_version=no  ;;
9167   esac
9168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9169   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9170   shlibpath_var=LD_LIBRARY_PATH
9171   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9172     case $host_os in
9173       openbsd2.[89] | openbsd2.[89].*)
9174         shlibpath_overrides_runpath=no
9175         ;;
9176       *)
9177         shlibpath_overrides_runpath=yes
9178         ;;
9179       esac
9180   else
9181     shlibpath_overrides_runpath=yes
9182   fi
9183   ;;
9184
9185 os2*)
9186   libname_spec='$name'
9187   shrext_cmds=".dll"
9188   need_lib_prefix=no
9189   library_names_spec='$libname${shared_ext} $libname.a'
9190   dynamic_linker='OS/2 ld.exe'
9191   shlibpath_var=LIBPATH
9192   ;;
9193
9194 osf3* | osf4* | osf5*)
9195   version_type=osf
9196   need_lib_prefix=no
9197   need_version=no
9198   soname_spec='${libname}${release}${shared_ext}$major'
9199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9200   shlibpath_var=LD_LIBRARY_PATH
9201   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9202   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9203   ;;
9204
9205 solaris*)
9206   version_type=linux
9207   need_lib_prefix=no
9208   need_version=no
9209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210   soname_spec='${libname}${release}${shared_ext}$major'
9211   shlibpath_var=LD_LIBRARY_PATH
9212   shlibpath_overrides_runpath=yes
9213   hardcode_into_libs=yes
9214   # ldd complains unless libraries are executable
9215   postinstall_cmds='chmod +x $lib'
9216   ;;
9217
9218 sunos4*)
9219   version_type=sunos
9220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9221   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9222   shlibpath_var=LD_LIBRARY_PATH
9223   shlibpath_overrides_runpath=yes
9224   if test "$with_gnu_ld" = yes; then
9225     need_lib_prefix=no
9226   fi
9227   need_version=yes
9228   ;;
9229
9230 sysv4 | sysv4.3*)
9231   version_type=linux
9232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233   soname_spec='${libname}${release}${shared_ext}$major'
9234   shlibpath_var=LD_LIBRARY_PATH
9235   case $host_vendor in
9236     sni)
9237       shlibpath_overrides_runpath=no
9238       need_lib_prefix=no
9239       export_dynamic_flag_spec='${wl}-Blargedynsym'
9240       runpath_var=LD_RUN_PATH
9241       ;;
9242     siemens)
9243       need_lib_prefix=no
9244       ;;
9245     motorola)
9246       need_lib_prefix=no
9247       need_version=no
9248       shlibpath_overrides_runpath=no
9249       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9250       ;;
9251   esac
9252   ;;
9253
9254 sysv4*MP*)
9255   if test -d /usr/nec ;then
9256     version_type=linux
9257     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9258     soname_spec='$libname${shared_ext}.$major'
9259     shlibpath_var=LD_LIBRARY_PATH
9260   fi
9261   ;;
9262
9263 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9264   version_type=freebsd-elf
9265   need_lib_prefix=no
9266   need_version=no
9267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9268   soname_spec='${libname}${release}${shared_ext}$major'
9269   shlibpath_var=LD_LIBRARY_PATH
9270   hardcode_into_libs=yes
9271   if test "$with_gnu_ld" = yes; then
9272     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9273     shlibpath_overrides_runpath=no
9274   else
9275     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9276     shlibpath_overrides_runpath=yes
9277     case $host_os in
9278       sco3.2v5*)
9279         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9280         ;;
9281     esac
9282   fi
9283   sys_lib_dlsearch_path_spec='/usr/lib'
9284   ;;
9285
9286 uts4*)
9287   version_type=linux
9288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289   soname_spec='${libname}${release}${shared_ext}$major'
9290   shlibpath_var=LD_LIBRARY_PATH
9291   ;;
9292
9293 *)
9294   dynamic_linker=no
9295   ;;
9296 esac
9297 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9298 echo "${ECHO_T}$dynamic_linker" >&6; }
9299 test "$dynamic_linker" = no && can_build_shared=no
9300
9301 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9302 if test "$GCC" = yes; then
9303   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9304 fi
9305
9306
9307 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9308 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9309 if test "${libltdl_cv_shlibext+set}" = set; then
9310   echo $ECHO_N "(cached) $ECHO_C" >&6
9311 else
9312
9313 module=yes
9314 eval libltdl_cv_shlibext=$shrext_cmds
9315
9316 fi
9317 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9318 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9319 if test -n "$libltdl_cv_shlibext"; then
9320
9321 cat >>confdefs.h <<_ACEOF
9322 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9323 _ACEOF
9324
9325 fi
9326
9327
9328 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9329 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9330 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9331   echo $ECHO_N "(cached) $ECHO_C" >&6
9332 else
9333   libltdl_cv_shlibpath_var="$shlibpath_var"
9334 fi
9335 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9336 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9337 if test -n "$libltdl_cv_shlibpath_var"; then
9338
9339 cat >>confdefs.h <<_ACEOF
9340 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9341 _ACEOF
9342
9343 fi
9344
9345
9346 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9347 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9348 if test "${libltdl_cv_sys_search_path+set}" = set; then
9349   echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9352 fi
9353 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9354 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9355 if test -n "$libltdl_cv_sys_search_path"; then
9356   sys_search_path=
9357   for dir in $libltdl_cv_sys_search_path; do
9358     if test -z "$sys_search_path"; then
9359       sys_search_path="$dir"
9360     else
9361       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9362     fi
9363   done
9364
9365 cat >>confdefs.h <<_ACEOF
9366 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9367 _ACEOF
9368
9369 fi
9370
9371 { echo "$as_me:$LINENO: checking for objdir" >&5
9372 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9373 if test "${libltdl_cv_objdir+set}" = set; then
9374   echo $ECHO_N "(cached) $ECHO_C" >&6
9375 else
9376   libltdl_cv_objdir="$objdir"
9377   if test -n "$objdir"; then
9378     :
9379   else
9380     rm -f .libs 2>/dev/null
9381     mkdir .libs 2>/dev/null
9382     if test -d .libs; then
9383       libltdl_cv_objdir=.libs
9384     else
9385       # MS-DOS does not allow filenames that begin with a dot.
9386       libltdl_cv_objdir=_libs
9387     fi
9388   rmdir .libs 2>/dev/null
9389   fi
9390
9391 fi
9392 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9393 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9394
9395 cat >>confdefs.h <<_ACEOF
9396 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9397 _ACEOF
9398
9399
9400
9401
9402
9403
9404 # Check for command to grab the raw symbol name followed by C symbol from nm.
9405 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9406 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9407 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9408   echo $ECHO_N "(cached) $ECHO_C" >&6
9409 else
9410
9411 # These are sane defaults that work on at least a few old systems.
9412 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9413
9414 # Character class describing NM global symbol codes.
9415 symcode='[BCDEGRST]'
9416
9417 # Regexp to match symbols that can be accessed directly from C.
9418 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9419
9420 # Transform an extracted symbol line into a proper C declaration
9421 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9422
9423 # Transform an extracted symbol line into symbol name and symbol address
9424 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'"
9425
9426 # Define system-specific variables.
9427 case $host_os in
9428 aix*)
9429   symcode='[BCDT]'
9430   ;;
9431 cygwin* | mingw* | pw32*)
9432   symcode='[ABCDGISTW]'
9433   ;;
9434 hpux*) # Its linker distinguishes data from code symbols
9435   if test "$host_cpu" = ia64; then
9436     symcode='[ABCDEGRST]'
9437   fi
9438   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9439   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'"
9440   ;;
9441 linux*)
9442   if test "$host_cpu" = ia64; then
9443     symcode='[ABCDGIRSTW]'
9444     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9445     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'"
9446   fi
9447   ;;
9448 irix* | nonstopux*)
9449   symcode='[BCDEGRST]'
9450   ;;
9451 osf*)
9452   symcode='[BCDEGQRST]'
9453   ;;
9454 solaris*)
9455   symcode='[BDRT]'
9456   ;;
9457 sco3.2v5*)
9458   symcode='[DT]'
9459   ;;
9460 sysv4.2uw2*)
9461   symcode='[DT]'
9462   ;;
9463 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9464   symcode='[ABDT]'
9465   ;;
9466 sysv4)
9467   symcode='[DFNSTU]'
9468   ;;
9469 esac
9470
9471 # Handle CRLF in mingw tool chain
9472 opt_cr=
9473 case $build_os in
9474 mingw*)
9475   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9476   ;;
9477 esac
9478
9479 # If we're using GNU nm, then use its standard symbol codes.
9480 case `$NM -V 2>&1` in
9481 *GNU* | *'with BFD'*)
9482   symcode='[ABCDGIRSTW]' ;;
9483 esac
9484
9485 # Try without a prefix undercore, then with it.
9486 for ac_symprfx in "" "_"; do
9487
9488   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9489   symxfrm="\\1 $ac_symprfx\\2 \\2"
9490
9491   # Write the raw and C identifiers.
9492   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9493
9494   # Check to see that the pipe works correctly.
9495   pipe_works=no
9496
9497   rm -f conftest*
9498   cat > conftest.$ac_ext <<EOF
9499 #ifdef __cplusplus
9500 extern "C" {
9501 #endif
9502 char nm_test_var;
9503 void nm_test_func(){}
9504 #ifdef __cplusplus
9505 }
9506 #endif
9507 int main(){nm_test_var='a';nm_test_func();return(0);}
9508 EOF
9509
9510   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9511   (eval $ac_compile) 2>&5
9512   ac_status=$?
9513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514   (exit $ac_status); }; then
9515     # Now try to grab the symbols.
9516     nlist=conftest.nm
9517     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9518   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9519   ac_status=$?
9520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521   (exit $ac_status); } && test -s "$nlist"; then
9522       # Try sorting and uniquifying the output.
9523       if sort "$nlist" | uniq > "$nlist"T; then
9524         mv -f "$nlist"T "$nlist"
9525       else
9526         rm -f "$nlist"T
9527       fi
9528
9529       # Make sure that we snagged all the symbols we need.
9530       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9531         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9532           cat <<EOF > conftest.$ac_ext
9533 #ifdef __cplusplus
9534 extern "C" {
9535 #endif
9536
9537 EOF
9538           # Now generate the symbol file.
9539           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9540
9541           cat <<EOF >> conftest.$ac_ext
9542 #if defined (__STDC__) && __STDC__
9543 # define lt_ptr_t void *
9544 #else
9545 # define lt_ptr_t char *
9546 # define const
9547 #endif
9548
9549 /* The mapping between symbol names and symbols. */
9550 const struct {
9551   const char *name;
9552   lt_ptr_t address;
9553 }
9554 lt_preloaded_symbols[] =
9555 {
9556 EOF
9557           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9558           cat <<\EOF >> conftest.$ac_ext
9559   {0, (lt_ptr_t) 0}
9560 };
9561
9562 #ifdef __cplusplus
9563 }
9564 #endif
9565 EOF
9566           # Now try linking the two files.
9567           mv conftest.$ac_objext conftstm.$ac_objext
9568           lt_save_LIBS="$LIBS"
9569           lt_save_CFLAGS="$CFLAGS"
9570           LIBS="conftstm.$ac_objext"
9571           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9572           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9573   (eval $ac_link) 2>&5
9574   ac_status=$?
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9577             pipe_works=yes
9578           fi
9579           LIBS="$lt_save_LIBS"
9580           CFLAGS="$lt_save_CFLAGS"
9581         else
9582           echo "cannot find nm_test_func in $nlist" >&5
9583         fi
9584       else
9585         echo "cannot find nm_test_var in $nlist" >&5
9586       fi
9587     else
9588       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9589     fi
9590   else
9591     echo "$progname: failed program was:" >&5
9592     cat conftest.$ac_ext >&5
9593   fi
9594   rm -f conftest* conftst*
9595
9596   # Do not use the global_symbol_pipe unless it works.
9597   if test "$pipe_works" = yes; then
9598     break
9599   else
9600     lt_cv_sys_global_symbol_pipe=
9601   fi
9602 done
9603
9604 fi
9605
9606 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9607   lt_cv_sys_global_symbol_to_cdecl=
9608 fi
9609 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9610   { echo "$as_me:$LINENO: result: failed" >&5
9611 echo "${ECHO_T}failed" >&6; }
9612 else
9613   { echo "$as_me:$LINENO: result: ok" >&5
9614 echo "${ECHO_T}ok" >&6; }
9615 fi
9616
9617
9618 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9619 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9620 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9621   echo $ECHO_N "(cached) $ECHO_C" >&6
9622 else
9623   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9624     libltdl_cv_preloaded_symbols=yes
9625   else
9626     libltdl_cv_preloaded_symbols=no
9627   fi
9628
9629 fi
9630 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9631 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9632 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9633
9634 cat >>confdefs.h <<\_ACEOF
9635 #define HAVE_PRELOADED_SYMBOLS 1
9636 _ACEOF
9637
9638 fi
9639
9640 LIBADD_DL=
9641
9642 ac_ext=c
9643 ac_cpp='$CPP $CPPFLAGS'
9644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9647
9648
9649 { echo "$as_me:$LINENO: checking for shl_load" >&5
9650 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9651 if test "${ac_cv_func_shl_load+set}" = set; then
9652   echo $ECHO_N "(cached) $ECHO_C" >&6
9653 else
9654   cat >conftest.$ac_ext <<_ACEOF
9655 /* confdefs.h.  */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h.  */
9660 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9662 #define shl_load innocuous_shl_load
9663
9664 /* System header to define __stub macros and hopefully few prototypes,
9665     which can conflict with char shl_load (); below.
9666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9667     <limits.h> exists even on freestanding compilers.  */
9668
9669 #ifdef __STDC__
9670 # include <limits.h>
9671 #else
9672 # include <assert.h>
9673 #endif
9674
9675 #undef shl_load
9676
9677 /* Override any GCC internal prototype to avoid an error.
9678    Use char because int might match the return type of a GCC
9679    builtin and then its argument prototype would still apply.  */
9680 #ifdef __cplusplus
9681 extern "C"
9682 #endif
9683 char shl_load ();
9684 /* The GNU C library defines this for functions which it implements
9685     to always fail with ENOSYS.  Some functions are actually named
9686     something starting with __ and the normal name is an alias.  */
9687 #if defined __stub_shl_load || defined __stub___shl_load
9688 choke me
9689 #endif
9690
9691 int
9692 main ()
9693 {
9694 return shl_load ();
9695   ;
9696   return 0;
9697 }
9698 _ACEOF
9699 rm -f conftest.$ac_objext conftest$ac_exeext
9700 if { (ac_try="$ac_link"
9701 case "(($ac_try" in
9702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703   *) ac_try_echo=$ac_try;;
9704 esac
9705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706   (eval "$ac_link") 2>conftest.er1
9707   ac_status=$?
9708   grep -v '^ *+' conftest.er1 >conftest.err
9709   rm -f conftest.er1
9710   cat conftest.err >&5
9711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712   (exit $ac_status); } &&
9713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9714   { (case "(($ac_try" in
9715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9716   *) ac_try_echo=$ac_try;;
9717 esac
9718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9719   (eval "$ac_try") 2>&5
9720   ac_status=$?
9721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722   (exit $ac_status); }; } &&
9723          { ac_try='test -s conftest$ac_exeext'
9724   { (case "(($ac_try" in
9725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726   *) ac_try_echo=$ac_try;;
9727 esac
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729   (eval "$ac_try") 2>&5
9730   ac_status=$?
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); }; }; then
9733   ac_cv_func_shl_load=yes
9734 else
9735   echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9737
9738         ac_cv_func_shl_load=no
9739 fi
9740
9741 rm -f core conftest.err conftest.$ac_objext \
9742       conftest$ac_exeext conftest.$ac_ext
9743 fi
9744 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9745 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9746 if test $ac_cv_func_shl_load = yes; then
9747
9748 cat >>confdefs.h <<\_ACEOF
9749 #define HAVE_SHL_LOAD 1
9750 _ACEOF
9751
9752 else
9753   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9754 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9755 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9756   echo $ECHO_N "(cached) $ECHO_C" >&6
9757 else
9758   ac_check_lib_save_LIBS=$LIBS
9759 LIBS="-ldld  $LIBS"
9760 cat >conftest.$ac_ext <<_ACEOF
9761 /* confdefs.h.  */
9762 _ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h.  */
9766
9767 /* Override any GCC internal prototype to avoid an error.
9768    Use char because int might match the return type of a GCC
9769    builtin and then its argument prototype would still apply.  */
9770 #ifdef __cplusplus
9771 extern "C"
9772 #endif
9773 char shl_load ();
9774 int
9775 main ()
9776 {
9777 return shl_load ();
9778   ;
9779   return 0;
9780 }
9781 _ACEOF
9782 rm -f conftest.$ac_objext conftest$ac_exeext
9783 if { (ac_try="$ac_link"
9784 case "(($ac_try" in
9785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786   *) ac_try_echo=$ac_try;;
9787 esac
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789   (eval "$ac_link") 2>conftest.er1
9790   ac_status=$?
9791   grep -v '^ *+' conftest.er1 >conftest.err
9792   rm -f conftest.er1
9793   cat conftest.err >&5
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); } &&
9796          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9797   { (case "(($ac_try" in
9798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799   *) ac_try_echo=$ac_try;;
9800 esac
9801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802   (eval "$ac_try") 2>&5
9803   ac_status=$?
9804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805   (exit $ac_status); }; } &&
9806          { ac_try='test -s conftest$ac_exeext'
9807   { (case "(($ac_try" in
9808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809   *) ac_try_echo=$ac_try;;
9810 esac
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812   (eval "$ac_try") 2>&5
9813   ac_status=$?
9814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815   (exit $ac_status); }; }; then
9816   ac_cv_lib_dld_shl_load=yes
9817 else
9818   echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9820
9821         ac_cv_lib_dld_shl_load=no
9822 fi
9823
9824 rm -f core conftest.err conftest.$ac_objext \
9825       conftest$ac_exeext conftest.$ac_ext
9826 LIBS=$ac_check_lib_save_LIBS
9827 fi
9828 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9829 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9830 if test $ac_cv_lib_dld_shl_load = yes; then
9831
9832 cat >>confdefs.h <<\_ACEOF
9833 #define HAVE_SHL_LOAD 1
9834 _ACEOF
9835
9836         LIBADD_DL="$LIBADD_DL -ldld"
9837 else
9838   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9839 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9840 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9841   echo $ECHO_N "(cached) $ECHO_C" >&6
9842 else
9843   ac_check_lib_save_LIBS=$LIBS
9844 LIBS="-ldl  $LIBS"
9845 cat >conftest.$ac_ext <<_ACEOF
9846 /* confdefs.h.  */
9847 _ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h.  */
9851
9852 /* Override any GCC internal prototype to avoid an error.
9853    Use char because int might match the return type of a GCC
9854    builtin and then its argument prototype would still apply.  */
9855 #ifdef __cplusplus
9856 extern "C"
9857 #endif
9858 char dlopen ();
9859 int
9860 main ()
9861 {
9862 return dlopen ();
9863   ;
9864   return 0;
9865 }
9866 _ACEOF
9867 rm -f conftest.$ac_objext conftest$ac_exeext
9868 if { (ac_try="$ac_link"
9869 case "(($ac_try" in
9870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871   *) ac_try_echo=$ac_try;;
9872 esac
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874   (eval "$ac_link") 2>conftest.er1
9875   ac_status=$?
9876   grep -v '^ *+' conftest.er1 >conftest.err
9877   rm -f conftest.er1
9878   cat conftest.err >&5
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); } &&
9881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9882   { (case "(($ac_try" in
9883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884   *) ac_try_echo=$ac_try;;
9885 esac
9886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887   (eval "$ac_try") 2>&5
9888   ac_status=$?
9889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890   (exit $ac_status); }; } &&
9891          { ac_try='test -s conftest$ac_exeext'
9892   { (case "(($ac_try" in
9893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894   *) ac_try_echo=$ac_try;;
9895 esac
9896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897   (eval "$ac_try") 2>&5
9898   ac_status=$?
9899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900   (exit $ac_status); }; }; then
9901   ac_cv_lib_dl_dlopen=yes
9902 else
9903   echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.$ac_ext >&5
9905
9906         ac_cv_lib_dl_dlopen=no
9907 fi
9908
9909 rm -f core conftest.err conftest.$ac_objext \
9910       conftest$ac_exeext conftest.$ac_ext
9911 LIBS=$ac_check_lib_save_LIBS
9912 fi
9913 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9914 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9915 if test $ac_cv_lib_dl_dlopen = yes; then
9916
9917 cat >>confdefs.h <<\_ACEOF
9918 #define HAVE_LIBDL 1
9919 _ACEOF
9920
9921                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9922 else
9923   cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h.  */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h.  */
9929 #if HAVE_DLFCN_H
9930 #  include <dlfcn.h>
9931 #endif
9932
9933 int
9934 main ()
9935 {
9936 dlopen(0, 0);
9937   ;
9938   return 0;
9939 }
9940 _ACEOF
9941 rm -f conftest.$ac_objext conftest$ac_exeext
9942 if { (ac_try="$ac_link"
9943 case "(($ac_try" in
9944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945   *) ac_try_echo=$ac_try;;
9946 esac
9947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948   (eval "$ac_link") 2>conftest.er1
9949   ac_status=$?
9950   grep -v '^ *+' conftest.er1 >conftest.err
9951   rm -f conftest.er1
9952   cat conftest.err >&5
9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); } &&
9955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9956   { (case "(($ac_try" in
9957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958   *) ac_try_echo=$ac_try;;
9959 esac
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961   (eval "$ac_try") 2>&5
9962   ac_status=$?
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); }; } &&
9965          { ac_try='test -s conftest$ac_exeext'
9966   { (case "(($ac_try" in
9967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968   *) ac_try_echo=$ac_try;;
9969 esac
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971   (eval "$ac_try") 2>&5
9972   ac_status=$?
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); }; }; then
9975
9976 cat >>confdefs.h <<\_ACEOF
9977 #define HAVE_LIBDL 1
9978 _ACEOF
9979  libltdl_cv_func_dlopen="yes"
9980 else
9981   echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9983
9984         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9985 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9986 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9987   echo $ECHO_N "(cached) $ECHO_C" >&6
9988 else
9989   ac_check_lib_save_LIBS=$LIBS
9990 LIBS="-lsvld  $LIBS"
9991 cat >conftest.$ac_ext <<_ACEOF
9992 /* confdefs.h.  */
9993 _ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h.  */
9997
9998 /* Override any GCC internal prototype to avoid an error.
9999    Use char because int might match the return type of a GCC
10000    builtin and then its argument prototype would still apply.  */
10001 #ifdef __cplusplus
10002 extern "C"
10003 #endif
10004 char dlopen ();
10005 int
10006 main ()
10007 {
10008 return dlopen ();
10009   ;
10010   return 0;
10011 }
10012 _ACEOF
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (ac_try="$ac_link"
10015 case "(($ac_try" in
10016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017   *) ac_try_echo=$ac_try;;
10018 esac
10019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020   (eval "$ac_link") 2>conftest.er1
10021   ac_status=$?
10022   grep -v '^ *+' conftest.er1 >conftest.err
10023   rm -f conftest.er1
10024   cat conftest.err >&5
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); } &&
10027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10028   { (case "(($ac_try" in
10029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030   *) ac_try_echo=$ac_try;;
10031 esac
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033   (eval "$ac_try") 2>&5
10034   ac_status=$?
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); }; } &&
10037          { ac_try='test -s conftest$ac_exeext'
10038   { (case "(($ac_try" in
10039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040   *) ac_try_echo=$ac_try;;
10041 esac
10042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043   (eval "$ac_try") 2>&5
10044   ac_status=$?
10045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046   (exit $ac_status); }; }; then
10047   ac_cv_lib_svld_dlopen=yes
10048 else
10049   echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10051
10052         ac_cv_lib_svld_dlopen=no
10053 fi
10054
10055 rm -f core conftest.err conftest.$ac_objext \
10056       conftest$ac_exeext conftest.$ac_ext
10057 LIBS=$ac_check_lib_save_LIBS
10058 fi
10059 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10060 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10061 if test $ac_cv_lib_svld_dlopen = yes; then
10062
10063 cat >>confdefs.h <<\_ACEOF
10064 #define HAVE_LIBDL 1
10065 _ACEOF
10066
10067                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10068 else
10069   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10070 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10071 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10072   echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074   ac_check_lib_save_LIBS=$LIBS
10075 LIBS="-ldld  $LIBS"
10076 cat >conftest.$ac_ext <<_ACEOF
10077 /* confdefs.h.  */
10078 _ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h.  */
10082
10083 /* Override any GCC internal prototype to avoid an error.
10084    Use char because int might match the return type of a GCC
10085    builtin and then its argument prototype would still apply.  */
10086 #ifdef __cplusplus
10087 extern "C"
10088 #endif
10089 char dld_link ();
10090 int
10091 main ()
10092 {
10093 return dld_link ();
10094   ;
10095   return 0;
10096 }
10097 _ACEOF
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (ac_try="$ac_link"
10100 case "(($ac_try" in
10101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102   *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105   (eval "$ac_link") 2>conftest.er1
10106   ac_status=$?
10107   grep -v '^ *+' conftest.er1 >conftest.err
10108   rm -f conftest.er1
10109   cat conftest.err >&5
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); } &&
10112          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10113   { (case "(($ac_try" in
10114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115   *) ac_try_echo=$ac_try;;
10116 esac
10117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118   (eval "$ac_try") 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); }; } &&
10122          { ac_try='test -s conftest$ac_exeext'
10123   { (case "(($ac_try" in
10124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125   *) ac_try_echo=$ac_try;;
10126 esac
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128   (eval "$ac_try") 2>&5
10129   ac_status=$?
10130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131   (exit $ac_status); }; }; then
10132   ac_cv_lib_dld_dld_link=yes
10133 else
10134   echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10136
10137         ac_cv_lib_dld_dld_link=no
10138 fi
10139
10140 rm -f core conftest.err conftest.$ac_objext \
10141       conftest$ac_exeext conftest.$ac_ext
10142 LIBS=$ac_check_lib_save_LIBS
10143 fi
10144 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10145 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10146 if test $ac_cv_lib_dld_dld_link = yes; then
10147
10148 cat >>confdefs.h <<\_ACEOF
10149 #define HAVE_DLD 1
10150 _ACEOF
10151
10152                 LIBADD_DL="$LIBADD_DL -ldld"
10153 else
10154   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10155 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10156 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10157   echo $ECHO_N "(cached) $ECHO_C" >&6
10158 else
10159   cat >conftest.$ac_ext <<_ACEOF
10160 /* confdefs.h.  */
10161 _ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h.  */
10165 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10167 #define _dyld_func_lookup innocuous__dyld_func_lookup
10168
10169 /* System header to define __stub macros and hopefully few prototypes,
10170     which can conflict with char _dyld_func_lookup (); below.
10171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10172     <limits.h> exists even on freestanding compilers.  */
10173
10174 #ifdef __STDC__
10175 # include <limits.h>
10176 #else
10177 # include <assert.h>
10178 #endif
10179
10180 #undef _dyld_func_lookup
10181
10182 /* Override any GCC internal prototype to avoid an error.
10183    Use char because int might match the return type of a GCC
10184    builtin and then its argument prototype would still apply.  */
10185 #ifdef __cplusplus
10186 extern "C"
10187 #endif
10188 char _dyld_func_lookup ();
10189 /* The GNU C library defines this for functions which it implements
10190     to always fail with ENOSYS.  Some functions are actually named
10191     something starting with __ and the normal name is an alias.  */
10192 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10193 choke me
10194 #endif
10195
10196 int
10197 main ()
10198 {
10199 return _dyld_func_lookup ();
10200   ;
10201   return 0;
10202 }
10203 _ACEOF
10204 rm -f conftest.$ac_objext conftest$ac_exeext
10205 if { (ac_try="$ac_link"
10206 case "(($ac_try" in
10207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208   *) ac_try_echo=$ac_try;;
10209 esac
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211   (eval "$ac_link") 2>conftest.er1
10212   ac_status=$?
10213   grep -v '^ *+' conftest.er1 >conftest.err
10214   rm -f conftest.er1
10215   cat conftest.err >&5
10216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   (exit $ac_status); } &&
10218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10219   { (case "(($ac_try" in
10220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221   *) ac_try_echo=$ac_try;;
10222 esac
10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224   (eval "$ac_try") 2>&5
10225   ac_status=$?
10226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227   (exit $ac_status); }; } &&
10228          { ac_try='test -s conftest$ac_exeext'
10229   { (case "(($ac_try" in
10230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231   *) ac_try_echo=$ac_try;;
10232 esac
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234   (eval "$ac_try") 2>&5
10235   ac_status=$?
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); }; }; then
10238   ac_cv_func__dyld_func_lookup=yes
10239 else
10240   echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10242
10243         ac_cv_func__dyld_func_lookup=no
10244 fi
10245
10246 rm -f core conftest.err conftest.$ac_objext \
10247       conftest$ac_exeext conftest.$ac_ext
10248 fi
10249 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10250 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10251 if test $ac_cv_func__dyld_func_lookup = yes; then
10252
10253 cat >>confdefs.h <<\_ACEOF
10254 #define HAVE_DYLD 1
10255 _ACEOF
10256
10257 fi
10258
10259
10260 fi
10261
10262
10263 fi
10264
10265
10266 fi
10267
10268 rm -f core conftest.err conftest.$ac_objext \
10269       conftest$ac_exeext conftest.$ac_ext
10270
10271 fi
10272
10273
10274 fi
10275
10276
10277 fi
10278
10279
10280 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10281 then
10282   lt_save_LIBS="$LIBS"
10283   LIBS="$LIBS $LIBADD_DL"
10284
10285 for ac_func in dlerror
10286 do
10287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10291   echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293   cat >conftest.$ac_ext <<_ACEOF
10294 /* confdefs.h.  */
10295 _ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h.  */
10299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10300    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10301 #define $ac_func innocuous_$ac_func
10302
10303 /* System header to define __stub macros and hopefully few prototypes,
10304     which can conflict with char $ac_func (); below.
10305     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10306     <limits.h> exists even on freestanding compilers.  */
10307
10308 #ifdef __STDC__
10309 # include <limits.h>
10310 #else
10311 # include <assert.h>
10312 #endif
10313
10314 #undef $ac_func
10315
10316 /* Override any GCC internal prototype to avoid an error.
10317    Use char because int might match the return type of a GCC
10318    builtin and then its argument prototype would still apply.  */
10319 #ifdef __cplusplus
10320 extern "C"
10321 #endif
10322 char $ac_func ();
10323 /* The GNU C library defines this for functions which it implements
10324     to always fail with ENOSYS.  Some functions are actually named
10325     something starting with __ and the normal name is an alias.  */
10326 #if defined __stub_$ac_func || defined __stub___$ac_func
10327 choke me
10328 #endif
10329
10330 int
10331 main ()
10332 {
10333 return $ac_func ();
10334   ;
10335   return 0;
10336 }
10337 _ACEOF
10338 rm -f conftest.$ac_objext conftest$ac_exeext
10339 if { (ac_try="$ac_link"
10340 case "(($ac_try" in
10341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342   *) ac_try_echo=$ac_try;;
10343 esac
10344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345   (eval "$ac_link") 2>conftest.er1
10346   ac_status=$?
10347   grep -v '^ *+' conftest.er1 >conftest.err
10348   rm -f conftest.er1
10349   cat conftest.err >&5
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); } &&
10352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10353   { (case "(($ac_try" in
10354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355   *) ac_try_echo=$ac_try;;
10356 esac
10357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358   (eval "$ac_try") 2>&5
10359   ac_status=$?
10360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361   (exit $ac_status); }; } &&
10362          { ac_try='test -s conftest$ac_exeext'
10363   { (case "(($ac_try" in
10364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365   *) ac_try_echo=$ac_try;;
10366 esac
10367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10368   (eval "$ac_try") 2>&5
10369   ac_status=$?
10370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371   (exit $ac_status); }; }; then
10372   eval "$as_ac_var=yes"
10373 else
10374   echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.$ac_ext >&5
10376
10377         eval "$as_ac_var=no"
10378 fi
10379
10380 rm -f core conftest.err conftest.$ac_objext \
10381       conftest$ac_exeext conftest.$ac_ext
10382 fi
10383 ac_res=`eval echo '${'$as_ac_var'}'`
10384                { echo "$as_me:$LINENO: result: $ac_res" >&5
10385 echo "${ECHO_T}$ac_res" >&6; }
10386 if test `eval echo '${'$as_ac_var'}'` = yes; then
10387   cat >>confdefs.h <<_ACEOF
10388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10389 _ACEOF
10390
10391 fi
10392 done
10393
10394   LIBS="$lt_save_LIBS"
10395 fi
10396 ac_ext=c
10397 ac_cpp='$CPP $CPPFLAGS'
10398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10401
10402
10403
10404 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10405 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10406 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10407   echo $ECHO_N "(cached) $ECHO_C" >&6
10408 else
10409   ac_cv_sys_symbol_underscore=no
10410   cat > conftest.$ac_ext <<EOF
10411 void nm_test_func(){}
10412 int main(){nm_test_func;return 0;}
10413 EOF
10414   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10415   (eval $ac_compile) 2>&5
10416   ac_status=$?
10417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418   (exit $ac_status); }; then
10419     # Now try to grab the symbols.
10420     ac_nlist=conftest.nm
10421     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10422   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10423   ac_status=$?
10424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425   (exit $ac_status); } && test -s "$ac_nlist"; then
10426       # See whether the symbols have a leading underscore.
10427       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10428         ac_cv_sys_symbol_underscore=yes
10429       else
10430         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10431           :
10432         else
10433           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10434         fi
10435       fi
10436     else
10437       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10438     fi
10439   else
10440     echo "configure: failed program was:" >&5
10441     cat conftest.c >&5
10442   fi
10443   rm -rf conftest*
10444
10445 fi
10446 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10447 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10448
10449
10450 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10451   if test x"$libltdl_cv_func_dlopen" = xyes ||
10452      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10453         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10454 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10455 if test "${libltdl_cv_need_uscore+set}" = set; then
10456   echo $ECHO_N "(cached) $ECHO_C" >&6
10457 else
10458   libltdl_cv_need_uscore=unknown
10459           save_LIBS="$LIBS"
10460           LIBS="$LIBS $LIBADD_DL"
10461           if test "$cross_compiling" = yes; then :
10462   libltdl_cv_need_uscore=cross
10463 else
10464   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10465   lt_status=$lt_dlunknown
10466   cat > conftest.$ac_ext <<EOF
10467 #line 10474 "configure"
10468 #include "confdefs.h"
10469
10470 #if HAVE_DLFCN_H
10471 #include <dlfcn.h>
10472 #endif
10473
10474 #include <stdio.h>
10475
10476 #ifdef RTLD_GLOBAL
10477 #  define LT_DLGLOBAL           RTLD_GLOBAL
10478 #else
10479 #  ifdef DL_GLOBAL
10480 #    define LT_DLGLOBAL         DL_GLOBAL
10481 #  else
10482 #    define LT_DLGLOBAL         0
10483 #  endif
10484 #endif
10485
10486 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10487    find out it does not work in some platform. */
10488 #ifndef LT_DLLAZY_OR_NOW
10489 #  ifdef RTLD_LAZY
10490 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10491 #  else
10492 #    ifdef DL_LAZY
10493 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10494 #    else
10495 #      ifdef RTLD_NOW
10496 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10497 #      else
10498 #        ifdef DL_NOW
10499 #          define LT_DLLAZY_OR_NOW      DL_NOW
10500 #        else
10501 #          define LT_DLLAZY_OR_NOW      0
10502 #        endif
10503 #      endif
10504 #    endif
10505 #  endif
10506 #endif
10507
10508 #ifdef __cplusplus
10509 extern "C" void exit (int);
10510 #endif
10511
10512 void fnord() { int i=42;}
10513 int main ()
10514 {
10515   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10516   int status = $lt_dlunknown;
10517
10518   if (self)
10519     {
10520       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10521       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10522       /* dlclose (self); */
10523     }
10524   else
10525     puts (dlerror ());
10526
10527     exit (status);
10528 }
10529 EOF
10530   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10531   (eval $ac_link) 2>&5
10532   ac_status=$?
10533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10535     (./conftest; exit; ) >&5 2>/dev/null
10536     lt_status=$?
10537     case x$lt_status in
10538       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10539       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10540       x$lt_dlunknown|x*)  ;;
10541     esac
10542   else :
10543     # compilation failed
10544
10545   fi
10546 fi
10547 rm -fr conftest*
10548
10549           LIBS="$save_LIBS"
10550
10551 fi
10552 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10553 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10554   fi
10555 fi
10556
10557 if test x"$libltdl_cv_need_uscore" = xyes; then
10558
10559 cat >>confdefs.h <<\_ACEOF
10560 #define NEED_USCORE 1
10561 _ACEOF
10562
10563 fi
10564
10565
10566 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10567 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10568 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10569   echo $ECHO_N "(cached) $ECHO_C" >&6
10570 else
10571   # PORTME does your system automatically load deplibs for dlopen?
10572   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10573   # For now, we just catch OSes we know something about -- in the
10574   # future, we'll try test this programmatically.
10575   libltdl_cv_sys_dlopen_deplibs=unknown
10576   case "$host_os" in
10577   aix3*|aix4.1.*|aix4.2.*)
10578     # Unknown whether this is true for these versions of AIX, but
10579     # we want this `case' here to explicitly catch those versions.
10580     libltdl_cv_sys_dlopen_deplibs=unknown
10581     ;;
10582   aix[45]*)
10583     libltdl_cv_sys_dlopen_deplibs=yes
10584     ;;
10585   darwin*)
10586     # Assuming the user has installed a libdl from somewhere, this is true
10587     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10588     libltdl_cv_sys_dlopen_deplibs=yes
10589     ;;
10590   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10591     # GNU and its variants, using gnu ld.so (Glibc)
10592     libltdl_cv_sys_dlopen_deplibs=yes
10593     ;;
10594   hpux10*|hpux11*)
10595     libltdl_cv_sys_dlopen_deplibs=yes
10596     ;;
10597   interix*)
10598     libltdl_cv_sys_dlopen_deplibs=yes
10599     ;;
10600   irix[12345]*|irix6.[01]*)
10601     # Catch all versions of IRIX before 6.2, and indicate that we don't
10602     # know how it worked for any of those versions.
10603     libltdl_cv_sys_dlopen_deplibs=unknown
10604     ;;
10605   irix*)
10606     # The case above catches anything before 6.2, and it's known that
10607     # at 6.2 and later dlopen does load deplibs.
10608     libltdl_cv_sys_dlopen_deplibs=yes
10609     ;;
10610   netbsd*)
10611     libltdl_cv_sys_dlopen_deplibs=yes
10612     ;;
10613   openbsd*)
10614     libltdl_cv_sys_dlopen_deplibs=yes
10615     ;;
10616   osf[1234]*)
10617     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10618     # it did *not* use an RPATH in a shared library to find objects the
10619     # library depends on, so we explicitly say `no'.
10620     libltdl_cv_sys_dlopen_deplibs=no
10621     ;;
10622   osf5.0|osf5.0a|osf5.1)
10623     # dlopen *does* load deplibs and with the right loader patch applied
10624     # it even uses RPATH in a shared library to search for shared objects
10625     # that the library depends on, but there's no easy way to know if that
10626     # patch is installed.  Since this is the case, all we can really
10627     # say is unknown -- it depends on the patch being installed.  If
10628     # it is, this changes to `yes'.  Without it, it would be `no'.
10629     libltdl_cv_sys_dlopen_deplibs=unknown
10630     ;;
10631   osf*)
10632     # the two cases above should catch all versions of osf <= 5.1.  Read
10633     # the comments above for what we know about them.
10634     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10635     # is used to find them so we can finally say `yes'.
10636     libltdl_cv_sys_dlopen_deplibs=yes
10637     ;;
10638   solaris*)
10639     libltdl_cv_sys_dlopen_deplibs=yes
10640     ;;
10641   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10642     libltdl_cv_sys_dlopen_deplibs=yes
10643     ;;
10644   esac
10645
10646 fi
10647 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10648 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10649 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10650
10651 cat >>confdefs.h <<\_ACEOF
10652 #define LTDL_DLOPEN_DEPLIBS 1
10653 _ACEOF
10654
10655 fi
10656
10657
10658 for ac_header in argz.h
10659 do
10660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10662   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10665   echo $ECHO_N "(cached) $ECHO_C" >&6
10666 fi
10667 ac_res=`eval echo '${'$as_ac_Header'}'`
10668                { echo "$as_me:$LINENO: result: $ac_res" >&5
10669 echo "${ECHO_T}$ac_res" >&6; }
10670 else
10671   # Is the header compilable?
10672 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10674 cat >conftest.$ac_ext <<_ACEOF
10675 /* confdefs.h.  */
10676 _ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h.  */
10680 $ac_includes_default
10681 #include <$ac_header>
10682 _ACEOF
10683 rm -f conftest.$ac_objext
10684 if { (ac_try="$ac_compile"
10685 case "(($ac_try" in
10686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687   *) ac_try_echo=$ac_try;;
10688 esac
10689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10690   (eval "$ac_compile") 2>conftest.er1
10691   ac_status=$?
10692   grep -v '^ *+' conftest.er1 >conftest.err
10693   rm -f conftest.er1
10694   cat conftest.err >&5
10695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696   (exit $ac_status); } &&
10697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10698   { (case "(($ac_try" in
10699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700   *) ac_try_echo=$ac_try;;
10701 esac
10702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703   (eval "$ac_try") 2>&5
10704   ac_status=$?
10705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706   (exit $ac_status); }; } &&
10707          { ac_try='test -s conftest.$ac_objext'
10708   { (case "(($ac_try" in
10709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710   *) ac_try_echo=$ac_try;;
10711 esac
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713   (eval "$ac_try") 2>&5
10714   ac_status=$?
10715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716   (exit $ac_status); }; }; then
10717   ac_header_compiler=yes
10718 else
10719   echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10721
10722         ac_header_compiler=no
10723 fi
10724
10725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10727 echo "${ECHO_T}$ac_header_compiler" >&6; }
10728
10729 # Is the header present?
10730 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10732 cat >conftest.$ac_ext <<_ACEOF
10733 /* confdefs.h.  */
10734 _ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h.  */
10738 #include <$ac_header>
10739 _ACEOF
10740 if { (ac_try="$ac_cpp conftest.$ac_ext"
10741 case "(($ac_try" in
10742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743   *) ac_try_echo=$ac_try;;
10744 esac
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10747   ac_status=$?
10748   grep -v '^ *+' conftest.er1 >conftest.err
10749   rm -f conftest.er1
10750   cat conftest.err >&5
10751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752   (exit $ac_status); } >/dev/null; then
10753   if test -s conftest.err; then
10754     ac_cpp_err=$ac_c_preproc_warn_flag
10755     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10756   else
10757     ac_cpp_err=
10758   fi
10759 else
10760   ac_cpp_err=yes
10761 fi
10762 if test -z "$ac_cpp_err"; then
10763   ac_header_preproc=yes
10764 else
10765   echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10767
10768   ac_header_preproc=no
10769 fi
10770
10771 rm -f conftest.err conftest.$ac_ext
10772 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10773 echo "${ECHO_T}$ac_header_preproc" >&6; }
10774
10775 # So?  What about this header?
10776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10777   yes:no: )
10778     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10780     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10781 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10782     ac_header_preproc=yes
10783     ;;
10784   no:yes:* )
10785     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10787     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10788 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10789     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10790 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10791     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10792 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10795     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10796 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10797     ( cat <<\_ASBOX
10798 ## ----------------------------------- ##
10799 ## Report this to llvmbugs@cs.uiuc.edu ##
10800 ## ----------------------------------- ##
10801 _ASBOX
10802      ) | sed "s/^/$as_me: WARNING:     /" >&2
10803     ;;
10804 esac
10805 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10808   echo $ECHO_N "(cached) $ECHO_C" >&6
10809 else
10810   eval "$as_ac_Header=\$ac_header_preproc"
10811 fi
10812 ac_res=`eval echo '${'$as_ac_Header'}'`
10813                { echo "$as_me:$LINENO: result: $ac_res" >&5
10814 echo "${ECHO_T}$ac_res" >&6; }
10815
10816 fi
10817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10818   cat >>confdefs.h <<_ACEOF
10819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10820 _ACEOF
10821
10822 fi
10823
10824 done
10825
10826
10827 { echo "$as_me:$LINENO: checking for error_t" >&5
10828 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10829 if test "${ac_cv_type_error_t+set}" = set; then
10830   echo $ECHO_N "(cached) $ECHO_C" >&6
10831 else
10832   cat >conftest.$ac_ext <<_ACEOF
10833 /* confdefs.h.  */
10834 _ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h.  */
10838 #if HAVE_ARGZ_H
10839 #  include <argz.h>
10840 #endif
10841
10842 typedef error_t ac__type_new_;
10843 int
10844 main ()
10845 {
10846 if ((ac__type_new_ *) 0)
10847   return 0;
10848 if (sizeof (ac__type_new_))
10849   return 0;
10850   ;
10851   return 0;
10852 }
10853 _ACEOF
10854 rm -f conftest.$ac_objext
10855 if { (ac_try="$ac_compile"
10856 case "(($ac_try" in
10857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858   *) ac_try_echo=$ac_try;;
10859 esac
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861   (eval "$ac_compile") 2>conftest.er1
10862   ac_status=$?
10863   grep -v '^ *+' conftest.er1 >conftest.err
10864   rm -f conftest.er1
10865   cat conftest.err >&5
10866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867   (exit $ac_status); } &&
10868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10869   { (case "(($ac_try" in
10870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871   *) ac_try_echo=$ac_try;;
10872 esac
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874   (eval "$ac_try") 2>&5
10875   ac_status=$?
10876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877   (exit $ac_status); }; } &&
10878          { ac_try='test -s conftest.$ac_objext'
10879   { (case "(($ac_try" in
10880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881   *) ac_try_echo=$ac_try;;
10882 esac
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884   (eval "$ac_try") 2>&5
10885   ac_status=$?
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); }; }; then
10888   ac_cv_type_error_t=yes
10889 else
10890   echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10892
10893         ac_cv_type_error_t=no
10894 fi
10895
10896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10897 fi
10898 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10899 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10900 if test $ac_cv_type_error_t = yes; then
10901
10902 cat >>confdefs.h <<_ACEOF
10903 #define HAVE_ERROR_T 1
10904 _ACEOF
10905
10906
10907 else
10908
10909 cat >>confdefs.h <<\_ACEOF
10910 #define error_t int
10911 _ACEOF
10912
10913 fi
10914
10915
10916
10917
10918
10919
10920
10921 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10922 do
10923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10927   echo $ECHO_N "(cached) $ECHO_C" >&6
10928 else
10929   cat >conftest.$ac_ext <<_ACEOF
10930 /* confdefs.h.  */
10931 _ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h.  */
10935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10937 #define $ac_func innocuous_$ac_func
10938
10939 /* System header to define __stub macros and hopefully few prototypes,
10940     which can conflict with char $ac_func (); below.
10941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10942     <limits.h> exists even on freestanding compilers.  */
10943
10944 #ifdef __STDC__
10945 # include <limits.h>
10946 #else
10947 # include <assert.h>
10948 #endif
10949
10950 #undef $ac_func
10951
10952 /* Override any GCC internal prototype to avoid an error.
10953    Use char because int might match the return type of a GCC
10954    builtin and then its argument prototype would still apply.  */
10955 #ifdef __cplusplus
10956 extern "C"
10957 #endif
10958 char $ac_func ();
10959 /* The GNU C library defines this for functions which it implements
10960     to always fail with ENOSYS.  Some functions are actually named
10961     something starting with __ and the normal name is an alias.  */
10962 #if defined __stub_$ac_func || defined __stub___$ac_func
10963 choke me
10964 #endif
10965
10966 int
10967 main ()
10968 {
10969 return $ac_func ();
10970   ;
10971   return 0;
10972 }
10973 _ACEOF
10974 rm -f conftest.$ac_objext conftest$ac_exeext
10975 if { (ac_try="$ac_link"
10976 case "(($ac_try" in
10977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978   *) ac_try_echo=$ac_try;;
10979 esac
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981   (eval "$ac_link") 2>conftest.er1
10982   ac_status=$?
10983   grep -v '^ *+' conftest.er1 >conftest.err
10984   rm -f conftest.er1
10985   cat conftest.err >&5
10986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987   (exit $ac_status); } &&
10988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10989   { (case "(($ac_try" in
10990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991   *) ac_try_echo=$ac_try;;
10992 esac
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994   (eval "$ac_try") 2>&5
10995   ac_status=$?
10996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997   (exit $ac_status); }; } &&
10998          { ac_try='test -s conftest$ac_exeext'
10999   { (case "(($ac_try" in
11000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001   *) ac_try_echo=$ac_try;;
11002 esac
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004   (eval "$ac_try") 2>&5
11005   ac_status=$?
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); }; }; then
11008   eval "$as_ac_var=yes"
11009 else
11010   echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11012
11013         eval "$as_ac_var=no"
11014 fi
11015
11016 rm -f core conftest.err conftest.$ac_objext \
11017       conftest$ac_exeext conftest.$ac_ext
11018 fi
11019 ac_res=`eval echo '${'$as_ac_var'}'`
11020                { echo "$as_me:$LINENO: result: $ac_res" >&5
11021 echo "${ECHO_T}$ac_res" >&6; }
11022 if test `eval echo '${'$as_ac_var'}'` = yes; then
11023   cat >>confdefs.h <<_ACEOF
11024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11025 _ACEOF
11026
11027 fi
11028 done
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11058                   stdio.h unistd.h
11059 do
11060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11062   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11065   echo $ECHO_N "(cached) $ECHO_C" >&6
11066 fi
11067 ac_res=`eval echo '${'$as_ac_Header'}'`
11068                { echo "$as_me:$LINENO: result: $ac_res" >&5
11069 echo "${ECHO_T}$ac_res" >&6; }
11070 else
11071   # Is the header compilable?
11072 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11074 cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h.  */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h.  */
11080 $ac_includes_default
11081 #include <$ac_header>
11082 _ACEOF
11083 rm -f conftest.$ac_objext
11084 if { (ac_try="$ac_compile"
11085 case "(($ac_try" in
11086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087   *) ac_try_echo=$ac_try;;
11088 esac
11089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090   (eval "$ac_compile") 2>conftest.er1
11091   ac_status=$?
11092   grep -v '^ *+' conftest.er1 >conftest.err
11093   rm -f conftest.er1
11094   cat conftest.err >&5
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); } &&
11097          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11098   { (case "(($ac_try" in
11099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100   *) ac_try_echo=$ac_try;;
11101 esac
11102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103   (eval "$ac_try") 2>&5
11104   ac_status=$?
11105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106   (exit $ac_status); }; } &&
11107          { ac_try='test -s conftest.$ac_objext'
11108   { (case "(($ac_try" in
11109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110   *) ac_try_echo=$ac_try;;
11111 esac
11112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113   (eval "$ac_try") 2>&5
11114   ac_status=$?
11115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116   (exit $ac_status); }; }; then
11117   ac_header_compiler=yes
11118 else
11119   echo "$as_me: failed program was:" >&5
11120 sed 's/^/| /' conftest.$ac_ext >&5
11121
11122         ac_header_compiler=no
11123 fi
11124
11125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11127 echo "${ECHO_T}$ac_header_compiler" >&6; }
11128
11129 # Is the header present?
11130 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11132 cat >conftest.$ac_ext <<_ACEOF
11133 /* confdefs.h.  */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h.  */
11138 #include <$ac_header>
11139 _ACEOF
11140 if { (ac_try="$ac_cpp conftest.$ac_ext"
11141 case "(($ac_try" in
11142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143   *) ac_try_echo=$ac_try;;
11144 esac
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11147   ac_status=$?
11148   grep -v '^ *+' conftest.er1 >conftest.err
11149   rm -f conftest.er1
11150   cat conftest.err >&5
11151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152   (exit $ac_status); } >/dev/null; then
11153   if test -s conftest.err; then
11154     ac_cpp_err=$ac_c_preproc_warn_flag
11155     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11156   else
11157     ac_cpp_err=
11158   fi
11159 else
11160   ac_cpp_err=yes
11161 fi
11162 if test -z "$ac_cpp_err"; then
11163   ac_header_preproc=yes
11164 else
11165   echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11167
11168   ac_header_preproc=no
11169 fi
11170
11171 rm -f conftest.err conftest.$ac_ext
11172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11173 echo "${ECHO_T}$ac_header_preproc" >&6; }
11174
11175 # So?  What about this header?
11176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11177   yes:no: )
11178     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11182     ac_header_preproc=yes
11183     ;;
11184   no:yes:* )
11185     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11187     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11188 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11189     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11191     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11192 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11195     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11197     ( cat <<\_ASBOX
11198 ## ----------------------------------- ##
11199 ## Report this to llvmbugs@cs.uiuc.edu ##
11200 ## ----------------------------------- ##
11201 _ASBOX
11202      ) | sed "s/^/$as_me: WARNING:     /" >&2
11203     ;;
11204 esac
11205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11208   echo $ECHO_N "(cached) $ECHO_C" >&6
11209 else
11210   eval "$as_ac_Header=\$ac_header_preproc"
11211 fi
11212 ac_res=`eval echo '${'$as_ac_Header'}'`
11213                { echo "$as_me:$LINENO: result: $ac_res" >&5
11214 echo "${ECHO_T}$ac_res" >&6; }
11215
11216 fi
11217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11218   cat >>confdefs.h <<_ACEOF
11219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11220 _ACEOF
11221
11222 fi
11223
11224 done
11225
11226
11227
11228
11229
11230 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11231 do
11232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11237   echo $ECHO_N "(cached) $ECHO_C" >&6
11238 fi
11239 ac_res=`eval echo '${'$as_ac_Header'}'`
11240                { echo "$as_me:$LINENO: result: $ac_res" >&5
11241 echo "${ECHO_T}$ac_res" >&6; }
11242 else
11243   # Is the header compilable?
11244 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11246 cat >conftest.$ac_ext <<_ACEOF
11247 /* confdefs.h.  */
11248 _ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h.  */
11252 $ac_includes_default
11253 #include <$ac_header>
11254 _ACEOF
11255 rm -f conftest.$ac_objext
11256 if { (ac_try="$ac_compile"
11257 case "(($ac_try" in
11258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259   *) ac_try_echo=$ac_try;;
11260 esac
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262   (eval "$ac_compile") 2>conftest.er1
11263   ac_status=$?
11264   grep -v '^ *+' conftest.er1 >conftest.err
11265   rm -f conftest.er1
11266   cat conftest.err >&5
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); } &&
11269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11270   { (case "(($ac_try" in
11271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272   *) ac_try_echo=$ac_try;;
11273 esac
11274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275   (eval "$ac_try") 2>&5
11276   ac_status=$?
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   (exit $ac_status); }; } &&
11279          { ac_try='test -s conftest.$ac_objext'
11280   { (case "(($ac_try" in
11281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282   *) ac_try_echo=$ac_try;;
11283 esac
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285   (eval "$ac_try") 2>&5
11286   ac_status=$?
11287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288   (exit $ac_status); }; }; then
11289   ac_header_compiler=yes
11290 else
11291   echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11293
11294         ac_header_compiler=no
11295 fi
11296
11297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11299 echo "${ECHO_T}$ac_header_compiler" >&6; }
11300
11301 # Is the header present?
11302 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11304 cat >conftest.$ac_ext <<_ACEOF
11305 /* confdefs.h.  */
11306 _ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h.  */
11310 #include <$ac_header>
11311 _ACEOF
11312 if { (ac_try="$ac_cpp conftest.$ac_ext"
11313 case "(($ac_try" in
11314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315   *) ac_try_echo=$ac_try;;
11316 esac
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11319   ac_status=$?
11320   grep -v '^ *+' conftest.er1 >conftest.err
11321   rm -f conftest.er1
11322   cat conftest.err >&5
11323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324   (exit $ac_status); } >/dev/null; then
11325   if test -s conftest.err; then
11326     ac_cpp_err=$ac_c_preproc_warn_flag
11327     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11328   else
11329     ac_cpp_err=
11330   fi
11331 else
11332   ac_cpp_err=yes
11333 fi
11334 if test -z "$ac_cpp_err"; then
11335   ac_header_preproc=yes
11336 else
11337   echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11339
11340   ac_header_preproc=no
11341 fi
11342
11343 rm -f conftest.err conftest.$ac_ext
11344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11345 echo "${ECHO_T}$ac_header_preproc" >&6; }
11346
11347 # So?  What about this header?
11348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11349   yes:no: )
11350     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11354     ac_header_preproc=yes
11355     ;;
11356   no:yes:* )
11357     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11359     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11360 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11361     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11363     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11364 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11365     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11367     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11369     ( cat <<\_ASBOX
11370 ## ----------------------------------- ##
11371 ## Report this to llvmbugs@cs.uiuc.edu ##
11372 ## ----------------------------------- ##
11373 _ASBOX
11374      ) | sed "s/^/$as_me: WARNING:     /" >&2
11375     ;;
11376 esac
11377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11380   echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382   eval "$as_ac_Header=\$ac_header_preproc"
11383 fi
11384 ac_res=`eval echo '${'$as_ac_Header'}'`
11385                { echo "$as_me:$LINENO: result: $ac_res" >&5
11386 echo "${ECHO_T}$ac_res" >&6; }
11387
11388 fi
11389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11390   cat >>confdefs.h <<_ACEOF
11391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11392 _ACEOF
11393
11394 fi
11395
11396 done
11397
11398
11399
11400 for ac_header in string.h strings.h
11401 do
11402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11404   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11407   echo $ECHO_N "(cached) $ECHO_C" >&6
11408 fi
11409 ac_res=`eval echo '${'$as_ac_Header'}'`
11410                { echo "$as_me:$LINENO: result: $ac_res" >&5
11411 echo "${ECHO_T}$ac_res" >&6; }
11412 else
11413   # Is the header compilable?
11414 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11416 cat >conftest.$ac_ext <<_ACEOF
11417 /* confdefs.h.  */
11418 _ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h.  */
11422 $ac_includes_default
11423 #include <$ac_header>
11424 _ACEOF
11425 rm -f conftest.$ac_objext
11426 if { (ac_try="$ac_compile"
11427 case "(($ac_try" in
11428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429   *) ac_try_echo=$ac_try;;
11430 esac
11431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432   (eval "$ac_compile") 2>conftest.er1
11433   ac_status=$?
11434   grep -v '^ *+' conftest.er1 >conftest.err
11435   rm -f conftest.er1
11436   cat conftest.err >&5
11437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438   (exit $ac_status); } &&
11439          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11440   { (case "(($ac_try" in
11441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442   *) ac_try_echo=$ac_try;;
11443 esac
11444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445   (eval "$ac_try") 2>&5
11446   ac_status=$?
11447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448   (exit $ac_status); }; } &&
11449          { ac_try='test -s conftest.$ac_objext'
11450   { (case "(($ac_try" in
11451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452   *) ac_try_echo=$ac_try;;
11453 esac
11454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455   (eval "$ac_try") 2>&5
11456   ac_status=$?
11457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458   (exit $ac_status); }; }; then
11459   ac_header_compiler=yes
11460 else
11461   echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11463
11464         ac_header_compiler=no
11465 fi
11466
11467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11469 echo "${ECHO_T}$ac_header_compiler" >&6; }
11470
11471 # Is the header present?
11472 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11474 cat >conftest.$ac_ext <<_ACEOF
11475 /* confdefs.h.  */
11476 _ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h.  */
11480 #include <$ac_header>
11481 _ACEOF
11482 if { (ac_try="$ac_cpp conftest.$ac_ext"
11483 case "(($ac_try" in
11484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485   *) ac_try_echo=$ac_try;;
11486 esac
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11489   ac_status=$?
11490   grep -v '^ *+' conftest.er1 >conftest.err
11491   rm -f conftest.er1
11492   cat conftest.err >&5
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); } >/dev/null; then
11495   if test -s conftest.err; then
11496     ac_cpp_err=$ac_c_preproc_warn_flag
11497     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11498   else
11499     ac_cpp_err=
11500   fi
11501 else
11502   ac_cpp_err=yes
11503 fi
11504 if test -z "$ac_cpp_err"; then
11505   ac_header_preproc=yes
11506 else
11507   echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11509
11510   ac_header_preproc=no
11511 fi
11512
11513 rm -f conftest.err conftest.$ac_ext
11514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11515 echo "${ECHO_T}$ac_header_preproc" >&6; }
11516
11517 # So?  What about this header?
11518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11519   yes:no: )
11520     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11524     ac_header_preproc=yes
11525     ;;
11526   no:yes:* )
11527     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11529     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11530 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11531     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11533     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11534 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11535     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11537     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11539     ( cat <<\_ASBOX
11540 ## ----------------------------------- ##
11541 ## Report this to llvmbugs@cs.uiuc.edu ##
11542 ## ----------------------------------- ##
11543 _ASBOX
11544      ) | sed "s/^/$as_me: WARNING:     /" >&2
11545     ;;
11546 esac
11547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11550   echo $ECHO_N "(cached) $ECHO_C" >&6
11551 else
11552   eval "$as_ac_Header=\$ac_header_preproc"
11553 fi
11554 ac_res=`eval echo '${'$as_ac_Header'}'`
11555                { echo "$as_me:$LINENO: result: $ac_res" >&5
11556 echo "${ECHO_T}$ac_res" >&6; }
11557
11558 fi
11559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11560   cat >>confdefs.h <<_ACEOF
11561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11562 _ACEOF
11563  break
11564 fi
11565
11566 done
11567
11568
11569
11570
11571 for ac_func in strchr index
11572 do
11573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11577   echo $ECHO_N "(cached) $ECHO_C" >&6
11578 else
11579   cat >conftest.$ac_ext <<_ACEOF
11580 /* confdefs.h.  */
11581 _ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h.  */
11585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11587 #define $ac_func innocuous_$ac_func
11588
11589 /* System header to define __stub macros and hopefully few prototypes,
11590     which can conflict with char $ac_func (); below.
11591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11592     <limits.h> exists even on freestanding compilers.  */
11593
11594 #ifdef __STDC__
11595 # include <limits.h>
11596 #else
11597 # include <assert.h>
11598 #endif
11599
11600 #undef $ac_func
11601
11602 /* Override any GCC internal prototype to avoid an error.
11603    Use char because int might match the return type of a GCC
11604    builtin and then its argument prototype would still apply.  */
11605 #ifdef __cplusplus
11606 extern "C"
11607 #endif
11608 char $ac_func ();
11609 /* The GNU C library defines this for functions which it implements
11610     to always fail with ENOSYS.  Some functions are actually named
11611     something starting with __ and the normal name is an alias.  */
11612 #if defined __stub_$ac_func || defined __stub___$ac_func
11613 choke me
11614 #endif
11615
11616 int
11617 main ()
11618 {
11619 return $ac_func ();
11620   ;
11621   return 0;
11622 }
11623 _ACEOF
11624 rm -f conftest.$ac_objext conftest$ac_exeext
11625 if { (ac_try="$ac_link"
11626 case "(($ac_try" in
11627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628   *) ac_try_echo=$ac_try;;
11629 esac
11630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631   (eval "$ac_link") 2>conftest.er1
11632   ac_status=$?
11633   grep -v '^ *+' conftest.er1 >conftest.err
11634   rm -f conftest.er1
11635   cat conftest.err >&5
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); } &&
11638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11639   { (case "(($ac_try" in
11640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641   *) ac_try_echo=$ac_try;;
11642 esac
11643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644   (eval "$ac_try") 2>&5
11645   ac_status=$?
11646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647   (exit $ac_status); }; } &&
11648          { ac_try='test -s conftest$ac_exeext'
11649   { (case "(($ac_try" in
11650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651   *) ac_try_echo=$ac_try;;
11652 esac
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654   (eval "$ac_try") 2>&5
11655   ac_status=$?
11656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657   (exit $ac_status); }; }; then
11658   eval "$as_ac_var=yes"
11659 else
11660   echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11662
11663         eval "$as_ac_var=no"
11664 fi
11665
11666 rm -f core conftest.err conftest.$ac_objext \
11667       conftest$ac_exeext conftest.$ac_ext
11668 fi
11669 ac_res=`eval echo '${'$as_ac_var'}'`
11670                { echo "$as_me:$LINENO: result: $ac_res" >&5
11671 echo "${ECHO_T}$ac_res" >&6; }
11672 if test `eval echo '${'$as_ac_var'}'` = yes; then
11673   cat >>confdefs.h <<_ACEOF
11674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11675 _ACEOF
11676  break
11677 fi
11678 done
11679
11680
11681
11682 for ac_func in strrchr rindex
11683 do
11684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11688   echo $ECHO_N "(cached) $ECHO_C" >&6
11689 else
11690   cat >conftest.$ac_ext <<_ACEOF
11691 /* confdefs.h.  */
11692 _ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h.  */
11696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11698 #define $ac_func innocuous_$ac_func
11699
11700 /* System header to define __stub macros and hopefully few prototypes,
11701     which can conflict with char $ac_func (); below.
11702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11703     <limits.h> exists even on freestanding compilers.  */
11704
11705 #ifdef __STDC__
11706 # include <limits.h>
11707 #else
11708 # include <assert.h>
11709 #endif
11710
11711 #undef $ac_func
11712
11713 /* Override any GCC internal prototype to avoid an error.
11714    Use char because int might match the return type of a GCC
11715    builtin and then its argument prototype would still apply.  */
11716 #ifdef __cplusplus
11717 extern "C"
11718 #endif
11719 char $ac_func ();
11720 /* The GNU C library defines this for functions which it implements
11721     to always fail with ENOSYS.  Some functions are actually named
11722     something starting with __ and the normal name is an alias.  */
11723 #if defined __stub_$ac_func || defined __stub___$ac_func
11724 choke me
11725 #endif
11726
11727 int
11728 main ()
11729 {
11730 return $ac_func ();
11731   ;
11732   return 0;
11733 }
11734 _ACEOF
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (ac_try="$ac_link"
11737 case "(($ac_try" in
11738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739   *) ac_try_echo=$ac_try;;
11740 esac
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742   (eval "$ac_link") 2>conftest.er1
11743   ac_status=$?
11744   grep -v '^ *+' conftest.er1 >conftest.err
11745   rm -f conftest.er1
11746   cat conftest.err >&5
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); } &&
11749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11750   { (case "(($ac_try" in
11751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752   *) ac_try_echo=$ac_try;;
11753 esac
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755   (eval "$ac_try") 2>&5
11756   ac_status=$?
11757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758   (exit $ac_status); }; } &&
11759          { ac_try='test -s conftest$ac_exeext'
11760   { (case "(($ac_try" in
11761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762   *) ac_try_echo=$ac_try;;
11763 esac
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765   (eval "$ac_try") 2>&5
11766   ac_status=$?
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); }; }; then
11769   eval "$as_ac_var=yes"
11770 else
11771   echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11773
11774         eval "$as_ac_var=no"
11775 fi
11776
11777 rm -f core conftest.err conftest.$ac_objext \
11778       conftest$ac_exeext conftest.$ac_ext
11779 fi
11780 ac_res=`eval echo '${'$as_ac_var'}'`
11781                { echo "$as_me:$LINENO: result: $ac_res" >&5
11782 echo "${ECHO_T}$ac_res" >&6; }
11783 if test `eval echo '${'$as_ac_var'}'` = yes; then
11784   cat >>confdefs.h <<_ACEOF
11785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11786 _ACEOF
11787  break
11788 fi
11789 done
11790
11791
11792
11793 for ac_func in memcpy bcopy
11794 do
11795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11799   echo $ECHO_N "(cached) $ECHO_C" >&6
11800 else
11801   cat >conftest.$ac_ext <<_ACEOF
11802 /* confdefs.h.  */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h.  */
11807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11809 #define $ac_func innocuous_$ac_func
11810
11811 /* System header to define __stub macros and hopefully few prototypes,
11812     which can conflict with char $ac_func (); below.
11813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11814     <limits.h> exists even on freestanding compilers.  */
11815
11816 #ifdef __STDC__
11817 # include <limits.h>
11818 #else
11819 # include <assert.h>
11820 #endif
11821
11822 #undef $ac_func
11823
11824 /* Override any GCC internal prototype to avoid an error.
11825    Use char because int might match the return type of a GCC
11826    builtin and then its argument prototype would still apply.  */
11827 #ifdef __cplusplus
11828 extern "C"
11829 #endif
11830 char $ac_func ();
11831 /* The GNU C library defines this for functions which it implements
11832     to always fail with ENOSYS.  Some functions are actually named
11833     something starting with __ and the normal name is an alias.  */
11834 #if defined __stub_$ac_func || defined __stub___$ac_func
11835 choke me
11836 #endif
11837
11838 int
11839 main ()
11840 {
11841 return $ac_func ();
11842   ;
11843   return 0;
11844 }
11845 _ACEOF
11846 rm -f conftest.$ac_objext conftest$ac_exeext
11847 if { (ac_try="$ac_link"
11848 case "(($ac_try" in
11849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850   *) ac_try_echo=$ac_try;;
11851 esac
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853   (eval "$ac_link") 2>conftest.er1
11854   ac_status=$?
11855   grep -v '^ *+' conftest.er1 >conftest.err
11856   rm -f conftest.er1
11857   cat conftest.err >&5
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); } &&
11860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11861   { (case "(($ac_try" in
11862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863   *) ac_try_echo=$ac_try;;
11864 esac
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866   (eval "$ac_try") 2>&5
11867   ac_status=$?
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); }; } &&
11870          { ac_try='test -s conftest$ac_exeext'
11871   { (case "(($ac_try" in
11872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873   *) ac_try_echo=$ac_try;;
11874 esac
11875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876   (eval "$ac_try") 2>&5
11877   ac_status=$?
11878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879   (exit $ac_status); }; }; then
11880   eval "$as_ac_var=yes"
11881 else
11882   echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11884
11885         eval "$as_ac_var=no"
11886 fi
11887
11888 rm -f core conftest.err conftest.$ac_objext \
11889       conftest$ac_exeext conftest.$ac_ext
11890 fi
11891 ac_res=`eval echo '${'$as_ac_var'}'`
11892                { echo "$as_me:$LINENO: result: $ac_res" >&5
11893 echo "${ECHO_T}$ac_res" >&6; }
11894 if test `eval echo '${'$as_ac_var'}'` = yes; then
11895   cat >>confdefs.h <<_ACEOF
11896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11897 _ACEOF
11898  break
11899 fi
11900 done
11901
11902
11903
11904 for ac_func in memmove strcmp
11905 do
11906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11907 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11910   echo $ECHO_N "(cached) $ECHO_C" >&6
11911 else
11912   cat >conftest.$ac_ext <<_ACEOF
11913 /* confdefs.h.  */
11914 _ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h.  */
11918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11920 #define $ac_func innocuous_$ac_func
11921
11922 /* System header to define __stub macros and hopefully few prototypes,
11923     which can conflict with char $ac_func (); below.
11924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11925     <limits.h> exists even on freestanding compilers.  */
11926
11927 #ifdef __STDC__
11928 # include <limits.h>
11929 #else
11930 # include <assert.h>
11931 #endif
11932
11933 #undef $ac_func
11934
11935 /* Override any GCC internal prototype to avoid an error.
11936    Use char because int might match the return type of a GCC
11937    builtin and then its argument prototype would still apply.  */
11938 #ifdef __cplusplus
11939 extern "C"
11940 #endif
11941 char $ac_func ();
11942 /* The GNU C library defines this for functions which it implements
11943     to always fail with ENOSYS.  Some functions are actually named
11944     something starting with __ and the normal name is an alias.  */
11945 #if defined __stub_$ac_func || defined __stub___$ac_func
11946 choke me
11947 #endif
11948
11949 int
11950 main ()
11951 {
11952 return $ac_func ();
11953   ;
11954   return 0;
11955 }
11956 _ACEOF
11957 rm -f conftest.$ac_objext conftest$ac_exeext
11958 if { (ac_try="$ac_link"
11959 case "(($ac_try" in
11960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961   *) ac_try_echo=$ac_try;;
11962 esac
11963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964   (eval "$ac_link") 2>conftest.er1
11965   ac_status=$?
11966   grep -v '^ *+' conftest.er1 >conftest.err
11967   rm -f conftest.er1
11968   cat conftest.err >&5
11969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970   (exit $ac_status); } &&
11971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11972   { (case "(($ac_try" in
11973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974   *) ac_try_echo=$ac_try;;
11975 esac
11976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977   (eval "$ac_try") 2>&5
11978   ac_status=$?
11979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); }; } &&
11981          { ac_try='test -s conftest$ac_exeext'
11982   { (case "(($ac_try" in
11983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984   *) ac_try_echo=$ac_try;;
11985 esac
11986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987   (eval "$ac_try") 2>&5
11988   ac_status=$?
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); }; }; then
11991   eval "$as_ac_var=yes"
11992 else
11993   echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11995
11996         eval "$as_ac_var=no"
11997 fi
11998
11999 rm -f core conftest.err conftest.$ac_objext \
12000       conftest$ac_exeext conftest.$ac_ext
12001 fi
12002 ac_res=`eval echo '${'$as_ac_var'}'`
12003                { echo "$as_me:$LINENO: result: $ac_res" >&5
12004 echo "${ECHO_T}$ac_res" >&6; }
12005 if test `eval echo '${'$as_ac_var'}'` = yes; then
12006   cat >>confdefs.h <<_ACEOF
12007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12008 _ACEOF
12009
12010 fi
12011 done
12012
12013
12014
12015
12016 for ac_func in closedir opendir readdir
12017 do
12018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12022   echo $ECHO_N "(cached) $ECHO_C" >&6
12023 else
12024   cat >conftest.$ac_ext <<_ACEOF
12025 /* confdefs.h.  */
12026 _ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h.  */
12030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12032 #define $ac_func innocuous_$ac_func
12033
12034 /* System header to define __stub macros and hopefully few prototypes,
12035     which can conflict with char $ac_func (); below.
12036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12037     <limits.h> exists even on freestanding compilers.  */
12038
12039 #ifdef __STDC__
12040 # include <limits.h>
12041 #else
12042 # include <assert.h>
12043 #endif
12044
12045 #undef $ac_func
12046
12047 /* Override any GCC internal prototype to avoid an error.
12048    Use char because int might match the return type of a GCC
12049    builtin and then its argument prototype would still apply.  */
12050 #ifdef __cplusplus
12051 extern "C"
12052 #endif
12053 char $ac_func ();
12054 /* The GNU C library defines this for functions which it implements
12055     to always fail with ENOSYS.  Some functions are actually named
12056     something starting with __ and the normal name is an alias.  */
12057 #if defined __stub_$ac_func || defined __stub___$ac_func
12058 choke me
12059 #endif
12060
12061 int
12062 main ()
12063 {
12064 return $ac_func ();
12065   ;
12066   return 0;
12067 }
12068 _ACEOF
12069 rm -f conftest.$ac_objext conftest$ac_exeext
12070 if { (ac_try="$ac_link"
12071 case "(($ac_try" in
12072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073   *) ac_try_echo=$ac_try;;
12074 esac
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076   (eval "$ac_link") 2>conftest.er1
12077   ac_status=$?
12078   grep -v '^ *+' conftest.er1 >conftest.err
12079   rm -f conftest.er1
12080   cat conftest.err >&5
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); } &&
12083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12084   { (case "(($ac_try" in
12085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086   *) ac_try_echo=$ac_try;;
12087 esac
12088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12089   (eval "$ac_try") 2>&5
12090   ac_status=$?
12091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092   (exit $ac_status); }; } &&
12093          { ac_try='test -s conftest$ac_exeext'
12094   { (case "(($ac_try" in
12095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096   *) ac_try_echo=$ac_try;;
12097 esac
12098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099   (eval "$ac_try") 2>&5
12100   ac_status=$?
12101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102   (exit $ac_status); }; }; then
12103   eval "$as_ac_var=yes"
12104 else
12105   echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12107
12108         eval "$as_ac_var=no"
12109 fi
12110
12111 rm -f core conftest.err conftest.$ac_objext \
12112       conftest$ac_exeext conftest.$ac_ext
12113 fi
12114 ac_res=`eval echo '${'$as_ac_var'}'`
12115                { echo "$as_me:$LINENO: result: $ac_res" >&5
12116 echo "${ECHO_T}$ac_res" >&6; }
12117 if test `eval echo '${'$as_ac_var'}'` = yes; then
12118   cat >>confdefs.h <<_ACEOF
12119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12120 _ACEOF
12121
12122 fi
12123 done
12124
12125
12126
12127 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12128 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12129
12130 ICC=no
12131 IXX=no
12132 case $CC in
12133   icc*|icpc*)
12134     ICC=yes
12135     IXX=yes
12136     ;;
12137    *)
12138     ;;
12139 esac
12140
12141 if test "$GCC" != "yes" && test "$ICC" != "yes"
12142 then
12143   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12144 echo "$as_me: error: gcc|icc required but not found" >&2;}
12145    { (exit 1); exit 1; }; }
12146 fi
12147
12148 if test "$GXX" != "yes" && test "$IXX" != "yes"
12149 then
12150   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12151 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12152    { (exit 1); exit 1; }; }
12153 fi
12154
12155 if test "$GCC" = "yes"
12156 then
12157   cat >conftest.$ac_ext <<_ACEOF
12158 #if !defined(__GNUC__) || __GNUC__ < 3
12159 #error Unsupported GCC version
12160 #endif
12161
12162 _ACEOF
12163 rm -f conftest.$ac_objext
12164 if { (ac_try="$ac_compile"
12165 case "(($ac_try" in
12166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167   *) ac_try_echo=$ac_try;;
12168 esac
12169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170   (eval "$ac_compile") 2>conftest.er1
12171   ac_status=$?
12172   grep -v '^ *+' conftest.er1 >conftest.err
12173   rm -f conftest.er1
12174   cat conftest.err >&5
12175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); } &&
12177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12178   { (case "(($ac_try" in
12179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180   *) ac_try_echo=$ac_try;;
12181 esac
12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183   (eval "$ac_try") 2>&5
12184   ac_status=$?
12185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186   (exit $ac_status); }; } &&
12187          { ac_try='test -s conftest.$ac_objext'
12188   { (case "(($ac_try" in
12189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190   *) ac_try_echo=$ac_try;;
12191 esac
12192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193   (eval "$ac_try") 2>&5
12194   ac_status=$?
12195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196   (exit $ac_status); }; }; then
12197   :
12198 else
12199   echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12201
12202         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12203 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12204    { (exit 1); exit 1; }; }
12205 fi
12206
12207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12208 fi
12209
12210 if test -z "$llvm_cv_gnu_make_command"
12211 then
12212   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12213 echo "$as_me: error: GNU Make required but not found" >&2;}
12214    { (exit 1); exit 1; }; }
12215 fi
12216
12217 { echo "$as_me:$LINENO: result: ok" >&5
12218 echo "${ECHO_T}ok" >&6; }
12219
12220 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12221 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12222 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12223
12224 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12225
12226 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12227 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12228
12229
12230
12231 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12232 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12233 if test "${ac_cv_lib_m_sin+set}" = set; then
12234   echo $ECHO_N "(cached) $ECHO_C" >&6
12235 else
12236   ac_check_lib_save_LIBS=$LIBS
12237 LIBS="-lm  $LIBS"
12238 cat >conftest.$ac_ext <<_ACEOF
12239 /* confdefs.h.  */
12240 _ACEOF
12241 cat confdefs.h >>conftest.$ac_ext
12242 cat >>conftest.$ac_ext <<_ACEOF
12243 /* end confdefs.h.  */
12244
12245 /* Override any GCC internal prototype to avoid an error.
12246    Use char because int might match the return type of a GCC
12247    builtin and then its argument prototype would still apply.  */
12248 #ifdef __cplusplus
12249 extern "C"
12250 #endif
12251 char sin ();
12252 int
12253 main ()
12254 {
12255 return sin ();
12256   ;
12257   return 0;
12258 }
12259 _ACEOF
12260 rm -f conftest.$ac_objext conftest$ac_exeext
12261 if { (ac_try="$ac_link"
12262 case "(($ac_try" in
12263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264   *) ac_try_echo=$ac_try;;
12265 esac
12266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267   (eval "$ac_link") 2>conftest.er1
12268   ac_status=$?
12269   grep -v '^ *+' conftest.er1 >conftest.err
12270   rm -f conftest.er1
12271   cat conftest.err >&5
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); } &&
12274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12275   { (case "(($ac_try" in
12276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277   *) ac_try_echo=$ac_try;;
12278 esac
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280   (eval "$ac_try") 2>&5
12281   ac_status=$?
12282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283   (exit $ac_status); }; } &&
12284          { ac_try='test -s conftest$ac_exeext'
12285   { (case "(($ac_try" in
12286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287   *) ac_try_echo=$ac_try;;
12288 esac
12289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12290   (eval "$ac_try") 2>&5
12291   ac_status=$?
12292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293   (exit $ac_status); }; }; then
12294   ac_cv_lib_m_sin=yes
12295 else
12296   echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12298
12299         ac_cv_lib_m_sin=no
12300 fi
12301
12302 rm -f core conftest.err conftest.$ac_objext \
12303       conftest$ac_exeext conftest.$ac_ext
12304 LIBS=$ac_check_lib_save_LIBS
12305 fi
12306 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12307 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12308 if test $ac_cv_lib_m_sin = yes; then
12309   cat >>confdefs.h <<_ACEOF
12310 #define HAVE_LIBM 1
12311 _ACEOF
12312
12313   LIBS="-lm $LIBS"
12314
12315 fi
12316
12317 if test "$llvm_cv_os_type" = "MingW" ; then
12318
12319 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12320 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12321 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12322   echo $ECHO_N "(cached) $ECHO_C" >&6
12323 else
12324   ac_check_lib_save_LIBS=$LIBS
12325 LIBS="-limagehlp  $LIBS"
12326 cat >conftest.$ac_ext <<_ACEOF
12327 /* confdefs.h.  */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h.  */
12332
12333
12334 int
12335 main ()
12336 {
12337 return main ();
12338   ;
12339   return 0;
12340 }
12341 _ACEOF
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (ac_try="$ac_link"
12344 case "(($ac_try" in
12345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346   *) ac_try_echo=$ac_try;;
12347 esac
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349   (eval "$ac_link") 2>conftest.er1
12350   ac_status=$?
12351   grep -v '^ *+' conftest.er1 >conftest.err
12352   rm -f conftest.er1
12353   cat conftest.err >&5
12354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355   (exit $ac_status); } &&
12356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12357   { (case "(($ac_try" in
12358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359   *) ac_try_echo=$ac_try;;
12360 esac
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362   (eval "$ac_try") 2>&5
12363   ac_status=$?
12364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365   (exit $ac_status); }; } &&
12366          { ac_try='test -s conftest$ac_exeext'
12367   { (case "(($ac_try" in
12368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369   *) ac_try_echo=$ac_try;;
12370 esac
12371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372   (eval "$ac_try") 2>&5
12373   ac_status=$?
12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375   (exit $ac_status); }; }; then
12376   ac_cv_lib_imagehlp_main=yes
12377 else
12378   echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12380
12381         ac_cv_lib_imagehlp_main=no
12382 fi
12383
12384 rm -f core conftest.err conftest.$ac_objext \
12385       conftest$ac_exeext conftest.$ac_ext
12386 LIBS=$ac_check_lib_save_LIBS
12387 fi
12388 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12389 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12390 if test $ac_cv_lib_imagehlp_main = yes; then
12391   cat >>confdefs.h <<_ACEOF
12392 #define HAVE_LIBIMAGEHLP 1
12393 _ACEOF
12394
12395   LIBS="-limagehlp $LIBS"
12396
12397 fi
12398
12399
12400 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12401 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12402 if test "${ac_cv_lib_psapi_main+set}" = set; then
12403   echo $ECHO_N "(cached) $ECHO_C" >&6
12404 else
12405   ac_check_lib_save_LIBS=$LIBS
12406 LIBS="-lpsapi  $LIBS"
12407 cat >conftest.$ac_ext <<_ACEOF
12408 /* confdefs.h.  */
12409 _ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h.  */
12413
12414
12415 int
12416 main ()
12417 {
12418 return main ();
12419   ;
12420   return 0;
12421 }
12422 _ACEOF
12423 rm -f conftest.$ac_objext conftest$ac_exeext
12424 if { (ac_try="$ac_link"
12425 case "(($ac_try" in
12426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427   *) ac_try_echo=$ac_try;;
12428 esac
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430   (eval "$ac_link") 2>conftest.er1
12431   ac_status=$?
12432   grep -v '^ *+' conftest.er1 >conftest.err
12433   rm -f conftest.er1
12434   cat conftest.err >&5
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); } &&
12437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12438   { (case "(($ac_try" in
12439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440   *) ac_try_echo=$ac_try;;
12441 esac
12442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443   (eval "$ac_try") 2>&5
12444   ac_status=$?
12445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446   (exit $ac_status); }; } &&
12447          { ac_try='test -s conftest$ac_exeext'
12448   { (case "(($ac_try" in
12449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450   *) ac_try_echo=$ac_try;;
12451 esac
12452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12453   (eval "$ac_try") 2>&5
12454   ac_status=$?
12455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); }; }; then
12457   ac_cv_lib_psapi_main=yes
12458 else
12459   echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12461
12462         ac_cv_lib_psapi_main=no
12463 fi
12464
12465 rm -f core conftest.err conftest.$ac_objext \
12466       conftest$ac_exeext conftest.$ac_ext
12467 LIBS=$ac_check_lib_save_LIBS
12468 fi
12469 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12470 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12471 if test $ac_cv_lib_psapi_main = yes; then
12472   cat >>confdefs.h <<_ACEOF
12473 #define HAVE_LIBPSAPI 1
12474 _ACEOF
12475
12476   LIBS="-lpsapi $LIBS"
12477
12478 fi
12479
12480 fi
12481
12482 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12483 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12484 if test "${ac_cv_search_dlopen+set}" = set; then
12485   echo $ECHO_N "(cached) $ECHO_C" >&6
12486 else
12487   ac_func_search_save_LIBS=$LIBS
12488 cat >conftest.$ac_ext <<_ACEOF
12489 /* confdefs.h.  */
12490 _ACEOF
12491 cat confdefs.h >>conftest.$ac_ext
12492 cat >>conftest.$ac_ext <<_ACEOF
12493 /* end confdefs.h.  */
12494
12495 /* Override any GCC internal prototype to avoid an error.
12496    Use char because int might match the return type of a GCC
12497    builtin and then its argument prototype would still apply.  */
12498 #ifdef __cplusplus
12499 extern "C"
12500 #endif
12501 char dlopen ();
12502 int
12503 main ()
12504 {
12505 return dlopen ();
12506   ;
12507   return 0;
12508 }
12509 _ACEOF
12510 for ac_lib in '' dl; do
12511   if test -z "$ac_lib"; then
12512     ac_res="none required"
12513   else
12514     ac_res=-l$ac_lib
12515     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12516   fi
12517   rm -f conftest.$ac_objext conftest$ac_exeext
12518 if { (ac_try="$ac_link"
12519 case "(($ac_try" in
12520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521   *) ac_try_echo=$ac_try;;
12522 esac
12523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524   (eval "$ac_link") 2>conftest.er1
12525   ac_status=$?
12526   grep -v '^ *+' conftest.er1 >conftest.err
12527   rm -f conftest.er1
12528   cat conftest.err >&5
12529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530   (exit $ac_status); } &&
12531          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12532   { (case "(($ac_try" in
12533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534   *) ac_try_echo=$ac_try;;
12535 esac
12536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537   (eval "$ac_try") 2>&5
12538   ac_status=$?
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); }; } &&
12541          { ac_try='test -s conftest$ac_exeext'
12542   { (case "(($ac_try" in
12543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544   *) ac_try_echo=$ac_try;;
12545 esac
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547   (eval "$ac_try") 2>&5
12548   ac_status=$?
12549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550   (exit $ac_status); }; }; then
12551   ac_cv_search_dlopen=$ac_res
12552 else
12553   echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12555
12556
12557 fi
12558
12559 rm -f core conftest.err conftest.$ac_objext \
12560       conftest$ac_exeext
12561   if test "${ac_cv_search_dlopen+set}" = set; then
12562   break
12563 fi
12564 done
12565 if test "${ac_cv_search_dlopen+set}" = set; then
12566   :
12567 else
12568   ac_cv_search_dlopen=no
12569 fi
12570 rm conftest.$ac_ext
12571 LIBS=$ac_func_search_save_LIBS
12572 fi
12573 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12574 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12575 ac_res=$ac_cv_search_dlopen
12576 if test "$ac_res" != no; then
12577   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12578
12579 cat >>confdefs.h <<\_ACEOF
12580 #define HAVE_DLOPEN 1
12581 _ACEOF
12582
12583 else
12584   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12585 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12586 fi
12587
12588
12589 if test "$llvm_cv_enable_libffi" = "yes" ; then
12590   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12591 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12592 if test "${ac_cv_search_ffi_call+set}" = set; then
12593   echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595   ac_func_search_save_LIBS=$LIBS
12596 cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h.  */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h.  */
12602
12603 /* Override any GCC internal prototype to avoid an error.
12604    Use char because int might match the return type of a GCC
12605    builtin and then its argument prototype would still apply.  */
12606 #ifdef __cplusplus
12607 extern "C"
12608 #endif
12609 char ffi_call ();
12610 int
12611 main ()
12612 {
12613 return ffi_call ();
12614   ;
12615   return 0;
12616 }
12617 _ACEOF
12618 for ac_lib in '' ffi; do
12619   if test -z "$ac_lib"; then
12620     ac_res="none required"
12621   else
12622     ac_res=-l$ac_lib
12623     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12624   fi
12625   rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (ac_try="$ac_link"
12627 case "(($ac_try" in
12628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629   *) ac_try_echo=$ac_try;;
12630 esac
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632   (eval "$ac_link") 2>conftest.er1
12633   ac_status=$?
12634   grep -v '^ *+' conftest.er1 >conftest.err
12635   rm -f conftest.er1
12636   cat conftest.err >&5
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); } &&
12639          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12640   { (case "(($ac_try" in
12641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642   *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645   (eval "$ac_try") 2>&5
12646   ac_status=$?
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); }; } &&
12649          { ac_try='test -s conftest$ac_exeext'
12650   { (case "(($ac_try" in
12651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652   *) ac_try_echo=$ac_try;;
12653 esac
12654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655   (eval "$ac_try") 2>&5
12656   ac_status=$?
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); }; }; then
12659   ac_cv_search_ffi_call=$ac_res
12660 else
12661   echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12663
12664
12665 fi
12666
12667 rm -f core conftest.err conftest.$ac_objext \
12668       conftest$ac_exeext
12669   if test "${ac_cv_search_ffi_call+set}" = set; then
12670   break
12671 fi
12672 done
12673 if test "${ac_cv_search_ffi_call+set}" = set; then
12674   :
12675 else
12676   ac_cv_search_ffi_call=no
12677 fi
12678 rm conftest.$ac_ext
12679 LIBS=$ac_func_search_save_LIBS
12680 fi
12681 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12682 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12683 ac_res=$ac_cv_search_ffi_call
12684 if test "$ac_res" != no; then
12685   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12686
12687 cat >>confdefs.h <<\_ACEOF
12688 #define HAVE_FFI_CALL 1
12689 _ACEOF
12690
12691 else
12692   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12693 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12694    { (exit 1); exit 1; }; }
12695 fi
12696
12697 fi
12698
12699 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12700 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12701 if test "${ac_cv_search_mallinfo+set}" = set; then
12702   echo $ECHO_N "(cached) $ECHO_C" >&6
12703 else
12704   ac_func_search_save_LIBS=$LIBS
12705 cat >conftest.$ac_ext <<_ACEOF
12706 /* confdefs.h.  */
12707 _ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h.  */
12711
12712 /* Override any GCC internal prototype to avoid an error.
12713    Use char because int might match the return type of a GCC
12714    builtin and then its argument prototype would still apply.  */
12715 #ifdef __cplusplus
12716 extern "C"
12717 #endif
12718 char mallinfo ();
12719 int
12720 main ()
12721 {
12722 return mallinfo ();
12723   ;
12724   return 0;
12725 }
12726 _ACEOF
12727 for ac_lib in '' malloc; do
12728   if test -z "$ac_lib"; then
12729     ac_res="none required"
12730   else
12731     ac_res=-l$ac_lib
12732     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12733   fi
12734   rm -f conftest.$ac_objext conftest$ac_exeext
12735 if { (ac_try="$ac_link"
12736 case "(($ac_try" in
12737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738   *) ac_try_echo=$ac_try;;
12739 esac
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741   (eval "$ac_link") 2>conftest.er1
12742   ac_status=$?
12743   grep -v '^ *+' conftest.er1 >conftest.err
12744   rm -f conftest.er1
12745   cat conftest.err >&5
12746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747   (exit $ac_status); } &&
12748          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12749   { (case "(($ac_try" in
12750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12751   *) ac_try_echo=$ac_try;;
12752 esac
12753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12754   (eval "$ac_try") 2>&5
12755   ac_status=$?
12756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757   (exit $ac_status); }; } &&
12758          { ac_try='test -s conftest$ac_exeext'
12759   { (case "(($ac_try" in
12760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12761   *) ac_try_echo=$ac_try;;
12762 esac
12763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12764   (eval "$ac_try") 2>&5
12765   ac_status=$?
12766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767   (exit $ac_status); }; }; then
12768   ac_cv_search_mallinfo=$ac_res
12769 else
12770   echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12772
12773
12774 fi
12775
12776 rm -f core conftest.err conftest.$ac_objext \
12777       conftest$ac_exeext
12778   if test "${ac_cv_search_mallinfo+set}" = set; then
12779   break
12780 fi
12781 done
12782 if test "${ac_cv_search_mallinfo+set}" = set; then
12783   :
12784 else
12785   ac_cv_search_mallinfo=no
12786 fi
12787 rm conftest.$ac_ext
12788 LIBS=$ac_func_search_save_LIBS
12789 fi
12790 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12791 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12792 ac_res=$ac_cv_search_mallinfo
12793 if test "$ac_res" != no; then
12794   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12795
12796 cat >>confdefs.h <<\_ACEOF
12797 #define HAVE_MALLINFO 1
12798 _ACEOF
12799
12800 fi
12801
12802
12803 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12804
12805 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12806 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12807 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12808   echo $ECHO_N "(cached) $ECHO_C" >&6
12809 else
12810   ac_check_lib_save_LIBS=$LIBS
12811 LIBS="-lpthread  $LIBS"
12812 cat >conftest.$ac_ext <<_ACEOF
12813 /* confdefs.h.  */
12814 _ACEOF
12815 cat confdefs.h >>conftest.$ac_ext
12816 cat >>conftest.$ac_ext <<_ACEOF
12817 /* end confdefs.h.  */
12818
12819 /* Override any GCC internal prototype to avoid an error.
12820    Use char because int might match the return type of a GCC
12821    builtin and then its argument prototype would still apply.  */
12822 #ifdef __cplusplus
12823 extern "C"
12824 #endif
12825 char pthread_mutex_init ();
12826 int
12827 main ()
12828 {
12829 return pthread_mutex_init ();
12830   ;
12831   return 0;
12832 }
12833 _ACEOF
12834 rm -f conftest.$ac_objext conftest$ac_exeext
12835 if { (ac_try="$ac_link"
12836 case "(($ac_try" in
12837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12838   *) ac_try_echo=$ac_try;;
12839 esac
12840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12841   (eval "$ac_link") 2>conftest.er1
12842   ac_status=$?
12843   grep -v '^ *+' conftest.er1 >conftest.err
12844   rm -f conftest.er1
12845   cat conftest.err >&5
12846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847   (exit $ac_status); } &&
12848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12849   { (case "(($ac_try" in
12850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851   *) ac_try_echo=$ac_try;;
12852 esac
12853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12854   (eval "$ac_try") 2>&5
12855   ac_status=$?
12856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857   (exit $ac_status); }; } &&
12858          { ac_try='test -s conftest$ac_exeext'
12859   { (case "(($ac_try" in
12860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12861   *) ac_try_echo=$ac_try;;
12862 esac
12863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12864   (eval "$ac_try") 2>&5
12865   ac_status=$?
12866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867   (exit $ac_status); }; }; then
12868   ac_cv_lib_pthread_pthread_mutex_init=yes
12869 else
12870   echo "$as_me: failed program was:" >&5
12871 sed 's/^/| /' conftest.$ac_ext >&5
12872
12873         ac_cv_lib_pthread_pthread_mutex_init=no
12874 fi
12875
12876 rm -f core conftest.err conftest.$ac_objext \
12877       conftest$ac_exeext conftest.$ac_ext
12878 LIBS=$ac_check_lib_save_LIBS
12879 fi
12880 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12881 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12882 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12883   cat >>confdefs.h <<_ACEOF
12884 #define HAVE_LIBPTHREAD 1
12885 _ACEOF
12886
12887   LIBS="-lpthread $LIBS"
12888
12889 fi
12890
12891   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12892 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12893 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12894   echo $ECHO_N "(cached) $ECHO_C" >&6
12895 else
12896   ac_func_search_save_LIBS=$LIBS
12897 cat >conftest.$ac_ext <<_ACEOF
12898 /* confdefs.h.  */
12899 _ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h.  */
12903
12904 /* Override any GCC internal prototype to avoid an error.
12905    Use char because int might match the return type of a GCC
12906    builtin and then its argument prototype would still apply.  */
12907 #ifdef __cplusplus
12908 extern "C"
12909 #endif
12910 char pthread_mutex_lock ();
12911 int
12912 main ()
12913 {
12914 return pthread_mutex_lock ();
12915   ;
12916   return 0;
12917 }
12918 _ACEOF
12919 for ac_lib in '' pthread; do
12920   if test -z "$ac_lib"; then
12921     ac_res="none required"
12922   else
12923     ac_res=-l$ac_lib
12924     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12925   fi
12926   rm -f conftest.$ac_objext conftest$ac_exeext
12927 if { (ac_try="$ac_link"
12928 case "(($ac_try" in
12929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930   *) ac_try_echo=$ac_try;;
12931 esac
12932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933   (eval "$ac_link") 2>conftest.er1
12934   ac_status=$?
12935   grep -v '^ *+' conftest.er1 >conftest.err
12936   rm -f conftest.er1
12937   cat conftest.err >&5
12938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939   (exit $ac_status); } &&
12940          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12941   { (case "(($ac_try" in
12942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943   *) ac_try_echo=$ac_try;;
12944 esac
12945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946   (eval "$ac_try") 2>&5
12947   ac_status=$?
12948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949   (exit $ac_status); }; } &&
12950          { ac_try='test -s conftest$ac_exeext'
12951   { (case "(($ac_try" in
12952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953   *) ac_try_echo=$ac_try;;
12954 esac
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956   (eval "$ac_try") 2>&5
12957   ac_status=$?
12958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959   (exit $ac_status); }; }; then
12960   ac_cv_search_pthread_mutex_lock=$ac_res
12961 else
12962   echo "$as_me: failed program was:" >&5
12963 sed 's/^/| /' conftest.$ac_ext >&5
12964
12965
12966 fi
12967
12968 rm -f core conftest.err conftest.$ac_objext \
12969       conftest$ac_exeext
12970   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12971   break
12972 fi
12973 done
12974 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12975   :
12976 else
12977   ac_cv_search_pthread_mutex_lock=no
12978 fi
12979 rm conftest.$ac_ext
12980 LIBS=$ac_func_search_save_LIBS
12981 fi
12982 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12983 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12984 ac_res=$ac_cv_search_pthread_mutex_lock
12985 if test "$ac_res" != no; then
12986   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12987
12988 cat >>confdefs.h <<\_ACEOF
12989 #define HAVE_PTHREAD_MUTEX_LOCK 1
12990 _ACEOF
12991
12992 fi
12993
12994   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12995 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12996 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12997   echo $ECHO_N "(cached) $ECHO_C" >&6
12998 else
12999   ac_func_search_save_LIBS=$LIBS
13000 cat >conftest.$ac_ext <<_ACEOF
13001 /* confdefs.h.  */
13002 _ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h.  */
13006
13007 /* Override any GCC internal prototype to avoid an error.
13008    Use char because int might match the return type of a GCC
13009    builtin and then its argument prototype would still apply.  */
13010 #ifdef __cplusplus
13011 extern "C"
13012 #endif
13013 char pthread_rwlock_init ();
13014 int
13015 main ()
13016 {
13017 return pthread_rwlock_init ();
13018   ;
13019   return 0;
13020 }
13021 _ACEOF
13022 for ac_lib in '' pthread; do
13023   if test -z "$ac_lib"; then
13024     ac_res="none required"
13025   else
13026     ac_res=-l$ac_lib
13027     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13028   fi
13029   rm -f conftest.$ac_objext conftest$ac_exeext
13030 if { (ac_try="$ac_link"
13031 case "(($ac_try" in
13032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033   *) ac_try_echo=$ac_try;;
13034 esac
13035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13036   (eval "$ac_link") 2>conftest.er1
13037   ac_status=$?
13038   grep -v '^ *+' conftest.er1 >conftest.err
13039   rm -f conftest.er1
13040   cat conftest.err >&5
13041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042   (exit $ac_status); } &&
13043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13044   { (case "(($ac_try" in
13045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046   *) ac_try_echo=$ac_try;;
13047 esac
13048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049   (eval "$ac_try") 2>&5
13050   ac_status=$?
13051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   (exit $ac_status); }; } &&
13053          { ac_try='test -s conftest$ac_exeext'
13054   { (case "(($ac_try" in
13055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056   *) ac_try_echo=$ac_try;;
13057 esac
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059   (eval "$ac_try") 2>&5
13060   ac_status=$?
13061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062   (exit $ac_status); }; }; then
13063   ac_cv_search_pthread_rwlock_init=$ac_res
13064 else
13065   echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.$ac_ext >&5
13067
13068
13069 fi
13070
13071 rm -f core conftest.err conftest.$ac_objext \
13072       conftest$ac_exeext
13073   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13074   break
13075 fi
13076 done
13077 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13078   :
13079 else
13080   ac_cv_search_pthread_rwlock_init=no
13081 fi
13082 rm conftest.$ac_ext
13083 LIBS=$ac_func_search_save_LIBS
13084 fi
13085 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13086 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13087 ac_res=$ac_cv_search_pthread_rwlock_init
13088 if test "$ac_res" != no; then
13089   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13090
13091 cat >>confdefs.h <<\_ACEOF
13092 #define HAVE_PTHREAD_RWLOCK_INIT 1
13093 _ACEOF
13094
13095 fi
13096
13097   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13098 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13099 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13100   echo $ECHO_N "(cached) $ECHO_C" >&6
13101 else
13102   ac_func_search_save_LIBS=$LIBS
13103 cat >conftest.$ac_ext <<_ACEOF
13104 /* confdefs.h.  */
13105 _ACEOF
13106 cat confdefs.h >>conftest.$ac_ext
13107 cat >>conftest.$ac_ext <<_ACEOF
13108 /* end confdefs.h.  */
13109
13110 /* Override any GCC internal prototype to avoid an error.
13111    Use char because int might match the return type of a GCC
13112    builtin and then its argument prototype would still apply.  */
13113 #ifdef __cplusplus
13114 extern "C"
13115 #endif
13116 char pthread_getspecific ();
13117 int
13118 main ()
13119 {
13120 return pthread_getspecific ();
13121   ;
13122   return 0;
13123 }
13124 _ACEOF
13125 for ac_lib in '' pthread; do
13126   if test -z "$ac_lib"; then
13127     ac_res="none required"
13128   else
13129     ac_res=-l$ac_lib
13130     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13131   fi
13132   rm -f conftest.$ac_objext conftest$ac_exeext
13133 if { (ac_try="$ac_link"
13134 case "(($ac_try" in
13135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136   *) ac_try_echo=$ac_try;;
13137 esac
13138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13139   (eval "$ac_link") 2>conftest.er1
13140   ac_status=$?
13141   grep -v '^ *+' conftest.er1 >conftest.err
13142   rm -f conftest.er1
13143   cat conftest.err >&5
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); } &&
13146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13147   { (case "(($ac_try" in
13148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149   *) ac_try_echo=$ac_try;;
13150 esac
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152   (eval "$ac_try") 2>&5
13153   ac_status=$?
13154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155   (exit $ac_status); }; } &&
13156          { ac_try='test -s conftest$ac_exeext'
13157   { (case "(($ac_try" in
13158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159   *) ac_try_echo=$ac_try;;
13160 esac
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162   (eval "$ac_try") 2>&5
13163   ac_status=$?
13164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165   (exit $ac_status); }; }; then
13166   ac_cv_search_pthread_getspecific=$ac_res
13167 else
13168   echo "$as_me: failed program was:" >&5
13169 sed 's/^/| /' conftest.$ac_ext >&5
13170
13171
13172 fi
13173
13174 rm -f core conftest.err conftest.$ac_objext \
13175       conftest$ac_exeext
13176   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13177   break
13178 fi
13179 done
13180 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13181   :
13182 else
13183   ac_cv_search_pthread_getspecific=no
13184 fi
13185 rm conftest.$ac_ext
13186 LIBS=$ac_func_search_save_LIBS
13187 fi
13188 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13189 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13190 ac_res=$ac_cv_search_pthread_getspecific
13191 if test "$ac_res" != no; then
13192   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13193
13194 cat >>confdefs.h <<\_ACEOF
13195 #define HAVE_PTHREAD_GETSPECIFIC 1
13196 _ACEOF
13197
13198 fi
13199
13200 fi
13201
13202
13203 # Check whether --with-udis86 was given.
13204 if test "${with_udis86+set}" = set; then
13205   withval=$with_udis86;
13206       USE_UDIS86=1
13207
13208       case "$withval" in
13209         /usr/lib|yes) ;;
13210         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13211       esac
13212
13213 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13214 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13215 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13216   echo $ECHO_N "(cached) $ECHO_C" >&6
13217 else
13218   ac_check_lib_save_LIBS=$LIBS
13219 LIBS="-ludis86  $LIBS"
13220 cat >conftest.$ac_ext <<_ACEOF
13221 /* confdefs.h.  */
13222 _ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h.  */
13226
13227 /* Override any GCC internal prototype to avoid an error.
13228    Use char because int might match the return type of a GCC
13229    builtin and then its argument prototype would still apply.  */
13230 #ifdef __cplusplus
13231 extern "C"
13232 #endif
13233 char ud_init ();
13234 int
13235 main ()
13236 {
13237 return ud_init ();
13238   ;
13239   return 0;
13240 }
13241 _ACEOF
13242 rm -f conftest.$ac_objext conftest$ac_exeext
13243 if { (ac_try="$ac_link"
13244 case "(($ac_try" in
13245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246   *) ac_try_echo=$ac_try;;
13247 esac
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249   (eval "$ac_link") 2>conftest.er1
13250   ac_status=$?
13251   grep -v '^ *+' conftest.er1 >conftest.err
13252   rm -f conftest.er1
13253   cat conftest.err >&5
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); } &&
13256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13257   { (case "(($ac_try" in
13258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259   *) ac_try_echo=$ac_try;;
13260 esac
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262   (eval "$ac_try") 2>&5
13263   ac_status=$?
13264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265   (exit $ac_status); }; } &&
13266          { ac_try='test -s conftest$ac_exeext'
13267   { (case "(($ac_try" in
13268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269   *) ac_try_echo=$ac_try;;
13270 esac
13271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272   (eval "$ac_try") 2>&5
13273   ac_status=$?
13274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275   (exit $ac_status); }; }; then
13276   ac_cv_lib_udis86_ud_init=yes
13277 else
13278   echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13280
13281         ac_cv_lib_udis86_ud_init=no
13282 fi
13283
13284 rm -f core conftest.err conftest.$ac_objext \
13285       conftest$ac_exeext conftest.$ac_ext
13286 LIBS=$ac_check_lib_save_LIBS
13287 fi
13288 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13289 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13290 if test $ac_cv_lib_udis86_ud_init = yes; then
13291   cat >>confdefs.h <<_ACEOF
13292 #define HAVE_LIBUDIS86 1
13293 _ACEOF
13294
13295   LIBS="-ludis86 $LIBS"
13296
13297 else
13298
13299         echo "Error! You need to have libudis86 around."
13300         exit -1
13301
13302 fi
13303
13304
13305 else
13306   USE_UDIS86=0
13307
13308 fi
13309
13310
13311 cat >>confdefs.h <<_ACEOF
13312 #define USE_UDIS86 $USE_UDIS86
13313 _ACEOF
13314
13315
13316
13317 # Check whether --with-oprofile was given.
13318 if test "${with_oprofile+set}" = set; then
13319   withval=$with_oprofile;
13320       USE_OPROFILE=1
13321
13322       case "$withval" in
13323         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13324         no) llvm_cv_oppath=
13325             USE_OPROFILE=0
13326  ;;
13327         *) llvm_cv_oppath="${withval}/lib/oprofile"
13328            CPPFLAGS="-I${withval}/include";;
13329       esac
13330       if test -n "$llvm_cv_oppath" ; then
13331         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13332                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13333 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13334 if test "${ac_cv_search_bfd_init+set}" = set; then
13335   echo $ECHO_N "(cached) $ECHO_C" >&6
13336 else
13337   ac_func_search_save_LIBS=$LIBS
13338 cat >conftest.$ac_ext <<_ACEOF
13339 /* confdefs.h.  */
13340 _ACEOF
13341 cat confdefs.h >>conftest.$ac_ext
13342 cat >>conftest.$ac_ext <<_ACEOF
13343 /* end confdefs.h.  */
13344
13345 /* Override any GCC internal prototype to avoid an error.
13346    Use char because int might match the return type of a GCC
13347    builtin and then its argument prototype would still apply.  */
13348 #ifdef __cplusplus
13349 extern "C"
13350 #endif
13351 char bfd_init ();
13352 int
13353 main ()
13354 {
13355 return bfd_init ();
13356   ;
13357   return 0;
13358 }
13359 _ACEOF
13360 for ac_lib in '' bfd; do
13361   if test -z "$ac_lib"; then
13362     ac_res="none required"
13363   else
13364     ac_res=-l$ac_lib
13365     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13366   fi
13367   rm -f conftest.$ac_objext conftest$ac_exeext
13368 if { (ac_try="$ac_link"
13369 case "(($ac_try" in
13370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371   *) ac_try_echo=$ac_try;;
13372 esac
13373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374   (eval "$ac_link") 2>conftest.er1
13375   ac_status=$?
13376   grep -v '^ *+' conftest.er1 >conftest.err
13377   rm -f conftest.er1
13378   cat conftest.err >&5
13379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380   (exit $ac_status); } &&
13381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13382   { (case "(($ac_try" in
13383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384   *) ac_try_echo=$ac_try;;
13385 esac
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387   (eval "$ac_try") 2>&5
13388   ac_status=$?
13389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390   (exit $ac_status); }; } &&
13391          { ac_try='test -s conftest$ac_exeext'
13392   { (case "(($ac_try" in
13393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394   *) ac_try_echo=$ac_try;;
13395 esac
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397   (eval "$ac_try") 2>&5
13398   ac_status=$?
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); }; }; then
13401   ac_cv_search_bfd_init=$ac_res
13402 else
13403   echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13405
13406
13407 fi
13408
13409 rm -f core conftest.err conftest.$ac_objext \
13410       conftest$ac_exeext
13411   if test "${ac_cv_search_bfd_init+set}" = set; then
13412   break
13413 fi
13414 done
13415 if test "${ac_cv_search_bfd_init+set}" = set; then
13416   :
13417 else
13418   ac_cv_search_bfd_init=no
13419 fi
13420 rm conftest.$ac_ext
13421 LIBS=$ac_func_search_save_LIBS
13422 fi
13423 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13424 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13425 ac_res=$ac_cv_search_bfd_init
13426 if test "$ac_res" != no; then
13427   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13428
13429 fi
13430
13431         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13432 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13433 if test "${ac_cv_search_op_open_agent+set}" = set; then
13434   echo $ECHO_N "(cached) $ECHO_C" >&6
13435 else
13436   ac_func_search_save_LIBS=$LIBS
13437 cat >conftest.$ac_ext <<_ACEOF
13438 /* confdefs.h.  */
13439 _ACEOF
13440 cat confdefs.h >>conftest.$ac_ext
13441 cat >>conftest.$ac_ext <<_ACEOF
13442 /* end confdefs.h.  */
13443
13444 /* Override any GCC internal prototype to avoid an error.
13445    Use char because int might match the return type of a GCC
13446    builtin and then its argument prototype would still apply.  */
13447 #ifdef __cplusplus
13448 extern "C"
13449 #endif
13450 char op_open_agent ();
13451 int
13452 main ()
13453 {
13454 return op_open_agent ();
13455   ;
13456   return 0;
13457 }
13458 _ACEOF
13459 for ac_lib in '' opagent; do
13460   if test -z "$ac_lib"; then
13461     ac_res="none required"
13462   else
13463     ac_res=-l$ac_lib
13464     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13465   fi
13466   rm -f conftest.$ac_objext conftest$ac_exeext
13467 if { (ac_try="$ac_link"
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_link") 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); } &&
13480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13481   { (case "(($ac_try" in
13482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13483   *) ac_try_echo=$ac_try;;
13484 esac
13485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13486   (eval "$ac_try") 2>&5
13487   ac_status=$?
13488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489   (exit $ac_status); }; } &&
13490          { ac_try='test -s conftest$ac_exeext'
13491   { (case "(($ac_try" in
13492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493   *) ac_try_echo=$ac_try;;
13494 esac
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496   (eval "$ac_try") 2>&5
13497   ac_status=$?
13498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499   (exit $ac_status); }; }; then
13500   ac_cv_search_op_open_agent=$ac_res
13501 else
13502   echo "$as_me: failed program was:" >&5
13503 sed 's/^/| /' conftest.$ac_ext >&5
13504
13505
13506 fi
13507
13508 rm -f core conftest.err conftest.$ac_objext \
13509       conftest$ac_exeext
13510   if test "${ac_cv_search_op_open_agent+set}" = set; then
13511   break
13512 fi
13513 done
13514 if test "${ac_cv_search_op_open_agent+set}" = set; then
13515   :
13516 else
13517   ac_cv_search_op_open_agent=no
13518 fi
13519 rm conftest.$ac_ext
13520 LIBS=$ac_func_search_save_LIBS
13521 fi
13522 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13523 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13524 ac_res=$ac_cv_search_op_open_agent
13525 if test "$ac_res" != no; then
13526   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13527
13528 else
13529
13530           echo "Error! You need to have libopagent around."
13531           exit -1
13532
13533 fi
13534
13535         if test "${ac_cv_header_opagent_h+set}" = set; then
13536   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13537 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13538 if test "${ac_cv_header_opagent_h+set}" = set; then
13539   echo $ECHO_N "(cached) $ECHO_C" >&6
13540 fi
13541 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13542 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13543 else
13544   # Is the header compilable?
13545 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13546 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13547 cat >conftest.$ac_ext <<_ACEOF
13548 /* confdefs.h.  */
13549 _ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h.  */
13553 $ac_includes_default
13554 #include <opagent.h>
13555 _ACEOF
13556 rm -f conftest.$ac_objext
13557 if { (ac_try="$ac_compile"
13558 case "(($ac_try" in
13559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560   *) ac_try_echo=$ac_try;;
13561 esac
13562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563   (eval "$ac_compile") 2>conftest.er1
13564   ac_status=$?
13565   grep -v '^ *+' conftest.er1 >conftest.err
13566   rm -f conftest.er1
13567   cat conftest.err >&5
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); } &&
13570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13571   { (case "(($ac_try" in
13572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573   *) ac_try_echo=$ac_try;;
13574 esac
13575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576   (eval "$ac_try") 2>&5
13577   ac_status=$?
13578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); }; } &&
13580          { ac_try='test -s conftest.$ac_objext'
13581   { (case "(($ac_try" in
13582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583   *) ac_try_echo=$ac_try;;
13584 esac
13585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13586   (eval "$ac_try") 2>&5
13587   ac_status=$?
13588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589   (exit $ac_status); }; }; then
13590   ac_header_compiler=yes
13591 else
13592   echo "$as_me: failed program was:" >&5
13593 sed 's/^/| /' conftest.$ac_ext >&5
13594
13595         ac_header_compiler=no
13596 fi
13597
13598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13600 echo "${ECHO_T}$ac_header_compiler" >&6; }
13601
13602 # Is the header present?
13603 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13604 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13605 cat >conftest.$ac_ext <<_ACEOF
13606 /* confdefs.h.  */
13607 _ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h.  */
13611 #include <opagent.h>
13612 _ACEOF
13613 if { (ac_try="$ac_cpp conftest.$ac_ext"
13614 case "(($ac_try" in
13615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616   *) ac_try_echo=$ac_try;;
13617 esac
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13620   ac_status=$?
13621   grep -v '^ *+' conftest.er1 >conftest.err
13622   rm -f conftest.er1
13623   cat conftest.err >&5
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); } >/dev/null; then
13626   if test -s conftest.err; then
13627     ac_cpp_err=$ac_c_preproc_warn_flag
13628     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13629   else
13630     ac_cpp_err=
13631   fi
13632 else
13633   ac_cpp_err=yes
13634 fi
13635 if test -z "$ac_cpp_err"; then
13636   ac_header_preproc=yes
13637 else
13638   echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13640
13641   ac_header_preproc=no
13642 fi
13643
13644 rm -f conftest.err conftest.$ac_ext
13645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13646 echo "${ECHO_T}$ac_header_preproc" >&6; }
13647
13648 # So?  What about this header?
13649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13650   yes:no: )
13651     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13652 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13653     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13654 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13655     ac_header_preproc=yes
13656     ;;
13657   no:yes:* )
13658     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13659 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13660     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13661 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13662     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13663 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13664     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13665 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13666     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13667 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13668     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13669 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13670     ( cat <<\_ASBOX
13671 ## ----------------------------------- ##
13672 ## Report this to llvmbugs@cs.uiuc.edu ##
13673 ## ----------------------------------- ##
13674 _ASBOX
13675      ) | sed "s/^/$as_me: WARNING:     /" >&2
13676     ;;
13677 esac
13678 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13679 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13680 if test "${ac_cv_header_opagent_h+set}" = set; then
13681   echo $ECHO_N "(cached) $ECHO_C" >&6
13682 else
13683   ac_cv_header_opagent_h=$ac_header_preproc
13684 fi
13685 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13686 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13687
13688 fi
13689 if test $ac_cv_header_opagent_h = yes; then
13690   :
13691 else
13692
13693           echo "Error! You need to have opagent.h around."
13694           exit -1
13695
13696 fi
13697
13698
13699       fi
13700
13701 else
13702
13703       USE_OPROFILE=0
13704
13705
13706 fi
13707
13708
13709 cat >>confdefs.h <<_ACEOF
13710 #define USE_OPROFILE $USE_OPROFILE
13711 _ACEOF
13712
13713
13714
13715
13716
13717
13718
13719
13720 ac_header_dirent=no
13721 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13722   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13723 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13724 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13726   echo $ECHO_N "(cached) $ECHO_C" >&6
13727 else
13728   cat >conftest.$ac_ext <<_ACEOF
13729 /* confdefs.h.  */
13730 _ACEOF
13731 cat confdefs.h >>conftest.$ac_ext
13732 cat >>conftest.$ac_ext <<_ACEOF
13733 /* end confdefs.h.  */
13734 #include <sys/types.h>
13735 #include <$ac_hdr>
13736
13737 int
13738 main ()
13739 {
13740 if ((DIR *) 0)
13741 return 0;
13742   ;
13743   return 0;
13744 }
13745 _ACEOF
13746 rm -f conftest.$ac_objext
13747 if { (ac_try="$ac_compile"
13748 case "(($ac_try" in
13749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750   *) ac_try_echo=$ac_try;;
13751 esac
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753   (eval "$ac_compile") 2>conftest.er1
13754   ac_status=$?
13755   grep -v '^ *+' conftest.er1 >conftest.err
13756   rm -f conftest.er1
13757   cat conftest.err >&5
13758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759   (exit $ac_status); } &&
13760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13761   { (case "(($ac_try" in
13762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763   *) ac_try_echo=$ac_try;;
13764 esac
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766   (eval "$ac_try") 2>&5
13767   ac_status=$?
13768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769   (exit $ac_status); }; } &&
13770          { ac_try='test -s conftest.$ac_objext'
13771   { (case "(($ac_try" in
13772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773   *) ac_try_echo=$ac_try;;
13774 esac
13775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13776   (eval "$ac_try") 2>&5
13777   ac_status=$?
13778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779   (exit $ac_status); }; }; then
13780   eval "$as_ac_Header=yes"
13781 else
13782   echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13784
13785         eval "$as_ac_Header=no"
13786 fi
13787
13788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13789 fi
13790 ac_res=`eval echo '${'$as_ac_Header'}'`
13791                { echo "$as_me:$LINENO: result: $ac_res" >&5
13792 echo "${ECHO_T}$ac_res" >&6; }
13793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13794   cat >>confdefs.h <<_ACEOF
13795 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13796 _ACEOF
13797
13798 ac_header_dirent=$ac_hdr; break
13799 fi
13800
13801 done
13802 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13803 if test $ac_header_dirent = dirent.h; then
13804   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13805 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13806 if test "${ac_cv_search_opendir+set}" = set; then
13807   echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809   ac_func_search_save_LIBS=$LIBS
13810 cat >conftest.$ac_ext <<_ACEOF
13811 /* confdefs.h.  */
13812 _ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h.  */
13816
13817 /* Override any GCC internal prototype to avoid an error.
13818    Use char because int might match the return type of a GCC
13819    builtin and then its argument prototype would still apply.  */
13820 #ifdef __cplusplus
13821 extern "C"
13822 #endif
13823 char opendir ();
13824 int
13825 main ()
13826 {
13827 return opendir ();
13828   ;
13829   return 0;
13830 }
13831 _ACEOF
13832 for ac_lib in '' dir; do
13833   if test -z "$ac_lib"; then
13834     ac_res="none required"
13835   else
13836     ac_res=-l$ac_lib
13837     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13838   fi
13839   rm -f conftest.$ac_objext conftest$ac_exeext
13840 if { (ac_try="$ac_link"
13841 case "(($ac_try" in
13842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843   *) ac_try_echo=$ac_try;;
13844 esac
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846   (eval "$ac_link") 2>conftest.er1
13847   ac_status=$?
13848   grep -v '^ *+' conftest.er1 >conftest.err
13849   rm -f conftest.er1
13850   cat conftest.err >&5
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); } &&
13853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13854   { (case "(($ac_try" in
13855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856   *) ac_try_echo=$ac_try;;
13857 esac
13858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13859   (eval "$ac_try") 2>&5
13860   ac_status=$?
13861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862   (exit $ac_status); }; } &&
13863          { ac_try='test -s conftest$ac_exeext'
13864   { (case "(($ac_try" in
13865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866   *) ac_try_echo=$ac_try;;
13867 esac
13868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869   (eval "$ac_try") 2>&5
13870   ac_status=$?
13871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872   (exit $ac_status); }; }; then
13873   ac_cv_search_opendir=$ac_res
13874 else
13875   echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13877
13878
13879 fi
13880
13881 rm -f core conftest.err conftest.$ac_objext \
13882       conftest$ac_exeext
13883   if test "${ac_cv_search_opendir+set}" = set; then
13884   break
13885 fi
13886 done
13887 if test "${ac_cv_search_opendir+set}" = set; then
13888   :
13889 else
13890   ac_cv_search_opendir=no
13891 fi
13892 rm conftest.$ac_ext
13893 LIBS=$ac_func_search_save_LIBS
13894 fi
13895 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13896 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13897 ac_res=$ac_cv_search_opendir
13898 if test "$ac_res" != no; then
13899   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13900
13901 fi
13902
13903 else
13904   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13905 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13906 if test "${ac_cv_search_opendir+set}" = set; then
13907   echo $ECHO_N "(cached) $ECHO_C" >&6
13908 else
13909   ac_func_search_save_LIBS=$LIBS
13910 cat >conftest.$ac_ext <<_ACEOF
13911 /* confdefs.h.  */
13912 _ACEOF
13913 cat confdefs.h >>conftest.$ac_ext
13914 cat >>conftest.$ac_ext <<_ACEOF
13915 /* end confdefs.h.  */
13916
13917 /* Override any GCC internal prototype to avoid an error.
13918    Use char because int might match the return type of a GCC
13919    builtin and then its argument prototype would still apply.  */
13920 #ifdef __cplusplus
13921 extern "C"
13922 #endif
13923 char opendir ();
13924 int
13925 main ()
13926 {
13927 return opendir ();
13928   ;
13929   return 0;
13930 }
13931 _ACEOF
13932 for ac_lib in '' x; do
13933   if test -z "$ac_lib"; then
13934     ac_res="none required"
13935   else
13936     ac_res=-l$ac_lib
13937     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13938   fi
13939   rm -f conftest.$ac_objext conftest$ac_exeext
13940 if { (ac_try="$ac_link"
13941 case "(($ac_try" in
13942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13943   *) ac_try_echo=$ac_try;;
13944 esac
13945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13946   (eval "$ac_link") 2>conftest.er1
13947   ac_status=$?
13948   grep -v '^ *+' conftest.er1 >conftest.err
13949   rm -f conftest.er1
13950   cat conftest.err >&5
13951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952   (exit $ac_status); } &&
13953          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13954   { (case "(($ac_try" in
13955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13956   *) ac_try_echo=$ac_try;;
13957 esac
13958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13959   (eval "$ac_try") 2>&5
13960   ac_status=$?
13961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962   (exit $ac_status); }; } &&
13963          { ac_try='test -s conftest$ac_exeext'
13964   { (case "(($ac_try" in
13965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966   *) ac_try_echo=$ac_try;;
13967 esac
13968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13969   (eval "$ac_try") 2>&5
13970   ac_status=$?
13971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972   (exit $ac_status); }; }; then
13973   ac_cv_search_opendir=$ac_res
13974 else
13975   echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13977
13978
13979 fi
13980
13981 rm -f core conftest.err conftest.$ac_objext \
13982       conftest$ac_exeext
13983   if test "${ac_cv_search_opendir+set}" = set; then
13984   break
13985 fi
13986 done
13987 if test "${ac_cv_search_opendir+set}" = set; then
13988   :
13989 else
13990   ac_cv_search_opendir=no
13991 fi
13992 rm conftest.$ac_ext
13993 LIBS=$ac_func_search_save_LIBS
13994 fi
13995 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13996 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13997 ac_res=$ac_cv_search_opendir
13998 if test "$ac_res" != no; then
13999   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14000
14001 fi
14002
14003 fi
14004
14005 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14006 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14007 if test "${ac_cv_header_mmap_anon+set}" = set; then
14008   echo $ECHO_N "(cached) $ECHO_C" >&6
14009 else
14010    ac_ext=c
14011 ac_cpp='$CPP $CPPFLAGS'
14012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14015
14016   cat >conftest.$ac_ext <<_ACEOF
14017 /* confdefs.h.  */
14018 _ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h.  */
14022 #include <sys/mman.h>
14023 #include <unistd.h>
14024 #include <fcntl.h>
14025 int
14026 main ()
14027 {
14028 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14029   ;
14030   return 0;
14031 }
14032 _ACEOF
14033 rm -f conftest.$ac_objext
14034 if { (ac_try="$ac_compile"
14035 case "(($ac_try" in
14036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037   *) ac_try_echo=$ac_try;;
14038 esac
14039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14040   (eval "$ac_compile") 2>conftest.er1
14041   ac_status=$?
14042   grep -v '^ *+' conftest.er1 >conftest.err
14043   rm -f conftest.er1
14044   cat conftest.err >&5
14045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046   (exit $ac_status); } &&
14047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14048   { (case "(($ac_try" in
14049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050   *) ac_try_echo=$ac_try;;
14051 esac
14052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053   (eval "$ac_try") 2>&5
14054   ac_status=$?
14055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056   (exit $ac_status); }; } &&
14057          { ac_try='test -s conftest.$ac_objext'
14058   { (case "(($ac_try" in
14059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060   *) ac_try_echo=$ac_try;;
14061 esac
14062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063   (eval "$ac_try") 2>&5
14064   ac_status=$?
14065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066   (exit $ac_status); }; }; then
14067   ac_cv_header_mmap_anon=yes
14068 else
14069   echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14071
14072         ac_cv_header_mmap_anon=no
14073 fi
14074
14075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14076   ac_ext=c
14077 ac_cpp='$CPP $CPPFLAGS'
14078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14081
14082
14083 fi
14084 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14085 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14086 if test "$ac_cv_header_mmap_anon" = yes; then
14087
14088 cat >>confdefs.h <<\_ACEOF
14089 #define HAVE_MMAP_ANONYMOUS 1
14090 _ACEOF
14091
14092 fi
14093
14094 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14095 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14096 if test "${ac_cv_header_stat_broken+set}" = set; then
14097   echo $ECHO_N "(cached) $ECHO_C" >&6
14098 else
14099   cat >conftest.$ac_ext <<_ACEOF
14100 /* confdefs.h.  */
14101 _ACEOF
14102 cat confdefs.h >>conftest.$ac_ext
14103 cat >>conftest.$ac_ext <<_ACEOF
14104 /* end confdefs.h.  */
14105 #include <sys/types.h>
14106 #include <sys/stat.h>
14107
14108 #if defined S_ISBLK && defined S_IFDIR
14109 # if S_ISBLK (S_IFDIR)
14110 You lose.
14111 # endif
14112 #endif
14113
14114 #if defined S_ISBLK && defined S_IFCHR
14115 # if S_ISBLK (S_IFCHR)
14116 You lose.
14117 # endif
14118 #endif
14119
14120 #if defined S_ISLNK && defined S_IFREG
14121 # if S_ISLNK (S_IFREG)
14122 You lose.
14123 # endif
14124 #endif
14125
14126 #if defined S_ISSOCK && defined S_IFREG
14127 # if S_ISSOCK (S_IFREG)
14128 You lose.
14129 # endif
14130 #endif
14131
14132 _ACEOF
14133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14134   $EGREP "You lose" >/dev/null 2>&1; then
14135   ac_cv_header_stat_broken=yes
14136 else
14137   ac_cv_header_stat_broken=no
14138 fi
14139 rm -f conftest*
14140
14141 fi
14142 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14143 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14144 if test $ac_cv_header_stat_broken = yes; then
14145
14146 cat >>confdefs.h <<\_ACEOF
14147 #define STAT_MACROS_BROKEN 1
14148 _ACEOF
14149
14150 fi
14151
14152 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14153 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14154 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14155   echo $ECHO_N "(cached) $ECHO_C" >&6
14156 else
14157   cat >conftest.$ac_ext <<_ACEOF
14158 /* confdefs.h.  */
14159 _ACEOF
14160 cat confdefs.h >>conftest.$ac_ext
14161 cat >>conftest.$ac_ext <<_ACEOF
14162 /* end confdefs.h.  */
14163 #include <sys/types.h>
14164 #include <sys/wait.h>
14165 #ifndef WEXITSTATUS
14166 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14167 #endif
14168 #ifndef WIFEXITED
14169 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14170 #endif
14171
14172 int
14173 main ()
14174 {
14175   int s;
14176   wait (&s);
14177   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14178   ;
14179   return 0;
14180 }
14181 _ACEOF
14182 rm -f conftest.$ac_objext
14183 if { (ac_try="$ac_compile"
14184 case "(($ac_try" in
14185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186   *) ac_try_echo=$ac_try;;
14187 esac
14188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189   (eval "$ac_compile") 2>conftest.er1
14190   ac_status=$?
14191   grep -v '^ *+' conftest.er1 >conftest.err
14192   rm -f conftest.er1
14193   cat conftest.err >&5
14194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); } &&
14196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14197   { (case "(($ac_try" in
14198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199   *) ac_try_echo=$ac_try;;
14200 esac
14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202   (eval "$ac_try") 2>&5
14203   ac_status=$?
14204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205   (exit $ac_status); }; } &&
14206          { ac_try='test -s conftest.$ac_objext'
14207   { (case "(($ac_try" in
14208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209   *) ac_try_echo=$ac_try;;
14210 esac
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212   (eval "$ac_try") 2>&5
14213   ac_status=$?
14214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215   (exit $ac_status); }; }; then
14216   ac_cv_header_sys_wait_h=yes
14217 else
14218   echo "$as_me: failed program was:" >&5
14219 sed 's/^/| /' conftest.$ac_ext >&5
14220
14221         ac_cv_header_sys_wait_h=no
14222 fi
14223
14224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14225 fi
14226 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14227 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14228 if test $ac_cv_header_sys_wait_h = yes; then
14229
14230 cat >>confdefs.h <<\_ACEOF
14231 #define HAVE_SYS_WAIT_H 1
14232 _ACEOF
14233
14234 fi
14235
14236 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14237 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14238 if test "${ac_cv_header_time+set}" = set; then
14239   echo $ECHO_N "(cached) $ECHO_C" >&6
14240 else
14241   cat >conftest.$ac_ext <<_ACEOF
14242 /* confdefs.h.  */
14243 _ACEOF
14244 cat confdefs.h >>conftest.$ac_ext
14245 cat >>conftest.$ac_ext <<_ACEOF
14246 /* end confdefs.h.  */
14247 #include <sys/types.h>
14248 #include <sys/time.h>
14249 #include <time.h>
14250
14251 int
14252 main ()
14253 {
14254 if ((struct tm *) 0)
14255 return 0;
14256   ;
14257   return 0;
14258 }
14259 _ACEOF
14260 rm -f conftest.$ac_objext
14261 if { (ac_try="$ac_compile"
14262 case "(($ac_try" in
14263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264   *) ac_try_echo=$ac_try;;
14265 esac
14266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267   (eval "$ac_compile") 2>conftest.er1
14268   ac_status=$?
14269   grep -v '^ *+' conftest.er1 >conftest.err
14270   rm -f conftest.er1
14271   cat conftest.err >&5
14272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273   (exit $ac_status); } &&
14274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14275   { (case "(($ac_try" in
14276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277   *) ac_try_echo=$ac_try;;
14278 esac
14279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14280   (eval "$ac_try") 2>&5
14281   ac_status=$?
14282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283   (exit $ac_status); }; } &&
14284          { ac_try='test -s conftest.$ac_objext'
14285   { (case "(($ac_try" in
14286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287   *) ac_try_echo=$ac_try;;
14288 esac
14289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14290   (eval "$ac_try") 2>&5
14291   ac_status=$?
14292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293   (exit $ac_status); }; }; then
14294   ac_cv_header_time=yes
14295 else
14296   echo "$as_me: failed program was:" >&5
14297 sed 's/^/| /' conftest.$ac_ext >&5
14298
14299         ac_cv_header_time=no
14300 fi
14301
14302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14303 fi
14304 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14305 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14306 if test $ac_cv_header_time = yes; then
14307
14308 cat >>confdefs.h <<\_ACEOF
14309 #define TIME_WITH_SYS_TIME 1
14310 _ACEOF
14311
14312 fi
14313
14314
14315
14316
14317
14318
14319
14320
14321 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14322 do
14323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14325   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14328   echo $ECHO_N "(cached) $ECHO_C" >&6
14329 fi
14330 ac_res=`eval echo '${'$as_ac_Header'}'`
14331                { echo "$as_me:$LINENO: result: $ac_res" >&5
14332 echo "${ECHO_T}$ac_res" >&6; }
14333 else
14334   # Is the header compilable?
14335 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14337 cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h.  */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h.  */
14343 $ac_includes_default
14344 #include <$ac_header>
14345 _ACEOF
14346 rm -f conftest.$ac_objext
14347 if { (ac_try="$ac_compile"
14348 case "(($ac_try" in
14349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14350   *) ac_try_echo=$ac_try;;
14351 esac
14352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14353   (eval "$ac_compile") 2>conftest.er1
14354   ac_status=$?
14355   grep -v '^ *+' conftest.er1 >conftest.err
14356   rm -f conftest.er1
14357   cat conftest.err >&5
14358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359   (exit $ac_status); } &&
14360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14361   { (case "(($ac_try" in
14362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363   *) ac_try_echo=$ac_try;;
14364 esac
14365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366   (eval "$ac_try") 2>&5
14367   ac_status=$?
14368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369   (exit $ac_status); }; } &&
14370          { ac_try='test -s conftest.$ac_objext'
14371   { (case "(($ac_try" in
14372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373   *) ac_try_echo=$ac_try;;
14374 esac
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376   (eval "$ac_try") 2>&5
14377   ac_status=$?
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); }; }; then
14380   ac_header_compiler=yes
14381 else
14382   echo "$as_me: failed program was:" >&5
14383 sed 's/^/| /' conftest.$ac_ext >&5
14384
14385         ac_header_compiler=no
14386 fi
14387
14388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14389 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14390 echo "${ECHO_T}$ac_header_compiler" >&6; }
14391
14392 # Is the header present?
14393 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14395 cat >conftest.$ac_ext <<_ACEOF
14396 /* confdefs.h.  */
14397 _ACEOF
14398 cat confdefs.h >>conftest.$ac_ext
14399 cat >>conftest.$ac_ext <<_ACEOF
14400 /* end confdefs.h.  */
14401 #include <$ac_header>
14402 _ACEOF
14403 if { (ac_try="$ac_cpp conftest.$ac_ext"
14404 case "(($ac_try" in
14405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406   *) ac_try_echo=$ac_try;;
14407 esac
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14410   ac_status=$?
14411   grep -v '^ *+' conftest.er1 >conftest.err
14412   rm -f conftest.er1
14413   cat conftest.err >&5
14414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415   (exit $ac_status); } >/dev/null; then
14416   if test -s conftest.err; then
14417     ac_cpp_err=$ac_c_preproc_warn_flag
14418     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14419   else
14420     ac_cpp_err=
14421   fi
14422 else
14423   ac_cpp_err=yes
14424 fi
14425 if test -z "$ac_cpp_err"; then
14426   ac_header_preproc=yes
14427 else
14428   echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14430
14431   ac_header_preproc=no
14432 fi
14433
14434 rm -f conftest.err conftest.$ac_ext
14435 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14436 echo "${ECHO_T}$ac_header_preproc" >&6; }
14437
14438 # So?  What about this header?
14439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14440   yes:no: )
14441     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14443     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14445     ac_header_preproc=yes
14446     ;;
14447   no:yes:* )
14448     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14450     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14451 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14452     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14454     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14455 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14458     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14460     ( cat <<\_ASBOX
14461 ## ----------------------------------- ##
14462 ## Report this to llvmbugs@cs.uiuc.edu ##
14463 ## ----------------------------------- ##
14464 _ASBOX
14465      ) | sed "s/^/$as_me: WARNING:     /" >&2
14466     ;;
14467 esac
14468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14471   echo $ECHO_N "(cached) $ECHO_C" >&6
14472 else
14473   eval "$as_ac_Header=\$ac_header_preproc"
14474 fi
14475 ac_res=`eval echo '${'$as_ac_Header'}'`
14476                { echo "$as_me:$LINENO: result: $ac_res" >&5
14477 echo "${ECHO_T}$ac_res" >&6; }
14478
14479 fi
14480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14481   cat >>confdefs.h <<_ACEOF
14482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14483 _ACEOF
14484
14485 fi
14486
14487 done
14488
14489
14490
14491
14492
14493
14494
14495 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14496 do
14497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14499   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14502   echo $ECHO_N "(cached) $ECHO_C" >&6
14503 fi
14504 ac_res=`eval echo '${'$as_ac_Header'}'`
14505                { echo "$as_me:$LINENO: result: $ac_res" >&5
14506 echo "${ECHO_T}$ac_res" >&6; }
14507 else
14508   # Is the header compilable?
14509 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14511 cat >conftest.$ac_ext <<_ACEOF
14512 /* confdefs.h.  */
14513 _ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h.  */
14517 $ac_includes_default
14518 #include <$ac_header>
14519 _ACEOF
14520 rm -f conftest.$ac_objext
14521 if { (ac_try="$ac_compile"
14522 case "(($ac_try" in
14523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524   *) ac_try_echo=$ac_try;;
14525 esac
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527   (eval "$ac_compile") 2>conftest.er1
14528   ac_status=$?
14529   grep -v '^ *+' conftest.er1 >conftest.err
14530   rm -f conftest.er1
14531   cat conftest.err >&5
14532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533   (exit $ac_status); } &&
14534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14535   { (case "(($ac_try" in
14536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537   *) ac_try_echo=$ac_try;;
14538 esac
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540   (eval "$ac_try") 2>&5
14541   ac_status=$?
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); }; } &&
14544          { ac_try='test -s conftest.$ac_objext'
14545   { (case "(($ac_try" in
14546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547   *) ac_try_echo=$ac_try;;
14548 esac
14549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550   (eval "$ac_try") 2>&5
14551   ac_status=$?
14552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553   (exit $ac_status); }; }; then
14554   ac_header_compiler=yes
14555 else
14556   echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14558
14559         ac_header_compiler=no
14560 fi
14561
14562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14564 echo "${ECHO_T}$ac_header_compiler" >&6; }
14565
14566 # Is the header present?
14567 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14569 cat >conftest.$ac_ext <<_ACEOF
14570 /* confdefs.h.  */
14571 _ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h.  */
14575 #include <$ac_header>
14576 _ACEOF
14577 if { (ac_try="$ac_cpp conftest.$ac_ext"
14578 case "(($ac_try" in
14579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580   *) ac_try_echo=$ac_try;;
14581 esac
14582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14584   ac_status=$?
14585   grep -v '^ *+' conftest.er1 >conftest.err
14586   rm -f conftest.er1
14587   cat conftest.err >&5
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); } >/dev/null; then
14590   if test -s conftest.err; then
14591     ac_cpp_err=$ac_c_preproc_warn_flag
14592     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14593   else
14594     ac_cpp_err=
14595   fi
14596 else
14597   ac_cpp_err=yes
14598 fi
14599 if test -z "$ac_cpp_err"; then
14600   ac_header_preproc=yes
14601 else
14602   echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14604
14605   ac_header_preproc=no
14606 fi
14607
14608 rm -f conftest.err conftest.$ac_ext
14609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14610 echo "${ECHO_T}$ac_header_preproc" >&6; }
14611
14612 # So?  What about this header?
14613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14614   yes:no: )
14615     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14619     ac_header_preproc=yes
14620     ;;
14621   no:yes:* )
14622     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14624     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14625 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14626     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14628     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14629 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14632     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14634     ( cat <<\_ASBOX
14635 ## ----------------------------------- ##
14636 ## Report this to llvmbugs@cs.uiuc.edu ##
14637 ## ----------------------------------- ##
14638 _ASBOX
14639      ) | sed "s/^/$as_me: WARNING:     /" >&2
14640     ;;
14641 esac
14642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14645   echo $ECHO_N "(cached) $ECHO_C" >&6
14646 else
14647   eval "$as_ac_Header=\$ac_header_preproc"
14648 fi
14649 ac_res=`eval echo '${'$as_ac_Header'}'`
14650                { echo "$as_me:$LINENO: result: $ac_res" >&5
14651 echo "${ECHO_T}$ac_res" >&6; }
14652
14653 fi
14654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14655   cat >>confdefs.h <<_ACEOF
14656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14657 _ACEOF
14658
14659 fi
14660
14661 done
14662
14663
14664
14665 for ac_header in utime.h windows.h
14666 do
14667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14669   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14672   echo $ECHO_N "(cached) $ECHO_C" >&6
14673 fi
14674 ac_res=`eval echo '${'$as_ac_Header'}'`
14675                { echo "$as_me:$LINENO: result: $ac_res" >&5
14676 echo "${ECHO_T}$ac_res" >&6; }
14677 else
14678   # Is the header compilable?
14679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14681 cat >conftest.$ac_ext <<_ACEOF
14682 /* confdefs.h.  */
14683 _ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h.  */
14687 $ac_includes_default
14688 #include <$ac_header>
14689 _ACEOF
14690 rm -f conftest.$ac_objext
14691 if { (ac_try="$ac_compile"
14692 case "(($ac_try" in
14693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694   *) ac_try_echo=$ac_try;;
14695 esac
14696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697   (eval "$ac_compile") 2>conftest.er1
14698   ac_status=$?
14699   grep -v '^ *+' conftest.er1 >conftest.err
14700   rm -f conftest.er1
14701   cat conftest.err >&5
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); } &&
14704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14705   { (case "(($ac_try" in
14706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707   *) ac_try_echo=$ac_try;;
14708 esac
14709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14710   (eval "$ac_try") 2>&5
14711   ac_status=$?
14712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713   (exit $ac_status); }; } &&
14714          { ac_try='test -s conftest.$ac_objext'
14715   { (case "(($ac_try" in
14716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717   *) ac_try_echo=$ac_try;;
14718 esac
14719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720   (eval "$ac_try") 2>&5
14721   ac_status=$?
14722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723   (exit $ac_status); }; }; then
14724   ac_header_compiler=yes
14725 else
14726   echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14728
14729         ac_header_compiler=no
14730 fi
14731
14732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14734 echo "${ECHO_T}$ac_header_compiler" >&6; }
14735
14736 # Is the header present?
14737 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14739 cat >conftest.$ac_ext <<_ACEOF
14740 /* confdefs.h.  */
14741 _ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h.  */
14745 #include <$ac_header>
14746 _ACEOF
14747 if { (ac_try="$ac_cpp conftest.$ac_ext"
14748 case "(($ac_try" in
14749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750   *) ac_try_echo=$ac_try;;
14751 esac
14752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14754   ac_status=$?
14755   grep -v '^ *+' conftest.er1 >conftest.err
14756   rm -f conftest.er1
14757   cat conftest.err >&5
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); } >/dev/null; then
14760   if test -s conftest.err; then
14761     ac_cpp_err=$ac_c_preproc_warn_flag
14762     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14763   else
14764     ac_cpp_err=
14765   fi
14766 else
14767   ac_cpp_err=yes
14768 fi
14769 if test -z "$ac_cpp_err"; then
14770   ac_header_preproc=yes
14771 else
14772   echo "$as_me: failed program was:" >&5
14773 sed 's/^/| /' conftest.$ac_ext >&5
14774
14775   ac_header_preproc=no
14776 fi
14777
14778 rm -f conftest.err conftest.$ac_ext
14779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14780 echo "${ECHO_T}$ac_header_preproc" >&6; }
14781
14782 # So?  What about this header?
14783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14784   yes:no: )
14785     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14789     ac_header_preproc=yes
14790     ;;
14791   no:yes:* )
14792     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14794     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14795 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14796     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14798     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14799 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14800     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14802     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14804     ( cat <<\_ASBOX
14805 ## ----------------------------------- ##
14806 ## Report this to llvmbugs@cs.uiuc.edu ##
14807 ## ----------------------------------- ##
14808 _ASBOX
14809      ) | sed "s/^/$as_me: WARNING:     /" >&2
14810     ;;
14811 esac
14812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14815   echo $ECHO_N "(cached) $ECHO_C" >&6
14816 else
14817   eval "$as_ac_Header=\$ac_header_preproc"
14818 fi
14819 ac_res=`eval echo '${'$as_ac_Header'}'`
14820                { echo "$as_me:$LINENO: result: $ac_res" >&5
14821 echo "${ECHO_T}$ac_res" >&6; }
14822
14823 fi
14824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14825   cat >>confdefs.h <<_ACEOF
14826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14827 _ACEOF
14828
14829 fi
14830
14831 done
14832
14833
14834
14835
14836
14837
14838 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14839 do
14840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14842   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14845   echo $ECHO_N "(cached) $ECHO_C" >&6
14846 fi
14847 ac_res=`eval echo '${'$as_ac_Header'}'`
14848                { echo "$as_me:$LINENO: result: $ac_res" >&5
14849 echo "${ECHO_T}$ac_res" >&6; }
14850 else
14851   # Is the header compilable?
14852 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14854 cat >conftest.$ac_ext <<_ACEOF
14855 /* confdefs.h.  */
14856 _ACEOF
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h.  */
14860 $ac_includes_default
14861 #include <$ac_header>
14862 _ACEOF
14863 rm -f conftest.$ac_objext
14864 if { (ac_try="$ac_compile"
14865 case "(($ac_try" in
14866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14867   *) ac_try_echo=$ac_try;;
14868 esac
14869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14870   (eval "$ac_compile") 2>conftest.er1
14871   ac_status=$?
14872   grep -v '^ *+' conftest.er1 >conftest.err
14873   rm -f conftest.er1
14874   cat conftest.err >&5
14875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876   (exit $ac_status); } &&
14877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14878   { (case "(($ac_try" in
14879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880   *) ac_try_echo=$ac_try;;
14881 esac
14882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883   (eval "$ac_try") 2>&5
14884   ac_status=$?
14885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886   (exit $ac_status); }; } &&
14887          { ac_try='test -s conftest.$ac_objext'
14888   { (case "(($ac_try" in
14889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890   *) ac_try_echo=$ac_try;;
14891 esac
14892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893   (eval "$ac_try") 2>&5
14894   ac_status=$?
14895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896   (exit $ac_status); }; }; then
14897   ac_header_compiler=yes
14898 else
14899   echo "$as_me: failed program was:" >&5
14900 sed 's/^/| /' conftest.$ac_ext >&5
14901
14902         ac_header_compiler=no
14903 fi
14904
14905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14907 echo "${ECHO_T}$ac_header_compiler" >&6; }
14908
14909 # Is the header present?
14910 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14912 cat >conftest.$ac_ext <<_ACEOF
14913 /* confdefs.h.  */
14914 _ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h.  */
14918 #include <$ac_header>
14919 _ACEOF
14920 if { (ac_try="$ac_cpp conftest.$ac_ext"
14921 case "(($ac_try" in
14922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923   *) ac_try_echo=$ac_try;;
14924 esac
14925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14927   ac_status=$?
14928   grep -v '^ *+' conftest.er1 >conftest.err
14929   rm -f conftest.er1
14930   cat conftest.err >&5
14931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932   (exit $ac_status); } >/dev/null; then
14933   if test -s conftest.err; then
14934     ac_cpp_err=$ac_c_preproc_warn_flag
14935     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14936   else
14937     ac_cpp_err=
14938   fi
14939 else
14940   ac_cpp_err=yes
14941 fi
14942 if test -z "$ac_cpp_err"; then
14943   ac_header_preproc=yes
14944 else
14945   echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14947
14948   ac_header_preproc=no
14949 fi
14950
14951 rm -f conftest.err conftest.$ac_ext
14952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14953 echo "${ECHO_T}$ac_header_preproc" >&6; }
14954
14955 # So?  What about this header?
14956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14957   yes:no: )
14958     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14960     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14962     ac_header_preproc=yes
14963     ;;
14964   no:yes:* )
14965     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14967     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14968 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14969     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14971     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14972 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14973     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14975     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14977     ( cat <<\_ASBOX
14978 ## ----------------------------------- ##
14979 ## Report this to llvmbugs@cs.uiuc.edu ##
14980 ## ----------------------------------- ##
14981 _ASBOX
14982      ) | sed "s/^/$as_me: WARNING:     /" >&2
14983     ;;
14984 esac
14985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14988   echo $ECHO_N "(cached) $ECHO_C" >&6
14989 else
14990   eval "$as_ac_Header=\$ac_header_preproc"
14991 fi
14992 ac_res=`eval echo '${'$as_ac_Header'}'`
14993                { echo "$as_me:$LINENO: result: $ac_res" >&5
14994 echo "${ECHO_T}$ac_res" >&6; }
14995
14996 fi
14997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14998   cat >>confdefs.h <<_ACEOF
14999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15000 _ACEOF
15001
15002 fi
15003
15004 done
15005
15006
15007
15008
15009
15010 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15011 do
15012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15014   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15017   echo $ECHO_N "(cached) $ECHO_C" >&6
15018 fi
15019 ac_res=`eval echo '${'$as_ac_Header'}'`
15020                { echo "$as_me:$LINENO: result: $ac_res" >&5
15021 echo "${ECHO_T}$ac_res" >&6; }
15022 else
15023   # Is the header compilable?
15024 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15026 cat >conftest.$ac_ext <<_ACEOF
15027 /* confdefs.h.  */
15028 _ACEOF
15029 cat confdefs.h >>conftest.$ac_ext
15030 cat >>conftest.$ac_ext <<_ACEOF
15031 /* end confdefs.h.  */
15032 $ac_includes_default
15033 #include <$ac_header>
15034 _ACEOF
15035 rm -f conftest.$ac_objext
15036 if { (ac_try="$ac_compile"
15037 case "(($ac_try" in
15038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039   *) ac_try_echo=$ac_try;;
15040 esac
15041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042   (eval "$ac_compile") 2>conftest.er1
15043   ac_status=$?
15044   grep -v '^ *+' conftest.er1 >conftest.err
15045   rm -f conftest.er1
15046   cat conftest.err >&5
15047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048   (exit $ac_status); } &&
15049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15050   { (case "(($ac_try" in
15051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052   *) ac_try_echo=$ac_try;;
15053 esac
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055   (eval "$ac_try") 2>&5
15056   ac_status=$?
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); }; } &&
15059          { ac_try='test -s conftest.$ac_objext'
15060   { (case "(($ac_try" in
15061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15062   *) ac_try_echo=$ac_try;;
15063 esac
15064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15065   (eval "$ac_try") 2>&5
15066   ac_status=$?
15067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068   (exit $ac_status); }; }; then
15069   ac_header_compiler=yes
15070 else
15071   echo "$as_me: failed program was:" >&5
15072 sed 's/^/| /' conftest.$ac_ext >&5
15073
15074         ac_header_compiler=no
15075 fi
15076
15077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15079 echo "${ECHO_T}$ac_header_compiler" >&6; }
15080
15081 # Is the header present?
15082 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15084 cat >conftest.$ac_ext <<_ACEOF
15085 /* confdefs.h.  */
15086 _ACEOF
15087 cat confdefs.h >>conftest.$ac_ext
15088 cat >>conftest.$ac_ext <<_ACEOF
15089 /* end confdefs.h.  */
15090 #include <$ac_header>
15091 _ACEOF
15092 if { (ac_try="$ac_cpp conftest.$ac_ext"
15093 case "(($ac_try" in
15094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095   *) ac_try_echo=$ac_try;;
15096 esac
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15099   ac_status=$?
15100   grep -v '^ *+' conftest.er1 >conftest.err
15101   rm -f conftest.er1
15102   cat conftest.err >&5
15103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); } >/dev/null; then
15105   if test -s conftest.err; then
15106     ac_cpp_err=$ac_c_preproc_warn_flag
15107     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15108   else
15109     ac_cpp_err=
15110   fi
15111 else
15112   ac_cpp_err=yes
15113 fi
15114 if test -z "$ac_cpp_err"; then
15115   ac_header_preproc=yes
15116 else
15117   echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15119
15120   ac_header_preproc=no
15121 fi
15122
15123 rm -f conftest.err conftest.$ac_ext
15124 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15125 echo "${ECHO_T}$ac_header_preproc" >&6; }
15126
15127 # So?  What about this header?
15128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15129   yes:no: )
15130     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15133 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15134     ac_header_preproc=yes
15135     ;;
15136   no:yes:* )
15137     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15138 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15139     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15140 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15141     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15142 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15143     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15144 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15145     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15147     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15148 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15149     ( cat <<\_ASBOX
15150 ## ----------------------------------- ##
15151 ## Report this to llvmbugs@cs.uiuc.edu ##
15152 ## ----------------------------------- ##
15153 _ASBOX
15154      ) | sed "s/^/$as_me: WARNING:     /" >&2
15155     ;;
15156 esac
15157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15160   echo $ECHO_N "(cached) $ECHO_C" >&6
15161 else
15162   eval "$as_ac_Header=\$ac_header_preproc"
15163 fi
15164 ac_res=`eval echo '${'$as_ac_Header'}'`
15165                { echo "$as_me:$LINENO: result: $ac_res" >&5
15166 echo "${ECHO_T}$ac_res" >&6; }
15167
15168 fi
15169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15170   cat >>confdefs.h <<_ACEOF
15171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15172 _ACEOF
15173
15174 fi
15175
15176 done
15177
15178
15179 for ac_header in valgrind/valgrind.h
15180 do
15181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15183   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15186   echo $ECHO_N "(cached) $ECHO_C" >&6
15187 fi
15188 ac_res=`eval echo '${'$as_ac_Header'}'`
15189                { echo "$as_me:$LINENO: result: $ac_res" >&5
15190 echo "${ECHO_T}$ac_res" >&6; }
15191 else
15192   # Is the header compilable?
15193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15195 cat >conftest.$ac_ext <<_ACEOF
15196 /* confdefs.h.  */
15197 _ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h.  */
15201 $ac_includes_default
15202 #include <$ac_header>
15203 _ACEOF
15204 rm -f conftest.$ac_objext
15205 if { (ac_try="$ac_compile"
15206 case "(($ac_try" in
15207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15208   *) ac_try_echo=$ac_try;;
15209 esac
15210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15211   (eval "$ac_compile") 2>conftest.er1
15212   ac_status=$?
15213   grep -v '^ *+' conftest.er1 >conftest.err
15214   rm -f conftest.er1
15215   cat conftest.err >&5
15216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217   (exit $ac_status); } &&
15218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15219   { (case "(($ac_try" in
15220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221   *) ac_try_echo=$ac_try;;
15222 esac
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224   (eval "$ac_try") 2>&5
15225   ac_status=$?
15226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227   (exit $ac_status); }; } &&
15228          { ac_try='test -s conftest.$ac_objext'
15229   { (case "(($ac_try" in
15230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231   *) ac_try_echo=$ac_try;;
15232 esac
15233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234   (eval "$ac_try") 2>&5
15235   ac_status=$?
15236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237   (exit $ac_status); }; }; then
15238   ac_header_compiler=yes
15239 else
15240   echo "$as_me: failed program was:" >&5
15241 sed 's/^/| /' conftest.$ac_ext >&5
15242
15243         ac_header_compiler=no
15244 fi
15245
15246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15248 echo "${ECHO_T}$ac_header_compiler" >&6; }
15249
15250 # Is the header present?
15251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15253 cat >conftest.$ac_ext <<_ACEOF
15254 /* confdefs.h.  */
15255 _ACEOF
15256 cat confdefs.h >>conftest.$ac_ext
15257 cat >>conftest.$ac_ext <<_ACEOF
15258 /* end confdefs.h.  */
15259 #include <$ac_header>
15260 _ACEOF
15261 if { (ac_try="$ac_cpp conftest.$ac_ext"
15262 case "(($ac_try" in
15263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264   *) ac_try_echo=$ac_try;;
15265 esac
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15268   ac_status=$?
15269   grep -v '^ *+' conftest.er1 >conftest.err
15270   rm -f conftest.er1
15271   cat conftest.err >&5
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); } >/dev/null; then
15274   if test -s conftest.err; then
15275     ac_cpp_err=$ac_c_preproc_warn_flag
15276     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15277   else
15278     ac_cpp_err=
15279   fi
15280 else
15281   ac_cpp_err=yes
15282 fi
15283 if test -z "$ac_cpp_err"; then
15284   ac_header_preproc=yes
15285 else
15286   echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15288
15289   ac_header_preproc=no
15290 fi
15291
15292 rm -f conftest.err conftest.$ac_ext
15293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15294 echo "${ECHO_T}$ac_header_preproc" >&6; }
15295
15296 # So?  What about this header?
15297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15298   yes:no: )
15299     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15303     ac_header_preproc=yes
15304     ;;
15305   no:yes:* )
15306     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15308     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15309 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15310     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15312     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15313 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15314     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15316     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15318     ( cat <<\_ASBOX
15319 ## ----------------------------------- ##
15320 ## Report this to llvmbugs@cs.uiuc.edu ##
15321 ## ----------------------------------- ##
15322 _ASBOX
15323      ) | sed "s/^/$as_me: WARNING:     /" >&2
15324     ;;
15325 esac
15326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15329   echo $ECHO_N "(cached) $ECHO_C" >&6
15330 else
15331   eval "$as_ac_Header=\$ac_header_preproc"
15332 fi
15333 ac_res=`eval echo '${'$as_ac_Header'}'`
15334                { echo "$as_me:$LINENO: result: $ac_res" >&5
15335 echo "${ECHO_T}$ac_res" >&6; }
15336
15337 fi
15338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15339   cat >>confdefs.h <<_ACEOF
15340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15341 _ACEOF
15342
15343 fi
15344
15345 done
15346
15347
15348 for ac_header in fenv.h
15349 do
15350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15352   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15355   echo $ECHO_N "(cached) $ECHO_C" >&6
15356 fi
15357 ac_res=`eval echo '${'$as_ac_Header'}'`
15358                { echo "$as_me:$LINENO: result: $ac_res" >&5
15359 echo "${ECHO_T}$ac_res" >&6; }
15360 else
15361   # Is the header compilable?
15362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15364 cat >conftest.$ac_ext <<_ACEOF
15365 /* confdefs.h.  */
15366 _ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h.  */
15370 $ac_includes_default
15371 #include <$ac_header>
15372 _ACEOF
15373 rm -f conftest.$ac_objext
15374 if { (ac_try="$ac_compile"
15375 case "(($ac_try" in
15376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377   *) ac_try_echo=$ac_try;;
15378 esac
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380   (eval "$ac_compile") 2>conftest.er1
15381   ac_status=$?
15382   grep -v '^ *+' conftest.er1 >conftest.err
15383   rm -f conftest.er1
15384   cat conftest.err >&5
15385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386   (exit $ac_status); } &&
15387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15388   { (case "(($ac_try" in
15389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390   *) ac_try_echo=$ac_try;;
15391 esac
15392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15393   (eval "$ac_try") 2>&5
15394   ac_status=$?
15395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396   (exit $ac_status); }; } &&
15397          { ac_try='test -s conftest.$ac_objext'
15398   { (case "(($ac_try" in
15399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400   *) ac_try_echo=$ac_try;;
15401 esac
15402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403   (eval "$ac_try") 2>&5
15404   ac_status=$?
15405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406   (exit $ac_status); }; }; then
15407   ac_header_compiler=yes
15408 else
15409   echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15411
15412         ac_header_compiler=no
15413 fi
15414
15415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15417 echo "${ECHO_T}$ac_header_compiler" >&6; }
15418
15419 # Is the header present?
15420 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15422 cat >conftest.$ac_ext <<_ACEOF
15423 /* confdefs.h.  */
15424 _ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h.  */
15428 #include <$ac_header>
15429 _ACEOF
15430 if { (ac_try="$ac_cpp conftest.$ac_ext"
15431 case "(($ac_try" in
15432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433   *) ac_try_echo=$ac_try;;
15434 esac
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15437   ac_status=$?
15438   grep -v '^ *+' conftest.er1 >conftest.err
15439   rm -f conftest.er1
15440   cat conftest.err >&5
15441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); } >/dev/null; then
15443   if test -s conftest.err; then
15444     ac_cpp_err=$ac_c_preproc_warn_flag
15445     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15446   else
15447     ac_cpp_err=
15448   fi
15449 else
15450   ac_cpp_err=yes
15451 fi
15452 if test -z "$ac_cpp_err"; then
15453   ac_header_preproc=yes
15454 else
15455   echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15457
15458   ac_header_preproc=no
15459 fi
15460
15461 rm -f conftest.err conftest.$ac_ext
15462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15463 echo "${ECHO_T}$ac_header_preproc" >&6; }
15464
15465 # So?  What about this header?
15466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15467   yes:no: )
15468     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15472     ac_header_preproc=yes
15473     ;;
15474   no:yes:* )
15475     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15477     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15478 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15479     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15481     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15482 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15485     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15487     ( cat <<\_ASBOX
15488 ## ----------------------------------- ##
15489 ## Report this to llvmbugs@cs.uiuc.edu ##
15490 ## ----------------------------------- ##
15491 _ASBOX
15492      ) | sed "s/^/$as_me: WARNING:     /" >&2
15493     ;;
15494 esac
15495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15498   echo $ECHO_N "(cached) $ECHO_C" >&6
15499 else
15500   eval "$as_ac_Header=\$ac_header_preproc"
15501 fi
15502 ac_res=`eval echo '${'$as_ac_Header'}'`
15503                { echo "$as_me:$LINENO: result: $ac_res" >&5
15504 echo "${ECHO_T}$ac_res" >&6; }
15505
15506 fi
15507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15508   cat >>confdefs.h <<_ACEOF
15509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15510 _ACEOF
15511
15512 fi
15513
15514 done
15515
15516 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15517
15518 for ac_header in pthread.h
15519 do
15520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15522   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15525   echo $ECHO_N "(cached) $ECHO_C" >&6
15526 fi
15527 ac_res=`eval echo '${'$as_ac_Header'}'`
15528                { echo "$as_me:$LINENO: result: $ac_res" >&5
15529 echo "${ECHO_T}$ac_res" >&6; }
15530 else
15531   # Is the header compilable?
15532 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15534 cat >conftest.$ac_ext <<_ACEOF
15535 /* confdefs.h.  */
15536 _ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h.  */
15540 $ac_includes_default
15541 #include <$ac_header>
15542 _ACEOF
15543 rm -f conftest.$ac_objext
15544 if { (ac_try="$ac_compile"
15545 case "(($ac_try" in
15546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547   *) ac_try_echo=$ac_try;;
15548 esac
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550   (eval "$ac_compile") 2>conftest.er1
15551   ac_status=$?
15552   grep -v '^ *+' conftest.er1 >conftest.err
15553   rm -f conftest.er1
15554   cat conftest.err >&5
15555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556   (exit $ac_status); } &&
15557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15558   { (case "(($ac_try" in
15559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560   *) ac_try_echo=$ac_try;;
15561 esac
15562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15563   (eval "$ac_try") 2>&5
15564   ac_status=$?
15565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566   (exit $ac_status); }; } &&
15567          { ac_try='test -s conftest.$ac_objext'
15568   { (case "(($ac_try" in
15569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15570   *) ac_try_echo=$ac_try;;
15571 esac
15572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15573   (eval "$ac_try") 2>&5
15574   ac_status=$?
15575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576   (exit $ac_status); }; }; then
15577   ac_header_compiler=yes
15578 else
15579   echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15581
15582         ac_header_compiler=no
15583 fi
15584
15585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15587 echo "${ECHO_T}$ac_header_compiler" >&6; }
15588
15589 # Is the header present?
15590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15592 cat >conftest.$ac_ext <<_ACEOF
15593 /* confdefs.h.  */
15594 _ACEOF
15595 cat confdefs.h >>conftest.$ac_ext
15596 cat >>conftest.$ac_ext <<_ACEOF
15597 /* end confdefs.h.  */
15598 #include <$ac_header>
15599 _ACEOF
15600 if { (ac_try="$ac_cpp conftest.$ac_ext"
15601 case "(($ac_try" in
15602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603   *) ac_try_echo=$ac_try;;
15604 esac
15605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15607   ac_status=$?
15608   grep -v '^ *+' conftest.er1 >conftest.err
15609   rm -f conftest.er1
15610   cat conftest.err >&5
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); } >/dev/null; then
15613   if test -s conftest.err; then
15614     ac_cpp_err=$ac_c_preproc_warn_flag
15615     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15616   else
15617     ac_cpp_err=
15618   fi
15619 else
15620   ac_cpp_err=yes
15621 fi
15622 if test -z "$ac_cpp_err"; then
15623   ac_header_preproc=yes
15624 else
15625   echo "$as_me: failed program was:" >&5
15626 sed 's/^/| /' conftest.$ac_ext >&5
15627
15628   ac_header_preproc=no
15629 fi
15630
15631 rm -f conftest.err conftest.$ac_ext
15632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15633 echo "${ECHO_T}$ac_header_preproc" >&6; }
15634
15635 # So?  What about this header?
15636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15637   yes:no: )
15638     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15642     ac_header_preproc=yes
15643     ;;
15644   no:yes:* )
15645     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15647     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15648 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15649     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15651     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15652 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15655     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15657     ( cat <<\_ASBOX
15658 ## ----------------------------------- ##
15659 ## Report this to llvmbugs@cs.uiuc.edu ##
15660 ## ----------------------------------- ##
15661 _ASBOX
15662      ) | sed "s/^/$as_me: WARNING:     /" >&2
15663     ;;
15664 esac
15665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15668   echo $ECHO_N "(cached) $ECHO_C" >&6
15669 else
15670   eval "$as_ac_Header=\$ac_header_preproc"
15671 fi
15672 ac_res=`eval echo '${'$as_ac_Header'}'`
15673                { echo "$as_me:$LINENO: result: $ac_res" >&5
15674 echo "${ECHO_T}$ac_res" >&6; }
15675
15676 fi
15677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15678   cat >>confdefs.h <<_ACEOF
15679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15680 _ACEOF
15681  HAVE_PTHREAD=1
15682
15683 else
15684   HAVE_PTHREAD=0
15685
15686 fi
15687
15688 done
15689
15690 else
15691   HAVE_PTHREAD=0
15692
15693 fi
15694
15695 if test "$llvm_cv_enable_libffi" = "yes" ; then
15696
15697
15698 for ac_header in ffi.h ffi/ffi.h
15699 do
15700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15702   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15705   echo $ECHO_N "(cached) $ECHO_C" >&6
15706 fi
15707 ac_res=`eval echo '${'$as_ac_Header'}'`
15708                { echo "$as_me:$LINENO: result: $ac_res" >&5
15709 echo "${ECHO_T}$ac_res" >&6; }
15710 else
15711   # Is the header compilable?
15712 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15714 cat >conftest.$ac_ext <<_ACEOF
15715 /* confdefs.h.  */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h.  */
15720 $ac_includes_default
15721 #include <$ac_header>
15722 _ACEOF
15723 rm -f conftest.$ac_objext
15724 if { (ac_try="$ac_compile"
15725 case "(($ac_try" in
15726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727   *) ac_try_echo=$ac_try;;
15728 esac
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730   (eval "$ac_compile") 2>conftest.er1
15731   ac_status=$?
15732   grep -v '^ *+' conftest.er1 >conftest.err
15733   rm -f conftest.er1
15734   cat conftest.err >&5
15735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736   (exit $ac_status); } &&
15737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15738   { (case "(($ac_try" in
15739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740   *) ac_try_echo=$ac_try;;
15741 esac
15742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743   (eval "$ac_try") 2>&5
15744   ac_status=$?
15745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746   (exit $ac_status); }; } &&
15747          { ac_try='test -s conftest.$ac_objext'
15748   { (case "(($ac_try" in
15749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750   *) ac_try_echo=$ac_try;;
15751 esac
15752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753   (eval "$ac_try") 2>&5
15754   ac_status=$?
15755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756   (exit $ac_status); }; }; then
15757   ac_header_compiler=yes
15758 else
15759   echo "$as_me: failed program was:" >&5
15760 sed 's/^/| /' conftest.$ac_ext >&5
15761
15762         ac_header_compiler=no
15763 fi
15764
15765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15767 echo "${ECHO_T}$ac_header_compiler" >&6; }
15768
15769 # Is the header present?
15770 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15772 cat >conftest.$ac_ext <<_ACEOF
15773 /* confdefs.h.  */
15774 _ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h.  */
15778 #include <$ac_header>
15779 _ACEOF
15780 if { (ac_try="$ac_cpp conftest.$ac_ext"
15781 case "(($ac_try" in
15782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783   *) ac_try_echo=$ac_try;;
15784 esac
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15787   ac_status=$?
15788   grep -v '^ *+' conftest.er1 >conftest.err
15789   rm -f conftest.er1
15790   cat conftest.err >&5
15791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792   (exit $ac_status); } >/dev/null; then
15793   if test -s conftest.err; then
15794     ac_cpp_err=$ac_c_preproc_warn_flag
15795     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15796   else
15797     ac_cpp_err=
15798   fi
15799 else
15800   ac_cpp_err=yes
15801 fi
15802 if test -z "$ac_cpp_err"; then
15803   ac_header_preproc=yes
15804 else
15805   echo "$as_me: failed program was:" >&5
15806 sed 's/^/| /' conftest.$ac_ext >&5
15807
15808   ac_header_preproc=no
15809 fi
15810
15811 rm -f conftest.err conftest.$ac_ext
15812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15813 echo "${ECHO_T}$ac_header_preproc" >&6; }
15814
15815 # So?  What about this header?
15816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15817   yes:no: )
15818     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15822     ac_header_preproc=yes
15823     ;;
15824   no:yes:* )
15825     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15827     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15828 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15829     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15831     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15832 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15835     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15837     ( cat <<\_ASBOX
15838 ## ----------------------------------- ##
15839 ## Report this to llvmbugs@cs.uiuc.edu ##
15840 ## ----------------------------------- ##
15841 _ASBOX
15842      ) | sed "s/^/$as_me: WARNING:     /" >&2
15843     ;;
15844 esac
15845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15848   echo $ECHO_N "(cached) $ECHO_C" >&6
15849 else
15850   eval "$as_ac_Header=\$ac_header_preproc"
15851 fi
15852 ac_res=`eval echo '${'$as_ac_Header'}'`
15853                { echo "$as_me:$LINENO: result: $ac_res" >&5
15854 echo "${ECHO_T}$ac_res" >&6; }
15855
15856 fi
15857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15858   cat >>confdefs.h <<_ACEOF
15859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15860 _ACEOF
15861
15862 fi
15863
15864 done
15865
15866 fi
15867
15868
15869 for ac_header in CrashReporterClient.h
15870 do
15871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15873   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15876   echo $ECHO_N "(cached) $ECHO_C" >&6
15877 fi
15878 ac_res=`eval echo '${'$as_ac_Header'}'`
15879                { echo "$as_me:$LINENO: result: $ac_res" >&5
15880 echo "${ECHO_T}$ac_res" >&6; }
15881 else
15882   # Is the header compilable?
15883 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15885 cat >conftest.$ac_ext <<_ACEOF
15886 /* confdefs.h.  */
15887 _ACEOF
15888 cat confdefs.h >>conftest.$ac_ext
15889 cat >>conftest.$ac_ext <<_ACEOF
15890 /* end confdefs.h.  */
15891 $ac_includes_default
15892 #include <$ac_header>
15893 _ACEOF
15894 rm -f conftest.$ac_objext
15895 if { (ac_try="$ac_compile"
15896 case "(($ac_try" in
15897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898   *) ac_try_echo=$ac_try;;
15899 esac
15900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901   (eval "$ac_compile") 2>conftest.er1
15902   ac_status=$?
15903   grep -v '^ *+' conftest.er1 >conftest.err
15904   rm -f conftest.er1
15905   cat conftest.err >&5
15906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907   (exit $ac_status); } &&
15908          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15909   { (case "(($ac_try" in
15910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15911   *) ac_try_echo=$ac_try;;
15912 esac
15913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15914   (eval "$ac_try") 2>&5
15915   ac_status=$?
15916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917   (exit $ac_status); }; } &&
15918          { ac_try='test -s conftest.$ac_objext'
15919   { (case "(($ac_try" in
15920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15921   *) ac_try_echo=$ac_try;;
15922 esac
15923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15924   (eval "$ac_try") 2>&5
15925   ac_status=$?
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   (exit $ac_status); }; }; then
15928   ac_header_compiler=yes
15929 else
15930   echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15932
15933         ac_header_compiler=no
15934 fi
15935
15936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15938 echo "${ECHO_T}$ac_header_compiler" >&6; }
15939
15940 # Is the header present?
15941 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15943 cat >conftest.$ac_ext <<_ACEOF
15944 /* confdefs.h.  */
15945 _ACEOF
15946 cat confdefs.h >>conftest.$ac_ext
15947 cat >>conftest.$ac_ext <<_ACEOF
15948 /* end confdefs.h.  */
15949 #include <$ac_header>
15950 _ACEOF
15951 if { (ac_try="$ac_cpp conftest.$ac_ext"
15952 case "(($ac_try" in
15953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954   *) ac_try_echo=$ac_try;;
15955 esac
15956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15958   ac_status=$?
15959   grep -v '^ *+' conftest.er1 >conftest.err
15960   rm -f conftest.er1
15961   cat conftest.err >&5
15962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963   (exit $ac_status); } >/dev/null; then
15964   if test -s conftest.err; then
15965     ac_cpp_err=$ac_c_preproc_warn_flag
15966     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15967   else
15968     ac_cpp_err=
15969   fi
15970 else
15971   ac_cpp_err=yes
15972 fi
15973 if test -z "$ac_cpp_err"; then
15974   ac_header_preproc=yes
15975 else
15976   echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.$ac_ext >&5
15978
15979   ac_header_preproc=no
15980 fi
15981
15982 rm -f conftest.err conftest.$ac_ext
15983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15984 echo "${ECHO_T}$ac_header_preproc" >&6; }
15985
15986 # So?  What about this header?
15987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15988   yes:no: )
15989     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15993     ac_header_preproc=yes
15994     ;;
15995   no:yes:* )
15996     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15998     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15999 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16000     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16002     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16003 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16006     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16008     ( cat <<\_ASBOX
16009 ## ----------------------------------- ##
16010 ## Report this to llvmbugs@cs.uiuc.edu ##
16011 ## ----------------------------------- ##
16012 _ASBOX
16013      ) | sed "s/^/$as_me: WARNING:     /" >&2
16014     ;;
16015 esac
16016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16019   echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021   eval "$as_ac_Header=\$ac_header_preproc"
16022 fi
16023 ac_res=`eval echo '${'$as_ac_Header'}'`
16024                { echo "$as_me:$LINENO: result: $ac_res" >&5
16025 echo "${ECHO_T}$ac_res" >&6; }
16026
16027 fi
16028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16029   cat >>confdefs.h <<_ACEOF
16030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16031 _ACEOF
16032
16033 fi
16034
16035 done
16036
16037
16038 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16039 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16040 cat >conftest.$ac_ext <<_ACEOF
16041 /* confdefs.h.  */
16042 _ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h.  */
16046 extern const char *__crashreporter_info__;
16047       int main() {
16048         __crashreporter_info__ = "test";
16049         return 0;
16050       }
16051
16052 _ACEOF
16053 rm -f conftest.$ac_objext conftest$ac_exeext
16054 if { (ac_try="$ac_link"
16055 case "(($ac_try" in
16056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16057   *) ac_try_echo=$ac_try;;
16058 esac
16059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16060   (eval "$ac_link") 2>conftest.er1
16061   ac_status=$?
16062   grep -v '^ *+' conftest.er1 >conftest.err
16063   rm -f conftest.er1
16064   cat conftest.err >&5
16065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066   (exit $ac_status); } &&
16067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16068   { (case "(($ac_try" in
16069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16070   *) ac_try_echo=$ac_try;;
16071 esac
16072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16073   (eval "$ac_try") 2>&5
16074   ac_status=$?
16075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076   (exit $ac_status); }; } &&
16077          { ac_try='test -s conftest$ac_exeext'
16078   { (case "(($ac_try" in
16079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16080   *) ac_try_echo=$ac_try;;
16081 esac
16082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16083   (eval "$ac_try") 2>&5
16084   ac_status=$?
16085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086   (exit $ac_status); }; }; then
16087   { echo "$as_me:$LINENO: result: yes" >&5
16088 echo "${ECHO_T}yes" >&6; }
16089
16090 cat >>confdefs.h <<\_ACEOF
16091 #define HAVE_CRASHREPORTER_INFO 1
16092 _ACEOF
16093
16094 else
16095   echo "$as_me: failed program was:" >&5
16096 sed 's/^/| /' conftest.$ac_ext >&5
16097
16098         { echo "$as_me:$LINENO: result: no" >&5
16099 echo "${ECHO_T}no" >&6; }
16100
16101 cat >>confdefs.h <<\_ACEOF
16102 #define HAVE_CRASHREPORTER_INFO 0
16103 _ACEOF
16104
16105 fi
16106
16107 rm -f core conftest.err conftest.$ac_objext \
16108       conftest$ac_exeext conftest.$ac_ext
16109
16110
16111
16112
16113   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16114 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16115 if test "${ac_cv_huge_val_sanity+set}" = set; then
16116   echo $ECHO_N "(cached) $ECHO_C" >&6
16117 else
16118
16119     ac_ext=cpp
16120 ac_cpp='$CXXCPP $CPPFLAGS'
16121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16124
16125     ac_save_CXXFLAGS=$CXXFLAGS
16126     CXXFLAGS=-pedantic
16127     if test "$cross_compiling" = yes; then
16128   ac_cv_huge_val_sanity=yes
16129 else
16130   cat >conftest.$ac_ext <<_ACEOF
16131 /* confdefs.h.  */
16132 _ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h.  */
16136 #include <math.h>
16137 int
16138 main ()
16139 {
16140 double x = HUGE_VAL; return x != x;
16141   ;
16142   return 0;
16143 }
16144 _ACEOF
16145 rm -f conftest$ac_exeext
16146 if { (ac_try="$ac_link"
16147 case "(($ac_try" in
16148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16149   *) ac_try_echo=$ac_try;;
16150 esac
16151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16152   (eval "$ac_link") 2>&5
16153   ac_status=$?
16154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16156   { (case "(($ac_try" in
16157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158   *) ac_try_echo=$ac_try;;
16159 esac
16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161   (eval "$ac_try") 2>&5
16162   ac_status=$?
16163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164   (exit $ac_status); }; }; then
16165   ac_cv_huge_val_sanity=yes
16166 else
16167   echo "$as_me: program exited with status $ac_status" >&5
16168 echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.$ac_ext >&5
16170
16171 ( exit $ac_status )
16172 ac_cv_huge_val_sanity=no
16173 fi
16174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16175 fi
16176
16177
16178     CXXFLAGS=$ac_save_CXXFLAGS
16179     ac_ext=c
16180 ac_cpp='$CPP $CPPFLAGS'
16181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16184
16185
16186 fi
16187 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16188 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16189   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16190
16191
16192 { echo "$as_me:$LINENO: checking for pid_t" >&5
16193 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16194 if test "${ac_cv_type_pid_t+set}" = set; then
16195   echo $ECHO_N "(cached) $ECHO_C" >&6
16196 else
16197   cat >conftest.$ac_ext <<_ACEOF
16198 /* confdefs.h.  */
16199 _ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h.  */
16203 $ac_includes_default
16204 typedef pid_t ac__type_new_;
16205 int
16206 main ()
16207 {
16208 if ((ac__type_new_ *) 0)
16209   return 0;
16210 if (sizeof (ac__type_new_))
16211   return 0;
16212   ;
16213   return 0;
16214 }
16215 _ACEOF
16216 rm -f conftest.$ac_objext
16217 if { (ac_try="$ac_compile"
16218 case "(($ac_try" in
16219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220   *) ac_try_echo=$ac_try;;
16221 esac
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223   (eval "$ac_compile") 2>conftest.er1
16224   ac_status=$?
16225   grep -v '^ *+' conftest.er1 >conftest.err
16226   rm -f conftest.er1
16227   cat conftest.err >&5
16228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); } &&
16230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16231   { (case "(($ac_try" in
16232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233   *) ac_try_echo=$ac_try;;
16234 esac
16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236   (eval "$ac_try") 2>&5
16237   ac_status=$?
16238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239   (exit $ac_status); }; } &&
16240          { ac_try='test -s conftest.$ac_objext'
16241   { (case "(($ac_try" in
16242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16243   *) ac_try_echo=$ac_try;;
16244 esac
16245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16246   (eval "$ac_try") 2>&5
16247   ac_status=$?
16248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249   (exit $ac_status); }; }; then
16250   ac_cv_type_pid_t=yes
16251 else
16252   echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16254
16255         ac_cv_type_pid_t=no
16256 fi
16257
16258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16259 fi
16260 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16261 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16262 if test $ac_cv_type_pid_t = yes; then
16263   :
16264 else
16265
16266 cat >>confdefs.h <<_ACEOF
16267 #define pid_t int
16268 _ACEOF
16269
16270 fi
16271
16272 { echo "$as_me:$LINENO: checking for size_t" >&5
16273 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16274 if test "${ac_cv_type_size_t+set}" = set; then
16275   echo $ECHO_N "(cached) $ECHO_C" >&6
16276 else
16277   cat >conftest.$ac_ext <<_ACEOF
16278 /* confdefs.h.  */
16279 _ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h.  */
16283 $ac_includes_default
16284 typedef size_t ac__type_new_;
16285 int
16286 main ()
16287 {
16288 if ((ac__type_new_ *) 0)
16289   return 0;
16290 if (sizeof (ac__type_new_))
16291   return 0;
16292   ;
16293   return 0;
16294 }
16295 _ACEOF
16296 rm -f conftest.$ac_objext
16297 if { (ac_try="$ac_compile"
16298 case "(($ac_try" in
16299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16300   *) ac_try_echo=$ac_try;;
16301 esac
16302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16303   (eval "$ac_compile") 2>conftest.er1
16304   ac_status=$?
16305   grep -v '^ *+' conftest.er1 >conftest.err
16306   rm -f conftest.er1
16307   cat conftest.err >&5
16308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309   (exit $ac_status); } &&
16310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16311   { (case "(($ac_try" in
16312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313   *) ac_try_echo=$ac_try;;
16314 esac
16315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16316   (eval "$ac_try") 2>&5
16317   ac_status=$?
16318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319   (exit $ac_status); }; } &&
16320          { ac_try='test -s conftest.$ac_objext'
16321   { (case "(($ac_try" in
16322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16323   *) ac_try_echo=$ac_try;;
16324 esac
16325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16326   (eval "$ac_try") 2>&5
16327   ac_status=$?
16328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329   (exit $ac_status); }; }; then
16330   ac_cv_type_size_t=yes
16331 else
16332   echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16334
16335         ac_cv_type_size_t=no
16336 fi
16337
16338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339 fi
16340 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16341 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16342 if test $ac_cv_type_size_t = yes; then
16343   :
16344 else
16345
16346 cat >>confdefs.h <<_ACEOF
16347 #define size_t unsigned int
16348 _ACEOF
16349
16350 fi
16351
16352
16353 cat >>confdefs.h <<_ACEOF
16354 #define RETSIGTYPE void
16355 _ACEOF
16356
16357 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16358 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16359 if test "${ac_cv_struct_tm+set}" = set; then
16360   echo $ECHO_N "(cached) $ECHO_C" >&6
16361 else
16362   cat >conftest.$ac_ext <<_ACEOF
16363 /* confdefs.h.  */
16364 _ACEOF
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h.  */
16368 #include <sys/types.h>
16369 #include <time.h>
16370
16371 int
16372 main ()
16373 {
16374 struct tm *tp; tp->tm_sec;
16375   ;
16376   return 0;
16377 }
16378 _ACEOF
16379 rm -f conftest.$ac_objext
16380 if { (ac_try="$ac_compile"
16381 case "(($ac_try" in
16382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383   *) ac_try_echo=$ac_try;;
16384 esac
16385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386   (eval "$ac_compile") 2>conftest.er1
16387   ac_status=$?
16388   grep -v '^ *+' conftest.er1 >conftest.err
16389   rm -f conftest.er1
16390   cat conftest.err >&5
16391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392   (exit $ac_status); } &&
16393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16394   { (case "(($ac_try" in
16395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16396   *) ac_try_echo=$ac_try;;
16397 esac
16398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16399   (eval "$ac_try") 2>&5
16400   ac_status=$?
16401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402   (exit $ac_status); }; } &&
16403          { ac_try='test -s conftest.$ac_objext'
16404   { (case "(($ac_try" in
16405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406   *) ac_try_echo=$ac_try;;
16407 esac
16408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409   (eval "$ac_try") 2>&5
16410   ac_status=$?
16411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412   (exit $ac_status); }; }; then
16413   ac_cv_struct_tm=time.h
16414 else
16415   echo "$as_me: failed program was:" >&5
16416 sed 's/^/| /' conftest.$ac_ext >&5
16417
16418         ac_cv_struct_tm=sys/time.h
16419 fi
16420
16421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16422 fi
16423 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16424 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16425 if test $ac_cv_struct_tm = sys/time.h; then
16426
16427 cat >>confdefs.h <<\_ACEOF
16428 #define TM_IN_SYS_TIME 1
16429 _ACEOF
16430
16431 fi
16432
16433 { echo "$as_me:$LINENO: checking for int64_t" >&5
16434 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16435 if test "${ac_cv_type_int64_t+set}" = set; then
16436   echo $ECHO_N "(cached) $ECHO_C" >&6
16437 else
16438   cat >conftest.$ac_ext <<_ACEOF
16439 /* confdefs.h.  */
16440 _ACEOF
16441 cat confdefs.h >>conftest.$ac_ext
16442 cat >>conftest.$ac_ext <<_ACEOF
16443 /* end confdefs.h.  */
16444 $ac_includes_default
16445 typedef int64_t ac__type_new_;
16446 int
16447 main ()
16448 {
16449 if ((ac__type_new_ *) 0)
16450   return 0;
16451 if (sizeof (ac__type_new_))
16452   return 0;
16453   ;
16454   return 0;
16455 }
16456 _ACEOF
16457 rm -f conftest.$ac_objext
16458 if { (ac_try="$ac_compile"
16459 case "(($ac_try" in
16460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461   *) ac_try_echo=$ac_try;;
16462 esac
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464   (eval "$ac_compile") 2>conftest.er1
16465   ac_status=$?
16466   grep -v '^ *+' conftest.er1 >conftest.err
16467   rm -f conftest.er1
16468   cat conftest.err >&5
16469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470   (exit $ac_status); } &&
16471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16472   { (case "(($ac_try" in
16473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474   *) ac_try_echo=$ac_try;;
16475 esac
16476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477   (eval "$ac_try") 2>&5
16478   ac_status=$?
16479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480   (exit $ac_status); }; } &&
16481          { ac_try='test -s conftest.$ac_objext'
16482   { (case "(($ac_try" in
16483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484   *) ac_try_echo=$ac_try;;
16485 esac
16486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487   (eval "$ac_try") 2>&5
16488   ac_status=$?
16489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490   (exit $ac_status); }; }; then
16491   ac_cv_type_int64_t=yes
16492 else
16493   echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16495
16496         ac_cv_type_int64_t=no
16497 fi
16498
16499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16500 fi
16501 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16502 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16503 if test $ac_cv_type_int64_t = yes; then
16504
16505 cat >>confdefs.h <<_ACEOF
16506 #define HAVE_INT64_T 1
16507 _ACEOF
16508
16509
16510 else
16511   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16512 echo "$as_me: error: Type int64_t required but not found" >&2;}
16513    { (exit 1); exit 1; }; }
16514 fi
16515
16516 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16517 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16518 if test "${ac_cv_type_uint64_t+set}" = set; then
16519   echo $ECHO_N "(cached) $ECHO_C" >&6
16520 else
16521   cat >conftest.$ac_ext <<_ACEOF
16522 /* confdefs.h.  */
16523 _ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h.  */
16527 $ac_includes_default
16528 typedef uint64_t ac__type_new_;
16529 int
16530 main ()
16531 {
16532 if ((ac__type_new_ *) 0)
16533   return 0;
16534 if (sizeof (ac__type_new_))
16535   return 0;
16536   ;
16537   return 0;
16538 }
16539 _ACEOF
16540 rm -f conftest.$ac_objext
16541 if { (ac_try="$ac_compile"
16542 case "(($ac_try" in
16543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544   *) ac_try_echo=$ac_try;;
16545 esac
16546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16547   (eval "$ac_compile") 2>conftest.er1
16548   ac_status=$?
16549   grep -v '^ *+' conftest.er1 >conftest.err
16550   rm -f conftest.er1
16551   cat conftest.err >&5
16552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553   (exit $ac_status); } &&
16554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16555   { (case "(($ac_try" in
16556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557   *) ac_try_echo=$ac_try;;
16558 esac
16559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16560   (eval "$ac_try") 2>&5
16561   ac_status=$?
16562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563   (exit $ac_status); }; } &&
16564          { ac_try='test -s conftest.$ac_objext'
16565   { (case "(($ac_try" in
16566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567   *) ac_try_echo=$ac_try;;
16568 esac
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570   (eval "$ac_try") 2>&5
16571   ac_status=$?
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); }; }; then
16574   ac_cv_type_uint64_t=yes
16575 else
16576   echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16578
16579         ac_cv_type_uint64_t=no
16580 fi
16581
16582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16583 fi
16584 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16585 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16586 if test $ac_cv_type_uint64_t = yes; then
16587
16588 cat >>confdefs.h <<_ACEOF
16589 #define HAVE_UINT64_T 1
16590 _ACEOF
16591
16592
16593 else
16594   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16595 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16596 if test "${ac_cv_type_u_int64_t+set}" = set; then
16597   echo $ECHO_N "(cached) $ECHO_C" >&6
16598 else
16599   cat >conftest.$ac_ext <<_ACEOF
16600 /* confdefs.h.  */
16601 _ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h.  */
16605 $ac_includes_default
16606 typedef u_int64_t ac__type_new_;
16607 int
16608 main ()
16609 {
16610 if ((ac__type_new_ *) 0)
16611   return 0;
16612 if (sizeof (ac__type_new_))
16613   return 0;
16614   ;
16615   return 0;
16616 }
16617 _ACEOF
16618 rm -f conftest.$ac_objext
16619 if { (ac_try="$ac_compile"
16620 case "(($ac_try" in
16621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622   *) ac_try_echo=$ac_try;;
16623 esac
16624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625   (eval "$ac_compile") 2>conftest.er1
16626   ac_status=$?
16627   grep -v '^ *+' conftest.er1 >conftest.err
16628   rm -f conftest.er1
16629   cat conftest.err >&5
16630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631   (exit $ac_status); } &&
16632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16633   { (case "(($ac_try" in
16634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635   *) ac_try_echo=$ac_try;;
16636 esac
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638   (eval "$ac_try") 2>&5
16639   ac_status=$?
16640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641   (exit $ac_status); }; } &&
16642          { ac_try='test -s conftest.$ac_objext'
16643   { (case "(($ac_try" in
16644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645   *) ac_try_echo=$ac_try;;
16646 esac
16647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648   (eval "$ac_try") 2>&5
16649   ac_status=$?
16650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651   (exit $ac_status); }; }; then
16652   ac_cv_type_u_int64_t=yes
16653 else
16654   echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.$ac_ext >&5
16656
16657         ac_cv_type_u_int64_t=no
16658 fi
16659
16660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16661 fi
16662 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16663 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16664 if test $ac_cv_type_u_int64_t = yes; then
16665
16666 cat >>confdefs.h <<_ACEOF
16667 #define HAVE_U_INT64_T 1
16668 _ACEOF
16669
16670
16671 else
16672   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16673 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16674    { (exit 1); exit 1; }; }
16675 fi
16676
16677 fi
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16689 do
16690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16694   echo $ECHO_N "(cached) $ECHO_C" >&6
16695 else
16696   cat >conftest.$ac_ext <<_ACEOF
16697 /* confdefs.h.  */
16698 _ACEOF
16699 cat confdefs.h >>conftest.$ac_ext
16700 cat >>conftest.$ac_ext <<_ACEOF
16701 /* end confdefs.h.  */
16702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16704 #define $ac_func innocuous_$ac_func
16705
16706 /* System header to define __stub macros and hopefully few prototypes,
16707     which can conflict with char $ac_func (); below.
16708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16709     <limits.h> exists even on freestanding compilers.  */
16710
16711 #ifdef __STDC__
16712 # include <limits.h>
16713 #else
16714 # include <assert.h>
16715 #endif
16716
16717 #undef $ac_func
16718
16719 /* Override any GCC internal prototype to avoid an error.
16720    Use char because int might match the return type of a GCC
16721    builtin and then its argument prototype would still apply.  */
16722 #ifdef __cplusplus
16723 extern "C"
16724 #endif
16725 char $ac_func ();
16726 /* The GNU C library defines this for functions which it implements
16727     to always fail with ENOSYS.  Some functions are actually named
16728     something starting with __ and the normal name is an alias.  */
16729 #if defined __stub_$ac_func || defined __stub___$ac_func
16730 choke me
16731 #endif
16732
16733 int
16734 main ()
16735 {
16736 return $ac_func ();
16737   ;
16738   return 0;
16739 }
16740 _ACEOF
16741 rm -f conftest.$ac_objext conftest$ac_exeext
16742 if { (ac_try="$ac_link"
16743 case "(($ac_try" in
16744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745   *) ac_try_echo=$ac_try;;
16746 esac
16747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748   (eval "$ac_link") 2>conftest.er1
16749   ac_status=$?
16750   grep -v '^ *+' conftest.er1 >conftest.err
16751   rm -f conftest.er1
16752   cat conftest.err >&5
16753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754   (exit $ac_status); } &&
16755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16756   { (case "(($ac_try" in
16757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16758   *) ac_try_echo=$ac_try;;
16759 esac
16760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16761   (eval "$ac_try") 2>&5
16762   ac_status=$?
16763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764   (exit $ac_status); }; } &&
16765          { ac_try='test -s conftest$ac_exeext'
16766   { (case "(($ac_try" in
16767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768   *) ac_try_echo=$ac_try;;
16769 esac
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771   (eval "$ac_try") 2>&5
16772   ac_status=$?
16773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774   (exit $ac_status); }; }; then
16775   eval "$as_ac_var=yes"
16776 else
16777   echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16779
16780         eval "$as_ac_var=no"
16781 fi
16782
16783 rm -f core conftest.err conftest.$ac_objext \
16784       conftest$ac_exeext conftest.$ac_ext
16785 fi
16786 ac_res=`eval echo '${'$as_ac_var'}'`
16787                { echo "$as_me:$LINENO: result: $ac_res" >&5
16788 echo "${ECHO_T}$ac_res" >&6; }
16789 if test `eval echo '${'$as_ac_var'}'` = yes; then
16790   cat >>confdefs.h <<_ACEOF
16791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16792 _ACEOF
16793
16794 fi
16795 done
16796
16797
16798
16799
16800
16801 for ac_func in powf fmodf strtof round
16802 do
16803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16807   echo $ECHO_N "(cached) $ECHO_C" >&6
16808 else
16809   cat >conftest.$ac_ext <<_ACEOF
16810 /* confdefs.h.  */
16811 _ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h.  */
16815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16817 #define $ac_func innocuous_$ac_func
16818
16819 /* System header to define __stub macros and hopefully few prototypes,
16820     which can conflict with char $ac_func (); below.
16821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16822     <limits.h> exists even on freestanding compilers.  */
16823
16824 #ifdef __STDC__
16825 # include <limits.h>
16826 #else
16827 # include <assert.h>
16828 #endif
16829
16830 #undef $ac_func
16831
16832 /* Override any GCC internal prototype to avoid an error.
16833    Use char because int might match the return type of a GCC
16834    builtin and then its argument prototype would still apply.  */
16835 #ifdef __cplusplus
16836 extern "C"
16837 #endif
16838 char $ac_func ();
16839 /* The GNU C library defines this for functions which it implements
16840     to always fail with ENOSYS.  Some functions are actually named
16841     something starting with __ and the normal name is an alias.  */
16842 #if defined __stub_$ac_func || defined __stub___$ac_func
16843 choke me
16844 #endif
16845
16846 int
16847 main ()
16848 {
16849 return $ac_func ();
16850   ;
16851   return 0;
16852 }
16853 _ACEOF
16854 rm -f conftest.$ac_objext conftest$ac_exeext
16855 if { (ac_try="$ac_link"
16856 case "(($ac_try" in
16857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858   *) ac_try_echo=$ac_try;;
16859 esac
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861   (eval "$ac_link") 2>conftest.er1
16862   ac_status=$?
16863   grep -v '^ *+' conftest.er1 >conftest.err
16864   rm -f conftest.er1
16865   cat conftest.err >&5
16866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); } &&
16868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16869   { (case "(($ac_try" in
16870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871   *) ac_try_echo=$ac_try;;
16872 esac
16873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874   (eval "$ac_try") 2>&5
16875   ac_status=$?
16876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877   (exit $ac_status); }; } &&
16878          { ac_try='test -s conftest$ac_exeext'
16879   { (case "(($ac_try" in
16880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881   *) ac_try_echo=$ac_try;;
16882 esac
16883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16884   (eval "$ac_try") 2>&5
16885   ac_status=$?
16886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887   (exit $ac_status); }; }; then
16888   eval "$as_ac_var=yes"
16889 else
16890   echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16892
16893         eval "$as_ac_var=no"
16894 fi
16895
16896 rm -f core conftest.err conftest.$ac_objext \
16897       conftest$ac_exeext conftest.$ac_ext
16898 fi
16899 ac_res=`eval echo '${'$as_ac_var'}'`
16900                { echo "$as_me:$LINENO: result: $ac_res" >&5
16901 echo "${ECHO_T}$ac_res" >&6; }
16902 if test `eval echo '${'$as_ac_var'}'` = yes; then
16903   cat >>confdefs.h <<_ACEOF
16904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16905 _ACEOF
16906
16907 fi
16908 done
16909
16910
16911
16912
16913
16914
16915 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16916 do
16917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16921   echo $ECHO_N "(cached) $ECHO_C" >&6
16922 else
16923   cat >conftest.$ac_ext <<_ACEOF
16924 /* confdefs.h.  */
16925 _ACEOF
16926 cat confdefs.h >>conftest.$ac_ext
16927 cat >>conftest.$ac_ext <<_ACEOF
16928 /* end confdefs.h.  */
16929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16930    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16931 #define $ac_func innocuous_$ac_func
16932
16933 /* System header to define __stub macros and hopefully few prototypes,
16934     which can conflict with char $ac_func (); below.
16935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16936     <limits.h> exists even on freestanding compilers.  */
16937
16938 #ifdef __STDC__
16939 # include <limits.h>
16940 #else
16941 # include <assert.h>
16942 #endif
16943
16944 #undef $ac_func
16945
16946 /* Override any GCC internal prototype to avoid an error.
16947    Use char because int might match the return type of a GCC
16948    builtin and then its argument prototype would still apply.  */
16949 #ifdef __cplusplus
16950 extern "C"
16951 #endif
16952 char $ac_func ();
16953 /* The GNU C library defines this for functions which it implements
16954     to always fail with ENOSYS.  Some functions are actually named
16955     something starting with __ and the normal name is an alias.  */
16956 #if defined __stub_$ac_func || defined __stub___$ac_func
16957 choke me
16958 #endif
16959
16960 int
16961 main ()
16962 {
16963 return $ac_func ();
16964   ;
16965   return 0;
16966 }
16967 _ACEOF
16968 rm -f conftest.$ac_objext conftest$ac_exeext
16969 if { (ac_try="$ac_link"
16970 case "(($ac_try" in
16971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16972   *) ac_try_echo=$ac_try;;
16973 esac
16974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16975   (eval "$ac_link") 2>conftest.er1
16976   ac_status=$?
16977   grep -v '^ *+' conftest.er1 >conftest.err
16978   rm -f conftest.er1
16979   cat conftest.err >&5
16980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981   (exit $ac_status); } &&
16982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16983   { (case "(($ac_try" in
16984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985   *) ac_try_echo=$ac_try;;
16986 esac
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988   (eval "$ac_try") 2>&5
16989   ac_status=$?
16990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991   (exit $ac_status); }; } &&
16992          { ac_try='test -s conftest$ac_exeext'
16993   { (case "(($ac_try" in
16994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995   *) ac_try_echo=$ac_try;;
16996 esac
16997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998   (eval "$ac_try") 2>&5
16999   ac_status=$?
17000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001   (exit $ac_status); }; }; then
17002   eval "$as_ac_var=yes"
17003 else
17004   echo "$as_me: failed program was:" >&5
17005 sed 's/^/| /' conftest.$ac_ext >&5
17006
17007         eval "$as_ac_var=no"
17008 fi
17009
17010 rm -f core conftest.err conftest.$ac_objext \
17011       conftest$ac_exeext conftest.$ac_ext
17012 fi
17013 ac_res=`eval echo '${'$as_ac_var'}'`
17014                { echo "$as_me:$LINENO: result: $ac_res" >&5
17015 echo "${ECHO_T}$ac_res" >&6; }
17016 if test `eval echo '${'$as_ac_var'}'` = yes; then
17017   cat >>confdefs.h <<_ACEOF
17018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17019 _ACEOF
17020
17021 fi
17022 done
17023
17024
17025
17026
17027 for ac_func in isatty mkdtemp mkstemp
17028 do
17029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17030 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17033   echo $ECHO_N "(cached) $ECHO_C" >&6
17034 else
17035   cat >conftest.$ac_ext <<_ACEOF
17036 /* confdefs.h.  */
17037 _ACEOF
17038 cat confdefs.h >>conftest.$ac_ext
17039 cat >>conftest.$ac_ext <<_ACEOF
17040 /* end confdefs.h.  */
17041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17043 #define $ac_func innocuous_$ac_func
17044
17045 /* System header to define __stub macros and hopefully few prototypes,
17046     which can conflict with char $ac_func (); below.
17047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17048     <limits.h> exists even on freestanding compilers.  */
17049
17050 #ifdef __STDC__
17051 # include <limits.h>
17052 #else
17053 # include <assert.h>
17054 #endif
17055
17056 #undef $ac_func
17057
17058 /* Override any GCC internal prototype to avoid an error.
17059    Use char because int might match the return type of a GCC
17060    builtin and then its argument prototype would still apply.  */
17061 #ifdef __cplusplus
17062 extern "C"
17063 #endif
17064 char $ac_func ();
17065 /* The GNU C library defines this for functions which it implements
17066     to always fail with ENOSYS.  Some functions are actually named
17067     something starting with __ and the normal name is an alias.  */
17068 #if defined __stub_$ac_func || defined __stub___$ac_func
17069 choke me
17070 #endif
17071
17072 int
17073 main ()
17074 {
17075 return $ac_func ();
17076   ;
17077   return 0;
17078 }
17079 _ACEOF
17080 rm -f conftest.$ac_objext conftest$ac_exeext
17081 if { (ac_try="$ac_link"
17082 case "(($ac_try" in
17083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084   *) ac_try_echo=$ac_try;;
17085 esac
17086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087   (eval "$ac_link") 2>conftest.er1
17088   ac_status=$?
17089   grep -v '^ *+' conftest.er1 >conftest.err
17090   rm -f conftest.er1
17091   cat conftest.err >&5
17092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093   (exit $ac_status); } &&
17094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17095   { (case "(($ac_try" in
17096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097   *) ac_try_echo=$ac_try;;
17098 esac
17099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100   (eval "$ac_try") 2>&5
17101   ac_status=$?
17102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103   (exit $ac_status); }; } &&
17104          { ac_try='test -s conftest$ac_exeext'
17105   { (case "(($ac_try" in
17106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107   *) ac_try_echo=$ac_try;;
17108 esac
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110   (eval "$ac_try") 2>&5
17111   ac_status=$?
17112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113   (exit $ac_status); }; }; then
17114   eval "$as_ac_var=yes"
17115 else
17116   echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17118
17119         eval "$as_ac_var=no"
17120 fi
17121
17122 rm -f core conftest.err conftest.$ac_objext \
17123       conftest$ac_exeext conftest.$ac_ext
17124 fi
17125 ac_res=`eval echo '${'$as_ac_var'}'`
17126                { echo "$as_me:$LINENO: result: $ac_res" >&5
17127 echo "${ECHO_T}$ac_res" >&6; }
17128 if test `eval echo '${'$as_ac_var'}'` = yes; then
17129   cat >>confdefs.h <<_ACEOF
17130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17131 _ACEOF
17132
17133 fi
17134 done
17135
17136
17137
17138
17139
17140
17141
17142 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17143 do
17144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17148   echo $ECHO_N "(cached) $ECHO_C" >&6
17149 else
17150   cat >conftest.$ac_ext <<_ACEOF
17151 /* confdefs.h.  */
17152 _ACEOF
17153 cat confdefs.h >>conftest.$ac_ext
17154 cat >>conftest.$ac_ext <<_ACEOF
17155 /* end confdefs.h.  */
17156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17158 #define $ac_func innocuous_$ac_func
17159
17160 /* System header to define __stub macros and hopefully few prototypes,
17161     which can conflict with char $ac_func (); below.
17162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17163     <limits.h> exists even on freestanding compilers.  */
17164
17165 #ifdef __STDC__
17166 # include <limits.h>
17167 #else
17168 # include <assert.h>
17169 #endif
17170
17171 #undef $ac_func
17172
17173 /* Override any GCC internal prototype to avoid an error.
17174    Use char because int might match the return type of a GCC
17175    builtin and then its argument prototype would still apply.  */
17176 #ifdef __cplusplus
17177 extern "C"
17178 #endif
17179 char $ac_func ();
17180 /* The GNU C library defines this for functions which it implements
17181     to always fail with ENOSYS.  Some functions are actually named
17182     something starting with __ and the normal name is an alias.  */
17183 #if defined __stub_$ac_func || defined __stub___$ac_func
17184 choke me
17185 #endif
17186
17187 int
17188 main ()
17189 {
17190 return $ac_func ();
17191   ;
17192   return 0;
17193 }
17194 _ACEOF
17195 rm -f conftest.$ac_objext conftest$ac_exeext
17196 if { (ac_try="$ac_link"
17197 case "(($ac_try" in
17198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199   *) ac_try_echo=$ac_try;;
17200 esac
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202   (eval "$ac_link") 2>conftest.er1
17203   ac_status=$?
17204   grep -v '^ *+' conftest.er1 >conftest.err
17205   rm -f conftest.er1
17206   cat conftest.err >&5
17207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208   (exit $ac_status); } &&
17209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17210   { (case "(($ac_try" in
17211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212   *) ac_try_echo=$ac_try;;
17213 esac
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215   (eval "$ac_try") 2>&5
17216   ac_status=$?
17217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218   (exit $ac_status); }; } &&
17219          { ac_try='test -s conftest$ac_exeext'
17220   { (case "(($ac_try" in
17221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222   *) ac_try_echo=$ac_try;;
17223 esac
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225   (eval "$ac_try") 2>&5
17226   ac_status=$?
17227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); }; }; then
17229   eval "$as_ac_var=yes"
17230 else
17231   echo "$as_me: failed program was:" >&5
17232 sed 's/^/| /' conftest.$ac_ext >&5
17233
17234         eval "$as_ac_var=no"
17235 fi
17236
17237 rm -f core conftest.err conftest.$ac_objext \
17238       conftest$ac_exeext conftest.$ac_ext
17239 fi
17240 ac_res=`eval echo '${'$as_ac_var'}'`
17241                { echo "$as_me:$LINENO: result: $ac_res" >&5
17242 echo "${ECHO_T}$ac_res" >&6; }
17243 if test `eval echo '${'$as_ac_var'}'` = yes; then
17244   cat >>confdefs.h <<_ACEOF
17245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17246 _ACEOF
17247
17248 fi
17249 done
17250
17251
17252
17253
17254 for ac_func in strerror strerror_r setenv
17255 do
17256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17260   echo $ECHO_N "(cached) $ECHO_C" >&6
17261 else
17262   cat >conftest.$ac_ext <<_ACEOF
17263 /* confdefs.h.  */
17264 _ACEOF
17265 cat confdefs.h >>conftest.$ac_ext
17266 cat >>conftest.$ac_ext <<_ACEOF
17267 /* end confdefs.h.  */
17268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17269    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17270 #define $ac_func innocuous_$ac_func
17271
17272 /* System header to define __stub macros and hopefully few prototypes,
17273     which can conflict with char $ac_func (); below.
17274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17275     <limits.h> exists even on freestanding compilers.  */
17276
17277 #ifdef __STDC__
17278 # include <limits.h>
17279 #else
17280 # include <assert.h>
17281 #endif
17282
17283 #undef $ac_func
17284
17285 /* Override any GCC internal prototype to avoid an error.
17286    Use char because int might match the return type of a GCC
17287    builtin and then its argument prototype would still apply.  */
17288 #ifdef __cplusplus
17289 extern "C"
17290 #endif
17291 char $ac_func ();
17292 /* The GNU C library defines this for functions which it implements
17293     to always fail with ENOSYS.  Some functions are actually named
17294     something starting with __ and the normal name is an alias.  */
17295 #if defined __stub_$ac_func || defined __stub___$ac_func
17296 choke me
17297 #endif
17298
17299 int
17300 main ()
17301 {
17302 return $ac_func ();
17303   ;
17304   return 0;
17305 }
17306 _ACEOF
17307 rm -f conftest.$ac_objext conftest$ac_exeext
17308 if { (ac_try="$ac_link"
17309 case "(($ac_try" in
17310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17311   *) ac_try_echo=$ac_try;;
17312 esac
17313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17314   (eval "$ac_link") 2>conftest.er1
17315   ac_status=$?
17316   grep -v '^ *+' conftest.er1 >conftest.err
17317   rm -f conftest.er1
17318   cat conftest.err >&5
17319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320   (exit $ac_status); } &&
17321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17322   { (case "(($ac_try" in
17323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324   *) ac_try_echo=$ac_try;;
17325 esac
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327   (eval "$ac_try") 2>&5
17328   ac_status=$?
17329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330   (exit $ac_status); }; } &&
17331          { ac_try='test -s conftest$ac_exeext'
17332   { (case "(($ac_try" in
17333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334   *) ac_try_echo=$ac_try;;
17335 esac
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337   (eval "$ac_try") 2>&5
17338   ac_status=$?
17339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340   (exit $ac_status); }; }; then
17341   eval "$as_ac_var=yes"
17342 else
17343   echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17345
17346         eval "$as_ac_var=no"
17347 fi
17348
17349 rm -f core conftest.err conftest.$ac_objext \
17350       conftest$ac_exeext conftest.$ac_ext
17351 fi
17352 ac_res=`eval echo '${'$as_ac_var'}'`
17353                { echo "$as_me:$LINENO: result: $ac_res" >&5
17354 echo "${ECHO_T}$ac_res" >&6; }
17355 if test `eval echo '${'$as_ac_var'}'` = yes; then
17356   cat >>confdefs.h <<_ACEOF
17357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17358 _ACEOF
17359
17360 fi
17361 done
17362
17363
17364
17365
17366
17367 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17368 do
17369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17373   echo $ECHO_N "(cached) $ECHO_C" >&6
17374 else
17375   cat >conftest.$ac_ext <<_ACEOF
17376 /* confdefs.h.  */
17377 _ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h.  */
17381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17383 #define $ac_func innocuous_$ac_func
17384
17385 /* System header to define __stub macros and hopefully few prototypes,
17386     which can conflict with char $ac_func (); below.
17387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17388     <limits.h> exists even on freestanding compilers.  */
17389
17390 #ifdef __STDC__
17391 # include <limits.h>
17392 #else
17393 # include <assert.h>
17394 #endif
17395
17396 #undef $ac_func
17397
17398 /* Override any GCC internal prototype to avoid an error.
17399    Use char because int might match the return type of a GCC
17400    builtin and then its argument prototype would still apply.  */
17401 #ifdef __cplusplus
17402 extern "C"
17403 #endif
17404 char $ac_func ();
17405 /* The GNU C library defines this for functions which it implements
17406     to always fail with ENOSYS.  Some functions are actually named
17407     something starting with __ and the normal name is an alias.  */
17408 #if defined __stub_$ac_func || defined __stub___$ac_func
17409 choke me
17410 #endif
17411
17412 int
17413 main ()
17414 {
17415 return $ac_func ();
17416   ;
17417   return 0;
17418 }
17419 _ACEOF
17420 rm -f conftest.$ac_objext conftest$ac_exeext
17421 if { (ac_try="$ac_link"
17422 case "(($ac_try" in
17423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424   *) ac_try_echo=$ac_try;;
17425 esac
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427   (eval "$ac_link") 2>conftest.er1
17428   ac_status=$?
17429   grep -v '^ *+' conftest.er1 >conftest.err
17430   rm -f conftest.er1
17431   cat conftest.err >&5
17432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433   (exit $ac_status); } &&
17434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17435   { (case "(($ac_try" in
17436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17437   *) ac_try_echo=$ac_try;;
17438 esac
17439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17440   (eval "$ac_try") 2>&5
17441   ac_status=$?
17442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443   (exit $ac_status); }; } &&
17444          { ac_try='test -s conftest$ac_exeext'
17445   { (case "(($ac_try" in
17446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447   *) ac_try_echo=$ac_try;;
17448 esac
17449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450   (eval "$ac_try") 2>&5
17451   ac_status=$?
17452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453   (exit $ac_status); }; }; then
17454   eval "$as_ac_var=yes"
17455 else
17456   echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17458
17459         eval "$as_ac_var=no"
17460 fi
17461
17462 rm -f core conftest.err conftest.$ac_objext \
17463       conftest$ac_exeext conftest.$ac_ext
17464 fi
17465 ac_res=`eval echo '${'$as_ac_var'}'`
17466                { echo "$as_me:$LINENO: result: $ac_res" >&5
17467 echo "${ECHO_T}$ac_res" >&6; }
17468 if test `eval echo '${'$as_ac_var'}'` = yes; then
17469   cat >>confdefs.h <<_ACEOF
17470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17471 _ACEOF
17472
17473 fi
17474 done
17475
17476
17477
17478
17479
17480
17481 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17482 do
17483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17487   echo $ECHO_N "(cached) $ECHO_C" >&6
17488 else
17489   cat >conftest.$ac_ext <<_ACEOF
17490 /* confdefs.h.  */
17491 _ACEOF
17492 cat confdefs.h >>conftest.$ac_ext
17493 cat >>conftest.$ac_ext <<_ACEOF
17494 /* end confdefs.h.  */
17495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17497 #define $ac_func innocuous_$ac_func
17498
17499 /* System header to define __stub macros and hopefully few prototypes,
17500     which can conflict with char $ac_func (); below.
17501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17502     <limits.h> exists even on freestanding compilers.  */
17503
17504 #ifdef __STDC__
17505 # include <limits.h>
17506 #else
17507 # include <assert.h>
17508 #endif
17509
17510 #undef $ac_func
17511
17512 /* Override any GCC internal prototype to avoid an error.
17513    Use char because int might match the return type of a GCC
17514    builtin and then its argument prototype would still apply.  */
17515 #ifdef __cplusplus
17516 extern "C"
17517 #endif
17518 char $ac_func ();
17519 /* The GNU C library defines this for functions which it implements
17520     to always fail with ENOSYS.  Some functions are actually named
17521     something starting with __ and the normal name is an alias.  */
17522 #if defined __stub_$ac_func || defined __stub___$ac_func
17523 choke me
17524 #endif
17525
17526 int
17527 main ()
17528 {
17529 return $ac_func ();
17530   ;
17531   return 0;
17532 }
17533 _ACEOF
17534 rm -f conftest.$ac_objext conftest$ac_exeext
17535 if { (ac_try="$ac_link"
17536 case "(($ac_try" in
17537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538   *) ac_try_echo=$ac_try;;
17539 esac
17540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541   (eval "$ac_link") 2>conftest.er1
17542   ac_status=$?
17543   grep -v '^ *+' conftest.er1 >conftest.err
17544   rm -f conftest.er1
17545   cat conftest.err >&5
17546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547   (exit $ac_status); } &&
17548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17549   { (case "(($ac_try" in
17550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551   *) ac_try_echo=$ac_try;;
17552 esac
17553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554   (eval "$ac_try") 2>&5
17555   ac_status=$?
17556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557   (exit $ac_status); }; } &&
17558          { ac_try='test -s conftest$ac_exeext'
17559   { (case "(($ac_try" in
17560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561   *) ac_try_echo=$ac_try;;
17562 esac
17563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564   (eval "$ac_try") 2>&5
17565   ac_status=$?
17566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567   (exit $ac_status); }; }; then
17568   eval "$as_ac_var=yes"
17569 else
17570   echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17572
17573         eval "$as_ac_var=no"
17574 fi
17575
17576 rm -f core conftest.err conftest.$ac_objext \
17577       conftest$ac_exeext conftest.$ac_ext
17578 fi
17579 ac_res=`eval echo '${'$as_ac_var'}'`
17580                { echo "$as_me:$LINENO: result: $ac_res" >&5
17581 echo "${ECHO_T}$ac_res" >&6; }
17582 if test `eval echo '${'$as_ac_var'}'` = yes; then
17583   cat >>confdefs.h <<_ACEOF
17584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17585 _ACEOF
17586
17587 fi
17588 done
17589
17590 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17591 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17592 if test "${llvm_cv_c_printf_a+set}" = set; then
17593   echo $ECHO_N "(cached) $ECHO_C" >&6
17594 else
17595   ac_ext=c
17596 ac_cpp='$CPP $CPPFLAGS'
17597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17600
17601  if test "$cross_compiling" = yes; then
17602   llvmac_cv_c_printf_a=no
17603 else
17604   cat >conftest.$ac_ext <<_ACEOF
17605
17606   /* confdefs.h.  */
17607 _ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h.  */
17611
17612 #include <stdio.h>
17613 #include <stdlib.h>
17614
17615 int
17616 main ()
17617 {
17618
17619 volatile double A, B;
17620 char Buffer[100];
17621 A = 1;
17622 A /= 10.0;
17623 sprintf(Buffer, "%a", A);
17624 B = atof(Buffer);
17625 if (A != B)
17626   return (1);
17627 if (A != 0x1.999999999999ap-4)
17628   return (1);
17629 return (0);
17630   ;
17631   return 0;
17632 }
17633 _ACEOF
17634 rm -f conftest$ac_exeext
17635 if { (ac_try="$ac_link"
17636 case "(($ac_try" in
17637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638   *) ac_try_echo=$ac_try;;
17639 esac
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641   (eval "$ac_link") 2>&5
17642   ac_status=$?
17643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17645   { (case "(($ac_try" in
17646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647   *) ac_try_echo=$ac_try;;
17648 esac
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650   (eval "$ac_try") 2>&5
17651   ac_status=$?
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); }; }; then
17654   llvm_cv_c_printf_a=yes
17655 else
17656   echo "$as_me: program exited with status $ac_status" >&5
17657 echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17659
17660 ( exit $ac_status )
17661 llvmac_cv_c_printf_a=no
17662 fi
17663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17664 fi
17665
17666
17667  ac_ext=c
17668 ac_cpp='$CPP $CPPFLAGS'
17669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17672
17673 fi
17674 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17675 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17676  if test "$llvm_cv_c_printf_a" = "yes"; then
17677
17678 cat >>confdefs.h <<\_ACEOF
17679 #define HAVE_PRINTF_A 1
17680 _ACEOF
17681
17682  fi
17683
17684
17685 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17686 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17687 if test "${ac_cv_func_rand48+set}" = set; then
17688   echo $ECHO_N "(cached) $ECHO_C" >&6
17689 else
17690   ac_ext=cpp
17691 ac_cpp='$CXXCPP $CPPFLAGS'
17692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17695
17696    cat >conftest.$ac_ext <<_ACEOF
17697 /* confdefs.h.  */
17698 _ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h.  */
17702 #include <stdlib.h>
17703 int
17704 main ()
17705 {
17706 srand48(0);lrand48();drand48();
17707   ;
17708   return 0;
17709 }
17710 _ACEOF
17711 rm -f conftest.$ac_objext
17712 if { (ac_try="$ac_compile"
17713 case "(($ac_try" in
17714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715   *) ac_try_echo=$ac_try;;
17716 esac
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718   (eval "$ac_compile") 2>conftest.er1
17719   ac_status=$?
17720   grep -v '^ *+' conftest.er1 >conftest.err
17721   rm -f conftest.er1
17722   cat conftest.err >&5
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); } &&
17725          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17726   { (case "(($ac_try" in
17727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728   *) ac_try_echo=$ac_try;;
17729 esac
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731   (eval "$ac_try") 2>&5
17732   ac_status=$?
17733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734   (exit $ac_status); }; } &&
17735          { ac_try='test -s conftest.$ac_objext'
17736   { (case "(($ac_try" in
17737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738   *) ac_try_echo=$ac_try;;
17739 esac
17740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741   (eval "$ac_try") 2>&5
17742   ac_status=$?
17743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744   (exit $ac_status); }; }; then
17745   ac_cv_func_rand48=yes
17746 else
17747   echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17749
17750         ac_cv_func_rand48=no
17751 fi
17752
17753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17754   ac_ext=c
17755 ac_cpp='$CPP $CPPFLAGS'
17756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17759
17760 fi
17761 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17762 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17763
17764 if test "$ac_cv_func_rand48" = "yes" ; then
17765
17766 cat >>confdefs.h <<\_ACEOF
17767 #define HAVE_RAND48 1
17768 _ACEOF
17769
17770 fi
17771
17772
17773 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17774 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17775 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17776   echo $ECHO_N "(cached) $ECHO_C" >&6
17777 else
17778   cat >conftest.$ac_ext <<_ACEOF
17779 /* confdefs.h.  */
17780 _ACEOF
17781 cat confdefs.h >>conftest.$ac_ext
17782 cat >>conftest.$ac_ext <<_ACEOF
17783 /* end confdefs.h.  */
17784 $ac_includes_default
17785 int
17786 main ()
17787 {
17788 #ifndef strerror_s
17789   char *p = (char *) strerror_s;
17790   return !p;
17791 #endif
17792
17793   ;
17794   return 0;
17795 }
17796 _ACEOF
17797 rm -f conftest.$ac_objext
17798 if { (ac_try="$ac_compile"
17799 case "(($ac_try" in
17800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801   *) ac_try_echo=$ac_try;;
17802 esac
17803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17804   (eval "$ac_compile") 2>conftest.er1
17805   ac_status=$?
17806   grep -v '^ *+' conftest.er1 >conftest.err
17807   rm -f conftest.er1
17808   cat conftest.err >&5
17809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810   (exit $ac_status); } &&
17811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17812   { (case "(($ac_try" in
17813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814   *) ac_try_echo=$ac_try;;
17815 esac
17816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817   (eval "$ac_try") 2>&5
17818   ac_status=$?
17819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820   (exit $ac_status); }; } &&
17821          { ac_try='test -s conftest.$ac_objext'
17822   { (case "(($ac_try" in
17823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824   *) ac_try_echo=$ac_try;;
17825 esac
17826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827   (eval "$ac_try") 2>&5
17828   ac_status=$?
17829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830   (exit $ac_status); }; }; then
17831   ac_cv_have_decl_strerror_s=yes
17832 else
17833   echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17835
17836         ac_cv_have_decl_strerror_s=no
17837 fi
17838
17839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17840 fi
17841 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17842 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17843 if test $ac_cv_have_decl_strerror_s = yes; then
17844
17845 cat >>confdefs.h <<_ACEOF
17846 #define HAVE_DECL_STRERROR_S 1
17847 _ACEOF
17848
17849
17850 else
17851   cat >>confdefs.h <<_ACEOF
17852 #define HAVE_DECL_STRERROR_S 0
17853 _ACEOF
17854
17855
17856 fi
17857
17858
17859
17860 if test "$llvm_cv_os_type" = "MingW" ; then
17861   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17862 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17863 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17864   echo $ECHO_N "(cached) $ECHO_C" >&6
17865 else
17866   ac_check_lib_save_LIBS=$LIBS
17867 LIBS="-lgcc  $LIBS"
17868 cat >conftest.$ac_ext <<_ACEOF
17869 /* confdefs.h.  */
17870 _ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h.  */
17874
17875 /* Override any GCC internal prototype to avoid an error.
17876    Use char because int might match the return type of a GCC
17877    builtin and then its argument prototype would still apply.  */
17878 #ifdef __cplusplus
17879 extern "C"
17880 #endif
17881 char _alloca ();
17882 int
17883 main ()
17884 {
17885 return _alloca ();
17886   ;
17887   return 0;
17888 }
17889 _ACEOF
17890 rm -f conftest.$ac_objext conftest$ac_exeext
17891 if { (ac_try="$ac_link"
17892 case "(($ac_try" in
17893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894   *) ac_try_echo=$ac_try;;
17895 esac
17896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897   (eval "$ac_link") 2>conftest.er1
17898   ac_status=$?
17899   grep -v '^ *+' conftest.er1 >conftest.err
17900   rm -f conftest.er1
17901   cat conftest.err >&5
17902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903   (exit $ac_status); } &&
17904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17905   { (case "(($ac_try" in
17906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907   *) ac_try_echo=$ac_try;;
17908 esac
17909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17910   (eval "$ac_try") 2>&5
17911   ac_status=$?
17912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913   (exit $ac_status); }; } &&
17914          { ac_try='test -s conftest$ac_exeext'
17915   { (case "(($ac_try" in
17916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917   *) ac_try_echo=$ac_try;;
17918 esac
17919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920   (eval "$ac_try") 2>&5
17921   ac_status=$?
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); }; }; then
17924   ac_cv_lib_gcc__alloca=yes
17925 else
17926   echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17928
17929         ac_cv_lib_gcc__alloca=no
17930 fi
17931
17932 rm -f core conftest.err conftest.$ac_objext \
17933       conftest$ac_exeext conftest.$ac_ext
17934 LIBS=$ac_check_lib_save_LIBS
17935 fi
17936 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17937 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17938 if test $ac_cv_lib_gcc__alloca = yes; then
17939
17940 cat >>confdefs.h <<\_ACEOF
17941 #define HAVE__ALLOCA 1
17942 _ACEOF
17943
17944 fi
17945
17946   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17947 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17948 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17949   echo $ECHO_N "(cached) $ECHO_C" >&6
17950 else
17951   ac_check_lib_save_LIBS=$LIBS
17952 LIBS="-lgcc  $LIBS"
17953 cat >conftest.$ac_ext <<_ACEOF
17954 /* confdefs.h.  */
17955 _ACEOF
17956 cat confdefs.h >>conftest.$ac_ext
17957 cat >>conftest.$ac_ext <<_ACEOF
17958 /* end confdefs.h.  */
17959
17960 /* Override any GCC internal prototype to avoid an error.
17961    Use char because int might match the return type of a GCC
17962    builtin and then its argument prototype would still apply.  */
17963 #ifdef __cplusplus
17964 extern "C"
17965 #endif
17966 char __alloca ();
17967 int
17968 main ()
17969 {
17970 return __alloca ();
17971   ;
17972   return 0;
17973 }
17974 _ACEOF
17975 rm -f conftest.$ac_objext conftest$ac_exeext
17976 if { (ac_try="$ac_link"
17977 case "(($ac_try" in
17978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979   *) ac_try_echo=$ac_try;;
17980 esac
17981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982   (eval "$ac_link") 2>conftest.er1
17983   ac_status=$?
17984   grep -v '^ *+' conftest.er1 >conftest.err
17985   rm -f conftest.er1
17986   cat conftest.err >&5
17987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988   (exit $ac_status); } &&
17989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17990   { (case "(($ac_try" in
17991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992   *) ac_try_echo=$ac_try;;
17993 esac
17994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17995   (eval "$ac_try") 2>&5
17996   ac_status=$?
17997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998   (exit $ac_status); }; } &&
17999          { ac_try='test -s conftest$ac_exeext'
18000   { (case "(($ac_try" in
18001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18002   *) ac_try_echo=$ac_try;;
18003 esac
18004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18005   (eval "$ac_try") 2>&5
18006   ac_status=$?
18007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008   (exit $ac_status); }; }; then
18009   ac_cv_lib_gcc___alloca=yes
18010 else
18011   echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18013
18014         ac_cv_lib_gcc___alloca=no
18015 fi
18016
18017 rm -f core conftest.err conftest.$ac_objext \
18018       conftest$ac_exeext conftest.$ac_ext
18019 LIBS=$ac_check_lib_save_LIBS
18020 fi
18021 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18022 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18023 if test $ac_cv_lib_gcc___alloca = yes; then
18024
18025 cat >>confdefs.h <<\_ACEOF
18026 #define HAVE___ALLOCA 1
18027 _ACEOF
18028
18029 fi
18030
18031   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18032 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18033 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18034   echo $ECHO_N "(cached) $ECHO_C" >&6
18035 else
18036   ac_check_lib_save_LIBS=$LIBS
18037 LIBS="-lgcc  $LIBS"
18038 cat >conftest.$ac_ext <<_ACEOF
18039 /* confdefs.h.  */
18040 _ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h.  */
18044
18045 /* Override any GCC internal prototype to avoid an error.
18046    Use char because int might match the return type of a GCC
18047    builtin and then its argument prototype would still apply.  */
18048 #ifdef __cplusplus
18049 extern "C"
18050 #endif
18051 char __chkstk ();
18052 int
18053 main ()
18054 {
18055 return __chkstk ();
18056   ;
18057   return 0;
18058 }
18059 _ACEOF
18060 rm -f conftest.$ac_objext conftest$ac_exeext
18061 if { (ac_try="$ac_link"
18062 case "(($ac_try" in
18063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064   *) ac_try_echo=$ac_try;;
18065 esac
18066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067   (eval "$ac_link") 2>conftest.er1
18068   ac_status=$?
18069   grep -v '^ *+' conftest.er1 >conftest.err
18070   rm -f conftest.er1
18071   cat conftest.err >&5
18072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073   (exit $ac_status); } &&
18074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18075   { (case "(($ac_try" in
18076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077   *) ac_try_echo=$ac_try;;
18078 esac
18079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080   (eval "$ac_try") 2>&5
18081   ac_status=$?
18082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083   (exit $ac_status); }; } &&
18084          { ac_try='test -s conftest$ac_exeext'
18085   { (case "(($ac_try" in
18086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087   *) ac_try_echo=$ac_try;;
18088 esac
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090   (eval "$ac_try") 2>&5
18091   ac_status=$?
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); }; }; then
18094   ac_cv_lib_gcc___chkstk=yes
18095 else
18096   echo "$as_me: failed program was:" >&5
18097 sed 's/^/| /' conftest.$ac_ext >&5
18098
18099         ac_cv_lib_gcc___chkstk=no
18100 fi
18101
18102 rm -f core conftest.err conftest.$ac_objext \
18103       conftest$ac_exeext conftest.$ac_ext
18104 LIBS=$ac_check_lib_save_LIBS
18105 fi
18106 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18107 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18108 if test $ac_cv_lib_gcc___chkstk = yes; then
18109
18110 cat >>confdefs.h <<\_ACEOF
18111 #define HAVE___CHKSTK 1
18112 _ACEOF
18113
18114 fi
18115
18116   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18117 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18118 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18119   echo $ECHO_N "(cached) $ECHO_C" >&6
18120 else
18121   ac_check_lib_save_LIBS=$LIBS
18122 LIBS="-lgcc  $LIBS"
18123 cat >conftest.$ac_ext <<_ACEOF
18124 /* confdefs.h.  */
18125 _ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h.  */
18129
18130 /* Override any GCC internal prototype to avoid an error.
18131    Use char because int might match the return type of a GCC
18132    builtin and then its argument prototype would still apply.  */
18133 #ifdef __cplusplus
18134 extern "C"
18135 #endif
18136 char ___chkstk ();
18137 int
18138 main ()
18139 {
18140 return ___chkstk ();
18141   ;
18142   return 0;
18143 }
18144 _ACEOF
18145 rm -f conftest.$ac_objext conftest$ac_exeext
18146 if { (ac_try="$ac_link"
18147 case "(($ac_try" in
18148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149   *) ac_try_echo=$ac_try;;
18150 esac
18151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152   (eval "$ac_link") 2>conftest.er1
18153   ac_status=$?
18154   grep -v '^ *+' conftest.er1 >conftest.err
18155   rm -f conftest.er1
18156   cat conftest.err >&5
18157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158   (exit $ac_status); } &&
18159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18160   { (case "(($ac_try" in
18161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162   *) ac_try_echo=$ac_try;;
18163 esac
18164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165   (eval "$ac_try") 2>&5
18166   ac_status=$?
18167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168   (exit $ac_status); }; } &&
18169          { ac_try='test -s conftest$ac_exeext'
18170   { (case "(($ac_try" in
18171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18172   *) ac_try_echo=$ac_try;;
18173 esac
18174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18175   (eval "$ac_try") 2>&5
18176   ac_status=$?
18177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); }; }; then
18179   ac_cv_lib_gcc____chkstk=yes
18180 else
18181   echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18183
18184         ac_cv_lib_gcc____chkstk=no
18185 fi
18186
18187 rm -f core conftest.err conftest.$ac_objext \
18188       conftest$ac_exeext conftest.$ac_ext
18189 LIBS=$ac_check_lib_save_LIBS
18190 fi
18191 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18192 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18193 if test $ac_cv_lib_gcc____chkstk = yes; then
18194
18195 cat >>confdefs.h <<\_ACEOF
18196 #define HAVE____CHKSTK 1
18197 _ACEOF
18198
18199 fi
18200
18201
18202   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18203 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18204 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18205   echo $ECHO_N "(cached) $ECHO_C" >&6
18206 else
18207   ac_check_lib_save_LIBS=$LIBS
18208 LIBS="-lgcc  $LIBS"
18209 cat >conftest.$ac_ext <<_ACEOF
18210 /* confdefs.h.  */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h.  */
18215
18216 /* Override any GCC internal prototype to avoid an error.
18217    Use char because int might match the return type of a GCC
18218    builtin and then its argument prototype would still apply.  */
18219 #ifdef __cplusplus
18220 extern "C"
18221 #endif
18222 char __ashldi3 ();
18223 int
18224 main ()
18225 {
18226 return __ashldi3 ();
18227   ;
18228   return 0;
18229 }
18230 _ACEOF
18231 rm -f conftest.$ac_objext conftest$ac_exeext
18232 if { (ac_try="$ac_link"
18233 case "(($ac_try" in
18234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235   *) ac_try_echo=$ac_try;;
18236 esac
18237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238   (eval "$ac_link") 2>conftest.er1
18239   ac_status=$?
18240   grep -v '^ *+' conftest.er1 >conftest.err
18241   rm -f conftest.er1
18242   cat conftest.err >&5
18243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244   (exit $ac_status); } &&
18245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18246   { (case "(($ac_try" in
18247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248   *) ac_try_echo=$ac_try;;
18249 esac
18250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251   (eval "$ac_try") 2>&5
18252   ac_status=$?
18253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254   (exit $ac_status); }; } &&
18255          { ac_try='test -s conftest$ac_exeext'
18256   { (case "(($ac_try" in
18257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18258   *) ac_try_echo=$ac_try;;
18259 esac
18260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18261   (eval "$ac_try") 2>&5
18262   ac_status=$?
18263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264   (exit $ac_status); }; }; then
18265   ac_cv_lib_gcc___ashldi3=yes
18266 else
18267   echo "$as_me: failed program was:" >&5
18268 sed 's/^/| /' conftest.$ac_ext >&5
18269
18270         ac_cv_lib_gcc___ashldi3=no
18271 fi
18272
18273 rm -f core conftest.err conftest.$ac_objext \
18274       conftest$ac_exeext conftest.$ac_ext
18275 LIBS=$ac_check_lib_save_LIBS
18276 fi
18277 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18278 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18279 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18280
18281 cat >>confdefs.h <<\_ACEOF
18282 #define HAVE___ASHLDI3 1
18283 _ACEOF
18284
18285 fi
18286
18287   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18288 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18289 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18290   echo $ECHO_N "(cached) $ECHO_C" >&6
18291 else
18292   ac_check_lib_save_LIBS=$LIBS
18293 LIBS="-lgcc  $LIBS"
18294 cat >conftest.$ac_ext <<_ACEOF
18295 /* confdefs.h.  */
18296 _ACEOF
18297 cat confdefs.h >>conftest.$ac_ext
18298 cat >>conftest.$ac_ext <<_ACEOF
18299 /* end confdefs.h.  */
18300
18301 /* Override any GCC internal prototype to avoid an error.
18302    Use char because int might match the return type of a GCC
18303    builtin and then its argument prototype would still apply.  */
18304 #ifdef __cplusplus
18305 extern "C"
18306 #endif
18307 char __ashrdi3 ();
18308 int
18309 main ()
18310 {
18311 return __ashrdi3 ();
18312   ;
18313   return 0;
18314 }
18315 _ACEOF
18316 rm -f conftest.$ac_objext conftest$ac_exeext
18317 if { (ac_try="$ac_link"
18318 case "(($ac_try" in
18319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320   *) ac_try_echo=$ac_try;;
18321 esac
18322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323   (eval "$ac_link") 2>conftest.er1
18324   ac_status=$?
18325   grep -v '^ *+' conftest.er1 >conftest.err
18326   rm -f conftest.er1
18327   cat conftest.err >&5
18328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329   (exit $ac_status); } &&
18330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18331   { (case "(($ac_try" in
18332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333   *) ac_try_echo=$ac_try;;
18334 esac
18335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336   (eval "$ac_try") 2>&5
18337   ac_status=$?
18338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339   (exit $ac_status); }; } &&
18340          { ac_try='test -s conftest$ac_exeext'
18341   { (case "(($ac_try" in
18342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343   *) ac_try_echo=$ac_try;;
18344 esac
18345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346   (eval "$ac_try") 2>&5
18347   ac_status=$?
18348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349   (exit $ac_status); }; }; then
18350   ac_cv_lib_gcc___ashrdi3=yes
18351 else
18352   echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18354
18355         ac_cv_lib_gcc___ashrdi3=no
18356 fi
18357
18358 rm -f core conftest.err conftest.$ac_objext \
18359       conftest$ac_exeext conftest.$ac_ext
18360 LIBS=$ac_check_lib_save_LIBS
18361 fi
18362 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18363 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18364 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18365
18366 cat >>confdefs.h <<\_ACEOF
18367 #define HAVE___ASHRDI3 1
18368 _ACEOF
18369
18370 fi
18371
18372   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18373 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18374 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18375   echo $ECHO_N "(cached) $ECHO_C" >&6
18376 else
18377   ac_check_lib_save_LIBS=$LIBS
18378 LIBS="-lgcc  $LIBS"
18379 cat >conftest.$ac_ext <<_ACEOF
18380 /* confdefs.h.  */
18381 _ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h.  */
18385
18386 /* Override any GCC internal prototype to avoid an error.
18387    Use char because int might match the return type of a GCC
18388    builtin and then its argument prototype would still apply.  */
18389 #ifdef __cplusplus
18390 extern "C"
18391 #endif
18392 char __divdi3 ();
18393 int
18394 main ()
18395 {
18396 return __divdi3 ();
18397   ;
18398   return 0;
18399 }
18400 _ACEOF
18401 rm -f conftest.$ac_objext conftest$ac_exeext
18402 if { (ac_try="$ac_link"
18403 case "(($ac_try" in
18404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405   *) ac_try_echo=$ac_try;;
18406 esac
18407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18408   (eval "$ac_link") 2>conftest.er1
18409   ac_status=$?
18410   grep -v '^ *+' conftest.er1 >conftest.err
18411   rm -f conftest.er1
18412   cat conftest.err >&5
18413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414   (exit $ac_status); } &&
18415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18416   { (case "(($ac_try" in
18417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418   *) ac_try_echo=$ac_try;;
18419 esac
18420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18421   (eval "$ac_try") 2>&5
18422   ac_status=$?
18423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424   (exit $ac_status); }; } &&
18425          { ac_try='test -s conftest$ac_exeext'
18426   { (case "(($ac_try" in
18427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18428   *) ac_try_echo=$ac_try;;
18429 esac
18430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18431   (eval "$ac_try") 2>&5
18432   ac_status=$?
18433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434   (exit $ac_status); }; }; then
18435   ac_cv_lib_gcc___divdi3=yes
18436 else
18437   echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18439
18440         ac_cv_lib_gcc___divdi3=no
18441 fi
18442
18443 rm -f core conftest.err conftest.$ac_objext \
18444       conftest$ac_exeext conftest.$ac_ext
18445 LIBS=$ac_check_lib_save_LIBS
18446 fi
18447 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18448 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18449 if test $ac_cv_lib_gcc___divdi3 = yes; then
18450
18451 cat >>confdefs.h <<\_ACEOF
18452 #define HAVE___DIVDI3 1
18453 _ACEOF
18454
18455 fi
18456
18457   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18458 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18459 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18460   echo $ECHO_N "(cached) $ECHO_C" >&6
18461 else
18462   ac_check_lib_save_LIBS=$LIBS
18463 LIBS="-lgcc  $LIBS"
18464 cat >conftest.$ac_ext <<_ACEOF
18465 /* confdefs.h.  */
18466 _ACEOF
18467 cat confdefs.h >>conftest.$ac_ext
18468 cat >>conftest.$ac_ext <<_ACEOF
18469 /* end confdefs.h.  */
18470
18471 /* Override any GCC internal prototype to avoid an error.
18472    Use char because int might match the return type of a GCC
18473    builtin and then its argument prototype would still apply.  */
18474 #ifdef __cplusplus
18475 extern "C"
18476 #endif
18477 char __fixdfdi ();
18478 int
18479 main ()
18480 {
18481 return __fixdfdi ();
18482   ;
18483   return 0;
18484 }
18485 _ACEOF
18486 rm -f conftest.$ac_objext conftest$ac_exeext
18487 if { (ac_try="$ac_link"
18488 case "(($ac_try" in
18489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18490   *) ac_try_echo=$ac_try;;
18491 esac
18492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18493   (eval "$ac_link") 2>conftest.er1
18494   ac_status=$?
18495   grep -v '^ *+' conftest.er1 >conftest.err
18496   rm -f conftest.er1
18497   cat conftest.err >&5
18498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499   (exit $ac_status); } &&
18500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18501   { (case "(($ac_try" in
18502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18503   *) ac_try_echo=$ac_try;;
18504 esac
18505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18506   (eval "$ac_try") 2>&5
18507   ac_status=$?
18508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509   (exit $ac_status); }; } &&
18510          { ac_try='test -s conftest$ac_exeext'
18511   { (case "(($ac_try" in
18512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513   *) ac_try_echo=$ac_try;;
18514 esac
18515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516   (eval "$ac_try") 2>&5
18517   ac_status=$?
18518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519   (exit $ac_status); }; }; then
18520   ac_cv_lib_gcc___fixdfdi=yes
18521 else
18522   echo "$as_me: failed program was:" >&5
18523 sed 's/^/| /' conftest.$ac_ext >&5
18524
18525         ac_cv_lib_gcc___fixdfdi=no
18526 fi
18527
18528 rm -f core conftest.err conftest.$ac_objext \
18529       conftest$ac_exeext conftest.$ac_ext
18530 LIBS=$ac_check_lib_save_LIBS
18531 fi
18532 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18533 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18534 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18535
18536 cat >>confdefs.h <<\_ACEOF
18537 #define HAVE___FIXDFDI 1
18538 _ACEOF
18539
18540 fi
18541
18542   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18543 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18544 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18545   echo $ECHO_N "(cached) $ECHO_C" >&6
18546 else
18547   ac_check_lib_save_LIBS=$LIBS
18548 LIBS="-lgcc  $LIBS"
18549 cat >conftest.$ac_ext <<_ACEOF
18550 /* confdefs.h.  */
18551 _ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h.  */
18555
18556 /* Override any GCC internal prototype to avoid an error.
18557    Use char because int might match the return type of a GCC
18558    builtin and then its argument prototype would still apply.  */
18559 #ifdef __cplusplus
18560 extern "C"
18561 #endif
18562 char __fixsfdi ();
18563 int
18564 main ()
18565 {
18566 return __fixsfdi ();
18567   ;
18568   return 0;
18569 }
18570 _ACEOF
18571 rm -f conftest.$ac_objext conftest$ac_exeext
18572 if { (ac_try="$ac_link"
18573 case "(($ac_try" in
18574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575   *) ac_try_echo=$ac_try;;
18576 esac
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578   (eval "$ac_link") 2>conftest.er1
18579   ac_status=$?
18580   grep -v '^ *+' conftest.er1 >conftest.err
18581   rm -f conftest.er1
18582   cat conftest.err >&5
18583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584   (exit $ac_status); } &&
18585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18586   { (case "(($ac_try" in
18587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588   *) ac_try_echo=$ac_try;;
18589 esac
18590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591   (eval "$ac_try") 2>&5
18592   ac_status=$?
18593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594   (exit $ac_status); }; } &&
18595          { ac_try='test -s conftest$ac_exeext'
18596   { (case "(($ac_try" in
18597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598   *) ac_try_echo=$ac_try;;
18599 esac
18600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601   (eval "$ac_try") 2>&5
18602   ac_status=$?
18603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604   (exit $ac_status); }; }; then
18605   ac_cv_lib_gcc___fixsfdi=yes
18606 else
18607   echo "$as_me: failed program was:" >&5
18608 sed 's/^/| /' conftest.$ac_ext >&5
18609
18610         ac_cv_lib_gcc___fixsfdi=no
18611 fi
18612
18613 rm -f core conftest.err conftest.$ac_objext \
18614       conftest$ac_exeext conftest.$ac_ext
18615 LIBS=$ac_check_lib_save_LIBS
18616 fi
18617 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18618 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18619 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18620
18621 cat >>confdefs.h <<\_ACEOF
18622 #define HAVE___FIXSFDI 1
18623 _ACEOF
18624
18625 fi
18626
18627   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18628 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18629 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18630   echo $ECHO_N "(cached) $ECHO_C" >&6
18631 else
18632   ac_check_lib_save_LIBS=$LIBS
18633 LIBS="-lgcc  $LIBS"
18634 cat >conftest.$ac_ext <<_ACEOF
18635 /* confdefs.h.  */
18636 _ACEOF
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h.  */
18640
18641 /* Override any GCC internal prototype to avoid an error.
18642    Use char because int might match the return type of a GCC
18643    builtin and then its argument prototype would still apply.  */
18644 #ifdef __cplusplus
18645 extern "C"
18646 #endif
18647 char __floatdidf ();
18648 int
18649 main ()
18650 {
18651 return __floatdidf ();
18652   ;
18653   return 0;
18654 }
18655 _ACEOF
18656 rm -f conftest.$ac_objext conftest$ac_exeext
18657 if { (ac_try="$ac_link"
18658 case "(($ac_try" in
18659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660   *) ac_try_echo=$ac_try;;
18661 esac
18662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663   (eval "$ac_link") 2>conftest.er1
18664   ac_status=$?
18665   grep -v '^ *+' conftest.er1 >conftest.err
18666   rm -f conftest.er1
18667   cat conftest.err >&5
18668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669   (exit $ac_status); } &&
18670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18671   { (case "(($ac_try" in
18672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18673   *) ac_try_echo=$ac_try;;
18674 esac
18675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18676   (eval "$ac_try") 2>&5
18677   ac_status=$?
18678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679   (exit $ac_status); }; } &&
18680          { ac_try='test -s conftest$ac_exeext'
18681   { (case "(($ac_try" in
18682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683   *) ac_try_echo=$ac_try;;
18684 esac
18685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686   (eval "$ac_try") 2>&5
18687   ac_status=$?
18688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689   (exit $ac_status); }; }; then
18690   ac_cv_lib_gcc___floatdidf=yes
18691 else
18692   echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.$ac_ext >&5
18694
18695         ac_cv_lib_gcc___floatdidf=no
18696 fi
18697
18698 rm -f core conftest.err conftest.$ac_objext \
18699       conftest$ac_exeext conftest.$ac_ext
18700 LIBS=$ac_check_lib_save_LIBS
18701 fi
18702 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18703 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18704 if test $ac_cv_lib_gcc___floatdidf = yes; then
18705
18706 cat >>confdefs.h <<\_ACEOF
18707 #define HAVE___FLOATDIDF 1
18708 _ACEOF
18709
18710 fi
18711
18712   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18713 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18714 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18715   echo $ECHO_N "(cached) $ECHO_C" >&6
18716 else
18717   ac_check_lib_save_LIBS=$LIBS
18718 LIBS="-lgcc  $LIBS"
18719 cat >conftest.$ac_ext <<_ACEOF
18720 /* confdefs.h.  */
18721 _ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h.  */
18725
18726 /* Override any GCC internal prototype to avoid an error.
18727    Use char because int might match the return type of a GCC
18728    builtin and then its argument prototype would still apply.  */
18729 #ifdef __cplusplus
18730 extern "C"
18731 #endif
18732 char __lshrdi3 ();
18733 int
18734 main ()
18735 {
18736 return __lshrdi3 ();
18737   ;
18738   return 0;
18739 }
18740 _ACEOF
18741 rm -f conftest.$ac_objext conftest$ac_exeext
18742 if { (ac_try="$ac_link"
18743 case "(($ac_try" in
18744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745   *) ac_try_echo=$ac_try;;
18746 esac
18747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748   (eval "$ac_link") 2>conftest.er1
18749   ac_status=$?
18750   grep -v '^ *+' conftest.er1 >conftest.err
18751   rm -f conftest.er1
18752   cat conftest.err >&5
18753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754   (exit $ac_status); } &&
18755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18756   { (case "(($ac_try" in
18757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18758   *) ac_try_echo=$ac_try;;
18759 esac
18760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18761   (eval "$ac_try") 2>&5
18762   ac_status=$?
18763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764   (exit $ac_status); }; } &&
18765          { ac_try='test -s conftest$ac_exeext'
18766   { (case "(($ac_try" in
18767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768   *) ac_try_echo=$ac_try;;
18769 esac
18770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771   (eval "$ac_try") 2>&5
18772   ac_status=$?
18773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774   (exit $ac_status); }; }; then
18775   ac_cv_lib_gcc___lshrdi3=yes
18776 else
18777   echo "$as_me: failed program was:" >&5
18778 sed 's/^/| /' conftest.$ac_ext >&5
18779
18780         ac_cv_lib_gcc___lshrdi3=no
18781 fi
18782
18783 rm -f core conftest.err conftest.$ac_objext \
18784       conftest$ac_exeext conftest.$ac_ext
18785 LIBS=$ac_check_lib_save_LIBS
18786 fi
18787 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18788 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18789 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18790
18791 cat >>confdefs.h <<\_ACEOF
18792 #define HAVE___LSHRDI3 1
18793 _ACEOF
18794
18795 fi
18796
18797   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18798 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18799 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18800   echo $ECHO_N "(cached) $ECHO_C" >&6
18801 else
18802   ac_check_lib_save_LIBS=$LIBS
18803 LIBS="-lgcc  $LIBS"
18804 cat >conftest.$ac_ext <<_ACEOF
18805 /* confdefs.h.  */
18806 _ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h.  */
18810
18811 /* Override any GCC internal prototype to avoid an error.
18812    Use char because int might match the return type of a GCC
18813    builtin and then its argument prototype would still apply.  */
18814 #ifdef __cplusplus
18815 extern "C"
18816 #endif
18817 char __moddi3 ();
18818 int
18819 main ()
18820 {
18821 return __moddi3 ();
18822   ;
18823   return 0;
18824 }
18825 _ACEOF
18826 rm -f conftest.$ac_objext conftest$ac_exeext
18827 if { (ac_try="$ac_link"
18828 case "(($ac_try" in
18829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830   *) ac_try_echo=$ac_try;;
18831 esac
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833   (eval "$ac_link") 2>conftest.er1
18834   ac_status=$?
18835   grep -v '^ *+' conftest.er1 >conftest.err
18836   rm -f conftest.er1
18837   cat conftest.err >&5
18838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839   (exit $ac_status); } &&
18840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18841   { (case "(($ac_try" in
18842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843   *) ac_try_echo=$ac_try;;
18844 esac
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846   (eval "$ac_try") 2>&5
18847   ac_status=$?
18848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849   (exit $ac_status); }; } &&
18850          { ac_try='test -s conftest$ac_exeext'
18851   { (case "(($ac_try" in
18852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853   *) ac_try_echo=$ac_try;;
18854 esac
18855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856   (eval "$ac_try") 2>&5
18857   ac_status=$?
18858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859   (exit $ac_status); }; }; then
18860   ac_cv_lib_gcc___moddi3=yes
18861 else
18862   echo "$as_me: failed program was:" >&5
18863 sed 's/^/| /' conftest.$ac_ext >&5
18864
18865         ac_cv_lib_gcc___moddi3=no
18866 fi
18867
18868 rm -f core conftest.err conftest.$ac_objext \
18869       conftest$ac_exeext conftest.$ac_ext
18870 LIBS=$ac_check_lib_save_LIBS
18871 fi
18872 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18873 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18874 if test $ac_cv_lib_gcc___moddi3 = yes; then
18875
18876 cat >>confdefs.h <<\_ACEOF
18877 #define HAVE___MODDI3 1
18878 _ACEOF
18879
18880 fi
18881
18882   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18883 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18884 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18885   echo $ECHO_N "(cached) $ECHO_C" >&6
18886 else
18887   ac_check_lib_save_LIBS=$LIBS
18888 LIBS="-lgcc  $LIBS"
18889 cat >conftest.$ac_ext <<_ACEOF
18890 /* confdefs.h.  */
18891 _ACEOF
18892 cat confdefs.h >>conftest.$ac_ext
18893 cat >>conftest.$ac_ext <<_ACEOF
18894 /* end confdefs.h.  */
18895
18896 /* Override any GCC internal prototype to avoid an error.
18897    Use char because int might match the return type of a GCC
18898    builtin and then its argument prototype would still apply.  */
18899 #ifdef __cplusplus
18900 extern "C"
18901 #endif
18902 char __udivdi3 ();
18903 int
18904 main ()
18905 {
18906 return __udivdi3 ();
18907   ;
18908   return 0;
18909 }
18910 _ACEOF
18911 rm -f conftest.$ac_objext conftest$ac_exeext
18912 if { (ac_try="$ac_link"
18913 case "(($ac_try" in
18914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915   *) ac_try_echo=$ac_try;;
18916 esac
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918   (eval "$ac_link") 2>conftest.er1
18919   ac_status=$?
18920   grep -v '^ *+' conftest.er1 >conftest.err
18921   rm -f conftest.er1
18922   cat conftest.err >&5
18923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924   (exit $ac_status); } &&
18925          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18926   { (case "(($ac_try" in
18927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928   *) ac_try_echo=$ac_try;;
18929 esac
18930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931   (eval "$ac_try") 2>&5
18932   ac_status=$?
18933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934   (exit $ac_status); }; } &&
18935          { ac_try='test -s conftest$ac_exeext'
18936   { (case "(($ac_try" in
18937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938   *) ac_try_echo=$ac_try;;
18939 esac
18940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941   (eval "$ac_try") 2>&5
18942   ac_status=$?
18943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944   (exit $ac_status); }; }; then
18945   ac_cv_lib_gcc___udivdi3=yes
18946 else
18947   echo "$as_me: failed program was:" >&5
18948 sed 's/^/| /' conftest.$ac_ext >&5
18949
18950         ac_cv_lib_gcc___udivdi3=no
18951 fi
18952
18953 rm -f core conftest.err conftest.$ac_objext \
18954       conftest$ac_exeext conftest.$ac_ext
18955 LIBS=$ac_check_lib_save_LIBS
18956 fi
18957 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18958 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18959 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18960
18961 cat >>confdefs.h <<\_ACEOF
18962 #define HAVE___UDIVDI3 1
18963 _ACEOF
18964
18965 fi
18966
18967   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18968 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18969 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18970   echo $ECHO_N "(cached) $ECHO_C" >&6
18971 else
18972   ac_check_lib_save_LIBS=$LIBS
18973 LIBS="-lgcc  $LIBS"
18974 cat >conftest.$ac_ext <<_ACEOF
18975 /* confdefs.h.  */
18976 _ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h.  */
18980
18981 /* Override any GCC internal prototype to avoid an error.
18982    Use char because int might match the return type of a GCC
18983    builtin and then its argument prototype would still apply.  */
18984 #ifdef __cplusplus
18985 extern "C"
18986 #endif
18987 char __umoddi3 ();
18988 int
18989 main ()
18990 {
18991 return __umoddi3 ();
18992   ;
18993   return 0;
18994 }
18995 _ACEOF
18996 rm -f conftest.$ac_objext conftest$ac_exeext
18997 if { (ac_try="$ac_link"
18998 case "(($ac_try" in
18999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000   *) ac_try_echo=$ac_try;;
19001 esac
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003   (eval "$ac_link") 2>conftest.er1
19004   ac_status=$?
19005   grep -v '^ *+' conftest.er1 >conftest.err
19006   rm -f conftest.er1
19007   cat conftest.err >&5
19008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009   (exit $ac_status); } &&
19010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19011   { (case "(($ac_try" in
19012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013   *) ac_try_echo=$ac_try;;
19014 esac
19015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016   (eval "$ac_try") 2>&5
19017   ac_status=$?
19018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019   (exit $ac_status); }; } &&
19020          { ac_try='test -s conftest$ac_exeext'
19021   { (case "(($ac_try" in
19022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023   *) ac_try_echo=$ac_try;;
19024 esac
19025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026   (eval "$ac_try") 2>&5
19027   ac_status=$?
19028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029   (exit $ac_status); }; }; then
19030   ac_cv_lib_gcc___umoddi3=yes
19031 else
19032   echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19034
19035         ac_cv_lib_gcc___umoddi3=no
19036 fi
19037
19038 rm -f core conftest.err conftest.$ac_objext \
19039       conftest$ac_exeext conftest.$ac_ext
19040 LIBS=$ac_check_lib_save_LIBS
19041 fi
19042 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19043 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19044 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19045
19046 cat >>confdefs.h <<\_ACEOF
19047 #define HAVE___UMODDI3 1
19048 _ACEOF
19049
19050 fi
19051
19052
19053   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19054 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19055 if test "${ac_cv_lib_gcc___main+set}" = set; then
19056   echo $ECHO_N "(cached) $ECHO_C" >&6
19057 else
19058   ac_check_lib_save_LIBS=$LIBS
19059 LIBS="-lgcc  $LIBS"
19060 cat >conftest.$ac_ext <<_ACEOF
19061 /* confdefs.h.  */
19062 _ACEOF
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h.  */
19066
19067 /* Override any GCC internal prototype to avoid an error.
19068    Use char because int might match the return type of a GCC
19069    builtin and then its argument prototype would still apply.  */
19070 #ifdef __cplusplus
19071 extern "C"
19072 #endif
19073 char __main ();
19074 int
19075 main ()
19076 {
19077 return __main ();
19078   ;
19079   return 0;
19080 }
19081 _ACEOF
19082 rm -f conftest.$ac_objext conftest$ac_exeext
19083 if { (ac_try="$ac_link"
19084 case "(($ac_try" in
19085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086   *) ac_try_echo=$ac_try;;
19087 esac
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089   (eval "$ac_link") 2>conftest.er1
19090   ac_status=$?
19091   grep -v '^ *+' conftest.er1 >conftest.err
19092   rm -f conftest.er1
19093   cat conftest.err >&5
19094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095   (exit $ac_status); } &&
19096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19097   { (case "(($ac_try" in
19098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099   *) ac_try_echo=$ac_try;;
19100 esac
19101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102   (eval "$ac_try") 2>&5
19103   ac_status=$?
19104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105   (exit $ac_status); }; } &&
19106          { ac_try='test -s conftest$ac_exeext'
19107   { (case "(($ac_try" in
19108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109   *) ac_try_echo=$ac_try;;
19110 esac
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112   (eval "$ac_try") 2>&5
19113   ac_status=$?
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); }; }; then
19116   ac_cv_lib_gcc___main=yes
19117 else
19118   echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19120
19121         ac_cv_lib_gcc___main=no
19122 fi
19123
19124 rm -f core conftest.err conftest.$ac_objext \
19125       conftest$ac_exeext conftest.$ac_ext
19126 LIBS=$ac_check_lib_save_LIBS
19127 fi
19128 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19129 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19130 if test $ac_cv_lib_gcc___main = yes; then
19131
19132 cat >>confdefs.h <<\_ACEOF
19133 #define HAVE___MAIN 1
19134 _ACEOF
19135
19136 fi
19137
19138   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19139 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19140 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19141   echo $ECHO_N "(cached) $ECHO_C" >&6
19142 else
19143   ac_check_lib_save_LIBS=$LIBS
19144 LIBS="-lgcc  $LIBS"
19145 cat >conftest.$ac_ext <<_ACEOF
19146 /* confdefs.h.  */
19147 _ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h.  */
19151
19152 /* Override any GCC internal prototype to avoid an error.
19153    Use char because int might match the return type of a GCC
19154    builtin and then its argument prototype would still apply.  */
19155 #ifdef __cplusplus
19156 extern "C"
19157 #endif
19158 char __cmpdi2 ();
19159 int
19160 main ()
19161 {
19162 return __cmpdi2 ();
19163   ;
19164   return 0;
19165 }
19166 _ACEOF
19167 rm -f conftest.$ac_objext conftest$ac_exeext
19168 if { (ac_try="$ac_link"
19169 case "(($ac_try" in
19170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171   *) ac_try_echo=$ac_try;;
19172 esac
19173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174   (eval "$ac_link") 2>conftest.er1
19175   ac_status=$?
19176   grep -v '^ *+' conftest.er1 >conftest.err
19177   rm -f conftest.er1
19178   cat conftest.err >&5
19179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180   (exit $ac_status); } &&
19181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19182   { (case "(($ac_try" in
19183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184   *) ac_try_echo=$ac_try;;
19185 esac
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187   (eval "$ac_try") 2>&5
19188   ac_status=$?
19189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190   (exit $ac_status); }; } &&
19191          { ac_try='test -s conftest$ac_exeext'
19192   { (case "(($ac_try" in
19193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194   *) ac_try_echo=$ac_try;;
19195 esac
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197   (eval "$ac_try") 2>&5
19198   ac_status=$?
19199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200   (exit $ac_status); }; }; then
19201   ac_cv_lib_gcc___cmpdi2=yes
19202 else
19203   echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.$ac_ext >&5
19205
19206         ac_cv_lib_gcc___cmpdi2=no
19207 fi
19208
19209 rm -f core conftest.err conftest.$ac_objext \
19210       conftest$ac_exeext conftest.$ac_ext
19211 LIBS=$ac_check_lib_save_LIBS
19212 fi
19213 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19214 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19215 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19216
19217 cat >>confdefs.h <<\_ACEOF
19218 #define HAVE___CMPDI2 1
19219 _ACEOF
19220
19221 fi
19222
19223 fi
19224
19225 if test "$llvm_cv_os_type" = "MingW" ; then
19226   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19227 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19228   cat >conftest.$ac_ext <<_ACEOF
19229 #include <windows.h>
19230 #include <imagehlp.h>
19231 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19232 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19233 _ACEOF
19234 rm -f conftest.$ac_objext
19235 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19242   ac_status=$?
19243   grep -v '^ *+' conftest.er1 >conftest.err
19244   rm -f conftest.er1
19245   cat conftest.err >&5
19246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247   (exit $ac_status); } &&
19248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19249   { (case "(($ac_try" in
19250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251   *) ac_try_echo=$ac_try;;
19252 esac
19253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19254   (eval "$ac_try") 2>&5
19255   ac_status=$?
19256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257   (exit $ac_status); }; } &&
19258          { ac_try='test -s conftest.$ac_objext'
19259   { (case "(($ac_try" in
19260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261   *) ac_try_echo=$ac_try;;
19262 esac
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264   (eval "$ac_try") 2>&5
19265   ac_status=$?
19266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267   (exit $ac_status); }; }; then
19268
19269   { echo "$as_me:$LINENO: result: yes" >&5
19270 echo "${ECHO_T}yes" >&6; }
19271   llvm_cv_win32_elmcb_pcstr="PCSTR"
19272
19273 else
19274   echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19276
19277
19278   { echo "$as_me:$LINENO: result: no" >&5
19279 echo "${ECHO_T}no" >&6; }
19280   llvm_cv_win32_elmcb_pcstr="PSTR"
19281
19282 fi
19283
19284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19285
19286 cat >>confdefs.h <<_ACEOF
19287 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19288 _ACEOF
19289
19290 fi
19291
19292
19293 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19294 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19295 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19296   echo $ECHO_N "(cached) $ECHO_C" >&6
19297 else
19298   ac_ext=cpp
19299 ac_cpp='$CXXCPP $CPPFLAGS'
19300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19303
19304    cat >conftest.$ac_ext <<_ACEOF
19305 /* confdefs.h.  */
19306 _ACEOF
19307 cat confdefs.h >>conftest.$ac_ext
19308 cat >>conftest.$ac_ext <<_ACEOF
19309 /* end confdefs.h.  */
19310 #include <math.h>
19311 int
19312 main ()
19313 {
19314 float f; isnan(f);
19315   ;
19316   return 0;
19317 }
19318 _ACEOF
19319 rm -f conftest.$ac_objext
19320 if { (ac_try="$ac_compile"
19321 case "(($ac_try" in
19322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323   *) ac_try_echo=$ac_try;;
19324 esac
19325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19326   (eval "$ac_compile") 2>conftest.er1
19327   ac_status=$?
19328   grep -v '^ *+' conftest.er1 >conftest.err
19329   rm -f conftest.er1
19330   cat conftest.err >&5
19331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332   (exit $ac_status); } &&
19333          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19334   { (case "(($ac_try" in
19335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19336   *) ac_try_echo=$ac_try;;
19337 esac
19338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19339   (eval "$ac_try") 2>&5
19340   ac_status=$?
19341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342   (exit $ac_status); }; } &&
19343          { ac_try='test -s conftest.$ac_objext'
19344   { (case "(($ac_try" in
19345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346   *) ac_try_echo=$ac_try;;
19347 esac
19348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349   (eval "$ac_try") 2>&5
19350   ac_status=$?
19351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352   (exit $ac_status); }; }; then
19353   ac_cv_func_isnan_in_math_h=yes
19354 else
19355   echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.$ac_ext >&5
19357
19358         ac_cv_func_isnan_in_math_h=no
19359 fi
19360
19361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19362   ac_ext=c
19363 ac_cpp='$CPP $CPPFLAGS'
19364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19367
19368 fi
19369 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19370 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19371
19372
19373 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19374
19375 cat >>confdefs.h <<\_ACEOF
19376 #define HAVE_ISNAN_IN_MATH_H 1
19377 _ACEOF
19378
19379 fi
19380
19381 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19382 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19383 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19384   echo $ECHO_N "(cached) $ECHO_C" >&6
19385 else
19386   ac_ext=cpp
19387 ac_cpp='$CXXCPP $CPPFLAGS'
19388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19391
19392    cat >conftest.$ac_ext <<_ACEOF
19393 /* confdefs.h.  */
19394 _ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h.  */
19398 #include <cmath>
19399 int
19400 main ()
19401 {
19402 float f; isnan(f);
19403   ;
19404   return 0;
19405 }
19406 _ACEOF
19407 rm -f conftest.$ac_objext
19408 if { (ac_try="$ac_compile"
19409 case "(($ac_try" in
19410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411   *) ac_try_echo=$ac_try;;
19412 esac
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414   (eval "$ac_compile") 2>conftest.er1
19415   ac_status=$?
19416   grep -v '^ *+' conftest.er1 >conftest.err
19417   rm -f conftest.er1
19418   cat conftest.err >&5
19419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420   (exit $ac_status); } &&
19421          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19422   { (case "(($ac_try" in
19423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424   *) ac_try_echo=$ac_try;;
19425 esac
19426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427   (eval "$ac_try") 2>&5
19428   ac_status=$?
19429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430   (exit $ac_status); }; } &&
19431          { ac_try='test -s conftest.$ac_objext'
19432   { (case "(($ac_try" in
19433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434   *) ac_try_echo=$ac_try;;
19435 esac
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437   (eval "$ac_try") 2>&5
19438   ac_status=$?
19439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440   (exit $ac_status); }; }; then
19441   ac_cv_func_isnan_in_cmath=yes
19442 else
19443   echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19445
19446         ac_cv_func_isnan_in_cmath=no
19447 fi
19448
19449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19450   ac_ext=c
19451 ac_cpp='$CPP $CPPFLAGS'
19452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19455
19456 fi
19457 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19458 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19459
19460 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19461
19462 cat >>confdefs.h <<\_ACEOF
19463 #define HAVE_ISNAN_IN_CMATH 1
19464 _ACEOF
19465
19466 fi
19467
19468 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19469 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19470 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19471   echo $ECHO_N "(cached) $ECHO_C" >&6
19472 else
19473   ac_ext=cpp
19474 ac_cpp='$CXXCPP $CPPFLAGS'
19475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19478
19479    cat >conftest.$ac_ext <<_ACEOF
19480 /* confdefs.h.  */
19481 _ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h.  */
19485 #include <cmath>
19486 int
19487 main ()
19488 {
19489 float f; std::isnan(f);
19490   ;
19491   return 0;
19492 }
19493 _ACEOF
19494 rm -f conftest.$ac_objext
19495 if { (ac_try="$ac_compile"
19496 case "(($ac_try" in
19497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498   *) ac_try_echo=$ac_try;;
19499 esac
19500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501   (eval "$ac_compile") 2>conftest.er1
19502   ac_status=$?
19503   grep -v '^ *+' conftest.er1 >conftest.err
19504   rm -f conftest.er1
19505   cat conftest.err >&5
19506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507   (exit $ac_status); } &&
19508          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19509   { (case "(($ac_try" in
19510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511   *) ac_try_echo=$ac_try;;
19512 esac
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514   (eval "$ac_try") 2>&5
19515   ac_status=$?
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); }; } &&
19518          { ac_try='test -s conftest.$ac_objext'
19519   { (case "(($ac_try" in
19520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521   *) ac_try_echo=$ac_try;;
19522 esac
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524   (eval "$ac_try") 2>&5
19525   ac_status=$?
19526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527   (exit $ac_status); }; }; then
19528   ac_cv_func_std_isnan_in_cmath=yes
19529 else
19530   echo "$as_me: failed program was:" >&5
19531 sed 's/^/| /' conftest.$ac_ext >&5
19532
19533         ac_cv_func_std_isnan_in_cmath=no
19534 fi
19535
19536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19537   ac_ext=c
19538 ac_cpp='$CPP $CPPFLAGS'
19539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19542
19543 fi
19544 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19545 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19546
19547 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19548
19549 cat >>confdefs.h <<\_ACEOF
19550 #define HAVE_STD_ISNAN_IN_CMATH 1
19551 _ACEOF
19552
19553 fi
19554
19555
19556 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19557 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19558 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19559   echo $ECHO_N "(cached) $ECHO_C" >&6
19560 else
19561   ac_ext=cpp
19562 ac_cpp='$CXXCPP $CPPFLAGS'
19563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19566
19567    cat >conftest.$ac_ext <<_ACEOF
19568 /* confdefs.h.  */
19569 _ACEOF
19570 cat confdefs.h >>conftest.$ac_ext
19571 cat >>conftest.$ac_ext <<_ACEOF
19572 /* end confdefs.h.  */
19573 #include <math.h>
19574 int
19575 main ()
19576 {
19577 float f; isinf(f);
19578   ;
19579   return 0;
19580 }
19581 _ACEOF
19582 rm -f conftest.$ac_objext
19583 if { (ac_try="$ac_compile"
19584 case "(($ac_try" in
19585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586   *) ac_try_echo=$ac_try;;
19587 esac
19588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589   (eval "$ac_compile") 2>conftest.er1
19590   ac_status=$?
19591   grep -v '^ *+' conftest.er1 >conftest.err
19592   rm -f conftest.er1
19593   cat conftest.err >&5
19594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595   (exit $ac_status); } &&
19596          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19597   { (case "(($ac_try" in
19598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599   *) ac_try_echo=$ac_try;;
19600 esac
19601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602   (eval "$ac_try") 2>&5
19603   ac_status=$?
19604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605   (exit $ac_status); }; } &&
19606          { ac_try='test -s conftest.$ac_objext'
19607   { (case "(($ac_try" in
19608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609   *) ac_try_echo=$ac_try;;
19610 esac
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612   (eval "$ac_try") 2>&5
19613   ac_status=$?
19614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615   (exit $ac_status); }; }; then
19616   ac_cv_func_isinf_in_math_h=yes
19617 else
19618   echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19620
19621         ac_cv_func_isinf_in_math_h=no
19622 fi
19623
19624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19625   ac_ext=c
19626 ac_cpp='$CPP $CPPFLAGS'
19627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19630
19631 fi
19632 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19633 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19634
19635 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19636
19637 cat >>confdefs.h <<\_ACEOF
19638 #define HAVE_ISINF_IN_MATH_H 1
19639 _ACEOF
19640
19641 fi
19642
19643 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19644 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19645 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19646   echo $ECHO_N "(cached) $ECHO_C" >&6
19647 else
19648   ac_ext=cpp
19649 ac_cpp='$CXXCPP $CPPFLAGS'
19650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19653
19654    cat >conftest.$ac_ext <<_ACEOF
19655 /* confdefs.h.  */
19656 _ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h.  */
19660 #include <cmath>
19661 int
19662 main ()
19663 {
19664 float f; isinf(f);
19665   ;
19666   return 0;
19667 }
19668 _ACEOF
19669 rm -f conftest.$ac_objext
19670 if { (ac_try="$ac_compile"
19671 case "(($ac_try" in
19672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673   *) ac_try_echo=$ac_try;;
19674 esac
19675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676   (eval "$ac_compile") 2>conftest.er1
19677   ac_status=$?
19678   grep -v '^ *+' conftest.er1 >conftest.err
19679   rm -f conftest.er1
19680   cat conftest.err >&5
19681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682   (exit $ac_status); } &&
19683          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19684   { (case "(($ac_try" in
19685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686   *) ac_try_echo=$ac_try;;
19687 esac
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689   (eval "$ac_try") 2>&5
19690   ac_status=$?
19691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692   (exit $ac_status); }; } &&
19693          { ac_try='test -s conftest.$ac_objext'
19694   { (case "(($ac_try" in
19695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696   *) ac_try_echo=$ac_try;;
19697 esac
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699   (eval "$ac_try") 2>&5
19700   ac_status=$?
19701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702   (exit $ac_status); }; }; then
19703   ac_cv_func_isinf_in_cmath=yes
19704 else
19705   echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19707
19708         ac_cv_func_isinf_in_cmath=no
19709 fi
19710
19711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19712   ac_ext=c
19713 ac_cpp='$CPP $CPPFLAGS'
19714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19717
19718 fi
19719 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19720 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19721
19722 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19723
19724 cat >>confdefs.h <<\_ACEOF
19725 #define HAVE_ISINF_IN_CMATH 1
19726 _ACEOF
19727
19728 fi
19729
19730 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19731 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19732 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19733   echo $ECHO_N "(cached) $ECHO_C" >&6
19734 else
19735   ac_ext=cpp
19736 ac_cpp='$CXXCPP $CPPFLAGS'
19737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19740
19741    cat >conftest.$ac_ext <<_ACEOF
19742 /* confdefs.h.  */
19743 _ACEOF
19744 cat confdefs.h >>conftest.$ac_ext
19745 cat >>conftest.$ac_ext <<_ACEOF
19746 /* end confdefs.h.  */
19747 #include <cmath>
19748 int
19749 main ()
19750 {
19751 float f; std::isinf(f)}
19752   ;
19753   return 0;
19754 }
19755 _ACEOF
19756 rm -f conftest.$ac_objext
19757 if { (ac_try="$ac_compile"
19758 case "(($ac_try" in
19759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760   *) ac_try_echo=$ac_try;;
19761 esac
19762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763   (eval "$ac_compile") 2>conftest.er1
19764   ac_status=$?
19765   grep -v '^ *+' conftest.er1 >conftest.err
19766   rm -f conftest.er1
19767   cat conftest.err >&5
19768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769   (exit $ac_status); } &&
19770          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19771   { (case "(($ac_try" in
19772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773   *) ac_try_echo=$ac_try;;
19774 esac
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776   (eval "$ac_try") 2>&5
19777   ac_status=$?
19778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); }; } &&
19780          { ac_try='test -s conftest.$ac_objext'
19781   { (case "(($ac_try" in
19782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783   *) ac_try_echo=$ac_try;;
19784 esac
19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786   (eval "$ac_try") 2>&5
19787   ac_status=$?
19788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); }; }; then
19790   ac_cv_func_std_isinf_in_cmath=yes
19791 else
19792   echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19794
19795         ac_cv_func_std_isinf_in_cmath=no
19796 fi
19797
19798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19799   ac_ext=c
19800 ac_cpp='$CPP $CPPFLAGS'
19801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19804
19805 fi
19806 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19807 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19808
19809 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19810
19811 cat >>confdefs.h <<\_ACEOF
19812 #define HAVE_STD_ISINF_IN_CMATH 1
19813 _ACEOF
19814
19815 fi
19816
19817 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19818 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19819 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19820   echo $ECHO_N "(cached) $ECHO_C" >&6
19821 else
19822   ac_ext=cpp
19823 ac_cpp='$CXXCPP $CPPFLAGS'
19824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19827
19828    cat >conftest.$ac_ext <<_ACEOF
19829 /* confdefs.h.  */
19830 _ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h.  */
19834 #include <ieeefp.h>
19835 int
19836 main ()
19837 {
19838 float f; finite(f);
19839   ;
19840   return 0;
19841 }
19842 _ACEOF
19843 rm -f conftest.$ac_objext
19844 if { (ac_try="$ac_compile"
19845 case "(($ac_try" in
19846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847   *) ac_try_echo=$ac_try;;
19848 esac
19849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850   (eval "$ac_compile") 2>conftest.er1
19851   ac_status=$?
19852   grep -v '^ *+' conftest.er1 >conftest.err
19853   rm -f conftest.er1
19854   cat conftest.err >&5
19855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856   (exit $ac_status); } &&
19857          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19858   { (case "(($ac_try" in
19859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860   *) ac_try_echo=$ac_try;;
19861 esac
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863   (eval "$ac_try") 2>&5
19864   ac_status=$?
19865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866   (exit $ac_status); }; } &&
19867          { ac_try='test -s conftest.$ac_objext'
19868   { (case "(($ac_try" in
19869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870   *) ac_try_echo=$ac_try;;
19871 esac
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873   (eval "$ac_try") 2>&5
19874   ac_status=$?
19875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876   (exit $ac_status); }; }; then
19877   ac_cv_func_finite_in_ieeefp_h=yes
19878 else
19879   echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19881
19882         ac_cv_func_finite_in_ieeefp_h=no
19883 fi
19884
19885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19886   ac_ext=c
19887 ac_cpp='$CPP $CPPFLAGS'
19888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19891
19892 fi
19893 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19894 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19895
19896 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19897
19898 cat >>confdefs.h <<\_ACEOF
19899 #define HAVE_FINITE_IN_IEEEFP_H 1
19900 _ACEOF
19901
19902 fi
19903
19904
19905
19906 if test "$llvm_cv_platform_type" = "Unix" ; then
19907
19908
19909 for ac_header in stdlib.h unistd.h
19910 do
19911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19913   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19916   echo $ECHO_N "(cached) $ECHO_C" >&6
19917 fi
19918 ac_res=`eval echo '${'$as_ac_Header'}'`
19919                { echo "$as_me:$LINENO: result: $ac_res" >&5
19920 echo "${ECHO_T}$ac_res" >&6; }
19921 else
19922   # Is the header compilable?
19923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19925 cat >conftest.$ac_ext <<_ACEOF
19926 /* confdefs.h.  */
19927 _ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h.  */
19931 $ac_includes_default
19932 #include <$ac_header>
19933 _ACEOF
19934 rm -f conftest.$ac_objext
19935 if { (ac_try="$ac_compile"
19936 case "(($ac_try" in
19937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938   *) ac_try_echo=$ac_try;;
19939 esac
19940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941   (eval "$ac_compile") 2>conftest.er1
19942   ac_status=$?
19943   grep -v '^ *+' conftest.er1 >conftest.err
19944   rm -f conftest.er1
19945   cat conftest.err >&5
19946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947   (exit $ac_status); } &&
19948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19949   { (case "(($ac_try" in
19950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951   *) ac_try_echo=$ac_try;;
19952 esac
19953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954   (eval "$ac_try") 2>&5
19955   ac_status=$?
19956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957   (exit $ac_status); }; } &&
19958          { ac_try='test -s conftest.$ac_objext'
19959   { (case "(($ac_try" in
19960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961   *) ac_try_echo=$ac_try;;
19962 esac
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964   (eval "$ac_try") 2>&5
19965   ac_status=$?
19966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967   (exit $ac_status); }; }; then
19968   ac_header_compiler=yes
19969 else
19970   echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19972
19973         ac_header_compiler=no
19974 fi
19975
19976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19978 echo "${ECHO_T}$ac_header_compiler" >&6; }
19979
19980 # Is the header present?
19981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19983 cat >conftest.$ac_ext <<_ACEOF
19984 /* confdefs.h.  */
19985 _ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h.  */
19989 #include <$ac_header>
19990 _ACEOF
19991 if { (ac_try="$ac_cpp conftest.$ac_ext"
19992 case "(($ac_try" in
19993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994   *) ac_try_echo=$ac_try;;
19995 esac
19996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19998   ac_status=$?
19999   grep -v '^ *+' conftest.er1 >conftest.err
20000   rm -f conftest.er1
20001   cat conftest.err >&5
20002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); } >/dev/null; then
20004   if test -s conftest.err; then
20005     ac_cpp_err=$ac_c_preproc_warn_flag
20006     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20007   else
20008     ac_cpp_err=
20009   fi
20010 else
20011   ac_cpp_err=yes
20012 fi
20013 if test -z "$ac_cpp_err"; then
20014   ac_header_preproc=yes
20015 else
20016   echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20018
20019   ac_header_preproc=no
20020 fi
20021
20022 rm -f conftest.err conftest.$ac_ext
20023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20024 echo "${ECHO_T}$ac_header_preproc" >&6; }
20025
20026 # So?  What about this header?
20027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20028   yes:no: )
20029     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20033     ac_header_preproc=yes
20034     ;;
20035   no:yes:* )
20036     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20038     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20039 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20040     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20042     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20043 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20046     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20048     ( cat <<\_ASBOX
20049 ## ----------------------------------- ##
20050 ## Report this to llvmbugs@cs.uiuc.edu ##
20051 ## ----------------------------------- ##
20052 _ASBOX
20053      ) | sed "s/^/$as_me: WARNING:     /" >&2
20054     ;;
20055 esac
20056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20059   echo $ECHO_N "(cached) $ECHO_C" >&6
20060 else
20061   eval "$as_ac_Header=\$ac_header_preproc"
20062 fi
20063 ac_res=`eval echo '${'$as_ac_Header'}'`
20064                { echo "$as_me:$LINENO: result: $ac_res" >&5
20065 echo "${ECHO_T}$ac_res" >&6; }
20066
20067 fi
20068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20069   cat >>confdefs.h <<_ACEOF
20070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20071 _ACEOF
20072
20073 fi
20074
20075 done
20076
20077
20078 for ac_func in getpagesize
20079 do
20080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20081 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20083 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20084   echo $ECHO_N "(cached) $ECHO_C" >&6
20085 else
20086   cat >conftest.$ac_ext <<_ACEOF
20087 /* confdefs.h.  */
20088 _ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h.  */
20092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20094 #define $ac_func innocuous_$ac_func
20095
20096 /* System header to define __stub macros and hopefully few prototypes,
20097     which can conflict with char $ac_func (); below.
20098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20099     <limits.h> exists even on freestanding compilers.  */
20100
20101 #ifdef __STDC__
20102 # include <limits.h>
20103 #else
20104 # include <assert.h>
20105 #endif
20106
20107 #undef $ac_func
20108
20109 /* Override any GCC internal prototype to avoid an error.
20110    Use char because int might match the return type of a GCC
20111    builtin and then its argument prototype would still apply.  */
20112 #ifdef __cplusplus
20113 extern "C"
20114 #endif
20115 char $ac_func ();
20116 /* The GNU C library defines this for functions which it implements
20117     to always fail with ENOSYS.  Some functions are actually named
20118     something starting with __ and the normal name is an alias.  */
20119 #if defined __stub_$ac_func || defined __stub___$ac_func
20120 choke me
20121 #endif
20122
20123 int
20124 main ()
20125 {
20126 return $ac_func ();
20127   ;
20128   return 0;
20129 }
20130 _ACEOF
20131 rm -f conftest.$ac_objext conftest$ac_exeext
20132 if { (ac_try="$ac_link"
20133 case "(($ac_try" in
20134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135   *) ac_try_echo=$ac_try;;
20136 esac
20137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138   (eval "$ac_link") 2>conftest.er1
20139   ac_status=$?
20140   grep -v '^ *+' conftest.er1 >conftest.err
20141   rm -f conftest.er1
20142   cat conftest.err >&5
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); } &&
20145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20146   { (case "(($ac_try" in
20147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148   *) ac_try_echo=$ac_try;;
20149 esac
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151   (eval "$ac_try") 2>&5
20152   ac_status=$?
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); }; } &&
20155          { ac_try='test -s conftest$ac_exeext'
20156   { (case "(($ac_try" in
20157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158   *) ac_try_echo=$ac_try;;
20159 esac
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161   (eval "$ac_try") 2>&5
20162   ac_status=$?
20163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164   (exit $ac_status); }; }; then
20165   eval "$as_ac_var=yes"
20166 else
20167   echo "$as_me: failed program was:" >&5
20168 sed 's/^/| /' conftest.$ac_ext >&5
20169
20170         eval "$as_ac_var=no"
20171 fi
20172
20173 rm -f core conftest.err conftest.$ac_objext \
20174       conftest$ac_exeext conftest.$ac_ext
20175 fi
20176 ac_res=`eval echo '${'$as_ac_var'}'`
20177                { echo "$as_me:$LINENO: result: $ac_res" >&5
20178 echo "${ECHO_T}$ac_res" >&6; }
20179 if test `eval echo '${'$as_ac_var'}'` = yes; then
20180   cat >>confdefs.h <<_ACEOF
20181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20182 _ACEOF
20183
20184 fi
20185 done
20186
20187 { echo "$as_me:$LINENO: checking for working mmap" >&5
20188 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20189 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20190   echo $ECHO_N "(cached) $ECHO_C" >&6
20191 else
20192   if test "$cross_compiling" = yes; then
20193   ac_cv_func_mmap_fixed_mapped=no
20194 else
20195   cat >conftest.$ac_ext <<_ACEOF
20196 /* confdefs.h.  */
20197 _ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h.  */
20201 $ac_includes_default
20202 /* malloc might have been renamed as rpl_malloc. */
20203 #undef malloc
20204
20205 /* Thanks to Mike Haertel and Jim Avera for this test.
20206    Here is a matrix of mmap possibilities:
20207         mmap private not fixed
20208         mmap private fixed at somewhere currently unmapped
20209         mmap private fixed at somewhere already mapped
20210         mmap shared not fixed
20211         mmap shared fixed at somewhere currently unmapped
20212         mmap shared fixed at somewhere already mapped
20213    For private mappings, we should verify that changes cannot be read()
20214    back from the file, nor mmap's back from the file at a different
20215    address.  (There have been systems where private was not correctly
20216    implemented like the infamous i386 svr4.0, and systems where the
20217    VM page cache was not coherent with the file system buffer cache
20218    like early versions of FreeBSD and possibly contemporary NetBSD.)
20219    For shared mappings, we should conversely verify that changes get
20220    propagated back to all the places they're supposed to be.
20221
20222    Grep wants private fixed already mapped.
20223    The main things grep needs to know about mmap are:
20224    * does it exist and is it safe to write into the mmap'd area
20225    * how to use it (BSD variants)  */
20226
20227 #include <fcntl.h>
20228 #include <sys/mman.h>
20229
20230 #if !STDC_HEADERS && !HAVE_STDLIB_H
20231 char *malloc ();
20232 #endif
20233
20234 /* This mess was copied from the GNU getpagesize.h.  */
20235 #if !HAVE_GETPAGESIZE
20236 /* Assume that all systems that can run configure have sys/param.h.  */
20237 # if !HAVE_SYS_PARAM_H
20238 #  define HAVE_SYS_PARAM_H 1
20239 # endif
20240
20241 # ifdef _SC_PAGESIZE
20242 #  define getpagesize() sysconf(_SC_PAGESIZE)
20243 # else /* no _SC_PAGESIZE */
20244 #  if HAVE_SYS_PARAM_H
20245 #   include <sys/param.h>
20246 #   ifdef EXEC_PAGESIZE
20247 #    define getpagesize() EXEC_PAGESIZE
20248 #   else /* no EXEC_PAGESIZE */
20249 #    ifdef NBPG
20250 #     define getpagesize() NBPG * CLSIZE
20251 #     ifndef CLSIZE
20252 #      define CLSIZE 1
20253 #     endif /* no CLSIZE */
20254 #    else /* no NBPG */
20255 #     ifdef NBPC
20256 #      define getpagesize() NBPC
20257 #     else /* no NBPC */
20258 #      ifdef PAGESIZE
20259 #       define getpagesize() PAGESIZE
20260 #      endif /* PAGESIZE */
20261 #     endif /* no NBPC */
20262 #    endif /* no NBPG */
20263 #   endif /* no EXEC_PAGESIZE */
20264 #  else /* no HAVE_SYS_PARAM_H */
20265 #   define getpagesize() 8192   /* punt totally */
20266 #  endif /* no HAVE_SYS_PARAM_H */
20267 # endif /* no _SC_PAGESIZE */
20268
20269 #endif /* no HAVE_GETPAGESIZE */
20270
20271 int
20272 main ()
20273 {
20274   char *data, *data2, *data3;
20275   int i, pagesize;
20276   int fd;
20277
20278   pagesize = getpagesize ();
20279
20280   /* First, make a file with some known garbage in it. */
20281   data = (char *) malloc (pagesize);
20282   if (!data)
20283     return 1;
20284   for (i = 0; i < pagesize; ++i)
20285     *(data + i) = rand ();
20286   umask (0);
20287   fd = creat ("conftest.mmap", 0600);
20288   if (fd < 0)
20289     return 1;
20290   if (write (fd, data, pagesize) != pagesize)
20291     return 1;
20292   close (fd);
20293
20294   /* Next, try to mmap the file at a fixed address which already has
20295      something else allocated at it.  If we can, also make sure that
20296      we see the same garbage.  */
20297   fd = open ("conftest.mmap", O_RDWR);
20298   if (fd < 0)
20299     return 1;
20300   data2 = (char *) malloc (2 * pagesize);
20301   if (!data2)
20302     return 1;
20303   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20304   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20305                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20306     return 1;
20307   for (i = 0; i < pagesize; ++i)
20308     if (*(data + i) != *(data2 + i))
20309       return 1;
20310
20311   /* Finally, make sure that changes to the mapped area do not
20312      percolate back to the file as seen by read().  (This is a bug on
20313      some variants of i386 svr4.0.)  */
20314   for (i = 0; i < pagesize; ++i)
20315     *(data2 + i) = *(data2 + i) + 1;
20316   data3 = (char *) malloc (pagesize);
20317   if (!data3)
20318     return 1;
20319   if (read (fd, data3, pagesize) != pagesize)
20320     return 1;
20321   for (i = 0; i < pagesize; ++i)
20322     if (*(data + i) != *(data3 + i))
20323       return 1;
20324   close (fd);
20325   return 0;
20326 }
20327 _ACEOF
20328 rm -f conftest$ac_exeext
20329 if { (ac_try="$ac_link"
20330 case "(($ac_try" in
20331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332   *) ac_try_echo=$ac_try;;
20333 esac
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335   (eval "$ac_link") 2>&5
20336   ac_status=$?
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20339   { (case "(($ac_try" in
20340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341   *) ac_try_echo=$ac_try;;
20342 esac
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344   (eval "$ac_try") 2>&5
20345   ac_status=$?
20346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347   (exit $ac_status); }; }; then
20348   ac_cv_func_mmap_fixed_mapped=yes
20349 else
20350   echo "$as_me: program exited with status $ac_status" >&5
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20353
20354 ( exit $ac_status )
20355 ac_cv_func_mmap_fixed_mapped=no
20356 fi
20357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20358 fi
20359
20360
20361 fi
20362 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20363 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20364 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20365
20366 cat >>confdefs.h <<\_ACEOF
20367 #define HAVE_MMAP 1
20368 _ACEOF
20369
20370 fi
20371 rm -f conftest.mmap
20372
20373   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20374 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20375 if test "${ac_cv_func_mmap_file+set}" = set; then
20376   echo $ECHO_N "(cached) $ECHO_C" >&6
20377 else
20378    ac_ext=c
20379 ac_cpp='$CPP $CPPFLAGS'
20380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20383
20384   if test "$cross_compiling" = yes; then
20385   ac_cv_func_mmap_file=no
20386 else
20387   cat >conftest.$ac_ext <<_ACEOF
20388
20389     /* confdefs.h.  */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h.  */
20394
20395 #include <sys/types.h>
20396 #include <sys/mman.h>
20397 #include <fcntl.h>
20398
20399 int
20400 main ()
20401 {
20402
20403   int fd;
20404   fd = creat ("foo",0777);
20405   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20406   unlink ("foo");
20407   return (fd != (int) MAP_FAILED);
20408   ;
20409   return 0;
20410 }
20411 _ACEOF
20412 rm -f conftest$ac_exeext
20413 if { (ac_try="$ac_link"
20414 case "(($ac_try" in
20415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416   *) ac_try_echo=$ac_try;;
20417 esac
20418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419   (eval "$ac_link") 2>&5
20420   ac_status=$?
20421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20423   { (case "(($ac_try" in
20424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425   *) ac_try_echo=$ac_try;;
20426 esac
20427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428   (eval "$ac_try") 2>&5
20429   ac_status=$?
20430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431   (exit $ac_status); }; }; then
20432   ac_cv_func_mmap_file=yes
20433 else
20434   echo "$as_me: program exited with status $ac_status" >&5
20435 echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.$ac_ext >&5
20437
20438 ( exit $ac_status )
20439 ac_cv_func_mmap_file=no
20440 fi
20441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20442 fi
20443
20444
20445   ac_ext=c
20446 ac_cpp='$CPP $CPPFLAGS'
20447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20450
20451
20452 fi
20453 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20454 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20455 if test "$ac_cv_func_mmap_file" = yes; then
20456
20457 cat >>confdefs.h <<\_ACEOF
20458 #define HAVE_MMAP_FILE
20459 _ACEOF
20460
20461    MMAP_FILE=yes
20462
20463 fi
20464
20465   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20466 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20467 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20468   echo $ECHO_N "(cached) $ECHO_C" >&6
20469 else
20470   if test "$llvm_cv_os_type" = "Interix" ; then
20471    ac_cv_need_dev_zero_for_mmap=yes
20472  else
20473    ac_cv_need_dev_zero_for_mmap=no
20474  fi
20475
20476 fi
20477 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20478 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20479 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20480
20481 cat >>confdefs.h <<\_ACEOF
20482 #define NEED_DEV_ZERO_FOR_MMAP 1
20483 _ACEOF
20484
20485 fi
20486
20487   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20488   then
20489     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20490 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20491   fi
20492   if test "$ac_cv_func_mmap_file" = "no"
20493   then
20494     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20495 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20496   fi
20497 fi
20498
20499 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20500 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20501 ac_ext=cpp
20502 ac_cpp='$CXXCPP $CPPFLAGS'
20503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20506
20507 cat >conftest.$ac_ext <<_ACEOF
20508 /* confdefs.h.  */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h.  */
20513 int main() {
20514         volatile unsigned long val = 1;
20515         __sync_synchronize();
20516         __sync_val_compare_and_swap(&val, 1, 0);
20517         __sync_add_and_fetch(&val, 1);
20518         __sync_sub_and_fetch(&val, 1);
20519         return 0;
20520       }
20521
20522 _ACEOF
20523 rm -f conftest.$ac_objext conftest$ac_exeext
20524 if { (ac_try="$ac_link"
20525 case "(($ac_try" in
20526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527   *) ac_try_echo=$ac_try;;
20528 esac
20529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530   (eval "$ac_link") 2>conftest.er1
20531   ac_status=$?
20532   grep -v '^ *+' conftest.er1 >conftest.err
20533   rm -f conftest.er1
20534   cat conftest.err >&5
20535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536   (exit $ac_status); } &&
20537          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20538   { (case "(($ac_try" in
20539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540   *) ac_try_echo=$ac_try;;
20541 esac
20542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543   (eval "$ac_try") 2>&5
20544   ac_status=$?
20545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546   (exit $ac_status); }; } &&
20547          { ac_try='test -s conftest$ac_exeext'
20548   { (case "(($ac_try" in
20549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550   *) ac_try_echo=$ac_try;;
20551 esac
20552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553   (eval "$ac_try") 2>&5
20554   ac_status=$?
20555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556   (exit $ac_status); }; }; then
20557   ac_ext=c
20558 ac_cpp='$CPP $CPPFLAGS'
20559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20562
20563   { echo "$as_me:$LINENO: result: yes" >&5
20564 echo "${ECHO_T}yes" >&6; }
20565
20566 cat >>confdefs.h <<\_ACEOF
20567 #define LLVM_HAS_ATOMICS 1
20568 _ACEOF
20569
20570 else
20571   echo "$as_me: failed program was:" >&5
20572 sed 's/^/| /' conftest.$ac_ext >&5
20573
20574         { echo "$as_me:$LINENO: result: no" >&5
20575 echo "${ECHO_T}no" >&6; }
20576
20577 cat >>confdefs.h <<\_ACEOF
20578 #define LLVM_HAS_ATOMICS 0
20579 _ACEOF
20580
20581   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20582 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20583 fi
20584
20585 rm -f core conftest.err conftest.$ac_objext \
20586       conftest$ac_exeext conftest.$ac_ext
20587
20588
20589 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20590   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20591 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20592 if test "${llvm_cv_linux_mixed+set}" = set; then
20593   echo $ECHO_N "(cached) $ECHO_C" >&6
20594 else
20595    ac_ext=c
20596 ac_cpp='$CPP $CPPFLAGS'
20597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20600
20601   cat >conftest.$ac_ext <<_ACEOF
20602 /* confdefs.h.  */
20603 _ACEOF
20604 cat confdefs.h >>conftest.$ac_ext
20605 cat >>conftest.$ac_ext <<_ACEOF
20606 /* end confdefs.h.  */
20607 #ifndef __x86_64__
20608        error: Not x86-64 even if uname says so!
20609       #endif
20610
20611 int
20612 main ()
20613 {
20614
20615   ;
20616   return 0;
20617 }
20618 _ACEOF
20619 rm -f conftest.$ac_objext
20620 if { (ac_try="$ac_compile"
20621 case "(($ac_try" in
20622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623   *) ac_try_echo=$ac_try;;
20624 esac
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626   (eval "$ac_compile") 2>conftest.er1
20627   ac_status=$?
20628   grep -v '^ *+' conftest.er1 >conftest.err
20629   rm -f conftest.er1
20630   cat conftest.err >&5
20631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632   (exit $ac_status); } &&
20633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20634   { (case "(($ac_try" in
20635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636   *) ac_try_echo=$ac_try;;
20637 esac
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639   (eval "$ac_try") 2>&5
20640   ac_status=$?
20641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642   (exit $ac_status); }; } &&
20643          { ac_try='test -s conftest.$ac_objext'
20644   { (case "(($ac_try" in
20645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646   *) ac_try_echo=$ac_try;;
20647 esac
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649   (eval "$ac_try") 2>&5
20650   ac_status=$?
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); }; }; then
20653   llvm_cv_linux_mixed=no
20654 else
20655   echo "$as_me: failed program was:" >&5
20656 sed 's/^/| /' conftest.$ac_ext >&5
20657
20658         llvm_cv_linux_mixed=yes
20659 fi
20660
20661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20662   ac_ext=c
20663 ac_cpp='$CPP $CPPFLAGS'
20664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20667
20668
20669 fi
20670 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20671 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20672
20673   if test "$llvm_cv_linux_mixed" = "yes"; then
20674     llvm_cv_target_arch="x86"
20675     ARCH="x86"
20676   fi
20677 fi
20678
20679
20680 for ac_func in __dso_handle
20681 do
20682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20686   echo $ECHO_N "(cached) $ECHO_C" >&6
20687 else
20688   cat >conftest.$ac_ext <<_ACEOF
20689 /* confdefs.h.  */
20690 _ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h.  */
20694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20696 #define $ac_func innocuous_$ac_func
20697
20698 /* System header to define __stub macros and hopefully few prototypes,
20699     which can conflict with char $ac_func (); below.
20700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20701     <limits.h> exists even on freestanding compilers.  */
20702
20703 #ifdef __STDC__
20704 # include <limits.h>
20705 #else
20706 # include <assert.h>
20707 #endif
20708
20709 #undef $ac_func
20710
20711 /* Override any GCC internal prototype to avoid an error.
20712    Use char because int might match the return type of a GCC
20713    builtin and then its argument prototype would still apply.  */
20714 #ifdef __cplusplus
20715 extern "C"
20716 #endif
20717 char $ac_func ();
20718 /* The GNU C library defines this for functions which it implements
20719     to always fail with ENOSYS.  Some functions are actually named
20720     something starting with __ and the normal name is an alias.  */
20721 #if defined __stub_$ac_func || defined __stub___$ac_func
20722 choke me
20723 #endif
20724
20725 int
20726 main ()
20727 {
20728 return $ac_func ();
20729   ;
20730   return 0;
20731 }
20732 _ACEOF
20733 rm -f conftest.$ac_objext conftest$ac_exeext
20734 if { (ac_try="$ac_link"
20735 case "(($ac_try" in
20736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737   *) ac_try_echo=$ac_try;;
20738 esac
20739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740   (eval "$ac_link") 2>conftest.er1
20741   ac_status=$?
20742   grep -v '^ *+' conftest.er1 >conftest.err
20743   rm -f conftest.er1
20744   cat conftest.err >&5
20745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); } &&
20747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20748   { (case "(($ac_try" in
20749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750   *) ac_try_echo=$ac_try;;
20751 esac
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753   (eval "$ac_try") 2>&5
20754   ac_status=$?
20755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756   (exit $ac_status); }; } &&
20757          { ac_try='test -s conftest$ac_exeext'
20758   { (case "(($ac_try" in
20759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20760   *) ac_try_echo=$ac_try;;
20761 esac
20762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20763   (eval "$ac_try") 2>&5
20764   ac_status=$?
20765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766   (exit $ac_status); }; }; then
20767   eval "$as_ac_var=yes"
20768 else
20769   echo "$as_me: failed program was:" >&5
20770 sed 's/^/| /' conftest.$ac_ext >&5
20771
20772         eval "$as_ac_var=no"
20773 fi
20774
20775 rm -f core conftest.err conftest.$ac_objext \
20776       conftest$ac_exeext conftest.$ac_ext
20777 fi
20778 ac_res=`eval echo '${'$as_ac_var'}'`
20779                { echo "$as_me:$LINENO: result: $ac_res" >&5
20780 echo "${ECHO_T}$ac_res" >&6; }
20781 if test `eval echo '${'$as_ac_var'}'` = yes; then
20782   cat >>confdefs.h <<_ACEOF
20783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20784 _ACEOF
20785
20786 fi
20787 done
20788
20789
20790 SHLIBEXT=$libltdl_cv_shlibext
20791
20792
20793 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20794
20795
20796 # Translate the various configuration directories and other basic
20797 # information into substitutions that will end up in Makefile.config.in
20798 # that these configured values can be used by the makefiles
20799 if test "${prefix}" = "NONE" ; then
20800   prefix="/usr/local"
20801 fi
20802 eval LLVM_PREFIX="${prefix}";
20803 eval LLVM_BINDIR="${prefix}/bin";
20804 eval LLVM_LIBDIR="${prefix}/lib";
20805 eval LLVM_DATADIR="${prefix}/share/llvm";
20806 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20807 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20808 eval LLVM_INCLUDEDIR="${prefix}/include";
20809 eval LLVM_INFODIR="${prefix}/info";
20810 eval LLVM_MANDIR="${prefix}/man";
20811 LLVM_CONFIGTIME=`date`
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823 # Place the various directores into the config.h file as #defines so that we
20824 # can know about the installation paths within LLVM.
20825
20826 cat >>confdefs.h <<_ACEOF
20827 #define LLVM_PREFIX "$LLVM_PREFIX"
20828 _ACEOF
20829
20830
20831 cat >>confdefs.h <<_ACEOF
20832 #define LLVM_BINDIR "$LLVM_BINDIR"
20833 _ACEOF
20834
20835
20836 cat >>confdefs.h <<_ACEOF
20837 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20838 _ACEOF
20839
20840
20841 cat >>confdefs.h <<_ACEOF
20842 #define LLVM_DATADIR "$LLVM_DATADIR"
20843 _ACEOF
20844
20845
20846 cat >>confdefs.h <<_ACEOF
20847 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20848 _ACEOF
20849
20850
20851 cat >>confdefs.h <<_ACEOF
20852 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20853 _ACEOF
20854
20855
20856 cat >>confdefs.h <<_ACEOF
20857 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20858 _ACEOF
20859
20860
20861 cat >>confdefs.h <<_ACEOF
20862 #define LLVM_INFODIR "$LLVM_INFODIR"
20863 _ACEOF
20864
20865
20866 cat >>confdefs.h <<_ACEOF
20867 #define LLVM_MANDIR "$LLVM_MANDIR"
20868 _ACEOF
20869
20870
20871 cat >>confdefs.h <<_ACEOF
20872 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20873 _ACEOF
20874
20875
20876 cat >>confdefs.h <<_ACEOF
20877 #define LLVM_HOSTTRIPLE "$host"
20878 _ACEOF
20879
20880
20881 # Determine which bindings to build.
20882 if test "$BINDINGS_TO_BUILD" = auto ; then
20883   BINDINGS_TO_BUILD=""
20884   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20885     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20886   fi
20887 fi
20888 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20889
20890
20891 # This isn't really configurey, but it avoids having to repeat the list in
20892 # other files.
20893 ALL_BINDINGS=ocaml
20894
20895
20896 # Do any work necessary to ensure that bindings have what they need.
20897 binding_prereqs_failed=0
20898 for a_binding in $BINDINGS_TO_BUILD ; do
20899   case "$a_binding" in
20900   ocaml)
20901     if test "x$OCAMLC" = x ; then
20902       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20903 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20904       binding_prereqs_failed=1
20905     fi
20906     if test "x$OCAMLDEP" = x ; then
20907       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20908 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20909       binding_prereqs_failed=1
20910     fi
20911     if test "x$OCAMLOPT" = x ; then
20912       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20913 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20914           fi
20915     if test "x$with_ocaml_libdir" != xauto ; then
20916       OCAML_LIBDIR=$with_ocaml_libdir
20917
20918     else
20919       ocaml_stdlib="`"$OCAMLC" -where`"
20920       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20921       then
20922         # ocaml stdlib is beneath our prefix; use stdlib
20923         OCAML_LIBDIR=$ocaml_stdlib
20924
20925       else
20926         # ocaml stdlib is outside our prefix; use libdir/ocaml
20927         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20928
20929       fi
20930     fi
20931     ;;
20932   esac
20933 done
20934 if test "$binding_prereqs_failed" = 1 ; then
20935   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20936 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20937    { (exit 1); exit 1; }; }
20938 fi
20939
20940 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20941 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20942 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20943   echo $ECHO_N "(cached) $ECHO_C" >&6
20944 else
20945    ac_ext=cpp
20946 ac_cpp='$CXXCPP $CPPFLAGS'
20947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20950
20951   oldcxxflags="$CXXFLAGS"
20952   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20953   cat >conftest.$ac_ext <<_ACEOF
20954 /* confdefs.h.  */
20955 _ACEOF
20956 cat confdefs.h >>conftest.$ac_ext
20957 cat >>conftest.$ac_ext <<_ACEOF
20958 /* end confdefs.h.  */
20959
20960 int
20961 main ()
20962 {
20963
20964   ;
20965   return 0;
20966 }
20967 _ACEOF
20968 rm -f conftest.$ac_objext
20969 if { (ac_try="$ac_compile"
20970 case "(($ac_try" in
20971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972   *) ac_try_echo=$ac_try;;
20973 esac
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975   (eval "$ac_compile") 2>conftest.er1
20976   ac_status=$?
20977   grep -v '^ *+' conftest.er1 >conftest.err
20978   rm -f conftest.er1
20979   cat conftest.err >&5
20980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981   (exit $ac_status); } &&
20982          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20983   { (case "(($ac_try" in
20984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20985   *) ac_try_echo=$ac_try;;
20986 esac
20987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20988   (eval "$ac_try") 2>&5
20989   ac_status=$?
20990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991   (exit $ac_status); }; } &&
20992          { ac_try='test -s conftest.$ac_objext'
20993   { (case "(($ac_try" in
20994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995   *) ac_try_echo=$ac_try;;
20996 esac
20997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20998   (eval "$ac_try") 2>&5
20999   ac_status=$?
21000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001   (exit $ac_status); }; }; then
21002   llvm_cv_cxx_visibility_inlines_hidden=yes
21003 else
21004   echo "$as_me: failed program was:" >&5
21005 sed 's/^/| /' conftest.$ac_ext >&5
21006
21007         llvm_cv_cxx_visibility_inlines_hidden=no
21008 fi
21009
21010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21011   CXXFLAGS="$oldcxxflags"
21012   ac_ext=c
21013 ac_cpp='$CPP $CPPFLAGS'
21014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21017
21018
21019 fi
21020 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21021 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21022 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21023   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21024
21025 else
21026   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21027
21028 fi
21029
21030
21031 if test "$llvm_cv_link_use_r" = "yes" ; then
21032   RPATH="-Wl,-R"
21033 else
21034   RPATH="-Wl,-rpath"
21035 fi
21036
21037
21038 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21039   RDYNAMIC="-Wl,-export-dynamic"
21040 else
21041   RDYNAMIC=""
21042 fi
21043
21044
21045
21046 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21047
21048
21049
21050
21051
21052
21053 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21054
21055 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21056
21057 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21058
21059 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21060
21061 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21062
21063
21064 ac_config_files="$ac_config_files Makefile.config"
21065
21066 ac_config_files="$ac_config_files llvm.spec"
21067
21068
21069 ac_config_files="$ac_config_files docs/doxygen.cfg"
21070
21071 if test -f ${srcdir}/tools/clang/README.txt; then
21072   ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21073
21074 fi
21075
21076 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21077
21078 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21079
21080 ac_config_commands="$ac_config_commands setup"
21081
21082 ac_config_commands="$ac_config_commands Makefile"
21083
21084
21085 ac_config_commands="$ac_config_commands Makefile.common"
21086
21087
21088 ac_config_commands="$ac_config_commands examples/Makefile"
21089
21090
21091 ac_config_commands="$ac_config_commands lib/Makefile"
21092
21093
21094 ac_config_commands="$ac_config_commands runtime/Makefile"
21095
21096
21097 ac_config_commands="$ac_config_commands test/Makefile"
21098
21099
21100 ac_config_commands="$ac_config_commands test/Makefile.tests"
21101
21102
21103 ac_config_commands="$ac_config_commands unittests/Makefile"
21104
21105
21106 ac_config_commands="$ac_config_commands tools/Makefile"
21107
21108
21109 ac_config_commands="$ac_config_commands utils/Makefile"
21110
21111
21112 ac_config_commands="$ac_config_commands projects/Makefile"
21113
21114
21115 ac_config_commands="$ac_config_commands bindings/Makefile"
21116
21117
21118 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21119
21120
21121
21122 cat >confcache <<\_ACEOF
21123 # This file is a shell script that caches the results of configure
21124 # tests run on this system so they can be shared between configure
21125 # scripts and configure runs, see configure's option --config-cache.
21126 # It is not useful on other systems.  If it contains results you don't
21127 # want to keep, you may remove or edit it.
21128 #
21129 # config.status only pays attention to the cache file if you give it
21130 # the --recheck option to rerun configure.
21131 #
21132 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21133 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21134 # following values.
21135
21136 _ACEOF
21137
21138 # The following way of writing the cache mishandles newlines in values,
21139 # but we know of no workaround that is simple, portable, and efficient.
21140 # So, we kill variables containing newlines.
21141 # Ultrix sh set writes to stderr and can't be redirected directly,
21142 # and sets the high bit in the cache file unless we assign to the vars.
21143 (
21144   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21145     eval ac_val=\$$ac_var
21146     case $ac_val in #(
21147     *${as_nl}*)
21148       case $ac_var in #(
21149       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21150 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21151       esac
21152       case $ac_var in #(
21153       _ | IFS | as_nl) ;; #(
21154       *) $as_unset $ac_var ;;
21155       esac ;;
21156     esac
21157   done
21158
21159   (set) 2>&1 |
21160     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21161     *${as_nl}ac_space=\ *)
21162       # `set' does not quote correctly, so add quotes (double-quote
21163       # substitution turns \\\\ into \\, and sed turns \\ into \).
21164       sed -n \
21165         "s/'/'\\\\''/g;
21166           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21167       ;; #(
21168     *)
21169       # `set' quotes correctly as required by POSIX, so do not add quotes.
21170       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21171       ;;
21172     esac |
21173     sort
21174 ) |
21175   sed '
21176      /^ac_cv_env_/b end
21177      t clear
21178      :clear
21179      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21180      t end
21181      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21182      :end' >>confcache
21183 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21184   if test -w "$cache_file"; then
21185     test "x$cache_file" != "x/dev/null" &&
21186       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21187 echo "$as_me: updating cache $cache_file" >&6;}
21188     cat confcache >$cache_file
21189   else
21190     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21191 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21192   fi
21193 fi
21194 rm -f confcache
21195
21196 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21197 # Let make expand exec_prefix.
21198 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21199
21200 DEFS=-DHAVE_CONFIG_H
21201
21202 ac_libobjs=
21203 ac_ltlibobjs=
21204 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21205   # 1. Remove the extension, and $U if already installed.
21206   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21207   ac_i=`echo "$ac_i" | sed "$ac_script"`
21208   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21209   #    will be set to the directory where LIBOBJS objects are built.
21210   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21211   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21212 done
21213 LIBOBJS=$ac_libobjs
21214
21215 LTLIBOBJS=$ac_ltlibobjs
21216
21217
21218 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21219   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21220 Usually this means the macro was only invoked conditionally." >&5
21221 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21222 Usually this means the macro was only invoked conditionally." >&2;}
21223    { (exit 1); exit 1; }; }
21224 fi
21225 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21226   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21227 Usually this means the macro was only invoked conditionally." >&5
21228 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21229 Usually this means the macro was only invoked conditionally." >&2;}
21230    { (exit 1); exit 1; }; }
21231 fi
21232
21233 : ${CONFIG_STATUS=./config.status}
21234 ac_clean_files_save=$ac_clean_files
21235 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21236 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21237 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21238 cat >$CONFIG_STATUS <<_ACEOF
21239 #! $SHELL
21240 # Generated by $as_me.
21241 # Run this file to recreate the current configuration.
21242 # Compiler output produced by configure, useful for debugging
21243 # configure, is in config.log if it exists.
21244
21245 debug=false
21246 ac_cs_recheck=false
21247 ac_cs_silent=false
21248 SHELL=\${CONFIG_SHELL-$SHELL}
21249 _ACEOF
21250
21251 cat >>$CONFIG_STATUS <<\_ACEOF
21252 ## --------------------- ##
21253 ## M4sh Initialization.  ##
21254 ## --------------------- ##
21255
21256 # Be Bourne compatible
21257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21258   emulate sh
21259   NULLCMD=:
21260   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21261   # is contrary to our usage.  Disable this feature.
21262   alias -g '${1+"$@"}'='"$@"'
21263   setopt NO_GLOB_SUBST
21264 else
21265   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21266 fi
21267 BIN_SH=xpg4; export BIN_SH # for Tru64
21268 DUALCASE=1; export DUALCASE # for MKS sh
21269
21270
21271 # PATH needs CR
21272 # Avoid depending upon Character Ranges.
21273 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21274 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21275 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21276 as_cr_digits='0123456789'
21277 as_cr_alnum=$as_cr_Letters$as_cr_digits
21278
21279 # The user is always right.
21280 if test "${PATH_SEPARATOR+set}" != set; then
21281   echo "#! /bin/sh" >conf$$.sh
21282   echo  "exit 0"   >>conf$$.sh
21283   chmod +x conf$$.sh
21284   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21285     PATH_SEPARATOR=';'
21286   else
21287     PATH_SEPARATOR=:
21288   fi
21289   rm -f conf$$.sh
21290 fi
21291
21292 # Support unset when possible.
21293 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21294   as_unset=unset
21295 else
21296   as_unset=false
21297 fi
21298
21299
21300 # IFS
21301 # We need space, tab and new line, in precisely that order.  Quoting is
21302 # there to prevent editors from complaining about space-tab.
21303 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21304 # splitting by setting IFS to empty value.)
21305 as_nl='
21306 '
21307 IFS=" ""        $as_nl"
21308
21309 # Find who we are.  Look in the path if we contain no directory separator.
21310 case $0 in
21311   *[\\/]* ) as_myself=$0 ;;
21312   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21313 for as_dir in $PATH
21314 do
21315   IFS=$as_save_IFS
21316   test -z "$as_dir" && as_dir=.
21317   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21318 done
21319 IFS=$as_save_IFS
21320
21321      ;;
21322 esac
21323 # We did not find ourselves, most probably we were run as `sh COMMAND'
21324 # in which case we are not to be found in the path.
21325 if test "x$as_myself" = x; then
21326   as_myself=$0
21327 fi
21328 if test ! -f "$as_myself"; then
21329   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21330   { (exit 1); exit 1; }
21331 fi
21332
21333 # Work around bugs in pre-3.0 UWIN ksh.
21334 for as_var in ENV MAIL MAILPATH
21335 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21336 done
21337 PS1='$ '
21338 PS2='> '
21339 PS4='+ '
21340
21341 # NLS nuisances.
21342 for as_var in \
21343   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21344   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21345   LC_TELEPHONE LC_TIME
21346 do
21347   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21348     eval $as_var=C; export $as_var
21349   else
21350     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21351   fi
21352 done
21353
21354 # Required to use basename.
21355 if expr a : '\(a\)' >/dev/null 2>&1 &&
21356    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21357   as_expr=expr
21358 else
21359   as_expr=false
21360 fi
21361
21362 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21363   as_basename=basename
21364 else
21365   as_basename=false
21366 fi
21367
21368
21369 # Name of the executable.
21370 as_me=`$as_basename -- "$0" ||
21371 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21372          X"$0" : 'X\(//\)$' \| \
21373          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21374 echo X/"$0" |
21375     sed '/^.*\/\([^/][^/]*\)\/*$/{
21376             s//\1/
21377             q
21378           }
21379           /^X\/\(\/\/\)$/{
21380             s//\1/
21381             q
21382           }
21383           /^X\/\(\/\).*/{
21384             s//\1/
21385             q
21386           }
21387           s/.*/./; q'`
21388
21389 # CDPATH.
21390 $as_unset CDPATH
21391
21392
21393
21394   as_lineno_1=$LINENO
21395   as_lineno_2=$LINENO
21396   test "x$as_lineno_1" != "x$as_lineno_2" &&
21397   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21398
21399   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21400   # uniformly replaced by the line number.  The first 'sed' inserts a
21401   # line-number line after each line using $LINENO; the second 'sed'
21402   # does the real work.  The second script uses 'N' to pair each
21403   # line-number line with the line containing $LINENO, and appends
21404   # trailing '-' during substitution so that $LINENO is not a special
21405   # case at line end.
21406   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21407   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21408   # E. McMahon (1931-1989) for sed's syntax.  :-)
21409   sed -n '
21410     p
21411     /[$]LINENO/=
21412   ' <$as_myself |
21413     sed '
21414       s/[$]LINENO.*/&-/
21415       t lineno
21416       b
21417       :lineno
21418       N
21419       :loop
21420       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21421       t loop
21422       s/-\n.*//
21423     ' >$as_me.lineno &&
21424   chmod +x "$as_me.lineno" ||
21425     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21426    { (exit 1); exit 1; }; }
21427
21428   # Don't try to exec as it changes $[0], causing all sort of problems
21429   # (the dirname of $[0] is not the place where we might find the
21430   # original and so on.  Autoconf is especially sensitive to this).
21431   . "./$as_me.lineno"
21432   # Exit status is that of the last command.
21433   exit
21434 }
21435
21436
21437 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21438   as_dirname=dirname
21439 else
21440   as_dirname=false
21441 fi
21442
21443 ECHO_C= ECHO_N= ECHO_T=
21444 case `echo -n x` in
21445 -n*)
21446   case `echo 'x\c'` in
21447   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21448   *)   ECHO_C='\c';;
21449   esac;;
21450 *)
21451   ECHO_N='-n';;
21452 esac
21453
21454 if expr a : '\(a\)' >/dev/null 2>&1 &&
21455    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21456   as_expr=expr
21457 else
21458   as_expr=false
21459 fi
21460
21461 rm -f conf$$ conf$$.exe conf$$.file
21462 if test -d conf$$.dir; then
21463   rm -f conf$$.dir/conf$$.file
21464 else
21465   rm -f conf$$.dir
21466   mkdir conf$$.dir
21467 fi
21468 echo >conf$$.file
21469 if ln -s conf$$.file conf$$ 2>/dev/null; then
21470   as_ln_s='ln -s'
21471   # ... but there are two gotchas:
21472   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21473   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21474   # In both cases, we have to default to `cp -p'.
21475   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21476     as_ln_s='cp -p'
21477 elif ln conf$$.file conf$$ 2>/dev/null; then
21478   as_ln_s=ln
21479 else
21480   as_ln_s='cp -p'
21481 fi
21482 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21483 rmdir conf$$.dir 2>/dev/null
21484
21485 if mkdir -p . 2>/dev/null; then
21486   as_mkdir_p=:
21487 else
21488   test -d ./-p && rmdir ./-p
21489   as_mkdir_p=false
21490 fi
21491
21492 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21493 # systems may use methods other than mode bits to determine executability.
21494 cat >conf$$.file <<_ASEOF
21495 #! /bin/sh
21496 exit 0
21497 _ASEOF
21498 chmod +x conf$$.file
21499 if test -x conf$$.file >/dev/null 2>&1; then
21500   as_executable_p="test -x"
21501 else
21502   as_executable_p=:
21503 fi
21504 rm -f conf$$.file
21505
21506 # Sed expression to map a string onto a valid CPP name.
21507 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21508
21509 # Sed expression to map a string onto a valid variable name.
21510 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21511
21512
21513 exec 6>&1
21514
21515 # Save the log message, to keep $[0] and so on meaningful, and to
21516 # report actual input values of CONFIG_FILES etc. instead of their
21517 # values after options handling.
21518 ac_log="
21519 This file was extended by llvm $as_me 3.1svn, which was
21520 generated by GNU Autoconf 2.60.  Invocation command line was
21521
21522   CONFIG_FILES    = $CONFIG_FILES
21523   CONFIG_HEADERS  = $CONFIG_HEADERS
21524   CONFIG_LINKS    = $CONFIG_LINKS
21525   CONFIG_COMMANDS = $CONFIG_COMMANDS
21526   $ $0 $@
21527
21528 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21529 "
21530
21531 _ACEOF
21532
21533 cat >>$CONFIG_STATUS <<_ACEOF
21534 # Files that config.status was made for.
21535 config_files="$ac_config_files"
21536 config_headers="$ac_config_headers"
21537 config_commands="$ac_config_commands"
21538
21539 _ACEOF
21540
21541 cat >>$CONFIG_STATUS <<\_ACEOF
21542 ac_cs_usage="\
21543 \`$as_me' instantiates files from templates according to the
21544 current configuration.
21545
21546 Usage: $0 [OPTIONS] [FILE]...
21547
21548   -h, --help       print this help, then exit
21549   -V, --version    print version number, then exit
21550   -q, --quiet      do not print progress messages
21551   -d, --debug      don't remove temporary files
21552       --recheck    update $as_me by reconfiguring in the same conditions
21553   --file=FILE[:TEMPLATE]
21554                    instantiate the configuration file FILE
21555   --header=FILE[:TEMPLATE]
21556                    instantiate the configuration header FILE
21557
21558 Configuration files:
21559 $config_files
21560
21561 Configuration headers:
21562 $config_headers
21563
21564 Configuration commands:
21565 $config_commands
21566
21567 Report bugs to <bug-autoconf@gnu.org>."
21568
21569 _ACEOF
21570 cat >>$CONFIG_STATUS <<_ACEOF
21571 ac_cs_version="\\
21572 llvm config.status 3.1svn
21573 configured by $0, generated by GNU Autoconf 2.60,
21574   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21575
21576 Copyright (C) 2006 Free Software Foundation, Inc.
21577 This config.status script is free software; the Free Software Foundation
21578 gives unlimited permission to copy, distribute and modify it."
21579
21580 ac_pwd='$ac_pwd'
21581 srcdir='$srcdir'
21582 INSTALL='$INSTALL'
21583 _ACEOF
21584
21585 cat >>$CONFIG_STATUS <<\_ACEOF
21586 # If no file are specified by the user, then we need to provide default
21587 # value.  By we need to know if files were specified by the user.
21588 ac_need_defaults=:
21589 while test $# != 0
21590 do
21591   case $1 in
21592   --*=*)
21593     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21594     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21595     ac_shift=:
21596     ;;
21597   *)
21598     ac_option=$1
21599     ac_optarg=$2
21600     ac_shift=shift
21601     ;;
21602   esac
21603
21604   case $ac_option in
21605   # Handling of the options.
21606   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21607     ac_cs_recheck=: ;;
21608   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21609     echo "$ac_cs_version"; exit ;;
21610   --debug | --debu | --deb | --de | --d | -d )
21611     debug=: ;;
21612   --file | --fil | --fi | --f )
21613     $ac_shift
21614     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21615     ac_need_defaults=false;;
21616   --header | --heade | --head | --hea )
21617     $ac_shift
21618     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21619     ac_need_defaults=false;;
21620   --he | --h)
21621     # Conflict between --help and --header
21622     { echo "$as_me: error: ambiguous option: $1
21623 Try \`$0 --help' for more information." >&2
21624    { (exit 1); exit 1; }; };;
21625   --help | --hel | -h )
21626     echo "$ac_cs_usage"; exit ;;
21627   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21628   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21629     ac_cs_silent=: ;;
21630
21631   # This is an error.
21632   -*) { echo "$as_me: error: unrecognized option: $1
21633 Try \`$0 --help' for more information." >&2
21634    { (exit 1); exit 1; }; } ;;
21635
21636   *) ac_config_targets="$ac_config_targets $1"
21637      ac_need_defaults=false ;;
21638
21639   esac
21640   shift
21641 done
21642
21643 ac_configure_extra_args=
21644
21645 if $ac_cs_silent; then
21646   exec 6>/dev/null
21647   ac_configure_extra_args="$ac_configure_extra_args --silent"
21648 fi
21649
21650 _ACEOF
21651 cat >>$CONFIG_STATUS <<_ACEOF
21652 if \$ac_cs_recheck; then
21653   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21654   CONFIG_SHELL=$SHELL
21655   export CONFIG_SHELL
21656   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21657 fi
21658
21659 _ACEOF
21660 cat >>$CONFIG_STATUS <<\_ACEOF
21661 exec 5>>config.log
21662 {
21663   echo
21664   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21665 ## Running $as_me. ##
21666 _ASBOX
21667   echo "$ac_log"
21668 } >&5
21669
21670 _ACEOF
21671 cat >>$CONFIG_STATUS <<_ACEOF
21672 #
21673 # INIT-COMMANDS
21674 #
21675 llvm_src="${srcdir}"
21676
21677 _ACEOF
21678
21679 cat >>$CONFIG_STATUS <<\_ACEOF
21680
21681 # Handling of arguments.
21682 for ac_config_target in $ac_config_targets
21683 do
21684   case $ac_config_target in
21685     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21686     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21687     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21688     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21689     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21690     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21691     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21692     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21693     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21694     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21695     "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21696     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21697     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21698     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21699     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21700     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21701     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21702     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21703     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21704     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21705     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21706     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21707     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21708     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21709     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21710     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21711
21712   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21713 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21714    { (exit 1); exit 1; }; };;
21715   esac
21716 done
21717
21718
21719 # If the user did not use the arguments to specify the items to instantiate,
21720 # then the envvar interface is used.  Set only those that are not.
21721 # We use the long form for the default assignment because of an extremely
21722 # bizarre bug on SunOS 4.1.3.
21723 if $ac_need_defaults; then
21724   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21725   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21726   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21727 fi
21728
21729 # Have a temporary directory for convenience.  Make it in the build tree
21730 # simply because there is no reason against having it here, and in addition,
21731 # creating and moving files from /tmp can sometimes cause problems.
21732 # Hook for its removal unless debugging.
21733 # Note that there is a small window in which the directory will not be cleaned:
21734 # after its creation but before its name has been assigned to `$tmp'.
21735 $debug ||
21736 {
21737   tmp=
21738   trap 'exit_status=$?
21739   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21740 ' 0
21741   trap '{ (exit 1); exit 1; }' 1 2 13 15
21742 }
21743 # Create a (secure) tmp directory for tmp files.
21744
21745 {
21746   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21747   test -n "$tmp" && test -d "$tmp"
21748 }  ||
21749 {
21750   tmp=./conf$$-$RANDOM
21751   (umask 077 && mkdir "$tmp")
21752 } ||
21753 {
21754    echo "$me: cannot create a temporary directory in ." >&2
21755    { (exit 1); exit 1; }
21756 }
21757
21758 #
21759 # Set up the sed scripts for CONFIG_FILES section.
21760 #
21761
21762 # No need to generate the scripts if there are no CONFIG_FILES.
21763 # This happens for instance when ./config.status config.h
21764 if test -n "$CONFIG_FILES"; then
21765
21766 _ACEOF
21767
21768
21769
21770 ac_delim='%!_!# '
21771 for ac_last_try in false false false false false :; do
21772   cat >conf$$subs.sed <<_ACEOF
21773 SHELL!$SHELL$ac_delim
21774 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21775 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21776 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21777 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21778 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21779 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21780 exec_prefix!$exec_prefix$ac_delim
21781 prefix!$prefix$ac_delim
21782 program_transform_name!$program_transform_name$ac_delim
21783 bindir!$bindir$ac_delim
21784 sbindir!$sbindir$ac_delim
21785 libexecdir!$libexecdir$ac_delim
21786 datarootdir!$datarootdir$ac_delim
21787 datadir!$datadir$ac_delim
21788 sysconfdir!$sysconfdir$ac_delim
21789 sharedstatedir!$sharedstatedir$ac_delim
21790 localstatedir!$localstatedir$ac_delim
21791 includedir!$includedir$ac_delim
21792 oldincludedir!$oldincludedir$ac_delim
21793 docdir!$docdir$ac_delim
21794 infodir!$infodir$ac_delim
21795 htmldir!$htmldir$ac_delim
21796 dvidir!$dvidir$ac_delim
21797 pdfdir!$pdfdir$ac_delim
21798 psdir!$psdir$ac_delim
21799 libdir!$libdir$ac_delim
21800 localedir!$localedir$ac_delim
21801 mandir!$mandir$ac_delim
21802 DEFS!$DEFS$ac_delim
21803 ECHO_C!$ECHO_C$ac_delim
21804 ECHO_N!$ECHO_N$ac_delim
21805 ECHO_T!$ECHO_T$ac_delim
21806 LIBS!$LIBS$ac_delim
21807 build_alias!$build_alias$ac_delim
21808 host_alias!$host_alias$ac_delim
21809 target_alias!$target_alias$ac_delim
21810 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21811 CC!$CC$ac_delim
21812 CFLAGS!$CFLAGS$ac_delim
21813 LDFLAGS!$LDFLAGS$ac_delim
21814 CPPFLAGS!$CPPFLAGS$ac_delim
21815 ac_ct_CC!$ac_ct_CC$ac_delim
21816 EXEEXT!$EXEEXT$ac_delim
21817 OBJEXT!$OBJEXT$ac_delim
21818 CXX!$CXX$ac_delim
21819 CXXFLAGS!$CXXFLAGS$ac_delim
21820 ac_ct_CXX!$ac_ct_CXX$ac_delim
21821 CPP!$CPP$ac_delim
21822 subdirs!$subdirs$ac_delim
21823 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21824 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21825 build!$build$ac_delim
21826 build_cpu!$build_cpu$ac_delim
21827 build_vendor!$build_vendor$ac_delim
21828 build_os!$build_os$ac_delim
21829 host!$host$ac_delim
21830 host_cpu!$host_cpu$ac_delim
21831 host_vendor!$host_vendor$ac_delim
21832 host_os!$host_os$ac_delim
21833 target!$target$ac_delim
21834 target_cpu!$target_cpu$ac_delim
21835 target_vendor!$target_vendor$ac_delim
21836 target_os!$target_os$ac_delim
21837 OS!$OS$ac_delim
21838 HOST_OS!$HOST_OS$ac_delim
21839 TARGET_OS!$TARGET_OS$ac_delim
21840 LINKALL!$LINKALL$ac_delim
21841 NOLINKALL!$NOLINKALL$ac_delim
21842 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21843 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21844 ARCH!$ARCH$ac_delim
21845 ENDIAN!$ENDIAN$ac_delim
21846 GREP!$GREP$ac_delim
21847 EGREP!$EGREP$ac_delim
21848 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21849 BUILD_CC!$BUILD_CC$ac_delim
21850 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21851 BUILD_CXX!$BUILD_CXX$ac_delim
21852 CVSBUILD!$CVSBUILD$ac_delim
21853 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21854 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21855 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21856 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21857 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21858 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21859 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21860 JIT!$JIT$ac_delim
21861 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21862 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21863 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21864 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21865 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21866 ENABLE_PIC!$ENABLE_PIC$ac_delim
21867 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21868 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21869 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21870 _ACEOF
21871
21872   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21873     break
21874   elif $ac_last_try; then
21875     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21876 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21877    { (exit 1); exit 1; }; }
21878   else
21879     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21880   fi
21881 done
21882
21883 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21884 if test -n "$ac_eof"; then
21885   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21886   ac_eof=`expr $ac_eof + 1`
21887 fi
21888
21889 cat >>$CONFIG_STATUS <<_ACEOF
21890 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21891 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21892 _ACEOF
21893 sed '
21894 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21895 s/^/s,@/; s/!/@,|#_!!_#|/
21896 :n
21897 t n
21898 s/'"$ac_delim"'$/,g/; t
21899 s/$/\\/; p
21900 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21901 ' >>$CONFIG_STATUS <conf$$subs.sed
21902 rm -f conf$$subs.sed
21903 cat >>$CONFIG_STATUS <<_ACEOF
21904 CEOF$ac_eof
21905 _ACEOF
21906
21907
21908 ac_delim='%!_!# '
21909 for ac_last_try in false false false false false :; do
21910   cat >conf$$subs.sed <<_ACEOF
21911 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21912 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21913 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21914 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21915 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21916 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21917 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21918 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21919 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21920 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21921 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21922 NM!$NM$ac_delim
21923 ifGNUmake!$ifGNUmake$ac_delim
21924 LN_S!$LN_S$ac_delim
21925 CMP!$CMP$ac_delim
21926 CP!$CP$ac_delim
21927 DATE!$DATE$ac_delim
21928 FIND!$FIND$ac_delim
21929 MKDIR!$MKDIR$ac_delim
21930 MV!$MV$ac_delim
21931 RANLIB!$RANLIB$ac_delim
21932 AR!$AR$ac_delim
21933 RM!$RM$ac_delim
21934 SED!$SED$ac_delim
21935 TAR!$TAR$ac_delim
21936 BINPWD!$BINPWD$ac_delim
21937 GRAPHVIZ!$GRAPHVIZ$ac_delim
21938 DOT!$DOT$ac_delim
21939 FDP!$FDP$ac_delim
21940 NEATO!$NEATO$ac_delim
21941 TWOPI!$TWOPI$ac_delim
21942 CIRCO!$CIRCO$ac_delim
21943 GV!$GV$ac_delim
21944 DOTTY!$DOTTY$ac_delim
21945 XDOT_PY!$XDOT_PY$ac_delim
21946 PERL!$PERL$ac_delim
21947 HAVE_PERL!$HAVE_PERL$ac_delim
21948 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21949 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21950 INSTALL_DATA!$INSTALL_DATA$ac_delim
21951 BZIP2!$BZIP2$ac_delim
21952 CAT!$CAT$ac_delim
21953 DOXYGEN!$DOXYGEN$ac_delim
21954 GROFF!$GROFF$ac_delim
21955 GZIPBIN!$GZIPBIN$ac_delim
21956 POD2HTML!$POD2HTML$ac_delim
21957 POD2MAN!$POD2MAN$ac_delim
21958 PDFROFF!$PDFROFF$ac_delim
21959 RUNTEST!$RUNTEST$ac_delim
21960 TCLSH!$TCLSH$ac_delim
21961 ZIP!$ZIP$ac_delim
21962 OCAMLC!$OCAMLC$ac_delim
21963 OCAMLOPT!$OCAMLOPT$ac_delim
21964 OCAMLDEP!$OCAMLDEP$ac_delim
21965 OCAMLDOC!$OCAMLDOC$ac_delim
21966 GAS!$GAS$ac_delim
21967 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21968 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21969 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21970 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21971 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21972 LIBADD_DL!$LIBADD_DL$ac_delim
21973 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21974 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21975 USE_UDIS86!$USE_UDIS86$ac_delim
21976 USE_OPROFILE!$USE_OPROFILE$ac_delim
21977 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21978 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21979 MMAP_FILE!$MMAP_FILE$ac_delim
21980 SHLIBEXT!$SHLIBEXT$ac_delim
21981 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21982 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21983 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21984 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21985 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21986 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21987 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21988 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21989 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21990 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21991 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21992 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21993 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21994 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21995 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21996 RPATH!$RPATH$ac_delim
21997 RDYNAMIC!$RDYNAMIC$ac_delim
21998 LIBOBJS!$LIBOBJS$ac_delim
21999 LTLIBOBJS!$LTLIBOBJS$ac_delim
22000 _ACEOF
22001
22002   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
22003     break
22004   elif $ac_last_try; then
22005     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22006 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22007    { (exit 1); exit 1; }; }
22008   else
22009     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22010   fi
22011 done
22012
22013 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22014 if test -n "$ac_eof"; then
22015   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22016   ac_eof=`expr $ac_eof + 1`
22017 fi
22018
22019 cat >>$CONFIG_STATUS <<_ACEOF
22020 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22021 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22022 _ACEOF
22023 sed '
22024 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22025 s/^/s,@/; s/!/@,|#_!!_#|/
22026 :n
22027 t n
22028 s/'"$ac_delim"'$/,g/; t
22029 s/$/\\/; p
22030 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22031 ' >>$CONFIG_STATUS <conf$$subs.sed
22032 rm -f conf$$subs.sed
22033 cat >>$CONFIG_STATUS <<_ACEOF
22034 :end
22035 s/|#_!!_#|//g
22036 CEOF$ac_eof
22037 _ACEOF
22038
22039
22040 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22041 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22042 # trailing colons and then remove the whole line if VPATH becomes empty
22043 # (actually we leave an empty line to preserve line numbers).
22044 if test "x$srcdir" = x.; then
22045   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22046 s/:*\$(srcdir):*/:/
22047 s/:*\${srcdir}:*/:/
22048 s/:*@srcdir@:*/:/
22049 s/^\([^=]*=[     ]*\):*/\1/
22050 s/:*$//
22051 s/^[^=]*=[       ]*$//
22052 }'
22053 fi
22054
22055 cat >>$CONFIG_STATUS <<\_ACEOF
22056 fi # test -n "$CONFIG_FILES"
22057
22058
22059 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22060 do
22061   case $ac_tag in
22062   :[FHLC]) ac_mode=$ac_tag; continue;;
22063   esac
22064   case $ac_mode$ac_tag in
22065   :[FHL]*:*);;
22066   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22067 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22068    { (exit 1); exit 1; }; };;
22069   :[FH]-) ac_tag=-:-;;
22070   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22071   esac
22072   ac_save_IFS=$IFS
22073   IFS=:
22074   set x $ac_tag
22075   IFS=$ac_save_IFS
22076   shift
22077   ac_file=$1
22078   shift
22079
22080   case $ac_mode in
22081   :L) ac_source=$1;;
22082   :[FH])
22083     ac_file_inputs=
22084     for ac_f
22085     do
22086       case $ac_f in
22087       -) ac_f="$tmp/stdin";;
22088       *) # Look for the file first in the build tree, then in the source tree
22089          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22090          # because $ac_f cannot contain `:'.
22091          test -f "$ac_f" ||
22092            case $ac_f in
22093            [\\/$]*) false;;
22094            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22095            esac ||
22096            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22097 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22098    { (exit 1); exit 1; }; };;
22099       esac
22100       ac_file_inputs="$ac_file_inputs $ac_f"
22101     done
22102
22103     # Let's still pretend it is `configure' which instantiates (i.e., don't
22104     # use $as_me), people would be surprised to read:
22105     #    /* config.h.  Generated by config.status.  */
22106     configure_input="Generated from "`IFS=:
22107           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22108     if test x"$ac_file" != x-; then
22109       configure_input="$ac_file.  $configure_input"
22110       { echo "$as_me:$LINENO: creating $ac_file" >&5
22111 echo "$as_me: creating $ac_file" >&6;}
22112     fi
22113
22114     case $ac_tag in
22115     *:-:* | *:-) cat >"$tmp/stdin";;
22116     esac
22117     ;;
22118   esac
22119
22120   ac_dir=`$as_dirname -- "$ac_file" ||
22121 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22122          X"$ac_file" : 'X\(//\)[^/]' \| \
22123          X"$ac_file" : 'X\(//\)$' \| \
22124          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22125 echo X"$ac_file" |
22126     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22127             s//\1/
22128             q
22129           }
22130           /^X\(\/\/\)[^/].*/{
22131             s//\1/
22132             q
22133           }
22134           /^X\(\/\/\)$/{
22135             s//\1/
22136             q
22137           }
22138           /^X\(\/\).*/{
22139             s//\1/
22140             q
22141           }
22142           s/.*/./; q'`
22143   { as_dir="$ac_dir"
22144   case $as_dir in #(
22145   -*) as_dir=./$as_dir;;
22146   esac
22147   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22148     as_dirs=
22149     while :; do
22150       case $as_dir in #(
22151       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22152       *) as_qdir=$as_dir;;
22153       esac
22154       as_dirs="'$as_qdir' $as_dirs"
22155       as_dir=`$as_dirname -- "$as_dir" ||
22156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22157          X"$as_dir" : 'X\(//\)[^/]' \| \
22158          X"$as_dir" : 'X\(//\)$' \| \
22159          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22160 echo X"$as_dir" |
22161     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22162             s//\1/
22163             q
22164           }
22165           /^X\(\/\/\)[^/].*/{
22166             s//\1/
22167             q
22168           }
22169           /^X\(\/\/\)$/{
22170             s//\1/
22171             q
22172           }
22173           /^X\(\/\).*/{
22174             s//\1/
22175             q
22176           }
22177           s/.*/./; q'`
22178       test -d "$as_dir" && break
22179     done
22180     test -z "$as_dirs" || eval "mkdir $as_dirs"
22181   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22182 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22183    { (exit 1); exit 1; }; }; }
22184   ac_builddir=.
22185
22186 case "$ac_dir" in
22187 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22188 *)
22189   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22190   # A ".." for each directory in $ac_dir_suffix.
22191   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22192   case $ac_top_builddir_sub in
22193   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22194   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22195   esac ;;
22196 esac
22197 ac_abs_top_builddir=$ac_pwd
22198 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22199 # for backward compatibility:
22200 ac_top_builddir=$ac_top_build_prefix
22201
22202 case $srcdir in
22203   .)  # We are building in place.
22204     ac_srcdir=.
22205     ac_top_srcdir=$ac_top_builddir_sub
22206     ac_abs_top_srcdir=$ac_pwd ;;
22207   [\\/]* | ?:[\\/]* )  # Absolute name.
22208     ac_srcdir=$srcdir$ac_dir_suffix;
22209     ac_top_srcdir=$srcdir
22210     ac_abs_top_srcdir=$srcdir ;;
22211   *) # Relative name.
22212     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22213     ac_top_srcdir=$ac_top_build_prefix$srcdir
22214     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22215 esac
22216 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22217
22218
22219   case $ac_mode in
22220   :F)
22221   #
22222   # CONFIG_FILE
22223   #
22224
22225   case $INSTALL in
22226   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22227   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22228   esac
22229 _ACEOF
22230
22231 cat >>$CONFIG_STATUS <<\_ACEOF
22232 # If the template does not know about datarootdir, expand it.
22233 # FIXME: This hack should be removed a few years after 2.60.
22234 ac_datarootdir_hack=; ac_datarootdir_seen=
22235
22236 case `sed -n '/datarootdir/ {
22237   p
22238   q
22239 }
22240 /@datadir@/p
22241 /@docdir@/p
22242 /@infodir@/p
22243 /@localedir@/p
22244 /@mandir@/p
22245 ' $ac_file_inputs` in
22246 *datarootdir*) ac_datarootdir_seen=yes;;
22247 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22248   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22249 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22250 _ACEOF
22251 cat >>$CONFIG_STATUS <<_ACEOF
22252   ac_datarootdir_hack='
22253   s&@datadir@&$datadir&g
22254   s&@docdir@&$docdir&g
22255   s&@infodir@&$infodir&g
22256   s&@localedir@&$localedir&g
22257   s&@mandir@&$mandir&g
22258     s&\\\${datarootdir}&$datarootdir&g' ;;
22259 esac
22260 _ACEOF
22261
22262 # Neutralize VPATH when `$srcdir' = `.'.
22263 # Shell code in configure.ac might set extrasub.
22264 # FIXME: do we really want to maintain this feature?
22265 cat >>$CONFIG_STATUS <<_ACEOF
22266   sed "$ac_vpsub
22267 $extrasub
22268 _ACEOF
22269 cat >>$CONFIG_STATUS <<\_ACEOF
22270 :t
22271 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22272 s&@configure_input@&$configure_input&;t t
22273 s&@top_builddir@&$ac_top_builddir_sub&;t t
22274 s&@srcdir@&$ac_srcdir&;t t
22275 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22276 s&@top_srcdir@&$ac_top_srcdir&;t t
22277 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22278 s&@builddir@&$ac_builddir&;t t
22279 s&@abs_builddir@&$ac_abs_builddir&;t t
22280 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22281 s&@INSTALL@&$ac_INSTALL&;t t
22282 $ac_datarootdir_hack
22283 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22284
22285 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22286   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22287   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22288   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22289 which seems to be undefined.  Please make sure it is defined." >&5
22290 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22291 which seems to be undefined.  Please make sure it is defined." >&2;}
22292
22293   rm -f "$tmp/stdin"
22294   case $ac_file in
22295   -) cat "$tmp/out"; rm -f "$tmp/out";;
22296   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22297   esac
22298  ;;
22299   :H)
22300   #
22301   # CONFIG_HEADER
22302   #
22303 _ACEOF
22304
22305 # Transform confdefs.h into a sed script `conftest.defines', that
22306 # substitutes the proper values into config.h.in to produce config.h.
22307 rm -f conftest.defines conftest.tail
22308 # First, append a space to every undef/define line, to ease matching.
22309 echo 's/$/ /' >conftest.defines
22310 # Then, protect against being on the right side of a sed subst, or in
22311 # an unquoted here document, in config.status.  If some macros were
22312 # called several times there might be several #defines for the same
22313 # symbol, which is useless.  But do not sort them, since the last
22314 # AC_DEFINE must be honored.
22315 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22316 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22317 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22318 # PARAMS is the parameter list in the macro definition--in most cases, it's
22319 # just an empty string.
22320 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22321 ac_dB='\\)[      (].*,\\1define\\2'
22322 ac_dC=' '
22323 ac_dD=' ,'
22324
22325 uniq confdefs.h |
22326   sed -n '
22327         t rset
22328         :rset
22329         s/^[     ]*#[    ]*define[       ][      ]*//
22330         t ok
22331         d
22332         :ok
22333         s/[\\&,]/\\&/g
22334         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22335         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22336   ' >>conftest.defines
22337
22338 # Remove the space that was appended to ease matching.
22339 # Then replace #undef with comments.  This is necessary, for
22340 # example, in the case of _POSIX_SOURCE, which is predefined and required
22341 # on some systems where configure will not decide to define it.
22342 # (The regexp can be short, since the line contains either #define or #undef.)
22343 echo 's/ $//
22344 s,^[     #]*u.*,/* & */,' >>conftest.defines
22345
22346 # Break up conftest.defines:
22347 ac_max_sed_lines=50
22348
22349 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22350 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22351 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22352 # et cetera.
22353 ac_in='$ac_file_inputs'
22354 ac_out='"$tmp/out1"'
22355 ac_nxt='"$tmp/out2"'
22356
22357 while :
22358 do
22359   # Write a here document:
22360     cat >>$CONFIG_STATUS <<_ACEOF
22361     # First, check the format of the line:
22362     cat >"\$tmp/defines.sed" <<\\CEOF
22363 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22364 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22365 b
22366 :def
22367 _ACEOF
22368   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22369   echo 'CEOF
22370     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22371   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22372   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22373   grep . conftest.tail >/dev/null || break
22374   rm -f conftest.defines
22375   mv conftest.tail conftest.defines
22376 done
22377 rm -f conftest.defines conftest.tail
22378
22379 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22380 cat >>$CONFIG_STATUS <<\_ACEOF
22381   if test x"$ac_file" != x-; then
22382     echo "/* $configure_input  */" >"$tmp/config.h"
22383     cat "$ac_result" >>"$tmp/config.h"
22384     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22385       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22386 echo "$as_me: $ac_file is unchanged" >&6;}
22387     else
22388       rm -f $ac_file
22389       mv "$tmp/config.h" $ac_file
22390     fi
22391   else
22392     echo "/* $configure_input  */"
22393     cat "$ac_result"
22394   fi
22395   rm -f "$tmp/out12"
22396  ;;
22397
22398   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22399 echo "$as_me: executing $ac_file commands" >&6;}
22400  ;;
22401   esac
22402
22403
22404   case $ac_file$ac_mode in
22405     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22406    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22407     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22408    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22409     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22410    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22411     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22412    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22413     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22414    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22415     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22416    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22417     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22418    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22419     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22420    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22421     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22422    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22423     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22424    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22425     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22426    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22427     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22428    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22429     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22430    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22431
22432   esac
22433 done # for ac_tag
22434
22435
22436 { (exit 0); exit 0; }
22437 _ACEOF
22438 chmod +x $CONFIG_STATUS
22439 ac_clean_files=$ac_clean_files_save
22440
22441
22442 # configure is writing to config.log, and then calls config.status.
22443 # config.status does its own redirection, appending to config.log.
22444 # Unfortunately, on DOS this fails, as config.log is still kept open
22445 # by configure, so config.status won't be able to write to it; its
22446 # output is simply discarded.  So we exec the FD to /dev/null,
22447 # effectively closing config.log, so it can be properly (re)opened and
22448 # appended to by config.status.  When coming back to configure, we
22449 # need to make the FD available again.
22450 if test "$no_create" != yes; then
22451   ac_cs_success=:
22452   ac_config_status_args=
22453   test "$silent" = yes &&
22454     ac_config_status_args="$ac_config_status_args --quiet"
22455   exec 5>/dev/null
22456   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22457   exec 5>>config.log
22458   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22459   # would make configure fail if this is the last instruction.
22460   $ac_cs_success || { (exit 1); exit 1; }
22461 fi
22462
22463 #
22464 # CONFIG_SUBDIRS section.
22465 #
22466 if test "$no_recursion" != yes; then
22467
22468   # Remove --cache-file and --srcdir arguments so they do not pile up.
22469   ac_sub_configure_args=
22470   ac_prev=
22471   eval "set x $ac_configure_args"
22472   shift
22473   for ac_arg
22474   do
22475     if test -n "$ac_prev"; then
22476       ac_prev=
22477       continue
22478     fi
22479     case $ac_arg in
22480     -cache-file | --cache-file | --cache-fil | --cache-fi \
22481     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22482       ac_prev=cache_file ;;
22483     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22484     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22485     | --c=*)
22486       ;;
22487     --config-cache | -C)
22488       ;;
22489     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22490       ac_prev=srcdir ;;
22491     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22492       ;;
22493     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22494       ac_prev=prefix ;;
22495     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22496       ;;
22497     *)
22498       case $ac_arg in
22499       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22500       esac
22501       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22502     esac
22503   done
22504
22505   # Always prepend --prefix to ensure using the same prefix
22506   # in subdir configurations.
22507   ac_arg="--prefix=$prefix"
22508   case $ac_arg in
22509   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22510   esac
22511   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22512
22513   ac_popdir=`pwd`
22514   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22515
22516     # Do not complain, so a configure script can configure whichever
22517     # parts of a large source tree are present.
22518     test -d "$srcdir/$ac_dir" || continue
22519
22520     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22521     echo "$as_me:$LINENO: $ac_msg" >&5
22522     echo "$ac_msg" >&6
22523     { as_dir="$ac_dir"
22524   case $as_dir in #(
22525   -*) as_dir=./$as_dir;;
22526   esac
22527   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22528     as_dirs=
22529     while :; do
22530       case $as_dir in #(
22531       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22532       *) as_qdir=$as_dir;;
22533       esac
22534       as_dirs="'$as_qdir' $as_dirs"
22535       as_dir=`$as_dirname -- "$as_dir" ||
22536 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22537          X"$as_dir" : 'X\(//\)[^/]' \| \
22538          X"$as_dir" : 'X\(//\)$' \| \
22539          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22540 echo X"$as_dir" |
22541     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22542             s//\1/
22543             q
22544           }
22545           /^X\(\/\/\)[^/].*/{
22546             s//\1/
22547             q
22548           }
22549           /^X\(\/\/\)$/{
22550             s//\1/
22551             q
22552           }
22553           /^X\(\/\).*/{
22554             s//\1/
22555             q
22556           }
22557           s/.*/./; q'`
22558       test -d "$as_dir" && break
22559     done
22560     test -z "$as_dirs" || eval "mkdir $as_dirs"
22561   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22562 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22563    { (exit 1); exit 1; }; }; }
22564     ac_builddir=.
22565
22566 case "$ac_dir" in
22567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22568 *)
22569   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22570   # A ".." for each directory in $ac_dir_suffix.
22571   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22572   case $ac_top_builddir_sub in
22573   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22574   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22575   esac ;;
22576 esac
22577 ac_abs_top_builddir=$ac_pwd
22578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22579 # for backward compatibility:
22580 ac_top_builddir=$ac_top_build_prefix
22581
22582 case $srcdir in
22583   .)  # We are building in place.
22584     ac_srcdir=.
22585     ac_top_srcdir=$ac_top_builddir_sub
22586     ac_abs_top_srcdir=$ac_pwd ;;
22587   [\\/]* | ?:[\\/]* )  # Absolute name.
22588     ac_srcdir=$srcdir$ac_dir_suffix;
22589     ac_top_srcdir=$srcdir
22590     ac_abs_top_srcdir=$srcdir ;;
22591   *) # Relative name.
22592     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22593     ac_top_srcdir=$ac_top_build_prefix$srcdir
22594     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22595 esac
22596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22597
22598
22599     cd "$ac_dir"
22600
22601     # Check for guested configure; otherwise get Cygnus style configure.
22602     if test -f "$ac_srcdir/configure.gnu"; then
22603       ac_sub_configure=$ac_srcdir/configure.gnu
22604     elif test -f "$ac_srcdir/configure"; then
22605       ac_sub_configure=$ac_srcdir/configure
22606     elif test -f "$ac_srcdir/configure.in"; then
22607       # This should be Cygnus configure.
22608       ac_sub_configure=$ac_aux_dir/configure
22609     else
22610       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22611 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22612       ac_sub_configure=
22613     fi
22614
22615     # The recursion is here.
22616     if test -n "$ac_sub_configure"; then
22617       # Make the cache file name correct relative to the subdirectory.
22618       case $cache_file in
22619       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22620       *) # Relative name.
22621         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22622       esac
22623
22624       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22625 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22626       # The eval makes quoting arguments work.
22627       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22628            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22629         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22630 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22631    { (exit 1); exit 1; }; }
22632     fi
22633
22634     cd "$ac_popdir"
22635   done
22636 fi
22637