bb634be15735bb890df498216db761174a4a2ed1
[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 2.9svn.
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-2010 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='2.9svn'
565 PACKAGE_STRING='llvm 2.9svn'
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 subdirs
644 ENABLE_POLLY
645 LLVM_HAS_POLLY
646 build
647 build_cpu
648 build_vendor
649 build_os
650 host
651 host_cpu
652 host_vendor
653 host_os
654 target
655 target_cpu
656 target_vendor
657 target_os
658 OS
659 HOST_OS
660 TARGET_OS
661 LINKALL
662 NOLINKALL
663 LLVM_ON_UNIX
664 LLVM_ON_WIN32
665 ARCH
666 ENDIAN
667 CC
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
674 CPP
675 GREP
676 EGREP
677 LLVM_CROSS_COMPILING
678 BUILD_CC
679 BUILD_EXEEXT
680 BUILD_CXX
681 CVSBUILD
682 ENABLE_OPTIMIZED
683 ENABLE_PROFILING
684 DISABLE_ASSERTIONS
685 ENABLE_EXPENSIVE_CHECKS
686 EXPENSIVE_CHECKS
687 DEBUG_RUNTIME
688 DEBUG_SYMBOLS
689 JIT
690 TARGET_HAS_JIT
691 ENABLE_DOCS
692 ENABLE_DOXYGEN
693 ENABLE_THREADS
694 ENABLE_PIC
695 ENABLE_SHARED
696 ENABLE_TIMESTAMPS
697 TARGETS_TO_BUILD
698 LLVM_ENUM_TARGETS
699 LLVM_ENUM_ASM_PRINTERS
700 LLVM_ENUM_ASM_PARSERS
701 LLVM_ENUM_DISASSEMBLERS
702 ENABLE_CBE_PRINTF_A
703 CLANGPATH
704 CLANGXXPATH
705 ENABLE_BUILT_CLANG
706 OPTIMIZE_OPTION
707 EXTRA_OPTIONS
708 BINUTILS_INCDIR
709 CXX
710 CXXFLAGS
711 ac_ct_CXX
712 NM
713 ifGNUmake
714 LN_S
715 CMP
716 CP
717 DATE
718 FIND
719 MKDIR
720 MV
721 RANLIB
722 AR
723 RM
724 SED
725 TAR
726 BINPWD
727 GRAPHVIZ
728 DOT
729 FDP
730 NEATO
731 TWOPI
732 CIRCO
733 GV
734 DOTTY
735 XDOT_PY
736 PERL
737 HAVE_PERL
738 INSTALL_PROGRAM
739 INSTALL_SCRIPT
740 INSTALL_DATA
741 BZIP2
742 CAT
743 DOXYGEN
744 GROFF
745 GZIP
746 POD2HTML
747 POD2MAN
748 PDFROFF
749 RUNTEST
750 TCLSH
751 ZIP
752 OCAMLC
753 OCAMLOPT
754 OCAMLDEP
755 OCAMLDOC
756 GAS
757 HAVE_LINK_VERSION_SCRIPT
758 INSTALL_LTDL_TRUE
759 INSTALL_LTDL_FALSE
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
762 LIBADD_DL
763 LLVMGCCCOMMAND
764 LLVMGXXCOMMAND
765 LLVMGCC
766 LLVMGXX
767 LLVMCC_OPTION
768 NO_VARIADIC_MACROS
769 NO_MISSING_FIELD_INITIALIZERS
770 USE_UDIS86
771 USE_OPROFILE
772 HAVE_PTHREAD
773 HUGE_VAL_SANITY
774 MMAP_FILE
775 LLVMCC_EMITIR_FLAG
776 LLVMCC1
777 LLVMCC1PLUS
778 LLVMGCCDIR
779 LLVMGCC_LANGS
780 LLVMGCC_DRAGONEGG
781 LLVMGCC_DISABLEOPT_FLAGS
782 SHLIBEXT
783 SHLIBPATH_VAR
784 LLVM_PREFIX
785 LLVM_BINDIR
786 LLVM_LIBDIR
787 LLVM_DATADIR
788 LLVM_DOCSDIR
789 LLVM_ETCDIR
790 LLVM_INCLUDEDIR
791 LLVM_INFODIR
792 LLVM_MANDIR
793 LLVM_CONFIGTIME
794 BINDINGS_TO_BUILD
795 ALL_BINDINGS
796 OCAML_LIBDIR
797 ENABLE_VISIBILITY_INLINES_HIDDEN
798 RPATH
799 RDYNAMIC
800 LIBOBJS
801 LTLIBOBJS'
802 ac_subst_files=''
803       ac_precious_vars='build_alias
804 host_alias
805 target_alias
806 CC
807 CFLAGS
808 LDFLAGS
809 CPPFLAGS
810 CPP
811 CXX
812 CXXFLAGS
813 CCC'
814 ac_subdirs_all='projects/llvm-gcc
815 projects/test-suite
816 projects/llvm-test
817 projects/poolalloc
818 projects/llvm-poolalloc
819 projects/sample
820 projects/privbracket
821 projects/llvm-stacker
822 projects/llvm-reopt
823 projects/llvm-java
824 projects/llvm-tv
825 projects/safecode
826 projects/llvm-kernel
827 tools/polly'
828
829 # Initialize some variables set by options.
830 ac_init_help=
831 ac_init_version=false
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
834 cache_file=/dev/null
835 exec_prefix=NONE
836 no_create=
837 no_recursion=
838 prefix=NONE
839 program_prefix=NONE
840 program_suffix=NONE
841 program_transform_name=s,x,x,
842 silent=
843 site=
844 srcdir=
845 verbose=
846 x_includes=NONE
847 x_libraries=NONE
848
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866 infodir='${datarootdir}/info'
867 htmldir='${docdir}'
868 dvidir='${docdir}'
869 pdfdir='${docdir}'
870 psdir='${docdir}'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
874
875 ac_prev=
876 ac_dashdash=
877 for ac_option
878 do
879   # If the previous option needs an argument, assign it.
880   if test -n "$ac_prev"; then
881     eval $ac_prev=\$ac_option
882     ac_prev=
883     continue
884   fi
885
886   case $ac_option in
887   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888   *)    ac_optarg=yes ;;
889   esac
890
891   # Accept the important Cygnus configure options, so we can diagnose typos.
892
893   case $ac_dashdash$ac_option in
894   --)
895     ac_dashdash=yes ;;
896
897   -bindir | --bindir | --bindi | --bind | --bin | --bi)
898     ac_prev=bindir ;;
899   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900     bindir=$ac_optarg ;;
901
902   -build | --build | --buil | --bui | --bu)
903     ac_prev=build_alias ;;
904   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905     build_alias=$ac_optarg ;;
906
907   -cache-file | --cache-file | --cache-fil | --cache-fi \
908   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909     ac_prev=cache_file ;;
910   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912     cache_file=$ac_optarg ;;
913
914   --config-cache | -C)
915     cache_file=config.cache ;;
916
917   -datadir | --datadir | --datadi | --datad)
918     ac_prev=datadir ;;
919   -datadir=* | --datadir=* | --datadi=* | --datad=*)
920     datadir=$ac_optarg ;;
921
922   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923   | --dataroo | --dataro | --datar)
924     ac_prev=datarootdir ;;
925   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927     datarootdir=$ac_optarg ;;
928
929   -disable-* | --disable-*)
930     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931     # Reject names that are not valid shell variable names.
932     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
933       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
934    { (exit 1); exit 1; }; }
935     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
936     eval enable_$ac_feature=no ;;
937
938   -docdir | --docdir | --docdi | --doc | --do)
939     ac_prev=docdir ;;
940   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941     docdir=$ac_optarg ;;
942
943   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944     ac_prev=dvidir ;;
945   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946     dvidir=$ac_optarg ;;
947
948   -enable-* | --enable-*)
949     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950     # Reject names that are not valid shell variable names.
951     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
952       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
953    { (exit 1); exit 1; }; }
954     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
955     eval enable_$ac_feature=\$ac_optarg ;;
956
957   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959   | --exec | --exe | --ex)
960     ac_prev=exec_prefix ;;
961   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963   | --exec=* | --exe=* | --ex=*)
964     exec_prefix=$ac_optarg ;;
965
966   -gas | --gas | --ga | --g)
967     # Obsolete; use --with-gas.
968     with_gas=yes ;;
969
970   -help | --help | --hel | --he | -h)
971     ac_init_help=long ;;
972   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973     ac_init_help=recursive ;;
974   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975     ac_init_help=short ;;
976
977   -host | --host | --hos | --ho)
978     ac_prev=host_alias ;;
979   -host=* | --host=* | --hos=* | --ho=*)
980     host_alias=$ac_optarg ;;
981
982   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983     ac_prev=htmldir ;;
984   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985   | --ht=*)
986     htmldir=$ac_optarg ;;
987
988   -includedir | --includedir | --includedi | --included | --include \
989   | --includ | --inclu | --incl | --inc)
990     ac_prev=includedir ;;
991   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992   | --includ=* | --inclu=* | --incl=* | --inc=*)
993     includedir=$ac_optarg ;;
994
995   -infodir | --infodir | --infodi | --infod | --info | --inf)
996     ac_prev=infodir ;;
997   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998     infodir=$ac_optarg ;;
999
1000   -libdir | --libdir | --libdi | --libd)
1001     ac_prev=libdir ;;
1002   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003     libdir=$ac_optarg ;;
1004
1005   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006   | --libexe | --libex | --libe)
1007     ac_prev=libexecdir ;;
1008   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009   | --libexe=* | --libex=* | --libe=*)
1010     libexecdir=$ac_optarg ;;
1011
1012   -localedir | --localedir | --localedi | --localed | --locale)
1013     ac_prev=localedir ;;
1014   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015     localedir=$ac_optarg ;;
1016
1017   -localstatedir | --localstatedir | --localstatedi | --localstated \
1018   | --localstate | --localstat | --localsta | --localst | --locals)
1019     ac_prev=localstatedir ;;
1020   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022     localstatedir=$ac_optarg ;;
1023
1024   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025     ac_prev=mandir ;;
1026   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027     mandir=$ac_optarg ;;
1028
1029   -nfp | --nfp | --nf)
1030     # Obsolete; use --without-fp.
1031     with_fp=no ;;
1032
1033   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034   | --no-cr | --no-c | -n)
1035     no_create=yes ;;
1036
1037   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039     no_recursion=yes ;;
1040
1041   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043   | --oldin | --oldi | --old | --ol | --o)
1044     ac_prev=oldincludedir ;;
1045   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048     oldincludedir=$ac_optarg ;;
1049
1050   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051     ac_prev=prefix ;;
1052   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053     prefix=$ac_optarg ;;
1054
1055   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056   | --program-pre | --program-pr | --program-p)
1057     ac_prev=program_prefix ;;
1058   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060     program_prefix=$ac_optarg ;;
1061
1062   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063   | --program-suf | --program-su | --program-s)
1064     ac_prev=program_suffix ;;
1065   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067     program_suffix=$ac_optarg ;;
1068
1069   -program-transform-name | --program-transform-name \
1070   | --program-transform-nam | --program-transform-na \
1071   | --program-transform-n | --program-transform- \
1072   | --program-transform | --program-transfor \
1073   | --program-transfo | --program-transf \
1074   | --program-trans | --program-tran \
1075   | --progr-tra | --program-tr | --program-t)
1076     ac_prev=program_transform_name ;;
1077   -program-transform-name=* | --program-transform-name=* \
1078   | --program-transform-nam=* | --program-transform-na=* \
1079   | --program-transform-n=* | --program-transform-=* \
1080   | --program-transform=* | --program-transfor=* \
1081   | --program-transfo=* | --program-transf=* \
1082   | --program-trans=* | --program-tran=* \
1083   | --progr-tra=* | --program-tr=* | --program-t=*)
1084     program_transform_name=$ac_optarg ;;
1085
1086   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087     ac_prev=pdfdir ;;
1088   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089     pdfdir=$ac_optarg ;;
1090
1091   -psdir | --psdir | --psdi | --psd | --ps)
1092     ac_prev=psdir ;;
1093   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094     psdir=$ac_optarg ;;
1095
1096   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097   | -silent | --silent | --silen | --sile | --sil)
1098     silent=yes ;;
1099
1100   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101     ac_prev=sbindir ;;
1102   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103   | --sbi=* | --sb=*)
1104     sbindir=$ac_optarg ;;
1105
1106   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108   | --sharedst | --shareds | --shared | --share | --shar \
1109   | --sha | --sh)
1110     ac_prev=sharedstatedir ;;
1111   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114   | --sha=* | --sh=*)
1115     sharedstatedir=$ac_optarg ;;
1116
1117   -site | --site | --sit)
1118     ac_prev=site ;;
1119   -site=* | --site=* | --sit=*)
1120     site=$ac_optarg ;;
1121
1122   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123     ac_prev=srcdir ;;
1124   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125     srcdir=$ac_optarg ;;
1126
1127   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128   | --syscon | --sysco | --sysc | --sys | --sy)
1129     ac_prev=sysconfdir ;;
1130   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132     sysconfdir=$ac_optarg ;;
1133
1134   -target | --target | --targe | --targ | --tar | --ta | --t)
1135     ac_prev=target_alias ;;
1136   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137     target_alias=$ac_optarg ;;
1138
1139   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140     verbose=yes ;;
1141
1142   -version | --version | --versio | --versi | --vers | -V)
1143     ac_init_version=: ;;
1144
1145   -with-* | --with-*)
1146     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149       { echo "$as_me: error: invalid package name: $ac_package" >&2
1150    { (exit 1); exit 1; }; }
1151     ac_package=`echo $ac_package| sed 's/-/_/g'`
1152     eval with_$ac_package=\$ac_optarg ;;
1153
1154   -without-* | --without-*)
1155     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156     # Reject names that are not valid shell variable names.
1157     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1158       { echo "$as_me: error: invalid package name: $ac_package" >&2
1159    { (exit 1); exit 1; }; }
1160     ac_package=`echo $ac_package | sed 's/-/_/g'`
1161     eval with_$ac_package=no ;;
1162
1163   --x)
1164     # Obsolete; use --with-x.
1165     with_x=yes ;;
1166
1167   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168   | --x-incl | --x-inc | --x-in | --x-i)
1169     ac_prev=x_includes ;;
1170   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172     x_includes=$ac_optarg ;;
1173
1174   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176     ac_prev=x_libraries ;;
1177   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179     x_libraries=$ac_optarg ;;
1180
1181   -*) { echo "$as_me: error: unrecognized option: $ac_option
1182 Try \`$0 --help' for more information." >&2
1183    { (exit 1); exit 1; }; }
1184     ;;
1185
1186   *=*)
1187     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188     # Reject names that are not valid shell variable names.
1189     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1190       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1191    { (exit 1); exit 1; }; }
1192     eval $ac_envvar=\$ac_optarg
1193     export $ac_envvar ;;
1194
1195   *)
1196     # FIXME: should be removed in autoconf 3.0.
1197     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1201     ;;
1202
1203   esac
1204 done
1205
1206 if test -n "$ac_prev"; then
1207   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208   { echo "$as_me: error: missing argument to $ac_option" >&2
1209    { (exit 1); exit 1; }; }
1210 fi
1211
1212 # Be sure to have absolute directory names.
1213 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214                 datadir sysconfdir sharedstatedir localstatedir includedir \
1215                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216                 libdir localedir mandir
1217 do
1218   eval ac_val=\$$ac_var
1219   case $ac_val in
1220     [\\/$]* | ?:[\\/]* )  continue;;
1221     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222   esac
1223   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1224    { (exit 1); exit 1; }; }
1225 done
1226
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1230 build=$build_alias
1231 host=$host_alias
1232 target=$target_alias
1233
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236   if test "x$build_alias" = x; then
1237     cross_compiling=maybe
1238     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1239     If a cross compiler is detected then cross compile mode will be used." >&2
1240   elif test "x$build_alias" != "x$host_alias"; then
1241     cross_compiling=yes
1242   fi
1243 fi
1244
1245 ac_tool_prefix=
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248 test "$silent" = yes && exec 6>/dev/null
1249
1250
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254   { echo "$as_me: error: Working directory cannot be determined" >&2
1255    { (exit 1); exit 1; }; }
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257   { echo "$as_me: error: pwd does not report name of working directory" >&2
1258    { (exit 1); exit 1; }; }
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263   ac_srcdir_defaulted=yes
1264   # Try the directory containing this script, then the parent directory.
1265   ac_confdir=`$as_dirname -- "$0" ||
1266 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267          X"$0" : 'X\(//\)[^/]' \| \
1268          X"$0" : 'X\(//\)$' \| \
1269          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1270 echo X"$0" |
1271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)[^/].*/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\/\)$/{
1280             s//\1/
1281             q
1282           }
1283           /^X\(\/\).*/{
1284             s//\1/
1285             q
1286           }
1287           s/.*/./; q'`
1288   srcdir=$ac_confdir
1289   if test ! -r "$srcdir/$ac_unique_file"; then
1290     srcdir=..
1291   fi
1292 else
1293   ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1298    { (exit 1); exit 1; }; }
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1303    { (exit 1); exit 1; }; }
1304         pwd)`
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307   srcdir=.
1308 fi
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1312 case $srcdir in
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 esac
1315 for ac_var in $ac_precious_vars; do
1316   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317   eval ac_env_${ac_var}_value=\$${ac_var}
1318   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 done
1321
1322 #
1323 # Report the --help message.
1324 #
1325 if test "$ac_init_help" = "long"; then
1326   # Omit some internal or obsolete options to make the list less imposing.
1327   # This message is too long to be a string in the A/UX 3.1 sh.
1328   cat <<_ACEOF
1329 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1330
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE.  See below for descriptions of some of the useful variables.
1335
1336 Defaults for the options are specified in brackets.
1337
1338 Configuration:
1339   -h, --help              display this help and exit
1340       --help=short        display options specific to this package
1341       --help=recursive    display the short help of all the included packages
1342   -V, --version           display version information and exit
1343   -q, --quiet, --silent   do not print \`checking...' messages
1344       --cache-file=FILE   cache test results in FILE [disabled]
1345   -C, --config-cache      alias for \`--cache-file=config.cache'
1346   -n, --no-create         do not create output files
1347       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1348
1349 Installation directories:
1350   --prefix=PREFIX         install architecture-independent files in PREFIX
1351                           [$ac_default_prefix]
1352   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1353                           [PREFIX]
1354
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1359
1360 For better control, use the options below.
1361
1362 Fine tuning of the installation directories:
1363   --bindir=DIR           user executables [EPREFIX/bin]
1364   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1365   --libexecdir=DIR       program executables [EPREFIX/libexec]
1366   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1367   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1368   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1369   --libdir=DIR           object code libraries [EPREFIX/lib]
1370   --includedir=DIR       C header files [PREFIX/include]
1371   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1372   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1373   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1374   --infodir=DIR          info documentation [DATAROOTDIR/info]
1375   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1376   --mandir=DIR           man documentation [DATAROOTDIR/man]
1377   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1378   --htmldir=DIR          html documentation [DOCDIR]
1379   --dvidir=DIR           dvi documentation [DOCDIR]
1380   --pdfdir=DIR           pdf documentation [DOCDIR]
1381   --psdir=DIR            ps documentation [DOCDIR]
1382 _ACEOF
1383
1384   cat <<\_ACEOF
1385
1386 System types:
1387   --build=BUILD     configure for building on BUILD [guessed]
1388   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1389   --target=TARGET   configure for building compilers for TARGET [HOST]
1390 _ACEOF
1391 fi
1392
1393 if test -n "$ac_init_help"; then
1394   case $ac_init_help in
1395      short | recursive ) echo "Configuration of llvm 2.9svn:";;
1396    esac
1397   cat <<\_ACEOF
1398
1399 Optional Features:
1400   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1401   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1402   --enable-polly          Use polly if available (default is YES)
1403   --enable-optimized      Compile with optimizations enabled (default is NO)
1404   --enable-profiling      Compile with profiling enabled (default is NO)
1405   --enable-assertions     Compile with assertion checks enabled (default is
1406                           YES)
1407   --enable-expensive-checks
1408                           Compile with expensive debug checks enabled (default
1409                           is NO)
1410   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1411                           NO)
1412   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1413                           optimization is on and YES if it's off)
1414   --enable-jit            Enable Just In Time Compiling (default is YES)
1415   --enable-docs           Build documents (default is YES)
1416   --enable-doxygen        Build doxygen documentation (default is NO)
1417   --enable-threads        Use threads if available (default is YES)
1418   --enable-pic            Build LLVM with Position Independent Code (default
1419                           is YES)
1420   --enable-shared         Build a shared library and link tools against it
1421                           (default is NO)
1422   --enable-timestamps     Enable embedding timestamp information in build
1423                           (default is YES)
1424   --enable-targets        Build specific host targets: all or
1425                           target1,target2,... Valid targets are: host, x86,
1426                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1427                           xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1428                           (default=all)
1429   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1430                           %a (default is YES)
1431   --enable-bindings       Build specific language bindings:
1432                           all,auto,none,{binding-name} (default=auto)
1433   --enable-libffi         Check for the presence of libffi (default is NO)
1434   --enable-ltdl-install   install libltdl
1435
1436 Optional Packages:
1437   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1438   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1439   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1440                           searches PATH)
1441   --with-llvmgcc          Specify location of llvm-gcc driver (default
1442                           searches PATH)
1443   --with-llvmgxx          Specify location of llvm-g++ driver (default
1444                           searches PATH)
1445   --with-clang            Specify location of clang compiler (default is
1446                           --with-built-clang)
1447   --with-built-clang      Use the compiled Clang as the LLVM compiler
1448                           (default=check)
1449   --with-optimize-option  Select the compiler options to use for optimized
1450                           builds
1451   --with-extra-options    Specify additional options to compile LLVM with
1452   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1453                           is stdlib)
1454   --with-clang-resource-dir
1455                           Relative directory from the Clang binary for
1456                           resource files
1457   --with-c-include-dirs   Colon separated list of directories clang will
1458                           search for headers
1459   --with-cxx-include-root Directory with the libstdc++ headers.
1460   --with-cxx-include-arch Architecture of the libstdc++ headers.
1461   --with-cxx-include-32bit-dir
1462                           32 bit multilib dir.
1463   --with-cxx-include-64bit-dir
1464                           64 bit multilib directory.
1465   --with-binutils-include Specify path to binutils/include/ containing
1466                           plugin-api.h file for gold plugin.
1467   --with-tclinclude       directory where tcl headers are
1468   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1469                           clang, or none; default=check)
1470   --with-udis86=<path>    Use udis86 external x86 disassembler library
1471   --with-oprofile=<prefix>
1472                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1473
1474 Some influential environment variables:
1475   CC          C compiler command
1476   CFLAGS      C compiler flags
1477   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1478               nonstandard directory <lib dir>
1479   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1480               you have headers in a nonstandard directory <include dir>
1481   CPP         C preprocessor
1482   CXX         C++ compiler command
1483   CXXFLAGS    C++ compiler flags
1484
1485 Use these variables to override the choices made by `configure' or to help
1486 it to find libraries and programs with nonstandard names/locations.
1487
1488 Report bugs to <llvmbugs@cs.uiuc.edu>.
1489 _ACEOF
1490 ac_status=$?
1491 fi
1492
1493 if test "$ac_init_help" = "recursive"; then
1494   # If there are subdirs, report their specific --help.
1495   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496     test -d "$ac_dir" || continue
1497     ac_builddir=.
1498
1499 case "$ac_dir" in
1500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *)
1502   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1503   # A ".." for each directory in $ac_dir_suffix.
1504   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1505   case $ac_top_builddir_sub in
1506   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508   esac ;;
1509 esac
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1514
1515 case $srcdir in
1516   .)  # We are building in place.
1517     ac_srcdir=.
1518     ac_top_srcdir=$ac_top_builddir_sub
1519     ac_abs_top_srcdir=$ac_pwd ;;
1520   [\\/]* | ?:[\\/]* )  # Absolute name.
1521     ac_srcdir=$srcdir$ac_dir_suffix;
1522     ac_top_srcdir=$srcdir
1523     ac_abs_top_srcdir=$srcdir ;;
1524   *) # Relative name.
1525     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526     ac_top_srcdir=$ac_top_build_prefix$srcdir
1527     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 esac
1529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531     cd "$ac_dir" || { ac_status=$?; continue; }
1532     # Check for guested configure.
1533     if test -f "$ac_srcdir/configure.gnu"; then
1534       echo &&
1535       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536     elif test -f "$ac_srcdir/configure"; then
1537       echo &&
1538       $SHELL "$ac_srcdir/configure" --help=recursive
1539     else
1540       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541     fi || ac_status=$?
1542     cd "$ac_pwd" || { ac_status=$?; break; }
1543   done
1544 fi
1545
1546 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then
1548   cat <<\_ACEOF
1549 llvm configure 2.9svn
1550 generated by GNU Autoconf 2.60
1551
1552 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1553 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1556
1557 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1558 _ACEOF
1559   exit
1560 fi
1561 cat >config.log <<_ACEOF
1562 This file contains any messages produced by compilers while
1563 running configure, to aid debugging if configure makes a mistake.
1564
1565 It was created by llvm $as_me 2.9svn, which was
1566 generated by GNU Autoconf 2.60.  Invocation command line was
1567
1568   $ $0 $@
1569
1570 _ACEOF
1571 exec 5>>config.log
1572 {
1573 cat <<_ASUNAME
1574 ## --------- ##
1575 ## Platform. ##
1576 ## --------- ##
1577
1578 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1579 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1580 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1581 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1582 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1583
1584 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1585 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1586
1587 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1588 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1589 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1590 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1591 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1592 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1593 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1594
1595 _ASUNAME
1596
1597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598 for as_dir in $PATH
1599 do
1600   IFS=$as_save_IFS
1601   test -z "$as_dir" && as_dir=.
1602   echo "PATH: $as_dir"
1603 done
1604 IFS=$as_save_IFS
1605
1606 } >&5
1607
1608 cat >&5 <<_ACEOF
1609
1610
1611 ## ----------- ##
1612 ## Core tests. ##
1613 ## ----------- ##
1614
1615 _ACEOF
1616
1617
1618 # Keep a trace of the command line.
1619 # Strip out --no-create and --no-recursion so they do not pile up.
1620 # Strip out --silent because we don't want to record it for future runs.
1621 # Also quote any args containing shell meta-characters.
1622 # Make two passes to allow for proper duplicate-argument suppression.
1623 ac_configure_args=
1624 ac_configure_args0=
1625 ac_configure_args1=
1626 ac_must_keep_next=false
1627 for ac_pass in 1 2
1628 do
1629   for ac_arg
1630   do
1631     case $ac_arg in
1632     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1633     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1634     | -silent | --silent | --silen | --sile | --sil)
1635       continue ;;
1636     *\'*)
1637       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1638     esac
1639     case $ac_pass in
1640     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1641     2)
1642       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1643       if test $ac_must_keep_next = true; then
1644         ac_must_keep_next=false # Got value, back to normal.
1645       else
1646         case $ac_arg in
1647           *=* | --config-cache | -C | -disable-* | --disable-* \
1648           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1649           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1650           | -with-* | --with-* | -without-* | --without-* | --x)
1651             case "$ac_configure_args0 " in
1652               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1653             esac
1654             ;;
1655           -* ) ac_must_keep_next=true ;;
1656         esac
1657       fi
1658       ac_configure_args="$ac_configure_args '$ac_arg'"
1659       ;;
1660     esac
1661   done
1662 done
1663 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1664 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1665
1666 # When interrupted or exit'd, cleanup temporary files, and complete
1667 # config.log.  We remove comments because anyway the quotes in there
1668 # would cause problems or look ugly.
1669 # WARNING: Use '\'' to represent an apostrophe within the trap.
1670 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1671 trap 'exit_status=$?
1672   # Save into config.log some information that might help in debugging.
1673   {
1674     echo
1675
1676     cat <<\_ASBOX
1677 ## ---------------- ##
1678 ## Cache variables. ##
1679 ## ---------------- ##
1680 _ASBOX
1681     echo
1682     # The following way of writing the cache mishandles newlines in values,
1683 (
1684   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1685     eval ac_val=\$$ac_var
1686     case $ac_val in #(
1687     *${as_nl}*)
1688       case $ac_var in #(
1689       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1690 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1691       esac
1692       case $ac_var in #(
1693       _ | IFS | as_nl) ;; #(
1694       *) $as_unset $ac_var ;;
1695       esac ;;
1696     esac
1697   done
1698   (set) 2>&1 |
1699     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1700     *${as_nl}ac_space=\ *)
1701       sed -n \
1702         "s/'\''/'\''\\\\'\'''\''/g;
1703           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1704       ;; #(
1705     *)
1706       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1707       ;;
1708     esac |
1709     sort
1710 )
1711     echo
1712
1713     cat <<\_ASBOX
1714 ## ----------------- ##
1715 ## Output variables. ##
1716 ## ----------------- ##
1717 _ASBOX
1718     echo
1719     for ac_var in $ac_subst_vars
1720     do
1721       eval ac_val=\$$ac_var
1722       case $ac_val in
1723       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1724       esac
1725       echo "$ac_var='\''$ac_val'\''"
1726     done | sort
1727     echo
1728
1729     if test -n "$ac_subst_files"; then
1730       cat <<\_ASBOX
1731 ## ------------------- ##
1732 ## File substitutions. ##
1733 ## ------------------- ##
1734 _ASBOX
1735       echo
1736       for ac_var in $ac_subst_files
1737       do
1738         eval ac_val=\$$ac_var
1739         case $ac_val in
1740         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1741         esac
1742         echo "$ac_var='\''$ac_val'\''"
1743       done | sort
1744       echo
1745     fi
1746
1747     if test -s confdefs.h; then
1748       cat <<\_ASBOX
1749 ## ----------- ##
1750 ## confdefs.h. ##
1751 ## ----------- ##
1752 _ASBOX
1753       echo
1754       cat confdefs.h
1755       echo
1756     fi
1757     test "$ac_signal" != 0 &&
1758       echo "$as_me: caught signal $ac_signal"
1759     echo "$as_me: exit $exit_status"
1760   } >&5
1761   rm -f core *.core core.conftest.* &&
1762     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1763     exit $exit_status
1764 ' 0
1765 for ac_signal in 1 2 13 15; do
1766   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1767 done
1768 ac_signal=0
1769
1770 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1771 rm -f -r conftest* confdefs.h
1772
1773 # Predefined preprocessor variables.
1774
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_NAME "$PACKAGE_NAME"
1777 _ACEOF
1778
1779
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1782 _ACEOF
1783
1784
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1787 _ACEOF
1788
1789
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_STRING "$PACKAGE_STRING"
1792 _ACEOF
1793
1794
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1797 _ACEOF
1798
1799
1800 # Let the site file select an alternate cache file if it wants to.
1801 # Prefer explicitly selected file to automatically selected ones.
1802 if test -n "$CONFIG_SITE"; then
1803   set x "$CONFIG_SITE"
1804 elif test "x$prefix" != xNONE; then
1805   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1806 else
1807   set x "$ac_default_prefix/share/config.site" \
1808         "$ac_default_prefix/etc/config.site"
1809 fi
1810 shift
1811 for ac_site_file
1812 do
1813   if test -r "$ac_site_file"; then
1814     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1815 echo "$as_me: loading site script $ac_site_file" >&6;}
1816     sed 's/^/| /' "$ac_site_file" >&5
1817     . "$ac_site_file"
1818   fi
1819 done
1820
1821 if test -r "$cache_file"; then
1822   # Some versions of bash will fail to source /dev/null (special
1823   # files actually), so we avoid doing that.
1824   if test -f "$cache_file"; then
1825     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1826 echo "$as_me: loading cache $cache_file" >&6;}
1827     case $cache_file in
1828       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1829       *)                      . "./$cache_file";;
1830     esac
1831   fi
1832 else
1833   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1834 echo "$as_me: creating cache $cache_file" >&6;}
1835   >$cache_file
1836 fi
1837
1838 # Check that the precious variables saved in the cache have kept the same
1839 # value.
1840 ac_cache_corrupted=false
1841 for ac_var in $ac_precious_vars; do
1842   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1843   eval ac_new_set=\$ac_env_${ac_var}_set
1844   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1845   eval ac_new_val=\$ac_env_${ac_var}_value
1846   case $ac_old_set,$ac_new_set in
1847     set,)
1848       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1849 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1850       ac_cache_corrupted=: ;;
1851     ,set)
1852       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1853 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1854       ac_cache_corrupted=: ;;
1855     ,);;
1856     *)
1857       if test "x$ac_old_val" != "x$ac_new_val"; then
1858         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1859 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1860         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1861 echo "$as_me:   former value:  $ac_old_val" >&2;}
1862         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1863 echo "$as_me:   current value: $ac_new_val" >&2;}
1864         ac_cache_corrupted=:
1865       fi;;
1866   esac
1867   # Pass precious variables to config.status.
1868   if test "$ac_new_set" = set; then
1869     case $ac_new_val in
1870     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1871     *) ac_arg=$ac_var=$ac_new_val ;;
1872     esac
1873     case " $ac_configure_args " in
1874       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1875       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1876     esac
1877   fi
1878 done
1879 if $ac_cache_corrupted; then
1880   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1881 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1882   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1883 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1884    { (exit 1); exit 1; }; }
1885 fi
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911 ac_ext=c
1912 ac_cpp='$CPP $CPPFLAGS'
1913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1916
1917
1918
1919 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1920
1921
1922
1923
1924
1925
1926
1927 ac_aux_dir=
1928 for ac_dir in autoconf "$srcdir"/autoconf; do
1929   if test -f "$ac_dir/install-sh"; then
1930     ac_aux_dir=$ac_dir
1931     ac_install_sh="$ac_aux_dir/install-sh -c"
1932     break
1933   elif test -f "$ac_dir/install.sh"; then
1934     ac_aux_dir=$ac_dir
1935     ac_install_sh="$ac_aux_dir/install.sh -c"
1936     break
1937   elif test -f "$ac_dir/shtool"; then
1938     ac_aux_dir=$ac_dir
1939     ac_install_sh="$ac_aux_dir/shtool install -c"
1940     break
1941   fi
1942 done
1943 if test -z "$ac_aux_dir"; then
1944   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1945 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1946    { (exit 1); exit 1; }; }
1947 fi
1948
1949 # These three variables are undocumented and unsupported,
1950 # and are intended to be withdrawn in a future Autoconf release.
1951 # They can cause serious problems if a builder's source tree is in a directory
1952 # whose full name contains unusual characters.
1953 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1954 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1955 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1956
1957
1958
1959 if test ${srcdir} != "." ; then
1960   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1961     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1962 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1963    { (exit 1); exit 1; }; }
1964   fi
1965 fi
1966
1967
1968
1969 if test -d ${srcdir}/projects/llvm-gcc ; then
1970   subdirs="$subdirs projects/llvm-gcc"
1971
1972 fi
1973
1974 if test -d ${srcdir}/projects/test-suite ; then
1975   subdirs="$subdirs projects/test-suite"
1976
1977 fi
1978
1979 if test -d ${srcdir}/projects/llvm-test ; then
1980   subdirs="$subdirs projects/llvm-test"
1981
1982 fi
1983
1984 if test -d ${srcdir}/projects/poolalloc ; then
1985   subdirs="$subdirs projects/poolalloc"
1986
1987 fi
1988
1989 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1990   subdirs="$subdirs projects/llvm-poolalloc"
1991
1992 fi
1993
1994 for i in `ls ${srcdir}/projects`
1995 do
1996   if test -d ${srcdir}/projects/${i} ; then
1997     case ${i} in
1998       sample)       subdirs="$subdirs projects/sample"
1999     ;;
2000       privbracket)  subdirs="$subdirs projects/privbracket"
2001  ;;
2002       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2003  ;;
2004       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2005 ;;
2006       llvm-java)    subdirs="$subdirs projects/llvm-java"
2007  ;;
2008       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2009    ;;
2010       safecode)     subdirs="$subdirs projects/safecode"
2011  ;;
2012       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2013  ;;
2014       llvm-gcc)       ;;
2015       test-suite)     ;;
2016       llvm-test)      ;;
2017       poolalloc)      ;;
2018       llvm-poolalloc) ;;
2019       *)
2020         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2021 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2022         ;;
2023     esac
2024   fi
2025 done
2026
2027 # Check whether --enable-polly was given.
2028 if test "${enable_polly+set}" = set; then
2029   enableval=$enable_polly;
2030 else
2031   enableval=default
2032 fi
2033
2034 case "$enableval" in
2035   yes) ENABLE_POLLY=1
2036  ;;
2037   no)  ENABLE_POLLY=0
2038  ;;
2039   default) ENABLE_POLLY=1
2040  ;;
2041   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2042 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2043    { (exit 1); exit 1; }; } ;;
2044 esac
2045
2046
2047 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2048   LLVM_HAS_POLLY=1
2049
2050   subdirs="$subdirs tools/polly"
2051
2052 fi
2053
2054
2055 # Make sure we can run config.sub.
2056 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2057   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2058 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2059    { (exit 1); exit 1; }; }
2060
2061 { echo "$as_me:$LINENO: checking build system type" >&5
2062 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2063 if test "${ac_cv_build+set}" = set; then
2064   echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066   ac_build_alias=$build_alias
2067 test "x$ac_build_alias" = x &&
2068   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2069 test "x$ac_build_alias" = x &&
2070   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2071 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2072    { (exit 1); exit 1; }; }
2073 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2074   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2075 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2076    { (exit 1); exit 1; }; }
2077
2078 fi
2079 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2080 echo "${ECHO_T}$ac_cv_build" >&6; }
2081 case $ac_cv_build in
2082 *-*-*) ;;
2083 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2084 echo "$as_me: error: invalid value of canonical build" >&2;}
2085    { (exit 1); exit 1; }; };;
2086 esac
2087 build=$ac_cv_build
2088 ac_save_IFS=$IFS; IFS='-'
2089 set x $ac_cv_build
2090 shift
2091 build_cpu=$1
2092 build_vendor=$2
2093 shift; shift
2094 # Remember, the first character of IFS is used to create $*,
2095 # except with old shells:
2096 build_os=$*
2097 IFS=$ac_save_IFS
2098 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2099
2100
2101 { echo "$as_me:$LINENO: checking host system type" >&5
2102 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2103 if test "${ac_cv_host+set}" = set; then
2104   echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106   if test "x$host_alias" = x; then
2107   ac_cv_host=$ac_cv_build
2108 else
2109   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2110     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2111 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2112    { (exit 1); exit 1; }; }
2113 fi
2114
2115 fi
2116 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2117 echo "${ECHO_T}$ac_cv_host" >&6; }
2118 case $ac_cv_host in
2119 *-*-*) ;;
2120 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2121 echo "$as_me: error: invalid value of canonical host" >&2;}
2122    { (exit 1); exit 1; }; };;
2123 esac
2124 host=$ac_cv_host
2125 ac_save_IFS=$IFS; IFS='-'
2126 set x $ac_cv_host
2127 shift
2128 host_cpu=$1
2129 host_vendor=$2
2130 shift; shift
2131 # Remember, the first character of IFS is used to create $*,
2132 # except with old shells:
2133 host_os=$*
2134 IFS=$ac_save_IFS
2135 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2136
2137
2138 { echo "$as_me:$LINENO: checking target system type" >&5
2139 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2140 if test "${ac_cv_target+set}" = set; then
2141   echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143   if test "x$target_alias" = x; then
2144   ac_cv_target=$ac_cv_host
2145 else
2146   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2147     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2148 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2149    { (exit 1); exit 1; }; }
2150 fi
2151
2152 fi
2153 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2154 echo "${ECHO_T}$ac_cv_target" >&6; }
2155 case $ac_cv_target in
2156 *-*-*) ;;
2157 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2158 echo "$as_me: error: invalid value of canonical target" >&2;}
2159    { (exit 1); exit 1; }; };;
2160 esac
2161 target=$ac_cv_target
2162 ac_save_IFS=$IFS; IFS='-'
2163 set x $ac_cv_target
2164 shift
2165 target_cpu=$1
2166 target_vendor=$2
2167 shift; shift
2168 # Remember, the first character of IFS is used to create $*,
2169 # except with old shells:
2170 target_os=$*
2171 IFS=$ac_save_IFS
2172 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2173
2174
2175 # The aliases save the names the user supplied, while $host etc.
2176 # will get canonicalized.
2177 test -n "$target_alias" &&
2178   test "$program_prefix$program_suffix$program_transform_name" = \
2179     NONENONEs,x,x, &&
2180   program_prefix=${target_alias}-
2181
2182 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2183 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2184 if test "${llvm_cv_os_type+set}" = set; then
2185   echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187   case $host in
2188   *-*-aix*)
2189     llvm_cv_link_all_option="-Wl,--whole-archive"
2190     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2191     llvm_cv_os_type="AIX"
2192     llvm_cv_platform_type="Unix" ;;
2193   *-*-irix*)
2194     llvm_cv_link_all_option="-Wl,--whole-archive"
2195     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2196     llvm_cv_os_type="IRIX"
2197     llvm_cv_platform_type="Unix" ;;
2198   *-*-cygwin*)
2199     llvm_cv_link_all_option="-Wl,--whole-archive"
2200     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2201     llvm_cv_os_type="Cygwin"
2202     llvm_cv_platform_type="Unix" ;;
2203   *-*-darwin*)
2204     llvm_cv_link_all_option="-Wl,-all_load"
2205     llvm_cv_no_link_all_option="-Wl,-noall_load"
2206     llvm_cv_os_type="Darwin"
2207     llvm_cv_platform_type="Unix" ;;
2208   *-*-minix*)
2209     llvm_cv_link_all_option="-Wl,-all_load"
2210     llvm_cv_no_link_all_option="-Wl,-noall_load"
2211     llvm_cv_os_type="Minix"
2212     llvm_cv_platform_type="Unix" ;;
2213   *-*-freebsd*)
2214     llvm_cv_link_all_option="-Wl,--whole-archive"
2215     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2216     llvm_cv_os_type="FreeBSD"
2217     llvm_cv_platform_type="Unix" ;;
2218   *-*-openbsd*)
2219     llvm_cv_link_all_option="-Wl,--whole-archive"
2220     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2221     llvm_cv_os_type="OpenBSD"
2222     llvm_cv_platform_type="Unix" ;;
2223   *-*-netbsd*)
2224     llvm_cv_link_all_option="-Wl,--whole-archive"
2225     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2226     llvm_cv_os_type="NetBSD"
2227     llvm_cv_platform_type="Unix" ;;
2228   *-*-dragonfly*)
2229     llvm_cv_link_all_option="-Wl,--whole-archive"
2230     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2231     llvm_cv_os_type="DragonFly"
2232     llvm_cv_platform_type="Unix" ;;
2233   *-*-hpux*)
2234     llvm_cv_link_all_option="-Wl,--whole-archive"
2235     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236     llvm_cv_os_type="HP-UX"
2237     llvm_cv_platform_type="Unix" ;;
2238   *-*-interix*)
2239     llvm_cv_link_all_option="-Wl,--whole-archive"
2240     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241     llvm_cv_os_type="Interix"
2242     llvm_cv_platform_type="Unix" ;;
2243   *-*-linux*)
2244     llvm_cv_link_all_option="-Wl,--whole-archive"
2245     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2246     llvm_cv_os_type="Linux"
2247     llvm_cv_platform_type="Unix" ;;
2248   *-*-solaris*)
2249     llvm_cv_link_all_option="-Wl,-z,allextract"
2250     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2251     llvm_cv_os_type="SunOS"
2252     llvm_cv_platform_type="Unix" ;;
2253   *-*-auroraux*)
2254     llvm_cv_link_all_option="-Wl,-z,allextract"
2255     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2256     llvm_cv_os_type="AuroraUX"
2257     llvm_cv_platform_type="Unix" ;;
2258   *-*-win32*)
2259     llvm_cv_link_all_option="-Wl,--whole-archive"
2260     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261     llvm_cv_os_type="Win32"
2262     llvm_cv_platform_type="Win32" ;;
2263   *-*-mingw*)
2264     llvm_cv_link_all_option="-Wl,--whole-archive"
2265     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266     llvm_cv_os_type="MingW"
2267     llvm_cv_platform_type="Win32" ;;
2268   *-*-haiku*)
2269     llvm_cv_link_all_option="-Wl,--whole-archive"
2270     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271     llvm_cv_os_type="Haiku"
2272     llvm_cv_platform_type="Unix" ;;
2273   *-unknown-eabi*)
2274     llvm_cv_link_all_option="-Wl,--whole-archive"
2275     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276     llvm_cv_os_type="Freestanding"
2277     llvm_cv_platform_type="Unix" ;;
2278   *-unknown-elf*)
2279     llvm_cv_link_all_option="-Wl,--whole-archive"
2280     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281     llvm_cv_os_type="Freestanding"
2282     llvm_cv_platform_type="Unix" ;;
2283   *)
2284     llvm_cv_link_all_option=""
2285     llvm_cv_no_link_all_option=""
2286     llvm_cv_os_type="Unknown"
2287     llvm_cv_platform_type="Unknown" ;;
2288 esac
2289 fi
2290 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2291 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2292
2293 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2294 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2295 if test "${llvm_cv_target_os_type+set}" = set; then
2296   echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298   case $target in
2299   *-*-aix*)
2300     llvm_cv_target_os_type="AIX" ;;
2301   *-*-irix*)
2302     llvm_cv_target_os_type="IRIX" ;;
2303   *-*-cygwin*)
2304     llvm_cv_target_os_type="Cygwin" ;;
2305   *-*-darwin*)
2306     llvm_cv_target_os_type="Darwin" ;;
2307   *-*-minix*)
2308     llvm_cv_target_os_type="Minix" ;;
2309   *-*-freebsd*)
2310     llvm_cv_target_os_type="FreeBSD" ;;
2311   *-*-openbsd*)
2312     llvm_cv_target_os_type="OpenBSD" ;;
2313   *-*-netbsd*)
2314     llvm_cv_target_os_type="NetBSD" ;;
2315   *-*-dragonfly*)
2316     llvm_cv_target_os_type="DragonFly" ;;
2317   *-*-hpux*)
2318     llvm_cv_target_os_type="HP-UX" ;;
2319   *-*-interix*)
2320     llvm_cv_target_os_type="Interix" ;;
2321   *-*-linux*)
2322     llvm_cv_target_os_type="Linux" ;;
2323   *-*-solaris*)
2324     llvm_cv_target_os_type="SunOS" ;;
2325   *-*-auroraux*)
2326     llvm_cv_target_os_type="AuroraUX" ;;
2327   *-*-win32*)
2328     llvm_cv_target_os_type="Win32" ;;
2329   *-*-mingw*)
2330     llvm_cv_target_os_type="MingW" ;;
2331   *-*-haiku*)
2332     llvm_cv_target_os_type="Haiku" ;;
2333   *-unknown-eabi*)
2334     llvm_cv_target_os_type="Freestanding" ;;
2335   *)
2336     llvm_cv_target_os_type="Unknown" ;;
2337 esac
2338 fi
2339 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2340 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2341
2342 if test "$llvm_cv_os_type" = "Unknown" ; then
2343   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2344 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2345    { (exit 1); exit 1; }; }
2346 fi
2347
2348 OS=$llvm_cv_os_type
2349
2350 HOST_OS=$llvm_cv_os_type
2351
2352 TARGET_OS=$llvm_cv_target_os_type
2353
2354
2355 LINKALL=$llvm_cv_link_all_option
2356
2357 NOLINKALL=$llvm_cv_no_link_all_option
2358
2359
2360 case $llvm_cv_platform_type in
2361   Unix)
2362
2363 cat >>confdefs.h <<\_ACEOF
2364 #define LLVM_ON_UNIX 1
2365 _ACEOF
2366
2367     LLVM_ON_UNIX=1
2368
2369     LLVM_ON_WIN32=0
2370
2371     ;;
2372   Win32)
2373
2374 cat >>confdefs.h <<\_ACEOF
2375 #define LLVM_ON_WIN32 1
2376 _ACEOF
2377
2378     LLVM_ON_UNIX=0
2379
2380     LLVM_ON_WIN32=1
2381
2382     ;;
2383 esac
2384
2385 { echo "$as_me:$LINENO: checking target architecture" >&5
2386 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2387 if test "${llvm_cv_target_arch+set}" = set; then
2388   echo $ECHO_N "(cached) $ECHO_C" >&6
2389 else
2390   case $target in
2391   i?86-*)                 llvm_cv_target_arch="x86" ;;
2392   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2393   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2394   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2395   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2396   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2397   mips-*)                 llvm_cv_target_arch="Mips" ;;
2398   xcore-*)                llvm_cv_target_arch="XCore" ;;
2399   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2400   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2401   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2402   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2403   ptx-*)                  llvm_cv_target_arch="PTX" ;;
2404   *)                      llvm_cv_target_arch="Unknown" ;;
2405 esac
2406 fi
2407 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2408 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2409
2410 if test "$llvm_cv_target_arch" = "Unknown" ; then
2411   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2412 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2413 fi
2414
2415 # Determine the LLVM native architecture for the target
2416 case "$llvm_cv_target_arch" in
2417     x86)     LLVM_NATIVE_ARCH="X86" ;;
2418     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2419     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2420 esac
2421
2422 ARCH=$llvm_cv_target_arch
2423
2424
2425 ac_ext=c
2426 ac_cpp='$CPP $CPPFLAGS'
2427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2430 if test -n "$ac_tool_prefix"; then
2431   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2432 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_CC+set}" = set; then
2436   echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438   if test -n "$CC"; then
2439   ac_cv_prog_CC="$CC" # Let the user override the test.
2440 else
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 for as_dir in $PATH
2443 do
2444   IFS=$as_save_IFS
2445   test -z "$as_dir" && as_dir=.
2446   for ac_exec_ext in '' $ac_executable_extensions; do
2447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2448     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450     break 2
2451   fi
2452 done
2453 done
2454 IFS=$as_save_IFS
2455
2456 fi
2457 fi
2458 CC=$ac_cv_prog_CC
2459 if test -n "$CC"; then
2460   { echo "$as_me:$LINENO: result: $CC" >&5
2461 echo "${ECHO_T}$CC" >&6; }
2462 else
2463   { echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6; }
2465 fi
2466
2467
2468 fi
2469 if test -z "$ac_cv_prog_CC"; then
2470   ac_ct_CC=$CC
2471   # Extract the first word of "gcc", so it can be a program name with args.
2472 set dummy gcc; ac_word=$2
2473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2476   echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478   if test -n "$ac_ct_CC"; then
2479   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2480 else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2483 do
2484   IFS=$as_save_IFS
2485   test -z "$as_dir" && as_dir=.
2486   for ac_exec_ext in '' $ac_executable_extensions; do
2487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2488     ac_cv_prog_ac_ct_CC="gcc"
2489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490     break 2
2491   fi
2492 done
2493 done
2494 IFS=$as_save_IFS
2495
2496 fi
2497 fi
2498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2499 if test -n "$ac_ct_CC"; then
2500   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2501 echo "${ECHO_T}$ac_ct_CC" >&6; }
2502 else
2503   { echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6; }
2505 fi
2506
2507   if test "x$ac_ct_CC" = x; then
2508     CC=""
2509   else
2510     case $cross_compiling:$ac_tool_warned in
2511 yes:)
2512 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2513 whose name does not start with the host triplet.  If you think this
2514 configuration is useful to you, please write to autoconf@gnu.org." >&5
2515 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2516 whose name does not start with the host triplet.  If you think this
2517 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2518 ac_tool_warned=yes ;;
2519 esac
2520     CC=$ac_ct_CC
2521   fi
2522 else
2523   CC="$ac_cv_prog_CC"
2524 fi
2525
2526 if test -z "$CC"; then
2527           if test -n "$ac_tool_prefix"; then
2528     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2529 set dummy ${ac_tool_prefix}cc; ac_word=$2
2530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532 if test "${ac_cv_prog_CC+set}" = set; then
2533   echo $ECHO_N "(cached) $ECHO_C" >&6
2534 else
2535   if test -n "$CC"; then
2536   ac_cv_prog_CC="$CC" # Let the user override the test.
2537 else
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH
2540 do
2541   IFS=$as_save_IFS
2542   test -z "$as_dir" && as_dir=.
2543   for ac_exec_ext in '' $ac_executable_extensions; do
2544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2545     ac_cv_prog_CC="${ac_tool_prefix}cc"
2546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547     break 2
2548   fi
2549 done
2550 done
2551 IFS=$as_save_IFS
2552
2553 fi
2554 fi
2555 CC=$ac_cv_prog_CC
2556 if test -n "$CC"; then
2557   { echo "$as_me:$LINENO: result: $CC" >&5
2558 echo "${ECHO_T}$CC" >&6; }
2559 else
2560   { echo "$as_me:$LINENO: result: no" >&5
2561 echo "${ECHO_T}no" >&6; }
2562 fi
2563
2564
2565   fi
2566 fi
2567 if test -z "$CC"; then
2568   # Extract the first word of "cc", so it can be a program name with args.
2569 set dummy cc; ac_word=$2
2570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2572 if test "${ac_cv_prog_CC+set}" = set; then
2573   echo $ECHO_N "(cached) $ECHO_C" >&6
2574 else
2575   if test -n "$CC"; then
2576   ac_cv_prog_CC="$CC" # Let the user override the test.
2577 else
2578   ac_prog_rejected=no
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582   IFS=$as_save_IFS
2583   test -z "$as_dir" && as_dir=.
2584   for ac_exec_ext in '' $ac_executable_extensions; do
2585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2586     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2587        ac_prog_rejected=yes
2588        continue
2589      fi
2590     ac_cv_prog_CC="cc"
2591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2592     break 2
2593   fi
2594 done
2595 done
2596 IFS=$as_save_IFS
2597
2598 if test $ac_prog_rejected = yes; then
2599   # We found a bogon in the path, so make sure we never use it.
2600   set dummy $ac_cv_prog_CC
2601   shift
2602   if test $# != 0; then
2603     # We chose a different compiler from the bogus one.
2604     # However, it has the same basename, so the bogon will be chosen
2605     # first if we set CC to just the basename; use the full file name.
2606     shift
2607     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2608   fi
2609 fi
2610 fi
2611 fi
2612 CC=$ac_cv_prog_CC
2613 if test -n "$CC"; then
2614   { echo "$as_me:$LINENO: result: $CC" >&5
2615 echo "${ECHO_T}$CC" >&6; }
2616 else
2617   { echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6; }
2619 fi
2620
2621
2622 fi
2623 if test -z "$CC"; then
2624   if test -n "$ac_tool_prefix"; then
2625   for ac_prog in cl.exe
2626   do
2627     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2628 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2631 if test "${ac_cv_prog_CC+set}" = set; then
2632   echo $ECHO_N "(cached) $ECHO_C" >&6
2633 else
2634   if test -n "$CC"; then
2635   ac_cv_prog_CC="$CC" # Let the user override the test.
2636 else
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2639 do
2640   IFS=$as_save_IFS
2641   test -z "$as_dir" && as_dir=.
2642   for ac_exec_ext in '' $ac_executable_extensions; do
2643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2644     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646     break 2
2647   fi
2648 done
2649 done
2650 IFS=$as_save_IFS
2651
2652 fi
2653 fi
2654 CC=$ac_cv_prog_CC
2655 if test -n "$CC"; then
2656   { echo "$as_me:$LINENO: result: $CC" >&5
2657 echo "${ECHO_T}$CC" >&6; }
2658 else
2659   { echo "$as_me:$LINENO: result: no" >&5
2660 echo "${ECHO_T}no" >&6; }
2661 fi
2662
2663
2664     test -n "$CC" && break
2665   done
2666 fi
2667 if test -z "$CC"; then
2668   ac_ct_CC=$CC
2669   for ac_prog in cl.exe
2670 do
2671   # Extract the first word of "$ac_prog", so it can be a program name with args.
2672 set dummy $ac_prog; ac_word=$2
2673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2676   echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678   if test -n "$ac_ct_CC"; then
2679   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684   IFS=$as_save_IFS
2685   test -z "$as_dir" && as_dir=.
2686   for ac_exec_ext in '' $ac_executable_extensions; do
2687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2688     ac_cv_prog_ac_ct_CC="$ac_prog"
2689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690     break 2
2691   fi
2692 done
2693 done
2694 IFS=$as_save_IFS
2695
2696 fi
2697 fi
2698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2699 if test -n "$ac_ct_CC"; then
2700   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2701 echo "${ECHO_T}$ac_ct_CC" >&6; }
2702 else
2703   { echo "$as_me:$LINENO: result: no" >&5
2704 echo "${ECHO_T}no" >&6; }
2705 fi
2706
2707
2708   test -n "$ac_ct_CC" && break
2709 done
2710
2711   if test "x$ac_ct_CC" = x; then
2712     CC=""
2713   else
2714     case $cross_compiling:$ac_tool_warned in
2715 yes:)
2716 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2717 whose name does not start with the host triplet.  If you think this
2718 configuration is useful to you, please write to autoconf@gnu.org." >&5
2719 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2720 whose name does not start with the host triplet.  If you think this
2721 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2722 ac_tool_warned=yes ;;
2723 esac
2724     CC=$ac_ct_CC
2725   fi
2726 fi
2727
2728 fi
2729
2730
2731 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2732 See \`config.log' for more details." >&5
2733 echo "$as_me: error: no acceptable C compiler found in \$PATH
2734 See \`config.log' for more details." >&2;}
2735    { (exit 1); exit 1; }; }
2736
2737 # Provide some information about the compiler.
2738 echo "$as_me:$LINENO: checking for C compiler version" >&5
2739 ac_compiler=`set X $ac_compile; echo $2`
2740 { (ac_try="$ac_compiler --version >&5"
2741 case "(($ac_try" in
2742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743   *) ac_try_echo=$ac_try;;
2744 esac
2745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746   (eval "$ac_compiler --version >&5") 2>&5
2747   ac_status=$?
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); }
2750 { (ac_try="$ac_compiler -v >&5"
2751 case "(($ac_try" in
2752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753   *) ac_try_echo=$ac_try;;
2754 esac
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756   (eval "$ac_compiler -v >&5") 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }
2760 { (ac_try="$ac_compiler -V >&5"
2761 case "(($ac_try" in
2762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763   *) ac_try_echo=$ac_try;;
2764 esac
2765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766   (eval "$ac_compiler -V >&5") 2>&5
2767   ac_status=$?
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); }
2770
2771 cat >conftest.$ac_ext <<_ACEOF
2772 /* confdefs.h.  */
2773 _ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h.  */
2777
2778 int
2779 main ()
2780 {
2781
2782   ;
2783   return 0;
2784 }
2785 _ACEOF
2786 ac_clean_files_save=$ac_clean_files
2787 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2788 # Try to create an executable without -o first, disregard a.out.
2789 # It will help us diagnose broken compilers, and finding out an intuition
2790 # of exeext.
2791 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2792 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2793 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2794 #
2795 # List of possible output files, starting from the most likely.
2796 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2797 # only as a last resort.  b.out is created by i960 compilers.
2798 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2799 #
2800 # The IRIX 6 linker writes into existing files which may not be
2801 # executable, retaining their permissions.  Remove them first so a
2802 # subsequent execution test works.
2803 ac_rmfiles=
2804 for ac_file in $ac_files
2805 do
2806   case $ac_file in
2807     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2808     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2809   esac
2810 done
2811 rm -f $ac_rmfiles
2812
2813 if { (ac_try="$ac_link_default"
2814 case "(($ac_try" in
2815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816   *) ac_try_echo=$ac_try;;
2817 esac
2818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819   (eval "$ac_link_default") 2>&5
2820   ac_status=$?
2821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822   (exit $ac_status); }; then
2823   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2824 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2825 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2826 # so that the user can short-circuit this test for compilers unknown to
2827 # Autoconf.
2828 for ac_file in $ac_files
2829 do
2830   test -f "$ac_file" || continue
2831   case $ac_file in
2832     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2833         ;;
2834     [ab].out )
2835         # We found the default executable, but exeext='' is most
2836         # certainly right.
2837         break;;
2838     *.* )
2839         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2840         then :; else
2841            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2842         fi
2843         # We set ac_cv_exeext here because the later test for it is not
2844         # safe: cross compilers may not add the suffix if given an `-o'
2845         # argument, so we may need to know it at that point already.
2846         # Even if this section looks crufty: it has the advantage of
2847         # actually working.
2848         break;;
2849     * )
2850         break;;
2851   esac
2852 done
2853 test "$ac_cv_exeext" = no && ac_cv_exeext=
2854
2855 else
2856   echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2860 See \`config.log' for more details." >&5
2861 echo "$as_me: error: C compiler cannot create executables
2862 See \`config.log' for more details." >&2;}
2863    { (exit 77); exit 77; }; }
2864 fi
2865
2866 ac_exeext=$ac_cv_exeext
2867 { echo "$as_me:$LINENO: result: $ac_file" >&5
2868 echo "${ECHO_T}$ac_file" >&6; }
2869
2870 # Check that the compiler produces executables we can run.  If not, either
2871 # the compiler is broken, or we cross compile.
2872 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2873 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2874 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2875 # If not cross compiling, check that we can run a simple program.
2876 if test "$cross_compiling" != yes; then
2877   if { ac_try='./$ac_file'
2878   { (case "(($ac_try" in
2879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880   *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883   (eval "$ac_try") 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); }; }; then
2887     cross_compiling=no
2888   else
2889     if test "$cross_compiling" = maybe; then
2890         cross_compiling=yes
2891     else
2892         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2893 If you meant to cross compile, use \`--host'.
2894 See \`config.log' for more details." >&5
2895 echo "$as_me: error: cannot run C compiled programs.
2896 If you meant to cross compile, use \`--host'.
2897 See \`config.log' for more details." >&2;}
2898    { (exit 1); exit 1; }; }
2899     fi
2900   fi
2901 fi
2902 { echo "$as_me:$LINENO: result: yes" >&5
2903 echo "${ECHO_T}yes" >&6; }
2904
2905 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2906 ac_clean_files=$ac_clean_files_save
2907 # Check that the compiler produces executables we can run.  If not, either
2908 # the compiler is broken, or we cross compile.
2909 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2910 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2911 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2912 echo "${ECHO_T}$cross_compiling" >&6; }
2913
2914 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2915 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2916 if { (ac_try="$ac_link"
2917 case "(($ac_try" in
2918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919   *) ac_try_echo=$ac_try;;
2920 esac
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922   (eval "$ac_link") 2>&5
2923   ac_status=$?
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); }; then
2926   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2927 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2928 # work properly (i.e., refer to `conftest.exe'), while it won't with
2929 # `rm'.
2930 for ac_file in conftest.exe conftest conftest.*; do
2931   test -f "$ac_file" || continue
2932   case $ac_file in
2933     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2934     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2935           break;;
2936     * ) break;;
2937   esac
2938 done
2939 else
2940   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2941 See \`config.log' for more details." >&5
2942 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2943 See \`config.log' for more details." >&2;}
2944    { (exit 1); exit 1; }; }
2945 fi
2946
2947 rm -f conftest$ac_cv_exeext
2948 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2949 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2950
2951 rm -f conftest.$ac_ext
2952 EXEEXT=$ac_cv_exeext
2953 ac_exeext=$EXEEXT
2954 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2955 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2956 if test "${ac_cv_objext+set}" = set; then
2957   echo $ECHO_N "(cached) $ECHO_C" >&6
2958 else
2959   cat >conftest.$ac_ext <<_ACEOF
2960 /* confdefs.h.  */
2961 _ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h.  */
2965
2966 int
2967 main ()
2968 {
2969
2970   ;
2971   return 0;
2972 }
2973 _ACEOF
2974 rm -f conftest.o conftest.obj
2975 if { (ac_try="$ac_compile"
2976 case "(($ac_try" in
2977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978   *) ac_try_echo=$ac_try;;
2979 esac
2980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981   (eval "$ac_compile") 2>&5
2982   ac_status=$?
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); }; then
2985   for ac_file in conftest.o conftest.obj conftest.*; do
2986   test -f "$ac_file" || continue;
2987   case $ac_file in
2988     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2989     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2990        break;;
2991   esac
2992 done
2993 else
2994   echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2996
2997 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2998 See \`config.log' for more details." >&5
2999 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3000 See \`config.log' for more details." >&2;}
3001    { (exit 1); exit 1; }; }
3002 fi
3003
3004 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3005 fi
3006 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3007 echo "${ECHO_T}$ac_cv_objext" >&6; }
3008 OBJEXT=$ac_cv_objext
3009 ac_objext=$OBJEXT
3010 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3011 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3012 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3013   echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015   cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h.  */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h.  */
3021
3022 int
3023 main ()
3024 {
3025 #ifndef __GNUC__
3026        choke me
3027 #endif
3028
3029   ;
3030   return 0;
3031 }
3032 _ACEOF
3033 rm -f conftest.$ac_objext
3034 if { (ac_try="$ac_compile"
3035 case "(($ac_try" in
3036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037   *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040   (eval "$ac_compile") 2>conftest.er1
3041   ac_status=$?
3042   grep -v '^ *+' conftest.er1 >conftest.err
3043   rm -f conftest.er1
3044   cat conftest.err >&5
3045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); } &&
3047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3048   { (case "(($ac_try" in
3049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050   *) ac_try_echo=$ac_try;;
3051 esac
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053   (eval "$ac_try") 2>&5
3054   ac_status=$?
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); }; } &&
3057          { ac_try='test -s conftest.$ac_objext'
3058   { (case "(($ac_try" in
3059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060   *) ac_try_echo=$ac_try;;
3061 esac
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063   (eval "$ac_try") 2>&5
3064   ac_status=$?
3065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066   (exit $ac_status); }; }; then
3067   ac_compiler_gnu=yes
3068 else
3069   echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3071
3072         ac_compiler_gnu=no
3073 fi
3074
3075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3076 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3077
3078 fi
3079 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3080 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3081 GCC=`test $ac_compiler_gnu = yes && echo yes`
3082 ac_test_CFLAGS=${CFLAGS+set}
3083 ac_save_CFLAGS=$CFLAGS
3084 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3085 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3086 if test "${ac_cv_prog_cc_g+set}" = set; then
3087   echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089   ac_save_c_werror_flag=$ac_c_werror_flag
3090    ac_c_werror_flag=yes
3091    ac_cv_prog_cc_g=no
3092    CFLAGS="-g"
3093    cat >conftest.$ac_ext <<_ACEOF
3094 /* confdefs.h.  */
3095 _ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h.  */
3099
3100 int
3101 main ()
3102 {
3103
3104   ;
3105   return 0;
3106 }
3107 _ACEOF
3108 rm -f conftest.$ac_objext
3109 if { (ac_try="$ac_compile"
3110 case "(($ac_try" in
3111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112   *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115   (eval "$ac_compile") 2>conftest.er1
3116   ac_status=$?
3117   grep -v '^ *+' conftest.er1 >conftest.err
3118   rm -f conftest.er1
3119   cat conftest.err >&5
3120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121   (exit $ac_status); } &&
3122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3123   { (case "(($ac_try" in
3124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125   *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128   (eval "$ac_try") 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }; } &&
3132          { ac_try='test -s conftest.$ac_objext'
3133   { (case "(($ac_try" in
3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135   *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138   (eval "$ac_try") 2>&5
3139   ac_status=$?
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); }; }; then
3142   ac_cv_prog_cc_g=yes
3143 else
3144   echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147         CFLAGS=""
3148       cat >conftest.$ac_ext <<_ACEOF
3149 /* confdefs.h.  */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h.  */
3154
3155 int
3156 main ()
3157 {
3158
3159   ;
3160   return 0;
3161 }
3162 _ACEOF
3163 rm -f conftest.$ac_objext
3164 if { (ac_try="$ac_compile"
3165 case "(($ac_try" in
3166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167   *) ac_try_echo=$ac_try;;
3168 esac
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170   (eval "$ac_compile") 2>conftest.er1
3171   ac_status=$?
3172   grep -v '^ *+' conftest.er1 >conftest.err
3173   rm -f conftest.er1
3174   cat conftest.err >&5
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); } &&
3177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3178   { (case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_try") 2>&5
3184   ac_status=$?
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); }; } &&
3187          { ac_try='test -s conftest.$ac_objext'
3188   { (case "(($ac_try" in
3189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190   *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193   (eval "$ac_try") 2>&5
3194   ac_status=$?
3195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196   (exit $ac_status); }; }; then
3197   :
3198 else
3199   echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3201
3202         ac_c_werror_flag=$ac_save_c_werror_flag
3203          CFLAGS="-g"
3204          cat >conftest.$ac_ext <<_ACEOF
3205 /* confdefs.h.  */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h.  */
3210
3211 int
3212 main ()
3213 {
3214
3215   ;
3216   return 0;
3217 }
3218 _ACEOF
3219 rm -f conftest.$ac_objext
3220 if { (ac_try="$ac_compile"
3221 case "(($ac_try" in
3222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223   *) ac_try_echo=$ac_try;;
3224 esac
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226   (eval "$ac_compile") 2>conftest.er1
3227   ac_status=$?
3228   grep -v '^ *+' conftest.er1 >conftest.err
3229   rm -f conftest.er1
3230   cat conftest.err >&5
3231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232   (exit $ac_status); } &&
3233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3234   { (case "(($ac_try" in
3235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236   *) ac_try_echo=$ac_try;;
3237 esac
3238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239   (eval "$ac_try") 2>&5
3240   ac_status=$?
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); }; } &&
3243          { ac_try='test -s conftest.$ac_objext'
3244   { (case "(($ac_try" in
3245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246   *) ac_try_echo=$ac_try;;
3247 esac
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249   (eval "$ac_try") 2>&5
3250   ac_status=$?
3251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252   (exit $ac_status); }; }; then
3253   ac_cv_prog_cc_g=yes
3254 else
3255   echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3257
3258
3259 fi
3260
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262 fi
3263
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 fi
3266
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268    ac_c_werror_flag=$ac_save_c_werror_flag
3269 fi
3270 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3271 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3272 if test "$ac_test_CFLAGS" = set; then
3273   CFLAGS=$ac_save_CFLAGS
3274 elif test $ac_cv_prog_cc_g = yes; then
3275   if test "$GCC" = yes; then
3276     CFLAGS="-g -O2"
3277   else
3278     CFLAGS="-g"
3279   fi
3280 else
3281   if test "$GCC" = yes; then
3282     CFLAGS="-O2"
3283   else
3284     CFLAGS=
3285   fi
3286 fi
3287 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3288 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3289 if test "${ac_cv_prog_cc_c89+set}" = set; then
3290   echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292   ac_cv_prog_cc_c89=no
3293 ac_save_CC=$CC
3294 cat >conftest.$ac_ext <<_ACEOF
3295 /* confdefs.h.  */
3296 _ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h.  */
3300 #include <stdarg.h>
3301 #include <stdio.h>
3302 #include <sys/types.h>
3303 #include <sys/stat.h>
3304 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3305 struct buf { int x; };
3306 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3307 static char *e (p, i)
3308      char **p;
3309      int i;
3310 {
3311   return p[i];
3312 }
3313 static char *f (char * (*g) (char **, int), char **p, ...)
3314 {
3315   char *s;
3316   va_list v;
3317   va_start (v,p);
3318   s = g (p, va_arg (v,int));
3319   va_end (v);
3320   return s;
3321 }
3322
3323 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3324    function prototypes and stuff, but not '\xHH' hex character constants.
3325    These don't provoke an error unfortunately, instead are silently treated
3326    as 'x'.  The following induces an error, until -std is added to get
3327    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3328    array size at least.  It's necessary to write '\x00'==0 to get something
3329    that's true only with -std.  */
3330 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3331
3332 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3333    inside strings and character constants.  */
3334 #define FOO(x) 'x'
3335 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3336
3337 int test (int i, double x);
3338 struct s1 {int (*f) (int a);};
3339 struct s2 {int (*f) (double a);};
3340 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3341 int argc;
3342 char **argv;
3343 int
3344 main ()
3345 {
3346 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3347   ;
3348   return 0;
3349 }
3350 _ACEOF
3351 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3352         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3353 do
3354   CC="$ac_save_CC $ac_arg"
3355   rm -f conftest.$ac_objext
3356 if { (ac_try="$ac_compile"
3357 case "(($ac_try" in
3358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359   *) ac_try_echo=$ac_try;;
3360 esac
3361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362   (eval "$ac_compile") 2>conftest.er1
3363   ac_status=$?
3364   grep -v '^ *+' conftest.er1 >conftest.err
3365   rm -f conftest.er1
3366   cat conftest.err >&5
3367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368   (exit $ac_status); } &&
3369          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3370   { (case "(($ac_try" in
3371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372   *) ac_try_echo=$ac_try;;
3373 esac
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375   (eval "$ac_try") 2>&5
3376   ac_status=$?
3377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378   (exit $ac_status); }; } &&
3379          { ac_try='test -s conftest.$ac_objext'
3380   { (case "(($ac_try" in
3381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382   *) ac_try_echo=$ac_try;;
3383 esac
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385   (eval "$ac_try") 2>&5
3386   ac_status=$?
3387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388   (exit $ac_status); }; }; then
3389   ac_cv_prog_cc_c89=$ac_arg
3390 else
3391   echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3393
3394
3395 fi
3396
3397 rm -f core conftest.err conftest.$ac_objext
3398   test "x$ac_cv_prog_cc_c89" != "xno" && break
3399 done
3400 rm -f conftest.$ac_ext
3401 CC=$ac_save_CC
3402
3403 fi
3404 # AC_CACHE_VAL
3405 case "x$ac_cv_prog_cc_c89" in
3406   x)
3407     { echo "$as_me:$LINENO: result: none needed" >&5
3408 echo "${ECHO_T}none needed" >&6; } ;;
3409   xno)
3410     { echo "$as_me:$LINENO: result: unsupported" >&5
3411 echo "${ECHO_T}unsupported" >&6; } ;;
3412   *)
3413     CC="$CC $ac_cv_prog_cc_c89"
3414     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3415 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3416 esac
3417
3418
3419 ac_ext=c
3420 ac_cpp='$CPP $CPPFLAGS'
3421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3424
3425
3426 ac_ext=c
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3432 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3433 # On Suns, sometimes $CPP names a directory.
3434 if test -n "$CPP" && test -d "$CPP"; then
3435   CPP=
3436 fi
3437 if test -z "$CPP"; then
3438   if test "${ac_cv_prog_CPP+set}" = set; then
3439   echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441       # Double quotes because CPP needs to be expanded
3442     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3443     do
3444       ac_preproc_ok=false
3445 for ac_c_preproc_warn_flag in '' yes
3446 do
3447   # Use a header file that comes with gcc, so configuring glibc
3448   # with a fresh cross-compiler works.
3449   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3450   # <limits.h> exists even on freestanding compilers.
3451   # On the NeXT, cc -E runs the code through the compiler's parser,
3452   # not just through cpp. "Syntax error" is here to catch this case.
3453   cat >conftest.$ac_ext <<_ACEOF
3454 /* confdefs.h.  */
3455 _ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h.  */
3459 #ifdef __STDC__
3460 # include <limits.h>
3461 #else
3462 # include <assert.h>
3463 #endif
3464                      Syntax error
3465 _ACEOF
3466 if { (ac_try="$ac_cpp conftest.$ac_ext"
3467 case "(($ac_try" in
3468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469   *) ac_try_echo=$ac_try;;
3470 esac
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3473   ac_status=$?
3474   grep -v '^ *+' conftest.er1 >conftest.err
3475   rm -f conftest.er1
3476   cat conftest.err >&5
3477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478   (exit $ac_status); } >/dev/null; then
3479   if test -s conftest.err; then
3480     ac_cpp_err=$ac_c_preproc_warn_flag
3481     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3482   else
3483     ac_cpp_err=
3484   fi
3485 else
3486   ac_cpp_err=yes
3487 fi
3488 if test -z "$ac_cpp_err"; then
3489   :
3490 else
3491   echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494   # Broken: fails on valid input.
3495 continue
3496 fi
3497
3498 rm -f conftest.err conftest.$ac_ext
3499
3500   # OK, works on sane cases.  Now check whether nonexistent headers
3501   # can be detected and how.
3502   cat >conftest.$ac_ext <<_ACEOF
3503 /* confdefs.h.  */
3504 _ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h.  */
3508 #include <ac_nonexistent.h>
3509 _ACEOF
3510 if { (ac_try="$ac_cpp conftest.$ac_ext"
3511 case "(($ac_try" in
3512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513   *) ac_try_echo=$ac_try;;
3514 esac
3515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3516   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3517   ac_status=$?
3518   grep -v '^ *+' conftest.er1 >conftest.err
3519   rm -f conftest.er1
3520   cat conftest.err >&5
3521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522   (exit $ac_status); } >/dev/null; then
3523   if test -s conftest.err; then
3524     ac_cpp_err=$ac_c_preproc_warn_flag
3525     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3526   else
3527     ac_cpp_err=
3528   fi
3529 else
3530   ac_cpp_err=yes
3531 fi
3532 if test -z "$ac_cpp_err"; then
3533   # Broken: success on invalid input.
3534 continue
3535 else
3536   echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3538
3539   # Passes both tests.
3540 ac_preproc_ok=:
3541 break
3542 fi
3543
3544 rm -f conftest.err conftest.$ac_ext
3545
3546 done
3547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3548 rm -f conftest.err conftest.$ac_ext
3549 if $ac_preproc_ok; then
3550   break
3551 fi
3552
3553     done
3554     ac_cv_prog_CPP=$CPP
3555
3556 fi
3557   CPP=$ac_cv_prog_CPP
3558 else
3559   ac_cv_prog_CPP=$CPP
3560 fi
3561 { echo "$as_me:$LINENO: result: $CPP" >&5
3562 echo "${ECHO_T}$CPP" >&6; }
3563 ac_preproc_ok=false
3564 for ac_c_preproc_warn_flag in '' yes
3565 do
3566   # Use a header file that comes with gcc, so configuring glibc
3567   # with a fresh cross-compiler works.
3568   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3569   # <limits.h> exists even on freestanding compilers.
3570   # On the NeXT, cc -E runs the code through the compiler's parser,
3571   # not just through cpp. "Syntax error" is here to catch this case.
3572   cat >conftest.$ac_ext <<_ACEOF
3573 /* confdefs.h.  */
3574 _ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h.  */
3578 #ifdef __STDC__
3579 # include <limits.h>
3580 #else
3581 # include <assert.h>
3582 #endif
3583                      Syntax error
3584 _ACEOF
3585 if { (ac_try="$ac_cpp conftest.$ac_ext"
3586 case "(($ac_try" in
3587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588   *) ac_try_echo=$ac_try;;
3589 esac
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3592   ac_status=$?
3593   grep -v '^ *+' conftest.er1 >conftest.err
3594   rm -f conftest.er1
3595   cat conftest.err >&5
3596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597   (exit $ac_status); } >/dev/null; then
3598   if test -s conftest.err; then
3599     ac_cpp_err=$ac_c_preproc_warn_flag
3600     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3601   else
3602     ac_cpp_err=
3603   fi
3604 else
3605   ac_cpp_err=yes
3606 fi
3607 if test -z "$ac_cpp_err"; then
3608   :
3609 else
3610   echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3612
3613   # Broken: fails on valid input.
3614 continue
3615 fi
3616
3617 rm -f conftest.err conftest.$ac_ext
3618
3619   # OK, works on sane cases.  Now check whether nonexistent headers
3620   # can be detected and how.
3621   cat >conftest.$ac_ext <<_ACEOF
3622 /* confdefs.h.  */
3623 _ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h.  */
3627 #include <ac_nonexistent.h>
3628 _ACEOF
3629 if { (ac_try="$ac_cpp conftest.$ac_ext"
3630 case "(($ac_try" in
3631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632   *) ac_try_echo=$ac_try;;
3633 esac
3634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3635   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3636   ac_status=$?
3637   grep -v '^ *+' conftest.er1 >conftest.err
3638   rm -f conftest.er1
3639   cat conftest.err >&5
3640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641   (exit $ac_status); } >/dev/null; then
3642   if test -s conftest.err; then
3643     ac_cpp_err=$ac_c_preproc_warn_flag
3644     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3645   else
3646     ac_cpp_err=
3647   fi
3648 else
3649   ac_cpp_err=yes
3650 fi
3651 if test -z "$ac_cpp_err"; then
3652   # Broken: success on invalid input.
3653 continue
3654 else
3655   echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3657
3658   # Passes both tests.
3659 ac_preproc_ok=:
3660 break
3661 fi
3662
3663 rm -f conftest.err conftest.$ac_ext
3664
3665 done
3666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3667 rm -f conftest.err conftest.$ac_ext
3668 if $ac_preproc_ok; then
3669   :
3670 else
3671   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3672 See \`config.log' for more details." >&5
3673 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3674 See \`config.log' for more details." >&2;}
3675    { (exit 1); exit 1; }; }
3676 fi
3677
3678 ac_ext=c
3679 ac_cpp='$CPP $CPPFLAGS'
3680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3683
3684
3685 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3686 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3687 if test "${ac_cv_path_GREP+set}" = set; then
3688   echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690   # Extract the first word of "grep ggrep" to use in msg output
3691 if test -z "$GREP"; then
3692 set dummy grep ggrep; ac_prog_name=$2
3693 if test "${ac_cv_path_GREP+set}" = set; then
3694   echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696   ac_path_GREP_found=false
3697 # Loop through the user's path and test for each of PROGNAME-LIST
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3700 do
3701   IFS=$as_save_IFS
3702   test -z "$as_dir" && as_dir=.
3703   for ac_prog in grep ggrep; do
3704   for ac_exec_ext in '' $ac_executable_extensions; do
3705     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3706     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3707     # Check for GNU ac_path_GREP and select it if it is found.
3708   # Check for GNU $ac_path_GREP
3709 case `"$ac_path_GREP" --version 2>&1` in
3710 *GNU*)
3711   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3712 *)
3713   ac_count=0
3714   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3715   while :
3716   do
3717     cat "conftest.in" "conftest.in" >"conftest.tmp"
3718     mv "conftest.tmp" "conftest.in"
3719     cp "conftest.in" "conftest.nl"
3720     echo 'GREP' >> "conftest.nl"
3721     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3722     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3723     ac_count=`expr $ac_count + 1`
3724     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3725       # Best one so far, save it but keep looking for a better one
3726       ac_cv_path_GREP="$ac_path_GREP"
3727       ac_path_GREP_max=$ac_count
3728     fi
3729     # 10*(2^10) chars as input seems more than enough
3730     test $ac_count -gt 10 && break
3731   done
3732   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3733 esac
3734
3735
3736     $ac_path_GREP_found && break 3
3737   done
3738 done
3739
3740 done
3741 IFS=$as_save_IFS
3742
3743
3744 fi
3745
3746 GREP="$ac_cv_path_GREP"
3747 if test -z "$GREP"; then
3748   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3749 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3750    { (exit 1); exit 1; }; }
3751 fi
3752
3753 else
3754   ac_cv_path_GREP=$GREP
3755 fi
3756
3757
3758 fi
3759 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3760 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3761  GREP="$ac_cv_path_GREP"
3762
3763
3764 { echo "$as_me:$LINENO: checking for egrep" >&5
3765 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3766 if test "${ac_cv_path_EGREP+set}" = set; then
3767   echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3770    then ac_cv_path_EGREP="$GREP -E"
3771    else
3772      # Extract the first word of "egrep" to use in msg output
3773 if test -z "$EGREP"; then
3774 set dummy egrep; ac_prog_name=$2
3775 if test "${ac_cv_path_EGREP+set}" = set; then
3776   echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778   ac_path_EGREP_found=false
3779 # Loop through the user's path and test for each of PROGNAME-LIST
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3782 do
3783   IFS=$as_save_IFS
3784   test -z "$as_dir" && as_dir=.
3785   for ac_prog in egrep; do
3786   for ac_exec_ext in '' $ac_executable_extensions; do
3787     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3788     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3789     # Check for GNU ac_path_EGREP and select it if it is found.
3790   # Check for GNU $ac_path_EGREP
3791 case `"$ac_path_EGREP" --version 2>&1` in
3792 *GNU*)
3793   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3794 *)
3795   ac_count=0
3796   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3797   while :
3798   do
3799     cat "conftest.in" "conftest.in" >"conftest.tmp"
3800     mv "conftest.tmp" "conftest.in"
3801     cp "conftest.in" "conftest.nl"
3802     echo 'EGREP' >> "conftest.nl"
3803     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3804     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3805     ac_count=`expr $ac_count + 1`
3806     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3807       # Best one so far, save it but keep looking for a better one
3808       ac_cv_path_EGREP="$ac_path_EGREP"
3809       ac_path_EGREP_max=$ac_count
3810     fi
3811     # 10*(2^10) chars as input seems more than enough
3812     test $ac_count -gt 10 && break
3813   done
3814   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3815 esac
3816
3817
3818     $ac_path_EGREP_found && break 3
3819   done
3820 done
3821
3822 done
3823 IFS=$as_save_IFS
3824
3825
3826 fi
3827
3828 EGREP="$ac_cv_path_EGREP"
3829 if test -z "$EGREP"; then
3830   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3831 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3832    { (exit 1); exit 1; }; }
3833 fi
3834
3835 else
3836   ac_cv_path_EGREP=$EGREP
3837 fi
3838
3839
3840    fi
3841 fi
3842 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3843 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3844  EGREP="$ac_cv_path_EGREP"
3845
3846
3847 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3848 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3849 if test "${ac_cv_header_stdc+set}" = set; then
3850   echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852   cat >conftest.$ac_ext <<_ACEOF
3853 /* confdefs.h.  */
3854 _ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h.  */
3858 #include <stdlib.h>
3859 #include <stdarg.h>
3860 #include <string.h>
3861 #include <float.h>
3862
3863 int
3864 main ()
3865 {
3866
3867   ;
3868   return 0;
3869 }
3870 _ACEOF
3871 rm -f conftest.$ac_objext
3872 if { (ac_try="$ac_compile"
3873 case "(($ac_try" in
3874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875   *) ac_try_echo=$ac_try;;
3876 esac
3877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3878   (eval "$ac_compile") 2>conftest.er1
3879   ac_status=$?
3880   grep -v '^ *+' conftest.er1 >conftest.err
3881   rm -f conftest.er1
3882   cat conftest.err >&5
3883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884   (exit $ac_status); } &&
3885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3886   { (case "(($ac_try" in
3887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888   *) ac_try_echo=$ac_try;;
3889 esac
3890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3891   (eval "$ac_try") 2>&5
3892   ac_status=$?
3893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894   (exit $ac_status); }; } &&
3895          { ac_try='test -s conftest.$ac_objext'
3896   { (case "(($ac_try" in
3897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898   *) ac_try_echo=$ac_try;;
3899 esac
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901   (eval "$ac_try") 2>&5
3902   ac_status=$?
3903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904   (exit $ac_status); }; }; then
3905   ac_cv_header_stdc=yes
3906 else
3907   echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3909
3910         ac_cv_header_stdc=no
3911 fi
3912
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914
3915 if test $ac_cv_header_stdc = yes; then
3916   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3917   cat >conftest.$ac_ext <<_ACEOF
3918 /* confdefs.h.  */
3919 _ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h.  */
3923 #include <string.h>
3924
3925 _ACEOF
3926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3927   $EGREP "memchr" >/dev/null 2>&1; then
3928   :
3929 else
3930   ac_cv_header_stdc=no
3931 fi
3932 rm -f conftest*
3933
3934 fi
3935
3936 if test $ac_cv_header_stdc = yes; then
3937   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3938   cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h.  */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h.  */
3944 #include <stdlib.h>
3945
3946 _ACEOF
3947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3948   $EGREP "free" >/dev/null 2>&1; then
3949   :
3950 else
3951   ac_cv_header_stdc=no
3952 fi
3953 rm -f conftest*
3954
3955 fi
3956
3957 if test $ac_cv_header_stdc = yes; then
3958   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3959   if test "$cross_compiling" = yes; then
3960   :
3961 else
3962   cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h.  */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h.  */
3968 #include <ctype.h>
3969 #include <stdlib.h>
3970 #if ((' ' & 0x0FF) == 0x020)
3971 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3972 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3973 #else
3974 # define ISLOWER(c) \
3975                    (('a' <= (c) && (c) <= 'i') \
3976                      || ('j' <= (c) && (c) <= 'r') \
3977                      || ('s' <= (c) && (c) <= 'z'))
3978 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3979 #endif
3980
3981 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3982 int
3983 main ()
3984 {
3985   int i;
3986   for (i = 0; i < 256; i++)
3987     if (XOR (islower (i), ISLOWER (i))
3988         || toupper (i) != TOUPPER (i))
3989       return 2;
3990   return 0;
3991 }
3992 _ACEOF
3993 rm -f conftest$ac_exeext
3994 if { (ac_try="$ac_link"
3995 case "(($ac_try" in
3996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997   *) ac_try_echo=$ac_try;;
3998 esac
3999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000   (eval "$ac_link") 2>&5
4001   ac_status=$?
4002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4004   { (case "(($ac_try" in
4005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006   *) ac_try_echo=$ac_try;;
4007 esac
4008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009   (eval "$ac_try") 2>&5
4010   ac_status=$?
4011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012   (exit $ac_status); }; }; then
4013   :
4014 else
4015   echo "$as_me: program exited with status $ac_status" >&5
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4018
4019 ( exit $ac_status )
4020 ac_cv_header_stdc=no
4021 fi
4022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4023 fi
4024
4025
4026 fi
4027 fi
4028 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4029 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4030 if test $ac_cv_header_stdc = yes; then
4031
4032 cat >>confdefs.h <<\_ACEOF
4033 #define STDC_HEADERS 1
4034 _ACEOF
4035
4036 fi
4037
4038 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4049                   inttypes.h stdint.h unistd.h
4050 do
4051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4055   echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057   cat >conftest.$ac_ext <<_ACEOF
4058 /* confdefs.h.  */
4059 _ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h.  */
4063 $ac_includes_default
4064
4065 #include <$ac_header>
4066 _ACEOF
4067 rm -f conftest.$ac_objext
4068 if { (ac_try="$ac_compile"
4069 case "(($ac_try" in
4070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071   *) ac_try_echo=$ac_try;;
4072 esac
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074   (eval "$ac_compile") 2>conftest.er1
4075   ac_status=$?
4076   grep -v '^ *+' conftest.er1 >conftest.err
4077   rm -f conftest.er1
4078   cat conftest.err >&5
4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); } &&
4081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4082   { (case "(($ac_try" in
4083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084   *) ac_try_echo=$ac_try;;
4085 esac
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087   (eval "$ac_try") 2>&5
4088   ac_status=$?
4089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090   (exit $ac_status); }; } &&
4091          { ac_try='test -s conftest.$ac_objext'
4092   { (case "(($ac_try" in
4093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094   *) ac_try_echo=$ac_try;;
4095 esac
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097   (eval "$ac_try") 2>&5
4098   ac_status=$?
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); }; }; then
4101   eval "$as_ac_Header=yes"
4102 else
4103   echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4105
4106         eval "$as_ac_Header=no"
4107 fi
4108
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 fi
4111 ac_res=`eval echo '${'$as_ac_Header'}'`
4112                { echo "$as_me:$LINENO: result: $ac_res" >&5
4113 echo "${ECHO_T}$ac_res" >&6; }
4114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4115   cat >>confdefs.h <<_ACEOF
4116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4117 _ACEOF
4118
4119 fi
4120
4121 done
4122
4123
4124 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4125 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4126 if test "${ac_cv_c_bigendian+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   # See if sys/param.h defines the BYTE_ORDER macro.
4130 cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h.  */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h.  */
4136 #include <sys/types.h>
4137 #include <sys/param.h>
4138
4139 int
4140 main ()
4141 {
4142 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4143  bogus endian macros
4144 #endif
4145
4146   ;
4147   return 0;
4148 }
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (ac_try="$ac_compile"
4152 case "(($ac_try" in
4153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154   *) ac_try_echo=$ac_try;;
4155 esac
4156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157   (eval "$ac_compile") 2>conftest.er1
4158   ac_status=$?
4159   grep -v '^ *+' conftest.er1 >conftest.err
4160   rm -f conftest.er1
4161   cat conftest.err >&5
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); } &&
4164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4165   { (case "(($ac_try" in
4166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167   *) ac_try_echo=$ac_try;;
4168 esac
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170   (eval "$ac_try") 2>&5
4171   ac_status=$?
4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); }; } &&
4174          { ac_try='test -s conftest.$ac_objext'
4175   { (case "(($ac_try" in
4176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177   *) ac_try_echo=$ac_try;;
4178 esac
4179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180   (eval "$ac_try") 2>&5
4181   ac_status=$?
4182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183   (exit $ac_status); }; }; then
4184   # It does; now see whether it defined to BIG_ENDIAN or not.
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 <sys/types.h>
4192 #include <sys/param.h>
4193
4194 int
4195 main ()
4196 {
4197 #if BYTE_ORDER != BIG_ENDIAN
4198  not big endian
4199 #endif
4200
4201   ;
4202   return 0;
4203 }
4204 _ACEOF
4205 rm -f conftest.$ac_objext
4206 if { (ac_try="$ac_compile"
4207 case "(($ac_try" in
4208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209   *) ac_try_echo=$ac_try;;
4210 esac
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212   (eval "$ac_compile") 2>conftest.er1
4213   ac_status=$?
4214   grep -v '^ *+' conftest.er1 >conftest.err
4215   rm -f conftest.er1
4216   cat conftest.err >&5
4217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218   (exit $ac_status); } &&
4219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4220   { (case "(($ac_try" in
4221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222   *) ac_try_echo=$ac_try;;
4223 esac
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225   (eval "$ac_try") 2>&5
4226   ac_status=$?
4227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228   (exit $ac_status); }; } &&
4229          { ac_try='test -s conftest.$ac_objext'
4230   { (case "(($ac_try" in
4231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232   *) ac_try_echo=$ac_try;;
4233 esac
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235   (eval "$ac_try") 2>&5
4236   ac_status=$?
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); }; }; then
4239   ac_cv_c_bigendian=yes
4240 else
4241   echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4243
4244         ac_cv_c_bigendian=no
4245 fi
4246
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248 else
4249   echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4251
4252         # It does not; compile a test program.
4253 if test "$cross_compiling" = yes; then
4254   # try to guess the endianness by grepping values into an object file
4255   ac_cv_c_bigendian=unknown
4256   cat >conftest.$ac_ext <<_ACEOF
4257 /* confdefs.h.  */
4258 _ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h.  */
4262 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4263 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4264 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4265 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4266 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4267 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4268 int
4269 main ()
4270 {
4271  _ascii (); _ebcdic ();
4272   ;
4273   return 0;
4274 }
4275 _ACEOF
4276 rm -f conftest.$ac_objext
4277 if { (ac_try="$ac_compile"
4278 case "(($ac_try" in
4279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280   *) ac_try_echo=$ac_try;;
4281 esac
4282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283   (eval "$ac_compile") 2>conftest.er1
4284   ac_status=$?
4285   grep -v '^ *+' conftest.er1 >conftest.err
4286   rm -f conftest.er1
4287   cat conftest.err >&5
4288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); } &&
4290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4291   { (case "(($ac_try" in
4292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293   *) ac_try_echo=$ac_try;;
4294 esac
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296   (eval "$ac_try") 2>&5
4297   ac_status=$?
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); }; } &&
4300          { ac_try='test -s conftest.$ac_objext'
4301   { (case "(($ac_try" in
4302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303   *) ac_try_echo=$ac_try;;
4304 esac
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306   (eval "$ac_try") 2>&5
4307   ac_status=$?
4308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309   (exit $ac_status); }; }; then
4310   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4311   ac_cv_c_bigendian=yes
4312 fi
4313 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4314   if test "$ac_cv_c_bigendian" = unknown; then
4315     ac_cv_c_bigendian=no
4316   else
4317     # finding both strings is unlikely to happen, but who knows?
4318     ac_cv_c_bigendian=unknown
4319   fi
4320 fi
4321 else
4322   echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4324
4325
4326 fi
4327
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329 else
4330   cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h.  */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h.  */
4336 $ac_includes_default
4337 int
4338 main ()
4339 {
4340
4341   /* Are we little or big endian?  From Harbison&Steele.  */
4342   union
4343   {
4344     long int l;
4345     char c[sizeof (long int)];
4346   } u;
4347   u.l = 1;
4348   return u.c[sizeof (long int) - 1] == 1;
4349
4350   ;
4351   return 0;
4352 }
4353 _ACEOF
4354 rm -f conftest$ac_exeext
4355 if { (ac_try="$ac_link"
4356 case "(($ac_try" in
4357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358   *) ac_try_echo=$ac_try;;
4359 esac
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361   (eval "$ac_link") 2>&5
4362   ac_status=$?
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4365   { (case "(($ac_try" in
4366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367   *) ac_try_echo=$ac_try;;
4368 esac
4369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370   (eval "$ac_try") 2>&5
4371   ac_status=$?
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); }; }; then
4374   ac_cv_c_bigendian=no
4375 else
4376   echo "$as_me: program exited with status $ac_status" >&5
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4379
4380 ( exit $ac_status )
4381 ac_cv_c_bigendian=yes
4382 fi
4383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4384 fi
4385
4386
4387 fi
4388
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390 fi
4391 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4392 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4393 case $ac_cv_c_bigendian in
4394   yes)
4395     ENDIAN=big
4396  ;;
4397   no)
4398     ENDIAN=little
4399  ;;
4400   *)
4401     { { echo "$as_me:$LINENO: error: unknown endianness
4402 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4403 echo "$as_me: error: unknown endianness
4404 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4405    { (exit 1); exit 1; }; } ;;
4406 esac
4407
4408
4409 if test "$cross_compiling" = yes; then
4410   LLVM_CROSS_COMPILING=1
4411
4412
4413 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4414 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4415 if test "${ac_cv_build_exeext+set}" = set; then
4416   echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4419   ac_cv_build_exeext=.exe
4420 else
4421   ac_build_prefix=${build_alias}-
4422
4423   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4424 set dummy ${ac_build_prefix}gcc; ac_word=$2
4425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4428   echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430   if test -n "$BUILD_CC"; then
4431   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436   IFS=$as_save_IFS
4437   test -z "$as_dir" && as_dir=.
4438   for ac_exec_ext in '' $ac_executable_extensions; do
4439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4440     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442     break 2
4443   fi
4444 done
4445 done
4446 IFS=$as_save_IFS
4447
4448 fi
4449 fi
4450 BUILD_CC=$ac_cv_prog_BUILD_CC
4451 if test -n "$BUILD_CC"; then
4452   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4453 echo "${ECHO_T}$BUILD_CC" >&6; }
4454 else
4455   { echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6; }
4457 fi
4458
4459
4460   if test -z "$BUILD_CC"; then
4461      # Extract the first word of "gcc", so it can be a program name with args.
4462 set dummy gcc; ac_word=$2
4463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4466   echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468   if test -n "$BUILD_CC"; then
4469   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4470 else
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4473 do
4474   IFS=$as_save_IFS
4475   test -z "$as_dir" && as_dir=.
4476   for ac_exec_ext in '' $ac_executable_extensions; do
4477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4478     ac_cv_prog_BUILD_CC="gcc"
4479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480     break 2
4481   fi
4482 done
4483 done
4484 IFS=$as_save_IFS
4485
4486 fi
4487 fi
4488 BUILD_CC=$ac_cv_prog_BUILD_CC
4489 if test -n "$BUILD_CC"; then
4490   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4491 echo "${ECHO_T}$BUILD_CC" >&6; }
4492 else
4493   { echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6; }
4495 fi
4496
4497
4498      if test -z "$BUILD_CC"; then
4499        # Extract the first word of "cc", so it can be a program name with args.
4500 set dummy cc; ac_word=$2
4501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4503 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4504   echo $ECHO_N "(cached) $ECHO_C" >&6
4505 else
4506   if test -n "$BUILD_CC"; then
4507   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4508 else
4509   ac_prog_rejected=no
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513   IFS=$as_save_IFS
4514   test -z "$as_dir" && as_dir=.
4515   for ac_exec_ext in '' $ac_executable_extensions; do
4516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4517     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4518        ac_prog_rejected=yes
4519        continue
4520      fi
4521     ac_cv_prog_BUILD_CC="cc"
4522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523     break 2
4524   fi
4525 done
4526 done
4527 IFS=$as_save_IFS
4528
4529 if test $ac_prog_rejected = yes; then
4530   # We found a bogon in the path, so make sure we never use it.
4531   set dummy $ac_cv_prog_BUILD_CC
4532   shift
4533   if test $# != 0; then
4534     # We chose a different compiler from the bogus one.
4535     # However, it has the same basename, so the bogon will be chosen
4536     # first if we set BUILD_CC to just the basename; use the full file name.
4537     shift
4538     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4539   fi
4540 fi
4541 fi
4542 fi
4543 BUILD_CC=$ac_cv_prog_BUILD_CC
4544 if test -n "$BUILD_CC"; then
4545   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4546 echo "${ECHO_T}$BUILD_CC" >&6; }
4547 else
4548   { echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6; }
4550 fi
4551
4552
4553      fi
4554   fi
4555   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4556 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4557    { (exit 1); exit 1; }; }
4558   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4559   rm -f conftest*
4560   echo 'int main () { return 0; }' > conftest.$ac_ext
4561   ac_cv_build_exeext=
4562   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4563   (eval $ac_build_link) 2>&5
4564   ac_status=$?
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); }; then
4567     for file in conftest.*; do
4568       case $file in
4569       *.c | *.o | *.obj | *.dSYM) ;;
4570       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4571       esac
4572     done
4573   else
4574     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4575 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4576    { (exit 1); exit 1; }; }
4577   fi
4578   rm -f conftest*
4579   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4580 fi
4581 fi
4582
4583 BUILD_EXEEXT=""
4584 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4585 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4586 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4587 ac_build_exeext=$BUILD_EXEEXT
4588
4589   ac_build_prefix=${build_alias}-
4590   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4591 set dummy ${ac_build_prefix}g++; ac_word=$2
4592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4595   echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597   if test -n "$BUILD_CXX"; then
4598   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603   IFS=$as_save_IFS
4604   test -z "$as_dir" && as_dir=.
4605   for ac_exec_ext in '' $ac_executable_extensions; do
4606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4607     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609     break 2
4610   fi
4611 done
4612 done
4613 IFS=$as_save_IFS
4614
4615 fi
4616 fi
4617 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4618 if test -n "$BUILD_CXX"; then
4619   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4620 echo "${ECHO_T}$BUILD_CXX" >&6; }
4621 else
4622   { echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6; }
4624 fi
4625
4626
4627   if test -z "$BUILD_CXX"; then
4628      # Extract the first word of "g++", so it can be a program name with args.
4629 set dummy g++; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4633   echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635   if test -n "$BUILD_CXX"; then
4636   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4640 do
4641   IFS=$as_save_IFS
4642   test -z "$as_dir" && as_dir=.
4643   for ac_exec_ext in '' $ac_executable_extensions; do
4644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4645     ac_cv_prog_BUILD_CXX="g++"
4646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647     break 2
4648   fi
4649 done
4650 done
4651 IFS=$as_save_IFS
4652
4653 fi
4654 fi
4655 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4656 if test -n "$BUILD_CXX"; then
4657   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4658 echo "${ECHO_T}$BUILD_CXX" >&6; }
4659 else
4660   { echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6; }
4662 fi
4663
4664
4665      if test -z "$BUILD_CXX"; then
4666        # Extract the first word of "c++", so it can be a program name with args.
4667 set dummy c++; ac_word=$2
4668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4670 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4671   echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673   if test -n "$BUILD_CXX"; then
4674   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4675 else
4676   ac_prog_rejected=no
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4679 do
4680   IFS=$as_save_IFS
4681   test -z "$as_dir" && as_dir=.
4682   for ac_exec_ext in '' $ac_executable_extensions; do
4683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4684     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4685        ac_prog_rejected=yes
4686        continue
4687      fi
4688     ac_cv_prog_BUILD_CXX="c++"
4689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4690     break 2
4691   fi
4692 done
4693 done
4694 IFS=$as_save_IFS
4695
4696 if test $ac_prog_rejected = yes; then
4697   # We found a bogon in the path, so make sure we never use it.
4698   set dummy $ac_cv_prog_BUILD_CXX
4699   shift
4700   if test $# != 0; then
4701     # We chose a different compiler from the bogus one.
4702     # However, it has the same basename, so the bogon will be chosen
4703     # first if we set BUILD_CXX to just the basename; use the full file name.
4704     shift
4705     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4706   fi
4707 fi
4708 fi
4709 fi
4710 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4711 if test -n "$BUILD_CXX"; then
4712   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4713 echo "${ECHO_T}$BUILD_CXX" >&6; }
4714 else
4715   { echo "$as_me:$LINENO: result: no" >&5
4716 echo "${ECHO_T}no" >&6; }
4717 fi
4718
4719
4720      fi
4721   fi
4722 else
4723   LLVM_CROSS_COMPILING=0
4724
4725 fi
4726
4727 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4728   cvsbuild="yes"
4729   optimize="no"
4730   CVSBUILD=CVSBUILD=1
4731
4732 else
4733   cvsbuild="no"
4734   optimize="yes"
4735 fi
4736
4737
4738 # Check whether --enable-optimized was given.
4739 if test "${enable_optimized+set}" = set; then
4740   enableval=$enable_optimized;
4741 else
4742   enableval=$optimize
4743 fi
4744
4745 if test ${enableval} = "no" ; then
4746   ENABLE_OPTIMIZED=
4747
4748 else
4749   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4750
4751 fi
4752
4753 # Check whether --enable-profiling was given.
4754 if test "${enable_profiling+set}" = set; then
4755   enableval=$enable_profiling;
4756 else
4757   enableval="no"
4758 fi
4759
4760 if test ${enableval} = "no" ; then
4761   ENABLE_PROFILING=
4762
4763 else
4764   ENABLE_PROFILING=ENABLE_PROFILING=1
4765
4766 fi
4767
4768 # Check whether --enable-assertions was given.
4769 if test "${enable_assertions+set}" = set; then
4770   enableval=$enable_assertions;
4771 else
4772   enableval="yes"
4773 fi
4774
4775 if test ${enableval} = "yes" ; then
4776   DISABLE_ASSERTIONS=
4777
4778 else
4779   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4780
4781 fi
4782
4783 # Check whether --enable-expensive-checks was given.
4784 if test "${enable_expensive_checks+set}" = set; then
4785   enableval=$enable_expensive_checks;
4786 else
4787   enableval="no"
4788 fi
4789
4790 if test ${enableval} = "yes" ; then
4791   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4792
4793   EXPENSIVE_CHECKS=yes
4794
4795 else
4796   ENABLE_EXPENSIVE_CHECKS=
4797
4798   EXPENSIVE_CHECKS=no
4799
4800 fi
4801
4802 # Check whether --enable-debug-runtime was given.
4803 if test "${enable_debug_runtime+set}" = set; then
4804   enableval=$enable_debug_runtime;
4805 else
4806   enableval=no
4807 fi
4808
4809 if test ${enableval} = "no" ; then
4810   DEBUG_RUNTIME=
4811
4812 else
4813   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4814
4815 fi
4816
4817 # Check whether --enable-debug-symbols was given.
4818 if test "${enable_debug_symbols+set}" = set; then
4819   enableval=$enable_debug_symbols;
4820 else
4821   enableval=no
4822 fi
4823
4824 if test ${enableval} = "no" ; then
4825   DEBUG_SYMBOLS=
4826
4827 else
4828   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4829
4830 fi
4831
4832 # Check whether --enable-jit was given.
4833 if test "${enable_jit+set}" = set; then
4834   enableval=$enable_jit;
4835 else
4836   enableval=default
4837 fi
4838
4839 if test ${enableval} = "no"
4840 then
4841   JIT=
4842
4843 else
4844   case "$llvm_cv_target_arch" in
4845     x86)         TARGET_HAS_JIT=1
4846  ;;
4847     Sparc)       TARGET_HAS_JIT=0
4848  ;;
4849     PowerPC)     TARGET_HAS_JIT=1
4850  ;;
4851     x86_64)      TARGET_HAS_JIT=1
4852  ;;
4853     Alpha)       TARGET_HAS_JIT=1
4854  ;;
4855     ARM)         TARGET_HAS_JIT=1
4856  ;;
4857     Mips)        TARGET_HAS_JIT=0
4858  ;;
4859     XCore)       TARGET_HAS_JIT=0
4860  ;;
4861     MSP430)      TARGET_HAS_JIT=0
4862  ;;
4863     SystemZ)     TARGET_HAS_JIT=0
4864  ;;
4865     Blackfin)    TARGET_HAS_JIT=0
4866  ;;
4867     MBlaze)      TARGET_HAS_JIT=0
4868  ;;
4869     PTX)         TARGET_HAS_JIT=0
4870  ;;
4871     *)           TARGET_HAS_JIT=0
4872  ;;
4873   esac
4874 fi
4875
4876 # Check whether --enable-docs was given.
4877 if test "${enable_docs+set}" = set; then
4878   enableval=$enable_docs;
4879 else
4880   enableval=default
4881 fi
4882
4883 case "$enableval" in
4884   yes) ENABLE_DOCS=1
4885  ;;
4886   no)  ENABLE_DOCS=0
4887  ;;
4888   default) ENABLE_DOCS=1
4889  ;;
4890   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4891 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4892    { (exit 1); exit 1; }; } ;;
4893 esac
4894
4895 # Check whether --enable-doxygen was given.
4896 if test "${enable_doxygen+set}" = set; then
4897   enableval=$enable_doxygen;
4898 else
4899   enableval=default
4900 fi
4901
4902 case "$enableval" in
4903   yes) ENABLE_DOXYGEN=1
4904  ;;
4905   no)  ENABLE_DOXYGEN=0
4906  ;;
4907   default) ENABLE_DOXYGEN=0
4908  ;;
4909   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4910 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4911    { (exit 1); exit 1; }; } ;;
4912 esac
4913
4914 # Check whether --enable-threads was given.
4915 if test "${enable_threads+set}" = set; then
4916   enableval=$enable_threads;
4917 else
4918   enableval=default
4919 fi
4920
4921 case "$enableval" in
4922   yes) ENABLE_THREADS=1
4923  ;;
4924   no)  ENABLE_THREADS=0
4925  ;;
4926   default) ENABLE_THREADS=1
4927  ;;
4928   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4929 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4930    { (exit 1); exit 1; }; } ;;
4931 esac
4932
4933 cat >>confdefs.h <<_ACEOF
4934 #define ENABLE_THREADS $ENABLE_THREADS
4935 _ACEOF
4936
4937
4938 # Check whether --enable-pic was given.
4939 if test "${enable_pic+set}" = set; then
4940   enableval=$enable_pic;
4941 else
4942   enableval=default
4943 fi
4944
4945 case "$enableval" in
4946   yes) ENABLE_PIC=1
4947  ;;
4948   no)  ENABLE_PIC=0
4949  ;;
4950   default) ENABLE_PIC=1
4951  ;;
4952   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4953 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4954    { (exit 1); exit 1; }; } ;;
4955 esac
4956
4957 cat >>confdefs.h <<_ACEOF
4958 #define ENABLE_PIC $ENABLE_PIC
4959 _ACEOF
4960
4961
4962 # Check whether --enable-shared was given.
4963 if test "${enable_shared+set}" = set; then
4964   enableval=$enable_shared;
4965 else
4966   enableval=default
4967 fi
4968
4969 case "$enableval" in
4970   yes) ENABLE_SHARED=1
4971  ;;
4972   no)  ENABLE_SHARED=0
4973  ;;
4974   default) ENABLE_SHARED=0
4975  ;;
4976   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4977 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4978    { (exit 1); exit 1; }; } ;;
4979 esac
4980
4981 # Check whether --enable-timestamps was given.
4982 if test "${enable_timestamps+set}" = set; then
4983   enableval=$enable_timestamps;
4984 else
4985   enableval=default
4986 fi
4987
4988 case "$enableval" in
4989   yes) ENABLE_TIMESTAMPS=1
4990  ;;
4991   no)  ENABLE_TIMESTAMPS=0
4992  ;;
4993   default) ENABLE_TIMESTAMPS=1
4994  ;;
4995   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4996 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4997    { (exit 1); exit 1; }; } ;;
4998 esac
4999
5000 cat >>confdefs.h <<_ACEOF
5001 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5002 _ACEOF
5003
5004
5005 TARGETS_TO_BUILD=""
5006 # Check whether --enable-targets was given.
5007 if test "${enable_targets+set}" = set; then
5008   enableval=$enable_targets;
5009 else
5010   enableval=all
5011 fi
5012
5013 if test "$enableval" = host-only ; then
5014   enableval=host
5015 fi
5016 case "$enableval" in
5017   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5018   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5019       case "$a_target" in
5020         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5021         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5022         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5023         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5024         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5025         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5026         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5027         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5028         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5029         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5030         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5031         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5032         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5033         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5034         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5035         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5036         host) case "$llvm_cv_target_arch" in
5037             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5038             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5039             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5040             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5041             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5042             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5043             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5044             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5045             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5046             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5047             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5048             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5049             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5050             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5051             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5052 echo "$as_me: error: Can not set target to build" >&2;}
5053    { (exit 1); exit 1; }; } ;;
5054           esac ;;
5055         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5056 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5057    { (exit 1); exit 1; }; } ;;
5058       esac
5059   done
5060   ;;
5061 esac
5062 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5063
5064
5065 # Determine whether we are building LLVM support for the native architecture.
5066 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5067 for a_target in $TARGETS_TO_BUILD; do
5068   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5069
5070 cat >>confdefs.h <<_ACEOF
5071 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5072 _ACEOF
5073
5074     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5075     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5076     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5077
5078 cat >>confdefs.h <<_ACEOF
5079 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5080 _ACEOF
5081
5082
5083 cat >>confdefs.h <<_ACEOF
5084 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5085 _ACEOF
5086
5087
5088 cat >>confdefs.h <<_ACEOF
5089 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5090 _ACEOF
5091
5092   fi
5093 done
5094
5095 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5096 # target feature def files.
5097 LLVM_ENUM_TARGETS=""
5098 LLVM_ENUM_ASM_PRINTERS=""
5099 LLVM_ENUM_ASM_PARSERS=""
5100 LLVM_ENUM_DISASSEMBLERS=""
5101 for target_to_build in $TARGETS_TO_BUILD; do
5102   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5103   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5104     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5105   fi
5106   # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5107   if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5108     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5109   fi
5110   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5111     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5112   fi
5113   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5114     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5115   fi
5116 done
5117
5118
5119
5120
5121
5122 # Check whether --enable-cbe-printf-a was given.
5123 if test "${enable_cbe_printf_a+set}" = set; then
5124   enableval=$enable_cbe_printf_a;
5125 else
5126   enableval=default
5127 fi
5128
5129 case "$enableval" in
5130   yes) ENABLE_CBE_PRINTF_A=1
5131  ;;
5132   no)  ENABLE_CBE_PRINTF_A=0
5133  ;;
5134   default)  ENABLE_CBE_PRINTF_A=1
5135  ;;
5136   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5137 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5138    { (exit 1); exit 1; }; } ;;
5139 esac
5140
5141 cat >>confdefs.h <<_ACEOF
5142 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5143 _ACEOF
5144
5145
5146
5147 # Check whether --with-llvmgccdir was given.
5148 if test "${with_llvmgccdir+set}" = set; then
5149   withval=$with_llvmgccdir;
5150 else
5151   withval=default
5152 fi
5153
5154 case "$withval" in
5155   default) WITH_LLVMGCCDIR=default ;;
5156   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5157   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5158 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5159    { (exit 1); exit 1; }; } ;;
5160 esac
5161
5162
5163 # Check whether --with-llvmgcc was given.
5164 if test "${with_llvmgcc+set}" = set; then
5165   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5166       WITH_LLVMGCCDIR=""
5167 fi
5168
5169
5170
5171 # Check whether --with-llvmgxx was given.
5172 if test "${with_llvmgxx+set}" = set; then
5173   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5174     WITH_LLVMGCCDIR=""
5175 fi
5176
5177
5178 if test -n "$LLVMGCC"; then
5179    LLVMGCCCOMMAND="$LLVMGCC"
5180 fi
5181
5182 if test -n "$LLVMGXX"; then
5183    LLVMGXXCOMMAND="$LLVMGXX"
5184 fi
5185
5186 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5187    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5188 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5189    { (exit 1); exit 1; }; };
5190 fi
5191
5192 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5193    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5194 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5195    { (exit 1); exit 1; }; };
5196 fi
5197
5198
5199 # Check whether --with-clang was given.
5200 if test "${with_clang+set}" = set; then
5201   withval=$with_clang;
5202 else
5203   with_clang=default
5204 fi
5205
5206
5207
5208 # Check whether --with-built-clang was given.
5209 if test "${with_built_clang+set}" = set; then
5210   withval=$with_built_clang;
5211 else
5212   with_built_clang=check
5213 fi
5214
5215
5216 { echo "$as_me:$LINENO: checking clang compiler" >&5
5217 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5218 WITH_CLANGPATH=""
5219 WITH_BUILT_CLANG=0
5220 if test "$with_clang" != "default"; then
5221    WITH_CLANGPATH="$with_clang"
5222    if ! test -x "$WITH_CLANGPATH"; then
5223      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5224 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5225    { (exit 1); exit 1; }; }
5226    fi
5227 elif test "$with_built_clang" = "yes"; then
5228    WITH_BUILT_CLANG=1
5229 elif test "$with_built_clang" = "no"; then
5230    WITH_BUILT_CLANG=0
5231 else
5232    if test "$with_built_clang" != "check"; then
5233       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5234 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5235    { (exit 1); exit 1; }; }
5236    fi
5237
5238    if test -f ${srcdir}/tools/clang/README.txt; then
5239      WITH_BUILT_CLANG=1
5240    fi
5241 fi
5242
5243 if ! test -z "$WITH_CLANGPATH"; then
5244    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5245 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5246    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5247 elif test "$WITH_BUILT_CLANG" = "1"; then
5248    { echo "$as_me:$LINENO: result: built" >&5
5249 echo "${ECHO_T}built" >&6; }
5250 else
5251    { echo "$as_me:$LINENO: result: none" >&5
5252 echo "${ECHO_T}none" >&6; }
5253 fi
5254 CLANGPATH=$WITH_CLANGPATH
5255
5256 CLANGXXPATH=$WITH_CLANGXXPATH
5257
5258 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5259
5260
5261
5262 # Check whether --with-optimize-option was given.
5263 if test "${with_optimize_option+set}" = set; then
5264   withval=$with_optimize_option;
5265 else
5266   withval=default
5267 fi
5268
5269 { echo "$as_me:$LINENO: checking optimization flags" >&5
5270 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5271 case "$withval" in
5272   default)
5273     case "$llvm_cv_os_type" in
5274     FreeBSD) optimize_option=-O2 ;;
5275     MingW) optimize_option=-O2 ;;
5276     *)     optimize_option=-O3 ;;
5277     esac ;;
5278   *) optimize_option="$withval" ;;
5279 esac
5280 OPTIMIZE_OPTION=$optimize_option
5281
5282 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5283 echo "${ECHO_T}$optimize_option" >&6; }
5284
5285
5286 # Check whether --with-extra-options was given.
5287 if test "${with_extra_options+set}" = set; then
5288   withval=$with_extra_options;
5289 else
5290   withval=default
5291 fi
5292
5293 case "$withval" in
5294   default) EXTRA_OPTIONS= ;;
5295   *) EXTRA_OPTIONS=$withval ;;
5296 esac
5297 EXTRA_OPTIONS=$EXTRA_OPTIONS
5298
5299
5300 # Check whether --enable-bindings was given.
5301 if test "${enable_bindings+set}" = set; then
5302   enableval=$enable_bindings;
5303 else
5304   enableval=default
5305 fi
5306
5307 BINDINGS_TO_BUILD=""
5308 case "$enableval" in
5309   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5310   all ) BINDINGS_TO_BUILD="ocaml" ;;
5311   none | no) BINDINGS_TO_BUILD="" ;;
5312   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5313       case "$a_binding" in
5314         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5315         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5316 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5317    { (exit 1); exit 1; }; } ;;
5318       esac
5319   done
5320   ;;
5321 esac
5322
5323
5324 # Check whether --with-ocaml-libdir was given.
5325 if test "${with_ocaml_libdir+set}" = set; then
5326   withval=$with_ocaml_libdir;
5327 else
5328   withval=auto
5329 fi
5330
5331 case "$withval" in
5332   auto) with_ocaml_libdir="$withval" ;;
5333   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5334   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5335 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5336    { (exit 1); exit 1; }; } ;;
5337 esac
5338
5339
5340 # Check whether --with-clang-resource-dir was given.
5341 if test "${with_clang_resource_dir+set}" = set; then
5342   withval=$with_clang_resource_dir;
5343 else
5344   withval=""
5345 fi
5346
5347
5348 cat >>confdefs.h <<_ACEOF
5349 #define CLANG_RESOURCE_DIR "$withval"
5350 _ACEOF
5351
5352
5353
5354 # Check whether --with-c-include-dirs was given.
5355 if test "${with_c_include_dirs+set}" = set; then
5356   withval=$with_c_include_dirs;
5357 else
5358   withval=""
5359 fi
5360
5361
5362 cat >>confdefs.h <<_ACEOF
5363 #define C_INCLUDE_DIRS "$withval"
5364 _ACEOF
5365
5366
5367
5368 # Check whether --with-cxx-include-root was given.
5369 if test "${with_cxx_include_root+set}" = set; then
5370   withval=$with_cxx_include_root;
5371 else
5372   withval=""
5373 fi
5374
5375
5376 cat >>confdefs.h <<_ACEOF
5377 #define CXX_INCLUDE_ROOT "$withval"
5378 _ACEOF
5379
5380
5381
5382 # Check whether --with-cxx-include-arch was given.
5383 if test "${with_cxx_include_arch+set}" = set; then
5384   withval=$with_cxx_include_arch;
5385 else
5386   withval=""
5387 fi
5388
5389
5390 cat >>confdefs.h <<_ACEOF
5391 #define CXX_INCLUDE_ARCH "$withval"
5392 _ACEOF
5393
5394
5395
5396 # Check whether --with-cxx-include-32bit-dir was given.
5397 if test "${with_cxx_include_32bit_dir+set}" = set; then
5398   withval=$with_cxx_include_32bit_dir;
5399 else
5400   withval=""
5401 fi
5402
5403
5404 cat >>confdefs.h <<_ACEOF
5405 #define CXX_INCLUDE_32BIT_DIR "$withval"
5406 _ACEOF
5407
5408
5409
5410 # Check whether --with-cxx-include-64bit-dir was given.
5411 if test "${with_cxx_include_64bit_dir+set}" = set; then
5412   withval=$with_cxx_include_64bit_dir;
5413 else
5414   withval=""
5415 fi
5416
5417
5418 cat >>confdefs.h <<_ACEOF
5419 #define CXX_INCLUDE_64BIT_DIR "$withval"
5420 _ACEOF
5421
5422
5423
5424 # Check whether --with-binutils-include was given.
5425 if test "${with_binutils_include+set}" = set; then
5426   withval=$with_binutils_include;
5427 else
5428   withval=default
5429 fi
5430
5431 case "$withval" in
5432   default) WITH_BINUTILS_INCDIR=default ;;
5433   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5434   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5435 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5436    { (exit 1); exit 1; }; } ;;
5437 esac
5438 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5439   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5440
5441   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5442      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5443      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5444 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5445    { (exit 1); exit 1; }; };
5446   fi
5447 fi
5448
5449 # Check whether --enable-libffi was given.
5450 if test "${enable_libffi+set}" = set; then
5451   enableval=$enable_libffi; case "$enableval" in
5452     yes) llvm_cv_enable_libffi="yes" ;;
5453     no)  llvm_cv_enable_libffi="no"  ;;
5454     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5455 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5456    { (exit 1); exit 1; }; } ;;
5457   esac
5458 else
5459   llvm_cv_enable_libffi=no
5460 fi
5461
5462
5463
5464 ac_ext=c
5465 ac_cpp='$CPP $CPPFLAGS'
5466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5469 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5470 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5471 # On Suns, sometimes $CPP names a directory.
5472 if test -n "$CPP" && test -d "$CPP"; then
5473   CPP=
5474 fi
5475 if test -z "$CPP"; then
5476   if test "${ac_cv_prog_CPP+set}" = set; then
5477   echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479       # Double quotes because CPP needs to be expanded
5480     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5481     do
5482       ac_preproc_ok=false
5483 for ac_c_preproc_warn_flag in '' yes
5484 do
5485   # Use a header file that comes with gcc, so configuring glibc
5486   # with a fresh cross-compiler works.
5487   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5488   # <limits.h> exists even on freestanding compilers.
5489   # On the NeXT, cc -E runs the code through the compiler's parser,
5490   # not just through cpp. "Syntax error" is here to catch this case.
5491   cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h.  */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h.  */
5497 #ifdef __STDC__
5498 # include <limits.h>
5499 #else
5500 # include <assert.h>
5501 #endif
5502                      Syntax error
5503 _ACEOF
5504 if { (ac_try="$ac_cpp conftest.$ac_ext"
5505 case "(($ac_try" in
5506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507   *) ac_try_echo=$ac_try;;
5508 esac
5509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5511   ac_status=$?
5512   grep -v '^ *+' conftest.er1 >conftest.err
5513   rm -f conftest.er1
5514   cat conftest.err >&5
5515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516   (exit $ac_status); } >/dev/null; then
5517   if test -s conftest.err; then
5518     ac_cpp_err=$ac_c_preproc_warn_flag
5519     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5520   else
5521     ac_cpp_err=
5522   fi
5523 else
5524   ac_cpp_err=yes
5525 fi
5526 if test -z "$ac_cpp_err"; then
5527   :
5528 else
5529   echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5531
5532   # Broken: fails on valid input.
5533 continue
5534 fi
5535
5536 rm -f conftest.err conftest.$ac_ext
5537
5538   # OK, works on sane cases.  Now check whether nonexistent headers
5539   # can be detected and how.
5540   cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h.  */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h.  */
5546 #include <ac_nonexistent.h>
5547 _ACEOF
5548 if { (ac_try="$ac_cpp conftest.$ac_ext"
5549 case "(($ac_try" in
5550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551   *) ac_try_echo=$ac_try;;
5552 esac
5553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5555   ac_status=$?
5556   grep -v '^ *+' conftest.er1 >conftest.err
5557   rm -f conftest.er1
5558   cat conftest.err >&5
5559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560   (exit $ac_status); } >/dev/null; then
5561   if test -s conftest.err; then
5562     ac_cpp_err=$ac_c_preproc_warn_flag
5563     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5564   else
5565     ac_cpp_err=
5566   fi
5567 else
5568   ac_cpp_err=yes
5569 fi
5570 if test -z "$ac_cpp_err"; then
5571   # Broken: success on invalid input.
5572 continue
5573 else
5574   echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5576
5577   # Passes both tests.
5578 ac_preproc_ok=:
5579 break
5580 fi
5581
5582 rm -f conftest.err conftest.$ac_ext
5583
5584 done
5585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5586 rm -f conftest.err conftest.$ac_ext
5587 if $ac_preproc_ok; then
5588   break
5589 fi
5590
5591     done
5592     ac_cv_prog_CPP=$CPP
5593
5594 fi
5595   CPP=$ac_cv_prog_CPP
5596 else
5597   ac_cv_prog_CPP=$CPP
5598 fi
5599 { echo "$as_me:$LINENO: result: $CPP" >&5
5600 echo "${ECHO_T}$CPP" >&6; }
5601 ac_preproc_ok=false
5602 for ac_c_preproc_warn_flag in '' yes
5603 do
5604   # Use a header file that comes with gcc, so configuring glibc
5605   # with a fresh cross-compiler works.
5606   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5607   # <limits.h> exists even on freestanding compilers.
5608   # On the NeXT, cc -E runs the code through the compiler's parser,
5609   # not just through cpp. "Syntax error" is here to catch this case.
5610   cat >conftest.$ac_ext <<_ACEOF
5611 /* confdefs.h.  */
5612 _ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h.  */
5616 #ifdef __STDC__
5617 # include <limits.h>
5618 #else
5619 # include <assert.h>
5620 #endif
5621                      Syntax error
5622 _ACEOF
5623 if { (ac_try="$ac_cpp conftest.$ac_ext"
5624 case "(($ac_try" in
5625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626   *) ac_try_echo=$ac_try;;
5627 esac
5628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5630   ac_status=$?
5631   grep -v '^ *+' conftest.er1 >conftest.err
5632   rm -f conftest.er1
5633   cat conftest.err >&5
5634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635   (exit $ac_status); } >/dev/null; then
5636   if test -s conftest.err; then
5637     ac_cpp_err=$ac_c_preproc_warn_flag
5638     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5639   else
5640     ac_cpp_err=
5641   fi
5642 else
5643   ac_cpp_err=yes
5644 fi
5645 if test -z "$ac_cpp_err"; then
5646   :
5647 else
5648   echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5650
5651   # Broken: fails on valid input.
5652 continue
5653 fi
5654
5655 rm -f conftest.err conftest.$ac_ext
5656
5657   # OK, works on sane cases.  Now check whether nonexistent headers
5658   # can be detected and how.
5659   cat >conftest.$ac_ext <<_ACEOF
5660 /* confdefs.h.  */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h.  */
5665 #include <ac_nonexistent.h>
5666 _ACEOF
5667 if { (ac_try="$ac_cpp conftest.$ac_ext"
5668 case "(($ac_try" in
5669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670   *) ac_try_echo=$ac_try;;
5671 esac
5672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5673   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5674   ac_status=$?
5675   grep -v '^ *+' conftest.er1 >conftest.err
5676   rm -f conftest.er1
5677   cat conftest.err >&5
5678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679   (exit $ac_status); } >/dev/null; then
5680   if test -s conftest.err; then
5681     ac_cpp_err=$ac_c_preproc_warn_flag
5682     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5683   else
5684     ac_cpp_err=
5685   fi
5686 else
5687   ac_cpp_err=yes
5688 fi
5689 if test -z "$ac_cpp_err"; then
5690   # Broken: success on invalid input.
5691 continue
5692 else
5693   echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5695
5696   # Passes both tests.
5697 ac_preproc_ok=:
5698 break
5699 fi
5700
5701 rm -f conftest.err conftest.$ac_ext
5702
5703 done
5704 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5705 rm -f conftest.err conftest.$ac_ext
5706 if $ac_preproc_ok; then
5707   :
5708 else
5709   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5710 See \`config.log' for more details." >&5
5711 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5712 See \`config.log' for more details." >&2;}
5713    { (exit 1); exit 1; }; }
5714 fi
5715
5716 ac_ext=c
5717 ac_cpp='$CPP $CPPFLAGS'
5718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5721
5722 ac_ext=c
5723 ac_cpp='$CPP $CPPFLAGS'
5724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5727 if test -n "$ac_tool_prefix"; then
5728   for ac_prog in gcc
5729   do
5730     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5734 if test "${ac_cv_prog_CC+set}" = set; then
5735   echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737   if test -n "$CC"; then
5738   ac_cv_prog_CC="$CC" # Let the user override the test.
5739 else
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5742 do
5743   IFS=$as_save_IFS
5744   test -z "$as_dir" && as_dir=.
5745   for ac_exec_ext in '' $ac_executable_extensions; do
5746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5747     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5749     break 2
5750   fi
5751 done
5752 done
5753 IFS=$as_save_IFS
5754
5755 fi
5756 fi
5757 CC=$ac_cv_prog_CC
5758 if test -n "$CC"; then
5759   { echo "$as_me:$LINENO: result: $CC" >&5
5760 echo "${ECHO_T}$CC" >&6; }
5761 else
5762   { echo "$as_me:$LINENO: result: no" >&5
5763 echo "${ECHO_T}no" >&6; }
5764 fi
5765
5766
5767     test -n "$CC" && break
5768   done
5769 fi
5770 if test -z "$CC"; then
5771   ac_ct_CC=$CC
5772   for ac_prog in gcc
5773 do
5774   # Extract the first word of "$ac_prog", so it can be a program name with args.
5775 set dummy $ac_prog; ac_word=$2
5776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5778 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5779   echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781   if test -n "$ac_ct_CC"; then
5782   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5783 else
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5786 do
5787   IFS=$as_save_IFS
5788   test -z "$as_dir" && as_dir=.
5789   for ac_exec_ext in '' $ac_executable_extensions; do
5790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5791     ac_cv_prog_ac_ct_CC="$ac_prog"
5792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5793     break 2
5794   fi
5795 done
5796 done
5797 IFS=$as_save_IFS
5798
5799 fi
5800 fi
5801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5802 if test -n "$ac_ct_CC"; then
5803   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5804 echo "${ECHO_T}$ac_ct_CC" >&6; }
5805 else
5806   { echo "$as_me:$LINENO: result: no" >&5
5807 echo "${ECHO_T}no" >&6; }
5808 fi
5809
5810
5811   test -n "$ac_ct_CC" && break
5812 done
5813
5814   if test "x$ac_ct_CC" = x; then
5815     CC=""
5816   else
5817     case $cross_compiling:$ac_tool_warned in
5818 yes:)
5819 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5820 whose name does not start with the host triplet.  If you think this
5821 configuration is useful to you, please write to autoconf@gnu.org." >&5
5822 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5823 whose name does not start with the host triplet.  If you think this
5824 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5825 ac_tool_warned=yes ;;
5826 esac
5827     CC=$ac_ct_CC
5828   fi
5829 fi
5830
5831
5832 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5833 See \`config.log' for more details." >&5
5834 echo "$as_me: error: no acceptable C compiler found in \$PATH
5835 See \`config.log' for more details." >&2;}
5836    { (exit 1); exit 1; }; }
5837
5838 # Provide some information about the compiler.
5839 echo "$as_me:$LINENO: checking for C compiler version" >&5
5840 ac_compiler=`set X $ac_compile; echo $2`
5841 { (ac_try="$ac_compiler --version >&5"
5842 case "(($ac_try" in
5843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844   *) ac_try_echo=$ac_try;;
5845 esac
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847   (eval "$ac_compiler --version >&5") 2>&5
5848   ac_status=$?
5849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); }
5851 { (ac_try="$ac_compiler -v >&5"
5852 case "(($ac_try" in
5853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854   *) ac_try_echo=$ac_try;;
5855 esac
5856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857   (eval "$ac_compiler -v >&5") 2>&5
5858   ac_status=$?
5859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860   (exit $ac_status); }
5861 { (ac_try="$ac_compiler -V >&5"
5862 case "(($ac_try" in
5863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864   *) ac_try_echo=$ac_try;;
5865 esac
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867   (eval "$ac_compiler -V >&5") 2>&5
5868   ac_status=$?
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); }
5871
5872 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5873 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5874 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5875   echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877   cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h.  */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h.  */
5883
5884 int
5885 main ()
5886 {
5887 #ifndef __GNUC__
5888        choke me
5889 #endif
5890
5891   ;
5892   return 0;
5893 }
5894 _ACEOF
5895 rm -f conftest.$ac_objext
5896 if { (ac_try="$ac_compile"
5897 case "(($ac_try" in
5898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899   *) ac_try_echo=$ac_try;;
5900 esac
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902   (eval "$ac_compile") 2>conftest.er1
5903   ac_status=$?
5904   grep -v '^ *+' conftest.er1 >conftest.err
5905   rm -f conftest.er1
5906   cat conftest.err >&5
5907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908   (exit $ac_status); } &&
5909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5910   { (case "(($ac_try" in
5911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912   *) ac_try_echo=$ac_try;;
5913 esac
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915   (eval "$ac_try") 2>&5
5916   ac_status=$?
5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); }; } &&
5919          { ac_try='test -s conftest.$ac_objext'
5920   { (case "(($ac_try" in
5921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922   *) ac_try_echo=$ac_try;;
5923 esac
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925   (eval "$ac_try") 2>&5
5926   ac_status=$?
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); }; }; then
5929   ac_compiler_gnu=yes
5930 else
5931   echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5933
5934         ac_compiler_gnu=no
5935 fi
5936
5937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5938 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5939
5940 fi
5941 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5942 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5943 GCC=`test $ac_compiler_gnu = yes && echo yes`
5944 ac_test_CFLAGS=${CFLAGS+set}
5945 ac_save_CFLAGS=$CFLAGS
5946 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5947 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5948 if test "${ac_cv_prog_cc_g+set}" = set; then
5949   echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951   ac_save_c_werror_flag=$ac_c_werror_flag
5952    ac_c_werror_flag=yes
5953    ac_cv_prog_cc_g=no
5954    CFLAGS="-g"
5955    cat >conftest.$ac_ext <<_ACEOF
5956 /* confdefs.h.  */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h.  */
5961
5962 int
5963 main ()
5964 {
5965
5966   ;
5967   return 0;
5968 }
5969 _ACEOF
5970 rm -f conftest.$ac_objext
5971 if { (ac_try="$ac_compile"
5972 case "(($ac_try" in
5973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974   *) ac_try_echo=$ac_try;;
5975 esac
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977   (eval "$ac_compile") 2>conftest.er1
5978   ac_status=$?
5979   grep -v '^ *+' conftest.er1 >conftest.err
5980   rm -f conftest.er1
5981   cat conftest.err >&5
5982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983   (exit $ac_status); } &&
5984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5985   { (case "(($ac_try" in
5986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987   *) ac_try_echo=$ac_try;;
5988 esac
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990   (eval "$ac_try") 2>&5
5991   ac_status=$?
5992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993   (exit $ac_status); }; } &&
5994          { ac_try='test -s conftest.$ac_objext'
5995   { (case "(($ac_try" in
5996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997   *) ac_try_echo=$ac_try;;
5998 esac
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000   (eval "$ac_try") 2>&5
6001   ac_status=$?
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); }; }; then
6004   ac_cv_prog_cc_g=yes
6005 else
6006   echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6008
6009         CFLAGS=""
6010       cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h.  */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h.  */
6016
6017 int
6018 main ()
6019 {
6020
6021   ;
6022   return 0;
6023 }
6024 _ACEOF
6025 rm -f conftest.$ac_objext
6026 if { (ac_try="$ac_compile"
6027 case "(($ac_try" in
6028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029   *) ac_try_echo=$ac_try;;
6030 esac
6031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032   (eval "$ac_compile") 2>conftest.er1
6033   ac_status=$?
6034   grep -v '^ *+' conftest.er1 >conftest.err
6035   rm -f conftest.er1
6036   cat conftest.err >&5
6037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038   (exit $ac_status); } &&
6039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6040   { (case "(($ac_try" in
6041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042   *) ac_try_echo=$ac_try;;
6043 esac
6044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045   (eval "$ac_try") 2>&5
6046   ac_status=$?
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); }; } &&
6049          { ac_try='test -s conftest.$ac_objext'
6050   { (case "(($ac_try" in
6051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052   *) ac_try_echo=$ac_try;;
6053 esac
6054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055   (eval "$ac_try") 2>&5
6056   ac_status=$?
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); }; }; then
6059   :
6060 else
6061   echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6063
6064         ac_c_werror_flag=$ac_save_c_werror_flag
6065          CFLAGS="-g"
6066          cat >conftest.$ac_ext <<_ACEOF
6067 /* confdefs.h.  */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h.  */
6072
6073 int
6074 main ()
6075 {
6076
6077   ;
6078   return 0;
6079 }
6080 _ACEOF
6081 rm -f conftest.$ac_objext
6082 if { (ac_try="$ac_compile"
6083 case "(($ac_try" in
6084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085   *) ac_try_echo=$ac_try;;
6086 esac
6087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088   (eval "$ac_compile") 2>conftest.er1
6089   ac_status=$?
6090   grep -v '^ *+' conftest.er1 >conftest.err
6091   rm -f conftest.er1
6092   cat conftest.err >&5
6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); } &&
6095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6096   { (case "(($ac_try" in
6097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098   *) ac_try_echo=$ac_try;;
6099 esac
6100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6101   (eval "$ac_try") 2>&5
6102   ac_status=$?
6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); }; } &&
6105          { ac_try='test -s conftest.$ac_objext'
6106   { (case "(($ac_try" in
6107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108   *) ac_try_echo=$ac_try;;
6109 esac
6110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111   (eval "$ac_try") 2>&5
6112   ac_status=$?
6113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114   (exit $ac_status); }; }; then
6115   ac_cv_prog_cc_g=yes
6116 else
6117   echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6119
6120
6121 fi
6122
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124 fi
6125
6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127 fi
6128
6129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130    ac_c_werror_flag=$ac_save_c_werror_flag
6131 fi
6132 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6133 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6134 if test "$ac_test_CFLAGS" = set; then
6135   CFLAGS=$ac_save_CFLAGS
6136 elif test $ac_cv_prog_cc_g = yes; then
6137   if test "$GCC" = yes; then
6138     CFLAGS="-g -O2"
6139   else
6140     CFLAGS="-g"
6141   fi
6142 else
6143   if test "$GCC" = yes; then
6144     CFLAGS="-O2"
6145   else
6146     CFLAGS=
6147   fi
6148 fi
6149 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6150 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6151 if test "${ac_cv_prog_cc_c89+set}" = set; then
6152   echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154   ac_cv_prog_cc_c89=no
6155 ac_save_CC=$CC
6156 cat >conftest.$ac_ext <<_ACEOF
6157 /* confdefs.h.  */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h.  */
6162 #include <stdarg.h>
6163 #include <stdio.h>
6164 #include <sys/types.h>
6165 #include <sys/stat.h>
6166 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6167 struct buf { int x; };
6168 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6169 static char *e (p, i)
6170      char **p;
6171      int i;
6172 {
6173   return p[i];
6174 }
6175 static char *f (char * (*g) (char **, int), char **p, ...)
6176 {
6177   char *s;
6178   va_list v;
6179   va_start (v,p);
6180   s = g (p, va_arg (v,int));
6181   va_end (v);
6182   return s;
6183 }
6184
6185 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6186    function prototypes and stuff, but not '\xHH' hex character constants.
6187    These don't provoke an error unfortunately, instead are silently treated
6188    as 'x'.  The following induces an error, until -std is added to get
6189    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6190    array size at least.  It's necessary to write '\x00'==0 to get something
6191    that's true only with -std.  */
6192 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6193
6194 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6195    inside strings and character constants.  */
6196 #define FOO(x) 'x'
6197 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6198
6199 int test (int i, double x);
6200 struct s1 {int (*f) (int a);};
6201 struct s2 {int (*f) (double a);};
6202 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6203 int argc;
6204 char **argv;
6205 int
6206 main ()
6207 {
6208 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6209   ;
6210   return 0;
6211 }
6212 _ACEOF
6213 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6214         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6215 do
6216   CC="$ac_save_CC $ac_arg"
6217   rm -f conftest.$ac_objext
6218 if { (ac_try="$ac_compile"
6219 case "(($ac_try" in
6220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221   *) ac_try_echo=$ac_try;;
6222 esac
6223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224   (eval "$ac_compile") 2>conftest.er1
6225   ac_status=$?
6226   grep -v '^ *+' conftest.er1 >conftest.err
6227   rm -f conftest.er1
6228   cat conftest.err >&5
6229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230   (exit $ac_status); } &&
6231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6232   { (case "(($ac_try" in
6233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234   *) ac_try_echo=$ac_try;;
6235 esac
6236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237   (eval "$ac_try") 2>&5
6238   ac_status=$?
6239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240   (exit $ac_status); }; } &&
6241          { ac_try='test -s conftest.$ac_objext'
6242   { (case "(($ac_try" in
6243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6244   *) ac_try_echo=$ac_try;;
6245 esac
6246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6247   (eval "$ac_try") 2>&5
6248   ac_status=$?
6249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250   (exit $ac_status); }; }; then
6251   ac_cv_prog_cc_c89=$ac_arg
6252 else
6253   echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256
6257 fi
6258
6259 rm -f core conftest.err conftest.$ac_objext
6260   test "x$ac_cv_prog_cc_c89" != "xno" && break
6261 done
6262 rm -f conftest.$ac_ext
6263 CC=$ac_save_CC
6264
6265 fi
6266 # AC_CACHE_VAL
6267 case "x$ac_cv_prog_cc_c89" in
6268   x)
6269     { echo "$as_me:$LINENO: result: none needed" >&5
6270 echo "${ECHO_T}none needed" >&6; } ;;
6271   xno)
6272     { echo "$as_me:$LINENO: result: unsupported" >&5
6273 echo "${ECHO_T}unsupported" >&6; } ;;
6274   *)
6275     CC="$CC $ac_cv_prog_cc_c89"
6276     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6277 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6278 esac
6279
6280
6281 ac_ext=c
6282 ac_cpp='$CPP $CPPFLAGS'
6283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6286
6287 ac_ext=cpp
6288 ac_cpp='$CXXCPP $CPPFLAGS'
6289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6292 if test -z "$CXX"; then
6293   if test -n "$CCC"; then
6294     CXX=$CCC
6295   else
6296     if test -n "$ac_tool_prefix"; then
6297   for ac_prog in g++
6298   do
6299     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6300 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6303 if test "${ac_cv_prog_CXX+set}" = set; then
6304   echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306   if test -n "$CXX"; then
6307   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6311 do
6312   IFS=$as_save_IFS
6313   test -z "$as_dir" && as_dir=.
6314   for ac_exec_ext in '' $ac_executable_extensions; do
6315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6316     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318     break 2
6319   fi
6320 done
6321 done
6322 IFS=$as_save_IFS
6323
6324 fi
6325 fi
6326 CXX=$ac_cv_prog_CXX
6327 if test -n "$CXX"; then
6328   { echo "$as_me:$LINENO: result: $CXX" >&5
6329 echo "${ECHO_T}$CXX" >&6; }
6330 else
6331   { echo "$as_me:$LINENO: result: no" >&5
6332 echo "${ECHO_T}no" >&6; }
6333 fi
6334
6335
6336     test -n "$CXX" && break
6337   done
6338 fi
6339 if test -z "$CXX"; then
6340   ac_ct_CXX=$CXX
6341   for ac_prog in g++
6342 do
6343   # Extract the first word of "$ac_prog", so it can be a program name with args.
6344 set dummy $ac_prog; ac_word=$2
6345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6347 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6348   echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350   if test -n "$ac_ct_CXX"; then
6351   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6352 else
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 for as_dir in $PATH
6355 do
6356   IFS=$as_save_IFS
6357   test -z "$as_dir" && as_dir=.
6358   for ac_exec_ext in '' $ac_executable_extensions; do
6359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6360     ac_cv_prog_ac_ct_CXX="$ac_prog"
6361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6362     break 2
6363   fi
6364 done
6365 done
6366 IFS=$as_save_IFS
6367
6368 fi
6369 fi
6370 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6371 if test -n "$ac_ct_CXX"; then
6372   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6373 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6374 else
6375   { echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6; }
6377 fi
6378
6379
6380   test -n "$ac_ct_CXX" && break
6381 done
6382
6383   if test "x$ac_ct_CXX" = x; then
6384     CXX="g++"
6385   else
6386     case $cross_compiling:$ac_tool_warned in
6387 yes:)
6388 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6389 whose name does not start with the host triplet.  If you think this
6390 configuration is useful to you, please write to autoconf@gnu.org." >&5
6391 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6392 whose name does not start with the host triplet.  If you think this
6393 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6394 ac_tool_warned=yes ;;
6395 esac
6396     CXX=$ac_ct_CXX
6397   fi
6398 fi
6399
6400   fi
6401 fi
6402 # Provide some information about the compiler.
6403 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6404 ac_compiler=`set X $ac_compile; echo $2`
6405 { (ac_try="$ac_compiler --version >&5"
6406 case "(($ac_try" in
6407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408   *) ac_try_echo=$ac_try;;
6409 esac
6410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411   (eval "$ac_compiler --version >&5") 2>&5
6412   ac_status=$?
6413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414   (exit $ac_status); }
6415 { (ac_try="$ac_compiler -v >&5"
6416 case "(($ac_try" in
6417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6418   *) ac_try_echo=$ac_try;;
6419 esac
6420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6421   (eval "$ac_compiler -v >&5") 2>&5
6422   ac_status=$?
6423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424   (exit $ac_status); }
6425 { (ac_try="$ac_compiler -V >&5"
6426 case "(($ac_try" in
6427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6428   *) ac_try_echo=$ac_try;;
6429 esac
6430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6431   (eval "$ac_compiler -V >&5") 2>&5
6432   ac_status=$?
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); }
6435
6436 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6437 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6438 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6439   echo $ECHO_N "(cached) $ECHO_C" >&6
6440 else
6441   cat >conftest.$ac_ext <<_ACEOF
6442 /* confdefs.h.  */
6443 _ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h.  */
6447
6448 int
6449 main ()
6450 {
6451 #ifndef __GNUC__
6452        choke me
6453 #endif
6454
6455   ;
6456   return 0;
6457 }
6458 _ACEOF
6459 rm -f conftest.$ac_objext
6460 if { (ac_try="$ac_compile"
6461 case "(($ac_try" in
6462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463   *) ac_try_echo=$ac_try;;
6464 esac
6465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466   (eval "$ac_compile") 2>conftest.er1
6467   ac_status=$?
6468   grep -v '^ *+' conftest.er1 >conftest.err
6469   rm -f conftest.er1
6470   cat conftest.err >&5
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); } &&
6473          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6474   { (case "(($ac_try" in
6475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476   *) ac_try_echo=$ac_try;;
6477 esac
6478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479   (eval "$ac_try") 2>&5
6480   ac_status=$?
6481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482   (exit $ac_status); }; } &&
6483          { ac_try='test -s conftest.$ac_objext'
6484   { (case "(($ac_try" in
6485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486   *) ac_try_echo=$ac_try;;
6487 esac
6488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6489   (eval "$ac_try") 2>&5
6490   ac_status=$?
6491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492   (exit $ac_status); }; }; then
6493   ac_compiler_gnu=yes
6494 else
6495   echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6497
6498         ac_compiler_gnu=no
6499 fi
6500
6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6503
6504 fi
6505 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6506 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6507 GXX=`test $ac_compiler_gnu = yes && echo yes`
6508 ac_test_CXXFLAGS=${CXXFLAGS+set}
6509 ac_save_CXXFLAGS=$CXXFLAGS
6510 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6511 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6512 if test "${ac_cv_prog_cxx_g+set}" = set; then
6513   echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6516    ac_cxx_werror_flag=yes
6517    ac_cv_prog_cxx_g=no
6518    CXXFLAGS="-g"
6519    cat >conftest.$ac_ext <<_ACEOF
6520 /* confdefs.h.  */
6521 _ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h.  */
6525
6526 int
6527 main ()
6528 {
6529
6530   ;
6531   return 0;
6532 }
6533 _ACEOF
6534 rm -f conftest.$ac_objext
6535 if { (ac_try="$ac_compile"
6536 case "(($ac_try" in
6537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538   *) ac_try_echo=$ac_try;;
6539 esac
6540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6541   (eval "$ac_compile") 2>conftest.er1
6542   ac_status=$?
6543   grep -v '^ *+' conftest.er1 >conftest.err
6544   rm -f conftest.er1
6545   cat conftest.err >&5
6546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547   (exit $ac_status); } &&
6548          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6549   { (case "(($ac_try" in
6550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551   *) ac_try_echo=$ac_try;;
6552 esac
6553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554   (eval "$ac_try") 2>&5
6555   ac_status=$?
6556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557   (exit $ac_status); }; } &&
6558          { ac_try='test -s conftest.$ac_objext'
6559   { (case "(($ac_try" in
6560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561   *) ac_try_echo=$ac_try;;
6562 esac
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564   (eval "$ac_try") 2>&5
6565   ac_status=$?
6566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567   (exit $ac_status); }; }; then
6568   ac_cv_prog_cxx_g=yes
6569 else
6570   echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6572
6573         CXXFLAGS=""
6574       cat >conftest.$ac_ext <<_ACEOF
6575 /* confdefs.h.  */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h.  */
6580
6581 int
6582 main ()
6583 {
6584
6585   ;
6586   return 0;
6587 }
6588 _ACEOF
6589 rm -f conftest.$ac_objext
6590 if { (ac_try="$ac_compile"
6591 case "(($ac_try" in
6592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6593   *) ac_try_echo=$ac_try;;
6594 esac
6595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6596   (eval "$ac_compile") 2>conftest.er1
6597   ac_status=$?
6598   grep -v '^ *+' conftest.er1 >conftest.err
6599   rm -f conftest.er1
6600   cat conftest.err >&5
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); } &&
6603          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6604   { (case "(($ac_try" in
6605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606   *) ac_try_echo=$ac_try;;
6607 esac
6608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6609   (eval "$ac_try") 2>&5
6610   ac_status=$?
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); }; } &&
6613          { ac_try='test -s conftest.$ac_objext'
6614   { (case "(($ac_try" in
6615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616   *) ac_try_echo=$ac_try;;
6617 esac
6618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6619   (eval "$ac_try") 2>&5
6620   ac_status=$?
6621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622   (exit $ac_status); }; }; then
6623   :
6624 else
6625   echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6627
6628         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6629          CXXFLAGS="-g"
6630          cat >conftest.$ac_ext <<_ACEOF
6631 /* confdefs.h.  */
6632 _ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h.  */
6636
6637 int
6638 main ()
6639 {
6640
6641   ;
6642   return 0;
6643 }
6644 _ACEOF
6645 rm -f conftest.$ac_objext
6646 if { (ac_try="$ac_compile"
6647 case "(($ac_try" in
6648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649   *) ac_try_echo=$ac_try;;
6650 esac
6651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6652   (eval "$ac_compile") 2>conftest.er1
6653   ac_status=$?
6654   grep -v '^ *+' conftest.er1 >conftest.err
6655   rm -f conftest.er1
6656   cat conftest.err >&5
6657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658   (exit $ac_status); } &&
6659          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6660   { (case "(($ac_try" in
6661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662   *) ac_try_echo=$ac_try;;
6663 esac
6664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6665   (eval "$ac_try") 2>&5
6666   ac_status=$?
6667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668   (exit $ac_status); }; } &&
6669          { ac_try='test -s conftest.$ac_objext'
6670   { (case "(($ac_try" in
6671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6672   *) ac_try_echo=$ac_try;;
6673 esac
6674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6675   (eval "$ac_try") 2>&5
6676   ac_status=$?
6677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678   (exit $ac_status); }; }; then
6679   ac_cv_prog_cxx_g=yes
6680 else
6681   echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6683
6684
6685 fi
6686
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 fi
6689
6690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 fi
6692
6693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6695 fi
6696 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6697 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6698 if test "$ac_test_CXXFLAGS" = set; then
6699   CXXFLAGS=$ac_save_CXXFLAGS
6700 elif test $ac_cv_prog_cxx_g = yes; then
6701   if test "$GXX" = yes; then
6702     CXXFLAGS="-g -O2"
6703   else
6704     CXXFLAGS="-g"
6705   fi
6706 else
6707   if test "$GXX" = yes; then
6708     CXXFLAGS="-O2"
6709   else
6710     CXXFLAGS=
6711   fi
6712 fi
6713 ac_ext=c
6714 ac_cpp='$CPP $CPPFLAGS'
6715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6718
6719
6720 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6721 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6722 if test "${lt_cv_path_NM+set}" = set; then
6723   echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725   if test -n "$NM"; then
6726   # Let the user override the test.
6727   lt_cv_path_NM="$NM"
6728 else
6729   lt_nm_to_check="${ac_tool_prefix}nm"
6730   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6731     lt_nm_to_check="$lt_nm_to_check nm"
6732   fi
6733   for lt_tmp_nm in $lt_nm_to_check; do
6734     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6735     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6736       IFS="$lt_save_ifs"
6737       test -z "$ac_dir" && ac_dir=.
6738       tmp_nm="$ac_dir/$lt_tmp_nm"
6739       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6740         # Check to see if the nm accepts a BSD-compat flag.
6741         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6742         #   nm: unknown option "B" ignored
6743         # Tru64's nm complains that /dev/null is an invalid object file
6744         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6745         */dev/null* | *'Invalid file or object type'*)
6746           lt_cv_path_NM="$tmp_nm -B"
6747           break
6748           ;;
6749         *)
6750           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6751           */dev/null*)
6752             lt_cv_path_NM="$tmp_nm -p"
6753             break
6754             ;;
6755           *)
6756             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6757             continue # so that we can try to find one that supports BSD flags
6758             ;;
6759           esac
6760           ;;
6761         esac
6762       fi
6763     done
6764     IFS="$lt_save_ifs"
6765   done
6766   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6767 fi
6768 fi
6769 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6770 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6771 NM="$lt_cv_path_NM"
6772
6773
6774
6775 { echo "$as_me:$LINENO: checking for GNU make" >&5
6776 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6777 if test "${llvm_cv_gnu_make_command+set}" = set; then
6778   echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780   llvm_cv_gnu_make_command=''
6781  for a in "$MAKE" make gmake gnumake ; do
6782   if test -z "$a" ; then continue ; fi ;
6783   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6784   then
6785    llvm_cv_gnu_make_command=$a ;
6786    break;
6787   fi
6788  done
6789 fi
6790 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6791 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6792  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6793    ifGNUmake='' ;
6794  else
6795    ifGNUmake='#' ;
6796    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6797 echo "${ECHO_T}\"Not found\"" >&6; };
6798  fi
6799
6800
6801 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6802 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6803 LN_S=$as_ln_s
6804 if test "$LN_S" = "ln -s"; then
6805   { echo "$as_me:$LINENO: result: yes" >&5
6806 echo "${ECHO_T}yes" >&6; }
6807 else
6808   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6809 echo "${ECHO_T}no, using $LN_S" >&6; }
6810 fi
6811
6812 # Extract the first word of "cmp", so it can be a program name with args.
6813 set dummy cmp; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_path_CMP+set}" = set; then
6817   echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819   case $CMP in
6820   [\\/]* | ?:[\\/]*)
6821   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6822   ;;
6823   *)
6824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829   for ac_exec_ext in '' $ac_executable_extensions; do
6830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6831     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836 done
6837 IFS=$as_save_IFS
6838
6839   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6840   ;;
6841 esac
6842 fi
6843 CMP=$ac_cv_path_CMP
6844 if test -n "$CMP"; then
6845   { echo "$as_me:$LINENO: result: $CMP" >&5
6846 echo "${ECHO_T}$CMP" >&6; }
6847 else
6848   { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6850 fi
6851
6852
6853 # Extract the first word of "cp", so it can be a program name with args.
6854 set dummy cp; ac_word=$2
6855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6857 if test "${ac_cv_path_CP+set}" = set; then
6858   echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860   case $CP in
6861   [\\/]* | ?:[\\/]*)
6862   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6863   ;;
6864   *)
6865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868   IFS=$as_save_IFS
6869   test -z "$as_dir" && as_dir=.
6870   for ac_exec_ext in '' $ac_executable_extensions; do
6871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6872     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874     break 2
6875   fi
6876 done
6877 done
6878 IFS=$as_save_IFS
6879
6880   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6881   ;;
6882 esac
6883 fi
6884 CP=$ac_cv_path_CP
6885 if test -n "$CP"; then
6886   { echo "$as_me:$LINENO: result: $CP" >&5
6887 echo "${ECHO_T}$CP" >&6; }
6888 else
6889   { echo "$as_me:$LINENO: result: no" >&5
6890 echo "${ECHO_T}no" >&6; }
6891 fi
6892
6893
6894 # Extract the first word of "date", so it can be a program name with args.
6895 set dummy date; ac_word=$2
6896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898 if test "${ac_cv_path_DATE+set}" = set; then
6899   echo $ECHO_N "(cached) $ECHO_C" >&6
6900 else
6901   case $DATE in
6902   [\\/]* | ?:[\\/]*)
6903   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6904   ;;
6905   *)
6906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6908 do
6909   IFS=$as_save_IFS
6910   test -z "$as_dir" && as_dir=.
6911   for ac_exec_ext in '' $ac_executable_extensions; do
6912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6913     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6915     break 2
6916   fi
6917 done
6918 done
6919 IFS=$as_save_IFS
6920
6921   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6922   ;;
6923 esac
6924 fi
6925 DATE=$ac_cv_path_DATE
6926 if test -n "$DATE"; then
6927   { echo "$as_me:$LINENO: result: $DATE" >&5
6928 echo "${ECHO_T}$DATE" >&6; }
6929 else
6930   { echo "$as_me:$LINENO: result: no" >&5
6931 echo "${ECHO_T}no" >&6; }
6932 fi
6933
6934
6935 # Extract the first word of "find", so it can be a program name with args.
6936 set dummy find; ac_word=$2
6937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6939 if test "${ac_cv_path_FIND+set}" = set; then
6940   echo $ECHO_N "(cached) $ECHO_C" >&6
6941 else
6942   case $FIND in
6943   [\\/]* | ?:[\\/]*)
6944   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6945   ;;
6946   *)
6947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 for as_dir in $PATH
6949 do
6950   IFS=$as_save_IFS
6951   test -z "$as_dir" && as_dir=.
6952   for ac_exec_ext in '' $ac_executable_extensions; do
6953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6954     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956     break 2
6957   fi
6958 done
6959 done
6960 IFS=$as_save_IFS
6961
6962   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6963   ;;
6964 esac
6965 fi
6966 FIND=$ac_cv_path_FIND
6967 if test -n "$FIND"; then
6968   { echo "$as_me:$LINENO: result: $FIND" >&5
6969 echo "${ECHO_T}$FIND" >&6; }
6970 else
6971   { echo "$as_me:$LINENO: result: no" >&5
6972 echo "${ECHO_T}no" >&6; }
6973 fi
6974
6975
6976 # Extract the first word of "grep", so it can be a program name with args.
6977 set dummy grep; ac_word=$2
6978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980 if test "${ac_cv_path_GREP+set}" = set; then
6981   echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983   case $GREP in
6984   [\\/]* | ?:[\\/]*)
6985   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6986   ;;
6987   *)
6988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6990 do
6991   IFS=$as_save_IFS
6992   test -z "$as_dir" && as_dir=.
6993   for ac_exec_ext in '' $ac_executable_extensions; do
6994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6995     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997     break 2
6998   fi
6999 done
7000 done
7001 IFS=$as_save_IFS
7002
7003   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7004   ;;
7005 esac
7006 fi
7007 GREP=$ac_cv_path_GREP
7008 if test -n "$GREP"; then
7009   { echo "$as_me:$LINENO: result: $GREP" >&5
7010 echo "${ECHO_T}$GREP" >&6; }
7011 else
7012   { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7014 fi
7015
7016
7017 # Extract the first word of "mkdir", so it can be a program name with args.
7018 set dummy mkdir; ac_word=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_path_MKDIR+set}" = set; then
7022   echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024   case $MKDIR in
7025   [\\/]* | ?:[\\/]*)
7026   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7027   ;;
7028   *)
7029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032   IFS=$as_save_IFS
7033   test -z "$as_dir" && as_dir=.
7034   for ac_exec_ext in '' $ac_executable_extensions; do
7035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7036     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038     break 2
7039   fi
7040 done
7041 done
7042 IFS=$as_save_IFS
7043
7044   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7045   ;;
7046 esac
7047 fi
7048 MKDIR=$ac_cv_path_MKDIR
7049 if test -n "$MKDIR"; then
7050   { echo "$as_me:$LINENO: result: $MKDIR" >&5
7051 echo "${ECHO_T}$MKDIR" >&6; }
7052 else
7053   { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7055 fi
7056
7057
7058 # Extract the first word of "mv", so it can be a program name with args.
7059 set dummy mv; ac_word=$2
7060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062 if test "${ac_cv_path_MV+set}" = set; then
7063   echo $ECHO_N "(cached) $ECHO_C" >&6
7064 else
7065   case $MV in
7066   [\\/]* | ?:[\\/]*)
7067   ac_cv_path_MV="$MV" # Let the user override the test with a path.
7068   ;;
7069   *)
7070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7072 do
7073   IFS=$as_save_IFS
7074   test -z "$as_dir" && as_dir=.
7075   for ac_exec_ext in '' $ac_executable_extensions; do
7076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7077     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079     break 2
7080   fi
7081 done
7082 done
7083 IFS=$as_save_IFS
7084
7085   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7086   ;;
7087 esac
7088 fi
7089 MV=$ac_cv_path_MV
7090 if test -n "$MV"; then
7091   { echo "$as_me:$LINENO: result: $MV" >&5
7092 echo "${ECHO_T}$MV" >&6; }
7093 else
7094   { echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6; }
7096 fi
7097
7098
7099 if test -n "$ac_tool_prefix"; then
7100   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7101 set dummy ${ac_tool_prefix}ranlib; 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_prog_RANLIB+set}" = set; then
7105   echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107   if test -n "$RANLIB"; then
7108   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7109 else
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7112 do
7113   IFS=$as_save_IFS
7114   test -z "$as_dir" && as_dir=.
7115   for ac_exec_ext in '' $ac_executable_extensions; do
7116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7117     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119     break 2
7120   fi
7121 done
7122 done
7123 IFS=$as_save_IFS
7124
7125 fi
7126 fi
7127 RANLIB=$ac_cv_prog_RANLIB
7128 if test -n "$RANLIB"; then
7129   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7130 echo "${ECHO_T}$RANLIB" >&6; }
7131 else
7132   { echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6; }
7134 fi
7135
7136
7137 fi
7138 if test -z "$ac_cv_prog_RANLIB"; then
7139   ac_ct_RANLIB=$RANLIB
7140   # Extract the first word of "ranlib", so it can be a program name with args.
7141 set dummy ranlib; 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_prog_ac_ct_RANLIB+set}" = set; then
7145   echo $ECHO_N "(cached) $ECHO_C" >&6
7146 else
7147   if test -n "$ac_ct_RANLIB"; then
7148   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7149 else
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7152 do
7153   IFS=$as_save_IFS
7154   test -z "$as_dir" && as_dir=.
7155   for ac_exec_ext in '' $ac_executable_extensions; do
7156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7157     ac_cv_prog_ac_ct_RANLIB="ranlib"
7158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159     break 2
7160   fi
7161 done
7162 done
7163 IFS=$as_save_IFS
7164
7165 fi
7166 fi
7167 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7168 if test -n "$ac_ct_RANLIB"; then
7169   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7170 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7171 else
7172   { echo "$as_me:$LINENO: result: no" >&5
7173 echo "${ECHO_T}no" >&6; }
7174 fi
7175
7176   if test "x$ac_ct_RANLIB" = x; then
7177     RANLIB=":"
7178   else
7179     case $cross_compiling:$ac_tool_warned in
7180 yes:)
7181 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7182 whose name does not start with the host triplet.  If you think this
7183 configuration is useful to you, please write to autoconf@gnu.org." >&5
7184 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7185 whose name does not start with the host triplet.  If you think this
7186 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7187 ac_tool_warned=yes ;;
7188 esac
7189     RANLIB=$ac_ct_RANLIB
7190   fi
7191 else
7192   RANLIB="$ac_cv_prog_RANLIB"
7193 fi
7194
7195 if test -n "$ac_tool_prefix"; then
7196   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7197 set dummy ${ac_tool_prefix}ar; ac_word=$2
7198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7200 if test "${ac_cv_prog_AR+set}" = set; then
7201   echo $ECHO_N "(cached) $ECHO_C" >&6
7202 else
7203   if test -n "$AR"; then
7204   ac_cv_prog_AR="$AR" # Let the user override the test.
7205 else
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 for as_dir in $PATH
7208 do
7209   IFS=$as_save_IFS
7210   test -z "$as_dir" && as_dir=.
7211   for ac_exec_ext in '' $ac_executable_extensions; do
7212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7213     ac_cv_prog_AR="${ac_tool_prefix}ar"
7214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7215     break 2
7216   fi
7217 done
7218 done
7219 IFS=$as_save_IFS
7220
7221 fi
7222 fi
7223 AR=$ac_cv_prog_AR
7224 if test -n "$AR"; then
7225   { echo "$as_me:$LINENO: result: $AR" >&5
7226 echo "${ECHO_T}$AR" >&6; }
7227 else
7228   { echo "$as_me:$LINENO: result: no" >&5
7229 echo "${ECHO_T}no" >&6; }
7230 fi
7231
7232
7233 fi
7234 if test -z "$ac_cv_prog_AR"; then
7235   ac_ct_AR=$AR
7236   # Extract the first word of "ar", so it can be a program name with args.
7237 set dummy ar; ac_word=$2
7238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7240 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7241   echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243   if test -n "$ac_ct_AR"; then
7244   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7245 else
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in $PATH
7248 do
7249   IFS=$as_save_IFS
7250   test -z "$as_dir" && as_dir=.
7251   for ac_exec_ext in '' $ac_executable_extensions; do
7252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7253     ac_cv_prog_ac_ct_AR="ar"
7254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7255     break 2
7256   fi
7257 done
7258 done
7259 IFS=$as_save_IFS
7260
7261 fi
7262 fi
7263 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7264 if test -n "$ac_ct_AR"; then
7265   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7266 echo "${ECHO_T}$ac_ct_AR" >&6; }
7267 else
7268   { echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6; }
7270 fi
7271
7272   if test "x$ac_ct_AR" = x; then
7273     AR="false"
7274   else
7275     case $cross_compiling:$ac_tool_warned in
7276 yes:)
7277 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7278 whose name does not start with the host triplet.  If you think this
7279 configuration is useful to you, please write to autoconf@gnu.org." >&5
7280 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7281 whose name does not start with the host triplet.  If you think this
7282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7283 ac_tool_warned=yes ;;
7284 esac
7285     AR=$ac_ct_AR
7286   fi
7287 else
7288   AR="$ac_cv_prog_AR"
7289 fi
7290
7291 # Extract the first word of "rm", so it can be a program name with args.
7292 set dummy rm; ac_word=$2
7293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7295 if test "${ac_cv_path_RM+set}" = set; then
7296   echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298   case $RM in
7299   [\\/]* | ?:[\\/]*)
7300   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7301   ;;
7302   *)
7303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306   IFS=$as_save_IFS
7307   test -z "$as_dir" && as_dir=.
7308   for ac_exec_ext in '' $ac_executable_extensions; do
7309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7310     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312     break 2
7313   fi
7314 done
7315 done
7316 IFS=$as_save_IFS
7317
7318   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7319   ;;
7320 esac
7321 fi
7322 RM=$ac_cv_path_RM
7323 if test -n "$RM"; then
7324   { echo "$as_me:$LINENO: result: $RM" >&5
7325 echo "${ECHO_T}$RM" >&6; }
7326 else
7327   { echo "$as_me:$LINENO: result: no" >&5
7328 echo "${ECHO_T}no" >&6; }
7329 fi
7330
7331
7332 # Extract the first word of "sed", so it can be a program name with args.
7333 set dummy sed; ac_word=$2
7334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7336 if test "${ac_cv_path_SED+set}" = set; then
7337   echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339   case $SED in
7340   [\\/]* | ?:[\\/]*)
7341   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7342   ;;
7343   *)
7344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349   for ac_exec_ext in '' $ac_executable_extensions; do
7350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7351     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353     break 2
7354   fi
7355 done
7356 done
7357 IFS=$as_save_IFS
7358
7359   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7360   ;;
7361 esac
7362 fi
7363 SED=$ac_cv_path_SED
7364 if test -n "$SED"; then
7365   { echo "$as_me:$LINENO: result: $SED" >&5
7366 echo "${ECHO_T}$SED" >&6; }
7367 else
7368   { echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6; }
7370 fi
7371
7372
7373 # Extract the first word of "tar", so it can be a program name with args.
7374 set dummy tar; ac_word=$2
7375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7377 if test "${ac_cv_path_TAR+set}" = set; then
7378   echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380   case $TAR in
7381   [\\/]* | ?:[\\/]*)
7382   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7383   ;;
7384   *)
7385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 for as_dir in $PATH
7387 do
7388   IFS=$as_save_IFS
7389   test -z "$as_dir" && as_dir=.
7390   for ac_exec_ext in '' $ac_executable_extensions; do
7391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7392     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394     break 2
7395   fi
7396 done
7397 done
7398 IFS=$as_save_IFS
7399
7400   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7401   ;;
7402 esac
7403 fi
7404 TAR=$ac_cv_path_TAR
7405 if test -n "$TAR"; then
7406   { echo "$as_me:$LINENO: result: $TAR" >&5
7407 echo "${ECHO_T}$TAR" >&6; }
7408 else
7409   { echo "$as_me:$LINENO: result: no" >&5
7410 echo "${ECHO_T}no" >&6; }
7411 fi
7412
7413
7414 # Extract the first word of "pwd", so it can be a program name with args.
7415 set dummy pwd; ac_word=$2
7416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7418 if test "${ac_cv_path_BINPWD+set}" = set; then
7419   echo $ECHO_N "(cached) $ECHO_C" >&6
7420 else
7421   case $BINPWD in
7422   [\\/]* | ?:[\\/]*)
7423   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7424   ;;
7425   *)
7426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7428 do
7429   IFS=$as_save_IFS
7430   test -z "$as_dir" && as_dir=.
7431   for ac_exec_ext in '' $ac_executable_extensions; do
7432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7433     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7435     break 2
7436   fi
7437 done
7438 done
7439 IFS=$as_save_IFS
7440
7441   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7442   ;;
7443 esac
7444 fi
7445 BINPWD=$ac_cv_path_BINPWD
7446 if test -n "$BINPWD"; then
7447   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7448 echo "${ECHO_T}$BINPWD" >&6; }
7449 else
7450   { echo "$as_me:$LINENO: result: no" >&5
7451 echo "${ECHO_T}no" >&6; }
7452 fi
7453
7454
7455
7456 # Extract the first word of "Graphviz", so it can be a program name with args.
7457 set dummy Graphviz; ac_word=$2
7458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7460 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7461   echo $ECHO_N "(cached) $ECHO_C" >&6
7462 else
7463   case $GRAPHVIZ in
7464   [\\/]* | ?:[\\/]*)
7465   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7466   ;;
7467   *)
7468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 for as_dir in $PATH
7470 do
7471   IFS=$as_save_IFS
7472   test -z "$as_dir" && as_dir=.
7473   for ac_exec_ext in '' $ac_executable_extensions; do
7474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7475     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477     break 2
7478   fi
7479 done
7480 done
7481 IFS=$as_save_IFS
7482
7483   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7484   ;;
7485 esac
7486 fi
7487 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7488 if test -n "$GRAPHVIZ"; then
7489   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7490 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7491 else
7492   { echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6; }
7494 fi
7495
7496
7497 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7498
7499 cat >>confdefs.h <<\_ACEOF
7500 #define HAVE_GRAPHVIZ 1
7501 _ACEOF
7502
7503     if test "$llvm_cv_os_type" = "MingW" ; then
7504     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7505   fi
7506
7507 cat >>confdefs.h <<_ACEOF
7508 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7509 _ACEOF
7510
7511 fi
7512 # Extract the first word of "dot", so it can be a program name with args.
7513 set dummy dot; ac_word=$2
7514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516 if test "${ac_cv_path_DOT+set}" = set; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519   case $DOT in
7520   [\\/]* | ?:[\\/]*)
7521   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7522   ;;
7523   *)
7524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527   IFS=$as_save_IFS
7528   test -z "$as_dir" && as_dir=.
7529   for ac_exec_ext in '' $ac_executable_extensions; do
7530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7531     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533     break 2
7534   fi
7535 done
7536 done
7537 IFS=$as_save_IFS
7538
7539   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7540   ;;
7541 esac
7542 fi
7543 DOT=$ac_cv_path_DOT
7544 if test -n "$DOT"; then
7545   { echo "$as_me:$LINENO: result: $DOT" >&5
7546 echo "${ECHO_T}$DOT" >&6; }
7547 else
7548   { echo "$as_me:$LINENO: result: no" >&5
7549 echo "${ECHO_T}no" >&6; }
7550 fi
7551
7552
7553 if test "$DOT" != "echo dot" ; then
7554
7555 cat >>confdefs.h <<\_ACEOF
7556 #define HAVE_DOT 1
7557 _ACEOF
7558
7559     if test "$llvm_cv_os_type" = "MingW" ; then
7560     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7561   fi
7562
7563 cat >>confdefs.h <<_ACEOF
7564 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7565 _ACEOF
7566
7567 fi
7568 # Extract the first word of "fdp", so it can be a program name with args.
7569 set dummy fdp; ac_word=$2
7570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7572 if test "${ac_cv_path_FDP+set}" = set; then
7573   echo $ECHO_N "(cached) $ECHO_C" >&6
7574 else
7575   case $FDP in
7576   [\\/]* | ?:[\\/]*)
7577   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7578   ;;
7579   *)
7580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 for as_dir in $PATH
7582 do
7583   IFS=$as_save_IFS
7584   test -z "$as_dir" && as_dir=.
7585   for ac_exec_ext in '' $ac_executable_extensions; do
7586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7587     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7589     break 2
7590   fi
7591 done
7592 done
7593 IFS=$as_save_IFS
7594
7595   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7596   ;;
7597 esac
7598 fi
7599 FDP=$ac_cv_path_FDP
7600 if test -n "$FDP"; then
7601   { echo "$as_me:$LINENO: result: $FDP" >&5
7602 echo "${ECHO_T}$FDP" >&6; }
7603 else
7604   { echo "$as_me:$LINENO: result: no" >&5
7605 echo "${ECHO_T}no" >&6; }
7606 fi
7607
7608
7609 if test "$FDP" != "echo fdp" ; then
7610
7611 cat >>confdefs.h <<\_ACEOF
7612 #define HAVE_FDP 1
7613 _ACEOF
7614
7615     if test "$llvm_cv_os_type" = "MingW" ; then
7616     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7617   fi
7618
7619 cat >>confdefs.h <<_ACEOF
7620 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7621 _ACEOF
7622
7623 fi
7624 # Extract the first word of "neato", so it can be a program name with args.
7625 set dummy neato; ac_word=$2
7626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7628 if test "${ac_cv_path_NEATO+set}" = set; then
7629   echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631   case $NEATO in
7632   [\\/]* | ?:[\\/]*)
7633   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7634   ;;
7635   *)
7636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7638 do
7639   IFS=$as_save_IFS
7640   test -z "$as_dir" && as_dir=.
7641   for ac_exec_ext in '' $ac_executable_extensions; do
7642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7643     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7645     break 2
7646   fi
7647 done
7648 done
7649 IFS=$as_save_IFS
7650
7651   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7652   ;;
7653 esac
7654 fi
7655 NEATO=$ac_cv_path_NEATO
7656 if test -n "$NEATO"; then
7657   { echo "$as_me:$LINENO: result: $NEATO" >&5
7658 echo "${ECHO_T}$NEATO" >&6; }
7659 else
7660   { echo "$as_me:$LINENO: result: no" >&5
7661 echo "${ECHO_T}no" >&6; }
7662 fi
7663
7664
7665 if test "$NEATO" != "echo neato" ; then
7666
7667 cat >>confdefs.h <<\_ACEOF
7668 #define HAVE_NEATO 1
7669 _ACEOF
7670
7671     if test "$llvm_cv_os_type" = "MingW" ; then
7672     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7673   fi
7674
7675 cat >>confdefs.h <<_ACEOF
7676 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7677 _ACEOF
7678
7679 fi
7680 # Extract the first word of "twopi", so it can be a program name with args.
7681 set dummy twopi; ac_word=$2
7682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7684 if test "${ac_cv_path_TWOPI+set}" = set; then
7685   echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687   case $TWOPI in
7688   [\\/]* | ?:[\\/]*)
7689   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7690   ;;
7691   *)
7692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 for as_dir in $PATH
7694 do
7695   IFS=$as_save_IFS
7696   test -z "$as_dir" && as_dir=.
7697   for ac_exec_ext in '' $ac_executable_extensions; do
7698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7699     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701     break 2
7702   fi
7703 done
7704 done
7705 IFS=$as_save_IFS
7706
7707   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7708   ;;
7709 esac
7710 fi
7711 TWOPI=$ac_cv_path_TWOPI
7712 if test -n "$TWOPI"; then
7713   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7714 echo "${ECHO_T}$TWOPI" >&6; }
7715 else
7716   { echo "$as_me:$LINENO: result: no" >&5
7717 echo "${ECHO_T}no" >&6; }
7718 fi
7719
7720
7721 if test "$TWOPI" != "echo twopi" ; then
7722
7723 cat >>confdefs.h <<\_ACEOF
7724 #define HAVE_TWOPI 1
7725 _ACEOF
7726
7727     if test "$llvm_cv_os_type" = "MingW" ; then
7728     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7729   fi
7730
7731 cat >>confdefs.h <<_ACEOF
7732 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7733 _ACEOF
7734
7735 fi
7736 # Extract the first word of "circo", so it can be a program name with args.
7737 set dummy circo; ac_word=$2
7738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7740 if test "${ac_cv_path_CIRCO+set}" = set; then
7741   echo $ECHO_N "(cached) $ECHO_C" >&6
7742 else
7743   case $CIRCO in
7744   [\\/]* | ?:[\\/]*)
7745   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7746   ;;
7747   *)
7748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7750 do
7751   IFS=$as_save_IFS
7752   test -z "$as_dir" && as_dir=.
7753   for ac_exec_ext in '' $ac_executable_extensions; do
7754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7755     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7757     break 2
7758   fi
7759 done
7760 done
7761 IFS=$as_save_IFS
7762
7763   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7764   ;;
7765 esac
7766 fi
7767 CIRCO=$ac_cv_path_CIRCO
7768 if test -n "$CIRCO"; then
7769   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7770 echo "${ECHO_T}$CIRCO" >&6; }
7771 else
7772   { echo "$as_me:$LINENO: result: no" >&5
7773 echo "${ECHO_T}no" >&6; }
7774 fi
7775
7776
7777 if test "$CIRCO" != "echo circo" ; then
7778
7779 cat >>confdefs.h <<\_ACEOF
7780 #define HAVE_CIRCO 1
7781 _ACEOF
7782
7783     if test "$llvm_cv_os_type" = "MingW" ; then
7784     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7785   fi
7786
7787 cat >>confdefs.h <<_ACEOF
7788 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7789 _ACEOF
7790
7791 fi
7792 for ac_prog in gv gsview32
7793 do
7794   # Extract the first word of "$ac_prog", so it can be a program name with args.
7795 set dummy $ac_prog; ac_word=$2
7796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7798 if test "${ac_cv_path_GV+set}" = set; then
7799   echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801   case $GV in
7802   [\\/]* | ?:[\\/]*)
7803   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7804   ;;
7805   *)
7806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809   IFS=$as_save_IFS
7810   test -z "$as_dir" && as_dir=.
7811   for ac_exec_ext in '' $ac_executable_extensions; do
7812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7813     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7815     break 2
7816   fi
7817 done
7818 done
7819 IFS=$as_save_IFS
7820
7821   ;;
7822 esac
7823 fi
7824 GV=$ac_cv_path_GV
7825 if test -n "$GV"; then
7826   { echo "$as_me:$LINENO: result: $GV" >&5
7827 echo "${ECHO_T}$GV" >&6; }
7828 else
7829   { echo "$as_me:$LINENO: result: no" >&5
7830 echo "${ECHO_T}no" >&6; }
7831 fi
7832
7833
7834   test -n "$GV" && break
7835 done
7836 test -n "$GV" || GV="echo gv"
7837
7838 if test "$GV" != "echo gv" ; then
7839
7840 cat >>confdefs.h <<\_ACEOF
7841 #define HAVE_GV 1
7842 _ACEOF
7843
7844     if test "$llvm_cv_os_type" = "MingW" ; then
7845     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7846   fi
7847
7848 cat >>confdefs.h <<_ACEOF
7849 #define LLVM_PATH_GV "$GV${EXEEXT}"
7850 _ACEOF
7851
7852 fi
7853 # Extract the first word of "dotty", so it can be a program name with args.
7854 set dummy dotty; ac_word=$2
7855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7857 if test "${ac_cv_path_DOTTY+set}" = set; then
7858   echo $ECHO_N "(cached) $ECHO_C" >&6
7859 else
7860   case $DOTTY in
7861   [\\/]* | ?:[\\/]*)
7862   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7863   ;;
7864   *)
7865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866 for as_dir in $PATH
7867 do
7868   IFS=$as_save_IFS
7869   test -z "$as_dir" && as_dir=.
7870   for ac_exec_ext in '' $ac_executable_extensions; do
7871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7872     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7874     break 2
7875   fi
7876 done
7877 done
7878 IFS=$as_save_IFS
7879
7880   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7881   ;;
7882 esac
7883 fi
7884 DOTTY=$ac_cv_path_DOTTY
7885 if test -n "$DOTTY"; then
7886   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7887 echo "${ECHO_T}$DOTTY" >&6; }
7888 else
7889   { echo "$as_me:$LINENO: result: no" >&5
7890 echo "${ECHO_T}no" >&6; }
7891 fi
7892
7893
7894 if test "$DOTTY" != "echo dotty" ; then
7895
7896 cat >>confdefs.h <<\_ACEOF
7897 #define HAVE_DOTTY 1
7898 _ACEOF
7899
7900     if test "$llvm_cv_os_type" = "MingW" ; then
7901     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7902   fi
7903
7904 cat >>confdefs.h <<_ACEOF
7905 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7906 _ACEOF
7907
7908 fi
7909 # Extract the first word of "xdot.py", so it can be a program name with args.
7910 set dummy xdot.py; ac_word=$2
7911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7913 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7914   echo $ECHO_N "(cached) $ECHO_C" >&6
7915 else
7916   case $XDOT_PY in
7917   [\\/]* | ?:[\\/]*)
7918   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7919   ;;
7920   *)
7921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922 for as_dir in $PATH
7923 do
7924   IFS=$as_save_IFS
7925   test -z "$as_dir" && as_dir=.
7926   for ac_exec_ext in '' $ac_executable_extensions; do
7927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7928     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7930     break 2
7931   fi
7932 done
7933 done
7934 IFS=$as_save_IFS
7935
7936   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7937   ;;
7938 esac
7939 fi
7940 XDOT_PY=$ac_cv_path_XDOT_PY
7941 if test -n "$XDOT_PY"; then
7942   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7943 echo "${ECHO_T}$XDOT_PY" >&6; }
7944 else
7945   { echo "$as_me:$LINENO: result: no" >&5
7946 echo "${ECHO_T}no" >&6; }
7947 fi
7948
7949
7950 if test "$XDOT_PY" != "echo xdot.py" ; then
7951
7952 cat >>confdefs.h <<\_ACEOF
7953 #define HAVE_XDOT_PY 1
7954 _ACEOF
7955
7956     if test "$llvm_cv_os_type" = "MingW" ; then
7957     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7958   fi
7959
7960 cat >>confdefs.h <<_ACEOF
7961 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7962 _ACEOF
7963
7964 fi
7965
7966
7967 # Extract the first word of "perl", so it can be a program name with args.
7968 set dummy perl; ac_word=$2
7969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7971 if test "${ac_cv_path_PERL+set}" = set; then
7972   echo $ECHO_N "(cached) $ECHO_C" >&6
7973 else
7974   case $PERL in
7975   [\\/]* | ?:[\\/]*)
7976   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7977   ;;
7978   *)
7979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 for as_dir in $PATH
7981 do
7982   IFS=$as_save_IFS
7983   test -z "$as_dir" && as_dir=.
7984   for ac_exec_ext in '' $ac_executable_extensions; do
7985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7986     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7988     break 2
7989   fi
7990 done
7991 done
7992 IFS=$as_save_IFS
7993
7994   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7995   ;;
7996 esac
7997 fi
7998 PERL=$ac_cv_path_PERL
7999 if test -n "$PERL"; then
8000   { echo "$as_me:$LINENO: result: $PERL" >&5
8001 echo "${ECHO_T}$PERL" >&6; }
8002 else
8003   { echo "$as_me:$LINENO: result: no" >&5
8004 echo "${ECHO_T}no" >&6; }
8005 fi
8006
8007
8008 if test "$PERL" != "none"; then
8009   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8010 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8011   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
8012     { echo "$as_me:$LINENO: result: yes" >&5
8013 echo "${ECHO_T}yes" >&6; }
8014   else
8015     PERL=none
8016     { echo "$as_me:$LINENO: result: not found" >&5
8017 echo "${ECHO_T}not found" >&6; }
8018   fi
8019 fi
8020
8021
8022 if test x"$PERL" = xnone; then
8023    HAVE_PERL=0
8024
8025    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8026 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8027    { (exit 1); exit 1; }; }
8028 else
8029    HAVE_PERL=1
8030
8031 fi
8032
8033 # Find a good install program.  We prefer a C program (faster),
8034 # so one script is as good as another.  But avoid the broken or
8035 # incompatible versions:
8036 # SysV /etc/install, /usr/sbin/install
8037 # SunOS /usr/etc/install
8038 # IRIX /sbin/install
8039 # AIX /bin/install
8040 # AmigaOS /C/install, which installs bootblocks on floppy discs
8041 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8042 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8043 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8044 # OS/2's system install, which has a completely different semantic
8045 # ./install, which can be erroneously created by make from ./install.sh.
8046 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8047 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8048 if test -z "$INSTALL"; then
8049 if test "${ac_cv_path_install+set}" = set; then
8050   echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053 for as_dir in $PATH
8054 do
8055   IFS=$as_save_IFS
8056   test -z "$as_dir" && as_dir=.
8057   # Account for people who put trailing slashes in PATH elements.
8058 case $as_dir/ in
8059   ./ | .// | /cC/* | \
8060   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8061   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8062   /usr/ucb/* ) ;;
8063   *)
8064     # OSF1 and SCO ODT 3.0 have their own names for install.
8065     # Don't use installbsd from OSF since it installs stuff as root
8066     # by default.
8067     for ac_prog in ginstall scoinst install; do
8068       for ac_exec_ext in '' $ac_executable_extensions; do
8069         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8070           if test $ac_prog = install &&
8071             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8072             # AIX install.  It has an incompatible calling convention.
8073             :
8074           elif test $ac_prog = install &&
8075             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8076             # program-specific install script used by HP pwplus--don't use.
8077             :
8078           else
8079             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8080             break 3
8081           fi
8082         fi
8083       done
8084     done
8085     ;;
8086 esac
8087 done
8088 IFS=$as_save_IFS
8089
8090
8091 fi
8092   if test "${ac_cv_path_install+set}" = set; then
8093     INSTALL=$ac_cv_path_install
8094   else
8095     # As a last resort, use the slow shell script.  Don't cache a
8096     # value for INSTALL within a source directory, because that will
8097     # break other packages using the cache if that directory is
8098     # removed, or if the value is a relative name.
8099     INSTALL=$ac_install_sh
8100   fi
8101 fi
8102 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8103 echo "${ECHO_T}$INSTALL" >&6; }
8104
8105 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8106 # It thinks the first close brace ends the variable substitution.
8107 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8108
8109 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8110
8111 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8112
8113 case "$INSTALL" in
8114  [\\/$]* | ?:[\\/]* ) ;;
8115  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8116 esac
8117
8118 # Extract the first word of "bzip2", so it can be a program name with args.
8119 set dummy bzip2; ac_word=$2
8120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8122 if test "${ac_cv_path_BZIP2+set}" = set; then
8123   echo $ECHO_N "(cached) $ECHO_C" >&6
8124 else
8125   case $BZIP2 in
8126   [\\/]* | ?:[\\/]*)
8127   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8128   ;;
8129   *)
8130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131 for as_dir in $PATH
8132 do
8133   IFS=$as_save_IFS
8134   test -z "$as_dir" && as_dir=.
8135   for ac_exec_ext in '' $ac_executable_extensions; do
8136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8137     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8139     break 2
8140   fi
8141 done
8142 done
8143 IFS=$as_save_IFS
8144
8145   ;;
8146 esac
8147 fi
8148 BZIP2=$ac_cv_path_BZIP2
8149 if test -n "$BZIP2"; then
8150   { echo "$as_me:$LINENO: result: $BZIP2" >&5
8151 echo "${ECHO_T}$BZIP2" >&6; }
8152 else
8153   { echo "$as_me:$LINENO: result: no" >&5
8154 echo "${ECHO_T}no" >&6; }
8155 fi
8156
8157
8158 # Extract the first word of "cat", so it can be a program name with args.
8159 set dummy cat; ac_word=$2
8160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8162 if test "${ac_cv_path_CAT+set}" = set; then
8163   echo $ECHO_N "(cached) $ECHO_C" >&6
8164 else
8165   case $CAT in
8166   [\\/]* | ?:[\\/]*)
8167   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8168   ;;
8169   *)
8170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171 for as_dir in $PATH
8172 do
8173   IFS=$as_save_IFS
8174   test -z "$as_dir" && as_dir=.
8175   for ac_exec_ext in '' $ac_executable_extensions; do
8176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8177     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8179     break 2
8180   fi
8181 done
8182 done
8183 IFS=$as_save_IFS
8184
8185   ;;
8186 esac
8187 fi
8188 CAT=$ac_cv_path_CAT
8189 if test -n "$CAT"; then
8190   { echo "$as_me:$LINENO: result: $CAT" >&5
8191 echo "${ECHO_T}$CAT" >&6; }
8192 else
8193   { echo "$as_me:$LINENO: result: no" >&5
8194 echo "${ECHO_T}no" >&6; }
8195 fi
8196
8197
8198 # Extract the first word of "doxygen", so it can be a program name with args.
8199 set dummy doxygen; ac_word=$2
8200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8202 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8203   echo $ECHO_N "(cached) $ECHO_C" >&6
8204 else
8205   case $DOXYGEN in
8206   [\\/]* | ?:[\\/]*)
8207   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8208   ;;
8209   *)
8210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211 for as_dir in $PATH
8212 do
8213   IFS=$as_save_IFS
8214   test -z "$as_dir" && as_dir=.
8215   for ac_exec_ext in '' $ac_executable_extensions; do
8216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8217     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8219     break 2
8220   fi
8221 done
8222 done
8223 IFS=$as_save_IFS
8224
8225   ;;
8226 esac
8227 fi
8228 DOXYGEN=$ac_cv_path_DOXYGEN
8229 if test -n "$DOXYGEN"; then
8230   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8231 echo "${ECHO_T}$DOXYGEN" >&6; }
8232 else
8233   { echo "$as_me:$LINENO: result: no" >&5
8234 echo "${ECHO_T}no" >&6; }
8235 fi
8236
8237
8238 # Extract the first word of "groff", so it can be a program name with args.
8239 set dummy groff; ac_word=$2
8240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8242 if test "${ac_cv_path_GROFF+set}" = set; then
8243   echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245   case $GROFF in
8246   [\\/]* | ?:[\\/]*)
8247   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8248   ;;
8249   *)
8250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 for as_dir in $PATH
8252 do
8253   IFS=$as_save_IFS
8254   test -z "$as_dir" && as_dir=.
8255   for ac_exec_ext in '' $ac_executable_extensions; do
8256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8257     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8259     break 2
8260   fi
8261 done
8262 done
8263 IFS=$as_save_IFS
8264
8265   ;;
8266 esac
8267 fi
8268 GROFF=$ac_cv_path_GROFF
8269 if test -n "$GROFF"; then
8270   { echo "$as_me:$LINENO: result: $GROFF" >&5
8271 echo "${ECHO_T}$GROFF" >&6; }
8272 else
8273   { echo "$as_me:$LINENO: result: no" >&5
8274 echo "${ECHO_T}no" >&6; }
8275 fi
8276
8277
8278 # Extract the first word of "gzip", so it can be a program name with args.
8279 set dummy gzip; ac_word=$2
8280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8282 if test "${ac_cv_path_GZIP+set}" = set; then
8283   echo $ECHO_N "(cached) $ECHO_C" >&6
8284 else
8285   case $GZIP in
8286   [\\/]* | ?:[\\/]*)
8287   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8288   ;;
8289   *)
8290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 for as_dir in $PATH
8292 do
8293   IFS=$as_save_IFS
8294   test -z "$as_dir" && as_dir=.
8295   for ac_exec_ext in '' $ac_executable_extensions; do
8296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8297     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8299     break 2
8300   fi
8301 done
8302 done
8303 IFS=$as_save_IFS
8304
8305   ;;
8306 esac
8307 fi
8308 GZIP=$ac_cv_path_GZIP
8309 if test -n "$GZIP"; then
8310   { echo "$as_me:$LINENO: result: $GZIP" >&5
8311 echo "${ECHO_T}$GZIP" >&6; }
8312 else
8313   { echo "$as_me:$LINENO: result: no" >&5
8314 echo "${ECHO_T}no" >&6; }
8315 fi
8316
8317
8318 # Extract the first word of "pod2html", so it can be a program name with args.
8319 set dummy pod2html; ac_word=$2
8320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8322 if test "${ac_cv_path_POD2HTML+set}" = set; then
8323   echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325   case $POD2HTML in
8326   [\\/]* | ?:[\\/]*)
8327   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8328   ;;
8329   *)
8330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 for as_dir in $PATH
8332 do
8333   IFS=$as_save_IFS
8334   test -z "$as_dir" && as_dir=.
8335   for ac_exec_ext in '' $ac_executable_extensions; do
8336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8337     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8339     break 2
8340   fi
8341 done
8342 done
8343 IFS=$as_save_IFS
8344
8345   ;;
8346 esac
8347 fi
8348 POD2HTML=$ac_cv_path_POD2HTML
8349 if test -n "$POD2HTML"; then
8350   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8351 echo "${ECHO_T}$POD2HTML" >&6; }
8352 else
8353   { echo "$as_me:$LINENO: result: no" >&5
8354 echo "${ECHO_T}no" >&6; }
8355 fi
8356
8357
8358 # Extract the first word of "pod2man", so it can be a program name with args.
8359 set dummy pod2man; ac_word=$2
8360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8362 if test "${ac_cv_path_POD2MAN+set}" = set; then
8363   echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365   case $POD2MAN in
8366   [\\/]* | ?:[\\/]*)
8367   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8368   ;;
8369   *)
8370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 for as_dir in $PATH
8372 do
8373   IFS=$as_save_IFS
8374   test -z "$as_dir" && as_dir=.
8375   for ac_exec_ext in '' $ac_executable_extensions; do
8376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8377     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8379     break 2
8380   fi
8381 done
8382 done
8383 IFS=$as_save_IFS
8384
8385   ;;
8386 esac
8387 fi
8388 POD2MAN=$ac_cv_path_POD2MAN
8389 if test -n "$POD2MAN"; then
8390   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8391 echo "${ECHO_T}$POD2MAN" >&6; }
8392 else
8393   { echo "$as_me:$LINENO: result: no" >&5
8394 echo "${ECHO_T}no" >&6; }
8395 fi
8396
8397
8398 # Extract the first word of "pdfroff", so it can be a program name with args.
8399 set dummy pdfroff; ac_word=$2
8400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8402 if test "${ac_cv_path_PDFROFF+set}" = set; then
8403   echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
8405   case $PDFROFF in
8406   [\\/]* | ?:[\\/]*)
8407   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8408   ;;
8409   *)
8410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8412 do
8413   IFS=$as_save_IFS
8414   test -z "$as_dir" && as_dir=.
8415   for ac_exec_ext in '' $ac_executable_extensions; do
8416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8417     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8419     break 2
8420   fi
8421 done
8422 done
8423 IFS=$as_save_IFS
8424
8425   ;;
8426 esac
8427 fi
8428 PDFROFF=$ac_cv_path_PDFROFF
8429 if test -n "$PDFROFF"; then
8430   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8431 echo "${ECHO_T}$PDFROFF" >&6; }
8432 else
8433   { echo "$as_me:$LINENO: result: no" >&5
8434 echo "${ECHO_T}no" >&6; }
8435 fi
8436
8437
8438 # Extract the first word of "runtest", so it can be a program name with args.
8439 set dummy runtest; ac_word=$2
8440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8442 if test "${ac_cv_path_RUNTEST+set}" = set; then
8443   echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445   case $RUNTEST in
8446   [\\/]* | ?:[\\/]*)
8447   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8448   ;;
8449   *)
8450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451 for as_dir in $PATH
8452 do
8453   IFS=$as_save_IFS
8454   test -z "$as_dir" && as_dir=.
8455   for ac_exec_ext in '' $ac_executable_extensions; do
8456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8457     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8459     break 2
8460   fi
8461 done
8462 done
8463 IFS=$as_save_IFS
8464
8465   ;;
8466 esac
8467 fi
8468 RUNTEST=$ac_cv_path_RUNTEST
8469 if test -n "$RUNTEST"; then
8470   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8471 echo "${ECHO_T}$RUNTEST" >&6; }
8472 else
8473   { echo "$as_me:$LINENO: result: no" >&5
8474 echo "${ECHO_T}no" >&6; }
8475 fi
8476
8477
8478
8479 no_itcl=true
8480 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8481 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8482
8483 # Check whether --with-tclinclude was given.
8484 if test "${with_tclinclude+set}" = set; then
8485   withval=$with_tclinclude; with_tclinclude=${withval}
8486 else
8487   with_tclinclude=''
8488 fi
8489
8490 if test "${ac_cv_path_tclsh+set}" = set; then
8491   echo $ECHO_N "(cached) $ECHO_C" >&6
8492 else
8493
8494 if test x"${with_tclinclude}" != x ; then
8495   if test -f ${with_tclinclude}/tclsh ; then
8496     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8497   elif test -f ${with_tclinclude}/src/tclsh ; then
8498     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8499   else
8500     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8501 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8502    { (exit 1); exit 1; }; }
8503   fi
8504 fi
8505 fi
8506
8507
8508 if test x"${ac_cv_path_tclsh}" = x ; then
8509   { echo "$as_me:$LINENO: result: none" >&5
8510 echo "${ECHO_T}none" >&6; }
8511   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
8512 do
8513   # Extract the first word of "$ac_prog", so it can be a program name with args.
8514 set dummy $ac_prog; ac_word=$2
8515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8517 if test "${ac_cv_path_TCLSH+set}" = set; then
8518   echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else
8520   case $TCLSH in
8521   [\\/]* | ?:[\\/]*)
8522   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8523   ;;
8524   *)
8525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526 for as_dir in $PATH
8527 do
8528   IFS=$as_save_IFS
8529   test -z "$as_dir" && as_dir=.
8530   for ac_exec_ext in '' $ac_executable_extensions; do
8531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8532     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8534     break 2
8535   fi
8536 done
8537 done
8538 IFS=$as_save_IFS
8539
8540   ;;
8541 esac
8542 fi
8543 TCLSH=$ac_cv_path_TCLSH
8544 if test -n "$TCLSH"; then
8545   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8546 echo "${ECHO_T}$TCLSH" >&6; }
8547 else
8548   { echo "$as_me:$LINENO: result: no" >&5
8549 echo "${ECHO_T}no" >&6; }
8550 fi
8551
8552
8553   test -n "$TCLSH" && break
8554 done
8555
8556   if test x"${TCLSH}" = x ; then
8557     ac_cv_path_tclsh='';
8558   else
8559     ac_cv_path_tclsh="${TCLSH}";
8560   fi
8561 else
8562   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8563 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8564   TCLSH="${ac_cv_path_tclsh}"
8565
8566 fi
8567
8568 # Extract the first word of "zip", so it can be a program name with args.
8569 set dummy zip; ac_word=$2
8570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8572 if test "${ac_cv_path_ZIP+set}" = set; then
8573   echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575   case $ZIP in
8576   [\\/]* | ?:[\\/]*)
8577   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8578   ;;
8579   *)
8580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581 for as_dir in $PATH
8582 do
8583   IFS=$as_save_IFS
8584   test -z "$as_dir" && as_dir=.
8585   for ac_exec_ext in '' $ac_executable_extensions; do
8586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8587     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8589     break 2
8590   fi
8591 done
8592 done
8593 IFS=$as_save_IFS
8594
8595   ;;
8596 esac
8597 fi
8598 ZIP=$ac_cv_path_ZIP
8599 if test -n "$ZIP"; then
8600   { echo "$as_me:$LINENO: result: $ZIP" >&5
8601 echo "${ECHO_T}$ZIP" >&6; }
8602 else
8603   { echo "$as_me:$LINENO: result: no" >&5
8604 echo "${ECHO_T}no" >&6; }
8605 fi
8606
8607
8608 for ac_prog in ocamlc
8609 do
8610   # Extract the first word of "$ac_prog", so it can be a program name with args.
8611 set dummy $ac_prog; ac_word=$2
8612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8614 if test "${ac_cv_path_OCAMLC+set}" = set; then
8615   echo $ECHO_N "(cached) $ECHO_C" >&6
8616 else
8617   case $OCAMLC in
8618   [\\/]* | ?:[\\/]*)
8619   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8620   ;;
8621   *)
8622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623 for as_dir in $PATH
8624 do
8625   IFS=$as_save_IFS
8626   test -z "$as_dir" && as_dir=.
8627   for ac_exec_ext in '' $ac_executable_extensions; do
8628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8629     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8631     break 2
8632   fi
8633 done
8634 done
8635 IFS=$as_save_IFS
8636
8637   ;;
8638 esac
8639 fi
8640 OCAMLC=$ac_cv_path_OCAMLC
8641 if test -n "$OCAMLC"; then
8642   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8643 echo "${ECHO_T}$OCAMLC" >&6; }
8644 else
8645   { echo "$as_me:$LINENO: result: no" >&5
8646 echo "${ECHO_T}no" >&6; }
8647 fi
8648
8649
8650   test -n "$OCAMLC" && break
8651 done
8652
8653 for ac_prog in ocamlopt
8654 do
8655   # Extract the first word of "$ac_prog", so it can be a program name with args.
8656 set dummy $ac_prog; ac_word=$2
8657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8659 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8660   echo $ECHO_N "(cached) $ECHO_C" >&6
8661 else
8662   case $OCAMLOPT in
8663   [\\/]* | ?:[\\/]*)
8664   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8665   ;;
8666   *)
8667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668 for as_dir in $PATH
8669 do
8670   IFS=$as_save_IFS
8671   test -z "$as_dir" && as_dir=.
8672   for ac_exec_ext in '' $ac_executable_extensions; do
8673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8674     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8676     break 2
8677   fi
8678 done
8679 done
8680 IFS=$as_save_IFS
8681
8682   ;;
8683 esac
8684 fi
8685 OCAMLOPT=$ac_cv_path_OCAMLOPT
8686 if test -n "$OCAMLOPT"; then
8687   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8688 echo "${ECHO_T}$OCAMLOPT" >&6; }
8689 else
8690   { echo "$as_me:$LINENO: result: no" >&5
8691 echo "${ECHO_T}no" >&6; }
8692 fi
8693
8694
8695   test -n "$OCAMLOPT" && break
8696 done
8697
8698 for ac_prog in ocamldep
8699 do
8700   # Extract the first word of "$ac_prog", so it can be a program name with args.
8701 set dummy $ac_prog; ac_word=$2
8702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8704 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8705   echo $ECHO_N "(cached) $ECHO_C" >&6
8706 else
8707   case $OCAMLDEP in
8708   [\\/]* | ?:[\\/]*)
8709   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8710   ;;
8711   *)
8712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713 for as_dir in $PATH
8714 do
8715   IFS=$as_save_IFS
8716   test -z "$as_dir" && as_dir=.
8717   for ac_exec_ext in '' $ac_executable_extensions; do
8718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8719     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8721     break 2
8722   fi
8723 done
8724 done
8725 IFS=$as_save_IFS
8726
8727   ;;
8728 esac
8729 fi
8730 OCAMLDEP=$ac_cv_path_OCAMLDEP
8731 if test -n "$OCAMLDEP"; then
8732   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8733 echo "${ECHO_T}$OCAMLDEP" >&6; }
8734 else
8735   { echo "$as_me:$LINENO: result: no" >&5
8736 echo "${ECHO_T}no" >&6; }
8737 fi
8738
8739
8740   test -n "$OCAMLDEP" && break
8741 done
8742
8743 for ac_prog in ocamldoc
8744 do
8745   # Extract the first word of "$ac_prog", so it can be a program name with args.
8746 set dummy $ac_prog; ac_word=$2
8747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8749 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8750   echo $ECHO_N "(cached) $ECHO_C" >&6
8751 else
8752   case $OCAMLDOC in
8753   [\\/]* | ?:[\\/]*)
8754   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8755   ;;
8756   *)
8757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758 for as_dir in $PATH
8759 do
8760   IFS=$as_save_IFS
8761   test -z "$as_dir" && as_dir=.
8762   for ac_exec_ext in '' $ac_executable_extensions; do
8763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8764     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8766     break 2
8767   fi
8768 done
8769 done
8770 IFS=$as_save_IFS
8771
8772   ;;
8773 esac
8774 fi
8775 OCAMLDOC=$ac_cv_path_OCAMLDOC
8776 if test -n "$OCAMLDOC"; then
8777   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8778 echo "${ECHO_T}$OCAMLDOC" >&6; }
8779 else
8780   { echo "$as_me:$LINENO: result: no" >&5
8781 echo "${ECHO_T}no" >&6; }
8782 fi
8783
8784
8785   test -n "$OCAMLDOC" && break
8786 done
8787
8788 for ac_prog in gas as
8789 do
8790   # Extract the first word of "$ac_prog", so it can be a program name with args.
8791 set dummy $ac_prog; ac_word=$2
8792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8794 if test "${ac_cv_path_GAS+set}" = set; then
8795   echo $ECHO_N "(cached) $ECHO_C" >&6
8796 else
8797   case $GAS in
8798   [\\/]* | ?:[\\/]*)
8799   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8800   ;;
8801   *)
8802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803 for as_dir in $PATH
8804 do
8805   IFS=$as_save_IFS
8806   test -z "$as_dir" && as_dir=.
8807   for ac_exec_ext in '' $ac_executable_extensions; do
8808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8809     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8811     break 2
8812   fi
8813 done
8814 done
8815 IFS=$as_save_IFS
8816
8817   ;;
8818 esac
8819 fi
8820 GAS=$ac_cv_path_GAS
8821 if test -n "$GAS"; then
8822   { echo "$as_me:$LINENO: result: $GAS" >&5
8823 echo "${ECHO_T}$GAS" >&6; }
8824 else
8825   { echo "$as_me:$LINENO: result: no" >&5
8826 echo "${ECHO_T}no" >&6; }
8827 fi
8828
8829
8830   test -n "$GAS" && break
8831 done
8832
8833
8834 { echo "$as_me:$LINENO: checking for linker version" >&5
8835 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8836 if test "${llvm_cv_link_version+set}" = set; then
8837   echo $ECHO_N "(cached) $ECHO_C" >&6
8838 else
8839
8840    version_string="$(ld -v 2>&1 | head -1)"
8841
8842    # Check for ld64.
8843    if (echo "$version_string" | grep -q "ld64"); then
8844      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8845    else
8846      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8847    fi
8848
8849 fi
8850 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8851 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8852
8853 cat >>confdefs.h <<_ACEOF
8854 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8855 _ACEOF
8856
8857
8858
8859 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8860 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8861 if test "${llvm_cv_link_use_r+set}" = set; then
8862   echo $ECHO_N "(cached) $ECHO_C" >&6
8863 else
8864    ac_ext=c
8865 ac_cpp='$CPP $CPPFLAGS'
8866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8869
8870   oldcflags="$CFLAGS"
8871   CFLAGS="$CFLAGS -Wl,-R."
8872   cat >conftest.$ac_ext <<_ACEOF
8873 /* confdefs.h.  */
8874 _ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h.  */
8878
8879 int
8880 main ()
8881 {
8882
8883   ;
8884   return 0;
8885 }
8886 _ACEOF
8887 rm -f conftest.$ac_objext conftest$ac_exeext
8888 if { (ac_try="$ac_link"
8889 case "(($ac_try" in
8890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8891   *) ac_try_echo=$ac_try;;
8892 esac
8893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8894   (eval "$ac_link") 2>conftest.er1
8895   ac_status=$?
8896   grep -v '^ *+' conftest.er1 >conftest.err
8897   rm -f conftest.er1
8898   cat conftest.err >&5
8899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900   (exit $ac_status); } &&
8901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8902   { (case "(($ac_try" in
8903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904   *) ac_try_echo=$ac_try;;
8905 esac
8906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907   (eval "$ac_try") 2>&5
8908   ac_status=$?
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   (exit $ac_status); }; } &&
8911          { ac_try='test -s conftest$ac_exeext'
8912   { (case "(($ac_try" in
8913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8914   *) ac_try_echo=$ac_try;;
8915 esac
8916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8917   (eval "$ac_try") 2>&5
8918   ac_status=$?
8919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920   (exit $ac_status); }; }; then
8921   llvm_cv_link_use_r=yes
8922 else
8923   echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.$ac_ext >&5
8925
8926         llvm_cv_link_use_r=no
8927 fi
8928
8929 rm -f core conftest.err conftest.$ac_objext \
8930       conftest$ac_exeext conftest.$ac_ext
8931   CFLAGS="$oldcflags"
8932   ac_ext=c
8933 ac_cpp='$CPP $CPPFLAGS'
8934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8937
8938
8939 fi
8940 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8941 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8942 if test "$llvm_cv_link_use_r" = yes ; then
8943
8944 cat >>confdefs.h <<\_ACEOF
8945 #define HAVE_LINK_R 1
8946 _ACEOF
8947
8948   fi
8949
8950
8951 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8952 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8953 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8954   echo $ECHO_N "(cached) $ECHO_C" >&6
8955 else
8956    ac_ext=c
8957 ac_cpp='$CPP $CPPFLAGS'
8958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8961
8962   oldcflags="$CFLAGS"
8963   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8964   cat >conftest.$ac_ext <<_ACEOF
8965 /* confdefs.h.  */
8966 _ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h.  */
8970
8971 int
8972 main ()
8973 {
8974
8975   ;
8976   return 0;
8977 }
8978 _ACEOF
8979 rm -f conftest.$ac_objext conftest$ac_exeext
8980 if { (ac_try="$ac_link"
8981 case "(($ac_try" in
8982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983   *) ac_try_echo=$ac_try;;
8984 esac
8985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8986   (eval "$ac_link") 2>conftest.er1
8987   ac_status=$?
8988   grep -v '^ *+' conftest.er1 >conftest.err
8989   rm -f conftest.er1
8990   cat conftest.err >&5
8991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992   (exit $ac_status); } &&
8993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8994   { (case "(($ac_try" in
8995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996   *) ac_try_echo=$ac_try;;
8997 esac
8998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999   (eval "$ac_try") 2>&5
9000   ac_status=$?
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); }; } &&
9003          { ac_try='test -s conftest$ac_exeext'
9004   { (case "(($ac_try" in
9005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006   *) ac_try_echo=$ac_try;;
9007 esac
9008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9009   (eval "$ac_try") 2>&5
9010   ac_status=$?
9011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); }; }; then
9013   llvm_cv_link_use_export_dynamic=yes
9014 else
9015   echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9017
9018         llvm_cv_link_use_export_dynamic=no
9019 fi
9020
9021 rm -f core conftest.err conftest.$ac_objext \
9022       conftest$ac_exeext conftest.$ac_ext
9023   CFLAGS="$oldcflags"
9024   ac_ext=c
9025 ac_cpp='$CPP $CPPFLAGS'
9026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9029
9030
9031 fi
9032 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9033 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9034 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9035
9036 cat >>confdefs.h <<\_ACEOF
9037 #define HAVE_LINK_EXPORT_DYNAMIC 1
9038 _ACEOF
9039
9040   fi
9041
9042
9043 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9044 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9045 if test "${llvm_cv_link_use_version_script+set}" = set; then
9046   echo $ECHO_N "(cached) $ECHO_C" >&6
9047 else
9048    ac_ext=c
9049 ac_cpp='$CPP $CPPFLAGS'
9050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9053
9054   oldcflags="$CFLAGS"
9055
9056   # The following code is from the autoconf manual,
9057   # "11.13: Limitations of Usual Tools".
9058   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9059   # Use mktemp if possible; otherwise fall back on mkdir,
9060   # with $RANDOM to make collisions less likely.
9061   : ${TMPDIR=/tmp}
9062   {
9063     tmp=`
9064       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9065     ` &&
9066     test -n "$tmp" && test -d "$tmp"
9067   } || {
9068     tmp=$TMPDIR/foo$$-$RANDOM
9069     (umask 077 && mkdir "$tmp")
9070   } || exit $?
9071
9072   echo "{" > "$tmp/export.map"
9073   echo "  global: main;" >> "$tmp/export.map"
9074   echo "  local: *;" >> "$tmp/export.map"
9075   echo "};" >> "$tmp/export.map"
9076
9077   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9078   cat >conftest.$ac_ext <<_ACEOF
9079 /* confdefs.h.  */
9080 _ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h.  */
9084
9085 int
9086 main ()
9087 {
9088
9089   ;
9090   return 0;
9091 }
9092 _ACEOF
9093 rm -f conftest.$ac_objext conftest$ac_exeext
9094 if { (ac_try="$ac_link"
9095 case "(($ac_try" in
9096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9097   *) ac_try_echo=$ac_try;;
9098 esac
9099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9100   (eval "$ac_link") 2>conftest.er1
9101   ac_status=$?
9102   grep -v '^ *+' conftest.er1 >conftest.err
9103   rm -f conftest.er1
9104   cat conftest.err >&5
9105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106   (exit $ac_status); } &&
9107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9108   { (case "(($ac_try" in
9109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110   *) ac_try_echo=$ac_try;;
9111 esac
9112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113   (eval "$ac_try") 2>&5
9114   ac_status=$?
9115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116   (exit $ac_status); }; } &&
9117          { ac_try='test -s conftest$ac_exeext'
9118   { (case "(($ac_try" in
9119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120   *) ac_try_echo=$ac_try;;
9121 esac
9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123   (eval "$ac_try") 2>&5
9124   ac_status=$?
9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126   (exit $ac_status); }; }; then
9127   llvm_cv_link_use_version_script=yes
9128 else
9129   echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9131
9132         llvm_cv_link_use_version_script=no
9133 fi
9134
9135 rm -f core conftest.err conftest.$ac_objext \
9136       conftest$ac_exeext conftest.$ac_ext
9137   rm "$tmp/export.map"
9138   rmdir "$tmp"
9139   CFLAGS="$oldcflags"
9140   ac_ext=c
9141 ac_cpp='$CPP $CPPFLAGS'
9142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9145
9146
9147 fi
9148 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9149 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9150 if test "$llvm_cv_link_use_version_script" = yes ; then
9151   HAVE_LINK_VERSION_SCRIPT=1
9152
9153   fi
9154
9155
9156
9157
9158 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9159 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9160 if test "${ac_cv_c_const+set}" = set; then
9161   echo $ECHO_N "(cached) $ECHO_C" >&6
9162 else
9163   cat >conftest.$ac_ext <<_ACEOF
9164 /* confdefs.h.  */
9165 _ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h.  */
9169
9170 int
9171 main ()
9172 {
9173 /* FIXME: Include the comments suggested by Paul. */
9174 #ifndef __cplusplus
9175   /* Ultrix mips cc rejects this.  */
9176   typedef int charset[2];
9177   const charset x;
9178   /* SunOS 4.1.1 cc rejects this.  */
9179   char const *const *ccp;
9180   char **p;
9181   /* NEC SVR4.0.2 mips cc rejects this.  */
9182   struct point {int x, y;};
9183   static struct point const zero = {0,0};
9184   /* AIX XL C 1.02.0.0 rejects this.
9185      It does not let you subtract one const X* pointer from another in
9186      an arm of an if-expression whose if-part is not a constant
9187      expression */
9188   const char *g = "string";
9189   ccp = &g + (g ? g-g : 0);
9190   /* HPUX 7.0 cc rejects these. */
9191   ++ccp;
9192   p = (char**) ccp;
9193   ccp = (char const *const *) p;
9194   { /* SCO 3.2v4 cc rejects this.  */
9195     char *t;
9196     char const *s = 0 ? (char *) 0 : (char const *) 0;
9197
9198     *t++ = 0;
9199     if (s) return 0;
9200   }
9201   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9202     int x[] = {25, 17};
9203     const int *foo = &x[0];
9204     ++foo;
9205   }
9206   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9207     typedef const int *iptr;
9208     iptr p = 0;
9209     ++p;
9210   }
9211   { /* AIX XL C 1.02.0.0 rejects this saying
9212        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9213     struct s { int j; const int *ap[3]; };
9214     struct s *b; b->j = 5;
9215   }
9216   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9217     const int foo = 10;
9218     if (!foo) return 0;
9219   }
9220   return !x[0] && !zero.x;
9221 #endif
9222
9223   ;
9224   return 0;
9225 }
9226 _ACEOF
9227 rm -f conftest.$ac_objext
9228 if { (ac_try="$ac_compile"
9229 case "(($ac_try" in
9230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231   *) ac_try_echo=$ac_try;;
9232 esac
9233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234   (eval "$ac_compile") 2>conftest.er1
9235   ac_status=$?
9236   grep -v '^ *+' conftest.er1 >conftest.err
9237   rm -f conftest.er1
9238   cat conftest.err >&5
9239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240   (exit $ac_status); } &&
9241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9242   { (case "(($ac_try" in
9243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244   *) ac_try_echo=$ac_try;;
9245 esac
9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247   (eval "$ac_try") 2>&5
9248   ac_status=$?
9249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250   (exit $ac_status); }; } &&
9251          { ac_try='test -s conftest.$ac_objext'
9252   { (case "(($ac_try" in
9253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9254   *) ac_try_echo=$ac_try;;
9255 esac
9256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9257   (eval "$ac_try") 2>&5
9258   ac_status=$?
9259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260   (exit $ac_status); }; }; then
9261   ac_cv_c_const=yes
9262 else
9263   echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9265
9266         ac_cv_c_const=no
9267 fi
9268
9269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9270 fi
9271 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9272 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9273 if test $ac_cv_c_const = no; then
9274
9275 cat >>confdefs.h <<\_ACEOF
9276 #define const
9277 _ACEOF
9278
9279 fi
9280
9281
9282
9283
9284
9285
9286 ac_header_dirent=no
9287 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9288   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9289 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9290 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9292   echo $ECHO_N "(cached) $ECHO_C" >&6
9293 else
9294   cat >conftest.$ac_ext <<_ACEOF
9295 /* confdefs.h.  */
9296 _ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h.  */
9300 #include <sys/types.h>
9301 #include <$ac_hdr>
9302
9303 int
9304 main ()
9305 {
9306 if ((DIR *) 0)
9307 return 0;
9308   ;
9309   return 0;
9310 }
9311 _ACEOF
9312 rm -f conftest.$ac_objext
9313 if { (ac_try="$ac_compile"
9314 case "(($ac_try" in
9315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9316   *) ac_try_echo=$ac_try;;
9317 esac
9318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9319   (eval "$ac_compile") 2>conftest.er1
9320   ac_status=$?
9321   grep -v '^ *+' conftest.er1 >conftest.err
9322   rm -f conftest.er1
9323   cat conftest.err >&5
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); } &&
9326          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9327   { (case "(($ac_try" in
9328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9329   *) ac_try_echo=$ac_try;;
9330 esac
9331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9332   (eval "$ac_try") 2>&5
9333   ac_status=$?
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); }; } &&
9336          { ac_try='test -s conftest.$ac_objext'
9337   { (case "(($ac_try" in
9338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339   *) ac_try_echo=$ac_try;;
9340 esac
9341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342   (eval "$ac_try") 2>&5
9343   ac_status=$?
9344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345   (exit $ac_status); }; }; then
9346   eval "$as_ac_Header=yes"
9347 else
9348   echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9350
9351         eval "$as_ac_Header=no"
9352 fi
9353
9354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9355 fi
9356 ac_res=`eval echo '${'$as_ac_Header'}'`
9357                { echo "$as_me:$LINENO: result: $ac_res" >&5
9358 echo "${ECHO_T}$ac_res" >&6; }
9359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9360   cat >>confdefs.h <<_ACEOF
9361 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9362 _ACEOF
9363
9364 ac_header_dirent=$ac_hdr; break
9365 fi
9366
9367 done
9368 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9369 if test $ac_header_dirent = dirent.h; then
9370   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9371 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9372 if test "${ac_cv_search_opendir+set}" = set; then
9373   echo $ECHO_N "(cached) $ECHO_C" >&6
9374 else
9375   ac_func_search_save_LIBS=$LIBS
9376 cat >conftest.$ac_ext <<_ACEOF
9377 /* confdefs.h.  */
9378 _ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h.  */
9382
9383 /* Override any GCC internal prototype to avoid an error.
9384    Use char because int might match the return type of a GCC
9385    builtin and then its argument prototype would still apply.  */
9386 #ifdef __cplusplus
9387 extern "C"
9388 #endif
9389 char opendir ();
9390 int
9391 main ()
9392 {
9393 return opendir ();
9394   ;
9395   return 0;
9396 }
9397 _ACEOF
9398 for ac_lib in '' dir; do
9399   if test -z "$ac_lib"; then
9400     ac_res="none required"
9401   else
9402     ac_res=-l$ac_lib
9403     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9404   fi
9405   rm -f conftest.$ac_objext conftest$ac_exeext
9406 if { (ac_try="$ac_link"
9407 case "(($ac_try" in
9408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409   *) ac_try_echo=$ac_try;;
9410 esac
9411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412   (eval "$ac_link") 2>conftest.er1
9413   ac_status=$?
9414   grep -v '^ *+' conftest.er1 >conftest.err
9415   rm -f conftest.er1
9416   cat conftest.err >&5
9417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418   (exit $ac_status); } &&
9419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9420   { (case "(($ac_try" in
9421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9422   *) ac_try_echo=$ac_try;;
9423 esac
9424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9425   (eval "$ac_try") 2>&5
9426   ac_status=$?
9427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428   (exit $ac_status); }; } &&
9429          { ac_try='test -s conftest$ac_exeext'
9430   { (case "(($ac_try" in
9431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9432   *) ac_try_echo=$ac_try;;
9433 esac
9434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9435   (eval "$ac_try") 2>&5
9436   ac_status=$?
9437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438   (exit $ac_status); }; }; then
9439   ac_cv_search_opendir=$ac_res
9440 else
9441   echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9443
9444
9445 fi
9446
9447 rm -f core conftest.err conftest.$ac_objext \
9448       conftest$ac_exeext
9449   if test "${ac_cv_search_opendir+set}" = set; then
9450   break
9451 fi
9452 done
9453 if test "${ac_cv_search_opendir+set}" = set; then
9454   :
9455 else
9456   ac_cv_search_opendir=no
9457 fi
9458 rm conftest.$ac_ext
9459 LIBS=$ac_func_search_save_LIBS
9460 fi
9461 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9462 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9463 ac_res=$ac_cv_search_opendir
9464 if test "$ac_res" != no; then
9465   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9466
9467 fi
9468
9469 else
9470   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9471 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9472 if test "${ac_cv_search_opendir+set}" = set; then
9473   echo $ECHO_N "(cached) $ECHO_C" >&6
9474 else
9475   ac_func_search_save_LIBS=$LIBS
9476 cat >conftest.$ac_ext <<_ACEOF
9477 /* confdefs.h.  */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h.  */
9482
9483 /* Override any GCC internal prototype to avoid an error.
9484    Use char because int might match the return type of a GCC
9485    builtin and then its argument prototype would still apply.  */
9486 #ifdef __cplusplus
9487 extern "C"
9488 #endif
9489 char opendir ();
9490 int
9491 main ()
9492 {
9493 return opendir ();
9494   ;
9495   return 0;
9496 }
9497 _ACEOF
9498 for ac_lib in '' x; do
9499   if test -z "$ac_lib"; then
9500     ac_res="none required"
9501   else
9502     ac_res=-l$ac_lib
9503     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9504   fi
9505   rm -f conftest.$ac_objext conftest$ac_exeext
9506 if { (ac_try="$ac_link"
9507 case "(($ac_try" in
9508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9509   *) ac_try_echo=$ac_try;;
9510 esac
9511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9512   (eval "$ac_link") 2>conftest.er1
9513   ac_status=$?
9514   grep -v '^ *+' conftest.er1 >conftest.err
9515   rm -f conftest.er1
9516   cat conftest.err >&5
9517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518   (exit $ac_status); } &&
9519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9520   { (case "(($ac_try" in
9521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522   *) ac_try_echo=$ac_try;;
9523 esac
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525   (eval "$ac_try") 2>&5
9526   ac_status=$?
9527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528   (exit $ac_status); }; } &&
9529          { ac_try='test -s conftest$ac_exeext'
9530   { (case "(($ac_try" in
9531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532   *) ac_try_echo=$ac_try;;
9533 esac
9534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535   (eval "$ac_try") 2>&5
9536   ac_status=$?
9537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538   (exit $ac_status); }; }; then
9539   ac_cv_search_opendir=$ac_res
9540 else
9541   echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.$ac_ext >&5
9543
9544
9545 fi
9546
9547 rm -f core conftest.err conftest.$ac_objext \
9548       conftest$ac_exeext
9549   if test "${ac_cv_search_opendir+set}" = set; then
9550   break
9551 fi
9552 done
9553 if test "${ac_cv_search_opendir+set}" = set; then
9554   :
9555 else
9556   ac_cv_search_opendir=no
9557 fi
9558 rm conftest.$ac_ext
9559 LIBS=$ac_func_search_save_LIBS
9560 fi
9561 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9562 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9563 ac_res=$ac_cv_search_opendir
9564 if test "$ac_res" != no; then
9565   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9566
9567 fi
9568
9569 fi
9570
9571
9572 for ac_header in dlfcn.h
9573 do
9574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9576   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9579   echo $ECHO_N "(cached) $ECHO_C" >&6
9580 fi
9581 ac_res=`eval echo '${'$as_ac_Header'}'`
9582                { echo "$as_me:$LINENO: result: $ac_res" >&5
9583 echo "${ECHO_T}$ac_res" >&6; }
9584 else
9585   # Is the header compilable?
9586 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9588 cat >conftest.$ac_ext <<_ACEOF
9589 /* confdefs.h.  */
9590 _ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h.  */
9594 $ac_includes_default
9595 #include <$ac_header>
9596 _ACEOF
9597 rm -f conftest.$ac_objext
9598 if { (ac_try="$ac_compile"
9599 case "(($ac_try" in
9600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601   *) ac_try_echo=$ac_try;;
9602 esac
9603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604   (eval "$ac_compile") 2>conftest.er1
9605   ac_status=$?
9606   grep -v '^ *+' conftest.er1 >conftest.err
9607   rm -f conftest.er1
9608   cat conftest.err >&5
9609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610   (exit $ac_status); } &&
9611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9612   { (case "(($ac_try" in
9613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614   *) ac_try_echo=$ac_try;;
9615 esac
9616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617   (eval "$ac_try") 2>&5
9618   ac_status=$?
9619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620   (exit $ac_status); }; } &&
9621          { ac_try='test -s conftest.$ac_objext'
9622   { (case "(($ac_try" in
9623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624   *) ac_try_echo=$ac_try;;
9625 esac
9626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627   (eval "$ac_try") 2>&5
9628   ac_status=$?
9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); }; }; then
9631   ac_header_compiler=yes
9632 else
9633   echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9635
9636         ac_header_compiler=no
9637 fi
9638
9639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9641 echo "${ECHO_T}$ac_header_compiler" >&6; }
9642
9643 # Is the header present?
9644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9646 cat >conftest.$ac_ext <<_ACEOF
9647 /* confdefs.h.  */
9648 _ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h.  */
9652 #include <$ac_header>
9653 _ACEOF
9654 if { (ac_try="$ac_cpp conftest.$ac_ext"
9655 case "(($ac_try" in
9656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657   *) ac_try_echo=$ac_try;;
9658 esac
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9661   ac_status=$?
9662   grep -v '^ *+' conftest.er1 >conftest.err
9663   rm -f conftest.er1
9664   cat conftest.err >&5
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); } >/dev/null; then
9667   if test -s conftest.err; then
9668     ac_cpp_err=$ac_c_preproc_warn_flag
9669     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9670   else
9671     ac_cpp_err=
9672   fi
9673 else
9674   ac_cpp_err=yes
9675 fi
9676 if test -z "$ac_cpp_err"; then
9677   ac_header_preproc=yes
9678 else
9679   echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9681
9682   ac_header_preproc=no
9683 fi
9684
9685 rm -f conftest.err conftest.$ac_ext
9686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9687 echo "${ECHO_T}$ac_header_preproc" >&6; }
9688
9689 # So?  What about this header?
9690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9691   yes:no: )
9692     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9696     ac_header_preproc=yes
9697     ;;
9698   no:yes:* )
9699     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9701     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9702 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9703     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9705     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9706 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9709     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9711     ( cat <<\_ASBOX
9712 ## ----------------------------------- ##
9713 ## Report this to llvmbugs@cs.uiuc.edu ##
9714 ## ----------------------------------- ##
9715 _ASBOX
9716      ) | sed "s/^/$as_me: WARNING:     /" >&2
9717     ;;
9718 esac
9719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9722   echo $ECHO_N "(cached) $ECHO_C" >&6
9723 else
9724   eval "$as_ac_Header=\$ac_header_preproc"
9725 fi
9726 ac_res=`eval echo '${'$as_ac_Header'}'`
9727                { echo "$as_me:$LINENO: result: $ac_res" >&5
9728 echo "${ECHO_T}$ac_res" >&6; }
9729
9730 fi
9731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9732   cat >>confdefs.h <<_ACEOF
9733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9734 _ACEOF
9735
9736 fi
9737
9738 done
9739
9740 # Check whether --enable-ltdl-install was given.
9741 if test "${enable_ltdl_install+set}" = set; then
9742   enableval=$enable_ltdl_install;
9743 fi
9744
9745
9746
9747
9748 if test x"${enable_ltdl_install-no}" != xno; then
9749   INSTALL_LTDL_TRUE=
9750   INSTALL_LTDL_FALSE='#'
9751 else
9752   INSTALL_LTDL_TRUE='#'
9753   INSTALL_LTDL_FALSE=
9754 fi
9755
9756
9757
9758 if test x"${enable_ltdl_convenience-no}" != xno; then
9759   CONVENIENCE_LTDL_TRUE=
9760   CONVENIENCE_LTDL_FALSE='#'
9761 else
9762   CONVENIENCE_LTDL_TRUE='#'
9763   CONVENIENCE_LTDL_FALSE=
9764 fi
9765
9766
9767 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9768 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9769 library_names_spec=
9770 libname_spec='lib$name'
9771 soname_spec=
9772 shrext_cmds=".so"
9773 postinstall_cmds=
9774 postuninstall_cmds=
9775 finish_cmds=
9776 finish_eval=
9777 shlibpath_var=
9778 shlibpath_overrides_runpath=unknown
9779 version_type=none
9780 dynamic_linker="$host_os ld.so"
9781 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9782 if test "$GCC" = yes; then
9783   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9784   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9785     # if the path contains ";" then we assume it to be the separator
9786     # otherwise default to the standard path separator (i.e. ":") - it is
9787     # assumed that no part of a normal pathname contains ";" but that should
9788     # okay in the real world where ";" in dirpaths is itself problematic.
9789     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9790   else
9791     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9792   fi
9793 else
9794   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9795 fi
9796 need_lib_prefix=unknown
9797 hardcode_into_libs=no
9798
9799 # when you set need_version to no, make sure it does not cause -set_version
9800 # flags to be left without arguments
9801 need_version=unknown
9802
9803 case $host_os in
9804 aix3*)
9805   version_type=linux
9806   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9807   shlibpath_var=LIBPATH
9808
9809   # AIX 3 has no versioning support, so we append a major version to the name.
9810   soname_spec='${libname}${release}${shared_ext}$major'
9811   ;;
9812
9813 aix4* | aix5*)
9814   version_type=linux
9815   need_lib_prefix=no
9816   need_version=no
9817   hardcode_into_libs=yes
9818   if test "$host_cpu" = ia64; then
9819     # AIX 5 supports IA64
9820     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9821     shlibpath_var=LD_LIBRARY_PATH
9822   else
9823     # With GCC up to 2.95.x, collect2 would create an import file
9824     # for dependence libraries.  The import file would start with
9825     # the line `#! .'.  This would cause the generated library to
9826     # depend on `.', always an invalid library.  This was fixed in
9827     # development snapshots of GCC prior to 3.0.
9828     case $host_os in
9829       aix4 | aix4.[01] | aix4.[01].*)
9830       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9831            echo ' yes '
9832            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9833         :
9834       else
9835         can_build_shared=no
9836       fi
9837       ;;
9838     esac
9839     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9840     # soname into executable. Probably we can add versioning support to
9841     # collect2, so additional links can be useful in future.
9842     if test "$aix_use_runtimelinking" = yes; then
9843       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9844       # instead of lib<name>.a to let people know that these are not
9845       # typical AIX shared libraries.
9846       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847     else
9848       # We preserve .a as extension for shared libraries through AIX4.2
9849       # and later when we are not doing run time linking.
9850       library_names_spec='${libname}${release}.a $libname.a'
9851       soname_spec='${libname}${release}${shared_ext}$major'
9852     fi
9853     shlibpath_var=LIBPATH
9854   fi
9855   ;;
9856
9857 amigaos*)
9858   library_names_spec='$libname.ixlibrary $libname.a'
9859   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9860   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'
9861   ;;
9862
9863 beos*)
9864   library_names_spec='${libname}${shared_ext}'
9865   dynamic_linker="$host_os ld.so"
9866   shlibpath_var=LIBRARY_PATH
9867   ;;
9868
9869 bsdi[45]*)
9870   version_type=linux
9871   need_version=no
9872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9873   soname_spec='${libname}${release}${shared_ext}$major'
9874   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9875   shlibpath_var=LD_LIBRARY_PATH
9876   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9877   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9878   # the default ld.so.conf also contains /usr/contrib/lib and
9879   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9880   # libtool to hard-code these into programs
9881   ;;
9882
9883 cygwin* | mingw* | pw32*)
9884   version_type=windows
9885   shrext_cmds=".dll"
9886   need_version=no
9887   need_lib_prefix=no
9888
9889   case $GCC,$host_os in
9890   yes,cygwin* | yes,mingw* | yes,pw32*)
9891     library_names_spec='$libname.dll.a'
9892     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9893     postinstall_cmds='base_file=`basename \${file}`~
9894       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9895       dldir=$destdir/`dirname \$dlpath`~
9896       test -d \$dldir || mkdir -p \$dldir~
9897       $install_prog $dir/$dlname \$dldir/$dlname~
9898       chmod a+x \$dldir/$dlname'
9899     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9900       dlpath=$dir/\$dldll~
9901        $rm \$dlpath'
9902     shlibpath_overrides_runpath=yes
9903
9904     case $host_os in
9905     cygwin*)
9906       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9907       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9908       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9909       ;;
9910     mingw*)
9911       # MinGW DLLs use traditional 'lib' prefix
9912       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9913       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9914       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9915         # It is most probably a Windows format PATH printed by
9916         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9917         # path with ; separators, and with drive letters. We can handle the
9918         # drive letters (cygwin fileutils understands them), so leave them,
9919         # especially as we might pass files found there to a mingw objdump,
9920         # which wouldn't understand a cygwinified path. Ahh.
9921         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9922       else
9923         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9924       fi
9925       ;;
9926     pw32*)
9927       # pw32 DLLs use 'pw' prefix rather than 'lib'
9928       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9929       ;;
9930     esac
9931     ;;
9932
9933   *)
9934     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9935     ;;
9936   esac
9937   dynamic_linker='Win32 ld.exe'
9938   # FIXME: first we should search . and the directory the executable is in
9939   shlibpath_var=PATH
9940   ;;
9941
9942 darwin* | rhapsody*)
9943   dynamic_linker="$host_os dyld"
9944   version_type=darwin
9945   need_lib_prefix=no
9946   need_version=no
9947   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9948   soname_spec='${libname}${release}${major}$shared_ext'
9949   shlibpath_overrides_runpath=yes
9950   shlibpath_var=DYLD_LIBRARY_PATH
9951   shrext_cmds='.dylib'
9952   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9953   if test "$GCC" = yes; then
9954     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"`
9955   else
9956     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9957   fi
9958   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9959   ;;
9960
9961 dgux*)
9962   version_type=linux
9963   need_lib_prefix=no
9964   need_version=no
9965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9966   soname_spec='${libname}${release}${shared_ext}$major'
9967   shlibpath_var=LD_LIBRARY_PATH
9968   ;;
9969
9970 freebsd1*)
9971   dynamic_linker=no
9972   ;;
9973
9974 kfreebsd*-gnu)
9975   version_type=linux
9976   need_lib_prefix=no
9977   need_version=no
9978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9979   soname_spec='${libname}${release}${shared_ext}$major'
9980   shlibpath_var=LD_LIBRARY_PATH
9981   shlibpath_overrides_runpath=no
9982   hardcode_into_libs=yes
9983   dynamic_linker='GNU ld.so'
9984   ;;
9985
9986 freebsd* | dragonfly*)
9987   # DragonFly does not have aout.  When/if they implement a new
9988   # versioning mechanism, adjust this.
9989   if test -x /usr/bin/objformat; then
9990     objformat=`/usr/bin/objformat`
9991   else
9992     case $host_os in
9993     freebsd[123]*) objformat=aout ;;
9994     *) objformat=elf ;;
9995     esac
9996   fi
9997   version_type=freebsd-$objformat
9998   case $version_type in
9999     freebsd-elf*)
10000       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10001       need_version=no
10002       need_lib_prefix=no
10003       ;;
10004     freebsd-*)
10005       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10006       need_version=yes
10007       ;;
10008   esac
10009   shlibpath_var=LD_LIBRARY_PATH
10010   case $host_os in
10011   freebsd2*)
10012     shlibpath_overrides_runpath=yes
10013     ;;
10014   freebsd3.[01]* | freebsdelf3.[01]*)
10015     shlibpath_overrides_runpath=yes
10016     hardcode_into_libs=yes
10017     ;;
10018   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10019   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10020     shlibpath_overrides_runpath=no
10021     hardcode_into_libs=yes
10022     ;;
10023   freebsd*) # from 4.6 on
10024     shlibpath_overrides_runpath=yes
10025     hardcode_into_libs=yes
10026     ;;
10027   esac
10028   ;;
10029
10030 gnu*)
10031   version_type=linux
10032   need_lib_prefix=no
10033   need_version=no
10034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10035   soname_spec='${libname}${release}${shared_ext}$major'
10036   shlibpath_var=LD_LIBRARY_PATH
10037   hardcode_into_libs=yes
10038   ;;
10039
10040 hpux9* | hpux10* | hpux11*)
10041   # Give a soname corresponding to the major version so that dld.sl refuses to
10042   # link against other versions.
10043   version_type=sunos
10044   need_lib_prefix=no
10045   need_version=no
10046   case $host_cpu in
10047   ia64*)
10048     shrext_cmds='.so'
10049     hardcode_into_libs=yes
10050     dynamic_linker="$host_os dld.so"
10051     shlibpath_var=LD_LIBRARY_PATH
10052     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10053     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10054     soname_spec='${libname}${release}${shared_ext}$major'
10055     if test "X$HPUX_IA64_MODE" = X32; then
10056       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10057     else
10058       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10059     fi
10060     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10061     ;;
10062    hppa*64*)
10063      shrext_cmds='.sl'
10064      hardcode_into_libs=yes
10065      dynamic_linker="$host_os dld.sl"
10066      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10067      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10068      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10069      soname_spec='${libname}${release}${shared_ext}$major'
10070      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10071      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10072      ;;
10073    *)
10074     shrext_cmds='.sl'
10075     dynamic_linker="$host_os dld.sl"
10076     shlibpath_var=SHLIB_PATH
10077     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10078     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10079     soname_spec='${libname}${release}${shared_ext}$major'
10080     ;;
10081   esac
10082   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10083   postinstall_cmds='chmod 555 $lib'
10084   ;;
10085
10086 interix3*)
10087   version_type=linux
10088   need_lib_prefix=no
10089   need_version=no
10090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10091   soname_spec='${libname}${release}${shared_ext}$major'
10092   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10093   shlibpath_var=LD_LIBRARY_PATH
10094   shlibpath_overrides_runpath=no
10095   hardcode_into_libs=yes
10096   ;;
10097
10098 irix5* | irix6* | nonstopux*)
10099   case $host_os in
10100     nonstopux*) version_type=nonstopux ;;
10101     *)
10102         if test "$lt_cv_prog_gnu_ld" = yes; then
10103                 version_type=linux
10104         else
10105                 version_type=irix
10106         fi ;;
10107   esac
10108   need_lib_prefix=no
10109   need_version=no
10110   soname_spec='${libname}${release}${shared_ext}$major'
10111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10112   case $host_os in
10113   irix5* | nonstopux*)
10114     libsuff= shlibsuff=
10115     ;;
10116   *)
10117     case $LD in # libtool.m4 will add one of these switches to LD
10118     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10119       libsuff= shlibsuff= libmagic=32-bit;;
10120     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10121       libsuff=32 shlibsuff=N32 libmagic=N32;;
10122     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10123       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10124     *) libsuff= shlibsuff= libmagic=never-match;;
10125     esac
10126     ;;
10127   esac
10128   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10129   shlibpath_overrides_runpath=no
10130   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10131   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10132   hardcode_into_libs=yes
10133   ;;
10134
10135 # No shared lib support for Linux oldld, aout, or coff.
10136 linux*oldld* | linux*aout* | linux*coff*)
10137   dynamic_linker=no
10138   ;;
10139
10140 # This must be Linux ELF.
10141 linux*)
10142   version_type=linux
10143   need_lib_prefix=no
10144   need_version=no
10145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146   soname_spec='${libname}${release}${shared_ext}$major'
10147   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10148   shlibpath_var=LD_LIBRARY_PATH
10149   shlibpath_overrides_runpath=no
10150   # This implies no fast_install, which is unacceptable.
10151   # Some rework will be needed to allow for fast_install
10152   # before this can be enabled.
10153   hardcode_into_libs=yes
10154
10155   # Append ld.so.conf contents to the search path
10156   if test -f /etc/ld.so.conf; then
10157     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' ' '`
10158     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10159   fi
10160
10161   # We used to test for /lib/ld.so.1 and disable shared libraries on
10162   # powerpc, because MkLinux only supported shared libraries with the
10163   # GNU dynamic linker.  Since this was broken with cross compilers,
10164   # most powerpc-linux boxes support dynamic linking these days and
10165   # people can always --disable-shared, the test was removed, and we
10166   # assume the GNU/Linux dynamic linker is in use.
10167   dynamic_linker='GNU/Linux ld.so'
10168   ;;
10169
10170 knetbsd*-gnu)
10171   version_type=linux
10172   need_lib_prefix=no
10173   need_version=no
10174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10175   soname_spec='${libname}${release}${shared_ext}$major'
10176   shlibpath_var=LD_LIBRARY_PATH
10177   shlibpath_overrides_runpath=no
10178   hardcode_into_libs=yes
10179   dynamic_linker='GNU ld.so'
10180   ;;
10181
10182 netbsd*)
10183   version_type=sunos
10184   need_lib_prefix=no
10185   need_version=no
10186   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10187     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10188     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10189     dynamic_linker='NetBSD (a.out) ld.so'
10190   else
10191     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10192     soname_spec='${libname}${release}${shared_ext}$major'
10193     dynamic_linker='NetBSD ld.elf_so'
10194   fi
10195   shlibpath_var=LD_LIBRARY_PATH
10196   shlibpath_overrides_runpath=yes
10197   hardcode_into_libs=yes
10198   ;;
10199
10200 newsos6)
10201   version_type=linux
10202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203   shlibpath_var=LD_LIBRARY_PATH
10204   shlibpath_overrides_runpath=yes
10205   ;;
10206
10207 nto-qnx*)
10208   version_type=linux
10209   need_lib_prefix=no
10210   need_version=no
10211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212   soname_spec='${libname}${release}${shared_ext}$major'
10213   shlibpath_var=LD_LIBRARY_PATH
10214   shlibpath_overrides_runpath=yes
10215   ;;
10216
10217 openbsd*)
10218   version_type=sunos
10219   sys_lib_dlsearch_path_spec="/usr/lib"
10220   need_lib_prefix=no
10221   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10222   case $host_os in
10223     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10224     *)                         need_version=no  ;;
10225   esac
10226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10227   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10228   shlibpath_var=LD_LIBRARY_PATH
10229   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10230     case $host_os in
10231       openbsd2.[89] | openbsd2.[89].*)
10232         shlibpath_overrides_runpath=no
10233         ;;
10234       *)
10235         shlibpath_overrides_runpath=yes
10236         ;;
10237       esac
10238   else
10239     shlibpath_overrides_runpath=yes
10240   fi
10241   ;;
10242
10243 os2*)
10244   libname_spec='$name'
10245   shrext_cmds=".dll"
10246   need_lib_prefix=no
10247   library_names_spec='$libname${shared_ext} $libname.a'
10248   dynamic_linker='OS/2 ld.exe'
10249   shlibpath_var=LIBPATH
10250   ;;
10251
10252 osf3* | osf4* | osf5*)
10253   version_type=osf
10254   need_lib_prefix=no
10255   need_version=no
10256   soname_spec='${libname}${release}${shared_ext}$major'
10257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10258   shlibpath_var=LD_LIBRARY_PATH
10259   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10260   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10261   ;;
10262
10263 solaris*)
10264   version_type=linux
10265   need_lib_prefix=no
10266   need_version=no
10267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10268   soname_spec='${libname}${release}${shared_ext}$major'
10269   shlibpath_var=LD_LIBRARY_PATH
10270   shlibpath_overrides_runpath=yes
10271   hardcode_into_libs=yes
10272   # ldd complains unless libraries are executable
10273   postinstall_cmds='chmod +x $lib'
10274   ;;
10275
10276 sunos4*)
10277   version_type=sunos
10278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10279   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10280   shlibpath_var=LD_LIBRARY_PATH
10281   shlibpath_overrides_runpath=yes
10282   if test "$with_gnu_ld" = yes; then
10283     need_lib_prefix=no
10284   fi
10285   need_version=yes
10286   ;;
10287
10288 sysv4 | sysv4.3*)
10289   version_type=linux
10290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291   soname_spec='${libname}${release}${shared_ext}$major'
10292   shlibpath_var=LD_LIBRARY_PATH
10293   case $host_vendor in
10294     sni)
10295       shlibpath_overrides_runpath=no
10296       need_lib_prefix=no
10297       export_dynamic_flag_spec='${wl}-Blargedynsym'
10298       runpath_var=LD_RUN_PATH
10299       ;;
10300     siemens)
10301       need_lib_prefix=no
10302       ;;
10303     motorola)
10304       need_lib_prefix=no
10305       need_version=no
10306       shlibpath_overrides_runpath=no
10307       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10308       ;;
10309   esac
10310   ;;
10311
10312 sysv4*MP*)
10313   if test -d /usr/nec ;then
10314     version_type=linux
10315     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10316     soname_spec='$libname${shared_ext}.$major'
10317     shlibpath_var=LD_LIBRARY_PATH
10318   fi
10319   ;;
10320
10321 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10322   version_type=freebsd-elf
10323   need_lib_prefix=no
10324   need_version=no
10325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10326   soname_spec='${libname}${release}${shared_ext}$major'
10327   shlibpath_var=LD_LIBRARY_PATH
10328   hardcode_into_libs=yes
10329   if test "$with_gnu_ld" = yes; then
10330     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10331     shlibpath_overrides_runpath=no
10332   else
10333     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10334     shlibpath_overrides_runpath=yes
10335     case $host_os in
10336       sco3.2v5*)
10337         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10338         ;;
10339     esac
10340   fi
10341   sys_lib_dlsearch_path_spec='/usr/lib'
10342   ;;
10343
10344 uts4*)
10345   version_type=linux
10346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347   soname_spec='${libname}${release}${shared_ext}$major'
10348   shlibpath_var=LD_LIBRARY_PATH
10349   ;;
10350
10351 *)
10352   dynamic_linker=no
10353   ;;
10354 esac
10355 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10356 echo "${ECHO_T}$dynamic_linker" >&6; }
10357 test "$dynamic_linker" = no && can_build_shared=no
10358
10359 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10360 if test "$GCC" = yes; then
10361   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10362 fi
10363
10364
10365 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10366 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10367 if test "${libltdl_cv_shlibext+set}" = set; then
10368   echo $ECHO_N "(cached) $ECHO_C" >&6
10369 else
10370
10371 module=yes
10372 eval libltdl_cv_shlibext=$shrext_cmds
10373
10374 fi
10375 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10376 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10377 if test -n "$libltdl_cv_shlibext"; then
10378
10379 cat >>confdefs.h <<_ACEOF
10380 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10381 _ACEOF
10382
10383 fi
10384
10385
10386 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10387 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10388 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10389   echo $ECHO_N "(cached) $ECHO_C" >&6
10390 else
10391   libltdl_cv_shlibpath_var="$shlibpath_var"
10392 fi
10393 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10394 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10395 if test -n "$libltdl_cv_shlibpath_var"; then
10396
10397 cat >>confdefs.h <<_ACEOF
10398 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10399 _ACEOF
10400
10401 fi
10402
10403
10404 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10405 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10406 if test "${libltdl_cv_sys_search_path+set}" = set; then
10407   echo $ECHO_N "(cached) $ECHO_C" >&6
10408 else
10409   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10410 fi
10411 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10412 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10413 if test -n "$libltdl_cv_sys_search_path"; then
10414   sys_search_path=
10415   for dir in $libltdl_cv_sys_search_path; do
10416     if test -z "$sys_search_path"; then
10417       sys_search_path="$dir"
10418     else
10419       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10420     fi
10421   done
10422
10423 cat >>confdefs.h <<_ACEOF
10424 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10425 _ACEOF
10426
10427 fi
10428
10429 { echo "$as_me:$LINENO: checking for objdir" >&5
10430 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10431 if test "${libltdl_cv_objdir+set}" = set; then
10432   echo $ECHO_N "(cached) $ECHO_C" >&6
10433 else
10434   libltdl_cv_objdir="$objdir"
10435   if test -n "$objdir"; then
10436     :
10437   else
10438     rm -f .libs 2>/dev/null
10439     mkdir .libs 2>/dev/null
10440     if test -d .libs; then
10441       libltdl_cv_objdir=.libs
10442     else
10443       # MS-DOS does not allow filenames that begin with a dot.
10444       libltdl_cv_objdir=_libs
10445     fi
10446   rmdir .libs 2>/dev/null
10447   fi
10448
10449 fi
10450 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10451 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10452
10453 cat >>confdefs.h <<_ACEOF
10454 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10455 _ACEOF
10456
10457
10458
10459
10460
10461
10462 # Check for command to grab the raw symbol name followed by C symbol from nm.
10463 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10464 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10465 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10466   echo $ECHO_N "(cached) $ECHO_C" >&6
10467 else
10468
10469 # These are sane defaults that work on at least a few old systems.
10470 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10471
10472 # Character class describing NM global symbol codes.
10473 symcode='[BCDEGRST]'
10474
10475 # Regexp to match symbols that can be accessed directly from C.
10476 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10477
10478 # Transform an extracted symbol line into a proper C declaration
10479 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10480
10481 # Transform an extracted symbol line into symbol name and symbol address
10482 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'"
10483
10484 # Define system-specific variables.
10485 case $host_os in
10486 aix*)
10487   symcode='[BCDT]'
10488   ;;
10489 cygwin* | mingw* | pw32*)
10490   symcode='[ABCDGISTW]'
10491   ;;
10492 hpux*) # Its linker distinguishes data from code symbols
10493   if test "$host_cpu" = ia64; then
10494     symcode='[ABCDEGRST]'
10495   fi
10496   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10497   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'"
10498   ;;
10499 linux*)
10500   if test "$host_cpu" = ia64; then
10501     symcode='[ABCDGIRSTW]'
10502     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10503     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'"
10504   fi
10505   ;;
10506 irix* | nonstopux*)
10507   symcode='[BCDEGRST]'
10508   ;;
10509 osf*)
10510   symcode='[BCDEGQRST]'
10511   ;;
10512 solaris*)
10513   symcode='[BDRT]'
10514   ;;
10515 sco3.2v5*)
10516   symcode='[DT]'
10517   ;;
10518 sysv4.2uw2*)
10519   symcode='[DT]'
10520   ;;
10521 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10522   symcode='[ABDT]'
10523   ;;
10524 sysv4)
10525   symcode='[DFNSTU]'
10526   ;;
10527 esac
10528
10529 # Handle CRLF in mingw tool chain
10530 opt_cr=
10531 case $build_os in
10532 mingw*)
10533   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10534   ;;
10535 esac
10536
10537 # If we're using GNU nm, then use its standard symbol codes.
10538 case `$NM -V 2>&1` in
10539 *GNU* | *'with BFD'*)
10540   symcode='[ABCDGIRSTW]' ;;
10541 esac
10542
10543 # Try without a prefix undercore, then with it.
10544 for ac_symprfx in "" "_"; do
10545
10546   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10547   symxfrm="\\1 $ac_symprfx\\2 \\2"
10548
10549   # Write the raw and C identifiers.
10550   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10551
10552   # Check to see that the pipe works correctly.
10553   pipe_works=no
10554
10555   rm -f conftest*
10556   cat > conftest.$ac_ext <<EOF
10557 #ifdef __cplusplus
10558 extern "C" {
10559 #endif
10560 char nm_test_var;
10561 void nm_test_func(){}
10562 #ifdef __cplusplus
10563 }
10564 #endif
10565 int main(){nm_test_var='a';nm_test_func();return(0);}
10566 EOF
10567
10568   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10569   (eval $ac_compile) 2>&5
10570   ac_status=$?
10571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572   (exit $ac_status); }; then
10573     # Now try to grab the symbols.
10574     nlist=conftest.nm
10575     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10576   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10577   ac_status=$?
10578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579   (exit $ac_status); } && test -s "$nlist"; then
10580       # Try sorting and uniquifying the output.
10581       if sort "$nlist" | uniq > "$nlist"T; then
10582         mv -f "$nlist"T "$nlist"
10583       else
10584         rm -f "$nlist"T
10585       fi
10586
10587       # Make sure that we snagged all the symbols we need.
10588       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10589         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10590           cat <<EOF > conftest.$ac_ext
10591 #ifdef __cplusplus
10592 extern "C" {
10593 #endif
10594
10595 EOF
10596           # Now generate the symbol file.
10597           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10598
10599           cat <<EOF >> conftest.$ac_ext
10600 #if defined (__STDC__) && __STDC__
10601 # define lt_ptr_t void *
10602 #else
10603 # define lt_ptr_t char *
10604 # define const
10605 #endif
10606
10607 /* The mapping between symbol names and symbols. */
10608 const struct {
10609   const char *name;
10610   lt_ptr_t address;
10611 }
10612 lt_preloaded_symbols[] =
10613 {
10614 EOF
10615           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10616           cat <<\EOF >> conftest.$ac_ext
10617   {0, (lt_ptr_t) 0}
10618 };
10619
10620 #ifdef __cplusplus
10621 }
10622 #endif
10623 EOF
10624           # Now try linking the two files.
10625           mv conftest.$ac_objext conftstm.$ac_objext
10626           lt_save_LIBS="$LIBS"
10627           lt_save_CFLAGS="$CFLAGS"
10628           LIBS="conftstm.$ac_objext"
10629           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10630           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10631   (eval $ac_link) 2>&5
10632   ac_status=$?
10633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10635             pipe_works=yes
10636           fi
10637           LIBS="$lt_save_LIBS"
10638           CFLAGS="$lt_save_CFLAGS"
10639         else
10640           echo "cannot find nm_test_func in $nlist" >&5
10641         fi
10642       else
10643         echo "cannot find nm_test_var in $nlist" >&5
10644       fi
10645     else
10646       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10647     fi
10648   else
10649     echo "$progname: failed program was:" >&5
10650     cat conftest.$ac_ext >&5
10651   fi
10652   rm -f conftest* conftst*
10653
10654   # Do not use the global_symbol_pipe unless it works.
10655   if test "$pipe_works" = yes; then
10656     break
10657   else
10658     lt_cv_sys_global_symbol_pipe=
10659   fi
10660 done
10661
10662 fi
10663
10664 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10665   lt_cv_sys_global_symbol_to_cdecl=
10666 fi
10667 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10668   { echo "$as_me:$LINENO: result: failed" >&5
10669 echo "${ECHO_T}failed" >&6; }
10670 else
10671   { echo "$as_me:$LINENO: result: ok" >&5
10672 echo "${ECHO_T}ok" >&6; }
10673 fi
10674
10675
10676 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10677 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10678 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10679   echo $ECHO_N "(cached) $ECHO_C" >&6
10680 else
10681   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10682     libltdl_cv_preloaded_symbols=yes
10683   else
10684     libltdl_cv_preloaded_symbols=no
10685   fi
10686
10687 fi
10688 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10689 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10690 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10691
10692 cat >>confdefs.h <<\_ACEOF
10693 #define HAVE_PRELOADED_SYMBOLS 1
10694 _ACEOF
10695
10696 fi
10697
10698 LIBADD_DL=
10699
10700 ac_ext=c
10701 ac_cpp='$CPP $CPPFLAGS'
10702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10705
10706
10707 { echo "$as_me:$LINENO: checking for shl_load" >&5
10708 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10709 if test "${ac_cv_func_shl_load+set}" = set; then
10710   echo $ECHO_N "(cached) $ECHO_C" >&6
10711 else
10712   cat >conftest.$ac_ext <<_ACEOF
10713 /* confdefs.h.  */
10714 _ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h.  */
10718 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10720 #define shl_load innocuous_shl_load
10721
10722 /* System header to define __stub macros and hopefully few prototypes,
10723     which can conflict with char shl_load (); below.
10724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10725     <limits.h> exists even on freestanding compilers.  */
10726
10727 #ifdef __STDC__
10728 # include <limits.h>
10729 #else
10730 # include <assert.h>
10731 #endif
10732
10733 #undef shl_load
10734
10735 /* Override any GCC internal prototype to avoid an error.
10736    Use char because int might match the return type of a GCC
10737    builtin and then its argument prototype would still apply.  */
10738 #ifdef __cplusplus
10739 extern "C"
10740 #endif
10741 char shl_load ();
10742 /* The GNU C library defines this for functions which it implements
10743     to always fail with ENOSYS.  Some functions are actually named
10744     something starting with __ and the normal name is an alias.  */
10745 #if defined __stub_shl_load || defined __stub___shl_load
10746 choke me
10747 #endif
10748
10749 int
10750 main ()
10751 {
10752 return shl_load ();
10753   ;
10754   return 0;
10755 }
10756 _ACEOF
10757 rm -f conftest.$ac_objext conftest$ac_exeext
10758 if { (ac_try="$ac_link"
10759 case "(($ac_try" in
10760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761   *) ac_try_echo=$ac_try;;
10762 esac
10763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764   (eval "$ac_link") 2>conftest.er1
10765   ac_status=$?
10766   grep -v '^ *+' conftest.er1 >conftest.err
10767   rm -f conftest.er1
10768   cat conftest.err >&5
10769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770   (exit $ac_status); } &&
10771          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10772   { (case "(($ac_try" in
10773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774   *) ac_try_echo=$ac_try;;
10775 esac
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777   (eval "$ac_try") 2>&5
10778   ac_status=$?
10779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780   (exit $ac_status); }; } &&
10781          { ac_try='test -s conftest$ac_exeext'
10782   { (case "(($ac_try" in
10783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10784   *) ac_try_echo=$ac_try;;
10785 esac
10786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10787   (eval "$ac_try") 2>&5
10788   ac_status=$?
10789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790   (exit $ac_status); }; }; then
10791   ac_cv_func_shl_load=yes
10792 else
10793   echo "$as_me: failed program was:" >&5
10794 sed 's/^/| /' conftest.$ac_ext >&5
10795
10796         ac_cv_func_shl_load=no
10797 fi
10798
10799 rm -f core conftest.err conftest.$ac_objext \
10800       conftest$ac_exeext conftest.$ac_ext
10801 fi
10802 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10803 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10804 if test $ac_cv_func_shl_load = yes; then
10805
10806 cat >>confdefs.h <<\_ACEOF
10807 #define HAVE_SHL_LOAD 1
10808 _ACEOF
10809
10810 else
10811   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10812 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10813 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10814   echo $ECHO_N "(cached) $ECHO_C" >&6
10815 else
10816   ac_check_lib_save_LIBS=$LIBS
10817 LIBS="-ldld  $LIBS"
10818 cat >conftest.$ac_ext <<_ACEOF
10819 /* confdefs.h.  */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h.  */
10824
10825 /* Override any GCC internal prototype to avoid an error.
10826    Use char because int might match the return type of a GCC
10827    builtin and then its argument prototype would still apply.  */
10828 #ifdef __cplusplus
10829 extern "C"
10830 #endif
10831 char shl_load ();
10832 int
10833 main ()
10834 {
10835 return shl_load ();
10836   ;
10837   return 0;
10838 }
10839 _ACEOF
10840 rm -f conftest.$ac_objext conftest$ac_exeext
10841 if { (ac_try="$ac_link"
10842 case "(($ac_try" in
10843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844   *) ac_try_echo=$ac_try;;
10845 esac
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847   (eval "$ac_link") 2>conftest.er1
10848   ac_status=$?
10849   grep -v '^ *+' conftest.er1 >conftest.err
10850   rm -f conftest.er1
10851   cat conftest.err >&5
10852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853   (exit $ac_status); } &&
10854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10855   { (case "(($ac_try" in
10856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857   *) ac_try_echo=$ac_try;;
10858 esac
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860   (eval "$ac_try") 2>&5
10861   ac_status=$?
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); }; } &&
10864          { ac_try='test -s conftest$ac_exeext'
10865   { (case "(($ac_try" in
10866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867   *) ac_try_echo=$ac_try;;
10868 esac
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870   (eval "$ac_try") 2>&5
10871   ac_status=$?
10872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873   (exit $ac_status); }; }; then
10874   ac_cv_lib_dld_shl_load=yes
10875 else
10876   echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10878
10879         ac_cv_lib_dld_shl_load=no
10880 fi
10881
10882 rm -f core conftest.err conftest.$ac_objext \
10883       conftest$ac_exeext conftest.$ac_ext
10884 LIBS=$ac_check_lib_save_LIBS
10885 fi
10886 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10887 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10888 if test $ac_cv_lib_dld_shl_load = yes; then
10889
10890 cat >>confdefs.h <<\_ACEOF
10891 #define HAVE_SHL_LOAD 1
10892 _ACEOF
10893
10894         LIBADD_DL="$LIBADD_DL -ldld"
10895 else
10896   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10897 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10898 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10899   echo $ECHO_N "(cached) $ECHO_C" >&6
10900 else
10901   ac_check_lib_save_LIBS=$LIBS
10902 LIBS="-ldl  $LIBS"
10903 cat >conftest.$ac_ext <<_ACEOF
10904 /* confdefs.h.  */
10905 _ACEOF
10906 cat confdefs.h >>conftest.$ac_ext
10907 cat >>conftest.$ac_ext <<_ACEOF
10908 /* end confdefs.h.  */
10909
10910 /* Override any GCC internal prototype to avoid an error.
10911    Use char because int might match the return type of a GCC
10912    builtin and then its argument prototype would still apply.  */
10913 #ifdef __cplusplus
10914 extern "C"
10915 #endif
10916 char dlopen ();
10917 int
10918 main ()
10919 {
10920 return dlopen ();
10921   ;
10922   return 0;
10923 }
10924 _ACEOF
10925 rm -f conftest.$ac_objext conftest$ac_exeext
10926 if { (ac_try="$ac_link"
10927 case "(($ac_try" in
10928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929   *) ac_try_echo=$ac_try;;
10930 esac
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932   (eval "$ac_link") 2>conftest.er1
10933   ac_status=$?
10934   grep -v '^ *+' conftest.er1 >conftest.err
10935   rm -f conftest.er1
10936   cat conftest.err >&5
10937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938   (exit $ac_status); } &&
10939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10940   { (case "(($ac_try" in
10941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942   *) ac_try_echo=$ac_try;;
10943 esac
10944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945   (eval "$ac_try") 2>&5
10946   ac_status=$?
10947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); }; } &&
10949          { ac_try='test -s conftest$ac_exeext'
10950   { (case "(($ac_try" in
10951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952   *) ac_try_echo=$ac_try;;
10953 esac
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955   (eval "$ac_try") 2>&5
10956   ac_status=$?
10957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958   (exit $ac_status); }; }; then
10959   ac_cv_lib_dl_dlopen=yes
10960 else
10961   echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10963
10964         ac_cv_lib_dl_dlopen=no
10965 fi
10966
10967 rm -f core conftest.err conftest.$ac_objext \
10968       conftest$ac_exeext conftest.$ac_ext
10969 LIBS=$ac_check_lib_save_LIBS
10970 fi
10971 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10972 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10973 if test $ac_cv_lib_dl_dlopen = yes; then
10974
10975 cat >>confdefs.h <<\_ACEOF
10976 #define HAVE_LIBDL 1
10977 _ACEOF
10978
10979                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10980 else
10981   cat >conftest.$ac_ext <<_ACEOF
10982 /* confdefs.h.  */
10983 _ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h.  */
10987 #if HAVE_DLFCN_H
10988 #  include <dlfcn.h>
10989 #endif
10990
10991 int
10992 main ()
10993 {
10994 dlopen(0, 0);
10995   ;
10996   return 0;
10997 }
10998 _ACEOF
10999 rm -f conftest.$ac_objext conftest$ac_exeext
11000 if { (ac_try="$ac_link"
11001 case "(($ac_try" in
11002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003   *) ac_try_echo=$ac_try;;
11004 esac
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006   (eval "$ac_link") 2>conftest.er1
11007   ac_status=$?
11008   grep -v '^ *+' conftest.er1 >conftest.err
11009   rm -f conftest.er1
11010   cat conftest.err >&5
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); } &&
11013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11014   { (case "(($ac_try" in
11015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016   *) ac_try_echo=$ac_try;;
11017 esac
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019   (eval "$ac_try") 2>&5
11020   ac_status=$?
11021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022   (exit $ac_status); }; } &&
11023          { ac_try='test -s conftest$ac_exeext'
11024   { (case "(($ac_try" in
11025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026   *) ac_try_echo=$ac_try;;
11027 esac
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029   (eval "$ac_try") 2>&5
11030   ac_status=$?
11031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); }; }; then
11033
11034 cat >>confdefs.h <<\_ACEOF
11035 #define HAVE_LIBDL 1
11036 _ACEOF
11037  libltdl_cv_func_dlopen="yes"
11038 else
11039   echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.$ac_ext >&5
11041
11042         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11043 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11044 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11045   echo $ECHO_N "(cached) $ECHO_C" >&6
11046 else
11047   ac_check_lib_save_LIBS=$LIBS
11048 LIBS="-lsvld  $LIBS"
11049 cat >conftest.$ac_ext <<_ACEOF
11050 /* confdefs.h.  */
11051 _ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h.  */
11055
11056 /* Override any GCC internal prototype to avoid an error.
11057    Use char because int might match the return type of a GCC
11058    builtin and then its argument prototype would still apply.  */
11059 #ifdef __cplusplus
11060 extern "C"
11061 #endif
11062 char dlopen ();
11063 int
11064 main ()
11065 {
11066 return dlopen ();
11067   ;
11068   return 0;
11069 }
11070 _ACEOF
11071 rm -f conftest.$ac_objext conftest$ac_exeext
11072 if { (ac_try="$ac_link"
11073 case "(($ac_try" in
11074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11075   *) ac_try_echo=$ac_try;;
11076 esac
11077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11078   (eval "$ac_link") 2>conftest.er1
11079   ac_status=$?
11080   grep -v '^ *+' conftest.er1 >conftest.err
11081   rm -f conftest.er1
11082   cat conftest.err >&5
11083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084   (exit $ac_status); } &&
11085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11086   { (case "(($ac_try" in
11087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088   *) ac_try_echo=$ac_try;;
11089 esac
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091   (eval "$ac_try") 2>&5
11092   ac_status=$?
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); }; } &&
11095          { ac_try='test -s conftest$ac_exeext'
11096   { (case "(($ac_try" in
11097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098   *) ac_try_echo=$ac_try;;
11099 esac
11100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101   (eval "$ac_try") 2>&5
11102   ac_status=$?
11103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104   (exit $ac_status); }; }; then
11105   ac_cv_lib_svld_dlopen=yes
11106 else
11107   echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11109
11110         ac_cv_lib_svld_dlopen=no
11111 fi
11112
11113 rm -f core conftest.err conftest.$ac_objext \
11114       conftest$ac_exeext conftest.$ac_ext
11115 LIBS=$ac_check_lib_save_LIBS
11116 fi
11117 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11118 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11119 if test $ac_cv_lib_svld_dlopen = yes; then
11120
11121 cat >>confdefs.h <<\_ACEOF
11122 #define HAVE_LIBDL 1
11123 _ACEOF
11124
11125                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11126 else
11127   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11128 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11129 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11130   echo $ECHO_N "(cached) $ECHO_C" >&6
11131 else
11132   ac_check_lib_save_LIBS=$LIBS
11133 LIBS="-ldld  $LIBS"
11134 cat >conftest.$ac_ext <<_ACEOF
11135 /* confdefs.h.  */
11136 _ACEOF
11137 cat confdefs.h >>conftest.$ac_ext
11138 cat >>conftest.$ac_ext <<_ACEOF
11139 /* end confdefs.h.  */
11140
11141 /* Override any GCC internal prototype to avoid an error.
11142    Use char because int might match the return type of a GCC
11143    builtin and then its argument prototype would still apply.  */
11144 #ifdef __cplusplus
11145 extern "C"
11146 #endif
11147 char dld_link ();
11148 int
11149 main ()
11150 {
11151 return dld_link ();
11152   ;
11153   return 0;
11154 }
11155 _ACEOF
11156 rm -f conftest.$ac_objext conftest$ac_exeext
11157 if { (ac_try="$ac_link"
11158 case "(($ac_try" in
11159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160   *) ac_try_echo=$ac_try;;
11161 esac
11162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163   (eval "$ac_link") 2>conftest.er1
11164   ac_status=$?
11165   grep -v '^ *+' conftest.er1 >conftest.err
11166   rm -f conftest.er1
11167   cat conftest.err >&5
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); } &&
11170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11171   { (case "(($ac_try" in
11172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173   *) ac_try_echo=$ac_try;;
11174 esac
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176   (eval "$ac_try") 2>&5
11177   ac_status=$?
11178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179   (exit $ac_status); }; } &&
11180          { ac_try='test -s conftest$ac_exeext'
11181   { (case "(($ac_try" in
11182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183   *) ac_try_echo=$ac_try;;
11184 esac
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186   (eval "$ac_try") 2>&5
11187   ac_status=$?
11188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189   (exit $ac_status); }; }; then
11190   ac_cv_lib_dld_dld_link=yes
11191 else
11192   echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11194
11195         ac_cv_lib_dld_dld_link=no
11196 fi
11197
11198 rm -f core conftest.err conftest.$ac_objext \
11199       conftest$ac_exeext conftest.$ac_ext
11200 LIBS=$ac_check_lib_save_LIBS
11201 fi
11202 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11203 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11204 if test $ac_cv_lib_dld_dld_link = yes; then
11205
11206 cat >>confdefs.h <<\_ACEOF
11207 #define HAVE_DLD 1
11208 _ACEOF
11209
11210                 LIBADD_DL="$LIBADD_DL -ldld"
11211 else
11212   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11213 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11214 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11215   echo $ECHO_N "(cached) $ECHO_C" >&6
11216 else
11217   cat >conftest.$ac_ext <<_ACEOF
11218 /* confdefs.h.  */
11219 _ACEOF
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h.  */
11223 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11224    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11225 #define _dyld_func_lookup innocuous__dyld_func_lookup
11226
11227 /* System header to define __stub macros and hopefully few prototypes,
11228     which can conflict with char _dyld_func_lookup (); below.
11229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11230     <limits.h> exists even on freestanding compilers.  */
11231
11232 #ifdef __STDC__
11233 # include <limits.h>
11234 #else
11235 # include <assert.h>
11236 #endif
11237
11238 #undef _dyld_func_lookup
11239
11240 /* Override any GCC internal prototype to avoid an error.
11241    Use char because int might match the return type of a GCC
11242    builtin and then its argument prototype would still apply.  */
11243 #ifdef __cplusplus
11244 extern "C"
11245 #endif
11246 char _dyld_func_lookup ();
11247 /* The GNU C library defines this for functions which it implements
11248     to always fail with ENOSYS.  Some functions are actually named
11249     something starting with __ and the normal name is an alias.  */
11250 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11251 choke me
11252 #endif
11253
11254 int
11255 main ()
11256 {
11257 return _dyld_func_lookup ();
11258   ;
11259   return 0;
11260 }
11261 _ACEOF
11262 rm -f conftest.$ac_objext conftest$ac_exeext
11263 if { (ac_try="$ac_link"
11264 case "(($ac_try" in
11265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266   *) ac_try_echo=$ac_try;;
11267 esac
11268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269   (eval "$ac_link") 2>conftest.er1
11270   ac_status=$?
11271   grep -v '^ *+' conftest.er1 >conftest.err
11272   rm -f conftest.er1
11273   cat conftest.err >&5
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); } &&
11276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11277   { (case "(($ac_try" in
11278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279   *) ac_try_echo=$ac_try;;
11280 esac
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282   (eval "$ac_try") 2>&5
11283   ac_status=$?
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); }; } &&
11286          { ac_try='test -s conftest$ac_exeext'
11287   { (case "(($ac_try" in
11288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289   *) ac_try_echo=$ac_try;;
11290 esac
11291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292   (eval "$ac_try") 2>&5
11293   ac_status=$?
11294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295   (exit $ac_status); }; }; then
11296   ac_cv_func__dyld_func_lookup=yes
11297 else
11298   echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11300
11301         ac_cv_func__dyld_func_lookup=no
11302 fi
11303
11304 rm -f core conftest.err conftest.$ac_objext \
11305       conftest$ac_exeext conftest.$ac_ext
11306 fi
11307 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11308 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11309 if test $ac_cv_func__dyld_func_lookup = yes; then
11310
11311 cat >>confdefs.h <<\_ACEOF
11312 #define HAVE_DYLD 1
11313 _ACEOF
11314
11315 fi
11316
11317
11318 fi
11319
11320
11321 fi
11322
11323
11324 fi
11325
11326 rm -f core conftest.err conftest.$ac_objext \
11327       conftest$ac_exeext conftest.$ac_ext
11328
11329 fi
11330
11331
11332 fi
11333
11334
11335 fi
11336
11337
11338 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11339 then
11340   lt_save_LIBS="$LIBS"
11341   LIBS="$LIBS $LIBADD_DL"
11342
11343 for ac_func in dlerror
11344 do
11345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11349   echo $ECHO_N "(cached) $ECHO_C" >&6
11350 else
11351   cat >conftest.$ac_ext <<_ACEOF
11352 /* confdefs.h.  */
11353 _ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h.  */
11357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11358    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11359 #define $ac_func innocuous_$ac_func
11360
11361 /* System header to define __stub macros and hopefully few prototypes,
11362     which can conflict with char $ac_func (); below.
11363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11364     <limits.h> exists even on freestanding compilers.  */
11365
11366 #ifdef __STDC__
11367 # include <limits.h>
11368 #else
11369 # include <assert.h>
11370 #endif
11371
11372 #undef $ac_func
11373
11374 /* Override any GCC internal prototype to avoid an error.
11375    Use char because int might match the return type of a GCC
11376    builtin and then its argument prototype would still apply.  */
11377 #ifdef __cplusplus
11378 extern "C"
11379 #endif
11380 char $ac_func ();
11381 /* The GNU C library defines this for functions which it implements
11382     to always fail with ENOSYS.  Some functions are actually named
11383     something starting with __ and the normal name is an alias.  */
11384 #if defined __stub_$ac_func || defined __stub___$ac_func
11385 choke me
11386 #endif
11387
11388 int
11389 main ()
11390 {
11391 return $ac_func ();
11392   ;
11393   return 0;
11394 }
11395 _ACEOF
11396 rm -f conftest.$ac_objext conftest$ac_exeext
11397 if { (ac_try="$ac_link"
11398 case "(($ac_try" in
11399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400   *) ac_try_echo=$ac_try;;
11401 esac
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403   (eval "$ac_link") 2>conftest.er1
11404   ac_status=$?
11405   grep -v '^ *+' conftest.er1 >conftest.err
11406   rm -f conftest.er1
11407   cat conftest.err >&5
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); } &&
11410          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11411   { (case "(($ac_try" in
11412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413   *) ac_try_echo=$ac_try;;
11414 esac
11415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416   (eval "$ac_try") 2>&5
11417   ac_status=$?
11418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419   (exit $ac_status); }; } &&
11420          { ac_try='test -s conftest$ac_exeext'
11421   { (case "(($ac_try" in
11422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423   *) ac_try_echo=$ac_try;;
11424 esac
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426   (eval "$ac_try") 2>&5
11427   ac_status=$?
11428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429   (exit $ac_status); }; }; then
11430   eval "$as_ac_var=yes"
11431 else
11432   echo "$as_me: failed program was:" >&5
11433 sed 's/^/| /' conftest.$ac_ext >&5
11434
11435         eval "$as_ac_var=no"
11436 fi
11437
11438 rm -f core conftest.err conftest.$ac_objext \
11439       conftest$ac_exeext conftest.$ac_ext
11440 fi
11441 ac_res=`eval echo '${'$as_ac_var'}'`
11442                { echo "$as_me:$LINENO: result: $ac_res" >&5
11443 echo "${ECHO_T}$ac_res" >&6; }
11444 if test `eval echo '${'$as_ac_var'}'` = yes; then
11445   cat >>confdefs.h <<_ACEOF
11446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11447 _ACEOF
11448
11449 fi
11450 done
11451
11452   LIBS="$lt_save_LIBS"
11453 fi
11454 ac_ext=c
11455 ac_cpp='$CPP $CPPFLAGS'
11456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11459
11460
11461
11462 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11463 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11464 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11465   echo $ECHO_N "(cached) $ECHO_C" >&6
11466 else
11467   ac_cv_sys_symbol_underscore=no
11468   cat > conftest.$ac_ext <<EOF
11469 void nm_test_func(){}
11470 int main(){nm_test_func;return 0;}
11471 EOF
11472   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11473   (eval $ac_compile) 2>&5
11474   ac_status=$?
11475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476   (exit $ac_status); }; then
11477     # Now try to grab the symbols.
11478     ac_nlist=conftest.nm
11479     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11480   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11481   ac_status=$?
11482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483   (exit $ac_status); } && test -s "$ac_nlist"; then
11484       # See whether the symbols have a leading underscore.
11485       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11486         ac_cv_sys_symbol_underscore=yes
11487       else
11488         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11489           :
11490         else
11491           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11492         fi
11493       fi
11494     else
11495       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11496     fi
11497   else
11498     echo "configure: failed program was:" >&5
11499     cat conftest.c >&5
11500   fi
11501   rm -rf conftest*
11502
11503 fi
11504 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11505 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11506
11507
11508 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11509   if test x"$libltdl_cv_func_dlopen" = xyes ||
11510      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11511         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11512 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11513 if test "${libltdl_cv_need_uscore+set}" = set; then
11514   echo $ECHO_N "(cached) $ECHO_C" >&6
11515 else
11516   libltdl_cv_need_uscore=unknown
11517           save_LIBS="$LIBS"
11518           LIBS="$LIBS $LIBADD_DL"
11519           if test "$cross_compiling" = yes; then :
11520   libltdl_cv_need_uscore=cross
11521 else
11522   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11523   lt_status=$lt_dlunknown
11524   cat > conftest.$ac_ext <<EOF
11525 #line 11525 "configure"
11526 #include "confdefs.h"
11527
11528 #if HAVE_DLFCN_H
11529 #include <dlfcn.h>
11530 #endif
11531
11532 #include <stdio.h>
11533
11534 #ifdef RTLD_GLOBAL
11535 #  define LT_DLGLOBAL           RTLD_GLOBAL
11536 #else
11537 #  ifdef DL_GLOBAL
11538 #    define LT_DLGLOBAL         DL_GLOBAL
11539 #  else
11540 #    define LT_DLGLOBAL         0
11541 #  endif
11542 #endif
11543
11544 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11545    find out it does not work in some platform. */
11546 #ifndef LT_DLLAZY_OR_NOW
11547 #  ifdef RTLD_LAZY
11548 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11549 #  else
11550 #    ifdef DL_LAZY
11551 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11552 #    else
11553 #      ifdef RTLD_NOW
11554 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11555 #      else
11556 #        ifdef DL_NOW
11557 #          define LT_DLLAZY_OR_NOW      DL_NOW
11558 #        else
11559 #          define LT_DLLAZY_OR_NOW      0
11560 #        endif
11561 #      endif
11562 #    endif
11563 #  endif
11564 #endif
11565
11566 #ifdef __cplusplus
11567 extern "C" void exit (int);
11568 #endif
11569
11570 void fnord() { int i=42;}
11571 int main ()
11572 {
11573   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11574   int status = $lt_dlunknown;
11575
11576   if (self)
11577     {
11578       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11579       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11580       /* dlclose (self); */
11581     }
11582   else
11583     puts (dlerror ());
11584
11585     exit (status);
11586 }
11587 EOF
11588   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11589   (eval $ac_link) 2>&5
11590   ac_status=$?
11591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11593     (./conftest; exit; ) >&5 2>/dev/null
11594     lt_status=$?
11595     case x$lt_status in
11596       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11597       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11598       x$lt_dlunknown|x*)  ;;
11599     esac
11600   else :
11601     # compilation failed
11602
11603   fi
11604 fi
11605 rm -fr conftest*
11606
11607           LIBS="$save_LIBS"
11608
11609 fi
11610 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11611 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11612   fi
11613 fi
11614
11615 if test x"$libltdl_cv_need_uscore" = xyes; then
11616
11617 cat >>confdefs.h <<\_ACEOF
11618 #define NEED_USCORE 1
11619 _ACEOF
11620
11621 fi
11622
11623
11624 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11625 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11626 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11627   echo $ECHO_N "(cached) $ECHO_C" >&6
11628 else
11629   # PORTME does your system automatically load deplibs for dlopen?
11630   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11631   # For now, we just catch OSes we know something about -- in the
11632   # future, we'll try test this programmatically.
11633   libltdl_cv_sys_dlopen_deplibs=unknown
11634   case "$host_os" in
11635   aix3*|aix4.1.*|aix4.2.*)
11636     # Unknown whether this is true for these versions of AIX, but
11637     # we want this `case' here to explicitly catch those versions.
11638     libltdl_cv_sys_dlopen_deplibs=unknown
11639     ;;
11640   aix[45]*)
11641     libltdl_cv_sys_dlopen_deplibs=yes
11642     ;;
11643   darwin*)
11644     # Assuming the user has installed a libdl from somewhere, this is true
11645     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11646     libltdl_cv_sys_dlopen_deplibs=yes
11647     ;;
11648   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11649     # GNU and its variants, using gnu ld.so (Glibc)
11650     libltdl_cv_sys_dlopen_deplibs=yes
11651     ;;
11652   hpux10*|hpux11*)
11653     libltdl_cv_sys_dlopen_deplibs=yes
11654     ;;
11655   interix*)
11656     libltdl_cv_sys_dlopen_deplibs=yes
11657     ;;
11658   irix[12345]*|irix6.[01]*)
11659     # Catch all versions of IRIX before 6.2, and indicate that we don't
11660     # know how it worked for any of those versions.
11661     libltdl_cv_sys_dlopen_deplibs=unknown
11662     ;;
11663   irix*)
11664     # The case above catches anything before 6.2, and it's known that
11665     # at 6.2 and later dlopen does load deplibs.
11666     libltdl_cv_sys_dlopen_deplibs=yes
11667     ;;
11668   netbsd*)
11669     libltdl_cv_sys_dlopen_deplibs=yes
11670     ;;
11671   openbsd*)
11672     libltdl_cv_sys_dlopen_deplibs=yes
11673     ;;
11674   osf[1234]*)
11675     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11676     # it did *not* use an RPATH in a shared library to find objects the
11677     # library depends on, so we explictly say `no'.
11678     libltdl_cv_sys_dlopen_deplibs=no
11679     ;;
11680   osf5.0|osf5.0a|osf5.1)
11681     # dlopen *does* load deplibs and with the right loader patch applied
11682     # it even uses RPATH in a shared library to search for shared objects
11683     # that the library depends on, but there's no easy way to know if that
11684     # patch is installed.  Since this is the case, all we can really
11685     # say is unknown -- it depends on the patch being installed.  If
11686     # it is, this changes to `yes'.  Without it, it would be `no'.
11687     libltdl_cv_sys_dlopen_deplibs=unknown
11688     ;;
11689   osf*)
11690     # the two cases above should catch all versions of osf <= 5.1.  Read
11691     # the comments above for what we know about them.
11692     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11693     # is used to find them so we can finally say `yes'.
11694     libltdl_cv_sys_dlopen_deplibs=yes
11695     ;;
11696   solaris*)
11697     libltdl_cv_sys_dlopen_deplibs=yes
11698     ;;
11699   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11700     libltdl_cv_sys_dlopen_deplibs=yes
11701     ;;
11702   esac
11703
11704 fi
11705 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11706 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11707 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11708
11709 cat >>confdefs.h <<\_ACEOF
11710 #define LTDL_DLOPEN_DEPLIBS 1
11711 _ACEOF
11712
11713 fi
11714
11715
11716 for ac_header in argz.h
11717 do
11718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11720   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11723   echo $ECHO_N "(cached) $ECHO_C" >&6
11724 fi
11725 ac_res=`eval echo '${'$as_ac_Header'}'`
11726                { echo "$as_me:$LINENO: result: $ac_res" >&5
11727 echo "${ECHO_T}$ac_res" >&6; }
11728 else
11729   # Is the header compilable?
11730 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11732 cat >conftest.$ac_ext <<_ACEOF
11733 /* confdefs.h.  */
11734 _ACEOF
11735 cat confdefs.h >>conftest.$ac_ext
11736 cat >>conftest.$ac_ext <<_ACEOF
11737 /* end confdefs.h.  */
11738 $ac_includes_default
11739 #include <$ac_header>
11740 _ACEOF
11741 rm -f conftest.$ac_objext
11742 if { (ac_try="$ac_compile"
11743 case "(($ac_try" in
11744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745   *) ac_try_echo=$ac_try;;
11746 esac
11747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11748   (eval "$ac_compile") 2>conftest.er1
11749   ac_status=$?
11750   grep -v '^ *+' conftest.er1 >conftest.err
11751   rm -f conftest.er1
11752   cat conftest.err >&5
11753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754   (exit $ac_status); } &&
11755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11756   { (case "(($ac_try" in
11757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758   *) ac_try_echo=$ac_try;;
11759 esac
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761   (eval "$ac_try") 2>&5
11762   ac_status=$?
11763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764   (exit $ac_status); }; } &&
11765          { ac_try='test -s conftest.$ac_objext'
11766   { (case "(($ac_try" in
11767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768   *) ac_try_echo=$ac_try;;
11769 esac
11770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771   (eval "$ac_try") 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); }; }; then
11775   ac_header_compiler=yes
11776 else
11777   echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11779
11780         ac_header_compiler=no
11781 fi
11782
11783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11785 echo "${ECHO_T}$ac_header_compiler" >&6; }
11786
11787 # Is the header present?
11788 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11790 cat >conftest.$ac_ext <<_ACEOF
11791 /* confdefs.h.  */
11792 _ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h.  */
11796 #include <$ac_header>
11797 _ACEOF
11798 if { (ac_try="$ac_cpp conftest.$ac_ext"
11799 case "(($ac_try" in
11800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801   *) ac_try_echo=$ac_try;;
11802 esac
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11805   ac_status=$?
11806   grep -v '^ *+' conftest.er1 >conftest.err
11807   rm -f conftest.er1
11808   cat conftest.err >&5
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); } >/dev/null; then
11811   if test -s conftest.err; then
11812     ac_cpp_err=$ac_c_preproc_warn_flag
11813     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11814   else
11815     ac_cpp_err=
11816   fi
11817 else
11818   ac_cpp_err=yes
11819 fi
11820 if test -z "$ac_cpp_err"; then
11821   ac_header_preproc=yes
11822 else
11823   echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11825
11826   ac_header_preproc=no
11827 fi
11828
11829 rm -f conftest.err conftest.$ac_ext
11830 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11831 echo "${ECHO_T}$ac_header_preproc" >&6; }
11832
11833 # So?  What about this header?
11834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11835   yes:no: )
11836     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11838     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11840     ac_header_preproc=yes
11841     ;;
11842   no:yes:* )
11843     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11845     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11846 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11847     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11849     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11850 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11851     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11853     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11855     ( cat <<\_ASBOX
11856 ## ----------------------------------- ##
11857 ## Report this to llvmbugs@cs.uiuc.edu ##
11858 ## ----------------------------------- ##
11859 _ASBOX
11860      ) | sed "s/^/$as_me: WARNING:     /" >&2
11861     ;;
11862 esac
11863 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11866   echo $ECHO_N "(cached) $ECHO_C" >&6
11867 else
11868   eval "$as_ac_Header=\$ac_header_preproc"
11869 fi
11870 ac_res=`eval echo '${'$as_ac_Header'}'`
11871                { echo "$as_me:$LINENO: result: $ac_res" >&5
11872 echo "${ECHO_T}$ac_res" >&6; }
11873
11874 fi
11875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11876   cat >>confdefs.h <<_ACEOF
11877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11878 _ACEOF
11879
11880 fi
11881
11882 done
11883
11884
11885 { echo "$as_me:$LINENO: checking for error_t" >&5
11886 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11887 if test "${ac_cv_type_error_t+set}" = set; then
11888   echo $ECHO_N "(cached) $ECHO_C" >&6
11889 else
11890   cat >conftest.$ac_ext <<_ACEOF
11891 /* confdefs.h.  */
11892 _ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h.  */
11896 #if HAVE_ARGZ_H
11897 #  include <argz.h>
11898 #endif
11899
11900 typedef error_t ac__type_new_;
11901 int
11902 main ()
11903 {
11904 if ((ac__type_new_ *) 0)
11905   return 0;
11906 if (sizeof (ac__type_new_))
11907   return 0;
11908   ;
11909   return 0;
11910 }
11911 _ACEOF
11912 rm -f conftest.$ac_objext
11913 if { (ac_try="$ac_compile"
11914 case "(($ac_try" in
11915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916   *) ac_try_echo=$ac_try;;
11917 esac
11918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919   (eval "$ac_compile") 2>conftest.er1
11920   ac_status=$?
11921   grep -v '^ *+' conftest.er1 >conftest.err
11922   rm -f conftest.er1
11923   cat conftest.err >&5
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); } &&
11926          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11927   { (case "(($ac_try" in
11928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929   *) ac_try_echo=$ac_try;;
11930 esac
11931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932   (eval "$ac_try") 2>&5
11933   ac_status=$?
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); }; } &&
11936          { ac_try='test -s conftest.$ac_objext'
11937   { (case "(($ac_try" in
11938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939   *) ac_try_echo=$ac_try;;
11940 esac
11941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942   (eval "$ac_try") 2>&5
11943   ac_status=$?
11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945   (exit $ac_status); }; }; then
11946   ac_cv_type_error_t=yes
11947 else
11948   echo "$as_me: failed program was:" >&5
11949 sed 's/^/| /' conftest.$ac_ext >&5
11950
11951         ac_cv_type_error_t=no
11952 fi
11953
11954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11955 fi
11956 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11957 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11958 if test $ac_cv_type_error_t = yes; then
11959
11960 cat >>confdefs.h <<_ACEOF
11961 #define HAVE_ERROR_T 1
11962 _ACEOF
11963
11964
11965 else
11966
11967 cat >>confdefs.h <<\_ACEOF
11968 #define error_t int
11969 _ACEOF
11970
11971 fi
11972
11973
11974
11975
11976
11977
11978
11979 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11980 do
11981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11982 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11985   echo $ECHO_N "(cached) $ECHO_C" >&6
11986 else
11987   cat >conftest.$ac_ext <<_ACEOF
11988 /* confdefs.h.  */
11989 _ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h.  */
11993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11994    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11995 #define $ac_func innocuous_$ac_func
11996
11997 /* System header to define __stub macros and hopefully few prototypes,
11998     which can conflict with char $ac_func (); below.
11999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12000     <limits.h> exists even on freestanding compilers.  */
12001
12002 #ifdef __STDC__
12003 # include <limits.h>
12004 #else
12005 # include <assert.h>
12006 #endif
12007
12008 #undef $ac_func
12009
12010 /* Override any GCC internal prototype to avoid an error.
12011    Use char because int might match the return type of a GCC
12012    builtin and then its argument prototype would still apply.  */
12013 #ifdef __cplusplus
12014 extern "C"
12015 #endif
12016 char $ac_func ();
12017 /* The GNU C library defines this for functions which it implements
12018     to always fail with ENOSYS.  Some functions are actually named
12019     something starting with __ and the normal name is an alias.  */
12020 #if defined __stub_$ac_func || defined __stub___$ac_func
12021 choke me
12022 #endif
12023
12024 int
12025 main ()
12026 {
12027 return $ac_func ();
12028   ;
12029   return 0;
12030 }
12031 _ACEOF
12032 rm -f conftest.$ac_objext conftest$ac_exeext
12033 if { (ac_try="$ac_link"
12034 case "(($ac_try" in
12035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036   *) ac_try_echo=$ac_try;;
12037 esac
12038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039   (eval "$ac_link") 2>conftest.er1
12040   ac_status=$?
12041   grep -v '^ *+' conftest.er1 >conftest.err
12042   rm -f conftest.er1
12043   cat conftest.err >&5
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); } &&
12046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12047   { (case "(($ac_try" in
12048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049   *) ac_try_echo=$ac_try;;
12050 esac
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052   (eval "$ac_try") 2>&5
12053   ac_status=$?
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); }; } &&
12056          { ac_try='test -s conftest$ac_exeext'
12057   { (case "(($ac_try" in
12058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059   *) ac_try_echo=$ac_try;;
12060 esac
12061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062   (eval "$ac_try") 2>&5
12063   ac_status=$?
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); }; }; then
12066   eval "$as_ac_var=yes"
12067 else
12068   echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12070
12071         eval "$as_ac_var=no"
12072 fi
12073
12074 rm -f core conftest.err conftest.$ac_objext \
12075       conftest$ac_exeext conftest.$ac_ext
12076 fi
12077 ac_res=`eval echo '${'$as_ac_var'}'`
12078                { echo "$as_me:$LINENO: result: $ac_res" >&5
12079 echo "${ECHO_T}$ac_res" >&6; }
12080 if test `eval echo '${'$as_ac_var'}'` = yes; then
12081   cat >>confdefs.h <<_ACEOF
12082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12083 _ACEOF
12084
12085 fi
12086 done
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12116                   stdio.h unistd.h
12117 do
12118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12120   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12123   echo $ECHO_N "(cached) $ECHO_C" >&6
12124 fi
12125 ac_res=`eval echo '${'$as_ac_Header'}'`
12126                { echo "$as_me:$LINENO: result: $ac_res" >&5
12127 echo "${ECHO_T}$ac_res" >&6; }
12128 else
12129   # Is the header compilable?
12130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12132 cat >conftest.$ac_ext <<_ACEOF
12133 /* confdefs.h.  */
12134 _ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h.  */
12138 $ac_includes_default
12139 #include <$ac_header>
12140 _ACEOF
12141 rm -f conftest.$ac_objext
12142 if { (ac_try="$ac_compile"
12143 case "(($ac_try" in
12144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145   *) ac_try_echo=$ac_try;;
12146 esac
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148   (eval "$ac_compile") 2>conftest.er1
12149   ac_status=$?
12150   grep -v '^ *+' conftest.er1 >conftest.err
12151   rm -f conftest.er1
12152   cat conftest.err >&5
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); } &&
12155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12156   { (case "(($ac_try" in
12157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158   *) ac_try_echo=$ac_try;;
12159 esac
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161   (eval "$ac_try") 2>&5
12162   ac_status=$?
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); }; } &&
12165          { ac_try='test -s conftest.$ac_objext'
12166   { (case "(($ac_try" in
12167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168   *) ac_try_echo=$ac_try;;
12169 esac
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171   (eval "$ac_try") 2>&5
12172   ac_status=$?
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); }; }; then
12175   ac_header_compiler=yes
12176 else
12177   echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12179
12180         ac_header_compiler=no
12181 fi
12182
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12185 echo "${ECHO_T}$ac_header_compiler" >&6; }
12186
12187 # Is the header present?
12188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12190 cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h.  */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h.  */
12196 #include <$ac_header>
12197 _ACEOF
12198 if { (ac_try="$ac_cpp conftest.$ac_ext"
12199 case "(($ac_try" in
12200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201   *) ac_try_echo=$ac_try;;
12202 esac
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12205   ac_status=$?
12206   grep -v '^ *+' conftest.er1 >conftest.err
12207   rm -f conftest.er1
12208   cat conftest.err >&5
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); } >/dev/null; then
12211   if test -s conftest.err; then
12212     ac_cpp_err=$ac_c_preproc_warn_flag
12213     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12214   else
12215     ac_cpp_err=
12216   fi
12217 else
12218   ac_cpp_err=yes
12219 fi
12220 if test -z "$ac_cpp_err"; then
12221   ac_header_preproc=yes
12222 else
12223   echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12225
12226   ac_header_preproc=no
12227 fi
12228
12229 rm -f conftest.err conftest.$ac_ext
12230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12231 echo "${ECHO_T}$ac_header_preproc" >&6; }
12232
12233 # So?  What about this header?
12234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12235   yes:no: )
12236     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12238     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12240     ac_header_preproc=yes
12241     ;;
12242   no:yes:* )
12243     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12245     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12246 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12247     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12249     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12250 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12251     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12253     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12255     ( cat <<\_ASBOX
12256 ## ----------------------------------- ##
12257 ## Report this to llvmbugs@cs.uiuc.edu ##
12258 ## ----------------------------------- ##
12259 _ASBOX
12260      ) | sed "s/^/$as_me: WARNING:     /" >&2
12261     ;;
12262 esac
12263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12266   echo $ECHO_N "(cached) $ECHO_C" >&6
12267 else
12268   eval "$as_ac_Header=\$ac_header_preproc"
12269 fi
12270 ac_res=`eval echo '${'$as_ac_Header'}'`
12271                { echo "$as_me:$LINENO: result: $ac_res" >&5
12272 echo "${ECHO_T}$ac_res" >&6; }
12273
12274 fi
12275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12276   cat >>confdefs.h <<_ACEOF
12277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12278 _ACEOF
12279
12280 fi
12281
12282 done
12283
12284
12285
12286
12287
12288 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12289 do
12290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12292   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12295   echo $ECHO_N "(cached) $ECHO_C" >&6
12296 fi
12297 ac_res=`eval echo '${'$as_ac_Header'}'`
12298                { echo "$as_me:$LINENO: result: $ac_res" >&5
12299 echo "${ECHO_T}$ac_res" >&6; }
12300 else
12301   # Is the header compilable?
12302 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12304 cat >conftest.$ac_ext <<_ACEOF
12305 /* confdefs.h.  */
12306 _ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h.  */
12310 $ac_includes_default
12311 #include <$ac_header>
12312 _ACEOF
12313 rm -f conftest.$ac_objext
12314 if { (ac_try="$ac_compile"
12315 case "(($ac_try" in
12316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12317   *) ac_try_echo=$ac_try;;
12318 esac
12319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12320   (eval "$ac_compile") 2>conftest.er1
12321   ac_status=$?
12322   grep -v '^ *+' conftest.er1 >conftest.err
12323   rm -f conftest.er1
12324   cat conftest.err >&5
12325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326   (exit $ac_status); } &&
12327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12328   { (case "(($ac_try" in
12329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12330   *) ac_try_echo=$ac_try;;
12331 esac
12332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12333   (eval "$ac_try") 2>&5
12334   ac_status=$?
12335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336   (exit $ac_status); }; } &&
12337          { ac_try='test -s conftest.$ac_objext'
12338   { (case "(($ac_try" in
12339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340   *) ac_try_echo=$ac_try;;
12341 esac
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343   (eval "$ac_try") 2>&5
12344   ac_status=$?
12345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346   (exit $ac_status); }; }; then
12347   ac_header_compiler=yes
12348 else
12349   echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12351
12352         ac_header_compiler=no
12353 fi
12354
12355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12357 echo "${ECHO_T}$ac_header_compiler" >&6; }
12358
12359 # Is the header present?
12360 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12362 cat >conftest.$ac_ext <<_ACEOF
12363 /* confdefs.h.  */
12364 _ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h.  */
12368 #include <$ac_header>
12369 _ACEOF
12370 if { (ac_try="$ac_cpp conftest.$ac_ext"
12371 case "(($ac_try" in
12372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373   *) ac_try_echo=$ac_try;;
12374 esac
12375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12377   ac_status=$?
12378   grep -v '^ *+' conftest.er1 >conftest.err
12379   rm -f conftest.er1
12380   cat conftest.err >&5
12381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382   (exit $ac_status); } >/dev/null; then
12383   if test -s conftest.err; then
12384     ac_cpp_err=$ac_c_preproc_warn_flag
12385     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12386   else
12387     ac_cpp_err=
12388   fi
12389 else
12390   ac_cpp_err=yes
12391 fi
12392 if test -z "$ac_cpp_err"; then
12393   ac_header_preproc=yes
12394 else
12395   echo "$as_me: failed program was:" >&5
12396 sed 's/^/| /' conftest.$ac_ext >&5
12397
12398   ac_header_preproc=no
12399 fi
12400
12401 rm -f conftest.err conftest.$ac_ext
12402 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12403 echo "${ECHO_T}$ac_header_preproc" >&6; }
12404
12405 # So?  What about this header?
12406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12407   yes:no: )
12408     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12410     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12411 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12412     ac_header_preproc=yes
12413     ;;
12414   no:yes:* )
12415     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12416 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12417     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12418 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12419     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12420 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12421     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12422 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12425     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12426 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12427     ( cat <<\_ASBOX
12428 ## ----------------------------------- ##
12429 ## Report this to llvmbugs@cs.uiuc.edu ##
12430 ## ----------------------------------- ##
12431 _ASBOX
12432      ) | sed "s/^/$as_me: WARNING:     /" >&2
12433     ;;
12434 esac
12435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12438   echo $ECHO_N "(cached) $ECHO_C" >&6
12439 else
12440   eval "$as_ac_Header=\$ac_header_preproc"
12441 fi
12442 ac_res=`eval echo '${'$as_ac_Header'}'`
12443                { echo "$as_me:$LINENO: result: $ac_res" >&5
12444 echo "${ECHO_T}$ac_res" >&6; }
12445
12446 fi
12447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12448   cat >>confdefs.h <<_ACEOF
12449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12450 _ACEOF
12451
12452 fi
12453
12454 done
12455
12456
12457
12458 for ac_header in string.h strings.h
12459 do
12460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12462   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12465   echo $ECHO_N "(cached) $ECHO_C" >&6
12466 fi
12467 ac_res=`eval echo '${'$as_ac_Header'}'`
12468                { echo "$as_me:$LINENO: result: $ac_res" >&5
12469 echo "${ECHO_T}$ac_res" >&6; }
12470 else
12471   # Is the header compilable?
12472 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12474 cat >conftest.$ac_ext <<_ACEOF
12475 /* confdefs.h.  */
12476 _ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h.  */
12480 $ac_includes_default
12481 #include <$ac_header>
12482 _ACEOF
12483 rm -f conftest.$ac_objext
12484 if { (ac_try="$ac_compile"
12485 case "(($ac_try" in
12486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487   *) ac_try_echo=$ac_try;;
12488 esac
12489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12490   (eval "$ac_compile") 2>conftest.er1
12491   ac_status=$?
12492   grep -v '^ *+' conftest.er1 >conftest.err
12493   rm -f conftest.er1
12494   cat conftest.err >&5
12495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496   (exit $ac_status); } &&
12497          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12498   { (case "(($ac_try" in
12499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500   *) ac_try_echo=$ac_try;;
12501 esac
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503   (eval "$ac_try") 2>&5
12504   ac_status=$?
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); }; } &&
12507          { ac_try='test -s conftest.$ac_objext'
12508   { (case "(($ac_try" in
12509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510   *) ac_try_echo=$ac_try;;
12511 esac
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513   (eval "$ac_try") 2>&5
12514   ac_status=$?
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); }; }; then
12517   ac_header_compiler=yes
12518 else
12519   echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12521
12522         ac_header_compiler=no
12523 fi
12524
12525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12526 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12527 echo "${ECHO_T}$ac_header_compiler" >&6; }
12528
12529 # Is the header present?
12530 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12532 cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h.  */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h.  */
12538 #include <$ac_header>
12539 _ACEOF
12540 if { (ac_try="$ac_cpp conftest.$ac_ext"
12541 case "(($ac_try" in
12542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543   *) ac_try_echo=$ac_try;;
12544 esac
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12547   ac_status=$?
12548   grep -v '^ *+' conftest.er1 >conftest.err
12549   rm -f conftest.er1
12550   cat conftest.err >&5
12551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552   (exit $ac_status); } >/dev/null; then
12553   if test -s conftest.err; then
12554     ac_cpp_err=$ac_c_preproc_warn_flag
12555     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12556   else
12557     ac_cpp_err=
12558   fi
12559 else
12560   ac_cpp_err=yes
12561 fi
12562 if test -z "$ac_cpp_err"; then
12563   ac_header_preproc=yes
12564 else
12565   echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12567
12568   ac_header_preproc=no
12569 fi
12570
12571 rm -f conftest.err conftest.$ac_ext
12572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12573 echo "${ECHO_T}$ac_header_preproc" >&6; }
12574
12575 # So?  What about this header?
12576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12577   yes:no: )
12578     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12580     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12581 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12582     ac_header_preproc=yes
12583     ;;
12584   no:yes:* )
12585     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12587     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12588 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12589     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12590 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12591     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12592 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12593     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12595     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12596 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12597     ( cat <<\_ASBOX
12598 ## ----------------------------------- ##
12599 ## Report this to llvmbugs@cs.uiuc.edu ##
12600 ## ----------------------------------- ##
12601 _ASBOX
12602      ) | sed "s/^/$as_me: WARNING:     /" >&2
12603     ;;
12604 esac
12605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12608   echo $ECHO_N "(cached) $ECHO_C" >&6
12609 else
12610   eval "$as_ac_Header=\$ac_header_preproc"
12611 fi
12612 ac_res=`eval echo '${'$as_ac_Header'}'`
12613                { echo "$as_me:$LINENO: result: $ac_res" >&5
12614 echo "${ECHO_T}$ac_res" >&6; }
12615
12616 fi
12617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12618   cat >>confdefs.h <<_ACEOF
12619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12620 _ACEOF
12621  break
12622 fi
12623
12624 done
12625
12626
12627
12628
12629 for ac_func in strchr index
12630 do
12631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12635   echo $ECHO_N "(cached) $ECHO_C" >&6
12636 else
12637   cat >conftest.$ac_ext <<_ACEOF
12638 /* confdefs.h.  */
12639 _ACEOF
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h.  */
12643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12645 #define $ac_func innocuous_$ac_func
12646
12647 /* System header to define __stub macros and hopefully few prototypes,
12648     which can conflict with char $ac_func (); below.
12649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12650     <limits.h> exists even on freestanding compilers.  */
12651
12652 #ifdef __STDC__
12653 # include <limits.h>
12654 #else
12655 # include <assert.h>
12656 #endif
12657
12658 #undef $ac_func
12659
12660 /* Override any GCC internal prototype to avoid an error.
12661    Use char because int might match the return type of a GCC
12662    builtin and then its argument prototype would still apply.  */
12663 #ifdef __cplusplus
12664 extern "C"
12665 #endif
12666 char $ac_func ();
12667 /* The GNU C library defines this for functions which it implements
12668     to always fail with ENOSYS.  Some functions are actually named
12669     something starting with __ and the normal name is an alias.  */
12670 #if defined __stub_$ac_func || defined __stub___$ac_func
12671 choke me
12672 #endif
12673
12674 int
12675 main ()
12676 {
12677 return $ac_func ();
12678   ;
12679   return 0;
12680 }
12681 _ACEOF
12682 rm -f conftest.$ac_objext conftest$ac_exeext
12683 if { (ac_try="$ac_link"
12684 case "(($ac_try" in
12685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686   *) ac_try_echo=$ac_try;;
12687 esac
12688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12689   (eval "$ac_link") 2>conftest.er1
12690   ac_status=$?
12691   grep -v '^ *+' conftest.er1 >conftest.err
12692   rm -f conftest.er1
12693   cat conftest.err >&5
12694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695   (exit $ac_status); } &&
12696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12697   { (case "(($ac_try" in
12698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699   *) ac_try_echo=$ac_try;;
12700 esac
12701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702   (eval "$ac_try") 2>&5
12703   ac_status=$?
12704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705   (exit $ac_status); }; } &&
12706          { ac_try='test -s conftest$ac_exeext'
12707   { (case "(($ac_try" in
12708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709   *) ac_try_echo=$ac_try;;
12710 esac
12711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712   (eval "$ac_try") 2>&5
12713   ac_status=$?
12714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715   (exit $ac_status); }; }; then
12716   eval "$as_ac_var=yes"
12717 else
12718   echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12720
12721         eval "$as_ac_var=no"
12722 fi
12723
12724 rm -f core conftest.err conftest.$ac_objext \
12725       conftest$ac_exeext conftest.$ac_ext
12726 fi
12727 ac_res=`eval echo '${'$as_ac_var'}'`
12728                { echo "$as_me:$LINENO: result: $ac_res" >&5
12729 echo "${ECHO_T}$ac_res" >&6; }
12730 if test `eval echo '${'$as_ac_var'}'` = yes; then
12731   cat >>confdefs.h <<_ACEOF
12732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12733 _ACEOF
12734  break
12735 fi
12736 done
12737
12738
12739
12740 for ac_func in strrchr rindex
12741 do
12742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12746   echo $ECHO_N "(cached) $ECHO_C" >&6
12747 else
12748   cat >conftest.$ac_ext <<_ACEOF
12749 /* confdefs.h.  */
12750 _ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h.  */
12754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12756 #define $ac_func innocuous_$ac_func
12757
12758 /* System header to define __stub macros and hopefully few prototypes,
12759     which can conflict with char $ac_func (); below.
12760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12761     <limits.h> exists even on freestanding compilers.  */
12762
12763 #ifdef __STDC__
12764 # include <limits.h>
12765 #else
12766 # include <assert.h>
12767 #endif
12768
12769 #undef $ac_func
12770
12771 /* Override any GCC internal prototype to avoid an error.
12772    Use char because int might match the return type of a GCC
12773    builtin and then its argument prototype would still apply.  */
12774 #ifdef __cplusplus
12775 extern "C"
12776 #endif
12777 char $ac_func ();
12778 /* The GNU C library defines this for functions which it implements
12779     to always fail with ENOSYS.  Some functions are actually named
12780     something starting with __ and the normal name is an alias.  */
12781 #if defined __stub_$ac_func || defined __stub___$ac_func
12782 choke me
12783 #endif
12784
12785 int
12786 main ()
12787 {
12788 return $ac_func ();
12789   ;
12790   return 0;
12791 }
12792 _ACEOF
12793 rm -f conftest.$ac_objext conftest$ac_exeext
12794 if { (ac_try="$ac_link"
12795 case "(($ac_try" in
12796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797   *) ac_try_echo=$ac_try;;
12798 esac
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800   (eval "$ac_link") 2>conftest.er1
12801   ac_status=$?
12802   grep -v '^ *+' conftest.er1 >conftest.err
12803   rm -f conftest.er1
12804   cat conftest.err >&5
12805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806   (exit $ac_status); } &&
12807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12808   { (case "(($ac_try" in
12809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810   *) ac_try_echo=$ac_try;;
12811 esac
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813   (eval "$ac_try") 2>&5
12814   ac_status=$?
12815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816   (exit $ac_status); }; } &&
12817          { ac_try='test -s conftest$ac_exeext'
12818   { (case "(($ac_try" in
12819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820   *) ac_try_echo=$ac_try;;
12821 esac
12822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823   (eval "$ac_try") 2>&5
12824   ac_status=$?
12825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); }; }; then
12827   eval "$as_ac_var=yes"
12828 else
12829   echo "$as_me: failed program was:" >&5
12830 sed 's/^/| /' conftest.$ac_ext >&5
12831
12832         eval "$as_ac_var=no"
12833 fi
12834
12835 rm -f core conftest.err conftest.$ac_objext \
12836       conftest$ac_exeext conftest.$ac_ext
12837 fi
12838 ac_res=`eval echo '${'$as_ac_var'}'`
12839                { echo "$as_me:$LINENO: result: $ac_res" >&5
12840 echo "${ECHO_T}$ac_res" >&6; }
12841 if test `eval echo '${'$as_ac_var'}'` = yes; then
12842   cat >>confdefs.h <<_ACEOF
12843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12844 _ACEOF
12845  break
12846 fi
12847 done
12848
12849
12850
12851 for ac_func in memcpy bcopy
12852 do
12853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12857   echo $ECHO_N "(cached) $ECHO_C" >&6
12858 else
12859   cat >conftest.$ac_ext <<_ACEOF
12860 /* confdefs.h.  */
12861 _ACEOF
12862 cat confdefs.h >>conftest.$ac_ext
12863 cat >>conftest.$ac_ext <<_ACEOF
12864 /* end confdefs.h.  */
12865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12867 #define $ac_func innocuous_$ac_func
12868
12869 /* System header to define __stub macros and hopefully few prototypes,
12870     which can conflict with char $ac_func (); below.
12871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12872     <limits.h> exists even on freestanding compilers.  */
12873
12874 #ifdef __STDC__
12875 # include <limits.h>
12876 #else
12877 # include <assert.h>
12878 #endif
12879
12880 #undef $ac_func
12881
12882 /* Override any GCC internal prototype to avoid an error.
12883    Use char because int might match the return type of a GCC
12884    builtin and then its argument prototype would still apply.  */
12885 #ifdef __cplusplus
12886 extern "C"
12887 #endif
12888 char $ac_func ();
12889 /* The GNU C library defines this for functions which it implements
12890     to always fail with ENOSYS.  Some functions are actually named
12891     something starting with __ and the normal name is an alias.  */
12892 #if defined __stub_$ac_func || defined __stub___$ac_func
12893 choke me
12894 #endif
12895
12896 int
12897 main ()
12898 {
12899 return $ac_func ();
12900   ;
12901   return 0;
12902 }
12903 _ACEOF
12904 rm -f conftest.$ac_objext conftest$ac_exeext
12905 if { (ac_try="$ac_link"
12906 case "(($ac_try" in
12907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908   *) ac_try_echo=$ac_try;;
12909 esac
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911   (eval "$ac_link") 2>conftest.er1
12912   ac_status=$?
12913   grep -v '^ *+' conftest.er1 >conftest.err
12914   rm -f conftest.er1
12915   cat conftest.err >&5
12916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917   (exit $ac_status); } &&
12918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12919   { (case "(($ac_try" in
12920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921   *) ac_try_echo=$ac_try;;
12922 esac
12923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924   (eval "$ac_try") 2>&5
12925   ac_status=$?
12926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927   (exit $ac_status); }; } &&
12928          { ac_try='test -s conftest$ac_exeext'
12929   { (case "(($ac_try" in
12930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931   *) ac_try_echo=$ac_try;;
12932 esac
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934   (eval "$ac_try") 2>&5
12935   ac_status=$?
12936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937   (exit $ac_status); }; }; then
12938   eval "$as_ac_var=yes"
12939 else
12940   echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12942
12943         eval "$as_ac_var=no"
12944 fi
12945
12946 rm -f core conftest.err conftest.$ac_objext \
12947       conftest$ac_exeext conftest.$ac_ext
12948 fi
12949 ac_res=`eval echo '${'$as_ac_var'}'`
12950                { echo "$as_me:$LINENO: result: $ac_res" >&5
12951 echo "${ECHO_T}$ac_res" >&6; }
12952 if test `eval echo '${'$as_ac_var'}'` = yes; then
12953   cat >>confdefs.h <<_ACEOF
12954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12955 _ACEOF
12956  break
12957 fi
12958 done
12959
12960
12961
12962 for ac_func in memmove strcmp
12963 do
12964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12965 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12968   echo $ECHO_N "(cached) $ECHO_C" >&6
12969 else
12970   cat >conftest.$ac_ext <<_ACEOF
12971 /* confdefs.h.  */
12972 _ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h.  */
12976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12978 #define $ac_func innocuous_$ac_func
12979
12980 /* System header to define __stub macros and hopefully few prototypes,
12981     which can conflict with char $ac_func (); below.
12982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12983     <limits.h> exists even on freestanding compilers.  */
12984
12985 #ifdef __STDC__
12986 # include <limits.h>
12987 #else
12988 # include <assert.h>
12989 #endif
12990
12991 #undef $ac_func
12992
12993 /* Override any GCC internal prototype to avoid an error.
12994    Use char because int might match the return type of a GCC
12995    builtin and then its argument prototype would still apply.  */
12996 #ifdef __cplusplus
12997 extern "C"
12998 #endif
12999 char $ac_func ();
13000 /* The GNU C library defines this for functions which it implements
13001     to always fail with ENOSYS.  Some functions are actually named
13002     something starting with __ and the normal name is an alias.  */
13003 #if defined __stub_$ac_func || defined __stub___$ac_func
13004 choke me
13005 #endif
13006
13007 int
13008 main ()
13009 {
13010 return $ac_func ();
13011   ;
13012   return 0;
13013 }
13014 _ACEOF
13015 rm -f conftest.$ac_objext conftest$ac_exeext
13016 if { (ac_try="$ac_link"
13017 case "(($ac_try" in
13018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019   *) ac_try_echo=$ac_try;;
13020 esac
13021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022   (eval "$ac_link") 2>conftest.er1
13023   ac_status=$?
13024   grep -v '^ *+' conftest.er1 >conftest.err
13025   rm -f conftest.er1
13026   cat conftest.err >&5
13027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028   (exit $ac_status); } &&
13029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13030   { (case "(($ac_try" in
13031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032   *) ac_try_echo=$ac_try;;
13033 esac
13034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13035   (eval "$ac_try") 2>&5
13036   ac_status=$?
13037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); }; } &&
13039          { ac_try='test -s conftest$ac_exeext'
13040   { (case "(($ac_try" in
13041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042   *) ac_try_echo=$ac_try;;
13043 esac
13044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13045   (eval "$ac_try") 2>&5
13046   ac_status=$?
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); }; }; then
13049   eval "$as_ac_var=yes"
13050 else
13051   echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13053
13054         eval "$as_ac_var=no"
13055 fi
13056
13057 rm -f core conftest.err conftest.$ac_objext \
13058       conftest$ac_exeext conftest.$ac_ext
13059 fi
13060 ac_res=`eval echo '${'$as_ac_var'}'`
13061                { echo "$as_me:$LINENO: result: $ac_res" >&5
13062 echo "${ECHO_T}$ac_res" >&6; }
13063 if test `eval echo '${'$as_ac_var'}'` = yes; then
13064   cat >>confdefs.h <<_ACEOF
13065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13066 _ACEOF
13067
13068 fi
13069 done
13070
13071
13072
13073
13074 for ac_func in closedir opendir readdir
13075 do
13076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13077 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13079 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13080   echo $ECHO_N "(cached) $ECHO_C" >&6
13081 else
13082   cat >conftest.$ac_ext <<_ACEOF
13083 /* confdefs.h.  */
13084 _ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h.  */
13088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13089    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13090 #define $ac_func innocuous_$ac_func
13091
13092 /* System header to define __stub macros and hopefully few prototypes,
13093     which can conflict with char $ac_func (); below.
13094     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13095     <limits.h> exists even on freestanding compilers.  */
13096
13097 #ifdef __STDC__
13098 # include <limits.h>
13099 #else
13100 # include <assert.h>
13101 #endif
13102
13103 #undef $ac_func
13104
13105 /* Override any GCC internal prototype to avoid an error.
13106    Use char because int might match the return type of a GCC
13107    builtin and then its argument prototype would still apply.  */
13108 #ifdef __cplusplus
13109 extern "C"
13110 #endif
13111 char $ac_func ();
13112 /* The GNU C library defines this for functions which it implements
13113     to always fail with ENOSYS.  Some functions are actually named
13114     something starting with __ and the normal name is an alias.  */
13115 #if defined __stub_$ac_func || defined __stub___$ac_func
13116 choke me
13117 #endif
13118
13119 int
13120 main ()
13121 {
13122 return $ac_func ();
13123   ;
13124   return 0;
13125 }
13126 _ACEOF
13127 rm -f conftest.$ac_objext conftest$ac_exeext
13128 if { (ac_try="$ac_link"
13129 case "(($ac_try" in
13130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131   *) ac_try_echo=$ac_try;;
13132 esac
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134   (eval "$ac_link") 2>conftest.er1
13135   ac_status=$?
13136   grep -v '^ *+' conftest.er1 >conftest.err
13137   rm -f conftest.er1
13138   cat conftest.err >&5
13139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140   (exit $ac_status); } &&
13141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13142   { (case "(($ac_try" in
13143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144   *) ac_try_echo=$ac_try;;
13145 esac
13146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147   (eval "$ac_try") 2>&5
13148   ac_status=$?
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); }; } &&
13151          { ac_try='test -s conftest$ac_exeext'
13152   { (case "(($ac_try" in
13153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154   *) ac_try_echo=$ac_try;;
13155 esac
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157   (eval "$ac_try") 2>&5
13158   ac_status=$?
13159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160   (exit $ac_status); }; }; then
13161   eval "$as_ac_var=yes"
13162 else
13163   echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13165
13166         eval "$as_ac_var=no"
13167 fi
13168
13169 rm -f core conftest.err conftest.$ac_objext \
13170       conftest$ac_exeext conftest.$ac_ext
13171 fi
13172 ac_res=`eval echo '${'$as_ac_var'}'`
13173                { echo "$as_me:$LINENO: result: $ac_res" >&5
13174 echo "${ECHO_T}$ac_res" >&6; }
13175 if test `eval echo '${'$as_ac_var'}'` = yes; then
13176   cat >>confdefs.h <<_ACEOF
13177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13178 _ACEOF
13179
13180 fi
13181 done
13182
13183
13184
13185 if test "$WITH_LLVMGCCDIR" = "default" ; then
13186   LLVMGCC="llvm-gcc${EXEEXT}"
13187   LLVMGXX="llvm-g++${EXEEXT}"
13188   LLVMGCCCOMMAND="$LLVMGCC"
13189   LLVMGXXCOMMAND="$LLVMGXX"
13190   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13191
13192   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13193
13194   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13195 set dummy $LLVMGCC; ac_word=$2
13196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13198 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13199   echo $ECHO_N "(cached) $ECHO_C" >&6
13200 else
13201   case $LLVMGCC in
13202   [\\/]* | ?:[\\/]*)
13203   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13204   ;;
13205   *)
13206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13207 for as_dir in $PATH
13208 do
13209   IFS=$as_save_IFS
13210   test -z "$as_dir" && as_dir=.
13211   for ac_exec_ext in '' $ac_executable_extensions; do
13212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13213     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13215     break 2
13216   fi
13217 done
13218 done
13219 IFS=$as_save_IFS
13220
13221   ;;
13222 esac
13223 fi
13224 LLVMGCC=$ac_cv_path_LLVMGCC
13225 if test -n "$LLVMGCC"; then
13226   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13227 echo "${ECHO_T}$LLVMGCC" >&6; }
13228 else
13229   { echo "$as_me:$LINENO: result: no" >&5
13230 echo "${ECHO_T}no" >&6; }
13231 fi
13232
13233
13234   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13235 set dummy $LLVMGXX; ac_word=$2
13236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13238 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13239   echo $ECHO_N "(cached) $ECHO_C" >&6
13240 else
13241   case $LLVMGXX in
13242   [\\/]* | ?:[\\/]*)
13243   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13244   ;;
13245   *)
13246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247 for as_dir in $PATH
13248 do
13249   IFS=$as_save_IFS
13250   test -z "$as_dir" && as_dir=.
13251   for ac_exec_ext in '' $ac_executable_extensions; do
13252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13253     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13255     break 2
13256   fi
13257 done
13258 done
13259 IFS=$as_save_IFS
13260
13261   ;;
13262 esac
13263 fi
13264 LLVMGXX=$ac_cv_path_LLVMGXX
13265 if test -n "$LLVMGXX"; then
13266   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13267 echo "${ECHO_T}$LLVMGXX" >&6; }
13268 else
13269   { echo "$as_me:$LINENO: result: no" >&5
13270 echo "${ECHO_T}no" >&6; }
13271 fi
13272
13273
13274 else
13275   if test -z "$LLVMGCC"; then
13276     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13277     LLVMGCCCOMMAND="$LLVMGCC"
13278   fi
13279   if test -z "$LLVMGXX"; then
13280     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13281     LLVMGXXCOMMAND="$LLVMGXX"
13282   fi
13283
13284   LLVMGCC=$LLVMGCC
13285
13286   LLVMGXX=$LLVMGXX
13287
13288   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13289
13290   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13291
13292 fi
13293
13294
13295 # Check whether --with-llvmcc was given.
13296 if test "${with_llvmcc+set}" = set; then
13297   withval=$with_llvmcc;
13298 else
13299   with_llvmcc=check
13300 fi
13301
13302 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13303 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13304 if test "$with_llvmcc" != "check"; then
13305    if (test "$with_llvmcc" != "llvm-gcc" &&
13306        test "$with_llvmcc" != "clang" &&
13307        test "$with_llvmcc" != "none"); then
13308       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13309 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13310    { (exit 1); exit 1; }; }
13311    fi
13312    WITH_LLVMCC="$with_llvmcc"
13313 elif test -n "$LLVMGCC"; then
13314    WITH_LLVMCC=llvm-gcc
13315 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13316    WITH_LLVMCC=clang
13317 else
13318    WITH_LLVMCC=none
13319 fi
13320 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13321 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13322 LLVMCC_OPTION=$WITH_LLVMCC
13323
13324
13325 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13326 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13327
13328 ICC=no
13329 IXX=no
13330 case $CC in
13331   icc*|icpc*)
13332     ICC=yes
13333     IXX=yes
13334     ;;
13335    *)
13336     ;;
13337 esac
13338
13339 if test "$GCC" != "yes" && test "$ICC" != "yes"
13340 then
13341   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13342 echo "$as_me: error: gcc|icc required but not found" >&2;}
13343    { (exit 1); exit 1; }; }
13344 fi
13345
13346 if test "$GXX" != "yes" && test "$IXX" != "yes"
13347 then
13348   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13349 echo "$as_me: error: g++|icc required but not found" >&2;}
13350    { (exit 1); exit 1; }; }
13351 fi
13352
13353 if test "$GCC" = "yes"
13354 then
13355   cat >conftest.$ac_ext <<_ACEOF
13356 #if !defined(__GNUC__) || __GNUC__ < 3
13357 #error Unsupported GCC version
13358 #endif
13359
13360 _ACEOF
13361 rm -f conftest.$ac_objext
13362 if { (ac_try="$ac_compile"
13363 case "(($ac_try" in
13364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365   *) ac_try_echo=$ac_try;;
13366 esac
13367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368   (eval "$ac_compile") 2>conftest.er1
13369   ac_status=$?
13370   grep -v '^ *+' conftest.er1 >conftest.err
13371   rm -f conftest.er1
13372   cat conftest.err >&5
13373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374   (exit $ac_status); } &&
13375          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13376   { (case "(($ac_try" in
13377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378   *) ac_try_echo=$ac_try;;
13379 esac
13380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13381   (eval "$ac_try") 2>&5
13382   ac_status=$?
13383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384   (exit $ac_status); }; } &&
13385          { ac_try='test -s conftest.$ac_objext'
13386   { (case "(($ac_try" in
13387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13388   *) ac_try_echo=$ac_try;;
13389 esac
13390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13391   (eval "$ac_try") 2>&5
13392   ac_status=$?
13393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394   (exit $ac_status); }; }; then
13395   :
13396 else
13397   echo "$as_me: failed program was:" >&5
13398 sed 's/^/| /' conftest.$ac_ext >&5
13399
13400         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13401 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13402    { (exit 1); exit 1; }; }
13403 fi
13404
13405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13406 fi
13407
13408 if test -z "$llvm_cv_gnu_make_command"
13409 then
13410   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13411 echo "$as_me: error: GNU Make required but not found" >&2;}
13412    { (exit 1); exit 1; }; }
13413 fi
13414
13415 { echo "$as_me:$LINENO: result: ok" >&5
13416 echo "${ECHO_T}ok" >&6; }
13417
13418 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13419 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13420 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13421
13422 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13423
13424 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13425 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13426
13427
13428
13429 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13430 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13431 if test "${ac_cv_lib_m_sin+set}" = set; then
13432   echo $ECHO_N "(cached) $ECHO_C" >&6
13433 else
13434   ac_check_lib_save_LIBS=$LIBS
13435 LIBS="-lm  $LIBS"
13436 cat >conftest.$ac_ext <<_ACEOF
13437 /* confdefs.h.  */
13438 _ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h.  */
13442
13443 /* Override any GCC internal prototype to avoid an error.
13444    Use char because int might match the return type of a GCC
13445    builtin and then its argument prototype would still apply.  */
13446 #ifdef __cplusplus
13447 extern "C"
13448 #endif
13449 char sin ();
13450 int
13451 main ()
13452 {
13453 return sin ();
13454   ;
13455   return 0;
13456 }
13457 _ACEOF
13458 rm -f conftest.$ac_objext conftest$ac_exeext
13459 if { (ac_try="$ac_link"
13460 case "(($ac_try" in
13461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462   *) ac_try_echo=$ac_try;;
13463 esac
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465   (eval "$ac_link") 2>conftest.er1
13466   ac_status=$?
13467   grep -v '^ *+' conftest.er1 >conftest.err
13468   rm -f conftest.er1
13469   cat conftest.err >&5
13470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471   (exit $ac_status); } &&
13472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13473   { (case "(($ac_try" in
13474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475   *) ac_try_echo=$ac_try;;
13476 esac
13477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13478   (eval "$ac_try") 2>&5
13479   ac_status=$?
13480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481   (exit $ac_status); }; } &&
13482          { ac_try='test -s conftest$ac_exeext'
13483   { (case "(($ac_try" in
13484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485   *) ac_try_echo=$ac_try;;
13486 esac
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488   (eval "$ac_try") 2>&5
13489   ac_status=$?
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); }; }; then
13492   ac_cv_lib_m_sin=yes
13493 else
13494   echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13496
13497         ac_cv_lib_m_sin=no
13498 fi
13499
13500 rm -f core conftest.err conftest.$ac_objext \
13501       conftest$ac_exeext conftest.$ac_ext
13502 LIBS=$ac_check_lib_save_LIBS
13503 fi
13504 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13505 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13506 if test $ac_cv_lib_m_sin = yes; then
13507   cat >>confdefs.h <<_ACEOF
13508 #define HAVE_LIBM 1
13509 _ACEOF
13510
13511   LIBS="-lm $LIBS"
13512
13513 fi
13514
13515 if test "$llvm_cv_os_type" = "MingW" ; then
13516
13517 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13518 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13519 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13520   echo $ECHO_N "(cached) $ECHO_C" >&6
13521 else
13522   ac_check_lib_save_LIBS=$LIBS
13523 LIBS="-limagehlp  $LIBS"
13524 cat >conftest.$ac_ext <<_ACEOF
13525 /* confdefs.h.  */
13526 _ACEOF
13527 cat confdefs.h >>conftest.$ac_ext
13528 cat >>conftest.$ac_ext <<_ACEOF
13529 /* end confdefs.h.  */
13530
13531
13532 int
13533 main ()
13534 {
13535 return main ();
13536   ;
13537   return 0;
13538 }
13539 _ACEOF
13540 rm -f conftest.$ac_objext conftest$ac_exeext
13541 if { (ac_try="$ac_link"
13542 case "(($ac_try" in
13543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544   *) ac_try_echo=$ac_try;;
13545 esac
13546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547   (eval "$ac_link") 2>conftest.er1
13548   ac_status=$?
13549   grep -v '^ *+' conftest.er1 >conftest.err
13550   rm -f conftest.er1
13551   cat conftest.err >&5
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); } &&
13554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13555   { (case "(($ac_try" in
13556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557   *) ac_try_echo=$ac_try;;
13558 esac
13559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560   (eval "$ac_try") 2>&5
13561   ac_status=$?
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); }; } &&
13564          { ac_try='test -s conftest$ac_exeext'
13565   { (case "(($ac_try" in
13566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567   *) ac_try_echo=$ac_try;;
13568 esac
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570   (eval "$ac_try") 2>&5
13571   ac_status=$?
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); }; }; then
13574   ac_cv_lib_imagehlp_main=yes
13575 else
13576   echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13578
13579         ac_cv_lib_imagehlp_main=no
13580 fi
13581
13582 rm -f core conftest.err conftest.$ac_objext \
13583       conftest$ac_exeext conftest.$ac_ext
13584 LIBS=$ac_check_lib_save_LIBS
13585 fi
13586 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13587 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13588 if test $ac_cv_lib_imagehlp_main = yes; then
13589   cat >>confdefs.h <<_ACEOF
13590 #define HAVE_LIBIMAGEHLP 1
13591 _ACEOF
13592
13593   LIBS="-limagehlp $LIBS"
13594
13595 fi
13596
13597
13598 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13599 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13600 if test "${ac_cv_lib_psapi_main+set}" = set; then
13601   echo $ECHO_N "(cached) $ECHO_C" >&6
13602 else
13603   ac_check_lib_save_LIBS=$LIBS
13604 LIBS="-lpsapi  $LIBS"
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
13612
13613 int
13614 main ()
13615 {
13616 return main ();
13617   ;
13618   return 0;
13619 }
13620 _ACEOF
13621 rm -f conftest.$ac_objext conftest$ac_exeext
13622 if { (ac_try="$ac_link"
13623 case "(($ac_try" in
13624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13625   *) ac_try_echo=$ac_try;;
13626 esac
13627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13628   (eval "$ac_link") 2>conftest.er1
13629   ac_status=$?
13630   grep -v '^ *+' conftest.er1 >conftest.err
13631   rm -f conftest.er1
13632   cat conftest.err >&5
13633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634   (exit $ac_status); } &&
13635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13636   { (case "(($ac_try" in
13637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638   *) ac_try_echo=$ac_try;;
13639 esac
13640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641   (eval "$ac_try") 2>&5
13642   ac_status=$?
13643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644   (exit $ac_status); }; } &&
13645          { ac_try='test -s conftest$ac_exeext'
13646   { (case "(($ac_try" in
13647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648   *) ac_try_echo=$ac_try;;
13649 esac
13650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651   (eval "$ac_try") 2>&5
13652   ac_status=$?
13653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654   (exit $ac_status); }; }; then
13655   ac_cv_lib_psapi_main=yes
13656 else
13657   echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13659
13660         ac_cv_lib_psapi_main=no
13661 fi
13662
13663 rm -f core conftest.err conftest.$ac_objext \
13664       conftest$ac_exeext conftest.$ac_ext
13665 LIBS=$ac_check_lib_save_LIBS
13666 fi
13667 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13668 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13669 if test $ac_cv_lib_psapi_main = yes; then
13670   cat >>confdefs.h <<_ACEOF
13671 #define HAVE_LIBPSAPI 1
13672 _ACEOF
13673
13674   LIBS="-lpsapi $LIBS"
13675
13676 fi
13677
13678 fi
13679
13680 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13681 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13682 if test "${ac_cv_search_dlopen+set}" = set; then
13683   echo $ECHO_N "(cached) $ECHO_C" >&6
13684 else
13685   ac_func_search_save_LIBS=$LIBS
13686 cat >conftest.$ac_ext <<_ACEOF
13687 /* confdefs.h.  */
13688 _ACEOF
13689 cat confdefs.h >>conftest.$ac_ext
13690 cat >>conftest.$ac_ext <<_ACEOF
13691 /* end confdefs.h.  */
13692
13693 /* Override any GCC internal prototype to avoid an error.
13694    Use char because int might match the return type of a GCC
13695    builtin and then its argument prototype would still apply.  */
13696 #ifdef __cplusplus
13697 extern "C"
13698 #endif
13699 char dlopen ();
13700 int
13701 main ()
13702 {
13703 return dlopen ();
13704   ;
13705   return 0;
13706 }
13707 _ACEOF
13708 for ac_lib in '' dl; do
13709   if test -z "$ac_lib"; then
13710     ac_res="none required"
13711   else
13712     ac_res=-l$ac_lib
13713     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13714   fi
13715   rm -f conftest.$ac_objext conftest$ac_exeext
13716 if { (ac_try="$ac_link"
13717 case "(($ac_try" in
13718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719   *) ac_try_echo=$ac_try;;
13720 esac
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722   (eval "$ac_link") 2>conftest.er1
13723   ac_status=$?
13724   grep -v '^ *+' conftest.er1 >conftest.err
13725   rm -f conftest.er1
13726   cat conftest.err >&5
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); } &&
13729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13730   { (case "(($ac_try" in
13731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732   *) ac_try_echo=$ac_try;;
13733 esac
13734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13735   (eval "$ac_try") 2>&5
13736   ac_status=$?
13737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738   (exit $ac_status); }; } &&
13739          { ac_try='test -s conftest$ac_exeext'
13740   { (case "(($ac_try" in
13741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742   *) ac_try_echo=$ac_try;;
13743 esac
13744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745   (eval "$ac_try") 2>&5
13746   ac_status=$?
13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); }; }; then
13749   ac_cv_search_dlopen=$ac_res
13750 else
13751   echo "$as_me: failed program was:" >&5
13752 sed 's/^/| /' conftest.$ac_ext >&5
13753
13754
13755 fi
13756
13757 rm -f core conftest.err conftest.$ac_objext \
13758       conftest$ac_exeext
13759   if test "${ac_cv_search_dlopen+set}" = set; then
13760   break
13761 fi
13762 done
13763 if test "${ac_cv_search_dlopen+set}" = set; then
13764   :
13765 else
13766   ac_cv_search_dlopen=no
13767 fi
13768 rm conftest.$ac_ext
13769 LIBS=$ac_func_search_save_LIBS
13770 fi
13771 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13772 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13773 ac_res=$ac_cv_search_dlopen
13774 if test "$ac_res" != no; then
13775   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13776
13777 cat >>confdefs.h <<\_ACEOF
13778 #define HAVE_DLOPEN 1
13779 _ACEOF
13780
13781 else
13782   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13783 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13784 fi
13785
13786
13787 if test "$llvm_cv_enable_libffi" = "yes" ; then
13788   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13789 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13790 if test "${ac_cv_search_ffi_call+set}" = set; then
13791   echo $ECHO_N "(cached) $ECHO_C" >&6
13792 else
13793   ac_func_search_save_LIBS=$LIBS
13794 cat >conftest.$ac_ext <<_ACEOF
13795 /* confdefs.h.  */
13796 _ACEOF
13797 cat confdefs.h >>conftest.$ac_ext
13798 cat >>conftest.$ac_ext <<_ACEOF
13799 /* end confdefs.h.  */
13800
13801 /* Override any GCC internal prototype to avoid an error.
13802    Use char because int might match the return type of a GCC
13803    builtin and then its argument prototype would still apply.  */
13804 #ifdef __cplusplus
13805 extern "C"
13806 #endif
13807 char ffi_call ();
13808 int
13809 main ()
13810 {
13811 return ffi_call ();
13812   ;
13813   return 0;
13814 }
13815 _ACEOF
13816 for ac_lib in '' ffi; do
13817   if test -z "$ac_lib"; then
13818     ac_res="none required"
13819   else
13820     ac_res=-l$ac_lib
13821     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13822   fi
13823   rm -f conftest.$ac_objext conftest$ac_exeext
13824 if { (ac_try="$ac_link"
13825 case "(($ac_try" in
13826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827   *) ac_try_echo=$ac_try;;
13828 esac
13829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830   (eval "$ac_link") 2>conftest.er1
13831   ac_status=$?
13832   grep -v '^ *+' conftest.er1 >conftest.err
13833   rm -f conftest.er1
13834   cat conftest.err >&5
13835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836   (exit $ac_status); } &&
13837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13838   { (case "(($ac_try" in
13839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840   *) ac_try_echo=$ac_try;;
13841 esac
13842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843   (eval "$ac_try") 2>&5
13844   ac_status=$?
13845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846   (exit $ac_status); }; } &&
13847          { ac_try='test -s conftest$ac_exeext'
13848   { (case "(($ac_try" in
13849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850   *) ac_try_echo=$ac_try;;
13851 esac
13852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853   (eval "$ac_try") 2>&5
13854   ac_status=$?
13855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856   (exit $ac_status); }; }; then
13857   ac_cv_search_ffi_call=$ac_res
13858 else
13859   echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13861
13862
13863 fi
13864
13865 rm -f core conftest.err conftest.$ac_objext \
13866       conftest$ac_exeext
13867   if test "${ac_cv_search_ffi_call+set}" = set; then
13868   break
13869 fi
13870 done
13871 if test "${ac_cv_search_ffi_call+set}" = set; then
13872   :
13873 else
13874   ac_cv_search_ffi_call=no
13875 fi
13876 rm conftest.$ac_ext
13877 LIBS=$ac_func_search_save_LIBS
13878 fi
13879 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13880 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13881 ac_res=$ac_cv_search_ffi_call
13882 if test "$ac_res" != no; then
13883   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13884
13885 cat >>confdefs.h <<\_ACEOF
13886 #define HAVE_FFI_CALL 1
13887 _ACEOF
13888
13889 else
13890   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13891 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13892    { (exit 1); exit 1; }; }
13893 fi
13894
13895 fi
13896
13897 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13898 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13899 if test "${ac_cv_search_mallinfo+set}" = set; then
13900   echo $ECHO_N "(cached) $ECHO_C" >&6
13901 else
13902   ac_func_search_save_LIBS=$LIBS
13903 cat >conftest.$ac_ext <<_ACEOF
13904 /* confdefs.h.  */
13905 _ACEOF
13906 cat confdefs.h >>conftest.$ac_ext
13907 cat >>conftest.$ac_ext <<_ACEOF
13908 /* end confdefs.h.  */
13909
13910 /* Override any GCC internal prototype to avoid an error.
13911    Use char because int might match the return type of a GCC
13912    builtin and then its argument prototype would still apply.  */
13913 #ifdef __cplusplus
13914 extern "C"
13915 #endif
13916 char mallinfo ();
13917 int
13918 main ()
13919 {
13920 return mallinfo ();
13921   ;
13922   return 0;
13923 }
13924 _ACEOF
13925 for ac_lib in '' malloc; do
13926   if test -z "$ac_lib"; then
13927     ac_res="none required"
13928   else
13929     ac_res=-l$ac_lib
13930     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13931   fi
13932   rm -f conftest.$ac_objext conftest$ac_exeext
13933 if { (ac_try="$ac_link"
13934 case "(($ac_try" in
13935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936   *) ac_try_echo=$ac_try;;
13937 esac
13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939   (eval "$ac_link") 2>conftest.er1
13940   ac_status=$?
13941   grep -v '^ *+' conftest.er1 >conftest.err
13942   rm -f conftest.er1
13943   cat conftest.err >&5
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); } &&
13946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13947   { (case "(($ac_try" in
13948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949   *) ac_try_echo=$ac_try;;
13950 esac
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952   (eval "$ac_try") 2>&5
13953   ac_status=$?
13954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955   (exit $ac_status); }; } &&
13956          { ac_try='test -s conftest$ac_exeext'
13957   { (case "(($ac_try" in
13958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959   *) ac_try_echo=$ac_try;;
13960 esac
13961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962   (eval "$ac_try") 2>&5
13963   ac_status=$?
13964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965   (exit $ac_status); }; }; then
13966   ac_cv_search_mallinfo=$ac_res
13967 else
13968   echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13970
13971
13972 fi
13973
13974 rm -f core conftest.err conftest.$ac_objext \
13975       conftest$ac_exeext
13976   if test "${ac_cv_search_mallinfo+set}" = set; then
13977   break
13978 fi
13979 done
13980 if test "${ac_cv_search_mallinfo+set}" = set; then
13981   :
13982 else
13983   ac_cv_search_mallinfo=no
13984 fi
13985 rm conftest.$ac_ext
13986 LIBS=$ac_func_search_save_LIBS
13987 fi
13988 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13989 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13990 ac_res=$ac_cv_search_mallinfo
13991 if test "$ac_res" != no; then
13992   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13993
13994 cat >>confdefs.h <<\_ACEOF
13995 #define HAVE_MALLINFO 1
13996 _ACEOF
13997
13998 fi
13999
14000
14001 if test "$ENABLE_THREADS" -eq 1 ; then
14002
14003 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14004 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14005 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14006   echo $ECHO_N "(cached) $ECHO_C" >&6
14007 else
14008   ac_check_lib_save_LIBS=$LIBS
14009 LIBS="-lpthread  $LIBS"
14010 cat >conftest.$ac_ext <<_ACEOF
14011 /* confdefs.h.  */
14012 _ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h.  */
14016
14017 /* Override any GCC internal prototype to avoid an error.
14018    Use char because int might match the return type of a GCC
14019    builtin and then its argument prototype would still apply.  */
14020 #ifdef __cplusplus
14021 extern "C"
14022 #endif
14023 char pthread_mutex_init ();
14024 int
14025 main ()
14026 {
14027 return pthread_mutex_init ();
14028   ;
14029   return 0;
14030 }
14031 _ACEOF
14032 rm -f conftest.$ac_objext conftest$ac_exeext
14033 if { (ac_try="$ac_link"
14034 case "(($ac_try" in
14035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036   *) ac_try_echo=$ac_try;;
14037 esac
14038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14039   (eval "$ac_link") 2>conftest.er1
14040   ac_status=$?
14041   grep -v '^ *+' conftest.er1 >conftest.err
14042   rm -f conftest.er1
14043   cat conftest.err >&5
14044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045   (exit $ac_status); } &&
14046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14047   { (case "(($ac_try" in
14048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049   *) ac_try_echo=$ac_try;;
14050 esac
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052   (eval "$ac_try") 2>&5
14053   ac_status=$?
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); }; } &&
14056          { ac_try='test -s conftest$ac_exeext'
14057   { (case "(($ac_try" in
14058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059   *) ac_try_echo=$ac_try;;
14060 esac
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062   (eval "$ac_try") 2>&5
14063   ac_status=$?
14064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065   (exit $ac_status); }; }; then
14066   ac_cv_lib_pthread_pthread_mutex_init=yes
14067 else
14068   echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14070
14071         ac_cv_lib_pthread_pthread_mutex_init=no
14072 fi
14073
14074 rm -f core conftest.err conftest.$ac_objext \
14075       conftest$ac_exeext conftest.$ac_ext
14076 LIBS=$ac_check_lib_save_LIBS
14077 fi
14078 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14079 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14080 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14081   cat >>confdefs.h <<_ACEOF
14082 #define HAVE_LIBPTHREAD 1
14083 _ACEOF
14084
14085   LIBS="-lpthread $LIBS"
14086
14087 fi
14088
14089   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14090 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14091 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14092   echo $ECHO_N "(cached) $ECHO_C" >&6
14093 else
14094   ac_func_search_save_LIBS=$LIBS
14095 cat >conftest.$ac_ext <<_ACEOF
14096 /* confdefs.h.  */
14097 _ACEOF
14098 cat confdefs.h >>conftest.$ac_ext
14099 cat >>conftest.$ac_ext <<_ACEOF
14100 /* end confdefs.h.  */
14101
14102 /* Override any GCC internal prototype to avoid an error.
14103    Use char because int might match the return type of a GCC
14104    builtin and then its argument prototype would still apply.  */
14105 #ifdef __cplusplus
14106 extern "C"
14107 #endif
14108 char pthread_mutex_lock ();
14109 int
14110 main ()
14111 {
14112 return pthread_mutex_lock ();
14113   ;
14114   return 0;
14115 }
14116 _ACEOF
14117 for ac_lib in '' pthread; do
14118   if test -z "$ac_lib"; then
14119     ac_res="none required"
14120   else
14121     ac_res=-l$ac_lib
14122     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14123   fi
14124   rm -f conftest.$ac_objext conftest$ac_exeext
14125 if { (ac_try="$ac_link"
14126 case "(($ac_try" in
14127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128   *) ac_try_echo=$ac_try;;
14129 esac
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131   (eval "$ac_link") 2>conftest.er1
14132   ac_status=$?
14133   grep -v '^ *+' conftest.er1 >conftest.err
14134   rm -f conftest.er1
14135   cat conftest.err >&5
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); } &&
14138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14139   { (case "(($ac_try" in
14140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141   *) ac_try_echo=$ac_try;;
14142 esac
14143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144   (eval "$ac_try") 2>&5
14145   ac_status=$?
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); }; } &&
14148          { ac_try='test -s conftest$ac_exeext'
14149   { (case "(($ac_try" in
14150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151   *) ac_try_echo=$ac_try;;
14152 esac
14153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154   (eval "$ac_try") 2>&5
14155   ac_status=$?
14156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157   (exit $ac_status); }; }; then
14158   ac_cv_search_pthread_mutex_lock=$ac_res
14159 else
14160   echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14162
14163
14164 fi
14165
14166 rm -f core conftest.err conftest.$ac_objext \
14167       conftest$ac_exeext
14168   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14169   break
14170 fi
14171 done
14172 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14173   :
14174 else
14175   ac_cv_search_pthread_mutex_lock=no
14176 fi
14177 rm conftest.$ac_ext
14178 LIBS=$ac_func_search_save_LIBS
14179 fi
14180 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14181 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14182 ac_res=$ac_cv_search_pthread_mutex_lock
14183 if test "$ac_res" != no; then
14184   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14185
14186 cat >>confdefs.h <<\_ACEOF
14187 #define HAVE_PTHREAD_MUTEX_LOCK 1
14188 _ACEOF
14189
14190 fi
14191
14192   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14193 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14194 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14195   echo $ECHO_N "(cached) $ECHO_C" >&6
14196 else
14197   ac_func_search_save_LIBS=$LIBS
14198 cat >conftest.$ac_ext <<_ACEOF
14199 /* confdefs.h.  */
14200 _ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h.  */
14204
14205 /* Override any GCC internal prototype to avoid an error.
14206    Use char because int might match the return type of a GCC
14207    builtin and then its argument prototype would still apply.  */
14208 #ifdef __cplusplus
14209 extern "C"
14210 #endif
14211 char pthread_rwlock_init ();
14212 int
14213 main ()
14214 {
14215 return pthread_rwlock_init ();
14216   ;
14217   return 0;
14218 }
14219 _ACEOF
14220 for ac_lib in '' pthread; do
14221   if test -z "$ac_lib"; then
14222     ac_res="none required"
14223   else
14224     ac_res=-l$ac_lib
14225     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14226   fi
14227   rm -f conftest.$ac_objext conftest$ac_exeext
14228 if { (ac_try="$ac_link"
14229 case "(($ac_try" in
14230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231   *) ac_try_echo=$ac_try;;
14232 esac
14233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234   (eval "$ac_link") 2>conftest.er1
14235   ac_status=$?
14236   grep -v '^ *+' conftest.er1 >conftest.err
14237   rm -f conftest.er1
14238   cat conftest.err >&5
14239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240   (exit $ac_status); } &&
14241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14242   { (case "(($ac_try" in
14243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244   *) ac_try_echo=$ac_try;;
14245 esac
14246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247   (eval "$ac_try") 2>&5
14248   ac_status=$?
14249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250   (exit $ac_status); }; } &&
14251          { ac_try='test -s conftest$ac_exeext'
14252   { (case "(($ac_try" in
14253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254   *) ac_try_echo=$ac_try;;
14255 esac
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257   (eval "$ac_try") 2>&5
14258   ac_status=$?
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); }; }; then
14261   ac_cv_search_pthread_rwlock_init=$ac_res
14262 else
14263   echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14265
14266
14267 fi
14268
14269 rm -f core conftest.err conftest.$ac_objext \
14270       conftest$ac_exeext
14271   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14272   break
14273 fi
14274 done
14275 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14276   :
14277 else
14278   ac_cv_search_pthread_rwlock_init=no
14279 fi
14280 rm conftest.$ac_ext
14281 LIBS=$ac_func_search_save_LIBS
14282 fi
14283 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14284 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14285 ac_res=$ac_cv_search_pthread_rwlock_init
14286 if test "$ac_res" != no; then
14287   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14288
14289 cat >>confdefs.h <<\_ACEOF
14290 #define HAVE_PTHREAD_RWLOCK_INIT 1
14291 _ACEOF
14292
14293 fi
14294
14295   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14296 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14297 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14298   echo $ECHO_N "(cached) $ECHO_C" >&6
14299 else
14300   ac_func_search_save_LIBS=$LIBS
14301 cat >conftest.$ac_ext <<_ACEOF
14302 /* confdefs.h.  */
14303 _ACEOF
14304 cat confdefs.h >>conftest.$ac_ext
14305 cat >>conftest.$ac_ext <<_ACEOF
14306 /* end confdefs.h.  */
14307
14308 /* Override any GCC internal prototype to avoid an error.
14309    Use char because int might match the return type of a GCC
14310    builtin and then its argument prototype would still apply.  */
14311 #ifdef __cplusplus
14312 extern "C"
14313 #endif
14314 char pthread_getspecific ();
14315 int
14316 main ()
14317 {
14318 return pthread_getspecific ();
14319   ;
14320   return 0;
14321 }
14322 _ACEOF
14323 for ac_lib in '' pthread; do
14324   if test -z "$ac_lib"; then
14325     ac_res="none required"
14326   else
14327     ac_res=-l$ac_lib
14328     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14329   fi
14330   rm -f conftest.$ac_objext conftest$ac_exeext
14331 if { (ac_try="$ac_link"
14332 case "(($ac_try" in
14333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334   *) ac_try_echo=$ac_try;;
14335 esac
14336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337   (eval "$ac_link") 2>conftest.er1
14338   ac_status=$?
14339   grep -v '^ *+' conftest.er1 >conftest.err
14340   rm -f conftest.er1
14341   cat conftest.err >&5
14342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343   (exit $ac_status); } &&
14344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14345   { (case "(($ac_try" in
14346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347   *) ac_try_echo=$ac_try;;
14348 esac
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350   (eval "$ac_try") 2>&5
14351   ac_status=$?
14352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353   (exit $ac_status); }; } &&
14354          { ac_try='test -s conftest$ac_exeext'
14355   { (case "(($ac_try" in
14356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357   *) ac_try_echo=$ac_try;;
14358 esac
14359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14360   (eval "$ac_try") 2>&5
14361   ac_status=$?
14362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363   (exit $ac_status); }; }; then
14364   ac_cv_search_pthread_getspecific=$ac_res
14365 else
14366   echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14368
14369
14370 fi
14371
14372 rm -f core conftest.err conftest.$ac_objext \
14373       conftest$ac_exeext
14374   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14375   break
14376 fi
14377 done
14378 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14379   :
14380 else
14381   ac_cv_search_pthread_getspecific=no
14382 fi
14383 rm conftest.$ac_ext
14384 LIBS=$ac_func_search_save_LIBS
14385 fi
14386 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14387 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14388 ac_res=$ac_cv_search_pthread_getspecific
14389 if test "$ac_res" != no; then
14390   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14391
14392 cat >>confdefs.h <<\_ACEOF
14393 #define HAVE_PTHREAD_GETSPECIFIC 1
14394 _ACEOF
14395
14396 fi
14397
14398 fi
14399
14400
14401 # Check whether --with-udis86 was given.
14402 if test "${with_udis86+set}" = set; then
14403   withval=$with_udis86;
14404       USE_UDIS86=1
14405
14406       case "$withval" in
14407         /usr/lib|yes) ;;
14408         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14409       esac
14410
14411 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14412 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14413 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14414   echo $ECHO_N "(cached) $ECHO_C" >&6
14415 else
14416   ac_check_lib_save_LIBS=$LIBS
14417 LIBS="-ludis86  $LIBS"
14418 cat >conftest.$ac_ext <<_ACEOF
14419 /* confdefs.h.  */
14420 _ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h.  */
14424
14425 /* Override any GCC internal prototype to avoid an error.
14426    Use char because int might match the return type of a GCC
14427    builtin and then its argument prototype would still apply.  */
14428 #ifdef __cplusplus
14429 extern "C"
14430 #endif
14431 char ud_init ();
14432 int
14433 main ()
14434 {
14435 return ud_init ();
14436   ;
14437   return 0;
14438 }
14439 _ACEOF
14440 rm -f conftest.$ac_objext conftest$ac_exeext
14441 if { (ac_try="$ac_link"
14442 case "(($ac_try" in
14443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444   *) ac_try_echo=$ac_try;;
14445 esac
14446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447   (eval "$ac_link") 2>conftest.er1
14448   ac_status=$?
14449   grep -v '^ *+' conftest.er1 >conftest.err
14450   rm -f conftest.er1
14451   cat conftest.err >&5
14452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453   (exit $ac_status); } &&
14454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14455   { (case "(($ac_try" in
14456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457   *) ac_try_echo=$ac_try;;
14458 esac
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460   (eval "$ac_try") 2>&5
14461   ac_status=$?
14462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463   (exit $ac_status); }; } &&
14464          { ac_try='test -s conftest$ac_exeext'
14465   { (case "(($ac_try" in
14466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467   *) ac_try_echo=$ac_try;;
14468 esac
14469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14470   (eval "$ac_try") 2>&5
14471   ac_status=$?
14472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473   (exit $ac_status); }; }; then
14474   ac_cv_lib_udis86_ud_init=yes
14475 else
14476   echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14478
14479         ac_cv_lib_udis86_ud_init=no
14480 fi
14481
14482 rm -f core conftest.err conftest.$ac_objext \
14483       conftest$ac_exeext conftest.$ac_ext
14484 LIBS=$ac_check_lib_save_LIBS
14485 fi
14486 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14487 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14488 if test $ac_cv_lib_udis86_ud_init = yes; then
14489   cat >>confdefs.h <<_ACEOF
14490 #define HAVE_LIBUDIS86 1
14491 _ACEOF
14492
14493   LIBS="-ludis86 $LIBS"
14494
14495 else
14496
14497         echo "Error! You need to have libudis86 around."
14498         exit -1
14499
14500 fi
14501
14502
14503 else
14504   USE_UDIS86=0
14505
14506 fi
14507
14508
14509 cat >>confdefs.h <<_ACEOF
14510 #define USE_UDIS86 $USE_UDIS86
14511 _ACEOF
14512
14513
14514
14515 # Check whether --with-oprofile was given.
14516 if test "${with_oprofile+set}" = set; then
14517   withval=$with_oprofile;
14518       USE_OPROFILE=1
14519
14520       case "$withval" in
14521         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14522         no) llvm_cv_oppath=
14523             USE_OPROFILE=0
14524  ;;
14525         *) llvm_cv_oppath="${withval}/lib/oprofile"
14526            CPPFLAGS="-I${withval}/include";;
14527       esac
14528       if test -n "$llvm_cv_oppath" ; then
14529         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14530                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14531 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14532 if test "${ac_cv_search_bfd_init+set}" = set; then
14533   echo $ECHO_N "(cached) $ECHO_C" >&6
14534 else
14535   ac_func_search_save_LIBS=$LIBS
14536 cat >conftest.$ac_ext <<_ACEOF
14537 /* confdefs.h.  */
14538 _ACEOF
14539 cat confdefs.h >>conftest.$ac_ext
14540 cat >>conftest.$ac_ext <<_ACEOF
14541 /* end confdefs.h.  */
14542
14543 /* Override any GCC internal prototype to avoid an error.
14544    Use char because int might match the return type of a GCC
14545    builtin and then its argument prototype would still apply.  */
14546 #ifdef __cplusplus
14547 extern "C"
14548 #endif
14549 char bfd_init ();
14550 int
14551 main ()
14552 {
14553 return bfd_init ();
14554   ;
14555   return 0;
14556 }
14557 _ACEOF
14558 for ac_lib in '' bfd; do
14559   if test -z "$ac_lib"; then
14560     ac_res="none required"
14561   else
14562     ac_res=-l$ac_lib
14563     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14564   fi
14565   rm -f conftest.$ac_objext conftest$ac_exeext
14566 if { (ac_try="$ac_link"
14567 case "(($ac_try" in
14568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14569   *) ac_try_echo=$ac_try;;
14570 esac
14571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14572   (eval "$ac_link") 2>conftest.er1
14573   ac_status=$?
14574   grep -v '^ *+' conftest.er1 >conftest.err
14575   rm -f conftest.er1
14576   cat conftest.err >&5
14577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578   (exit $ac_status); } &&
14579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14580   { (case "(($ac_try" in
14581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582   *) ac_try_echo=$ac_try;;
14583 esac
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585   (eval "$ac_try") 2>&5
14586   ac_status=$?
14587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588   (exit $ac_status); }; } &&
14589          { ac_try='test -s conftest$ac_exeext'
14590   { (case "(($ac_try" in
14591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14592   *) ac_try_echo=$ac_try;;
14593 esac
14594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14595   (eval "$ac_try") 2>&5
14596   ac_status=$?
14597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598   (exit $ac_status); }; }; then
14599   ac_cv_search_bfd_init=$ac_res
14600 else
14601   echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14603
14604
14605 fi
14606
14607 rm -f core conftest.err conftest.$ac_objext \
14608       conftest$ac_exeext
14609   if test "${ac_cv_search_bfd_init+set}" = set; then
14610   break
14611 fi
14612 done
14613 if test "${ac_cv_search_bfd_init+set}" = set; then
14614   :
14615 else
14616   ac_cv_search_bfd_init=no
14617 fi
14618 rm conftest.$ac_ext
14619 LIBS=$ac_func_search_save_LIBS
14620 fi
14621 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14622 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14623 ac_res=$ac_cv_search_bfd_init
14624 if test "$ac_res" != no; then
14625   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14626
14627 fi
14628
14629         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14630 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14631 if test "${ac_cv_search_op_open_agent+set}" = set; then
14632   echo $ECHO_N "(cached) $ECHO_C" >&6
14633 else
14634   ac_func_search_save_LIBS=$LIBS
14635 cat >conftest.$ac_ext <<_ACEOF
14636 /* confdefs.h.  */
14637 _ACEOF
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h.  */
14641
14642 /* Override any GCC internal prototype to avoid an error.
14643    Use char because int might match the return type of a GCC
14644    builtin and then its argument prototype would still apply.  */
14645 #ifdef __cplusplus
14646 extern "C"
14647 #endif
14648 char op_open_agent ();
14649 int
14650 main ()
14651 {
14652 return op_open_agent ();
14653   ;
14654   return 0;
14655 }
14656 _ACEOF
14657 for ac_lib in '' opagent; do
14658   if test -z "$ac_lib"; then
14659     ac_res="none required"
14660   else
14661     ac_res=-l$ac_lib
14662     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14663   fi
14664   rm -f conftest.$ac_objext conftest$ac_exeext
14665 if { (ac_try="$ac_link"
14666 case "(($ac_try" in
14667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668   *) ac_try_echo=$ac_try;;
14669 esac
14670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671   (eval "$ac_link") 2>conftest.er1
14672   ac_status=$?
14673   grep -v '^ *+' conftest.er1 >conftest.err
14674   rm -f conftest.er1
14675   cat conftest.err >&5
14676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); } &&
14678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14679   { (case "(($ac_try" in
14680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681   *) ac_try_echo=$ac_try;;
14682 esac
14683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684   (eval "$ac_try") 2>&5
14685   ac_status=$?
14686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687   (exit $ac_status); }; } &&
14688          { ac_try='test -s conftest$ac_exeext'
14689   { (case "(($ac_try" in
14690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691   *) ac_try_echo=$ac_try;;
14692 esac
14693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694   (eval "$ac_try") 2>&5
14695   ac_status=$?
14696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697   (exit $ac_status); }; }; then
14698   ac_cv_search_op_open_agent=$ac_res
14699 else
14700   echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14702
14703
14704 fi
14705
14706 rm -f core conftest.err conftest.$ac_objext \
14707       conftest$ac_exeext
14708   if test "${ac_cv_search_op_open_agent+set}" = set; then
14709   break
14710 fi
14711 done
14712 if test "${ac_cv_search_op_open_agent+set}" = set; then
14713   :
14714 else
14715   ac_cv_search_op_open_agent=no
14716 fi
14717 rm conftest.$ac_ext
14718 LIBS=$ac_func_search_save_LIBS
14719 fi
14720 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14721 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14722 ac_res=$ac_cv_search_op_open_agent
14723 if test "$ac_res" != no; then
14724   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14725
14726 else
14727
14728           echo "Error! You need to have libopagent around."
14729           exit -1
14730
14731 fi
14732
14733         if test "${ac_cv_header_opagent_h+set}" = set; then
14734   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14735 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14736 if test "${ac_cv_header_opagent_h+set}" = set; then
14737   echo $ECHO_N "(cached) $ECHO_C" >&6
14738 fi
14739 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14740 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14741 else
14742   # Is the header compilable?
14743 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14744 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14745 cat >conftest.$ac_ext <<_ACEOF
14746 /* confdefs.h.  */
14747 _ACEOF
14748 cat confdefs.h >>conftest.$ac_ext
14749 cat >>conftest.$ac_ext <<_ACEOF
14750 /* end confdefs.h.  */
14751 $ac_includes_default
14752 #include <opagent.h>
14753 _ACEOF
14754 rm -f conftest.$ac_objext
14755 if { (ac_try="$ac_compile"
14756 case "(($ac_try" in
14757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758   *) ac_try_echo=$ac_try;;
14759 esac
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761   (eval "$ac_compile") 2>conftest.er1
14762   ac_status=$?
14763   grep -v '^ *+' conftest.er1 >conftest.err
14764   rm -f conftest.er1
14765   cat conftest.err >&5
14766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); } &&
14768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14769   { (case "(($ac_try" in
14770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771   *) ac_try_echo=$ac_try;;
14772 esac
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774   (eval "$ac_try") 2>&5
14775   ac_status=$?
14776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777   (exit $ac_status); }; } &&
14778          { ac_try='test -s conftest.$ac_objext'
14779   { (case "(($ac_try" in
14780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781   *) ac_try_echo=$ac_try;;
14782 esac
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784   (eval "$ac_try") 2>&5
14785   ac_status=$?
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); }; }; then
14788   ac_header_compiler=yes
14789 else
14790   echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14792
14793         ac_header_compiler=no
14794 fi
14795
14796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14798 echo "${ECHO_T}$ac_header_compiler" >&6; }
14799
14800 # Is the header present?
14801 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14802 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14803 cat >conftest.$ac_ext <<_ACEOF
14804 /* confdefs.h.  */
14805 _ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h.  */
14809 #include <opagent.h>
14810 _ACEOF
14811 if { (ac_try="$ac_cpp conftest.$ac_ext"
14812 case "(($ac_try" in
14813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814   *) ac_try_echo=$ac_try;;
14815 esac
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14818   ac_status=$?
14819   grep -v '^ *+' conftest.er1 >conftest.err
14820   rm -f conftest.er1
14821   cat conftest.err >&5
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); } >/dev/null; then
14824   if test -s conftest.err; then
14825     ac_cpp_err=$ac_c_preproc_warn_flag
14826     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14827   else
14828     ac_cpp_err=
14829   fi
14830 else
14831   ac_cpp_err=yes
14832 fi
14833 if test -z "$ac_cpp_err"; then
14834   ac_header_preproc=yes
14835 else
14836   echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.$ac_ext >&5
14838
14839   ac_header_preproc=no
14840 fi
14841
14842 rm -f conftest.err conftest.$ac_ext
14843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14844 echo "${ECHO_T}$ac_header_preproc" >&6; }
14845
14846 # So?  What about this header?
14847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14848   yes:no: )
14849     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14850 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14851     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14852 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14853     ac_header_preproc=yes
14854     ;;
14855   no:yes:* )
14856     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14857 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14858     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14859 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14860     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14861 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14862     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14863 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14864     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14865 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14866     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14867 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14868     ( cat <<\_ASBOX
14869 ## ----------------------------------- ##
14870 ## Report this to llvmbugs@cs.uiuc.edu ##
14871 ## ----------------------------------- ##
14872 _ASBOX
14873      ) | sed "s/^/$as_me: WARNING:     /" >&2
14874     ;;
14875 esac
14876 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14877 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14878 if test "${ac_cv_header_opagent_h+set}" = set; then
14879   echo $ECHO_N "(cached) $ECHO_C" >&6
14880 else
14881   ac_cv_header_opagent_h=$ac_header_preproc
14882 fi
14883 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14884 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14885
14886 fi
14887 if test $ac_cv_header_opagent_h = yes; then
14888   :
14889 else
14890
14891           echo "Error! You need to have opagent.h around."
14892           exit -1
14893
14894 fi
14895
14896
14897       fi
14898
14899 else
14900
14901       USE_OPROFILE=0
14902
14903
14904 fi
14905
14906
14907 cat >>confdefs.h <<_ACEOF
14908 #define USE_OPROFILE $USE_OPROFILE
14909 _ACEOF
14910
14911
14912
14913
14914
14915
14916
14917
14918 ac_header_dirent=no
14919 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14920   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14921 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14922 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14924   echo $ECHO_N "(cached) $ECHO_C" >&6
14925 else
14926   cat >conftest.$ac_ext <<_ACEOF
14927 /* confdefs.h.  */
14928 _ACEOF
14929 cat confdefs.h >>conftest.$ac_ext
14930 cat >>conftest.$ac_ext <<_ACEOF
14931 /* end confdefs.h.  */
14932 #include <sys/types.h>
14933 #include <$ac_hdr>
14934
14935 int
14936 main ()
14937 {
14938 if ((DIR *) 0)
14939 return 0;
14940   ;
14941   return 0;
14942 }
14943 _ACEOF
14944 rm -f conftest.$ac_objext
14945 if { (ac_try="$ac_compile"
14946 case "(($ac_try" in
14947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14948   *) ac_try_echo=$ac_try;;
14949 esac
14950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14951   (eval "$ac_compile") 2>conftest.er1
14952   ac_status=$?
14953   grep -v '^ *+' conftest.er1 >conftest.err
14954   rm -f conftest.er1
14955   cat conftest.err >&5
14956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957   (exit $ac_status); } &&
14958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14959   { (case "(($ac_try" in
14960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961   *) ac_try_echo=$ac_try;;
14962 esac
14963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964   (eval "$ac_try") 2>&5
14965   ac_status=$?
14966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967   (exit $ac_status); }; } &&
14968          { ac_try='test -s conftest.$ac_objext'
14969   { (case "(($ac_try" in
14970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971   *) ac_try_echo=$ac_try;;
14972 esac
14973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974   (eval "$ac_try") 2>&5
14975   ac_status=$?
14976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977   (exit $ac_status); }; }; then
14978   eval "$as_ac_Header=yes"
14979 else
14980   echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14982
14983         eval "$as_ac_Header=no"
14984 fi
14985
14986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14987 fi
14988 ac_res=`eval echo '${'$as_ac_Header'}'`
14989                { echo "$as_me:$LINENO: result: $ac_res" >&5
14990 echo "${ECHO_T}$ac_res" >&6; }
14991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14992   cat >>confdefs.h <<_ACEOF
14993 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14994 _ACEOF
14995
14996 ac_header_dirent=$ac_hdr; break
14997 fi
14998
14999 done
15000 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15001 if test $ac_header_dirent = dirent.h; then
15002   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15003 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15004 if test "${ac_cv_search_opendir+set}" = set; then
15005   echo $ECHO_N "(cached) $ECHO_C" >&6
15006 else
15007   ac_func_search_save_LIBS=$LIBS
15008 cat >conftest.$ac_ext <<_ACEOF
15009 /* confdefs.h.  */
15010 _ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
15013 /* end confdefs.h.  */
15014
15015 /* Override any GCC internal prototype to avoid an error.
15016    Use char because int might match the return type of a GCC
15017    builtin and then its argument prototype would still apply.  */
15018 #ifdef __cplusplus
15019 extern "C"
15020 #endif
15021 char opendir ();
15022 int
15023 main ()
15024 {
15025 return opendir ();
15026   ;
15027   return 0;
15028 }
15029 _ACEOF
15030 for ac_lib in '' dir; do
15031   if test -z "$ac_lib"; then
15032     ac_res="none required"
15033   else
15034     ac_res=-l$ac_lib
15035     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15036   fi
15037   rm -f conftest.$ac_objext conftest$ac_exeext
15038 if { (ac_try="$ac_link"
15039 case "(($ac_try" in
15040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041   *) ac_try_echo=$ac_try;;
15042 esac
15043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044   (eval "$ac_link") 2>conftest.er1
15045   ac_status=$?
15046   grep -v '^ *+' conftest.er1 >conftest.err
15047   rm -f conftest.er1
15048   cat conftest.err >&5
15049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050   (exit $ac_status); } &&
15051          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15052   { (case "(($ac_try" in
15053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054   *) ac_try_echo=$ac_try;;
15055 esac
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057   (eval "$ac_try") 2>&5
15058   ac_status=$?
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); }; } &&
15061          { ac_try='test -s conftest$ac_exeext'
15062   { (case "(($ac_try" in
15063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064   *) ac_try_echo=$ac_try;;
15065 esac
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067   (eval "$ac_try") 2>&5
15068   ac_status=$?
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); }; }; then
15071   ac_cv_search_opendir=$ac_res
15072 else
15073   echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15075
15076
15077 fi
15078
15079 rm -f core conftest.err conftest.$ac_objext \
15080       conftest$ac_exeext
15081   if test "${ac_cv_search_opendir+set}" = set; then
15082   break
15083 fi
15084 done
15085 if test "${ac_cv_search_opendir+set}" = set; then
15086   :
15087 else
15088   ac_cv_search_opendir=no
15089 fi
15090 rm conftest.$ac_ext
15091 LIBS=$ac_func_search_save_LIBS
15092 fi
15093 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15094 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15095 ac_res=$ac_cv_search_opendir
15096 if test "$ac_res" != no; then
15097   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15098
15099 fi
15100
15101 else
15102   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15103 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15104 if test "${ac_cv_search_opendir+set}" = set; then
15105   echo $ECHO_N "(cached) $ECHO_C" >&6
15106 else
15107   ac_func_search_save_LIBS=$LIBS
15108 cat >conftest.$ac_ext <<_ACEOF
15109 /* confdefs.h.  */
15110 _ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h.  */
15114
15115 /* Override any GCC internal prototype to avoid an error.
15116    Use char because int might match the return type of a GCC
15117    builtin and then its argument prototype would still apply.  */
15118 #ifdef __cplusplus
15119 extern "C"
15120 #endif
15121 char opendir ();
15122 int
15123 main ()
15124 {
15125 return opendir ();
15126   ;
15127   return 0;
15128 }
15129 _ACEOF
15130 for ac_lib in '' x; do
15131   if test -z "$ac_lib"; then
15132     ac_res="none required"
15133   else
15134     ac_res=-l$ac_lib
15135     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15136   fi
15137   rm -f conftest.$ac_objext conftest$ac_exeext
15138 if { (ac_try="$ac_link"
15139 case "(($ac_try" in
15140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141   *) ac_try_echo=$ac_try;;
15142 esac
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144   (eval "$ac_link") 2>conftest.er1
15145   ac_status=$?
15146   grep -v '^ *+' conftest.er1 >conftest.err
15147   rm -f conftest.er1
15148   cat conftest.err >&5
15149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150   (exit $ac_status); } &&
15151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15152   { (case "(($ac_try" in
15153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154   *) ac_try_echo=$ac_try;;
15155 esac
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157   (eval "$ac_try") 2>&5
15158   ac_status=$?
15159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160   (exit $ac_status); }; } &&
15161          { ac_try='test -s conftest$ac_exeext'
15162   { (case "(($ac_try" in
15163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164   *) ac_try_echo=$ac_try;;
15165 esac
15166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167   (eval "$ac_try") 2>&5
15168   ac_status=$?
15169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170   (exit $ac_status); }; }; then
15171   ac_cv_search_opendir=$ac_res
15172 else
15173   echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15175
15176
15177 fi
15178
15179 rm -f core conftest.err conftest.$ac_objext \
15180       conftest$ac_exeext
15181   if test "${ac_cv_search_opendir+set}" = set; then
15182   break
15183 fi
15184 done
15185 if test "${ac_cv_search_opendir+set}" = set; then
15186   :
15187 else
15188   ac_cv_search_opendir=no
15189 fi
15190 rm conftest.$ac_ext
15191 LIBS=$ac_func_search_save_LIBS
15192 fi
15193 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15194 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15195 ac_res=$ac_cv_search_opendir
15196 if test "$ac_res" != no; then
15197   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15198
15199 fi
15200
15201 fi
15202
15203 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15204 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15205 if test "${ac_cv_header_mmap_anon+set}" = set; then
15206   echo $ECHO_N "(cached) $ECHO_C" >&6
15207 else
15208    ac_ext=c
15209 ac_cpp='$CPP $CPPFLAGS'
15210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15213
15214   cat >conftest.$ac_ext <<_ACEOF
15215 /* confdefs.h.  */
15216 _ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h.  */
15220 #include <sys/mman.h>
15221 #include <unistd.h>
15222 #include <fcntl.h>
15223 int
15224 main ()
15225 {
15226 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15227   ;
15228   return 0;
15229 }
15230 _ACEOF
15231 rm -f conftest.$ac_objext
15232 if { (ac_try="$ac_compile"
15233 case "(($ac_try" in
15234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235   *) ac_try_echo=$ac_try;;
15236 esac
15237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15238   (eval "$ac_compile") 2>conftest.er1
15239   ac_status=$?
15240   grep -v '^ *+' conftest.er1 >conftest.err
15241   rm -f conftest.er1
15242   cat conftest.err >&5
15243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244   (exit $ac_status); } &&
15245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15246   { (case "(($ac_try" in
15247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248   *) ac_try_echo=$ac_try;;
15249 esac
15250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15251   (eval "$ac_try") 2>&5
15252   ac_status=$?
15253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254   (exit $ac_status); }; } &&
15255          { ac_try='test -s conftest.$ac_objext'
15256   { (case "(($ac_try" in
15257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258   *) ac_try_echo=$ac_try;;
15259 esac
15260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15261   (eval "$ac_try") 2>&5
15262   ac_status=$?
15263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264   (exit $ac_status); }; }; then
15265   ac_cv_header_mmap_anon=yes
15266 else
15267   echo "$as_me: failed program was:" >&5
15268 sed 's/^/| /' conftest.$ac_ext >&5
15269
15270         ac_cv_header_mmap_anon=no
15271 fi
15272
15273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15274   ac_ext=c
15275 ac_cpp='$CPP $CPPFLAGS'
15276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15279
15280
15281 fi
15282 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15283 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15284 if test "$ac_cv_header_mmap_anon" = yes; then
15285
15286 cat >>confdefs.h <<\_ACEOF
15287 #define HAVE_MMAP_ANONYMOUS 1
15288 _ACEOF
15289
15290 fi
15291
15292 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15293 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15294 if test "${ac_cv_header_stat_broken+set}" = set; then
15295   echo $ECHO_N "(cached) $ECHO_C" >&6
15296 else
15297   cat >conftest.$ac_ext <<_ACEOF
15298 /* confdefs.h.  */
15299 _ACEOF
15300 cat confdefs.h >>conftest.$ac_ext
15301 cat >>conftest.$ac_ext <<_ACEOF
15302 /* end confdefs.h.  */
15303 #include <sys/types.h>
15304 #include <sys/stat.h>
15305
15306 #if defined S_ISBLK && defined S_IFDIR
15307 # if S_ISBLK (S_IFDIR)
15308 You lose.
15309 # endif
15310 #endif
15311
15312 #if defined S_ISBLK && defined S_IFCHR
15313 # if S_ISBLK (S_IFCHR)
15314 You lose.
15315 # endif
15316 #endif
15317
15318 #if defined S_ISLNK && defined S_IFREG
15319 # if S_ISLNK (S_IFREG)
15320 You lose.
15321 # endif
15322 #endif
15323
15324 #if defined S_ISSOCK && defined S_IFREG
15325 # if S_ISSOCK (S_IFREG)
15326 You lose.
15327 # endif
15328 #endif
15329
15330 _ACEOF
15331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15332   $EGREP "You lose" >/dev/null 2>&1; then
15333   ac_cv_header_stat_broken=yes
15334 else
15335   ac_cv_header_stat_broken=no
15336 fi
15337 rm -f conftest*
15338
15339 fi
15340 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15341 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15342 if test $ac_cv_header_stat_broken = yes; then
15343
15344 cat >>confdefs.h <<\_ACEOF
15345 #define STAT_MACROS_BROKEN 1
15346 _ACEOF
15347
15348 fi
15349
15350 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15351 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15352 if test "${ac_cv_header_stdc+set}" = set; then
15353   echo $ECHO_N "(cached) $ECHO_C" >&6
15354 else
15355   cat >conftest.$ac_ext <<_ACEOF
15356 /* confdefs.h.  */
15357 _ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h.  */
15361 #include <stdlib.h>
15362 #include <stdarg.h>
15363 #include <string.h>
15364 #include <float.h>
15365
15366 int
15367 main ()
15368 {
15369
15370   ;
15371   return 0;
15372 }
15373 _ACEOF
15374 rm -f conftest.$ac_objext
15375 if { (ac_try="$ac_compile"
15376 case "(($ac_try" in
15377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378   *) ac_try_echo=$ac_try;;
15379 esac
15380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381   (eval "$ac_compile") 2>conftest.er1
15382   ac_status=$?
15383   grep -v '^ *+' conftest.er1 >conftest.err
15384   rm -f conftest.er1
15385   cat conftest.err >&5
15386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387   (exit $ac_status); } &&
15388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15389   { (case "(($ac_try" in
15390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391   *) ac_try_echo=$ac_try;;
15392 esac
15393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394   (eval "$ac_try") 2>&5
15395   ac_status=$?
15396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397   (exit $ac_status); }; } &&
15398          { ac_try='test -s conftest.$ac_objext'
15399   { (case "(($ac_try" in
15400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401   *) ac_try_echo=$ac_try;;
15402 esac
15403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15404   (eval "$ac_try") 2>&5
15405   ac_status=$?
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); }; }; then
15408   ac_cv_header_stdc=yes
15409 else
15410   echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15412
15413         ac_cv_header_stdc=no
15414 fi
15415
15416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15417
15418 if test $ac_cv_header_stdc = yes; then
15419   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15420   cat >conftest.$ac_ext <<_ACEOF
15421 /* confdefs.h.  */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h.  */
15426 #include <string.h>
15427
15428 _ACEOF
15429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15430   $EGREP "memchr" >/dev/null 2>&1; then
15431   :
15432 else
15433   ac_cv_header_stdc=no
15434 fi
15435 rm -f conftest*
15436
15437 fi
15438
15439 if test $ac_cv_header_stdc = yes; then
15440   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15441   cat >conftest.$ac_ext <<_ACEOF
15442 /* confdefs.h.  */
15443 _ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h.  */
15447 #include <stdlib.h>
15448
15449 _ACEOF
15450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15451   $EGREP "free" >/dev/null 2>&1; then
15452   :
15453 else
15454   ac_cv_header_stdc=no
15455 fi
15456 rm -f conftest*
15457
15458 fi
15459
15460 if test $ac_cv_header_stdc = yes; then
15461   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15462   if test "$cross_compiling" = yes; then
15463   :
15464 else
15465   cat >conftest.$ac_ext <<_ACEOF
15466 /* confdefs.h.  */
15467 _ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h.  */
15471 #include <ctype.h>
15472 #include <stdlib.h>
15473 #if ((' ' & 0x0FF) == 0x020)
15474 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15475 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15476 #else
15477 # define ISLOWER(c) \
15478                    (('a' <= (c) && (c) <= 'i') \
15479                      || ('j' <= (c) && (c) <= 'r') \
15480                      || ('s' <= (c) && (c) <= 'z'))
15481 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15482 #endif
15483
15484 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15485 int
15486 main ()
15487 {
15488   int i;
15489   for (i = 0; i < 256; i++)
15490     if (XOR (islower (i), ISLOWER (i))
15491         || toupper (i) != TOUPPER (i))
15492       return 2;
15493   return 0;
15494 }
15495 _ACEOF
15496 rm -f conftest$ac_exeext
15497 if { (ac_try="$ac_link"
15498 case "(($ac_try" in
15499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15500   *) ac_try_echo=$ac_try;;
15501 esac
15502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15503   (eval "$ac_link") 2>&5
15504   ac_status=$?
15505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15507   { (case "(($ac_try" in
15508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15509   *) ac_try_echo=$ac_try;;
15510 esac
15511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15512   (eval "$ac_try") 2>&5
15513   ac_status=$?
15514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515   (exit $ac_status); }; }; then
15516   :
15517 else
15518   echo "$as_me: program exited with status $ac_status" >&5
15519 echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15521
15522 ( exit $ac_status )
15523 ac_cv_header_stdc=no
15524 fi
15525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15526 fi
15527
15528
15529 fi
15530 fi
15531 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15532 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15533 if test $ac_cv_header_stdc = yes; then
15534
15535 cat >>confdefs.h <<\_ACEOF
15536 #define STDC_HEADERS 1
15537 _ACEOF
15538
15539 fi
15540
15541 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15542 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15543 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15544   echo $ECHO_N "(cached) $ECHO_C" >&6
15545 else
15546   cat >conftest.$ac_ext <<_ACEOF
15547 /* confdefs.h.  */
15548 _ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h.  */
15552 #include <sys/types.h>
15553 #include <sys/wait.h>
15554 #ifndef WEXITSTATUS
15555 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15556 #endif
15557 #ifndef WIFEXITED
15558 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15559 #endif
15560
15561 int
15562 main ()
15563 {
15564   int s;
15565   wait (&s);
15566   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15567   ;
15568   return 0;
15569 }
15570 _ACEOF
15571 rm -f conftest.$ac_objext
15572 if { (ac_try="$ac_compile"
15573 case "(($ac_try" in
15574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575   *) ac_try_echo=$ac_try;;
15576 esac
15577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15578   (eval "$ac_compile") 2>conftest.er1
15579   ac_status=$?
15580   grep -v '^ *+' conftest.er1 >conftest.err
15581   rm -f conftest.er1
15582   cat conftest.err >&5
15583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584   (exit $ac_status); } &&
15585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15586   { (case "(($ac_try" in
15587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588   *) ac_try_echo=$ac_try;;
15589 esac
15590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591   (eval "$ac_try") 2>&5
15592   ac_status=$?
15593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594   (exit $ac_status); }; } &&
15595          { ac_try='test -s conftest.$ac_objext'
15596   { (case "(($ac_try" in
15597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598   *) ac_try_echo=$ac_try;;
15599 esac
15600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601   (eval "$ac_try") 2>&5
15602   ac_status=$?
15603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604   (exit $ac_status); }; }; then
15605   ac_cv_header_sys_wait_h=yes
15606 else
15607   echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15609
15610         ac_cv_header_sys_wait_h=no
15611 fi
15612
15613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15614 fi
15615 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15616 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15617 if test $ac_cv_header_sys_wait_h = yes; then
15618
15619 cat >>confdefs.h <<\_ACEOF
15620 #define HAVE_SYS_WAIT_H 1
15621 _ACEOF
15622
15623 fi
15624
15625 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15626 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15627 if test "${ac_cv_header_time+set}" = set; then
15628   echo $ECHO_N "(cached) $ECHO_C" >&6
15629 else
15630   cat >conftest.$ac_ext <<_ACEOF
15631 /* confdefs.h.  */
15632 _ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h.  */
15636 #include <sys/types.h>
15637 #include <sys/time.h>
15638 #include <time.h>
15639
15640 int
15641 main ()
15642 {
15643 if ((struct tm *) 0)
15644 return 0;
15645   ;
15646   return 0;
15647 }
15648 _ACEOF
15649 rm -f conftest.$ac_objext
15650 if { (ac_try="$ac_compile"
15651 case "(($ac_try" in
15652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653   *) ac_try_echo=$ac_try;;
15654 esac
15655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15656   (eval "$ac_compile") 2>conftest.er1
15657   ac_status=$?
15658   grep -v '^ *+' conftest.er1 >conftest.err
15659   rm -f conftest.er1
15660   cat conftest.err >&5
15661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662   (exit $ac_status); } &&
15663          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15664   { (case "(($ac_try" in
15665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15666   *) ac_try_echo=$ac_try;;
15667 esac
15668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15669   (eval "$ac_try") 2>&5
15670   ac_status=$?
15671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672   (exit $ac_status); }; } &&
15673          { ac_try='test -s conftest.$ac_objext'
15674   { (case "(($ac_try" in
15675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15676   *) ac_try_echo=$ac_try;;
15677 esac
15678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15679   (eval "$ac_try") 2>&5
15680   ac_status=$?
15681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682   (exit $ac_status); }; }; then
15683   ac_cv_header_time=yes
15684 else
15685   echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15687
15688         ac_cv_header_time=no
15689 fi
15690
15691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15692 fi
15693 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15694 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15695 if test $ac_cv_header_time = yes; then
15696
15697 cat >>confdefs.h <<\_ACEOF
15698 #define TIME_WITH_SYS_TIME 1
15699 _ACEOF
15700
15701 fi
15702
15703
15704
15705
15706
15707
15708
15709
15710 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15711 do
15712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15714   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15717   echo $ECHO_N "(cached) $ECHO_C" >&6
15718 fi
15719 ac_res=`eval echo '${'$as_ac_Header'}'`
15720                { echo "$as_me:$LINENO: result: $ac_res" >&5
15721 echo "${ECHO_T}$ac_res" >&6; }
15722 else
15723   # Is the header compilable?
15724 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15726 cat >conftest.$ac_ext <<_ACEOF
15727 /* confdefs.h.  */
15728 _ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h.  */
15732 $ac_includes_default
15733 #include <$ac_header>
15734 _ACEOF
15735 rm -f conftest.$ac_objext
15736 if { (ac_try="$ac_compile"
15737 case "(($ac_try" in
15738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739   *) ac_try_echo=$ac_try;;
15740 esac
15741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742   (eval "$ac_compile") 2>conftest.er1
15743   ac_status=$?
15744   grep -v '^ *+' conftest.er1 >conftest.err
15745   rm -f conftest.er1
15746   cat conftest.err >&5
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); } &&
15749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15750   { (case "(($ac_try" in
15751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752   *) ac_try_echo=$ac_try;;
15753 esac
15754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755   (eval "$ac_try") 2>&5
15756   ac_status=$?
15757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758   (exit $ac_status); }; } &&
15759          { ac_try='test -s conftest.$ac_objext'
15760   { (case "(($ac_try" in
15761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762   *) ac_try_echo=$ac_try;;
15763 esac
15764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765   (eval "$ac_try") 2>&5
15766   ac_status=$?
15767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768   (exit $ac_status); }; }; then
15769   ac_header_compiler=yes
15770 else
15771   echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15773
15774         ac_header_compiler=no
15775 fi
15776
15777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15778 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15779 echo "${ECHO_T}$ac_header_compiler" >&6; }
15780
15781 # Is the header present?
15782 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15784 cat >conftest.$ac_ext <<_ACEOF
15785 /* confdefs.h.  */
15786 _ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h.  */
15790 #include <$ac_header>
15791 _ACEOF
15792 if { (ac_try="$ac_cpp conftest.$ac_ext"
15793 case "(($ac_try" in
15794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15795   *) ac_try_echo=$ac_try;;
15796 esac
15797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15798   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15799   ac_status=$?
15800   grep -v '^ *+' conftest.er1 >conftest.err
15801   rm -f conftest.er1
15802   cat conftest.err >&5
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); } >/dev/null; then
15805   if test -s conftest.err; then
15806     ac_cpp_err=$ac_c_preproc_warn_flag
15807     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15808   else
15809     ac_cpp_err=
15810   fi
15811 else
15812   ac_cpp_err=yes
15813 fi
15814 if test -z "$ac_cpp_err"; then
15815   ac_header_preproc=yes
15816 else
15817   echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15819
15820   ac_header_preproc=no
15821 fi
15822
15823 rm -f conftest.err conftest.$ac_ext
15824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15825 echo "${ECHO_T}$ac_header_preproc" >&6; }
15826
15827 # So?  What about this header?
15828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15829   yes:no: )
15830     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15834     ac_header_preproc=yes
15835     ;;
15836   no:yes:* )
15837     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15839     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15840 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15841     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15843     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15844 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15847     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15849     ( cat <<\_ASBOX
15850 ## ----------------------------------- ##
15851 ## Report this to llvmbugs@cs.uiuc.edu ##
15852 ## ----------------------------------- ##
15853 _ASBOX
15854      ) | sed "s/^/$as_me: WARNING:     /" >&2
15855     ;;
15856 esac
15857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15860   echo $ECHO_N "(cached) $ECHO_C" >&6
15861 else
15862   eval "$as_ac_Header=\$ac_header_preproc"
15863 fi
15864 ac_res=`eval echo '${'$as_ac_Header'}'`
15865                { echo "$as_me:$LINENO: result: $ac_res" >&5
15866 echo "${ECHO_T}$ac_res" >&6; }
15867
15868 fi
15869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15870   cat >>confdefs.h <<_ACEOF
15871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15872 _ACEOF
15873
15874 fi
15875
15876 done
15877
15878
15879
15880
15881
15882
15883
15884 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15885 do
15886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15888   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15891   echo $ECHO_N "(cached) $ECHO_C" >&6
15892 fi
15893 ac_res=`eval echo '${'$as_ac_Header'}'`
15894                { echo "$as_me:$LINENO: result: $ac_res" >&5
15895 echo "${ECHO_T}$ac_res" >&6; }
15896 else
15897   # Is the header compilable?
15898 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15900 cat >conftest.$ac_ext <<_ACEOF
15901 /* confdefs.h.  */
15902 _ACEOF
15903 cat confdefs.h >>conftest.$ac_ext
15904 cat >>conftest.$ac_ext <<_ACEOF
15905 /* end confdefs.h.  */
15906 $ac_includes_default
15907 #include <$ac_header>
15908 _ACEOF
15909 rm -f conftest.$ac_objext
15910 if { (ac_try="$ac_compile"
15911 case "(($ac_try" in
15912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913   *) ac_try_echo=$ac_try;;
15914 esac
15915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916   (eval "$ac_compile") 2>conftest.er1
15917   ac_status=$?
15918   grep -v '^ *+' conftest.er1 >conftest.err
15919   rm -f conftest.er1
15920   cat conftest.err >&5
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); } &&
15923          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15924   { (case "(($ac_try" in
15925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926   *) ac_try_echo=$ac_try;;
15927 esac
15928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15929   (eval "$ac_try") 2>&5
15930   ac_status=$?
15931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932   (exit $ac_status); }; } &&
15933          { ac_try='test -s conftest.$ac_objext'
15934   { (case "(($ac_try" in
15935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15936   *) ac_try_echo=$ac_try;;
15937 esac
15938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15939   (eval "$ac_try") 2>&5
15940   ac_status=$?
15941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942   (exit $ac_status); }; }; then
15943   ac_header_compiler=yes
15944 else
15945   echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15947
15948         ac_header_compiler=no
15949 fi
15950
15951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15953 echo "${ECHO_T}$ac_header_compiler" >&6; }
15954
15955 # Is the header present?
15956 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15958 cat >conftest.$ac_ext <<_ACEOF
15959 /* confdefs.h.  */
15960 _ACEOF
15961 cat confdefs.h >>conftest.$ac_ext
15962 cat >>conftest.$ac_ext <<_ACEOF
15963 /* end confdefs.h.  */
15964 #include <$ac_header>
15965 _ACEOF
15966 if { (ac_try="$ac_cpp conftest.$ac_ext"
15967 case "(($ac_try" in
15968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15969   *) ac_try_echo=$ac_try;;
15970 esac
15971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15972   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15973   ac_status=$?
15974   grep -v '^ *+' conftest.er1 >conftest.err
15975   rm -f conftest.er1
15976   cat conftest.err >&5
15977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978   (exit $ac_status); } >/dev/null; then
15979   if test -s conftest.err; then
15980     ac_cpp_err=$ac_c_preproc_warn_flag
15981     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15982   else
15983     ac_cpp_err=
15984   fi
15985 else
15986   ac_cpp_err=yes
15987 fi
15988 if test -z "$ac_cpp_err"; then
15989   ac_header_preproc=yes
15990 else
15991   echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15993
15994   ac_header_preproc=no
15995 fi
15996
15997 rm -f conftest.err conftest.$ac_ext
15998 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15999 echo "${ECHO_T}$ac_header_preproc" >&6; }
16000
16001 # So?  What about this header?
16002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16003   yes:no: )
16004     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16005 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16006     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16007 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16008     ac_header_preproc=yes
16009     ;;
16010   no:yes:* )
16011     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16012 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16013     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16014 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16015     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16016 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16017     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16018 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16019     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16021     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16022 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16023     ( cat <<\_ASBOX
16024 ## ----------------------------------- ##
16025 ## Report this to llvmbugs@cs.uiuc.edu ##
16026 ## ----------------------------------- ##
16027 _ASBOX
16028      ) | sed "s/^/$as_me: WARNING:     /" >&2
16029     ;;
16030 esac
16031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16034   echo $ECHO_N "(cached) $ECHO_C" >&6
16035 else
16036   eval "$as_ac_Header=\$ac_header_preproc"
16037 fi
16038 ac_res=`eval echo '${'$as_ac_Header'}'`
16039                { echo "$as_me:$LINENO: result: $ac_res" >&5
16040 echo "${ECHO_T}$ac_res" >&6; }
16041
16042 fi
16043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16044   cat >>confdefs.h <<_ACEOF
16045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16046 _ACEOF
16047
16048 fi
16049
16050 done
16051
16052
16053
16054 for ac_header in utime.h windows.h
16055 do
16056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16058   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16061   echo $ECHO_N "(cached) $ECHO_C" >&6
16062 fi
16063 ac_res=`eval echo '${'$as_ac_Header'}'`
16064                { echo "$as_me:$LINENO: result: $ac_res" >&5
16065 echo "${ECHO_T}$ac_res" >&6; }
16066 else
16067   # Is the header compilable?
16068 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16070 cat >conftest.$ac_ext <<_ACEOF
16071 /* confdefs.h.  */
16072 _ACEOF
16073 cat confdefs.h >>conftest.$ac_ext
16074 cat >>conftest.$ac_ext <<_ACEOF
16075 /* end confdefs.h.  */
16076 $ac_includes_default
16077 #include <$ac_header>
16078 _ACEOF
16079 rm -f conftest.$ac_objext
16080 if { (ac_try="$ac_compile"
16081 case "(($ac_try" in
16082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083   *) ac_try_echo=$ac_try;;
16084 esac
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086   (eval "$ac_compile") 2>conftest.er1
16087   ac_status=$?
16088   grep -v '^ *+' conftest.er1 >conftest.err
16089   rm -f conftest.er1
16090   cat conftest.err >&5
16091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092   (exit $ac_status); } &&
16093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16094   { (case "(($ac_try" in
16095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096   *) ac_try_echo=$ac_try;;
16097 esac
16098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099   (eval "$ac_try") 2>&5
16100   ac_status=$?
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); }; } &&
16103          { ac_try='test -s conftest.$ac_objext'
16104   { (case "(($ac_try" in
16105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106   *) ac_try_echo=$ac_try;;
16107 esac
16108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109   (eval "$ac_try") 2>&5
16110   ac_status=$?
16111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112   (exit $ac_status); }; }; then
16113   ac_header_compiler=yes
16114 else
16115   echo "$as_me: failed program was:" >&5
16116 sed 's/^/| /' conftest.$ac_ext >&5
16117
16118         ac_header_compiler=no
16119 fi
16120
16121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16122 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16123 echo "${ECHO_T}$ac_header_compiler" >&6; }
16124
16125 # Is the header present?
16126 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16128 cat >conftest.$ac_ext <<_ACEOF
16129 /* confdefs.h.  */
16130 _ACEOF
16131 cat confdefs.h >>conftest.$ac_ext
16132 cat >>conftest.$ac_ext <<_ACEOF
16133 /* end confdefs.h.  */
16134 #include <$ac_header>
16135 _ACEOF
16136 if { (ac_try="$ac_cpp conftest.$ac_ext"
16137 case "(($ac_try" in
16138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16139   *) ac_try_echo=$ac_try;;
16140 esac
16141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16142   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16143   ac_status=$?
16144   grep -v '^ *+' conftest.er1 >conftest.err
16145   rm -f conftest.er1
16146   cat conftest.err >&5
16147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148   (exit $ac_status); } >/dev/null; then
16149   if test -s conftest.err; then
16150     ac_cpp_err=$ac_c_preproc_warn_flag
16151     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16152   else
16153     ac_cpp_err=
16154   fi
16155 else
16156   ac_cpp_err=yes
16157 fi
16158 if test -z "$ac_cpp_err"; then
16159   ac_header_preproc=yes
16160 else
16161   echo "$as_me: failed program was:" >&5
16162 sed 's/^/| /' conftest.$ac_ext >&5
16163
16164   ac_header_preproc=no
16165 fi
16166
16167 rm -f conftest.err conftest.$ac_ext
16168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16169 echo "${ECHO_T}$ac_header_preproc" >&6; }
16170
16171 # So?  What about this header?
16172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16173   yes:no: )
16174     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16178     ac_header_preproc=yes
16179     ;;
16180   no:yes:* )
16181     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16183     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16184 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16185     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16187     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16188 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16191     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16193     ( cat <<\_ASBOX
16194 ## ----------------------------------- ##
16195 ## Report this to llvmbugs@cs.uiuc.edu ##
16196 ## ----------------------------------- ##
16197 _ASBOX
16198      ) | sed "s/^/$as_me: WARNING:     /" >&2
16199     ;;
16200 esac
16201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16204   echo $ECHO_N "(cached) $ECHO_C" >&6
16205 else
16206   eval "$as_ac_Header=\$ac_header_preproc"
16207 fi
16208 ac_res=`eval echo '${'$as_ac_Header'}'`
16209                { echo "$as_me:$LINENO: result: $ac_res" >&5
16210 echo "${ECHO_T}$ac_res" >&6; }
16211
16212 fi
16213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16214   cat >>confdefs.h <<_ACEOF
16215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16216 _ACEOF
16217
16218 fi
16219
16220 done
16221
16222
16223
16224
16225
16226 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16227 do
16228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16230   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16233   echo $ECHO_N "(cached) $ECHO_C" >&6
16234 fi
16235 ac_res=`eval echo '${'$as_ac_Header'}'`
16236                { echo "$as_me:$LINENO: result: $ac_res" >&5
16237 echo "${ECHO_T}$ac_res" >&6; }
16238 else
16239   # Is the header compilable?
16240 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16242 cat >conftest.$ac_ext <<_ACEOF
16243 /* confdefs.h.  */
16244 _ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h.  */
16248 $ac_includes_default
16249 #include <$ac_header>
16250 _ACEOF
16251 rm -f conftest.$ac_objext
16252 if { (ac_try="$ac_compile"
16253 case "(($ac_try" in
16254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255   *) ac_try_echo=$ac_try;;
16256 esac
16257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16258   (eval "$ac_compile") 2>conftest.er1
16259   ac_status=$?
16260   grep -v '^ *+' conftest.er1 >conftest.err
16261   rm -f conftest.er1
16262   cat conftest.err >&5
16263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264   (exit $ac_status); } &&
16265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16266   { (case "(($ac_try" in
16267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268   *) ac_try_echo=$ac_try;;
16269 esac
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271   (eval "$ac_try") 2>&5
16272   ac_status=$?
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); }; } &&
16275          { ac_try='test -s conftest.$ac_objext'
16276   { (case "(($ac_try" in
16277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16278   *) ac_try_echo=$ac_try;;
16279 esac
16280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16281   (eval "$ac_try") 2>&5
16282   ac_status=$?
16283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284   (exit $ac_status); }; }; then
16285   ac_header_compiler=yes
16286 else
16287   echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16289
16290         ac_header_compiler=no
16291 fi
16292
16293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16294 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16295 echo "${ECHO_T}$ac_header_compiler" >&6; }
16296
16297 # Is the header present?
16298 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16300 cat >conftest.$ac_ext <<_ACEOF
16301 /* confdefs.h.  */
16302 _ACEOF
16303 cat confdefs.h >>conftest.$ac_ext
16304 cat >>conftest.$ac_ext <<_ACEOF
16305 /* end confdefs.h.  */
16306 #include <$ac_header>
16307 _ACEOF
16308 if { (ac_try="$ac_cpp conftest.$ac_ext"
16309 case "(($ac_try" in
16310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16311   *) ac_try_echo=$ac_try;;
16312 esac
16313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16314   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16315   ac_status=$?
16316   grep -v '^ *+' conftest.er1 >conftest.err
16317   rm -f conftest.er1
16318   cat conftest.err >&5
16319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320   (exit $ac_status); } >/dev/null; then
16321   if test -s conftest.err; then
16322     ac_cpp_err=$ac_c_preproc_warn_flag
16323     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16324   else
16325     ac_cpp_err=
16326   fi
16327 else
16328   ac_cpp_err=yes
16329 fi
16330 if test -z "$ac_cpp_err"; then
16331   ac_header_preproc=yes
16332 else
16333   echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16335
16336   ac_header_preproc=no
16337 fi
16338
16339 rm -f conftest.err conftest.$ac_ext
16340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16341 echo "${ECHO_T}$ac_header_preproc" >&6; }
16342
16343 # So?  What about this header?
16344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16345   yes:no: )
16346     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16350     ac_header_preproc=yes
16351     ;;
16352   no:yes:* )
16353     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16355     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16356 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16357     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16359     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16360 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16363     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16365     ( cat <<\_ASBOX
16366 ## ----------------------------------- ##
16367 ## Report this to llvmbugs@cs.uiuc.edu ##
16368 ## ----------------------------------- ##
16369 _ASBOX
16370      ) | sed "s/^/$as_me: WARNING:     /" >&2
16371     ;;
16372 esac
16373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16376   echo $ECHO_N "(cached) $ECHO_C" >&6
16377 else
16378   eval "$as_ac_Header=\$ac_header_preproc"
16379 fi
16380 ac_res=`eval echo '${'$as_ac_Header'}'`
16381                { echo "$as_me:$LINENO: result: $ac_res" >&5
16382 echo "${ECHO_T}$ac_res" >&6; }
16383
16384 fi
16385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16386   cat >>confdefs.h <<_ACEOF
16387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16388 _ACEOF
16389
16390 fi
16391
16392 done
16393
16394
16395
16396
16397
16398 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16399 do
16400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16402   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16405   echo $ECHO_N "(cached) $ECHO_C" >&6
16406 fi
16407 ac_res=`eval echo '${'$as_ac_Header'}'`
16408                { echo "$as_me:$LINENO: result: $ac_res" >&5
16409 echo "${ECHO_T}$ac_res" >&6; }
16410 else
16411   # Is the header compilable?
16412 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16414 cat >conftest.$ac_ext <<_ACEOF
16415 /* confdefs.h.  */
16416 _ACEOF
16417 cat confdefs.h >>conftest.$ac_ext
16418 cat >>conftest.$ac_ext <<_ACEOF
16419 /* end confdefs.h.  */
16420 $ac_includes_default
16421 #include <$ac_header>
16422 _ACEOF
16423 rm -f conftest.$ac_objext
16424 if { (ac_try="$ac_compile"
16425 case "(($ac_try" in
16426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427   *) ac_try_echo=$ac_try;;
16428 esac
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430   (eval "$ac_compile") 2>conftest.er1
16431   ac_status=$?
16432   grep -v '^ *+' conftest.er1 >conftest.err
16433   rm -f conftest.er1
16434   cat conftest.err >&5
16435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436   (exit $ac_status); } &&
16437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16438   { (case "(($ac_try" in
16439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440   *) ac_try_echo=$ac_try;;
16441 esac
16442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443   (eval "$ac_try") 2>&5
16444   ac_status=$?
16445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446   (exit $ac_status); }; } &&
16447          { ac_try='test -s conftest.$ac_objext'
16448   { (case "(($ac_try" in
16449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450   *) ac_try_echo=$ac_try;;
16451 esac
16452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16453   (eval "$ac_try") 2>&5
16454   ac_status=$?
16455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456   (exit $ac_status); }; }; then
16457   ac_header_compiler=yes
16458 else
16459   echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16461
16462         ac_header_compiler=no
16463 fi
16464
16465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16466 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16467 echo "${ECHO_T}$ac_header_compiler" >&6; }
16468
16469 # Is the header present?
16470 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16472 cat >conftest.$ac_ext <<_ACEOF
16473 /* confdefs.h.  */
16474 _ACEOF
16475 cat confdefs.h >>conftest.$ac_ext
16476 cat >>conftest.$ac_ext <<_ACEOF
16477 /* end confdefs.h.  */
16478 #include <$ac_header>
16479 _ACEOF
16480 if { (ac_try="$ac_cpp conftest.$ac_ext"
16481 case "(($ac_try" in
16482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483   *) ac_try_echo=$ac_try;;
16484 esac
16485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16487   ac_status=$?
16488   grep -v '^ *+' conftest.er1 >conftest.err
16489   rm -f conftest.er1
16490   cat conftest.err >&5
16491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492   (exit $ac_status); } >/dev/null; then
16493   if test -s conftest.err; then
16494     ac_cpp_err=$ac_c_preproc_warn_flag
16495     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16496   else
16497     ac_cpp_err=
16498   fi
16499 else
16500   ac_cpp_err=yes
16501 fi
16502 if test -z "$ac_cpp_err"; then
16503   ac_header_preproc=yes
16504 else
16505   echo "$as_me: failed program was:" >&5
16506 sed 's/^/| /' conftest.$ac_ext >&5
16507
16508   ac_header_preproc=no
16509 fi
16510
16511 rm -f conftest.err conftest.$ac_ext
16512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16513 echo "${ECHO_T}$ac_header_preproc" >&6; }
16514
16515 # So?  What about this header?
16516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16517   yes:no: )
16518     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16520     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16522     ac_header_preproc=yes
16523     ;;
16524   no:yes:* )
16525     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16527     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16528 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16529     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16531     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16532 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16533     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16535     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16537     ( cat <<\_ASBOX
16538 ## ----------------------------------- ##
16539 ## Report this to llvmbugs@cs.uiuc.edu ##
16540 ## ----------------------------------- ##
16541 _ASBOX
16542      ) | sed "s/^/$as_me: WARNING:     /" >&2
16543     ;;
16544 esac
16545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16548   echo $ECHO_N "(cached) $ECHO_C" >&6
16549 else
16550   eval "$as_ac_Header=\$ac_header_preproc"
16551 fi
16552 ac_res=`eval echo '${'$as_ac_Header'}'`
16553                { echo "$as_me:$LINENO: result: $ac_res" >&5
16554 echo "${ECHO_T}$ac_res" >&6; }
16555
16556 fi
16557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16558   cat >>confdefs.h <<_ACEOF
16559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16560 _ACEOF
16561
16562 fi
16563
16564 done
16565
16566
16567 for ac_header in valgrind/valgrind.h
16568 do
16569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16571   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16574   echo $ECHO_N "(cached) $ECHO_C" >&6
16575 fi
16576 ac_res=`eval echo '${'$as_ac_Header'}'`
16577                { echo "$as_me:$LINENO: result: $ac_res" >&5
16578 echo "${ECHO_T}$ac_res" >&6; }
16579 else
16580   # Is the header compilable?
16581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16583 cat >conftest.$ac_ext <<_ACEOF
16584 /* confdefs.h.  */
16585 _ACEOF
16586 cat confdefs.h >>conftest.$ac_ext
16587 cat >>conftest.$ac_ext <<_ACEOF
16588 /* end confdefs.h.  */
16589 $ac_includes_default
16590 #include <$ac_header>
16591 _ACEOF
16592 rm -f conftest.$ac_objext
16593 if { (ac_try="$ac_compile"
16594 case "(($ac_try" in
16595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596   *) ac_try_echo=$ac_try;;
16597 esac
16598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599   (eval "$ac_compile") 2>conftest.er1
16600   ac_status=$?
16601   grep -v '^ *+' conftest.er1 >conftest.err
16602   rm -f conftest.er1
16603   cat conftest.err >&5
16604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605   (exit $ac_status); } &&
16606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16607   { (case "(($ac_try" in
16608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609   *) ac_try_echo=$ac_try;;
16610 esac
16611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612   (eval "$ac_try") 2>&5
16613   ac_status=$?
16614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615   (exit $ac_status); }; } &&
16616          { ac_try='test -s conftest.$ac_objext'
16617   { (case "(($ac_try" in
16618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619   *) ac_try_echo=$ac_try;;
16620 esac
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622   (eval "$ac_try") 2>&5
16623   ac_status=$?
16624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625   (exit $ac_status); }; }; then
16626   ac_header_compiler=yes
16627 else
16628   echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16630
16631         ac_header_compiler=no
16632 fi
16633
16634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16636 echo "${ECHO_T}$ac_header_compiler" >&6; }
16637
16638 # Is the header present?
16639 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16641 cat >conftest.$ac_ext <<_ACEOF
16642 /* confdefs.h.  */
16643 _ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h.  */
16647 #include <$ac_header>
16648 _ACEOF
16649 if { (ac_try="$ac_cpp conftest.$ac_ext"
16650 case "(($ac_try" in
16651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652   *) ac_try_echo=$ac_try;;
16653 esac
16654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16656   ac_status=$?
16657   grep -v '^ *+' conftest.er1 >conftest.err
16658   rm -f conftest.er1
16659   cat conftest.err >&5
16660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661   (exit $ac_status); } >/dev/null; then
16662   if test -s conftest.err; then
16663     ac_cpp_err=$ac_c_preproc_warn_flag
16664     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16665   else
16666     ac_cpp_err=
16667   fi
16668 else
16669   ac_cpp_err=yes
16670 fi
16671 if test -z "$ac_cpp_err"; then
16672   ac_header_preproc=yes
16673 else
16674   echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16676
16677   ac_header_preproc=no
16678 fi
16679
16680 rm -f conftest.err conftest.$ac_ext
16681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16682 echo "${ECHO_T}$ac_header_preproc" >&6; }
16683
16684 # So?  What about this header?
16685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16686   yes:no: )
16687     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16691     ac_header_preproc=yes
16692     ;;
16693   no:yes:* )
16694     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16696     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16697 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16698     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16700     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16701 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16702     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16704     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16706     ( cat <<\_ASBOX
16707 ## ----------------------------------- ##
16708 ## Report this to llvmbugs@cs.uiuc.edu ##
16709 ## ----------------------------------- ##
16710 _ASBOX
16711      ) | sed "s/^/$as_me: WARNING:     /" >&2
16712     ;;
16713 esac
16714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16717   echo $ECHO_N "(cached) $ECHO_C" >&6
16718 else
16719   eval "$as_ac_Header=\$ac_header_preproc"
16720 fi
16721 ac_res=`eval echo '${'$as_ac_Header'}'`
16722                { echo "$as_me:$LINENO: result: $ac_res" >&5
16723 echo "${ECHO_T}$ac_res" >&6; }
16724
16725 fi
16726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16727   cat >>confdefs.h <<_ACEOF
16728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16729 _ACEOF
16730
16731 fi
16732
16733 done
16734
16735
16736 for ac_header in fenv.h
16737 do
16738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16740   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16743   echo $ECHO_N "(cached) $ECHO_C" >&6
16744 fi
16745 ac_res=`eval echo '${'$as_ac_Header'}'`
16746                { echo "$as_me:$LINENO: result: $ac_res" >&5
16747 echo "${ECHO_T}$ac_res" >&6; }
16748 else
16749   # Is the header compilable?
16750 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16752 cat >conftest.$ac_ext <<_ACEOF
16753 /* confdefs.h.  */
16754 _ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h.  */
16758 $ac_includes_default
16759 #include <$ac_header>
16760 _ACEOF
16761 rm -f conftest.$ac_objext
16762 if { (ac_try="$ac_compile"
16763 case "(($ac_try" in
16764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16765   *) ac_try_echo=$ac_try;;
16766 esac
16767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16768   (eval "$ac_compile") 2>conftest.er1
16769   ac_status=$?
16770   grep -v '^ *+' conftest.er1 >conftest.err
16771   rm -f conftest.er1
16772   cat conftest.err >&5
16773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774   (exit $ac_status); } &&
16775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16776   { (case "(($ac_try" in
16777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16778   *) ac_try_echo=$ac_try;;
16779 esac
16780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16781   (eval "$ac_try") 2>&5
16782   ac_status=$?
16783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784   (exit $ac_status); }; } &&
16785          { ac_try='test -s conftest.$ac_objext'
16786   { (case "(($ac_try" in
16787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788   *) ac_try_echo=$ac_try;;
16789 esac
16790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791   (eval "$ac_try") 2>&5
16792   ac_status=$?
16793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794   (exit $ac_status); }; }; then
16795   ac_header_compiler=yes
16796 else
16797   echo "$as_me: failed program was:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16799
16800         ac_header_compiler=no
16801 fi
16802
16803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16805 echo "${ECHO_T}$ac_header_compiler" >&6; }
16806
16807 # Is the header present?
16808 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16810 cat >conftest.$ac_ext <<_ACEOF
16811 /* confdefs.h.  */
16812 _ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h.  */
16816 #include <$ac_header>
16817 _ACEOF
16818 if { (ac_try="$ac_cpp conftest.$ac_ext"
16819 case "(($ac_try" in
16820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16821   *) ac_try_echo=$ac_try;;
16822 esac
16823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16824   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16825   ac_status=$?
16826   grep -v '^ *+' conftest.er1 >conftest.err
16827   rm -f conftest.er1
16828   cat conftest.err >&5
16829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830   (exit $ac_status); } >/dev/null; then
16831   if test -s conftest.err; then
16832     ac_cpp_err=$ac_c_preproc_warn_flag
16833     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16834   else
16835     ac_cpp_err=
16836   fi
16837 else
16838   ac_cpp_err=yes
16839 fi
16840 if test -z "$ac_cpp_err"; then
16841   ac_header_preproc=yes
16842 else
16843   echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16845
16846   ac_header_preproc=no
16847 fi
16848
16849 rm -f conftest.err conftest.$ac_ext
16850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16851 echo "${ECHO_T}$ac_header_preproc" >&6; }
16852
16853 # So?  What about this header?
16854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16855   yes:no: )
16856     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16860     ac_header_preproc=yes
16861     ;;
16862   no:yes:* )
16863     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16865     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16866 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16867     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16869     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16870 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16871     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16873     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16875     ( cat <<\_ASBOX
16876 ## ----------------------------------- ##
16877 ## Report this to llvmbugs@cs.uiuc.edu ##
16878 ## ----------------------------------- ##
16879 _ASBOX
16880      ) | sed "s/^/$as_me: WARNING:     /" >&2
16881     ;;
16882 esac
16883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16886   echo $ECHO_N "(cached) $ECHO_C" >&6
16887 else
16888   eval "$as_ac_Header=\$ac_header_preproc"
16889 fi
16890 ac_res=`eval echo '${'$as_ac_Header'}'`
16891                { echo "$as_me:$LINENO: result: $ac_res" >&5
16892 echo "${ECHO_T}$ac_res" >&6; }
16893
16894 fi
16895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16896   cat >>confdefs.h <<_ACEOF
16897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16898 _ACEOF
16899
16900 fi
16901
16902 done
16903
16904 if test "$ENABLE_THREADS" -eq 1 ; then
16905
16906 for ac_header in pthread.h
16907 do
16908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16910   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16913   echo $ECHO_N "(cached) $ECHO_C" >&6
16914 fi
16915 ac_res=`eval echo '${'$as_ac_Header'}'`
16916                { echo "$as_me:$LINENO: result: $ac_res" >&5
16917 echo "${ECHO_T}$ac_res" >&6; }
16918 else
16919   # Is the header compilable?
16920 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16922 cat >conftest.$ac_ext <<_ACEOF
16923 /* confdefs.h.  */
16924 _ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h.  */
16928 $ac_includes_default
16929 #include <$ac_header>
16930 _ACEOF
16931 rm -f conftest.$ac_objext
16932 if { (ac_try="$ac_compile"
16933 case "(($ac_try" in
16934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935   *) ac_try_echo=$ac_try;;
16936 esac
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938   (eval "$ac_compile") 2>conftest.er1
16939   ac_status=$?
16940   grep -v '^ *+' conftest.er1 >conftest.err
16941   rm -f conftest.er1
16942   cat conftest.err >&5
16943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944   (exit $ac_status); } &&
16945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946   { (case "(($ac_try" in
16947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948   *) ac_try_echo=$ac_try;;
16949 esac
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951   (eval "$ac_try") 2>&5
16952   ac_status=$?
16953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954   (exit $ac_status); }; } &&
16955          { ac_try='test -s conftest.$ac_objext'
16956   { (case "(($ac_try" in
16957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958   *) ac_try_echo=$ac_try;;
16959 esac
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961   (eval "$ac_try") 2>&5
16962   ac_status=$?
16963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964   (exit $ac_status); }; }; then
16965   ac_header_compiler=yes
16966 else
16967   echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16969
16970         ac_header_compiler=no
16971 fi
16972
16973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16975 echo "${ECHO_T}$ac_header_compiler" >&6; }
16976
16977 # Is the header present?
16978 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16980 cat >conftest.$ac_ext <<_ACEOF
16981 /* confdefs.h.  */
16982 _ACEOF
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h.  */
16986 #include <$ac_header>
16987 _ACEOF
16988 if { (ac_try="$ac_cpp conftest.$ac_ext"
16989 case "(($ac_try" in
16990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991   *) ac_try_echo=$ac_try;;
16992 esac
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16995   ac_status=$?
16996   grep -v '^ *+' conftest.er1 >conftest.err
16997   rm -f conftest.er1
16998   cat conftest.err >&5
16999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000   (exit $ac_status); } >/dev/null; then
17001   if test -s conftest.err; then
17002     ac_cpp_err=$ac_c_preproc_warn_flag
17003     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17004   else
17005     ac_cpp_err=
17006   fi
17007 else
17008   ac_cpp_err=yes
17009 fi
17010 if test -z "$ac_cpp_err"; then
17011   ac_header_preproc=yes
17012 else
17013   echo "$as_me: failed program was:" >&5
17014 sed 's/^/| /' conftest.$ac_ext >&5
17015
17016   ac_header_preproc=no
17017 fi
17018
17019 rm -f conftest.err conftest.$ac_ext
17020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17021 echo "${ECHO_T}$ac_header_preproc" >&6; }
17022
17023 # So?  What about this header?
17024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17025   yes:no: )
17026     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17030     ac_header_preproc=yes
17031     ;;
17032   no:yes:* )
17033     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17035     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17036 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17037     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17039     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17040 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17043     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17045     ( cat <<\_ASBOX
17046 ## ----------------------------------- ##
17047 ## Report this to llvmbugs@cs.uiuc.edu ##
17048 ## ----------------------------------- ##
17049 _ASBOX
17050      ) | sed "s/^/$as_me: WARNING:     /" >&2
17051     ;;
17052 esac
17053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17056   echo $ECHO_N "(cached) $ECHO_C" >&6
17057 else
17058   eval "$as_ac_Header=\$ac_header_preproc"
17059 fi
17060 ac_res=`eval echo '${'$as_ac_Header'}'`
17061                { echo "$as_me:$LINENO: result: $ac_res" >&5
17062 echo "${ECHO_T}$ac_res" >&6; }
17063
17064 fi
17065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17066   cat >>confdefs.h <<_ACEOF
17067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17068 _ACEOF
17069  HAVE_PTHREAD=1
17070
17071 else
17072   HAVE_PTHREAD=0
17073
17074 fi
17075
17076 done
17077
17078 else
17079   HAVE_PTHREAD=0
17080
17081 fi
17082
17083 if test "$llvm_cv_enable_libffi" = "yes" ; then
17084
17085
17086 for ac_header in ffi.h ffi/ffi.h
17087 do
17088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17090   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17093   echo $ECHO_N "(cached) $ECHO_C" >&6
17094 fi
17095 ac_res=`eval echo '${'$as_ac_Header'}'`
17096                { echo "$as_me:$LINENO: result: $ac_res" >&5
17097 echo "${ECHO_T}$ac_res" >&6; }
17098 else
17099   # Is the header compilable?
17100 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17102 cat >conftest.$ac_ext <<_ACEOF
17103 /* confdefs.h.  */
17104 _ACEOF
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h.  */
17108 $ac_includes_default
17109 #include <$ac_header>
17110 _ACEOF
17111 rm -f conftest.$ac_objext
17112 if { (ac_try="$ac_compile"
17113 case "(($ac_try" in
17114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115   *) ac_try_echo=$ac_try;;
17116 esac
17117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118   (eval "$ac_compile") 2>conftest.er1
17119   ac_status=$?
17120   grep -v '^ *+' conftest.er1 >conftest.err
17121   rm -f conftest.er1
17122   cat conftest.err >&5
17123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124   (exit $ac_status); } &&
17125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17126   { (case "(($ac_try" in
17127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128   *) ac_try_echo=$ac_try;;
17129 esac
17130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131   (eval "$ac_try") 2>&5
17132   ac_status=$?
17133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134   (exit $ac_status); }; } &&
17135          { ac_try='test -s conftest.$ac_objext'
17136   { (case "(($ac_try" in
17137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138   *) ac_try_echo=$ac_try;;
17139 esac
17140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141   (eval "$ac_try") 2>&5
17142   ac_status=$?
17143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144   (exit $ac_status); }; }; then
17145   ac_header_compiler=yes
17146 else
17147   echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17149
17150         ac_header_compiler=no
17151 fi
17152
17153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17155 echo "${ECHO_T}$ac_header_compiler" >&6; }
17156
17157 # Is the header present?
17158 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17160 cat >conftest.$ac_ext <<_ACEOF
17161 /* confdefs.h.  */
17162 _ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h.  */
17166 #include <$ac_header>
17167 _ACEOF
17168 if { (ac_try="$ac_cpp conftest.$ac_ext"
17169 case "(($ac_try" in
17170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171   *) ac_try_echo=$ac_try;;
17172 esac
17173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17175   ac_status=$?
17176   grep -v '^ *+' conftest.er1 >conftest.err
17177   rm -f conftest.er1
17178   cat conftest.err >&5
17179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180   (exit $ac_status); } >/dev/null; then
17181   if test -s conftest.err; then
17182     ac_cpp_err=$ac_c_preproc_warn_flag
17183     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17184   else
17185     ac_cpp_err=
17186   fi
17187 else
17188   ac_cpp_err=yes
17189 fi
17190 if test -z "$ac_cpp_err"; then
17191   ac_header_preproc=yes
17192 else
17193   echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.$ac_ext >&5
17195
17196   ac_header_preproc=no
17197 fi
17198
17199 rm -f conftest.err conftest.$ac_ext
17200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17201 echo "${ECHO_T}$ac_header_preproc" >&6; }
17202
17203 # So?  What about this header?
17204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17205   yes:no: )
17206     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17210     ac_header_preproc=yes
17211     ;;
17212   no:yes:* )
17213     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17215     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17216 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17217     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17219     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17220 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17223     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17225     ( cat <<\_ASBOX
17226 ## ----------------------------------- ##
17227 ## Report this to llvmbugs@cs.uiuc.edu ##
17228 ## ----------------------------------- ##
17229 _ASBOX
17230      ) | sed "s/^/$as_me: WARNING:     /" >&2
17231     ;;
17232 esac
17233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17236   echo $ECHO_N "(cached) $ECHO_C" >&6
17237 else
17238   eval "$as_ac_Header=\$ac_header_preproc"
17239 fi
17240 ac_res=`eval echo '${'$as_ac_Header'}'`
17241                { echo "$as_me:$LINENO: result: $ac_res" >&5
17242 echo "${ECHO_T}$ac_res" >&6; }
17243
17244 fi
17245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17246   cat >>confdefs.h <<_ACEOF
17247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17248 _ACEOF
17249
17250 fi
17251
17252 done
17253
17254 fi
17255
17256
17257 for ac_header in CrashReporterClient.h
17258 do
17259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17261   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17264   echo $ECHO_N "(cached) $ECHO_C" >&6
17265 fi
17266 ac_res=`eval echo '${'$as_ac_Header'}'`
17267                { echo "$as_me:$LINENO: result: $ac_res" >&5
17268 echo "${ECHO_T}$ac_res" >&6; }
17269 else
17270   # Is the header compilable?
17271 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17273 cat >conftest.$ac_ext <<_ACEOF
17274 /* confdefs.h.  */
17275 _ACEOF
17276 cat confdefs.h >>conftest.$ac_ext
17277 cat >>conftest.$ac_ext <<_ACEOF
17278 /* end confdefs.h.  */
17279 $ac_includes_default
17280 #include <$ac_header>
17281 _ACEOF
17282 rm -f conftest.$ac_objext
17283 if { (ac_try="$ac_compile"
17284 case "(($ac_try" in
17285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286   *) ac_try_echo=$ac_try;;
17287 esac
17288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289   (eval "$ac_compile") 2>conftest.er1
17290   ac_status=$?
17291   grep -v '^ *+' conftest.er1 >conftest.err
17292   rm -f conftest.er1
17293   cat conftest.err >&5
17294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295   (exit $ac_status); } &&
17296          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17297   { (case "(($ac_try" in
17298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17299   *) ac_try_echo=$ac_try;;
17300 esac
17301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17302   (eval "$ac_try") 2>&5
17303   ac_status=$?
17304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305   (exit $ac_status); }; } &&
17306          { ac_try='test -s conftest.$ac_objext'
17307   { (case "(($ac_try" in
17308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309   *) ac_try_echo=$ac_try;;
17310 esac
17311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312   (eval "$ac_try") 2>&5
17313   ac_status=$?
17314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315   (exit $ac_status); }; }; then
17316   ac_header_compiler=yes
17317 else
17318   echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17320
17321         ac_header_compiler=no
17322 fi
17323
17324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17326 echo "${ECHO_T}$ac_header_compiler" >&6; }
17327
17328 # Is the header present?
17329 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17331 cat >conftest.$ac_ext <<_ACEOF
17332 /* confdefs.h.  */
17333 _ACEOF
17334 cat confdefs.h >>conftest.$ac_ext
17335 cat >>conftest.$ac_ext <<_ACEOF
17336 /* end confdefs.h.  */
17337 #include <$ac_header>
17338 _ACEOF
17339 if { (ac_try="$ac_cpp conftest.$ac_ext"
17340 case "(($ac_try" in
17341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342   *) ac_try_echo=$ac_try;;
17343 esac
17344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17346   ac_status=$?
17347   grep -v '^ *+' conftest.er1 >conftest.err
17348   rm -f conftest.er1
17349   cat conftest.err >&5
17350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351   (exit $ac_status); } >/dev/null; then
17352   if test -s conftest.err; then
17353     ac_cpp_err=$ac_c_preproc_warn_flag
17354     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17355   else
17356     ac_cpp_err=
17357   fi
17358 else
17359   ac_cpp_err=yes
17360 fi
17361 if test -z "$ac_cpp_err"; then
17362   ac_header_preproc=yes
17363 else
17364   echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17366
17367   ac_header_preproc=no
17368 fi
17369
17370 rm -f conftest.err conftest.$ac_ext
17371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17372 echo "${ECHO_T}$ac_header_preproc" >&6; }
17373
17374 # So?  What about this header?
17375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17376   yes:no: )
17377     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17381     ac_header_preproc=yes
17382     ;;
17383   no:yes:* )
17384     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17386     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17387 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17388     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17390     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17391 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17392     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17394     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17396     ( cat <<\_ASBOX
17397 ## ----------------------------------- ##
17398 ## Report this to llvmbugs@cs.uiuc.edu ##
17399 ## ----------------------------------- ##
17400 _ASBOX
17401      ) | sed "s/^/$as_me: WARNING:     /" >&2
17402     ;;
17403 esac
17404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17407   echo $ECHO_N "(cached) $ECHO_C" >&6
17408 else
17409   eval "$as_ac_Header=\$ac_header_preproc"
17410 fi
17411 ac_res=`eval echo '${'$as_ac_Header'}'`
17412                { echo "$as_me:$LINENO: result: $ac_res" >&5
17413 echo "${ECHO_T}$ac_res" >&6; }
17414
17415 fi
17416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17417   cat >>confdefs.h <<_ACEOF
17418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17419 _ACEOF
17420
17421 fi
17422
17423 done
17424
17425
17426
17427
17428
17429   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17430 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17431 if test "${ac_cv_huge_val_sanity+set}" = set; then
17432   echo $ECHO_N "(cached) $ECHO_C" >&6
17433 else
17434
17435     ac_ext=cpp
17436 ac_cpp='$CXXCPP $CPPFLAGS'
17437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17440
17441     ac_save_CXXFLAGS=$CXXFLAGS
17442     CXXFLAGS=-pedantic
17443     if test "$cross_compiling" = yes; then
17444   ac_cv_huge_val_sanity=yes
17445 else
17446   cat >conftest.$ac_ext <<_ACEOF
17447 /* confdefs.h.  */
17448 _ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h.  */
17452 #include <math.h>
17453 int
17454 main ()
17455 {
17456 double x = HUGE_VAL; return x != x;
17457   ;
17458   return 0;
17459 }
17460 _ACEOF
17461 rm -f conftest$ac_exeext
17462 if { (ac_try="$ac_link"
17463 case "(($ac_try" in
17464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465   *) ac_try_echo=$ac_try;;
17466 esac
17467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468   (eval "$ac_link") 2>&5
17469   ac_status=$?
17470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17472   { (case "(($ac_try" in
17473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474   *) ac_try_echo=$ac_try;;
17475 esac
17476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477   (eval "$ac_try") 2>&5
17478   ac_status=$?
17479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480   (exit $ac_status); }; }; then
17481   ac_cv_huge_val_sanity=yes
17482 else
17483   echo "$as_me: program exited with status $ac_status" >&5
17484 echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17486
17487 ( exit $ac_status )
17488 ac_cv_huge_val_sanity=no
17489 fi
17490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17491 fi
17492
17493
17494     CXXFLAGS=$ac_save_CXXFLAGS
17495     ac_ext=c
17496 ac_cpp='$CPP $CPPFLAGS'
17497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17500
17501
17502 fi
17503 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17504 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17505   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17506
17507
17508 { echo "$as_me:$LINENO: checking for pid_t" >&5
17509 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17510 if test "${ac_cv_type_pid_t+set}" = set; then
17511   echo $ECHO_N "(cached) $ECHO_C" >&6
17512 else
17513   cat >conftest.$ac_ext <<_ACEOF
17514 /* confdefs.h.  */
17515 _ACEOF
17516 cat confdefs.h >>conftest.$ac_ext
17517 cat >>conftest.$ac_ext <<_ACEOF
17518 /* end confdefs.h.  */
17519 $ac_includes_default
17520 typedef pid_t ac__type_new_;
17521 int
17522 main ()
17523 {
17524 if ((ac__type_new_ *) 0)
17525   return 0;
17526 if (sizeof (ac__type_new_))
17527   return 0;
17528   ;
17529   return 0;
17530 }
17531 _ACEOF
17532 rm -f conftest.$ac_objext
17533 if { (ac_try="$ac_compile"
17534 case "(($ac_try" in
17535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536   *) ac_try_echo=$ac_try;;
17537 esac
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539   (eval "$ac_compile") 2>conftest.er1
17540   ac_status=$?
17541   grep -v '^ *+' conftest.er1 >conftest.err
17542   rm -f conftest.er1
17543   cat conftest.err >&5
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); } &&
17546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17547   { (case "(($ac_try" in
17548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549   *) ac_try_echo=$ac_try;;
17550 esac
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552   (eval "$ac_try") 2>&5
17553   ac_status=$?
17554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555   (exit $ac_status); }; } &&
17556          { ac_try='test -s conftest.$ac_objext'
17557   { (case "(($ac_try" in
17558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559   *) ac_try_echo=$ac_try;;
17560 esac
17561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562   (eval "$ac_try") 2>&5
17563   ac_status=$?
17564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565   (exit $ac_status); }; }; then
17566   ac_cv_type_pid_t=yes
17567 else
17568   echo "$as_me: failed program was:" >&5
17569 sed 's/^/| /' conftest.$ac_ext >&5
17570
17571         ac_cv_type_pid_t=no
17572 fi
17573
17574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17575 fi
17576 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17577 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17578 if test $ac_cv_type_pid_t = yes; then
17579   :
17580 else
17581
17582 cat >>confdefs.h <<_ACEOF
17583 #define pid_t int
17584 _ACEOF
17585
17586 fi
17587
17588 { echo "$as_me:$LINENO: checking for size_t" >&5
17589 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17590 if test "${ac_cv_type_size_t+set}" = set; then
17591   echo $ECHO_N "(cached) $ECHO_C" >&6
17592 else
17593   cat >conftest.$ac_ext <<_ACEOF
17594 /* confdefs.h.  */
17595 _ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h.  */
17599 $ac_includes_default
17600 typedef size_t ac__type_new_;
17601 int
17602 main ()
17603 {
17604 if ((ac__type_new_ *) 0)
17605   return 0;
17606 if (sizeof (ac__type_new_))
17607   return 0;
17608   ;
17609   return 0;
17610 }
17611 _ACEOF
17612 rm -f conftest.$ac_objext
17613 if { (ac_try="$ac_compile"
17614 case "(($ac_try" in
17615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616   *) ac_try_echo=$ac_try;;
17617 esac
17618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619   (eval "$ac_compile") 2>conftest.er1
17620   ac_status=$?
17621   grep -v '^ *+' conftest.er1 >conftest.err
17622   rm -f conftest.er1
17623   cat conftest.err >&5
17624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625   (exit $ac_status); } &&
17626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17627   { (case "(($ac_try" in
17628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629   *) ac_try_echo=$ac_try;;
17630 esac
17631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632   (eval "$ac_try") 2>&5
17633   ac_status=$?
17634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635   (exit $ac_status); }; } &&
17636          { ac_try='test -s conftest.$ac_objext'
17637   { (case "(($ac_try" in
17638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639   *) ac_try_echo=$ac_try;;
17640 esac
17641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642   (eval "$ac_try") 2>&5
17643   ac_status=$?
17644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645   (exit $ac_status); }; }; then
17646   ac_cv_type_size_t=yes
17647 else
17648   echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17650
17651         ac_cv_type_size_t=no
17652 fi
17653
17654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17655 fi
17656 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17657 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17658 if test $ac_cv_type_size_t = yes; then
17659   :
17660 else
17661
17662 cat >>confdefs.h <<_ACEOF
17663 #define size_t unsigned int
17664 _ACEOF
17665
17666 fi
17667
17668
17669 cat >>confdefs.h <<_ACEOF
17670 #define RETSIGTYPE void
17671 _ACEOF
17672
17673 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17674 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17675 if test "${ac_cv_struct_tm+set}" = set; then
17676   echo $ECHO_N "(cached) $ECHO_C" >&6
17677 else
17678   cat >conftest.$ac_ext <<_ACEOF
17679 /* confdefs.h.  */
17680 _ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h.  */
17684 #include <sys/types.h>
17685 #include <time.h>
17686
17687 int
17688 main ()
17689 {
17690 struct tm *tp; tp->tm_sec;
17691   ;
17692   return 0;
17693 }
17694 _ACEOF
17695 rm -f conftest.$ac_objext
17696 if { (ac_try="$ac_compile"
17697 case "(($ac_try" in
17698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699   *) ac_try_echo=$ac_try;;
17700 esac
17701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702   (eval "$ac_compile") 2>conftest.er1
17703   ac_status=$?
17704   grep -v '^ *+' conftest.er1 >conftest.err
17705   rm -f conftest.er1
17706   cat conftest.err >&5
17707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708   (exit $ac_status); } &&
17709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17710   { (case "(($ac_try" in
17711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712   *) ac_try_echo=$ac_try;;
17713 esac
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715   (eval "$ac_try") 2>&5
17716   ac_status=$?
17717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718   (exit $ac_status); }; } &&
17719          { ac_try='test -s conftest.$ac_objext'
17720   { (case "(($ac_try" in
17721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722   *) ac_try_echo=$ac_try;;
17723 esac
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725   (eval "$ac_try") 2>&5
17726   ac_status=$?
17727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728   (exit $ac_status); }; }; then
17729   ac_cv_struct_tm=time.h
17730 else
17731   echo "$as_me: failed program was:" >&5
17732 sed 's/^/| /' conftest.$ac_ext >&5
17733
17734         ac_cv_struct_tm=sys/time.h
17735 fi
17736
17737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17738 fi
17739 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17740 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17741 if test $ac_cv_struct_tm = sys/time.h; then
17742
17743 cat >>confdefs.h <<\_ACEOF
17744 #define TM_IN_SYS_TIME 1
17745 _ACEOF
17746
17747 fi
17748
17749 { echo "$as_me:$LINENO: checking for int64_t" >&5
17750 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17751 if test "${ac_cv_type_int64_t+set}" = set; then
17752   echo $ECHO_N "(cached) $ECHO_C" >&6
17753 else
17754   cat >conftest.$ac_ext <<_ACEOF
17755 /* confdefs.h.  */
17756 _ACEOF
17757 cat confdefs.h >>conftest.$ac_ext
17758 cat >>conftest.$ac_ext <<_ACEOF
17759 /* end confdefs.h.  */
17760 $ac_includes_default
17761 typedef int64_t ac__type_new_;
17762 int
17763 main ()
17764 {
17765 if ((ac__type_new_ *) 0)
17766   return 0;
17767 if (sizeof (ac__type_new_))
17768   return 0;
17769   ;
17770   return 0;
17771 }
17772 _ACEOF
17773 rm -f conftest.$ac_objext
17774 if { (ac_try="$ac_compile"
17775 case "(($ac_try" in
17776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777   *) ac_try_echo=$ac_try;;
17778 esac
17779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780   (eval "$ac_compile") 2>conftest.er1
17781   ac_status=$?
17782   grep -v '^ *+' conftest.er1 >conftest.err
17783   rm -f conftest.er1
17784   cat conftest.err >&5
17785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786   (exit $ac_status); } &&
17787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17788   { (case "(($ac_try" in
17789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17790   *) ac_try_echo=$ac_try;;
17791 esac
17792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17793   (eval "$ac_try") 2>&5
17794   ac_status=$?
17795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796   (exit $ac_status); }; } &&
17797          { ac_try='test -s conftest.$ac_objext'
17798   { (case "(($ac_try" in
17799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17800   *) ac_try_echo=$ac_try;;
17801 esac
17802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17803   (eval "$ac_try") 2>&5
17804   ac_status=$?
17805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806   (exit $ac_status); }; }; then
17807   ac_cv_type_int64_t=yes
17808 else
17809   echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17811
17812         ac_cv_type_int64_t=no
17813 fi
17814
17815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17816 fi
17817 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17818 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17819 if test $ac_cv_type_int64_t = yes; then
17820
17821 cat >>confdefs.h <<_ACEOF
17822 #define HAVE_INT64_T 1
17823 _ACEOF
17824
17825
17826 else
17827   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17828 echo "$as_me: error: Type int64_t required but not found" >&2;}
17829    { (exit 1); exit 1; }; }
17830 fi
17831
17832 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17833 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17834 if test "${ac_cv_type_uint64_t+set}" = set; then
17835   echo $ECHO_N "(cached) $ECHO_C" >&6
17836 else
17837   cat >conftest.$ac_ext <<_ACEOF
17838 /* confdefs.h.  */
17839 _ACEOF
17840 cat confdefs.h >>conftest.$ac_ext
17841 cat >>conftest.$ac_ext <<_ACEOF
17842 /* end confdefs.h.  */
17843 $ac_includes_default
17844 typedef uint64_t ac__type_new_;
17845 int
17846 main ()
17847 {
17848 if ((ac__type_new_ *) 0)
17849   return 0;
17850 if (sizeof (ac__type_new_))
17851   return 0;
17852   ;
17853   return 0;
17854 }
17855 _ACEOF
17856 rm -f conftest.$ac_objext
17857 if { (ac_try="$ac_compile"
17858 case "(($ac_try" in
17859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17860   *) ac_try_echo=$ac_try;;
17861 esac
17862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17863   (eval "$ac_compile") 2>conftest.er1
17864   ac_status=$?
17865   grep -v '^ *+' conftest.er1 >conftest.err
17866   rm -f conftest.er1
17867   cat conftest.err >&5
17868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869   (exit $ac_status); } &&
17870          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17871   { (case "(($ac_try" in
17872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873   *) ac_try_echo=$ac_try;;
17874 esac
17875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17876   (eval "$ac_try") 2>&5
17877   ac_status=$?
17878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879   (exit $ac_status); }; } &&
17880          { ac_try='test -s conftest.$ac_objext'
17881   { (case "(($ac_try" in
17882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17883   *) ac_try_echo=$ac_try;;
17884 esac
17885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17886   (eval "$ac_try") 2>&5
17887   ac_status=$?
17888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889   (exit $ac_status); }; }; then
17890   ac_cv_type_uint64_t=yes
17891 else
17892   echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17894
17895         ac_cv_type_uint64_t=no
17896 fi
17897
17898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17899 fi
17900 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17901 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17902 if test $ac_cv_type_uint64_t = yes; then
17903
17904 cat >>confdefs.h <<_ACEOF
17905 #define HAVE_UINT64_T 1
17906 _ACEOF
17907
17908
17909 else
17910   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17911 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17912 if test "${ac_cv_type_u_int64_t+set}" = set; then
17913   echo $ECHO_N "(cached) $ECHO_C" >&6
17914 else
17915   cat >conftest.$ac_ext <<_ACEOF
17916 /* confdefs.h.  */
17917 _ACEOF
17918 cat confdefs.h >>conftest.$ac_ext
17919 cat >>conftest.$ac_ext <<_ACEOF
17920 /* end confdefs.h.  */
17921 $ac_includes_default
17922 typedef u_int64_t ac__type_new_;
17923 int
17924 main ()
17925 {
17926 if ((ac__type_new_ *) 0)
17927   return 0;
17928 if (sizeof (ac__type_new_))
17929   return 0;
17930   ;
17931   return 0;
17932 }
17933 _ACEOF
17934 rm -f conftest.$ac_objext
17935 if { (ac_try="$ac_compile"
17936 case "(($ac_try" in
17937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938   *) ac_try_echo=$ac_try;;
17939 esac
17940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941   (eval "$ac_compile") 2>conftest.er1
17942   ac_status=$?
17943   grep -v '^ *+' conftest.er1 >conftest.err
17944   rm -f conftest.er1
17945   cat conftest.err >&5
17946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947   (exit $ac_status); } &&
17948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17949   { (case "(($ac_try" in
17950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951   *) ac_try_echo=$ac_try;;
17952 esac
17953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17954   (eval "$ac_try") 2>&5
17955   ac_status=$?
17956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957   (exit $ac_status); }; } &&
17958          { ac_try='test -s conftest.$ac_objext'
17959   { (case "(($ac_try" in
17960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961   *) ac_try_echo=$ac_try;;
17962 esac
17963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17964   (eval "$ac_try") 2>&5
17965   ac_status=$?
17966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967   (exit $ac_status); }; }; then
17968   ac_cv_type_u_int64_t=yes
17969 else
17970   echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17972
17973         ac_cv_type_u_int64_t=no
17974 fi
17975
17976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17977 fi
17978 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17979 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17980 if test $ac_cv_type_u_int64_t = yes; then
17981
17982 cat >>confdefs.h <<_ACEOF
17983 #define HAVE_U_INT64_T 1
17984 _ACEOF
17985
17986
17987 else
17988   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17989 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17990    { (exit 1); exit 1; }; }
17991 fi
17992
17993 fi
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18005 do
18006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18007 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18010   echo $ECHO_N "(cached) $ECHO_C" >&6
18011 else
18012   cat >conftest.$ac_ext <<_ACEOF
18013 /* confdefs.h.  */
18014 _ACEOF
18015 cat confdefs.h >>conftest.$ac_ext
18016 cat >>conftest.$ac_ext <<_ACEOF
18017 /* end confdefs.h.  */
18018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18020 #define $ac_func innocuous_$ac_func
18021
18022 /* System header to define __stub macros and hopefully few prototypes,
18023     which can conflict with char $ac_func (); below.
18024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18025     <limits.h> exists even on freestanding compilers.  */
18026
18027 #ifdef __STDC__
18028 # include <limits.h>
18029 #else
18030 # include <assert.h>
18031 #endif
18032
18033 #undef $ac_func
18034
18035 /* Override any GCC internal prototype to avoid an error.
18036    Use char because int might match the return type of a GCC
18037    builtin and then its argument prototype would still apply.  */
18038 #ifdef __cplusplus
18039 extern "C"
18040 #endif
18041 char $ac_func ();
18042 /* The GNU C library defines this for functions which it implements
18043     to always fail with ENOSYS.  Some functions are actually named
18044     something starting with __ and the normal name is an alias.  */
18045 #if defined __stub_$ac_func || defined __stub___$ac_func
18046 choke me
18047 #endif
18048
18049 int
18050 main ()
18051 {
18052 return $ac_func ();
18053   ;
18054   return 0;
18055 }
18056 _ACEOF
18057 rm -f conftest.$ac_objext conftest$ac_exeext
18058 if { (ac_try="$ac_link"
18059 case "(($ac_try" in
18060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061   *) ac_try_echo=$ac_try;;
18062 esac
18063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18064   (eval "$ac_link") 2>conftest.er1
18065   ac_status=$?
18066   grep -v '^ *+' conftest.er1 >conftest.err
18067   rm -f conftest.er1
18068   cat conftest.err >&5
18069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070   (exit $ac_status); } &&
18071          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18072   { (case "(($ac_try" in
18073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074   *) ac_try_echo=$ac_try;;
18075 esac
18076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18077   (eval "$ac_try") 2>&5
18078   ac_status=$?
18079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080   (exit $ac_status); }; } &&
18081          { ac_try='test -s conftest$ac_exeext'
18082   { (case "(($ac_try" in
18083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18084   *) ac_try_echo=$ac_try;;
18085 esac
18086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18087   (eval "$ac_try") 2>&5
18088   ac_status=$?
18089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090   (exit $ac_status); }; }; then
18091   eval "$as_ac_var=yes"
18092 else
18093   echo "$as_me: failed program was:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18095
18096         eval "$as_ac_var=no"
18097 fi
18098
18099 rm -f core conftest.err conftest.$ac_objext \
18100       conftest$ac_exeext conftest.$ac_ext
18101 fi
18102 ac_res=`eval echo '${'$as_ac_var'}'`
18103                { echo "$as_me:$LINENO: result: $ac_res" >&5
18104 echo "${ECHO_T}$ac_res" >&6; }
18105 if test `eval echo '${'$as_ac_var'}'` = yes; then
18106   cat >>confdefs.h <<_ACEOF
18107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18108 _ACEOF
18109
18110 fi
18111 done
18112
18113
18114
18115
18116
18117 for ac_func in powf fmodf strtof round
18118 do
18119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18123   echo $ECHO_N "(cached) $ECHO_C" >&6
18124 else
18125   cat >conftest.$ac_ext <<_ACEOF
18126 /* confdefs.h.  */
18127 _ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h.  */
18131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18132    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18133 #define $ac_func innocuous_$ac_func
18134
18135 /* System header to define __stub macros and hopefully few prototypes,
18136     which can conflict with char $ac_func (); below.
18137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18138     <limits.h> exists even on freestanding compilers.  */
18139
18140 #ifdef __STDC__
18141 # include <limits.h>
18142 #else
18143 # include <assert.h>
18144 #endif
18145
18146 #undef $ac_func
18147
18148 /* Override any GCC internal prototype to avoid an error.
18149    Use char because int might match the return type of a GCC
18150    builtin and then its argument prototype would still apply.  */
18151 #ifdef __cplusplus
18152 extern "C"
18153 #endif
18154 char $ac_func ();
18155 /* The GNU C library defines this for functions which it implements
18156     to always fail with ENOSYS.  Some functions are actually named
18157     something starting with __ and the normal name is an alias.  */
18158 #if defined __stub_$ac_func || defined __stub___$ac_func
18159 choke me
18160 #endif
18161
18162 int
18163 main ()
18164 {
18165 return $ac_func ();
18166   ;
18167   return 0;
18168 }
18169 _ACEOF
18170 rm -f conftest.$ac_objext conftest$ac_exeext
18171 if { (ac_try="$ac_link"
18172 case "(($ac_try" in
18173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174   *) ac_try_echo=$ac_try;;
18175 esac
18176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177   (eval "$ac_link") 2>conftest.er1
18178   ac_status=$?
18179   grep -v '^ *+' conftest.er1 >conftest.err
18180   rm -f conftest.er1
18181   cat conftest.err >&5
18182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183   (exit $ac_status); } &&
18184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18185   { (case "(($ac_try" in
18186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18187   *) ac_try_echo=$ac_try;;
18188 esac
18189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18190   (eval "$ac_try") 2>&5
18191   ac_status=$?
18192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193   (exit $ac_status); }; } &&
18194          { ac_try='test -s conftest$ac_exeext'
18195   { (case "(($ac_try" in
18196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197   *) ac_try_echo=$ac_try;;
18198 esac
18199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200   (eval "$ac_try") 2>&5
18201   ac_status=$?
18202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203   (exit $ac_status); }; }; then
18204   eval "$as_ac_var=yes"
18205 else
18206   echo "$as_me: failed program was:" >&5
18207 sed 's/^/| /' conftest.$ac_ext >&5
18208
18209         eval "$as_ac_var=no"
18210 fi
18211
18212 rm -f core conftest.err conftest.$ac_objext \
18213       conftest$ac_exeext conftest.$ac_ext
18214 fi
18215 ac_res=`eval echo '${'$as_ac_var'}'`
18216                { echo "$as_me:$LINENO: result: $ac_res" >&5
18217 echo "${ECHO_T}$ac_res" >&6; }
18218 if test `eval echo '${'$as_ac_var'}'` = yes; then
18219   cat >>confdefs.h <<_ACEOF
18220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18221 _ACEOF
18222
18223 fi
18224 done
18225
18226
18227
18228
18229
18230
18231 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18232 do
18233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18237   echo $ECHO_N "(cached) $ECHO_C" >&6
18238 else
18239   cat >conftest.$ac_ext <<_ACEOF
18240 /* confdefs.h.  */
18241 _ACEOF
18242 cat confdefs.h >>conftest.$ac_ext
18243 cat >>conftest.$ac_ext <<_ACEOF
18244 /* end confdefs.h.  */
18245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18246    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18247 #define $ac_func innocuous_$ac_func
18248
18249 /* System header to define __stub macros and hopefully few prototypes,
18250     which can conflict with char $ac_func (); below.
18251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18252     <limits.h> exists even on freestanding compilers.  */
18253
18254 #ifdef __STDC__
18255 # include <limits.h>
18256 #else
18257 # include <assert.h>
18258 #endif
18259
18260 #undef $ac_func
18261
18262 /* Override any GCC internal prototype to avoid an error.
18263    Use char because int might match the return type of a GCC
18264    builtin and then its argument prototype would still apply.  */
18265 #ifdef __cplusplus
18266 extern "C"
18267 #endif
18268 char $ac_func ();
18269 /* The GNU C library defines this for functions which it implements
18270     to always fail with ENOSYS.  Some functions are actually named
18271     something starting with __ and the normal name is an alias.  */
18272 #if defined __stub_$ac_func || defined __stub___$ac_func
18273 choke me
18274 #endif
18275
18276 int
18277 main ()
18278 {
18279 return $ac_func ();
18280   ;
18281   return 0;
18282 }
18283 _ACEOF
18284 rm -f conftest.$ac_objext conftest$ac_exeext
18285 if { (ac_try="$ac_link"
18286 case "(($ac_try" in
18287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288   *) ac_try_echo=$ac_try;;
18289 esac
18290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291   (eval "$ac_link") 2>conftest.er1
18292   ac_status=$?
18293   grep -v '^ *+' conftest.er1 >conftest.err
18294   rm -f conftest.er1
18295   cat conftest.err >&5
18296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297   (exit $ac_status); } &&
18298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18299   { (case "(($ac_try" in
18300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18301   *) ac_try_echo=$ac_try;;
18302 esac
18303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18304   (eval "$ac_try") 2>&5
18305   ac_status=$?
18306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307   (exit $ac_status); }; } &&
18308          { ac_try='test -s conftest$ac_exeext'
18309   { (case "(($ac_try" in
18310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311   *) ac_try_echo=$ac_try;;
18312 esac
18313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18314   (eval "$ac_try") 2>&5
18315   ac_status=$?
18316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317   (exit $ac_status); }; }; then
18318   eval "$as_ac_var=yes"
18319 else
18320   echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18322
18323         eval "$as_ac_var=no"
18324 fi
18325
18326 rm -f core conftest.err conftest.$ac_objext \
18327       conftest$ac_exeext conftest.$ac_ext
18328 fi
18329 ac_res=`eval echo '${'$as_ac_var'}'`
18330                { echo "$as_me:$LINENO: result: $ac_res" >&5
18331 echo "${ECHO_T}$ac_res" >&6; }
18332 if test `eval echo '${'$as_ac_var'}'` = yes; then
18333   cat >>confdefs.h <<_ACEOF
18334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18335 _ACEOF
18336
18337 fi
18338 done
18339
18340
18341
18342
18343 for ac_func in isatty mkdtemp mkstemp
18344 do
18345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18349   echo $ECHO_N "(cached) $ECHO_C" >&6
18350 else
18351   cat >conftest.$ac_ext <<_ACEOF
18352 /* confdefs.h.  */
18353 _ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h.  */
18357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18358    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18359 #define $ac_func innocuous_$ac_func
18360
18361 /* System header to define __stub macros and hopefully few prototypes,
18362     which can conflict with char $ac_func (); below.
18363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18364     <limits.h> exists even on freestanding compilers.  */
18365
18366 #ifdef __STDC__
18367 # include <limits.h>
18368 #else
18369 # include <assert.h>
18370 #endif
18371
18372 #undef $ac_func
18373
18374 /* Override any GCC internal prototype to avoid an error.
18375    Use char because int might match the return type of a GCC
18376    builtin and then its argument prototype would still apply.  */
18377 #ifdef __cplusplus
18378 extern "C"
18379 #endif
18380 char $ac_func ();
18381 /* The GNU C library defines this for functions which it implements
18382     to always fail with ENOSYS.  Some functions are actually named
18383     something starting with __ and the normal name is an alias.  */
18384 #if defined __stub_$ac_func || defined __stub___$ac_func
18385 choke me
18386 #endif
18387
18388 int
18389 main ()
18390 {
18391 return $ac_func ();
18392   ;
18393   return 0;
18394 }
18395 _ACEOF
18396 rm -f conftest.$ac_objext conftest$ac_exeext
18397 if { (ac_try="$ac_link"
18398 case "(($ac_try" in
18399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400   *) ac_try_echo=$ac_try;;
18401 esac
18402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403   (eval "$ac_link") 2>conftest.er1
18404   ac_status=$?
18405   grep -v '^ *+' conftest.er1 >conftest.err
18406   rm -f conftest.er1
18407   cat conftest.err >&5
18408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409   (exit $ac_status); } &&
18410          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18411   { (case "(($ac_try" in
18412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413   *) ac_try_echo=$ac_try;;
18414 esac
18415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416   (eval "$ac_try") 2>&5
18417   ac_status=$?
18418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419   (exit $ac_status); }; } &&
18420          { ac_try='test -s conftest$ac_exeext'
18421   { (case "(($ac_try" in
18422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423   *) ac_try_echo=$ac_try;;
18424 esac
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426   (eval "$ac_try") 2>&5
18427   ac_status=$?
18428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429   (exit $ac_status); }; }; then
18430   eval "$as_ac_var=yes"
18431 else
18432   echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18434
18435         eval "$as_ac_var=no"
18436 fi
18437
18438 rm -f core conftest.err conftest.$ac_objext \
18439       conftest$ac_exeext conftest.$ac_ext
18440 fi
18441 ac_res=`eval echo '${'$as_ac_var'}'`
18442                { echo "$as_me:$LINENO: result: $ac_res" >&5
18443 echo "${ECHO_T}$ac_res" >&6; }
18444 if test `eval echo '${'$as_ac_var'}'` = yes; then
18445   cat >>confdefs.h <<_ACEOF
18446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18447 _ACEOF
18448
18449 fi
18450 done
18451
18452
18453
18454
18455
18456
18457
18458 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18459 do
18460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18464   echo $ECHO_N "(cached) $ECHO_C" >&6
18465 else
18466   cat >conftest.$ac_ext <<_ACEOF
18467 /* confdefs.h.  */
18468 _ACEOF
18469 cat confdefs.h >>conftest.$ac_ext
18470 cat >>conftest.$ac_ext <<_ACEOF
18471 /* end confdefs.h.  */
18472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18474 #define $ac_func innocuous_$ac_func
18475
18476 /* System header to define __stub macros and hopefully few prototypes,
18477     which can conflict with char $ac_func (); below.
18478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18479     <limits.h> exists even on freestanding compilers.  */
18480
18481 #ifdef __STDC__
18482 # include <limits.h>
18483 #else
18484 # include <assert.h>
18485 #endif
18486
18487 #undef $ac_func
18488
18489 /* Override any GCC internal prototype to avoid an error.
18490    Use char because int might match the return type of a GCC
18491    builtin and then its argument prototype would still apply.  */
18492 #ifdef __cplusplus
18493 extern "C"
18494 #endif
18495 char $ac_func ();
18496 /* The GNU C library defines this for functions which it implements
18497     to always fail with ENOSYS.  Some functions are actually named
18498     something starting with __ and the normal name is an alias.  */
18499 #if defined __stub_$ac_func || defined __stub___$ac_func
18500 choke me
18501 #endif
18502
18503 int
18504 main ()
18505 {
18506 return $ac_func ();
18507   ;
18508   return 0;
18509 }
18510 _ACEOF
18511 rm -f conftest.$ac_objext conftest$ac_exeext
18512 if { (ac_try="$ac_link"
18513 case "(($ac_try" in
18514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515   *) ac_try_echo=$ac_try;;
18516 esac
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518   (eval "$ac_link") 2>conftest.er1
18519   ac_status=$?
18520   grep -v '^ *+' conftest.er1 >conftest.err
18521   rm -f conftest.er1
18522   cat conftest.err >&5
18523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524   (exit $ac_status); } &&
18525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18526   { (case "(($ac_try" in
18527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528   *) ac_try_echo=$ac_try;;
18529 esac
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531   (eval "$ac_try") 2>&5
18532   ac_status=$?
18533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534   (exit $ac_status); }; } &&
18535          { ac_try='test -s conftest$ac_exeext'
18536   { (case "(($ac_try" in
18537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538   *) ac_try_echo=$ac_try;;
18539 esac
18540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541   (eval "$ac_try") 2>&5
18542   ac_status=$?
18543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544   (exit $ac_status); }; }; then
18545   eval "$as_ac_var=yes"
18546 else
18547   echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18549
18550         eval "$as_ac_var=no"
18551 fi
18552
18553 rm -f core conftest.err conftest.$ac_objext \
18554       conftest$ac_exeext conftest.$ac_ext
18555 fi
18556 ac_res=`eval echo '${'$as_ac_var'}'`
18557                { echo "$as_me:$LINENO: result: $ac_res" >&5
18558 echo "${ECHO_T}$ac_res" >&6; }
18559 if test `eval echo '${'$as_ac_var'}'` = yes; then
18560   cat >>confdefs.h <<_ACEOF
18561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18562 _ACEOF
18563
18564 fi
18565 done
18566
18567
18568
18569
18570
18571 for ac_func in strerror strerror_r strerror_s setenv
18572 do
18573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18577   echo $ECHO_N "(cached) $ECHO_C" >&6
18578 else
18579   cat >conftest.$ac_ext <<_ACEOF
18580 /* confdefs.h.  */
18581 _ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h.  */
18585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18587 #define $ac_func innocuous_$ac_func
18588
18589 /* System header to define __stub macros and hopefully few prototypes,
18590     which can conflict with char $ac_func (); below.
18591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18592     <limits.h> exists even on freestanding compilers.  */
18593
18594 #ifdef __STDC__
18595 # include <limits.h>
18596 #else
18597 # include <assert.h>
18598 #endif
18599
18600 #undef $ac_func
18601
18602 /* Override any GCC internal prototype to avoid an error.
18603    Use char because int might match the return type of a GCC
18604    builtin and then its argument prototype would still apply.  */
18605 #ifdef __cplusplus
18606 extern "C"
18607 #endif
18608 char $ac_func ();
18609 /* The GNU C library defines this for functions which it implements
18610     to always fail with ENOSYS.  Some functions are actually named
18611     something starting with __ and the normal name is an alias.  */
18612 #if defined __stub_$ac_func || defined __stub___$ac_func
18613 choke me
18614 #endif
18615
18616 int
18617 main ()
18618 {
18619 return $ac_func ();
18620   ;
18621   return 0;
18622 }
18623 _ACEOF
18624 rm -f conftest.$ac_objext conftest$ac_exeext
18625 if { (ac_try="$ac_link"
18626 case "(($ac_try" in
18627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18628   *) ac_try_echo=$ac_try;;
18629 esac
18630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18631   (eval "$ac_link") 2>conftest.er1
18632   ac_status=$?
18633   grep -v '^ *+' conftest.er1 >conftest.err
18634   rm -f conftest.er1
18635   cat conftest.err >&5
18636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637   (exit $ac_status); } &&
18638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18639   { (case "(($ac_try" in
18640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641   *) ac_try_echo=$ac_try;;
18642 esac
18643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644   (eval "$ac_try") 2>&5
18645   ac_status=$?
18646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647   (exit $ac_status); }; } &&
18648          { ac_try='test -s conftest$ac_exeext'
18649   { (case "(($ac_try" in
18650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651   *) ac_try_echo=$ac_try;;
18652 esac
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654   (eval "$ac_try") 2>&5
18655   ac_status=$?
18656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657   (exit $ac_status); }; }; then
18658   eval "$as_ac_var=yes"
18659 else
18660   echo "$as_me: failed program was:" >&5
18661 sed 's/^/| /' conftest.$ac_ext >&5
18662
18663         eval "$as_ac_var=no"
18664 fi
18665
18666 rm -f core conftest.err conftest.$ac_objext \
18667       conftest$ac_exeext conftest.$ac_ext
18668 fi
18669 ac_res=`eval echo '${'$as_ac_var'}'`
18670                { echo "$as_me:$LINENO: result: $ac_res" >&5
18671 echo "${ECHO_T}$ac_res" >&6; }
18672 if test `eval echo '${'$as_ac_var'}'` = yes; then
18673   cat >>confdefs.h <<_ACEOF
18674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18675 _ACEOF
18676
18677 fi
18678 done
18679
18680
18681
18682
18683
18684 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18685 do
18686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18689 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18690   echo $ECHO_N "(cached) $ECHO_C" >&6
18691 else
18692   cat >conftest.$ac_ext <<_ACEOF
18693 /* confdefs.h.  */
18694 _ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h.  */
18698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18700 #define $ac_func innocuous_$ac_func
18701
18702 /* System header to define __stub macros and hopefully few prototypes,
18703     which can conflict with char $ac_func (); below.
18704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18705     <limits.h> exists even on freestanding compilers.  */
18706
18707 #ifdef __STDC__
18708 # include <limits.h>
18709 #else
18710 # include <assert.h>
18711 #endif
18712
18713 #undef $ac_func
18714
18715 /* Override any GCC internal prototype to avoid an error.
18716    Use char because int might match the return type of a GCC
18717    builtin and then its argument prototype would still apply.  */
18718 #ifdef __cplusplus
18719 extern "C"
18720 #endif
18721 char $ac_func ();
18722 /* The GNU C library defines this for functions which it implements
18723     to always fail with ENOSYS.  Some functions are actually named
18724     something starting with __ and the normal name is an alias.  */
18725 #if defined __stub_$ac_func || defined __stub___$ac_func
18726 choke me
18727 #endif
18728
18729 int
18730 main ()
18731 {
18732 return $ac_func ();
18733   ;
18734   return 0;
18735 }
18736 _ACEOF
18737 rm -f conftest.$ac_objext conftest$ac_exeext
18738 if { (ac_try="$ac_link"
18739 case "(($ac_try" in
18740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741   *) ac_try_echo=$ac_try;;
18742 esac
18743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744   (eval "$ac_link") 2>conftest.er1
18745   ac_status=$?
18746   grep -v '^ *+' conftest.er1 >conftest.err
18747   rm -f conftest.er1
18748   cat conftest.err >&5
18749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750   (exit $ac_status); } &&
18751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18752   { (case "(($ac_try" in
18753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754   *) ac_try_echo=$ac_try;;
18755 esac
18756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757   (eval "$ac_try") 2>&5
18758   ac_status=$?
18759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760   (exit $ac_status); }; } &&
18761          { ac_try='test -s conftest$ac_exeext'
18762   { (case "(($ac_try" in
18763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764   *) ac_try_echo=$ac_try;;
18765 esac
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767   (eval "$ac_try") 2>&5
18768   ac_status=$?
18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770   (exit $ac_status); }; }; then
18771   eval "$as_ac_var=yes"
18772 else
18773   echo "$as_me: failed program was:" >&5
18774 sed 's/^/| /' conftest.$ac_ext >&5
18775
18776         eval "$as_ac_var=no"
18777 fi
18778
18779 rm -f core conftest.err conftest.$ac_objext \
18780       conftest$ac_exeext conftest.$ac_ext
18781 fi
18782 ac_res=`eval echo '${'$as_ac_var'}'`
18783                { echo "$as_me:$LINENO: result: $ac_res" >&5
18784 echo "${ECHO_T}$ac_res" >&6; }
18785 if test `eval echo '${'$as_ac_var'}'` = yes; then
18786   cat >>confdefs.h <<_ACEOF
18787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18788 _ACEOF
18789
18790 fi
18791 done
18792
18793
18794
18795
18796
18797 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18798 do
18799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18803   echo $ECHO_N "(cached) $ECHO_C" >&6
18804 else
18805   cat >conftest.$ac_ext <<_ACEOF
18806 /* confdefs.h.  */
18807 _ACEOF
18808 cat confdefs.h >>conftest.$ac_ext
18809 cat >>conftest.$ac_ext <<_ACEOF
18810 /* end confdefs.h.  */
18811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18813 #define $ac_func innocuous_$ac_func
18814
18815 /* System header to define __stub macros and hopefully few prototypes,
18816     which can conflict with char $ac_func (); below.
18817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18818     <limits.h> exists even on freestanding compilers.  */
18819
18820 #ifdef __STDC__
18821 # include <limits.h>
18822 #else
18823 # include <assert.h>
18824 #endif
18825
18826 #undef $ac_func
18827
18828 /* Override any GCC internal prototype to avoid an error.
18829    Use char because int might match the return type of a GCC
18830    builtin and then its argument prototype would still apply.  */
18831 #ifdef __cplusplus
18832 extern "C"
18833 #endif
18834 char $ac_func ();
18835 /* The GNU C library defines this for functions which it implements
18836     to always fail with ENOSYS.  Some functions are actually named
18837     something starting with __ and the normal name is an alias.  */
18838 #if defined __stub_$ac_func || defined __stub___$ac_func
18839 choke me
18840 #endif
18841
18842 int
18843 main ()
18844 {
18845 return $ac_func ();
18846   ;
18847   return 0;
18848 }
18849 _ACEOF
18850 rm -f conftest.$ac_objext conftest$ac_exeext
18851 if { (ac_try="$ac_link"
18852 case "(($ac_try" in
18853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18854   *) ac_try_echo=$ac_try;;
18855 esac
18856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18857   (eval "$ac_link") 2>conftest.er1
18858   ac_status=$?
18859   grep -v '^ *+' conftest.er1 >conftest.err
18860   rm -f conftest.er1
18861   cat conftest.err >&5
18862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863   (exit $ac_status); } &&
18864          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18865   { (case "(($ac_try" in
18866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867   *) ac_try_echo=$ac_try;;
18868 esac
18869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18870   (eval "$ac_try") 2>&5
18871   ac_status=$?
18872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873   (exit $ac_status); }; } &&
18874          { ac_try='test -s conftest$ac_exeext'
18875   { (case "(($ac_try" in
18876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877   *) ac_try_echo=$ac_try;;
18878 esac
18879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18880   (eval "$ac_try") 2>&5
18881   ac_status=$?
18882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883   (exit $ac_status); }; }; then
18884   eval "$as_ac_var=yes"
18885 else
18886   echo "$as_me: failed program was:" >&5
18887 sed 's/^/| /' conftest.$ac_ext >&5
18888
18889         eval "$as_ac_var=no"
18890 fi
18891
18892 rm -f core conftest.err conftest.$ac_objext \
18893       conftest$ac_exeext conftest.$ac_ext
18894 fi
18895 ac_res=`eval echo '${'$as_ac_var'}'`
18896                { echo "$as_me:$LINENO: result: $ac_res" >&5
18897 echo "${ECHO_T}$ac_res" >&6; }
18898 if test `eval echo '${'$as_ac_var'}'` = yes; then
18899   cat >>confdefs.h <<_ACEOF
18900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18901 _ACEOF
18902
18903 fi
18904 done
18905
18906 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18907 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18908 if test "${llvm_cv_c_printf_a+set}" = set; then
18909   echo $ECHO_N "(cached) $ECHO_C" >&6
18910 else
18911   ac_ext=c
18912 ac_cpp='$CPP $CPPFLAGS'
18913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18916
18917  if test "$cross_compiling" = yes; then
18918   llvmac_cv_c_printf_a=no
18919 else
18920   cat >conftest.$ac_ext <<_ACEOF
18921
18922   /* confdefs.h.  */
18923 _ACEOF
18924 cat confdefs.h >>conftest.$ac_ext
18925 cat >>conftest.$ac_ext <<_ACEOF
18926 /* end confdefs.h.  */
18927
18928 #include <stdio.h>
18929 #include <stdlib.h>
18930
18931 int
18932 main ()
18933 {
18934
18935 volatile double A, B;
18936 char Buffer[100];
18937 A = 1;
18938 A /= 10.0;
18939 sprintf(Buffer, "%a", A);
18940 B = atof(Buffer);
18941 if (A != B)
18942   return (1);
18943 if (A != 0x1.999999999999ap-4)
18944   return (1);
18945 return (0);
18946   ;
18947   return 0;
18948 }
18949 _ACEOF
18950 rm -f conftest$ac_exeext
18951 if { (ac_try="$ac_link"
18952 case "(($ac_try" in
18953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954   *) ac_try_echo=$ac_try;;
18955 esac
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957   (eval "$ac_link") 2>&5
18958   ac_status=$?
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18961   { (case "(($ac_try" in
18962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963   *) ac_try_echo=$ac_try;;
18964 esac
18965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18966   (eval "$ac_try") 2>&5
18967   ac_status=$?
18968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969   (exit $ac_status); }; }; then
18970   llvm_cv_c_printf_a=yes
18971 else
18972   echo "$as_me: program exited with status $ac_status" >&5
18973 echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18975
18976 ( exit $ac_status )
18977 llvmac_cv_c_printf_a=no
18978 fi
18979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18980 fi
18981
18982
18983  ac_ext=c
18984 ac_cpp='$CPP $CPPFLAGS'
18985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18988
18989 fi
18990 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18991 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18992  if test "$llvm_cv_c_printf_a" = "yes"; then
18993
18994 cat >>confdefs.h <<\_ACEOF
18995 #define HAVE_PRINTF_A 1
18996 _ACEOF
18997
18998  fi
18999
19000
19001 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19002 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19003 if test "${ac_cv_func_rand48+set}" = set; then
19004   echo $ECHO_N "(cached) $ECHO_C" >&6
19005 else
19006   ac_ext=cpp
19007 ac_cpp='$CXXCPP $CPPFLAGS'
19008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19011
19012    cat >conftest.$ac_ext <<_ACEOF
19013 /* confdefs.h.  */
19014 _ACEOF
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h.  */
19018 #include <stdlib.h>
19019 int
19020 main ()
19021 {
19022 srand48(0);lrand48();drand48();
19023   ;
19024   return 0;
19025 }
19026 _ACEOF
19027 rm -f conftest.$ac_objext
19028 if { (ac_try="$ac_compile"
19029 case "(($ac_try" in
19030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031   *) ac_try_echo=$ac_try;;
19032 esac
19033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034   (eval "$ac_compile") 2>conftest.er1
19035   ac_status=$?
19036   grep -v '^ *+' conftest.er1 >conftest.err
19037   rm -f conftest.er1
19038   cat conftest.err >&5
19039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040   (exit $ac_status); } &&
19041          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19042   { (case "(($ac_try" in
19043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044   *) ac_try_echo=$ac_try;;
19045 esac
19046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047   (eval "$ac_try") 2>&5
19048   ac_status=$?
19049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050   (exit $ac_status); }; } &&
19051          { ac_try='test -s conftest.$ac_objext'
19052   { (case "(($ac_try" in
19053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054   *) ac_try_echo=$ac_try;;
19055 esac
19056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19057   (eval "$ac_try") 2>&5
19058   ac_status=$?
19059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060   (exit $ac_status); }; }; then
19061   ac_cv_func_rand48=yes
19062 else
19063   echo "$as_me: failed program was:" >&5
19064 sed 's/^/| /' conftest.$ac_ext >&5
19065
19066         ac_cv_func_rand48=no
19067 fi
19068
19069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19070   ac_ext=c
19071 ac_cpp='$CPP $CPPFLAGS'
19072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19075
19076 fi
19077 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19078 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19079
19080 if test "$ac_cv_func_rand48" = "yes" ; then
19081
19082 cat >>confdefs.h <<\_ACEOF
19083 #define HAVE_RAND48 1
19084 _ACEOF
19085
19086 fi
19087
19088
19089
19090 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19091 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19092 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19093   echo $ECHO_N "(cached) $ECHO_C" >&6
19094 else
19095   ac_ext=cpp
19096 ac_cpp='$CXXCPP $CPPFLAGS'
19097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19100
19101    cat >conftest.$ac_ext <<_ACEOF
19102 /* confdefs.h.  */
19103 _ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h.  */
19107 #include <math.h>
19108 int
19109 main ()
19110 {
19111 float f; isnan(f);
19112   ;
19113   return 0;
19114 }
19115 _ACEOF
19116 rm -f conftest.$ac_objext
19117 if { (ac_try="$ac_compile"
19118 case "(($ac_try" in
19119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120   *) ac_try_echo=$ac_try;;
19121 esac
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123   (eval "$ac_compile") 2>conftest.er1
19124   ac_status=$?
19125   grep -v '^ *+' conftest.er1 >conftest.err
19126   rm -f conftest.er1
19127   cat conftest.err >&5
19128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129   (exit $ac_status); } &&
19130          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19131   { (case "(($ac_try" in
19132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133   *) ac_try_echo=$ac_try;;
19134 esac
19135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136   (eval "$ac_try") 2>&5
19137   ac_status=$?
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); }; } &&
19140          { ac_try='test -s conftest.$ac_objext'
19141   { (case "(($ac_try" in
19142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143   *) ac_try_echo=$ac_try;;
19144 esac
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146   (eval "$ac_try") 2>&5
19147   ac_status=$?
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); }; }; then
19150   ac_cv_func_isnan_in_math_h=yes
19151 else
19152   echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19154
19155         ac_cv_func_isnan_in_math_h=no
19156 fi
19157
19158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19159   ac_ext=c
19160 ac_cpp='$CPP $CPPFLAGS'
19161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19164
19165 fi
19166 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19167 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19168
19169
19170 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19171
19172 cat >>confdefs.h <<\_ACEOF
19173 #define HAVE_ISNAN_IN_MATH_H 1
19174 _ACEOF
19175
19176 fi
19177
19178 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19179 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19180 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19181   echo $ECHO_N "(cached) $ECHO_C" >&6
19182 else
19183   ac_ext=cpp
19184 ac_cpp='$CXXCPP $CPPFLAGS'
19185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19188
19189    cat >conftest.$ac_ext <<_ACEOF
19190 /* confdefs.h.  */
19191 _ACEOF
19192 cat confdefs.h >>conftest.$ac_ext
19193 cat >>conftest.$ac_ext <<_ACEOF
19194 /* end confdefs.h.  */
19195 #include <cmath>
19196 int
19197 main ()
19198 {
19199 float f; isnan(f);
19200   ;
19201   return 0;
19202 }
19203 _ACEOF
19204 rm -f conftest.$ac_objext
19205 if { (ac_try="$ac_compile"
19206 case "(($ac_try" in
19207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208   *) ac_try_echo=$ac_try;;
19209 esac
19210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211   (eval "$ac_compile") 2>conftest.er1
19212   ac_status=$?
19213   grep -v '^ *+' conftest.er1 >conftest.err
19214   rm -f conftest.er1
19215   cat conftest.err >&5
19216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217   (exit $ac_status); } &&
19218          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19219   { (case "(($ac_try" in
19220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221   *) ac_try_echo=$ac_try;;
19222 esac
19223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224   (eval "$ac_try") 2>&5
19225   ac_status=$?
19226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227   (exit $ac_status); }; } &&
19228          { ac_try='test -s conftest.$ac_objext'
19229   { (case "(($ac_try" in
19230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231   *) ac_try_echo=$ac_try;;
19232 esac
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234   (eval "$ac_try") 2>&5
19235   ac_status=$?
19236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237   (exit $ac_status); }; }; then
19238   ac_cv_func_isnan_in_cmath=yes
19239 else
19240   echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19242
19243         ac_cv_func_isnan_in_cmath=no
19244 fi
19245
19246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19247   ac_ext=c
19248 ac_cpp='$CPP $CPPFLAGS'
19249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19252
19253 fi
19254 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19255 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19256
19257 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19258
19259 cat >>confdefs.h <<\_ACEOF
19260 #define HAVE_ISNAN_IN_CMATH 1
19261 _ACEOF
19262
19263 fi
19264
19265 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19266 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19267 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19268   echo $ECHO_N "(cached) $ECHO_C" >&6
19269 else
19270   ac_ext=cpp
19271 ac_cpp='$CXXCPP $CPPFLAGS'
19272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19275
19276    cat >conftest.$ac_ext <<_ACEOF
19277 /* confdefs.h.  */
19278 _ACEOF
19279 cat confdefs.h >>conftest.$ac_ext
19280 cat >>conftest.$ac_ext <<_ACEOF
19281 /* end confdefs.h.  */
19282 #include <cmath>
19283 int
19284 main ()
19285 {
19286 float f; std::isnan(f);
19287   ;
19288   return 0;
19289 }
19290 _ACEOF
19291 rm -f conftest.$ac_objext
19292 if { (ac_try="$ac_compile"
19293 case "(($ac_try" in
19294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295   *) ac_try_echo=$ac_try;;
19296 esac
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298   (eval "$ac_compile") 2>conftest.er1
19299   ac_status=$?
19300   grep -v '^ *+' conftest.er1 >conftest.err
19301   rm -f conftest.er1
19302   cat conftest.err >&5
19303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304   (exit $ac_status); } &&
19305          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19306   { (case "(($ac_try" in
19307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19308   *) ac_try_echo=$ac_try;;
19309 esac
19310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19311   (eval "$ac_try") 2>&5
19312   ac_status=$?
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); }; } &&
19315          { ac_try='test -s conftest.$ac_objext'
19316   { (case "(($ac_try" in
19317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318   *) ac_try_echo=$ac_try;;
19319 esac
19320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19321   (eval "$ac_try") 2>&5
19322   ac_status=$?
19323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324   (exit $ac_status); }; }; then
19325   ac_cv_func_std_isnan_in_cmath=yes
19326 else
19327   echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19329
19330         ac_cv_func_std_isnan_in_cmath=no
19331 fi
19332
19333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19334   ac_ext=c
19335 ac_cpp='$CPP $CPPFLAGS'
19336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19339
19340 fi
19341 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19342 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19343
19344 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19345
19346 cat >>confdefs.h <<\_ACEOF
19347 #define HAVE_STD_ISNAN_IN_CMATH 1
19348 _ACEOF
19349
19350 fi
19351
19352
19353 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19354 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19355 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19356   echo $ECHO_N "(cached) $ECHO_C" >&6
19357 else
19358   ac_ext=cpp
19359 ac_cpp='$CXXCPP $CPPFLAGS'
19360 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19361 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19362 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19363
19364    cat >conftest.$ac_ext <<_ACEOF
19365 /* confdefs.h.  */
19366 _ACEOF
19367 cat confdefs.h >>conftest.$ac_ext
19368 cat >>conftest.$ac_ext <<_ACEOF
19369 /* end confdefs.h.  */
19370 #include <math.h>
19371 int
19372 main ()
19373 {
19374 float f; isinf(f);
19375   ;
19376   return 0;
19377 }
19378 _ACEOF
19379 rm -f conftest.$ac_objext
19380 if { (ac_try="$ac_compile"
19381 case "(($ac_try" in
19382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383   *) ac_try_echo=$ac_try;;
19384 esac
19385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386   (eval "$ac_compile") 2>conftest.er1
19387   ac_status=$?
19388   grep -v '^ *+' conftest.er1 >conftest.err
19389   rm -f conftest.er1
19390   cat conftest.err >&5
19391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392   (exit $ac_status); } &&
19393          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19394   { (case "(($ac_try" in
19395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19396   *) ac_try_echo=$ac_try;;
19397 esac
19398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19399   (eval "$ac_try") 2>&5
19400   ac_status=$?
19401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402   (exit $ac_status); }; } &&
19403          { ac_try='test -s conftest.$ac_objext'
19404   { (case "(($ac_try" in
19405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406   *) ac_try_echo=$ac_try;;
19407 esac
19408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19409   (eval "$ac_try") 2>&5
19410   ac_status=$?
19411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412   (exit $ac_status); }; }; then
19413   ac_cv_func_isinf_in_math_h=yes
19414 else
19415   echo "$as_me: failed program was:" >&5
19416 sed 's/^/| /' conftest.$ac_ext >&5
19417
19418         ac_cv_func_isinf_in_math_h=no
19419 fi
19420
19421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19422   ac_ext=c
19423 ac_cpp='$CPP $CPPFLAGS'
19424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19427
19428 fi
19429 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19430 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19431
19432 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19433
19434 cat >>confdefs.h <<\_ACEOF
19435 #define HAVE_ISINF_IN_MATH_H 1
19436 _ACEOF
19437
19438 fi
19439
19440 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19441 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19442 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19443   echo $ECHO_N "(cached) $ECHO_C" >&6
19444 else
19445   ac_ext=cpp
19446 ac_cpp='$CXXCPP $CPPFLAGS'
19447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19450
19451    cat >conftest.$ac_ext <<_ACEOF
19452 /* confdefs.h.  */
19453 _ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h.  */
19457 #include <cmath>
19458 int
19459 main ()
19460 {
19461 float f; isinf(f);
19462   ;
19463   return 0;
19464 }
19465 _ACEOF
19466 rm -f conftest.$ac_objext
19467 if { (ac_try="$ac_compile"
19468 case "(($ac_try" in
19469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19470   *) ac_try_echo=$ac_try;;
19471 esac
19472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19473   (eval "$ac_compile") 2>conftest.er1
19474   ac_status=$?
19475   grep -v '^ *+' conftest.er1 >conftest.err
19476   rm -f conftest.er1
19477   cat conftest.err >&5
19478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479   (exit $ac_status); } &&
19480          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19481   { (case "(($ac_try" in
19482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483   *) ac_try_echo=$ac_try;;
19484 esac
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486   (eval "$ac_try") 2>&5
19487   ac_status=$?
19488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489   (exit $ac_status); }; } &&
19490          { ac_try='test -s conftest.$ac_objext'
19491   { (case "(($ac_try" in
19492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493   *) ac_try_echo=$ac_try;;
19494 esac
19495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19496   (eval "$ac_try") 2>&5
19497   ac_status=$?
19498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499   (exit $ac_status); }; }; then
19500   ac_cv_func_isinf_in_cmath=yes
19501 else
19502   echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19504
19505         ac_cv_func_isinf_in_cmath=no
19506 fi
19507
19508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19509   ac_ext=c
19510 ac_cpp='$CPP $CPPFLAGS'
19511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19514
19515 fi
19516 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19517 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19518
19519 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19520
19521 cat >>confdefs.h <<\_ACEOF
19522 #define HAVE_ISINF_IN_CMATH 1
19523 _ACEOF
19524
19525 fi
19526
19527 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19528 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19529 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19530   echo $ECHO_N "(cached) $ECHO_C" >&6
19531 else
19532   ac_ext=cpp
19533 ac_cpp='$CXXCPP $CPPFLAGS'
19534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19537
19538    cat >conftest.$ac_ext <<_ACEOF
19539 /* confdefs.h.  */
19540 _ACEOF
19541 cat confdefs.h >>conftest.$ac_ext
19542 cat >>conftest.$ac_ext <<_ACEOF
19543 /* end confdefs.h.  */
19544 #include <cmath>
19545 int
19546 main ()
19547 {
19548 float f; std::isinf(f)}
19549   ;
19550   return 0;
19551 }
19552 _ACEOF
19553 rm -f conftest.$ac_objext
19554 if { (ac_try="$ac_compile"
19555 case "(($ac_try" in
19556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557   *) ac_try_echo=$ac_try;;
19558 esac
19559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19560   (eval "$ac_compile") 2>conftest.er1
19561   ac_status=$?
19562   grep -v '^ *+' conftest.er1 >conftest.err
19563   rm -f conftest.er1
19564   cat conftest.err >&5
19565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566   (exit $ac_status); } &&
19567          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19568   { (case "(($ac_try" in
19569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570   *) ac_try_echo=$ac_try;;
19571 esac
19572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19573   (eval "$ac_try") 2>&5
19574   ac_status=$?
19575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576   (exit $ac_status); }; } &&
19577          { ac_try='test -s conftest.$ac_objext'
19578   { (case "(($ac_try" in
19579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19580   *) ac_try_echo=$ac_try;;
19581 esac
19582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19583   (eval "$ac_try") 2>&5
19584   ac_status=$?
19585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); }; }; then
19587   ac_cv_func_std_isinf_in_cmath=yes
19588 else
19589   echo "$as_me: failed program was:" >&5
19590 sed 's/^/| /' conftest.$ac_ext >&5
19591
19592         ac_cv_func_std_isinf_in_cmath=no
19593 fi
19594
19595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19596   ac_ext=c
19597 ac_cpp='$CPP $CPPFLAGS'
19598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19601
19602 fi
19603 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19604 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19605
19606 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19607
19608 cat >>confdefs.h <<\_ACEOF
19609 #define HAVE_STD_ISINF_IN_CMATH 1
19610 _ACEOF
19611
19612 fi
19613
19614 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19615 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19616 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19617   echo $ECHO_N "(cached) $ECHO_C" >&6
19618 else
19619   ac_ext=cpp
19620 ac_cpp='$CXXCPP $CPPFLAGS'
19621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19624
19625    cat >conftest.$ac_ext <<_ACEOF
19626 /* confdefs.h.  */
19627 _ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h.  */
19631 #include <ieeefp.h>
19632 int
19633 main ()
19634 {
19635 float f; finite(f);
19636   ;
19637   return 0;
19638 }
19639 _ACEOF
19640 rm -f conftest.$ac_objext
19641 if { (ac_try="$ac_compile"
19642 case "(($ac_try" in
19643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19644   *) ac_try_echo=$ac_try;;
19645 esac
19646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19647   (eval "$ac_compile") 2>conftest.er1
19648   ac_status=$?
19649   grep -v '^ *+' conftest.er1 >conftest.err
19650   rm -f conftest.er1
19651   cat conftest.err >&5
19652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); } &&
19654          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19655   { (case "(($ac_try" in
19656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657   *) ac_try_echo=$ac_try;;
19658 esac
19659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660   (eval "$ac_try") 2>&5
19661   ac_status=$?
19662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663   (exit $ac_status); }; } &&
19664          { ac_try='test -s conftest.$ac_objext'
19665   { (case "(($ac_try" in
19666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667   *) ac_try_echo=$ac_try;;
19668 esac
19669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670   (eval "$ac_try") 2>&5
19671   ac_status=$?
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); }; }; then
19674   ac_cv_func_finite_in_ieeefp_h=yes
19675 else
19676   echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19678
19679         ac_cv_func_finite_in_ieeefp_h=no
19680 fi
19681
19682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19683   ac_ext=c
19684 ac_cpp='$CPP $CPPFLAGS'
19685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19688
19689 fi
19690 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19691 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19692
19693 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19694
19695 cat >>confdefs.h <<\_ACEOF
19696 #define HAVE_FINITE_IN_IEEEFP_H 1
19697 _ACEOF
19698
19699 fi
19700
19701
19702
19703 if test "$llvm_cv_platform_type" = "Unix" ; then
19704
19705
19706 for ac_header in stdlib.h unistd.h
19707 do
19708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19710   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19713   echo $ECHO_N "(cached) $ECHO_C" >&6
19714 fi
19715 ac_res=`eval echo '${'$as_ac_Header'}'`
19716                { echo "$as_me:$LINENO: result: $ac_res" >&5
19717 echo "${ECHO_T}$ac_res" >&6; }
19718 else
19719   # Is the header compilable?
19720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19722 cat >conftest.$ac_ext <<_ACEOF
19723 /* confdefs.h.  */
19724 _ACEOF
19725 cat confdefs.h >>conftest.$ac_ext
19726 cat >>conftest.$ac_ext <<_ACEOF
19727 /* end confdefs.h.  */
19728 $ac_includes_default
19729 #include <$ac_header>
19730 _ACEOF
19731 rm -f conftest.$ac_objext
19732 if { (ac_try="$ac_compile"
19733 case "(($ac_try" in
19734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735   *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738   (eval "$ac_compile") 2>conftest.er1
19739   ac_status=$?
19740   grep -v '^ *+' conftest.er1 >conftest.err
19741   rm -f conftest.er1
19742   cat conftest.err >&5
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); } &&
19745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19746   { (case "(($ac_try" in
19747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748   *) ac_try_echo=$ac_try;;
19749 esac
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751   (eval "$ac_try") 2>&5
19752   ac_status=$?
19753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754   (exit $ac_status); }; } &&
19755          { ac_try='test -s conftest.$ac_objext'
19756   { (case "(($ac_try" in
19757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758   *) ac_try_echo=$ac_try;;
19759 esac
19760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761   (eval "$ac_try") 2>&5
19762   ac_status=$?
19763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764   (exit $ac_status); }; }; then
19765   ac_header_compiler=yes
19766 else
19767   echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19769
19770         ac_header_compiler=no
19771 fi
19772
19773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19775 echo "${ECHO_T}$ac_header_compiler" >&6; }
19776
19777 # Is the header present?
19778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19780 cat >conftest.$ac_ext <<_ACEOF
19781 /* confdefs.h.  */
19782 _ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h.  */
19786 #include <$ac_header>
19787 _ACEOF
19788 if { (ac_try="$ac_cpp conftest.$ac_ext"
19789 case "(($ac_try" in
19790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791   *) ac_try_echo=$ac_try;;
19792 esac
19793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19794   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19795   ac_status=$?
19796   grep -v '^ *+' conftest.er1 >conftest.err
19797   rm -f conftest.er1
19798   cat conftest.err >&5
19799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800   (exit $ac_status); } >/dev/null; then
19801   if test -s conftest.err; then
19802     ac_cpp_err=$ac_c_preproc_warn_flag
19803     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19804   else
19805     ac_cpp_err=
19806   fi
19807 else
19808   ac_cpp_err=yes
19809 fi
19810 if test -z "$ac_cpp_err"; then
19811   ac_header_preproc=yes
19812 else
19813   echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19815
19816   ac_header_preproc=no
19817 fi
19818
19819 rm -f conftest.err conftest.$ac_ext
19820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19821 echo "${ECHO_T}$ac_header_preproc" >&6; }
19822
19823 # So?  What about this header?
19824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19825   yes:no: )
19826     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19830     ac_header_preproc=yes
19831     ;;
19832   no:yes:* )
19833     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19835     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19836 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19837     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19839     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19840 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19843     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19845     ( cat <<\_ASBOX
19846 ## ----------------------------------- ##
19847 ## Report this to llvmbugs@cs.uiuc.edu ##
19848 ## ----------------------------------- ##
19849 _ASBOX
19850      ) | sed "s/^/$as_me: WARNING:     /" >&2
19851     ;;
19852 esac
19853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19856   echo $ECHO_N "(cached) $ECHO_C" >&6
19857 else
19858   eval "$as_ac_Header=\$ac_header_preproc"
19859 fi
19860 ac_res=`eval echo '${'$as_ac_Header'}'`
19861                { echo "$as_me:$LINENO: result: $ac_res" >&5
19862 echo "${ECHO_T}$ac_res" >&6; }
19863
19864 fi
19865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19866   cat >>confdefs.h <<_ACEOF
19867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19868 _ACEOF
19869
19870 fi
19871
19872 done
19873
19874
19875 for ac_func in getpagesize
19876 do
19877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19881   echo $ECHO_N "(cached) $ECHO_C" >&6
19882 else
19883   cat >conftest.$ac_ext <<_ACEOF
19884 /* confdefs.h.  */
19885 _ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h.  */
19889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19891 #define $ac_func innocuous_$ac_func
19892
19893 /* System header to define __stub macros and hopefully few prototypes,
19894     which can conflict with char $ac_func (); below.
19895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19896     <limits.h> exists even on freestanding compilers.  */
19897
19898 #ifdef __STDC__
19899 # include <limits.h>
19900 #else
19901 # include <assert.h>
19902 #endif
19903
19904 #undef $ac_func
19905
19906 /* Override any GCC internal prototype to avoid an error.
19907    Use char because int might match the return type of a GCC
19908    builtin and then its argument prototype would still apply.  */
19909 #ifdef __cplusplus
19910 extern "C"
19911 #endif
19912 char $ac_func ();
19913 /* The GNU C library defines this for functions which it implements
19914     to always fail with ENOSYS.  Some functions are actually named
19915     something starting with __ and the normal name is an alias.  */
19916 #if defined __stub_$ac_func || defined __stub___$ac_func
19917 choke me
19918 #endif
19919
19920 int
19921 main ()
19922 {
19923 return $ac_func ();
19924   ;
19925   return 0;
19926 }
19927 _ACEOF
19928 rm -f conftest.$ac_objext conftest$ac_exeext
19929 if { (ac_try="$ac_link"
19930 case "(($ac_try" in
19931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19932   *) ac_try_echo=$ac_try;;
19933 esac
19934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19935   (eval "$ac_link") 2>conftest.er1
19936   ac_status=$?
19937   grep -v '^ *+' conftest.er1 >conftest.err
19938   rm -f conftest.er1
19939   cat conftest.err >&5
19940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941   (exit $ac_status); } &&
19942          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19943   { (case "(($ac_try" in
19944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945   *) ac_try_echo=$ac_try;;
19946 esac
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948   (eval "$ac_try") 2>&5
19949   ac_status=$?
19950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951   (exit $ac_status); }; } &&
19952          { ac_try='test -s conftest$ac_exeext'
19953   { (case "(($ac_try" in
19954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955   *) ac_try_echo=$ac_try;;
19956 esac
19957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958   (eval "$ac_try") 2>&5
19959   ac_status=$?
19960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961   (exit $ac_status); }; }; then
19962   eval "$as_ac_var=yes"
19963 else
19964   echo "$as_me: failed program was:" >&5
19965 sed 's/^/| /' conftest.$ac_ext >&5
19966
19967         eval "$as_ac_var=no"
19968 fi
19969
19970 rm -f core conftest.err conftest.$ac_objext \
19971       conftest$ac_exeext conftest.$ac_ext
19972 fi
19973 ac_res=`eval echo '${'$as_ac_var'}'`
19974                { echo "$as_me:$LINENO: result: $ac_res" >&5
19975 echo "${ECHO_T}$ac_res" >&6; }
19976 if test `eval echo '${'$as_ac_var'}'` = yes; then
19977   cat >>confdefs.h <<_ACEOF
19978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19979 _ACEOF
19980
19981 fi
19982 done
19983
19984 { echo "$as_me:$LINENO: checking for working mmap" >&5
19985 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19986 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19987   echo $ECHO_N "(cached) $ECHO_C" >&6
19988 else
19989   if test "$cross_compiling" = yes; then
19990   ac_cv_func_mmap_fixed_mapped=no
19991 else
19992   cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h.  */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h.  */
19998 $ac_includes_default
19999 /* malloc might have been renamed as rpl_malloc. */
20000 #undef malloc
20001
20002 /* Thanks to Mike Haertel and Jim Avera for this test.
20003    Here is a matrix of mmap possibilities:
20004         mmap private not fixed
20005         mmap private fixed at somewhere currently unmapped
20006         mmap private fixed at somewhere already mapped
20007         mmap shared not fixed
20008         mmap shared fixed at somewhere currently unmapped
20009         mmap shared fixed at somewhere already mapped
20010    For private mappings, we should verify that changes cannot be read()
20011    back from the file, nor mmap's back from the file at a different
20012    address.  (There have been systems where private was not correctly
20013    implemented like the infamous i386 svr4.0, and systems where the
20014    VM page cache was not coherent with the file system buffer cache
20015    like early versions of FreeBSD and possibly contemporary NetBSD.)
20016    For shared mappings, we should conversely verify that changes get
20017    propagated back to all the places they're supposed to be.
20018
20019    Grep wants private fixed already mapped.
20020    The main things grep needs to know about mmap are:
20021    * does it exist and is it safe to write into the mmap'd area
20022    * how to use it (BSD variants)  */
20023
20024 #include <fcntl.h>
20025 #include <sys/mman.h>
20026
20027 #if !STDC_HEADERS && !HAVE_STDLIB_H
20028 char *malloc ();
20029 #endif
20030
20031 /* This mess was copied from the GNU getpagesize.h.  */
20032 #if !HAVE_GETPAGESIZE
20033 /* Assume that all systems that can run configure have sys/param.h.  */
20034 # if !HAVE_SYS_PARAM_H
20035 #  define HAVE_SYS_PARAM_H 1
20036 # endif
20037
20038 # ifdef _SC_PAGESIZE
20039 #  define getpagesize() sysconf(_SC_PAGESIZE)
20040 # else /* no _SC_PAGESIZE */
20041 #  if HAVE_SYS_PARAM_H
20042 #   include <sys/param.h>
20043 #   ifdef EXEC_PAGESIZE
20044 #    define getpagesize() EXEC_PAGESIZE
20045 #   else /* no EXEC_PAGESIZE */
20046 #    ifdef NBPG
20047 #     define getpagesize() NBPG * CLSIZE
20048 #     ifndef CLSIZE
20049 #      define CLSIZE 1
20050 #     endif /* no CLSIZE */
20051 #    else /* no NBPG */
20052 #     ifdef NBPC
20053 #      define getpagesize() NBPC
20054 #     else /* no NBPC */
20055 #      ifdef PAGESIZE
20056 #       define getpagesize() PAGESIZE
20057 #      endif /* PAGESIZE */
20058 #     endif /* no NBPC */
20059 #    endif /* no NBPG */
20060 #   endif /* no EXEC_PAGESIZE */
20061 #  else /* no HAVE_SYS_PARAM_H */
20062 #   define getpagesize() 8192   /* punt totally */
20063 #  endif /* no HAVE_SYS_PARAM_H */
20064 # endif /* no _SC_PAGESIZE */
20065
20066 #endif /* no HAVE_GETPAGESIZE */
20067
20068 int
20069 main ()
20070 {
20071   char *data, *data2, *data3;
20072   int i, pagesize;
20073   int fd;
20074
20075   pagesize = getpagesize ();
20076
20077   /* First, make a file with some known garbage in it. */
20078   data = (char *) malloc (pagesize);
20079   if (!data)
20080     return 1;
20081   for (i = 0; i < pagesize; ++i)
20082     *(data + i) = rand ();
20083   umask (0);
20084   fd = creat ("conftest.mmap", 0600);
20085   if (fd < 0)
20086     return 1;
20087   if (write (fd, data, pagesize) != pagesize)
20088     return 1;
20089   close (fd);
20090
20091   /* Next, try to mmap the file at a fixed address which already has
20092      something else allocated at it.  If we can, also make sure that
20093      we see the same garbage.  */
20094   fd = open ("conftest.mmap", O_RDWR);
20095   if (fd < 0)
20096     return 1;
20097   data2 = (char *) malloc (2 * pagesize);
20098   if (!data2)
20099     return 1;
20100   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20101   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20102                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20103     return 1;
20104   for (i = 0; i < pagesize; ++i)
20105     if (*(data + i) != *(data2 + i))
20106       return 1;
20107
20108   /* Finally, make sure that changes to the mapped area do not
20109      percolate back to the file as seen by read().  (This is a bug on
20110      some variants of i386 svr4.0.)  */
20111   for (i = 0; i < pagesize; ++i)
20112     *(data2 + i) = *(data2 + i) + 1;
20113   data3 = (char *) malloc (pagesize);
20114   if (!data3)
20115     return 1;
20116   if (read (fd, data3, pagesize) != pagesize)
20117     return 1;
20118   for (i = 0; i < pagesize; ++i)
20119     if (*(data + i) != *(data3 + i))
20120       return 1;
20121   close (fd);
20122   return 0;
20123 }
20124 _ACEOF
20125 rm -f conftest$ac_exeext
20126 if { (ac_try="$ac_link"
20127 case "(($ac_try" in
20128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129   *) ac_try_echo=$ac_try;;
20130 esac
20131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20132   (eval "$ac_link") 2>&5
20133   ac_status=$?
20134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20136   { (case "(($ac_try" in
20137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138   *) ac_try_echo=$ac_try;;
20139 esac
20140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20141   (eval "$ac_try") 2>&5
20142   ac_status=$?
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); }; }; then
20145   ac_cv_func_mmap_fixed_mapped=yes
20146 else
20147   echo "$as_me: program exited with status $ac_status" >&5
20148 echo "$as_me: failed program was:" >&5
20149 sed 's/^/| /' conftest.$ac_ext >&5
20150
20151 ( exit $ac_status )
20152 ac_cv_func_mmap_fixed_mapped=no
20153 fi
20154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20155 fi
20156
20157
20158 fi
20159 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20160 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20161 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20162
20163 cat >>confdefs.h <<\_ACEOF
20164 #define HAVE_MMAP 1
20165 _ACEOF
20166
20167 fi
20168 rm -f conftest.mmap
20169
20170   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20171 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20172 if test "${ac_cv_func_mmap_file+set}" = set; then
20173   echo $ECHO_N "(cached) $ECHO_C" >&6
20174 else
20175    ac_ext=c
20176 ac_cpp='$CPP $CPPFLAGS'
20177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20180
20181   if test "$cross_compiling" = yes; then
20182   ac_cv_func_mmap_file=no
20183 else
20184   cat >conftest.$ac_ext <<_ACEOF
20185
20186     /* confdefs.h.  */
20187 _ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h.  */
20191
20192 #include <sys/types.h>
20193 #include <sys/mman.h>
20194 #include <fcntl.h>
20195
20196 int
20197 main ()
20198 {
20199
20200   int fd;
20201   fd = creat ("foo",0777);
20202   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20203   unlink ("foo");
20204   return (fd != (int) MAP_FAILED);
20205   ;
20206   return 0;
20207 }
20208 _ACEOF
20209 rm -f conftest$ac_exeext
20210 if { (ac_try="$ac_link"
20211 case "(($ac_try" in
20212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213   *) ac_try_echo=$ac_try;;
20214 esac
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216   (eval "$ac_link") 2>&5
20217   ac_status=$?
20218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20220   { (case "(($ac_try" in
20221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222   *) ac_try_echo=$ac_try;;
20223 esac
20224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225   (eval "$ac_try") 2>&5
20226   ac_status=$?
20227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228   (exit $ac_status); }; }; then
20229   ac_cv_func_mmap_file=yes
20230 else
20231   echo "$as_me: program exited with status $ac_status" >&5
20232 echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20234
20235 ( exit $ac_status )
20236 ac_cv_func_mmap_file=no
20237 fi
20238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20239 fi
20240
20241
20242   ac_ext=c
20243 ac_cpp='$CPP $CPPFLAGS'
20244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20247
20248
20249 fi
20250 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20251 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20252 if test "$ac_cv_func_mmap_file" = yes; then
20253
20254 cat >>confdefs.h <<\_ACEOF
20255 #define HAVE_MMAP_FILE
20256 _ACEOF
20257
20258    MMAP_FILE=yes
20259
20260 fi
20261
20262   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20263 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20264 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20265   echo $ECHO_N "(cached) $ECHO_C" >&6
20266 else
20267   if test "$llvm_cv_os_type" = "Interix" ; then
20268    ac_cv_need_dev_zero_for_mmap=yes
20269  else
20270    ac_cv_need_dev_zero_for_mmap=no
20271  fi
20272
20273 fi
20274 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20275 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20276 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20277
20278 cat >>confdefs.h <<\_ACEOF
20279 #define NEED_DEV_ZERO_FOR_MMAP 1
20280 _ACEOF
20281
20282 fi
20283
20284   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20285   then
20286     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20287 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20288   fi
20289   if test "$ac_cv_func_mmap_file" = "no"
20290   then
20291     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20292 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20293   fi
20294 fi
20295
20296 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20297 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20298 ac_ext=cpp
20299 ac_cpp='$CXXCPP $CPPFLAGS'
20300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20303
20304 cat >conftest.$ac_ext <<_ACEOF
20305 /* confdefs.h.  */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h.  */
20310 int main() {
20311         volatile unsigned long val = 1;
20312         __sync_synchronize();
20313         __sync_val_compare_and_swap(&val, 1, 0);
20314         __sync_add_and_fetch(&val, 1);
20315         __sync_sub_and_fetch(&val, 1);
20316         return 0;
20317       }
20318
20319 _ACEOF
20320 rm -f conftest.$ac_objext conftest$ac_exeext
20321 if { (ac_try="$ac_link"
20322 case "(($ac_try" in
20323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324   *) ac_try_echo=$ac_try;;
20325 esac
20326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20327   (eval "$ac_link") 2>conftest.er1
20328   ac_status=$?
20329   grep -v '^ *+' conftest.er1 >conftest.err
20330   rm -f conftest.er1
20331   cat conftest.err >&5
20332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333   (exit $ac_status); } &&
20334          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20335   { (case "(($ac_try" in
20336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337   *) ac_try_echo=$ac_try;;
20338 esac
20339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340   (eval "$ac_try") 2>&5
20341   ac_status=$?
20342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); }; } &&
20344          { ac_try='test -s conftest$ac_exeext'
20345   { (case "(($ac_try" in
20346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347   *) ac_try_echo=$ac_try;;
20348 esac
20349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350   (eval "$ac_try") 2>&5
20351   ac_status=$?
20352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353   (exit $ac_status); }; }; then
20354   ac_ext=c
20355 ac_cpp='$CPP $CPPFLAGS'
20356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20359
20360   { echo "$as_me:$LINENO: result: yes" >&5
20361 echo "${ECHO_T}yes" >&6; }
20362
20363 cat >>confdefs.h <<\_ACEOF
20364 #define LLVM_MULTITHREADED 1
20365 _ACEOF
20366
20367 else
20368   echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20370
20371         { echo "$as_me:$LINENO: result: no" >&5
20372 echo "${ECHO_T}no" >&6; }
20373
20374 cat >>confdefs.h <<\_ACEOF
20375 #define LLVM_MULTITHREADED 0
20376 _ACEOF
20377
20378   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20379 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20380 fi
20381
20382 rm -f core conftest.err conftest.$ac_objext \
20383       conftest$ac_exeext conftest.$ac_ext
20384
20385
20386 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20387   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20388 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20389 if test "${llvm_cv_linux_mixed+set}" = set; then
20390   echo $ECHO_N "(cached) $ECHO_C" >&6
20391 else
20392    ac_ext=c
20393 ac_cpp='$CPP $CPPFLAGS'
20394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20397
20398   cat >conftest.$ac_ext <<_ACEOF
20399 /* confdefs.h.  */
20400 _ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h.  */
20404 #ifndef __x86_64__
20405        error: Not x86-64 even if uname says so!
20406       #endif
20407
20408 int
20409 main ()
20410 {
20411
20412   ;
20413   return 0;
20414 }
20415 _ACEOF
20416 rm -f conftest.$ac_objext
20417 if { (ac_try="$ac_compile"
20418 case "(($ac_try" in
20419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420   *) ac_try_echo=$ac_try;;
20421 esac
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423   (eval "$ac_compile") 2>conftest.er1
20424   ac_status=$?
20425   grep -v '^ *+' conftest.er1 >conftest.err
20426   rm -f conftest.er1
20427   cat conftest.err >&5
20428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429   (exit $ac_status); } &&
20430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20431   { (case "(($ac_try" in
20432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433   *) ac_try_echo=$ac_try;;
20434 esac
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436   (eval "$ac_try") 2>&5
20437   ac_status=$?
20438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439   (exit $ac_status); }; } &&
20440          { ac_try='test -s conftest.$ac_objext'
20441   { (case "(($ac_try" in
20442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443   *) ac_try_echo=$ac_try;;
20444 esac
20445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446   (eval "$ac_try") 2>&5
20447   ac_status=$?
20448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449   (exit $ac_status); }; }; then
20450   llvm_cv_linux_mixed=no
20451 else
20452   echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20454
20455         llvm_cv_linux_mixed=yes
20456 fi
20457
20458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20459   ac_ext=c
20460 ac_cpp='$CPP $CPPFLAGS'
20461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20464
20465
20466 fi
20467 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20468 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20469
20470   if test "$llvm_cv_linux_mixed" = "yes"; then
20471     llvm_cv_target_arch="x86"
20472     ARCH="x86"
20473   fi
20474 fi
20475
20476
20477 for ac_func in __dso_handle
20478 do
20479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20480 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20482 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20483   echo $ECHO_N "(cached) $ECHO_C" >&6
20484 else
20485   cat >conftest.$ac_ext <<_ACEOF
20486 /* confdefs.h.  */
20487 _ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h.  */
20491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20493 #define $ac_func innocuous_$ac_func
20494
20495 /* System header to define __stub macros and hopefully few prototypes,
20496     which can conflict with char $ac_func (); below.
20497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20498     <limits.h> exists even on freestanding compilers.  */
20499
20500 #ifdef __STDC__
20501 # include <limits.h>
20502 #else
20503 # include <assert.h>
20504 #endif
20505
20506 #undef $ac_func
20507
20508 /* Override any GCC internal prototype to avoid an error.
20509    Use char because int might match the return type of a GCC
20510    builtin and then its argument prototype would still apply.  */
20511 #ifdef __cplusplus
20512 extern "C"
20513 #endif
20514 char $ac_func ();
20515 /* The GNU C library defines this for functions which it implements
20516     to always fail with ENOSYS.  Some functions are actually named
20517     something starting with __ and the normal name is an alias.  */
20518 #if defined __stub_$ac_func || defined __stub___$ac_func
20519 choke me
20520 #endif
20521
20522 int
20523 main ()
20524 {
20525 return $ac_func ();
20526   ;
20527   return 0;
20528 }
20529 _ACEOF
20530 rm -f conftest.$ac_objext conftest$ac_exeext
20531 if { (ac_try="$ac_link"
20532 case "(($ac_try" in
20533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534   *) ac_try_echo=$ac_try;;
20535 esac
20536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537   (eval "$ac_link") 2>conftest.er1
20538   ac_status=$?
20539   grep -v '^ *+' conftest.er1 >conftest.err
20540   rm -f conftest.er1
20541   cat conftest.err >&5
20542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543   (exit $ac_status); } &&
20544          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20545   { (case "(($ac_try" in
20546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547   *) ac_try_echo=$ac_try;;
20548 esac
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550   (eval "$ac_try") 2>&5
20551   ac_status=$?
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); }; } &&
20554          { ac_try='test -s conftest$ac_exeext'
20555   { (case "(($ac_try" in
20556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20557   *) ac_try_echo=$ac_try;;
20558 esac
20559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20560   (eval "$ac_try") 2>&5
20561   ac_status=$?
20562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563   (exit $ac_status); }; }; then
20564   eval "$as_ac_var=yes"
20565 else
20566   echo "$as_me: failed program was:" >&5
20567 sed 's/^/| /' conftest.$ac_ext >&5
20568
20569         eval "$as_ac_var=no"
20570 fi
20571
20572 rm -f core conftest.err conftest.$ac_objext \
20573       conftest$ac_exeext conftest.$ac_ext
20574 fi
20575 ac_res=`eval echo '${'$as_ac_var'}'`
20576                { echo "$as_me:$LINENO: result: $ac_res" >&5
20577 echo "${ECHO_T}$ac_res" >&6; }
20578 if test `eval echo '${'$as_ac_var'}'` = yes; then
20579   cat >>confdefs.h <<_ACEOF
20580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20581 _ACEOF
20582
20583 fi
20584 done
20585
20586
20587 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
20588 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
20589 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
20590   echo $ECHO_N "(cached) $ECHO_C" >&6
20591 else
20592   llvm_cv_llvmgcc_dragonegg="no"
20593 if test -x "$LLVMGCC" ; then
20594   cp /dev/null conftest.c
20595   "$LLVMGCC" -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c | \
20596   grep 'target datalayout =' > /dev/null 2>&1
20597   if test $? -eq 0 ; then
20598     llvm_cv_llvmgcc_dragonegg="yes"
20599   fi
20600   rm conftest.c
20601 fi
20602 fi
20603 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
20604 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
20605
20606 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
20607   LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
20608   LLVMGCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
20609 else
20610   LLVMCC_EMITIR_FLAG="-emit-llvm"
20611   LLVMGCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
20612 fi
20613
20614
20615
20616 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20617 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20618 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20619   echo $ECHO_N "(cached) $ECHO_C" >&6
20620 else
20621   llvm_cv_llvmgcc_sanity="no"
20622 if test -x "$LLVMGCC" ; then
20623   cp /dev/null conftest.c
20624   "$LLVMGCC" "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
20625       grep 'target datalayout =' > /dev/null 2>&1
20626   if test $? -eq 0 ; then
20627     llvm_cv_llvmgcc_sanity="yes"
20628   fi
20629   rm conftest.c
20630 fi
20631 fi
20632 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20633 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20634
20635 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20636   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20637 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20638   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20639   LLVMCC1=$llvmcc1path
20640
20641   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20642   LLVMCC1PLUS=$llvmcc1pluspath
20643
20644   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20645   LLVMGCCDIR=$llvmgccdir
20646
20647   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20648   LLVMGCC_LANGS=$llvmgcclangs
20649
20650   LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
20651
20652
20653   { echo "$as_me:$LINENO: result: ok" >&5
20654 echo "${ECHO_T}ok" >&6; }
20655 fi
20656
20657 SHLIBEXT=$libltdl_cv_shlibext
20658
20659
20660 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20661
20662
20663 # Translate the various configuration directories and other basic
20664 # information into substitutions that will end up in Makefile.config.in
20665 # that these configured values can be used by the makefiles
20666 if test "${prefix}" = "NONE" ; then
20667   prefix="/usr/local"
20668 fi
20669 eval LLVM_PREFIX="${prefix}";
20670 eval LLVM_BINDIR="${prefix}/bin";
20671 eval LLVM_LIBDIR="${prefix}/lib";
20672 eval LLVM_DATADIR="${prefix}/share/llvm";
20673 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20674 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20675 eval LLVM_INCLUDEDIR="${prefix}/include";
20676 eval LLVM_INFODIR="${prefix}/info";
20677 eval LLVM_MANDIR="${prefix}/man";
20678 LLVM_CONFIGTIME=`date`
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690 # Place the various directores into the config.h file as #defines so that we
20691 # can know about the installation paths within LLVM.
20692
20693 cat >>confdefs.h <<_ACEOF
20694 #define LLVM_PREFIX "$LLVM_PREFIX"
20695 _ACEOF
20696
20697
20698 cat >>confdefs.h <<_ACEOF
20699 #define LLVM_BINDIR "$LLVM_BINDIR"
20700 _ACEOF
20701
20702
20703 cat >>confdefs.h <<_ACEOF
20704 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20705 _ACEOF
20706
20707
20708 cat >>confdefs.h <<_ACEOF
20709 #define LLVM_DATADIR "$LLVM_DATADIR"
20710 _ACEOF
20711
20712
20713 cat >>confdefs.h <<_ACEOF
20714 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20715 _ACEOF
20716
20717
20718 cat >>confdefs.h <<_ACEOF
20719 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20720 _ACEOF
20721
20722
20723 cat >>confdefs.h <<_ACEOF
20724 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20725 _ACEOF
20726
20727
20728 cat >>confdefs.h <<_ACEOF
20729 #define LLVM_INFODIR "$LLVM_INFODIR"
20730 _ACEOF
20731
20732
20733 cat >>confdefs.h <<_ACEOF
20734 #define LLVM_MANDIR "$LLVM_MANDIR"
20735 _ACEOF
20736
20737
20738 cat >>confdefs.h <<_ACEOF
20739 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20740 _ACEOF
20741
20742
20743 cat >>confdefs.h <<_ACEOF
20744 #define LLVM_HOSTTRIPLE "$host"
20745 _ACEOF
20746
20747
20748 # Determine which bindings to build.
20749 if test "$BINDINGS_TO_BUILD" = auto ; then
20750   BINDINGS_TO_BUILD=""
20751   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20752     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20753   fi
20754 fi
20755 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20756
20757
20758 # This isn't really configurey, but it avoids having to repeat the list in
20759 # other files.
20760 ALL_BINDINGS=ocaml
20761
20762
20763 # Do any work necessary to ensure that bindings have what they need.
20764 binding_prereqs_failed=0
20765 for a_binding in $BINDINGS_TO_BUILD ; do
20766   case "$a_binding" in
20767   ocaml)
20768     if test "x$OCAMLC" = x ; then
20769       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20770 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20771       binding_prereqs_failed=1
20772     fi
20773     if test "x$OCAMLDEP" = x ; then
20774       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20775 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20776       binding_prereqs_failed=1
20777     fi
20778     if test "x$OCAMLOPT" = x ; then
20779       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20780 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20781           fi
20782     if test "x$with_ocaml_libdir" != xauto ; then
20783       OCAML_LIBDIR=$with_ocaml_libdir
20784
20785     else
20786       ocaml_stdlib="`"$OCAMLC" -where`"
20787       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20788       then
20789         # ocaml stdlib is beneath our prefix; use stdlib
20790         OCAML_LIBDIR=$ocaml_stdlib
20791
20792       else
20793         # ocaml stdlib is outside our prefix; use libdir/ocaml
20794         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20795
20796       fi
20797     fi
20798     ;;
20799   esac
20800 done
20801 if test "$binding_prereqs_failed" = 1 ; then
20802   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20803 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20804    { (exit 1); exit 1; }; }
20805 fi
20806
20807 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20808 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20809 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20810   echo $ECHO_N "(cached) $ECHO_C" >&6
20811 else
20812    ac_ext=cpp
20813 ac_cpp='$CXXCPP $CPPFLAGS'
20814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20817
20818   oldcxxflags="$CXXFLAGS"
20819   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20820   cat >conftest.$ac_ext <<_ACEOF
20821 /* confdefs.h.  */
20822 _ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h.  */
20826
20827 int
20828 main ()
20829 {
20830
20831   ;
20832   return 0;
20833 }
20834 _ACEOF
20835 rm -f conftest.$ac_objext
20836 if { (ac_try="$ac_compile"
20837 case "(($ac_try" in
20838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839   *) ac_try_echo=$ac_try;;
20840 esac
20841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20842   (eval "$ac_compile") 2>conftest.er1
20843   ac_status=$?
20844   grep -v '^ *+' conftest.er1 >conftest.err
20845   rm -f conftest.er1
20846   cat conftest.err >&5
20847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848   (exit $ac_status); } &&
20849          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20850   { (case "(($ac_try" in
20851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852   *) ac_try_echo=$ac_try;;
20853 esac
20854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855   (eval "$ac_try") 2>&5
20856   ac_status=$?
20857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858   (exit $ac_status); }; } &&
20859          { ac_try='test -s conftest.$ac_objext'
20860   { (case "(($ac_try" in
20861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862   *) ac_try_echo=$ac_try;;
20863 esac
20864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20865   (eval "$ac_try") 2>&5
20866   ac_status=$?
20867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868   (exit $ac_status); }; }; then
20869   llvm_cv_cxx_visibility_inlines_hidden=yes
20870 else
20871   echo "$as_me: failed program was:" >&5
20872 sed 's/^/| /' conftest.$ac_ext >&5
20873
20874         llvm_cv_cxx_visibility_inlines_hidden=no
20875 fi
20876
20877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20878   CXXFLAGS="$oldcxxflags"
20879   ac_ext=c
20880 ac_cpp='$CPP $CPPFLAGS'
20881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20884
20885
20886 fi
20887 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20888 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20889 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20890   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20891
20892 else
20893   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20894
20895 fi
20896
20897
20898 if test "$llvm_cv_link_use_r" = "yes" ; then
20899   RPATH="-Wl,-R"
20900 else
20901   RPATH="-Wl,-rpath"
20902 fi
20903
20904
20905 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20906   RDYNAMIC="-Wl,-export-dynamic"
20907 else
20908   RDYNAMIC=""
20909 fi
20910
20911
20912
20913 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20914
20915
20916
20917
20918
20919
20920 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20921
20922 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20923
20924 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20925
20926 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20927
20928 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20929
20930
20931 ac_config_files="$ac_config_files Makefile.config"
20932
20933
20934 ac_config_files="$ac_config_files llvm.spec"
20935
20936
20937 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20938
20939
20940 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20941
20942
20943 ac_config_commands="$ac_config_commands setup"
20944
20945 ac_config_commands="$ac_config_commands Makefile"
20946
20947
20948 ac_config_commands="$ac_config_commands Makefile.common"
20949
20950
20951 ac_config_commands="$ac_config_commands examples/Makefile"
20952
20953
20954 ac_config_commands="$ac_config_commands lib/Makefile"
20955
20956
20957 ac_config_commands="$ac_config_commands runtime/Makefile"
20958
20959
20960 ac_config_commands="$ac_config_commands test/Makefile"
20961
20962
20963 ac_config_commands="$ac_config_commands test/Makefile.tests"
20964
20965
20966 ac_config_commands="$ac_config_commands unittests/Makefile"
20967
20968
20969 ac_config_commands="$ac_config_commands tools/Makefile"
20970
20971
20972 ac_config_commands="$ac_config_commands utils/Makefile"
20973
20974
20975 ac_config_commands="$ac_config_commands projects/Makefile"
20976
20977
20978 ac_config_commands="$ac_config_commands bindings/Makefile"
20979
20980
20981 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20982
20983
20984
20985 cat >confcache <<\_ACEOF
20986 # This file is a shell script that caches the results of configure
20987 # tests run on this system so they can be shared between configure
20988 # scripts and configure runs, see configure's option --config-cache.
20989 # It is not useful on other systems.  If it contains results you don't
20990 # want to keep, you may remove or edit it.
20991 #
20992 # config.status only pays attention to the cache file if you give it
20993 # the --recheck option to rerun configure.
20994 #
20995 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20996 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20997 # following values.
20998
20999 _ACEOF
21000
21001 # The following way of writing the cache mishandles newlines in values,
21002 # but we know of no workaround that is simple, portable, and efficient.
21003 # So, we kill variables containing newlines.
21004 # Ultrix sh set writes to stderr and can't be redirected directly,
21005 # and sets the high bit in the cache file unless we assign to the vars.
21006 (
21007   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21008     eval ac_val=\$$ac_var
21009     case $ac_val in #(
21010     *${as_nl}*)
21011       case $ac_var in #(
21012       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21013 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21014       esac
21015       case $ac_var in #(
21016       _ | IFS | as_nl) ;; #(
21017       *) $as_unset $ac_var ;;
21018       esac ;;
21019     esac
21020   done
21021
21022   (set) 2>&1 |
21023     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21024     *${as_nl}ac_space=\ *)
21025       # `set' does not quote correctly, so add quotes (double-quote
21026       # substitution turns \\\\ into \\, and sed turns \\ into \).
21027       sed -n \
21028         "s/'/'\\\\''/g;
21029           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21030       ;; #(
21031     *)
21032       # `set' quotes correctly as required by POSIX, so do not add quotes.
21033       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21034       ;;
21035     esac |
21036     sort
21037 ) |
21038   sed '
21039      /^ac_cv_env_/b end
21040      t clear
21041      :clear
21042      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21043      t end
21044      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21045      :end' >>confcache
21046 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21047   if test -w "$cache_file"; then
21048     test "x$cache_file" != "x/dev/null" &&
21049       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21050 echo "$as_me: updating cache $cache_file" >&6;}
21051     cat confcache >$cache_file
21052   else
21053     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21054 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21055   fi
21056 fi
21057 rm -f confcache
21058
21059 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21060 # Let make expand exec_prefix.
21061 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21062
21063 DEFS=-DHAVE_CONFIG_H
21064
21065 ac_libobjs=
21066 ac_ltlibobjs=
21067 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21068   # 1. Remove the extension, and $U if already installed.
21069   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21070   ac_i=`echo "$ac_i" | sed "$ac_script"`
21071   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21072   #    will be set to the directory where LIBOBJS objects are built.
21073   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21074   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21075 done
21076 LIBOBJS=$ac_libobjs
21077
21078 LTLIBOBJS=$ac_ltlibobjs
21079
21080
21081 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21082   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21083 Usually this means the macro was only invoked conditionally." >&5
21084 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21085 Usually this means the macro was only invoked conditionally." >&2;}
21086    { (exit 1); exit 1; }; }
21087 fi
21088 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21089   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21090 Usually this means the macro was only invoked conditionally." >&5
21091 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21092 Usually this means the macro was only invoked conditionally." >&2;}
21093    { (exit 1); exit 1; }; }
21094 fi
21095
21096 : ${CONFIG_STATUS=./config.status}
21097 ac_clean_files_save=$ac_clean_files
21098 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21099 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21100 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21101 cat >$CONFIG_STATUS <<_ACEOF
21102 #! $SHELL
21103 # Generated by $as_me.
21104 # Run this file to recreate the current configuration.
21105 # Compiler output produced by configure, useful for debugging
21106 # configure, is in config.log if it exists.
21107
21108 debug=false
21109 ac_cs_recheck=false
21110 ac_cs_silent=false
21111 SHELL=\${CONFIG_SHELL-$SHELL}
21112 _ACEOF
21113
21114 cat >>$CONFIG_STATUS <<\_ACEOF
21115 ## --------------------- ##
21116 ## M4sh Initialization.  ##
21117 ## --------------------- ##
21118
21119 # Be Bourne compatible
21120 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21121   emulate sh
21122   NULLCMD=:
21123   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21124   # is contrary to our usage.  Disable this feature.
21125   alias -g '${1+"$@"}'='"$@"'
21126   setopt NO_GLOB_SUBST
21127 else
21128   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21129 fi
21130 BIN_SH=xpg4; export BIN_SH # for Tru64
21131 DUALCASE=1; export DUALCASE # for MKS sh
21132
21133
21134 # PATH needs CR
21135 # Avoid depending upon Character Ranges.
21136 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21137 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21138 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21139 as_cr_digits='0123456789'
21140 as_cr_alnum=$as_cr_Letters$as_cr_digits
21141
21142 # The user is always right.
21143 if test "${PATH_SEPARATOR+set}" != set; then
21144   echo "#! /bin/sh" >conf$$.sh
21145   echo  "exit 0"   >>conf$$.sh
21146   chmod +x conf$$.sh
21147   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21148     PATH_SEPARATOR=';'
21149   else
21150     PATH_SEPARATOR=:
21151   fi
21152   rm -f conf$$.sh
21153 fi
21154
21155 # Support unset when possible.
21156 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21157   as_unset=unset
21158 else
21159   as_unset=false
21160 fi
21161
21162
21163 # IFS
21164 # We need space, tab and new line, in precisely that order.  Quoting is
21165 # there to prevent editors from complaining about space-tab.
21166 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21167 # splitting by setting IFS to empty value.)
21168 as_nl='
21169 '
21170 IFS=" ""        $as_nl"
21171
21172 # Find who we are.  Look in the path if we contain no directory separator.
21173 case $0 in
21174   *[\\/]* ) as_myself=$0 ;;
21175   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21176 for as_dir in $PATH
21177 do
21178   IFS=$as_save_IFS
21179   test -z "$as_dir" && as_dir=.
21180   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21181 done
21182 IFS=$as_save_IFS
21183
21184      ;;
21185 esac
21186 # We did not find ourselves, most probably we were run as `sh COMMAND'
21187 # in which case we are not to be found in the path.
21188 if test "x$as_myself" = x; then
21189   as_myself=$0
21190 fi
21191 if test ! -f "$as_myself"; then
21192   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21193   { (exit 1); exit 1; }
21194 fi
21195
21196 # Work around bugs in pre-3.0 UWIN ksh.
21197 for as_var in ENV MAIL MAILPATH
21198 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21199 done
21200 PS1='$ '
21201 PS2='> '
21202 PS4='+ '
21203
21204 # NLS nuisances.
21205 for as_var in \
21206   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21207   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21208   LC_TELEPHONE LC_TIME
21209 do
21210   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21211     eval $as_var=C; export $as_var
21212   else
21213     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21214   fi
21215 done
21216
21217 # Required to use basename.
21218 if expr a : '\(a\)' >/dev/null 2>&1 &&
21219    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21220   as_expr=expr
21221 else
21222   as_expr=false
21223 fi
21224
21225 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21226   as_basename=basename
21227 else
21228   as_basename=false
21229 fi
21230
21231
21232 # Name of the executable.
21233 as_me=`$as_basename -- "$0" ||
21234 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21235          X"$0" : 'X\(//\)$' \| \
21236          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21237 echo X/"$0" |
21238     sed '/^.*\/\([^/][^/]*\)\/*$/{
21239             s//\1/
21240             q
21241           }
21242           /^X\/\(\/\/\)$/{
21243             s//\1/
21244             q
21245           }
21246           /^X\/\(\/\).*/{
21247             s//\1/
21248             q
21249           }
21250           s/.*/./; q'`
21251
21252 # CDPATH.
21253 $as_unset CDPATH
21254
21255
21256
21257   as_lineno_1=$LINENO
21258   as_lineno_2=$LINENO
21259   test "x$as_lineno_1" != "x$as_lineno_2" &&
21260   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21261
21262   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21263   # uniformly replaced by the line number.  The first 'sed' inserts a
21264   # line-number line after each line using $LINENO; the second 'sed'
21265   # does the real work.  The second script uses 'N' to pair each
21266   # line-number line with the line containing $LINENO, and appends
21267   # trailing '-' during substitution so that $LINENO is not a special
21268   # case at line end.
21269   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21270   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21271   # E. McMahon (1931-1989) for sed's syntax.  :-)
21272   sed -n '
21273     p
21274     /[$]LINENO/=
21275   ' <$as_myself |
21276     sed '
21277       s/[$]LINENO.*/&-/
21278       t lineno
21279       b
21280       :lineno
21281       N
21282       :loop
21283       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21284       t loop
21285       s/-\n.*//
21286     ' >$as_me.lineno &&
21287   chmod +x "$as_me.lineno" ||
21288     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21289    { (exit 1); exit 1; }; }
21290
21291   # Don't try to exec as it changes $[0], causing all sort of problems
21292   # (the dirname of $[0] is not the place where we might find the
21293   # original and so on.  Autoconf is especially sensitive to this).
21294   . "./$as_me.lineno"
21295   # Exit status is that of the last command.
21296   exit
21297 }
21298
21299
21300 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21301   as_dirname=dirname
21302 else
21303   as_dirname=false
21304 fi
21305
21306 ECHO_C= ECHO_N= ECHO_T=
21307 case `echo -n x` in
21308 -n*)
21309   case `echo 'x\c'` in
21310   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21311   *)   ECHO_C='\c';;
21312   esac;;
21313 *)
21314   ECHO_N='-n';;
21315 esac
21316
21317 if expr a : '\(a\)' >/dev/null 2>&1 &&
21318    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21319   as_expr=expr
21320 else
21321   as_expr=false
21322 fi
21323
21324 rm -f conf$$ conf$$.exe conf$$.file
21325 if test -d conf$$.dir; then
21326   rm -f conf$$.dir/conf$$.file
21327 else
21328   rm -f conf$$.dir
21329   mkdir conf$$.dir
21330 fi
21331 echo >conf$$.file
21332 if ln -s conf$$.file conf$$ 2>/dev/null; then
21333   as_ln_s='ln -s'
21334   # ... but there are two gotchas:
21335   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21336   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21337   # In both cases, we have to default to `cp -p'.
21338   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21339     as_ln_s='cp -p'
21340 elif ln conf$$.file conf$$ 2>/dev/null; then
21341   as_ln_s=ln
21342 else
21343   as_ln_s='cp -p'
21344 fi
21345 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21346 rmdir conf$$.dir 2>/dev/null
21347
21348 if mkdir -p . 2>/dev/null; then
21349   as_mkdir_p=:
21350 else
21351   test -d ./-p && rmdir ./-p
21352   as_mkdir_p=false
21353 fi
21354
21355 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21356 # systems may use methods other than mode bits to determine executability.
21357 cat >conf$$.file <<_ASEOF
21358 #! /bin/sh
21359 exit 0
21360 _ASEOF
21361 chmod +x conf$$.file
21362 if test -x conf$$.file >/dev/null 2>&1; then
21363   as_executable_p="test -x"
21364 else
21365   as_executable_p=:
21366 fi
21367 rm -f conf$$.file
21368
21369 # Sed expression to map a string onto a valid CPP name.
21370 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21371
21372 # Sed expression to map a string onto a valid variable name.
21373 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21374
21375
21376 exec 6>&1
21377
21378 # Save the log message, to keep $[0] and so on meaningful, and to
21379 # report actual input values of CONFIG_FILES etc. instead of their
21380 # values after options handling.
21381 ac_log="
21382 This file was extended by llvm $as_me 2.9svn, which was
21383 generated by GNU Autoconf 2.60.  Invocation command line was
21384
21385   CONFIG_FILES    = $CONFIG_FILES
21386   CONFIG_HEADERS  = $CONFIG_HEADERS
21387   CONFIG_LINKS    = $CONFIG_LINKS
21388   CONFIG_COMMANDS = $CONFIG_COMMANDS
21389   $ $0 $@
21390
21391 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21392 "
21393
21394 _ACEOF
21395
21396 cat >>$CONFIG_STATUS <<_ACEOF
21397 # Files that config.status was made for.
21398 config_files="$ac_config_files"
21399 config_headers="$ac_config_headers"
21400 config_commands="$ac_config_commands"
21401
21402 _ACEOF
21403
21404 cat >>$CONFIG_STATUS <<\_ACEOF
21405 ac_cs_usage="\
21406 \`$as_me' instantiates files from templates according to the
21407 current configuration.
21408
21409 Usage: $0 [OPTIONS] [FILE]...
21410
21411   -h, --help       print this help, then exit
21412   -V, --version    print version number, then exit
21413   -q, --quiet      do not print progress messages
21414   -d, --debug      don't remove temporary files
21415       --recheck    update $as_me by reconfiguring in the same conditions
21416   --file=FILE[:TEMPLATE]
21417                    instantiate the configuration file FILE
21418   --header=FILE[:TEMPLATE]
21419                    instantiate the configuration header FILE
21420
21421 Configuration files:
21422 $config_files
21423
21424 Configuration headers:
21425 $config_headers
21426
21427 Configuration commands:
21428 $config_commands
21429
21430 Report bugs to <bug-autoconf@gnu.org>."
21431
21432 _ACEOF
21433 cat >>$CONFIG_STATUS <<_ACEOF
21434 ac_cs_version="\\
21435 llvm config.status 2.9svn
21436 configured by $0, generated by GNU Autoconf 2.60,
21437   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21438
21439 Copyright (C) 2006 Free Software Foundation, Inc.
21440 This config.status script is free software; the Free Software Foundation
21441 gives unlimited permission to copy, distribute and modify it."
21442
21443 ac_pwd='$ac_pwd'
21444 srcdir='$srcdir'
21445 INSTALL='$INSTALL'
21446 _ACEOF
21447
21448 cat >>$CONFIG_STATUS <<\_ACEOF
21449 # If no file are specified by the user, then we need to provide default
21450 # value.  By we need to know if files were specified by the user.
21451 ac_need_defaults=:
21452 while test $# != 0
21453 do
21454   case $1 in
21455   --*=*)
21456     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21457     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21458     ac_shift=:
21459     ;;
21460   *)
21461     ac_option=$1
21462     ac_optarg=$2
21463     ac_shift=shift
21464     ;;
21465   esac
21466
21467   case $ac_option in
21468   # Handling of the options.
21469   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21470     ac_cs_recheck=: ;;
21471   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21472     echo "$ac_cs_version"; exit ;;
21473   --debug | --debu | --deb | --de | --d | -d )
21474     debug=: ;;
21475   --file | --fil | --fi | --f )
21476     $ac_shift
21477     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21478     ac_need_defaults=false;;
21479   --header | --heade | --head | --hea )
21480     $ac_shift
21481     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21482     ac_need_defaults=false;;
21483   --he | --h)
21484     # Conflict between --help and --header
21485     { echo "$as_me: error: ambiguous option: $1
21486 Try \`$0 --help' for more information." >&2
21487    { (exit 1); exit 1; }; };;
21488   --help | --hel | -h )
21489     echo "$ac_cs_usage"; exit ;;
21490   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21491   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21492     ac_cs_silent=: ;;
21493
21494   # This is an error.
21495   -*) { echo "$as_me: error: unrecognized option: $1
21496 Try \`$0 --help' for more information." >&2
21497    { (exit 1); exit 1; }; } ;;
21498
21499   *) ac_config_targets="$ac_config_targets $1"
21500      ac_need_defaults=false ;;
21501
21502   esac
21503   shift
21504 done
21505
21506 ac_configure_extra_args=
21507
21508 if $ac_cs_silent; then
21509   exec 6>/dev/null
21510   ac_configure_extra_args="$ac_configure_extra_args --silent"
21511 fi
21512
21513 _ACEOF
21514 cat >>$CONFIG_STATUS <<_ACEOF
21515 if \$ac_cs_recheck; then
21516   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21517   CONFIG_SHELL=$SHELL
21518   export CONFIG_SHELL
21519   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21520 fi
21521
21522 _ACEOF
21523 cat >>$CONFIG_STATUS <<\_ACEOF
21524 exec 5>>config.log
21525 {
21526   echo
21527   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21528 ## Running $as_me. ##
21529 _ASBOX
21530   echo "$ac_log"
21531 } >&5
21532
21533 _ACEOF
21534 cat >>$CONFIG_STATUS <<_ACEOF
21535 #
21536 # INIT-COMMANDS
21537 #
21538 llvm_src="${srcdir}"
21539
21540 _ACEOF
21541
21542 cat >>$CONFIG_STATUS <<\_ACEOF
21543
21544 # Handling of arguments.
21545 for ac_config_target in $ac_config_targets
21546 do
21547   case $ac_config_target in
21548     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21549     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21550     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21551     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21552     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21553     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21554     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21555     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21556     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21557     "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21558     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21559     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21560     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21561     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21562     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21563     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21564     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21565     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21566     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21567     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21568     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21569     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21570     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21571     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21572     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21573
21574   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21575 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21576    { (exit 1); exit 1; }; };;
21577   esac
21578 done
21579
21580
21581 # If the user did not use the arguments to specify the items to instantiate,
21582 # then the envvar interface is used.  Set only those that are not.
21583 # We use the long form for the default assignment because of an extremely
21584 # bizarre bug on SunOS 4.1.3.
21585 if $ac_need_defaults; then
21586   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21587   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21588   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21589 fi
21590
21591 # Have a temporary directory for convenience.  Make it in the build tree
21592 # simply because there is no reason against having it here, and in addition,
21593 # creating and moving files from /tmp can sometimes cause problems.
21594 # Hook for its removal unless debugging.
21595 # Note that there is a small window in which the directory will not be cleaned:
21596 # after its creation but before its name has been assigned to `$tmp'.
21597 $debug ||
21598 {
21599   tmp=
21600   trap 'exit_status=$?
21601   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21602 ' 0
21603   trap '{ (exit 1); exit 1; }' 1 2 13 15
21604 }
21605 # Create a (secure) tmp directory for tmp files.
21606
21607 {
21608   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21609   test -n "$tmp" && test -d "$tmp"
21610 }  ||
21611 {
21612   tmp=./conf$$-$RANDOM
21613   (umask 077 && mkdir "$tmp")
21614 } ||
21615 {
21616    echo "$me: cannot create a temporary directory in ." >&2
21617    { (exit 1); exit 1; }
21618 }
21619
21620 #
21621 # Set up the sed scripts for CONFIG_FILES section.
21622 #
21623
21624 # No need to generate the scripts if there are no CONFIG_FILES.
21625 # This happens for instance when ./config.status config.h
21626 if test -n "$CONFIG_FILES"; then
21627
21628 _ACEOF
21629
21630
21631
21632 ac_delim='%!_!# '
21633 for ac_last_try in false false false false false :; do
21634   cat >conf$$subs.sed <<_ACEOF
21635 SHELL!$SHELL$ac_delim
21636 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21637 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21638 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21639 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21640 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21641 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21642 exec_prefix!$exec_prefix$ac_delim
21643 prefix!$prefix$ac_delim
21644 program_transform_name!$program_transform_name$ac_delim
21645 bindir!$bindir$ac_delim
21646 sbindir!$sbindir$ac_delim
21647 libexecdir!$libexecdir$ac_delim
21648 datarootdir!$datarootdir$ac_delim
21649 datadir!$datadir$ac_delim
21650 sysconfdir!$sysconfdir$ac_delim
21651 sharedstatedir!$sharedstatedir$ac_delim
21652 localstatedir!$localstatedir$ac_delim
21653 includedir!$includedir$ac_delim
21654 oldincludedir!$oldincludedir$ac_delim
21655 docdir!$docdir$ac_delim
21656 infodir!$infodir$ac_delim
21657 htmldir!$htmldir$ac_delim
21658 dvidir!$dvidir$ac_delim
21659 pdfdir!$pdfdir$ac_delim
21660 psdir!$psdir$ac_delim
21661 libdir!$libdir$ac_delim
21662 localedir!$localedir$ac_delim
21663 mandir!$mandir$ac_delim
21664 DEFS!$DEFS$ac_delim
21665 ECHO_C!$ECHO_C$ac_delim
21666 ECHO_N!$ECHO_N$ac_delim
21667 ECHO_T!$ECHO_T$ac_delim
21668 LIBS!$LIBS$ac_delim
21669 build_alias!$build_alias$ac_delim
21670 host_alias!$host_alias$ac_delim
21671 target_alias!$target_alias$ac_delim
21672 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21673 subdirs!$subdirs$ac_delim
21674 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21675 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21676 build!$build$ac_delim
21677 build_cpu!$build_cpu$ac_delim
21678 build_vendor!$build_vendor$ac_delim
21679 build_os!$build_os$ac_delim
21680 host!$host$ac_delim
21681 host_cpu!$host_cpu$ac_delim
21682 host_vendor!$host_vendor$ac_delim
21683 host_os!$host_os$ac_delim
21684 target!$target$ac_delim
21685 target_cpu!$target_cpu$ac_delim
21686 target_vendor!$target_vendor$ac_delim
21687 target_os!$target_os$ac_delim
21688 OS!$OS$ac_delim
21689 HOST_OS!$HOST_OS$ac_delim
21690 TARGET_OS!$TARGET_OS$ac_delim
21691 LINKALL!$LINKALL$ac_delim
21692 NOLINKALL!$NOLINKALL$ac_delim
21693 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21694 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21695 ARCH!$ARCH$ac_delim
21696 ENDIAN!$ENDIAN$ac_delim
21697 CC!$CC$ac_delim
21698 CFLAGS!$CFLAGS$ac_delim
21699 LDFLAGS!$LDFLAGS$ac_delim
21700 CPPFLAGS!$CPPFLAGS$ac_delim
21701 ac_ct_CC!$ac_ct_CC$ac_delim
21702 EXEEXT!$EXEEXT$ac_delim
21703 OBJEXT!$OBJEXT$ac_delim
21704 CPP!$CPP$ac_delim
21705 GREP!$GREP$ac_delim
21706 EGREP!$EGREP$ac_delim
21707 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21708 BUILD_CC!$BUILD_CC$ac_delim
21709 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21710 BUILD_CXX!$BUILD_CXX$ac_delim
21711 CVSBUILD!$CVSBUILD$ac_delim
21712 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21713 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21714 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21715 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21716 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21717 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21718 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21719 JIT!$JIT$ac_delim
21720 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21721 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21722 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21723 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21724 ENABLE_PIC!$ENABLE_PIC$ac_delim
21725 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21726 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21727 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21728 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21729 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21730 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21731 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21732 _ACEOF
21733
21734   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21735     break
21736   elif $ac_last_try; then
21737     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21738 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21739    { (exit 1); exit 1; }; }
21740   else
21741     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21742   fi
21743 done
21744
21745 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21746 if test -n "$ac_eof"; then
21747   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21748   ac_eof=`expr $ac_eof + 1`
21749 fi
21750
21751 cat >>$CONFIG_STATUS <<_ACEOF
21752 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21753 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21754 _ACEOF
21755 sed '
21756 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21757 s/^/s,@/; s/!/@,|#_!!_#|/
21758 :n
21759 t n
21760 s/'"$ac_delim"'$/,g/; t
21761 s/$/\\/; p
21762 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21763 ' >>$CONFIG_STATUS <conf$$subs.sed
21764 rm -f conf$$subs.sed
21765 cat >>$CONFIG_STATUS <<_ACEOF
21766 CEOF$ac_eof
21767 _ACEOF
21768
21769
21770 ac_delim='%!_!# '
21771 for ac_last_try in false false false false false :; do
21772   cat >conf$$subs.sed <<_ACEOF
21773 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21774 CLANGPATH!$CLANGPATH$ac_delim
21775 CLANGXXPATH!$CLANGXXPATH$ac_delim
21776 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21777 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21778 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21779 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21780 CXX!$CXX$ac_delim
21781 CXXFLAGS!$CXXFLAGS$ac_delim
21782 ac_ct_CXX!$ac_ct_CXX$ac_delim
21783 NM!$NM$ac_delim
21784 ifGNUmake!$ifGNUmake$ac_delim
21785 LN_S!$LN_S$ac_delim
21786 CMP!$CMP$ac_delim
21787 CP!$CP$ac_delim
21788 DATE!$DATE$ac_delim
21789 FIND!$FIND$ac_delim
21790 MKDIR!$MKDIR$ac_delim
21791 MV!$MV$ac_delim
21792 RANLIB!$RANLIB$ac_delim
21793 AR!$AR$ac_delim
21794 RM!$RM$ac_delim
21795 SED!$SED$ac_delim
21796 TAR!$TAR$ac_delim
21797 BINPWD!$BINPWD$ac_delim
21798 GRAPHVIZ!$GRAPHVIZ$ac_delim
21799 DOT!$DOT$ac_delim
21800 FDP!$FDP$ac_delim
21801 NEATO!$NEATO$ac_delim
21802 TWOPI!$TWOPI$ac_delim
21803 CIRCO!$CIRCO$ac_delim
21804 GV!$GV$ac_delim
21805 DOTTY!$DOTTY$ac_delim
21806 XDOT_PY!$XDOT_PY$ac_delim
21807 PERL!$PERL$ac_delim
21808 HAVE_PERL!$HAVE_PERL$ac_delim
21809 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21810 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21811 INSTALL_DATA!$INSTALL_DATA$ac_delim
21812 BZIP2!$BZIP2$ac_delim
21813 CAT!$CAT$ac_delim
21814 DOXYGEN!$DOXYGEN$ac_delim
21815 GROFF!$GROFF$ac_delim
21816 GZIP!$GZIP$ac_delim
21817 POD2HTML!$POD2HTML$ac_delim
21818 POD2MAN!$POD2MAN$ac_delim
21819 PDFROFF!$PDFROFF$ac_delim
21820 RUNTEST!$RUNTEST$ac_delim
21821 TCLSH!$TCLSH$ac_delim
21822 ZIP!$ZIP$ac_delim
21823 OCAMLC!$OCAMLC$ac_delim
21824 OCAMLOPT!$OCAMLOPT$ac_delim
21825 OCAMLDEP!$OCAMLDEP$ac_delim
21826 OCAMLDOC!$OCAMLDOC$ac_delim
21827 GAS!$GAS$ac_delim
21828 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21829 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21830 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21831 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21832 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21833 LIBADD_DL!$LIBADD_DL$ac_delim
21834 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21835 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21836 LLVMGCC!$LLVMGCC$ac_delim
21837 LLVMGXX!$LLVMGXX$ac_delim
21838 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21839 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21840 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21841 USE_UDIS86!$USE_UDIS86$ac_delim
21842 USE_OPROFILE!$USE_OPROFILE$ac_delim
21843 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21844 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21845 MMAP_FILE!$MMAP_FILE$ac_delim
21846 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
21847 LLVMCC1!$LLVMCC1$ac_delim
21848 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21849 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21850 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21851 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
21852 LLVMGCC_DISABLEOPT_FLAGS!$LLVMGCC_DISABLEOPT_FLAGS$ac_delim
21853 SHLIBEXT!$SHLIBEXT$ac_delim
21854 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21855 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21856 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21857 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21858 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21859 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21860 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21861 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21862 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21863 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21864 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21865 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21866 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21867 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21868 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21869 RPATH!$RPATH$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-2.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 RDYNAMIC!$RDYNAMIC$ac_delim
21912 LIBOBJS!$LIBOBJS$ac_delim
21913 LTLIBOBJS!$LTLIBOBJS$ac_delim
21914 _ACEOF
21915
21916   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
21917     break
21918   elif $ac_last_try; then
21919     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21920 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21921    { (exit 1); exit 1; }; }
21922   else
21923     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21924   fi
21925 done
21926
21927 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21928 if test -n "$ac_eof"; then
21929   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21930   ac_eof=`expr $ac_eof + 1`
21931 fi
21932
21933 cat >>$CONFIG_STATUS <<_ACEOF
21934 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
21935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21936 _ACEOF
21937 sed '
21938 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21939 s/^/s,@/; s/!/@,|#_!!_#|/
21940 :n
21941 t n
21942 s/'"$ac_delim"'$/,g/; t
21943 s/$/\\/; p
21944 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21945 ' >>$CONFIG_STATUS <conf$$subs.sed
21946 rm -f conf$$subs.sed
21947 cat >>$CONFIG_STATUS <<_ACEOF
21948 :end
21949 s/|#_!!_#|//g
21950 CEOF$ac_eof
21951 _ACEOF
21952
21953
21954 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21955 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21956 # trailing colons and then remove the whole line if VPATH becomes empty
21957 # (actually we leave an empty line to preserve line numbers).
21958 if test "x$srcdir" = x.; then
21959   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21960 s/:*\$(srcdir):*/:/
21961 s/:*\${srcdir}:*/:/
21962 s/:*@srcdir@:*/:/
21963 s/^\([^=]*=[     ]*\):*/\1/
21964 s/:*$//
21965 s/^[^=]*=[       ]*$//
21966 }'
21967 fi
21968
21969 cat >>$CONFIG_STATUS <<\_ACEOF
21970 fi # test -n "$CONFIG_FILES"
21971
21972
21973 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21974 do
21975   case $ac_tag in
21976   :[FHLC]) ac_mode=$ac_tag; continue;;
21977   esac
21978   case $ac_mode$ac_tag in
21979   :[FHL]*:*);;
21980   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21981 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21982    { (exit 1); exit 1; }; };;
21983   :[FH]-) ac_tag=-:-;;
21984   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21985   esac
21986   ac_save_IFS=$IFS
21987   IFS=:
21988   set x $ac_tag
21989   IFS=$ac_save_IFS
21990   shift
21991   ac_file=$1
21992   shift
21993
21994   case $ac_mode in
21995   :L) ac_source=$1;;
21996   :[FH])
21997     ac_file_inputs=
21998     for ac_f
21999     do
22000       case $ac_f in
22001       -) ac_f="$tmp/stdin";;
22002       *) # Look for the file first in the build tree, then in the source tree
22003          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22004          # because $ac_f cannot contain `:'.
22005          test -f "$ac_f" ||
22006            case $ac_f in
22007            [\\/$]*) false;;
22008            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22009            esac ||
22010            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22011 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22012    { (exit 1); exit 1; }; };;
22013       esac
22014       ac_file_inputs="$ac_file_inputs $ac_f"
22015     done
22016
22017     # Let's still pretend it is `configure' which instantiates (i.e., don't
22018     # use $as_me), people would be surprised to read:
22019     #    /* config.h.  Generated by config.status.  */
22020     configure_input="Generated from "`IFS=:
22021           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22022     if test x"$ac_file" != x-; then
22023       configure_input="$ac_file.  $configure_input"
22024       { echo "$as_me:$LINENO: creating $ac_file" >&5
22025 echo "$as_me: creating $ac_file" >&6;}
22026     fi
22027
22028     case $ac_tag in
22029     *:-:* | *:-) cat >"$tmp/stdin";;
22030     esac
22031     ;;
22032   esac
22033
22034   ac_dir=`$as_dirname -- "$ac_file" ||
22035 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22036          X"$ac_file" : 'X\(//\)[^/]' \| \
22037          X"$ac_file" : 'X\(//\)$' \| \
22038          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22039 echo X"$ac_file" |
22040     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22041             s//\1/
22042             q
22043           }
22044           /^X\(\/\/\)[^/].*/{
22045             s//\1/
22046             q
22047           }
22048           /^X\(\/\/\)$/{
22049             s//\1/
22050             q
22051           }
22052           /^X\(\/\).*/{
22053             s//\1/
22054             q
22055           }
22056           s/.*/./; q'`
22057   { as_dir="$ac_dir"
22058   case $as_dir in #(
22059   -*) as_dir=./$as_dir;;
22060   esac
22061   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22062     as_dirs=
22063     while :; do
22064       case $as_dir in #(
22065       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22066       *) as_qdir=$as_dir;;
22067       esac
22068       as_dirs="'$as_qdir' $as_dirs"
22069       as_dir=`$as_dirname -- "$as_dir" ||
22070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22071          X"$as_dir" : 'X\(//\)[^/]' \| \
22072          X"$as_dir" : 'X\(//\)$' \| \
22073          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22074 echo X"$as_dir" |
22075     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22076             s//\1/
22077             q
22078           }
22079           /^X\(\/\/\)[^/].*/{
22080             s//\1/
22081             q
22082           }
22083           /^X\(\/\/\)$/{
22084             s//\1/
22085             q
22086           }
22087           /^X\(\/\).*/{
22088             s//\1/
22089             q
22090           }
22091           s/.*/./; q'`
22092       test -d "$as_dir" && break
22093     done
22094     test -z "$as_dirs" || eval "mkdir $as_dirs"
22095   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22096 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22097    { (exit 1); exit 1; }; }; }
22098   ac_builddir=.
22099
22100 case "$ac_dir" in
22101 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22102 *)
22103   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22104   # A ".." for each directory in $ac_dir_suffix.
22105   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22106   case $ac_top_builddir_sub in
22107   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22108   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22109   esac ;;
22110 esac
22111 ac_abs_top_builddir=$ac_pwd
22112 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22113 # for backward compatibility:
22114 ac_top_builddir=$ac_top_build_prefix
22115
22116 case $srcdir in
22117   .)  # We are building in place.
22118     ac_srcdir=.
22119     ac_top_srcdir=$ac_top_builddir_sub
22120     ac_abs_top_srcdir=$ac_pwd ;;
22121   [\\/]* | ?:[\\/]* )  # Absolute name.
22122     ac_srcdir=$srcdir$ac_dir_suffix;
22123     ac_top_srcdir=$srcdir
22124     ac_abs_top_srcdir=$srcdir ;;
22125   *) # Relative name.
22126     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22127     ac_top_srcdir=$ac_top_build_prefix$srcdir
22128     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22129 esac
22130 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22131
22132
22133   case $ac_mode in
22134   :F)
22135   #
22136   # CONFIG_FILE
22137   #
22138
22139   case $INSTALL in
22140   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22141   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22142   esac
22143 _ACEOF
22144
22145 cat >>$CONFIG_STATUS <<\_ACEOF
22146 # If the template does not know about datarootdir, expand it.
22147 # FIXME: This hack should be removed a few years after 2.60.
22148 ac_datarootdir_hack=; ac_datarootdir_seen=
22149
22150 case `sed -n '/datarootdir/ {
22151   p
22152   q
22153 }
22154 /@datadir@/p
22155 /@docdir@/p
22156 /@infodir@/p
22157 /@localedir@/p
22158 /@mandir@/p
22159 ' $ac_file_inputs` in
22160 *datarootdir*) ac_datarootdir_seen=yes;;
22161 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22162   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22163 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22164 _ACEOF
22165 cat >>$CONFIG_STATUS <<_ACEOF
22166   ac_datarootdir_hack='
22167   s&@datadir@&$datadir&g
22168   s&@docdir@&$docdir&g
22169   s&@infodir@&$infodir&g
22170   s&@localedir@&$localedir&g
22171   s&@mandir@&$mandir&g
22172     s&\\\${datarootdir}&$datarootdir&g' ;;
22173 esac
22174 _ACEOF
22175
22176 # Neutralize VPATH when `$srcdir' = `.'.
22177 # Shell code in configure.ac might set extrasub.
22178 # FIXME: do we really want to maintain this feature?
22179 cat >>$CONFIG_STATUS <<_ACEOF
22180   sed "$ac_vpsub
22181 $extrasub
22182 _ACEOF
22183 cat >>$CONFIG_STATUS <<\_ACEOF
22184 :t
22185 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22186 s&@configure_input@&$configure_input&;t t
22187 s&@top_builddir@&$ac_top_builddir_sub&;t t
22188 s&@srcdir@&$ac_srcdir&;t t
22189 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22190 s&@top_srcdir@&$ac_top_srcdir&;t t
22191 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22192 s&@builddir@&$ac_builddir&;t t
22193 s&@abs_builddir@&$ac_abs_builddir&;t t
22194 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22195 s&@INSTALL@&$ac_INSTALL&;t t
22196 $ac_datarootdir_hack
22197 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22198
22199 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22200   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22201   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22202   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22203 which seems to be undefined.  Please make sure it is defined." >&5
22204 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22205 which seems to be undefined.  Please make sure it is defined." >&2;}
22206
22207   rm -f "$tmp/stdin"
22208   case $ac_file in
22209   -) cat "$tmp/out"; rm -f "$tmp/out";;
22210   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22211   esac
22212  ;;
22213   :H)
22214   #
22215   # CONFIG_HEADER
22216   #
22217 _ACEOF
22218
22219 # Transform confdefs.h into a sed script `conftest.defines', that
22220 # substitutes the proper values into config.h.in to produce config.h.
22221 rm -f conftest.defines conftest.tail
22222 # First, append a space to every undef/define line, to ease matching.
22223 echo 's/$/ /' >conftest.defines
22224 # Then, protect against being on the right side of a sed subst, or in
22225 # an unquoted here document, in config.status.  If some macros were
22226 # called several times there might be several #defines for the same
22227 # symbol, which is useless.  But do not sort them, since the last
22228 # AC_DEFINE must be honored.
22229 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22230 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22231 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22232 # PARAMS is the parameter list in the macro definition--in most cases, it's
22233 # just an empty string.
22234 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22235 ac_dB='\\)[      (].*,\\1define\\2'
22236 ac_dC=' '
22237 ac_dD=' ,'
22238
22239 uniq confdefs.h |
22240   sed -n '
22241         t rset
22242         :rset
22243         s/^[     ]*#[    ]*define[       ][      ]*//
22244         t ok
22245         d
22246         :ok
22247         s/[\\&,]/\\&/g
22248         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22249         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22250   ' >>conftest.defines
22251
22252 # Remove the space that was appended to ease matching.
22253 # Then replace #undef with comments.  This is necessary, for
22254 # example, in the case of _POSIX_SOURCE, which is predefined and required
22255 # on some systems where configure will not decide to define it.
22256 # (The regexp can be short, since the line contains either #define or #undef.)
22257 echo 's/ $//
22258 s,^[     #]*u.*,/* & */,' >>conftest.defines
22259
22260 # Break up conftest.defines:
22261 ac_max_sed_lines=50
22262
22263 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22264 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22265 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22266 # et cetera.
22267 ac_in='$ac_file_inputs'
22268 ac_out='"$tmp/out1"'
22269 ac_nxt='"$tmp/out2"'
22270
22271 while :
22272 do
22273   # Write a here document:
22274     cat >>$CONFIG_STATUS <<_ACEOF
22275     # First, check the format of the line:
22276     cat >"\$tmp/defines.sed" <<\\CEOF
22277 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22278 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22279 b
22280 :def
22281 _ACEOF
22282   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22283   echo 'CEOF
22284     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22285   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22286   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22287   grep . conftest.tail >/dev/null || break
22288   rm -f conftest.defines
22289   mv conftest.tail conftest.defines
22290 done
22291 rm -f conftest.defines conftest.tail
22292
22293 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22294 cat >>$CONFIG_STATUS <<\_ACEOF
22295   if test x"$ac_file" != x-; then
22296     echo "/* $configure_input  */" >"$tmp/config.h"
22297     cat "$ac_result" >>"$tmp/config.h"
22298     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22299       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22300 echo "$as_me: $ac_file is unchanged" >&6;}
22301     else
22302       rm -f $ac_file
22303       mv "$tmp/config.h" $ac_file
22304     fi
22305   else
22306     echo "/* $configure_input  */"
22307     cat "$ac_result"
22308   fi
22309   rm -f "$tmp/out12"
22310  ;;
22311
22312   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22313 echo "$as_me: executing $ac_file commands" >&6;}
22314  ;;
22315   esac
22316
22317
22318   case $ac_file$ac_mode in
22319     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22320    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22321     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22322    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22323     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22324    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22325     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22326    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22327     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22328    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22329     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22330    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22331     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22332    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22333     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22334    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22335     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22336    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22337     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22338    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22339     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22340    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22341     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22342    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22343     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22344    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22345
22346   esac
22347 done # for ac_tag
22348
22349
22350 { (exit 0); exit 0; }
22351 _ACEOF
22352 chmod +x $CONFIG_STATUS
22353 ac_clean_files=$ac_clean_files_save
22354
22355
22356 # configure is writing to config.log, and then calls config.status.
22357 # config.status does its own redirection, appending to config.log.
22358 # Unfortunately, on DOS this fails, as config.log is still kept open
22359 # by configure, so config.status won't be able to write to it; its
22360 # output is simply discarded.  So we exec the FD to /dev/null,
22361 # effectively closing config.log, so it can be properly (re)opened and
22362 # appended to by config.status.  When coming back to configure, we
22363 # need to make the FD available again.
22364 if test "$no_create" != yes; then
22365   ac_cs_success=:
22366   ac_config_status_args=
22367   test "$silent" = yes &&
22368     ac_config_status_args="$ac_config_status_args --quiet"
22369   exec 5>/dev/null
22370   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22371   exec 5>>config.log
22372   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22373   # would make configure fail if this is the last instruction.
22374   $ac_cs_success || { (exit 1); exit 1; }
22375 fi
22376
22377 #
22378 # CONFIG_SUBDIRS section.
22379 #
22380 if test "$no_recursion" != yes; then
22381
22382   # Remove --cache-file and --srcdir arguments so they do not pile up.
22383   ac_sub_configure_args=
22384   ac_prev=
22385   eval "set x $ac_configure_args"
22386   shift
22387   for ac_arg
22388   do
22389     if test -n "$ac_prev"; then
22390       ac_prev=
22391       continue
22392     fi
22393     case $ac_arg in
22394     -cache-file | --cache-file | --cache-fil | --cache-fi \
22395     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22396       ac_prev=cache_file ;;
22397     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22398     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22399     | --c=*)
22400       ;;
22401     --config-cache | -C)
22402       ;;
22403     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22404       ac_prev=srcdir ;;
22405     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22406       ;;
22407     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22408       ac_prev=prefix ;;
22409     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22410       ;;
22411     *)
22412       case $ac_arg in
22413       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22414       esac
22415       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22416     esac
22417   done
22418
22419   # Always prepend --prefix to ensure using the same prefix
22420   # in subdir configurations.
22421   ac_arg="--prefix=$prefix"
22422   case $ac_arg in
22423   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22424   esac
22425   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22426
22427   ac_popdir=`pwd`
22428   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22429
22430     # Do not complain, so a configure script can configure whichever
22431     # parts of a large source tree are present.
22432     test -d "$srcdir/$ac_dir" || continue
22433
22434     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22435     echo "$as_me:$LINENO: $ac_msg" >&5
22436     echo "$ac_msg" >&6
22437     { as_dir="$ac_dir"
22438   case $as_dir in #(
22439   -*) as_dir=./$as_dir;;
22440   esac
22441   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22442     as_dirs=
22443     while :; do
22444       case $as_dir in #(
22445       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22446       *) as_qdir=$as_dir;;
22447       esac
22448       as_dirs="'$as_qdir' $as_dirs"
22449       as_dir=`$as_dirname -- "$as_dir" ||
22450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22451          X"$as_dir" : 'X\(//\)[^/]' \| \
22452          X"$as_dir" : 'X\(//\)$' \| \
22453          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22454 echo X"$as_dir" |
22455     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22456             s//\1/
22457             q
22458           }
22459           /^X\(\/\/\)[^/].*/{
22460             s//\1/
22461             q
22462           }
22463           /^X\(\/\/\)$/{
22464             s//\1/
22465             q
22466           }
22467           /^X\(\/\).*/{
22468             s//\1/
22469             q
22470           }
22471           s/.*/./; q'`
22472       test -d "$as_dir" && break
22473     done
22474     test -z "$as_dirs" || eval "mkdir $as_dirs"
22475   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22476 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22477    { (exit 1); exit 1; }; }; }
22478     ac_builddir=.
22479
22480 case "$ac_dir" in
22481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22482 *)
22483   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22484   # A ".." for each directory in $ac_dir_suffix.
22485   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22486   case $ac_top_builddir_sub in
22487   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22488   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22489   esac ;;
22490 esac
22491 ac_abs_top_builddir=$ac_pwd
22492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22493 # for backward compatibility:
22494 ac_top_builddir=$ac_top_build_prefix
22495
22496 case $srcdir in
22497   .)  # We are building in place.
22498     ac_srcdir=.
22499     ac_top_srcdir=$ac_top_builddir_sub
22500     ac_abs_top_srcdir=$ac_pwd ;;
22501   [\\/]* | ?:[\\/]* )  # Absolute name.
22502     ac_srcdir=$srcdir$ac_dir_suffix;
22503     ac_top_srcdir=$srcdir
22504     ac_abs_top_srcdir=$srcdir ;;
22505   *) # Relative name.
22506     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22507     ac_top_srcdir=$ac_top_build_prefix$srcdir
22508     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22509 esac
22510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22511
22512
22513     cd "$ac_dir"
22514
22515     # Check for guested configure; otherwise get Cygnus style configure.
22516     if test -f "$ac_srcdir/configure.gnu"; then
22517       ac_sub_configure=$ac_srcdir/configure.gnu
22518     elif test -f "$ac_srcdir/configure"; then
22519       ac_sub_configure=$ac_srcdir/configure
22520     elif test -f "$ac_srcdir/configure.in"; then
22521       # This should be Cygnus configure.
22522       ac_sub_configure=$ac_aux_dir/configure
22523     else
22524       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22525 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22526       ac_sub_configure=
22527     fi
22528
22529     # The recursion is here.
22530     if test -n "$ac_sub_configure"; then
22531       # Make the cache file name correct relative to the subdirectory.
22532       case $cache_file in
22533       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22534       *) # Relative name.
22535         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22536       esac
22537
22538       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22539 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22540       # The eval makes quoting arguments work.
22541       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22542            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22543         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22544 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22545    { (exit 1); exit 1; }; }
22546     fi
22547
22548     cd "$ac_popdir"
22549   done
22550 fi
22551