Add a couple of random comments.
[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.8svn.
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.8svn'
565 PACKAGE_STRING='llvm 2.8svn'
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 build
645 build_cpu
646 build_vendor
647 build_os
648 host
649 host_cpu
650 host_vendor
651 host_os
652 target
653 target_cpu
654 target_vendor
655 target_os
656 OS
657 HOST_OS
658 TARGET_OS
659 LINKALL
660 NOLINKALL
661 LLVM_ON_UNIX
662 LLVM_ON_WIN32
663 ARCH
664 ENDIAN
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LLVM_CROSS_COMPILING
676 BUILD_CC
677 BUILD_EXEEXT
678 BUILD_CXX
679 CVSBUILD
680 ENABLE_OPTIMIZED
681 ENABLE_PROFILING
682 DISABLE_ASSERTIONS
683 ENABLE_EXPENSIVE_CHECKS
684 EXPENSIVE_CHECKS
685 DEBUG_RUNTIME
686 DEBUG_SYMBOLS
687 JIT
688 TARGET_HAS_JIT
689 ENABLE_DOXYGEN
690 ENABLE_THREADS
691 ENABLE_PIC
692 ENABLE_SHARED
693 ENABLE_TIMESTAMPS
694 TARGETS_TO_BUILD
695 LLVM_ENUM_TARGETS
696 LLVM_ENUM_ASM_PRINTERS
697 LLVM_ENUM_ASM_PARSERS
698 LLVM_ENUM_DISASSEMBLERS
699 ENABLE_CBE_PRINTF_A
700 CLANGPATH
701 CLANGXXPATH
702 ENABLE_BUILT_CLANG
703 OPTIMIZE_OPTION
704 EXTRA_OPTIONS
705 BINUTILS_INCDIR
706 CXX
707 CXXFLAGS
708 ac_ct_CXX
709 NM
710 ifGNUmake
711 LN_S
712 CMP
713 CP
714 DATE
715 FIND
716 MKDIR
717 MV
718 RANLIB
719 AR
720 RM
721 SED
722 TAR
723 BINPWD
724 GRAPHVIZ
725 DOT
726 FDP
727 NEATO
728 TWOPI
729 CIRCO
730 GV
731 DOTTY
732 PERL
733 HAVE_PERL
734 INSTALL_PROGRAM
735 INSTALL_SCRIPT
736 INSTALL_DATA
737 BZIP2
738 CAT
739 DOXYGEN
740 GROFF
741 GZIP
742 POD2HTML
743 POD2MAN
744 PDFROFF
745 RUNTEST
746 TCLSH
747 ZIP
748 OCAMLC
749 OCAMLOPT
750 OCAMLDEP
751 OCAMLDOC
752 GAS
753 HAVE_LINK_VERSION_SCRIPT
754 INSTALL_LTDL_TRUE
755 INSTALL_LTDL_FALSE
756 CONVENIENCE_LTDL_TRUE
757 CONVENIENCE_LTDL_FALSE
758 LIBADD_DL
759 LLVMGCCCOMMAND
760 LLVMGXXCOMMAND
761 LLVMGCC
762 LLVMGXX
763 LLVMCC_OPTION
764 NO_VARIADIC_MACROS
765 NO_MISSING_FIELD_INITIALIZERS
766 USE_UDIS86
767 USE_OPROFILE
768 HAVE_PTHREAD
769 HUGE_VAL_SANITY
770 MMAP_FILE
771 LLVMCC1
772 LLVMCC1PLUS
773 LLVMGCCDIR
774 LLVMGCC_LANGS
775 SHLIBEXT
776 SHLIBPATH_VAR
777 LLVM_PREFIX
778 LLVM_BINDIR
779 LLVM_LIBDIR
780 LLVM_DATADIR
781 LLVM_DOCSDIR
782 LLVM_ETCDIR
783 LLVM_INCLUDEDIR
784 LLVM_INFODIR
785 LLVM_MANDIR
786 LLVM_CONFIGTIME
787 BINDINGS_TO_BUILD
788 ALL_BINDINGS
789 OCAML_LIBDIR
790 ENABLE_VISIBILITY_INLINES_HIDDEN
791 RPATH
792 RDYNAMIC
793 LIBOBJS
794 LTLIBOBJS'
795 ac_subst_files=''
796       ac_precious_vars='build_alias
797 host_alias
798 target_alias
799 CC
800 CFLAGS
801 LDFLAGS
802 CPPFLAGS
803 CPP
804 CXX
805 CXXFLAGS
806 CCC'
807 ac_subdirs_all='projects/llvm-gcc
808 projects/test-suite
809 projects/llvm-test
810 projects/poolalloc
811 projects/llvm-poolalloc
812 projects/sample
813 projects/privbracket
814 projects/llvm-stacker
815 projects/llvm-reopt
816 projects/llvm-java
817 projects/llvm-tv
818 projects/safecode
819 projects/llvm-kernel'
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
840
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
866
867 ac_prev=
868 ac_dashdash=
869 for ac_option
870 do
871   # If the previous option needs an argument, assign it.
872   if test -n "$ac_prev"; then
873     eval $ac_prev=\$ac_option
874     ac_prev=
875     continue
876   fi
877
878   case $ac_option in
879   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880   *)    ac_optarg=yes ;;
881   esac
882
883   # Accept the important Cygnus configure options, so we can diagnose typos.
884
885   case $ac_dashdash$ac_option in
886   --)
887     ac_dashdash=yes ;;
888
889   -bindir | --bindir | --bindi | --bind | --bin | --bi)
890     ac_prev=bindir ;;
891   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892     bindir=$ac_optarg ;;
893
894   -build | --build | --buil | --bui | --bu)
895     ac_prev=build_alias ;;
896   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897     build_alias=$ac_optarg ;;
898
899   -cache-file | --cache-file | --cache-fil | --cache-fi \
900   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901     ac_prev=cache_file ;;
902   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904     cache_file=$ac_optarg ;;
905
906   --config-cache | -C)
907     cache_file=config.cache ;;
908
909   -datadir | --datadir | --datadi | --datad)
910     ac_prev=datadir ;;
911   -datadir=* | --datadir=* | --datadi=* | --datad=*)
912     datadir=$ac_optarg ;;
913
914   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915   | --dataroo | --dataro | --datar)
916     ac_prev=datarootdir ;;
917   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919     datarootdir=$ac_optarg ;;
920
921   -disable-* | --disable-*)
922     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923     # Reject names that are not valid shell variable names.
924     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926    { (exit 1); exit 1; }; }
927     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928     eval enable_$ac_feature=no ;;
929
930   -docdir | --docdir | --docdi | --doc | --do)
931     ac_prev=docdir ;;
932   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933     docdir=$ac_optarg ;;
934
935   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936     ac_prev=dvidir ;;
937   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938     dvidir=$ac_optarg ;;
939
940   -enable-* | --enable-*)
941     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942     # Reject names that are not valid shell variable names.
943     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945    { (exit 1); exit 1; }; }
946     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947     eval enable_$ac_feature=\$ac_optarg ;;
948
949   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951   | --exec | --exe | --ex)
952     ac_prev=exec_prefix ;;
953   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955   | --exec=* | --exe=* | --ex=*)
956     exec_prefix=$ac_optarg ;;
957
958   -gas | --gas | --ga | --g)
959     # Obsolete; use --with-gas.
960     with_gas=yes ;;
961
962   -help | --help | --hel | --he | -h)
963     ac_init_help=long ;;
964   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965     ac_init_help=recursive ;;
966   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967     ac_init_help=short ;;
968
969   -host | --host | --hos | --ho)
970     ac_prev=host_alias ;;
971   -host=* | --host=* | --hos=* | --ho=*)
972     host_alias=$ac_optarg ;;
973
974   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975     ac_prev=htmldir ;;
976   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977   | --ht=*)
978     htmldir=$ac_optarg ;;
979
980   -includedir | --includedir | --includedi | --included | --include \
981   | --includ | --inclu | --incl | --inc)
982     ac_prev=includedir ;;
983   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984   | --includ=* | --inclu=* | --incl=* | --inc=*)
985     includedir=$ac_optarg ;;
986
987   -infodir | --infodir | --infodi | --infod | --info | --inf)
988     ac_prev=infodir ;;
989   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990     infodir=$ac_optarg ;;
991
992   -libdir | --libdir | --libdi | --libd)
993     ac_prev=libdir ;;
994   -libdir=* | --libdir=* | --libdi=* | --libd=*)
995     libdir=$ac_optarg ;;
996
997   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998   | --libexe | --libex | --libe)
999     ac_prev=libexecdir ;;
1000   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001   | --libexe=* | --libex=* | --libe=*)
1002     libexecdir=$ac_optarg ;;
1003
1004   -localedir | --localedir | --localedi | --localed | --locale)
1005     ac_prev=localedir ;;
1006   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007     localedir=$ac_optarg ;;
1008
1009   -localstatedir | --localstatedir | --localstatedi | --localstated \
1010   | --localstate | --localstat | --localsta | --localst | --locals)
1011     ac_prev=localstatedir ;;
1012   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014     localstatedir=$ac_optarg ;;
1015
1016   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017     ac_prev=mandir ;;
1018   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019     mandir=$ac_optarg ;;
1020
1021   -nfp | --nfp | --nf)
1022     # Obsolete; use --without-fp.
1023     with_fp=no ;;
1024
1025   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026   | --no-cr | --no-c | -n)
1027     no_create=yes ;;
1028
1029   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031     no_recursion=yes ;;
1032
1033   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035   | --oldin | --oldi | --old | --ol | --o)
1036     ac_prev=oldincludedir ;;
1037   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040     oldincludedir=$ac_optarg ;;
1041
1042   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043     ac_prev=prefix ;;
1044   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045     prefix=$ac_optarg ;;
1046
1047   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048   | --program-pre | --program-pr | --program-p)
1049     ac_prev=program_prefix ;;
1050   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052     program_prefix=$ac_optarg ;;
1053
1054   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055   | --program-suf | --program-su | --program-s)
1056     ac_prev=program_suffix ;;
1057   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059     program_suffix=$ac_optarg ;;
1060
1061   -program-transform-name | --program-transform-name \
1062   | --program-transform-nam | --program-transform-na \
1063   | --program-transform-n | --program-transform- \
1064   | --program-transform | --program-transfor \
1065   | --program-transfo | --program-transf \
1066   | --program-trans | --program-tran \
1067   | --progr-tra | --program-tr | --program-t)
1068     ac_prev=program_transform_name ;;
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     program_transform_name=$ac_optarg ;;
1077
1078   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079     ac_prev=pdfdir ;;
1080   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081     pdfdir=$ac_optarg ;;
1082
1083   -psdir | --psdir | --psdi | --psd | --ps)
1084     ac_prev=psdir ;;
1085   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086     psdir=$ac_optarg ;;
1087
1088   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089   | -silent | --silent | --silen | --sile | --sil)
1090     silent=yes ;;
1091
1092   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093     ac_prev=sbindir ;;
1094   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095   | --sbi=* | --sb=*)
1096     sbindir=$ac_optarg ;;
1097
1098   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100   | --sharedst | --shareds | --shared | --share | --shar \
1101   | --sha | --sh)
1102     ac_prev=sharedstatedir ;;
1103   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106   | --sha=* | --sh=*)
1107     sharedstatedir=$ac_optarg ;;
1108
1109   -site | --site | --sit)
1110     ac_prev=site ;;
1111   -site=* | --site=* | --sit=*)
1112     site=$ac_optarg ;;
1113
1114   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115     ac_prev=srcdir ;;
1116   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117     srcdir=$ac_optarg ;;
1118
1119   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120   | --syscon | --sysco | --sysc | --sys | --sy)
1121     ac_prev=sysconfdir ;;
1122   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124     sysconfdir=$ac_optarg ;;
1125
1126   -target | --target | --targe | --targ | --tar | --ta | --t)
1127     ac_prev=target_alias ;;
1128   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129     target_alias=$ac_optarg ;;
1130
1131   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132     verbose=yes ;;
1133
1134   -version | --version | --versio | --versi | --vers | -V)
1135     ac_init_version=: ;;
1136
1137   -with-* | --with-*)
1138     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139     # Reject names that are not valid shell variable names.
1140     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141       { echo "$as_me: error: invalid package name: $ac_package" >&2
1142    { (exit 1); exit 1; }; }
1143     ac_package=`echo $ac_package| sed 's/-/_/g'`
1144     eval with_$ac_package=\$ac_optarg ;;
1145
1146   -without-* | --without-*)
1147     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148     # Reject names that are not valid shell variable names.
1149     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150       { echo "$as_me: error: invalid package name: $ac_package" >&2
1151    { (exit 1); exit 1; }; }
1152     ac_package=`echo $ac_package | sed 's/-/_/g'`
1153     eval with_$ac_package=no ;;
1154
1155   --x)
1156     # Obsolete; use --with-x.
1157     with_x=yes ;;
1158
1159   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160   | --x-incl | --x-inc | --x-in | --x-i)
1161     ac_prev=x_includes ;;
1162   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164     x_includes=$ac_optarg ;;
1165
1166   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168     ac_prev=x_libraries ;;
1169   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171     x_libraries=$ac_optarg ;;
1172
1173   -*) { echo "$as_me: error: unrecognized option: $ac_option
1174 Try \`$0 --help' for more information." >&2
1175    { (exit 1); exit 1; }; }
1176     ;;
1177
1178   *=*)
1179     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180     # Reject names that are not valid shell variable names.
1181     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183    { (exit 1); exit 1; }; }
1184     eval $ac_envvar=\$ac_optarg
1185     export $ac_envvar ;;
1186
1187   *)
1188     # FIXME: should be removed in autoconf 3.0.
1189     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193     ;;
1194
1195   esac
1196 done
1197
1198 if test -n "$ac_prev"; then
1199   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200   { echo "$as_me: error: missing argument to $ac_option" >&2
1201    { (exit 1); exit 1; }; }
1202 fi
1203
1204 # Be sure to have absolute directory names.
1205 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206                 datadir sysconfdir sharedstatedir localstatedir includedir \
1207                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208                 libdir localedir mandir
1209 do
1210   eval ac_val=\$$ac_var
1211   case $ac_val in
1212     [\\/$]* | ?:[\\/]* )  continue;;
1213     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214   esac
1215   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216    { (exit 1); exit 1; }; }
1217 done
1218
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1225
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228   if test "x$build_alias" = x; then
1229     cross_compiling=maybe
1230     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231     If a cross compiler is detected then cross compile mode will be used." >&2
1232   elif test "x$build_alias" != "x$host_alias"; then
1233     cross_compiling=yes
1234   fi
1235 fi
1236
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240 test "$silent" = yes && exec 6>/dev/null
1241
1242
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246   { echo "$as_me: error: Working directory cannot be determined" >&2
1247    { (exit 1); exit 1; }; }
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249   { echo "$as_me: error: pwd does not report name of working directory" >&2
1250    { (exit 1); exit 1; }; }
1251
1252
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255   ac_srcdir_defaulted=yes
1256   # Try the directory containing this script, then the parent directory.
1257   ac_confdir=`$as_dirname -- "$0" ||
1258 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259          X"$0" : 'X\(//\)[^/]' \| \
1260          X"$0" : 'X\(//\)$' \| \
1261          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262 echo X"$0" |
1263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\/\)[^/].*/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\/\)$/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\).*/{
1276             s//\1/
1277             q
1278           }
1279           s/.*/./; q'`
1280   srcdir=$ac_confdir
1281   if test ! -r "$srcdir/$ac_unique_file"; then
1282     srcdir=..
1283   fi
1284 else
1285   ac_srcdir_defaulted=no
1286 fi
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290    { (exit 1); exit 1; }; }
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295    { (exit 1); exit 1; }; }
1296         pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299   srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309   eval ac_env_${ac_var}_value=\$${ac_var}
1310   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318   # Omit some internal or obsolete options to make the list less imposing.
1319   # This message is too long to be a string in the A/UX 3.1 sh.
1320   cat <<_ACEOF
1321 \`configure' configures llvm 2.8svn to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE.  See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331   -h, --help              display this help and exit
1332       --help=short        display options specific to this package
1333       --help=recursive    display the short help of all the included packages
1334   -V, --version           display version information and exit
1335   -q, --quiet, --silent   do not print \`checking...' messages
1336       --cache-file=FILE   cache test results in FILE [disabled]
1337   -C, --config-cache      alias for \`--cache-file=config.cache'
1338   -n, --no-create         do not create output files
1339       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342   --prefix=PREFIX         install architecture-independent files in PREFIX
1343                           [$ac_default_prefix]
1344   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1345                           [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355   --bindir=DIR           user executables [EPREFIX/bin]
1356   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1357   --libexecdir=DIR       program executables [EPREFIX/libexec]
1358   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1359   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1360   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1361   --libdir=DIR           object code libraries [EPREFIX/lib]
1362   --includedir=DIR       C header files [PREFIX/include]
1363   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1364   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1365   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1366   --infodir=DIR          info documentation [DATAROOTDIR/info]
1367   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1368   --mandir=DIR           man documentation [DATAROOTDIR/man]
1369   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1370   --htmldir=DIR          html documentation [DOCDIR]
1371   --dvidir=DIR           dvi documentation [DOCDIR]
1372   --pdfdir=DIR           pdf documentation [DOCDIR]
1373   --psdir=DIR            ps documentation [DOCDIR]
1374 _ACEOF
1375
1376   cat <<\_ACEOF
1377
1378 System types:
1379   --build=BUILD     configure for building on BUILD [guessed]
1380   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1381   --target=TARGET   configure for building compilers for TARGET [HOST]
1382 _ACEOF
1383 fi
1384
1385 if test -n "$ac_init_help"; then
1386   case $ac_init_help in
1387      short | recursive ) echo "Configuration of llvm 2.8svn:";;
1388    esac
1389   cat <<\_ACEOF
1390
1391 Optional Features:
1392   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1393   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1394   --enable-optimized      Compile with optimizations enabled (default is NO)
1395   --enable-profiling      Compile with profiling enabled (default is NO)
1396   --enable-assertions     Compile with assertion checks enabled (default is
1397                           YES)
1398   --enable-expensive-checks
1399                           Compile with expensive debug checks enabled (default
1400                           is NO)
1401   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1402                           NO)
1403   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1404                           optimization is on and YES if it's off)
1405   --enable-jit            Enable Just In Time Compiling (default is YES)
1406   --enable-doxygen        Build doxygen documentation (default is NO)
1407   --enable-threads        Use threads if available (default is YES)
1408   --enable-pic            Build LLVM with Position Independent Code (default
1409                           is YES)
1410   --enable-shared         Build a shared library and link tools against it
1411                           (default is NO)
1412   --enable-timestamps     Enable embedding timestamp information in build
1413                           (default is YES)
1414   --enable-targets        Build specific host targets: all or
1415                           target1,target2,... Valid targets are: host, x86,
1416                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1417                           pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1418                           and cpp (default=all)
1419   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1420                           %a (default is YES)
1421   --enable-bindings       Build specific language bindings:
1422                           all,auto,none,{binding-name} (default=auto)
1423   --enable-libffi         Check for the presence of libffi (default is NO)
1424   --enable-ltdl-install   install libltdl
1425
1426 Optional Packages:
1427   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1428   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1429   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1430                           searches PATH)
1431   --with-llvmgcc          Specify location of llvm-gcc driver (default
1432                           searches PATH)
1433   --with-llvmgxx          Specify location of llvm-g++ driver (default
1434                           searches PATH)
1435   --with-clang            Specify location of clang compiler (default is
1436                           --with-built-clang)
1437   --with-built-clang      Use the compiled Clang as the LLVM compiler
1438                           (default=check)
1439   --with-optimize-option  Select the compiler options to use for optimized
1440                           builds
1441   --with-extra-options    Specify additional options to compile LLVM with
1442   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1443                           is stdlib)
1444   --with-c-include-dirs   Colon separated list of directories clang will
1445                           search for headers
1446   --with-cxx-include-root Directory with the libstdc++ headers.
1447   --with-cxx-include-arch Architecture of the libstdc++ headers.
1448   --with-cxx-include-32bit-dir
1449                           32 bit multilib dir.
1450   --with-cxx-include-64bit-dir
1451                           64 bit multilib directory.
1452   --with-binutils-include Specify path to binutils/include/ containing
1453                           plugin-api.h file for gold plugin.
1454   --with-tclinclude       directory where tcl headers are
1455   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1456                           clang, or none; default=check)
1457   --with-udis86=<path>    Use udis86 external x86 disassembler library
1458   --with-oprofile=<prefix>
1459                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1460
1461 Some influential environment variables:
1462   CC          C compiler command
1463   CFLAGS      C compiler flags
1464   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1465               nonstandard directory <lib dir>
1466   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467               you have headers in a nonstandard directory <include dir>
1468   CPP         C preprocessor
1469   CXX         C++ compiler command
1470   CXXFLAGS    C++ compiler flags
1471
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1474
1475 Report bugs to <llvmbugs@cs.uiuc.edu>.
1476 _ACEOF
1477 ac_status=$?
1478 fi
1479
1480 if test "$ac_init_help" = "recursive"; then
1481   # If there are subdirs, report their specific --help.
1482   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483     test -d "$ac_dir" || continue
1484     ac_builddir=.
1485
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *)
1489   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490   # A ".." for each directory in $ac_dir_suffix.
1491   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492   case $ac_top_builddir_sub in
1493   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495   esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1501
1502 case $srcdir in
1503   .)  # We are building in place.
1504     ac_srcdir=.
1505     ac_top_srcdir=$ac_top_builddir_sub
1506     ac_abs_top_srcdir=$ac_pwd ;;
1507   [\\/]* | ?:[\\/]* )  # Absolute name.
1508     ac_srcdir=$srcdir$ac_dir_suffix;
1509     ac_top_srcdir=$srcdir
1510     ac_abs_top_srcdir=$srcdir ;;
1511   *) # Relative name.
1512     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513     ac_top_srcdir=$ac_top_build_prefix$srcdir
1514     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518     cd "$ac_dir" || { ac_status=$?; continue; }
1519     # Check for guested configure.
1520     if test -f "$ac_srcdir/configure.gnu"; then
1521       echo &&
1522       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523     elif test -f "$ac_srcdir/configure"; then
1524       echo &&
1525       $SHELL "$ac_srcdir/configure" --help=recursive
1526     else
1527       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528     fi || ac_status=$?
1529     cd "$ac_pwd" || { ac_status=$?; break; }
1530   done
1531 fi
1532
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535   cat <<\_ACEOF
1536 llvm configure 2.8svn
1537 generated by GNU Autoconf 2.60
1538
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543
1544 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1545 _ACEOF
1546   exit
1547 fi
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1551
1552 It was created by llvm $as_me 2.8svn, which was
1553 generated by GNU Autoconf 2.60.  Invocation command line was
1554
1555   $ $0 $@
1556
1557 _ACEOF
1558 exec 5>>config.log
1559 {
1560 cat <<_ASUNAME
1561 ## --------- ##
1562 ## Platform. ##
1563 ## --------- ##
1564
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1573
1574 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1575 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1578 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1579 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1580 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1581
1582 _ASUNAME
1583
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587   IFS=$as_save_IFS
1588   test -z "$as_dir" && as_dir=.
1589   echo "PATH: $as_dir"
1590 done
1591 IFS=$as_save_IFS
1592
1593 } >&5
1594
1595 cat >&5 <<_ACEOF
1596
1597
1598 ## ----------- ##
1599 ## Core tests. ##
1600 ## ----------- ##
1601
1602 _ACEOF
1603
1604
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1610 ac_configure_args=
1611 ac_configure_args0=
1612 ac_configure_args1=
1613 ac_must_keep_next=false
1614 for ac_pass in 1 2
1615 do
1616   for ac_arg
1617   do
1618     case $ac_arg in
1619     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621     | -silent | --silent | --silen | --sile | --sil)
1622       continue ;;
1623     *\'*)
1624       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625     esac
1626     case $ac_pass in
1627     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1628     2)
1629       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630       if test $ac_must_keep_next = true; then
1631         ac_must_keep_next=false # Got value, back to normal.
1632       else
1633         case $ac_arg in
1634           *=* | --config-cache | -C | -disable-* | --disable-* \
1635           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637           | -with-* | --with-* | -without-* | --without-* | --x)
1638             case "$ac_configure_args0 " in
1639               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640             esac
1641             ;;
1642           -* ) ac_must_keep_next=true ;;
1643         esac
1644       fi
1645       ac_configure_args="$ac_configure_args '$ac_arg'"
1646       ;;
1647     esac
1648   done
1649 done
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1652
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log.  We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659   # Save into config.log some information that might help in debugging.
1660   {
1661     echo
1662
1663     cat <<\_ASBOX
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1667 _ASBOX
1668     echo
1669     # The following way of writing the cache mishandles newlines in values,
1670 (
1671   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672     eval ac_val=\$$ac_var
1673     case $ac_val in #(
1674     *${as_nl}*)
1675       case $ac_var in #(
1676       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1678       esac
1679       case $ac_var in #(
1680       _ | IFS | as_nl) ;; #(
1681       *) $as_unset $ac_var ;;
1682       esac ;;
1683     esac
1684   done
1685   (set) 2>&1 |
1686     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687     *${as_nl}ac_space=\ *)
1688       sed -n \
1689         "s/'\''/'\''\\\\'\'''\''/g;
1690           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691       ;; #(
1692     *)
1693       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1694       ;;
1695     esac |
1696     sort
1697 )
1698     echo
1699
1700     cat <<\_ASBOX
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1704 _ASBOX
1705     echo
1706     for ac_var in $ac_subst_vars
1707     do
1708       eval ac_val=\$$ac_var
1709       case $ac_val in
1710       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711       esac
1712       echo "$ac_var='\''$ac_val'\''"
1713     done | sort
1714     echo
1715
1716     if test -n "$ac_subst_files"; then
1717       cat <<\_ASBOX
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1721 _ASBOX
1722       echo
1723       for ac_var in $ac_subst_files
1724       do
1725         eval ac_val=\$$ac_var
1726         case $ac_val in
1727         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728         esac
1729         echo "$ac_var='\''$ac_val'\''"
1730       done | sort
1731       echo
1732     fi
1733
1734     if test -s confdefs.h; then
1735       cat <<\_ASBOX
1736 ## ----------- ##
1737 ## confdefs.h. ##
1738 ## ----------- ##
1739 _ASBOX
1740       echo
1741       cat confdefs.h
1742       echo
1743     fi
1744     test "$ac_signal" != 0 &&
1745       echo "$as_me: caught signal $ac_signal"
1746     echo "$as_me: exit $exit_status"
1747   } >&5
1748   rm -f core *.core core.conftest.* &&
1749     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1750     exit $exit_status
1751 ' 0
1752 for ac_signal in 1 2 13 15; do
1753   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1754 done
1755 ac_signal=0
1756
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1759
1760 # Predefined preprocessor variables.
1761
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1764 _ACEOF
1765
1766
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769 _ACEOF
1770
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1774 _ACEOF
1775
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1779 _ACEOF
1780
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784 _ACEOF
1785
1786
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790   set x "$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE; then
1792   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1793 else
1794   set x "$ac_default_prefix/share/config.site" \
1795         "$ac_default_prefix/etc/config.site"
1796 fi
1797 shift
1798 for ac_site_file
1799 do
1800   if test -r "$ac_site_file"; then
1801     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803     sed 's/^/| /' "$ac_site_file" >&5
1804     . "$ac_site_file"
1805   fi
1806 done
1807
1808 if test -r "$cache_file"; then
1809   # Some versions of bash will fail to source /dev/null (special
1810   # files actually), so we avoid doing that.
1811   if test -f "$cache_file"; then
1812     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1814     case $cache_file in
1815       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816       *)                      . "./$cache_file";;
1817     esac
1818   fi
1819 else
1820   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1822   >$cache_file
1823 fi
1824
1825 # Check that the precious variables saved in the cache have kept the same
1826 # value.
1827 ac_cache_corrupted=false
1828 for ac_var in $ac_precious_vars; do
1829   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830   eval ac_new_set=\$ac_env_${ac_var}_set
1831   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832   eval ac_new_val=\$ac_env_${ac_var}_value
1833   case $ac_old_set,$ac_new_set in
1834     set,)
1835       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837       ac_cache_corrupted=: ;;
1838     ,set)
1839       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841       ac_cache_corrupted=: ;;
1842     ,);;
1843     *)
1844       if test "x$ac_old_val" != "x$ac_new_val"; then
1845         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1848 echo "$as_me:   former value:  $ac_old_val" >&2;}
1849         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1850 echo "$as_me:   current value: $ac_new_val" >&2;}
1851         ac_cache_corrupted=:
1852       fi;;
1853   esac
1854   # Pass precious variables to config.status.
1855   if test "$ac_new_set" = set; then
1856     case $ac_new_val in
1857     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858     *) ac_arg=$ac_var=$ac_new_val ;;
1859     esac
1860     case " $ac_configure_args " in
1861       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1862       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1863     esac
1864   fi
1865 done
1866 if $ac_cache_corrupted; then
1867   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871    { (exit 1); exit 1; }; }
1872 fi
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898 ac_ext=c
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903
1904
1905
1906 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1907
1908
1909
1910
1911
1912
1913
1914 ac_aux_dir=
1915 for ac_dir in autoconf "$srcdir"/autoconf; do
1916   if test -f "$ac_dir/install-sh"; then
1917     ac_aux_dir=$ac_dir
1918     ac_install_sh="$ac_aux_dir/install-sh -c"
1919     break
1920   elif test -f "$ac_dir/install.sh"; then
1921     ac_aux_dir=$ac_dir
1922     ac_install_sh="$ac_aux_dir/install.sh -c"
1923     break
1924   elif test -f "$ac_dir/shtool"; then
1925     ac_aux_dir=$ac_dir
1926     ac_install_sh="$ac_aux_dir/shtool install -c"
1927     break
1928   fi
1929 done
1930 if test -z "$ac_aux_dir"; then
1931   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933    { (exit 1); exit 1; }; }
1934 fi
1935
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1943
1944
1945
1946 if test ${srcdir} != "." ; then
1947   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1948     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950    { (exit 1); exit 1; }; }
1951   fi
1952 fi
1953
1954
1955
1956 if test -d ${srcdir}/projects/llvm-gcc ; then
1957   subdirs="$subdirs projects/llvm-gcc"
1958
1959 fi
1960
1961 if test -d ${srcdir}/projects/test-suite ; then
1962   subdirs="$subdirs projects/test-suite"
1963
1964 fi
1965
1966 if test -d ${srcdir}/projects/llvm-test ; then
1967   subdirs="$subdirs projects/llvm-test"
1968
1969 fi
1970
1971 if test -d ${srcdir}/projects/poolalloc ; then
1972   subdirs="$subdirs projects/poolalloc"
1973
1974 fi
1975
1976 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1977   subdirs="$subdirs projects/llvm-poolalloc"
1978
1979 fi
1980
1981 for i in `ls ${srcdir}/projects`
1982 do
1983   if test -d ${srcdir}/projects/${i} ; then
1984     case ${i} in
1985       sample)       subdirs="$subdirs projects/sample"
1986     ;;
1987       privbracket)  subdirs="$subdirs projects/privbracket"
1988  ;;
1989       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1990  ;;
1991       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
1992 ;;
1993       llvm-java)    subdirs="$subdirs projects/llvm-java"
1994  ;;
1995       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
1996    ;;
1997       safecode)     subdirs="$subdirs projects/safecode"
1998  ;;
1999       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2000  ;;
2001       llvm-gcc)       ;;
2002       test-suite)     ;;
2003       llvm-test)      ;;
2004       poolalloc)      ;;
2005       llvm-poolalloc) ;;
2006       *)
2007         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2008 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2009         ;;
2010     esac
2011   fi
2012 done
2013
2014
2015 # Make sure we can run config.sub.
2016 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2017   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2018 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2019    { (exit 1); exit 1; }; }
2020
2021 { echo "$as_me:$LINENO: checking build system type" >&5
2022 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2023 if test "${ac_cv_build+set}" = set; then
2024   echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026   ac_build_alias=$build_alias
2027 test "x$ac_build_alias" = x &&
2028   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2029 test "x$ac_build_alias" = x &&
2030   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2031 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2032    { (exit 1); exit 1; }; }
2033 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2034   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2036    { (exit 1); exit 1; }; }
2037
2038 fi
2039 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2040 echo "${ECHO_T}$ac_cv_build" >&6; }
2041 case $ac_cv_build in
2042 *-*-*) ;;
2043 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2044 echo "$as_me: error: invalid value of canonical build" >&2;}
2045    { (exit 1); exit 1; }; };;
2046 esac
2047 build=$ac_cv_build
2048 ac_save_IFS=$IFS; IFS='-'
2049 set x $ac_cv_build
2050 shift
2051 build_cpu=$1
2052 build_vendor=$2
2053 shift; shift
2054 # Remember, the first character of IFS is used to create $*,
2055 # except with old shells:
2056 build_os=$*
2057 IFS=$ac_save_IFS
2058 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2059
2060
2061 { echo "$as_me:$LINENO: checking host system type" >&5
2062 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2063 if test "${ac_cv_host+set}" = set; then
2064   echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066   if test "x$host_alias" = x; then
2067   ac_cv_host=$ac_cv_build
2068 else
2069   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2070     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2071 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2072    { (exit 1); exit 1; }; }
2073 fi
2074
2075 fi
2076 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2077 echo "${ECHO_T}$ac_cv_host" >&6; }
2078 case $ac_cv_host in
2079 *-*-*) ;;
2080 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2081 echo "$as_me: error: invalid value of canonical host" >&2;}
2082    { (exit 1); exit 1; }; };;
2083 esac
2084 host=$ac_cv_host
2085 ac_save_IFS=$IFS; IFS='-'
2086 set x $ac_cv_host
2087 shift
2088 host_cpu=$1
2089 host_vendor=$2
2090 shift; shift
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2093 host_os=$*
2094 IFS=$ac_save_IFS
2095 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2096
2097
2098 { echo "$as_me:$LINENO: checking target system type" >&5
2099 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2100 if test "${ac_cv_target+set}" = set; then
2101   echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103   if test "x$target_alias" = x; then
2104   ac_cv_target=$ac_cv_host
2105 else
2106   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2107     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2109    { (exit 1); exit 1; }; }
2110 fi
2111
2112 fi
2113 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2114 echo "${ECHO_T}$ac_cv_target" >&6; }
2115 case $ac_cv_target in
2116 *-*-*) ;;
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2118 echo "$as_me: error: invalid value of canonical target" >&2;}
2119    { (exit 1); exit 1; }; };;
2120 esac
2121 target=$ac_cv_target
2122 ac_save_IFS=$IFS; IFS='-'
2123 set x $ac_cv_target
2124 shift
2125 target_cpu=$1
2126 target_vendor=$2
2127 shift; shift
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2130 target_os=$*
2131 IFS=$ac_save_IFS
2132 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2133
2134
2135 # The aliases save the names the user supplied, while $host etc.
2136 # will get canonicalized.
2137 test -n "$target_alias" &&
2138   test "$program_prefix$program_suffix$program_transform_name" = \
2139     NONENONEs,x,x, &&
2140   program_prefix=${target_alias}-
2141
2142 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2143 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2144 if test "${llvm_cv_os_type+set}" = set; then
2145   echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147   case $host in
2148   *-*-aix*)
2149     llvm_cv_link_all_option="-Wl,--whole-archive"
2150     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2151     llvm_cv_os_type="AIX"
2152     llvm_cv_platform_type="Unix" ;;
2153   *-*-irix*)
2154     llvm_cv_link_all_option="-Wl,--whole-archive"
2155     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2156     llvm_cv_os_type="IRIX"
2157     llvm_cv_platform_type="Unix" ;;
2158   *-*-cygwin*)
2159     llvm_cv_link_all_option="-Wl,--whole-archive"
2160     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2161     llvm_cv_os_type="Cygwin"
2162     llvm_cv_platform_type="Unix" ;;
2163   *-*-darwin*)
2164     llvm_cv_link_all_option="-Wl,-all_load"
2165     llvm_cv_no_link_all_option="-Wl,-noall_load"
2166     llvm_cv_os_type="Darwin"
2167     llvm_cv_platform_type="Unix" ;;
2168   *-*-minix*)
2169     llvm_cv_link_all_option="-Wl,-all_load"
2170     llvm_cv_no_link_all_option="-Wl,-noall_load"
2171     llvm_cv_os_type="Minix"
2172     llvm_cv_platform_type="Unix" ;;
2173   *-*-freebsd*)
2174     llvm_cv_link_all_option="-Wl,--whole-archive"
2175     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2176     llvm_cv_os_type="FreeBSD"
2177     llvm_cv_platform_type="Unix" ;;
2178   *-*-openbsd*)
2179     llvm_cv_link_all_option="-Wl,--whole-archive"
2180     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2181     llvm_cv_os_type="OpenBSD"
2182     llvm_cv_platform_type="Unix" ;;
2183   *-*-netbsd*)
2184     llvm_cv_link_all_option="-Wl,--whole-archive"
2185     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2186     llvm_cv_os_type="NetBSD"
2187     llvm_cv_platform_type="Unix" ;;
2188   *-*-dragonfly*)
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="DragonFly"
2192     llvm_cv_platform_type="Unix" ;;
2193   *-*-hpux*)
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="HP-UX"
2197     llvm_cv_platform_type="Unix" ;;
2198   *-*-interix*)
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="Interix"
2202     llvm_cv_platform_type="Unix" ;;
2203   *-*-linux*)
2204     llvm_cv_link_all_option="-Wl,--whole-archive"
2205     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2206     llvm_cv_os_type="Linux"
2207     llvm_cv_platform_type="Unix" ;;
2208   *-*-solaris*)
2209     llvm_cv_link_all_option="-Wl,-z,allextract"
2210     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2211     llvm_cv_os_type="SunOS"
2212     llvm_cv_platform_type="Unix" ;;
2213   *-*-auroraux*)
2214     llvm_cv_link_all_option="-Wl,-z,allextract"
2215     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2216     llvm_cv_os_type="AuroraUX"
2217     llvm_cv_platform_type="Unix" ;;
2218   *-*-win32*)
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="Win32"
2222     llvm_cv_platform_type="Win32" ;;
2223   *-*-mingw*)
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="MingW"
2227     llvm_cv_platform_type="Win32" ;;
2228   *-*-haiku*)
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="Haiku"
2232     llvm_cv_platform_type="Unix" ;;
2233   *-unknown-eabi*)
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="Freestanding"
2237     llvm_cv_platform_type="Unix" ;;
2238   *-unknown-elf*)
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="Freestanding"
2242     llvm_cv_platform_type="Unix" ;;
2243   *)
2244     llvm_cv_link_all_option=""
2245     llvm_cv_no_link_all_option=""
2246     llvm_cv_os_type="Unknown"
2247     llvm_cv_platform_type="Unknown" ;;
2248 esac
2249 fi
2250 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2251 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2252
2253 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2254 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2255 if test "${llvm_cv_target_os_type+set}" = set; then
2256   echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258   case $target in
2259   *-*-aix*)
2260     llvm_cv_target_os_type="AIX" ;;
2261   *-*-irix*)
2262     llvm_cv_target_os_type="IRIX" ;;
2263   *-*-cygwin*)
2264     llvm_cv_target_os_type="Cygwin" ;;
2265   *-*-darwin*)
2266     llvm_cv_target_os_type="Darwin" ;;
2267   *-*-minix*)
2268     llvm_cv_target_os_type="Minix" ;;
2269   *-*-freebsd*)
2270     llvm_cv_target_os_type="FreeBSD" ;;
2271   *-*-openbsd*)
2272     llvm_cv_target_os_type="OpenBSD" ;;
2273   *-*-netbsd*)
2274     llvm_cv_target_os_type="NetBSD" ;;
2275   *-*-dragonfly*)
2276     llvm_cv_target_os_type="DragonFly" ;;
2277   *-*-hpux*)
2278     llvm_cv_target_os_type="HP-UX" ;;
2279   *-*-interix*)
2280     llvm_cv_target_os_type="Interix" ;;
2281   *-*-linux*)
2282     llvm_cv_target_os_type="Linux" ;;
2283   *-*-solaris*)
2284     llvm_cv_target_os_type="SunOS" ;;
2285   *-*-auroraux*)
2286     llvm_cv_target_os_type="AuroraUX" ;;
2287   *-*-win32*)
2288     llvm_cv_target_os_type="Win32" ;;
2289   *-*-mingw*)
2290     llvm_cv_target_os_type="MingW" ;;
2291   *-*-haiku*)
2292     llvm_cv_target_os_type="Haiku" ;;
2293   *-unknown-eabi*)
2294     llvm_cv_target_os_type="Freestanding" ;;
2295   *)
2296     llvm_cv_target_os_type="Unknown" ;;
2297 esac
2298 fi
2299 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2300 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2301
2302 if test "$llvm_cv_os_type" = "Unknown" ; then
2303   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2304 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2305    { (exit 1); exit 1; }; }
2306 fi
2307
2308 OS=$llvm_cv_os_type
2309
2310 HOST_OS=$llvm_cv_os_type
2311
2312 TARGET_OS=$llvm_cv_target_os_type
2313
2314
2315 LINKALL=$llvm_cv_link_all_option
2316
2317 NOLINKALL=$llvm_cv_no_link_all_option
2318
2319
2320 case $llvm_cv_platform_type in
2321   Unix)
2322
2323 cat >>confdefs.h <<\_ACEOF
2324 #define LLVM_ON_UNIX 1
2325 _ACEOF
2326
2327     LLVM_ON_UNIX=1
2328
2329     LLVM_ON_WIN32=0
2330
2331     ;;
2332   Win32)
2333
2334 cat >>confdefs.h <<\_ACEOF
2335 #define LLVM_ON_WIN32 1
2336 _ACEOF
2337
2338     LLVM_ON_UNIX=0
2339
2340     LLVM_ON_WIN32=1
2341
2342     ;;
2343 esac
2344
2345 { echo "$as_me:$LINENO: checking target architecture" >&5
2346 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2347 if test "${llvm_cv_target_arch+set}" = set; then
2348   echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350   case $target in
2351   i?86-*)                 llvm_cv_target_arch="x86" ;;
2352   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2353   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2354   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2355   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2356   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2357   mips-*)                 llvm_cv_target_arch="Mips" ;;
2358   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2359   xcore-*)                llvm_cv_target_arch="XCore" ;;
2360   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2361   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2362   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2363   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2364   *)                      llvm_cv_target_arch="Unknown" ;;
2365 esac
2366 fi
2367 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2368 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2369
2370 if test "$llvm_cv_target_arch" = "Unknown" ; then
2371   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2372 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2373 fi
2374
2375 # Determine the LLVM native architecture for the target
2376 case "$llvm_cv_target_arch" in
2377     x86)     LLVM_NATIVE_ARCH="X86" ;;
2378     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2379     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2380 esac
2381
2382 ARCH=$llvm_cv_target_arch
2383
2384
2385 ac_ext=c
2386 ac_cpp='$CPP $CPPFLAGS'
2387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390 if test -n "$ac_tool_prefix"; then
2391   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2392 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2395 if test "${ac_cv_prog_CC+set}" = set; then
2396   echo $ECHO_N "(cached) $ECHO_C" >&6
2397 else
2398   if test -n "$CC"; then
2399   ac_cv_prog_CC="$CC" # Let the user override the test.
2400 else
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 for as_dir in $PATH
2403 do
2404   IFS=$as_save_IFS
2405   test -z "$as_dir" && as_dir=.
2406   for ac_exec_ext in '' $ac_executable_extensions; do
2407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2408     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2410     break 2
2411   fi
2412 done
2413 done
2414 IFS=$as_save_IFS
2415
2416 fi
2417 fi
2418 CC=$ac_cv_prog_CC
2419 if test -n "$CC"; then
2420   { echo "$as_me:$LINENO: result: $CC" >&5
2421 echo "${ECHO_T}$CC" >&6; }
2422 else
2423   { echo "$as_me:$LINENO: result: no" >&5
2424 echo "${ECHO_T}no" >&6; }
2425 fi
2426
2427
2428 fi
2429 if test -z "$ac_cv_prog_CC"; then
2430   ac_ct_CC=$CC
2431   # Extract the first word of "gcc", so it can be a program name with args.
2432 set dummy 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_ac_ct_CC+set}" = set; then
2436   echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438   if test -n "$ac_ct_CC"; then
2439   ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2459 if test -n "$ac_ct_CC"; then
2460   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2461 echo "${ECHO_T}$ac_ct_CC" >&6; }
2462 else
2463   { echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6; }
2465 fi
2466
2467   if test "x$ac_ct_CC" = x; then
2468     CC=""
2469   else
2470     case $cross_compiling:$ac_tool_warned in
2471 yes:)
2472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2473 whose name does not start with the host triplet.  If you think this
2474 configuration is useful to you, please write to autoconf@gnu.org." >&5
2475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2476 whose name does not start with the host triplet.  If you think this
2477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2478 ac_tool_warned=yes ;;
2479 esac
2480     CC=$ac_ct_CC
2481   fi
2482 else
2483   CC="$ac_cv_prog_CC"
2484 fi
2485
2486 if test -z "$CC"; then
2487           if test -n "$ac_tool_prefix"; then
2488     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2489 set dummy ${ac_tool_prefix}cc; ac_word=$2
2490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2492 if test "${ac_cv_prog_CC+set}" = set; then
2493   echo $ECHO_N "(cached) $ECHO_C" >&6
2494 else
2495   if test -n "$CC"; then
2496   ac_cv_prog_CC="$CC" # Let the user override the test.
2497 else
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH
2500 do
2501   IFS=$as_save_IFS
2502   test -z "$as_dir" && as_dir=.
2503   for ac_exec_ext in '' $ac_executable_extensions; do
2504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2505     ac_cv_prog_CC="${ac_tool_prefix}cc"
2506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507     break 2
2508   fi
2509 done
2510 done
2511 IFS=$as_save_IFS
2512
2513 fi
2514 fi
2515 CC=$ac_cv_prog_CC
2516 if test -n "$CC"; then
2517   { echo "$as_me:$LINENO: result: $CC" >&5
2518 echo "${ECHO_T}$CC" >&6; }
2519 else
2520   { echo "$as_me:$LINENO: result: no" >&5
2521 echo "${ECHO_T}no" >&6; }
2522 fi
2523
2524
2525   fi
2526 fi
2527 if test -z "$CC"; then
2528   # Extract the first word of "cc", so it can be a program name with args.
2529 set dummy 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   ac_prog_rejected=no
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2541 do
2542   IFS=$as_save_IFS
2543   test -z "$as_dir" && as_dir=.
2544   for ac_exec_ext in '' $ac_executable_extensions; do
2545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2546     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2547        ac_prog_rejected=yes
2548        continue
2549      fi
2550     ac_cv_prog_CC="cc"
2551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552     break 2
2553   fi
2554 done
2555 done
2556 IFS=$as_save_IFS
2557
2558 if test $ac_prog_rejected = yes; then
2559   # We found a bogon in the path, so make sure we never use it.
2560   set dummy $ac_cv_prog_CC
2561   shift
2562   if test $# != 0; then
2563     # We chose a different compiler from the bogus one.
2564     # However, it has the same basename, so the bogon will be chosen
2565     # first if we set CC to just the basename; use the full file name.
2566     shift
2567     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2568   fi
2569 fi
2570 fi
2571 fi
2572 CC=$ac_cv_prog_CC
2573 if test -n "$CC"; then
2574   { echo "$as_me:$LINENO: result: $CC" >&5
2575 echo "${ECHO_T}$CC" >&6; }
2576 else
2577   { echo "$as_me:$LINENO: result: no" >&5
2578 echo "${ECHO_T}no" >&6; }
2579 fi
2580
2581
2582 fi
2583 if test -z "$CC"; then
2584   if test -n "$ac_tool_prefix"; then
2585   for ac_prog in cl.exe
2586   do
2587     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591 if test "${ac_cv_prog_CC+set}" = set; then
2592   echo $ECHO_N "(cached) $ECHO_C" >&6
2593 else
2594   if test -n "$CC"; then
2595   ac_cv_prog_CC="$CC" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
2600   IFS=$as_save_IFS
2601   test -z "$as_dir" && as_dir=.
2602   for ac_exec_ext in '' $ac_executable_extensions; do
2603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2604     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606     break 2
2607   fi
2608 done
2609 done
2610 IFS=$as_save_IFS
2611
2612 fi
2613 fi
2614 CC=$ac_cv_prog_CC
2615 if test -n "$CC"; then
2616   { echo "$as_me:$LINENO: result: $CC" >&5
2617 echo "${ECHO_T}$CC" >&6; }
2618 else
2619   { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2621 fi
2622
2623
2624     test -n "$CC" && break
2625   done
2626 fi
2627 if test -z "$CC"; then
2628   ac_ct_CC=$CC
2629   for ac_prog in cl.exe
2630 do
2631   # Extract the first word of "$ac_prog", so it can be a program name with args.
2632 set dummy $ac_prog; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2636   echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638   if test -n "$ac_ct_CC"; then
2639   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2643 do
2644   IFS=$as_save_IFS
2645   test -z "$as_dir" && as_dir=.
2646   for ac_exec_ext in '' $ac_executable_extensions; do
2647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2648     ac_cv_prog_ac_ct_CC="$ac_prog"
2649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650     break 2
2651   fi
2652 done
2653 done
2654 IFS=$as_save_IFS
2655
2656 fi
2657 fi
2658 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2659 if test -n "$ac_ct_CC"; then
2660   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2661 echo "${ECHO_T}$ac_ct_CC" >&6; }
2662 else
2663   { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2665 fi
2666
2667
2668   test -n "$ac_ct_CC" && break
2669 done
2670
2671   if test "x$ac_ct_CC" = x; then
2672     CC=""
2673   else
2674     case $cross_compiling:$ac_tool_warned in
2675 yes:)
2676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2677 whose name does not start with the host triplet.  If you think this
2678 configuration is useful to you, please write to autoconf@gnu.org." >&5
2679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2680 whose name does not start with the host triplet.  If you think this
2681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2682 ac_tool_warned=yes ;;
2683 esac
2684     CC=$ac_ct_CC
2685   fi
2686 fi
2687
2688 fi
2689
2690
2691 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2692 See \`config.log' for more details." >&5
2693 echo "$as_me: error: no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details." >&2;}
2695    { (exit 1); exit 1; }; }
2696
2697 # Provide some information about the compiler.
2698 echo "$as_me:$LINENO: checking for C compiler version" >&5
2699 ac_compiler=`set X $ac_compile; echo $2`
2700 { (ac_try="$ac_compiler --version >&5"
2701 case "(($ac_try" in
2702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703   *) ac_try_echo=$ac_try;;
2704 esac
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706   (eval "$ac_compiler --version >&5") 2>&5
2707   ac_status=$?
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); }
2710 { (ac_try="$ac_compiler -v >&5"
2711 case "(($ac_try" in
2712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713   *) ac_try_echo=$ac_try;;
2714 esac
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716   (eval "$ac_compiler -v >&5") 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); }
2720 { (ac_try="$ac_compiler -V >&5"
2721 case "(($ac_try" in
2722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723   *) ac_try_echo=$ac_try;;
2724 esac
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726   (eval "$ac_compiler -V >&5") 2>&5
2727   ac_status=$?
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); }
2730
2731 cat >conftest.$ac_ext <<_ACEOF
2732 /* confdefs.h.  */
2733 _ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h.  */
2737
2738 int
2739 main ()
2740 {
2741
2742   ;
2743   return 0;
2744 }
2745 _ACEOF
2746 ac_clean_files_save=$ac_clean_files
2747 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2748 # Try to create an executable without -o first, disregard a.out.
2749 # It will help us diagnose broken compilers, and finding out an intuition
2750 # of exeext.
2751 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2752 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2753 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2754 #
2755 # List of possible output files, starting from the most likely.
2756 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2757 # only as a last resort.  b.out is created by i960 compilers.
2758 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2759 #
2760 # The IRIX 6 linker writes into existing files which may not be
2761 # executable, retaining their permissions.  Remove them first so a
2762 # subsequent execution test works.
2763 ac_rmfiles=
2764 for ac_file in $ac_files
2765 do
2766   case $ac_file in
2767     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2768     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2769   esac
2770 done
2771 rm -f $ac_rmfiles
2772
2773 if { (ac_try="$ac_link_default"
2774 case "(($ac_try" in
2775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776   *) ac_try_echo=$ac_try;;
2777 esac
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779   (eval "$ac_link_default") 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); }; then
2783   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2784 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2785 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2786 # so that the user can short-circuit this test for compilers unknown to
2787 # Autoconf.
2788 for ac_file in $ac_files
2789 do
2790   test -f "$ac_file" || continue
2791   case $ac_file in
2792     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2793         ;;
2794     [ab].out )
2795         # We found the default executable, but exeext='' is most
2796         # certainly right.
2797         break;;
2798     *.* )
2799         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2800         then :; else
2801            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2802         fi
2803         # We set ac_cv_exeext here because the later test for it is not
2804         # safe: cross compilers may not add the suffix if given an `-o'
2805         # argument, so we may need to know it at that point already.
2806         # Even if this section looks crufty: it has the advantage of
2807         # actually working.
2808         break;;
2809     * )
2810         break;;
2811   esac
2812 done
2813 test "$ac_cv_exeext" = no && ac_cv_exeext=
2814
2815 else
2816   echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2818
2819 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2820 See \`config.log' for more details." >&5
2821 echo "$as_me: error: C compiler cannot create executables
2822 See \`config.log' for more details." >&2;}
2823    { (exit 77); exit 77; }; }
2824 fi
2825
2826 ac_exeext=$ac_cv_exeext
2827 { echo "$as_me:$LINENO: result: $ac_file" >&5
2828 echo "${ECHO_T}$ac_file" >&6; }
2829
2830 # Check that the compiler produces executables we can run.  If not, either
2831 # the compiler is broken, or we cross compile.
2832 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2833 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2834 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2835 # If not cross compiling, check that we can run a simple program.
2836 if test "$cross_compiling" != yes; then
2837   if { ac_try='./$ac_file'
2838   { (case "(($ac_try" in
2839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840   *) ac_try_echo=$ac_try;;
2841 esac
2842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843   (eval "$ac_try") 2>&5
2844   ac_status=$?
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); }; }; then
2847     cross_compiling=no
2848   else
2849     if test "$cross_compiling" = maybe; then
2850         cross_compiling=yes
2851     else
2852         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2853 If you meant to cross compile, use \`--host'.
2854 See \`config.log' for more details." >&5
2855 echo "$as_me: error: cannot run C compiled programs.
2856 If you meant to cross compile, use \`--host'.
2857 See \`config.log' for more details." >&2;}
2858    { (exit 1); exit 1; }; }
2859     fi
2860   fi
2861 fi
2862 { echo "$as_me:$LINENO: result: yes" >&5
2863 echo "${ECHO_T}yes" >&6; }
2864
2865 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2866 ac_clean_files=$ac_clean_files_save
2867 # Check that the compiler produces executables we can run.  If not, either
2868 # the compiler is broken, or we cross compile.
2869 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2870 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2871 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2872 echo "${ECHO_T}$cross_compiling" >&6; }
2873
2874 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2875 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2876 if { (ac_try="$ac_link"
2877 case "(($ac_try" in
2878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879   *) ac_try_echo=$ac_try;;
2880 esac
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882   (eval "$ac_link") 2>&5
2883   ac_status=$?
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); }; then
2886   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2887 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2888 # work properly (i.e., refer to `conftest.exe'), while it won't with
2889 # `rm'.
2890 for ac_file in conftest.exe conftest conftest.*; do
2891   test -f "$ac_file" || continue
2892   case $ac_file in
2893     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2894     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2895           break;;
2896     * ) break;;
2897   esac
2898 done
2899 else
2900   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2901 See \`config.log' for more details." >&5
2902 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2903 See \`config.log' for more details." >&2;}
2904    { (exit 1); exit 1; }; }
2905 fi
2906
2907 rm -f conftest$ac_cv_exeext
2908 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2909 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2910
2911 rm -f conftest.$ac_ext
2912 EXEEXT=$ac_cv_exeext
2913 ac_exeext=$EXEEXT
2914 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2915 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2916 if test "${ac_cv_objext+set}" = set; then
2917   echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919   cat >conftest.$ac_ext <<_ACEOF
2920 /* confdefs.h.  */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h.  */
2925
2926 int
2927 main ()
2928 {
2929
2930   ;
2931   return 0;
2932 }
2933 _ACEOF
2934 rm -f conftest.o conftest.obj
2935 if { (ac_try="$ac_compile"
2936 case "(($ac_try" in
2937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938   *) ac_try_echo=$ac_try;;
2939 esac
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941   (eval "$ac_compile") 2>&5
2942   ac_status=$?
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); }; then
2945   for ac_file in conftest.o conftest.obj conftest.*; do
2946   test -f "$ac_file" || continue;
2947   case $ac_file in
2948     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2949     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2950        break;;
2951   esac
2952 done
2953 else
2954   echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2956
2957 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2958 See \`config.log' for more details." >&5
2959 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2960 See \`config.log' for more details." >&2;}
2961    { (exit 1); exit 1; }; }
2962 fi
2963
2964 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2965 fi
2966 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2967 echo "${ECHO_T}$ac_cv_objext" >&6; }
2968 OBJEXT=$ac_cv_objext
2969 ac_objext=$OBJEXT
2970 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2971 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2972 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2973   echo $ECHO_N "(cached) $ECHO_C" >&6
2974 else
2975   cat >conftest.$ac_ext <<_ACEOF
2976 /* confdefs.h.  */
2977 _ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h.  */
2981
2982 int
2983 main ()
2984 {
2985 #ifndef __GNUC__
2986        choke me
2987 #endif
2988
2989   ;
2990   return 0;
2991 }
2992 _ACEOF
2993 rm -f conftest.$ac_objext
2994 if { (ac_try="$ac_compile"
2995 case "(($ac_try" in
2996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997   *) ac_try_echo=$ac_try;;
2998 esac
2999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000   (eval "$ac_compile") 2>conftest.er1
3001   ac_status=$?
3002   grep -v '^ *+' conftest.er1 >conftest.err
3003   rm -f conftest.er1
3004   cat conftest.err >&5
3005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006   (exit $ac_status); } &&
3007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3008   { (case "(($ac_try" in
3009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010   *) ac_try_echo=$ac_try;;
3011 esac
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013   (eval "$ac_try") 2>&5
3014   ac_status=$?
3015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016   (exit $ac_status); }; } &&
3017          { ac_try='test -s conftest.$ac_objext'
3018   { (case "(($ac_try" in
3019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020   *) ac_try_echo=$ac_try;;
3021 esac
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023   (eval "$ac_try") 2>&5
3024   ac_status=$?
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); }; }; then
3027   ac_compiler_gnu=yes
3028 else
3029   echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3031
3032         ac_compiler_gnu=no
3033 fi
3034
3035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3036 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3037
3038 fi
3039 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3040 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3041 GCC=`test $ac_compiler_gnu = yes && echo yes`
3042 ac_test_CFLAGS=${CFLAGS+set}
3043 ac_save_CFLAGS=$CFLAGS
3044 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3045 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3046 if test "${ac_cv_prog_cc_g+set}" = set; then
3047   echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049   ac_save_c_werror_flag=$ac_c_werror_flag
3050    ac_c_werror_flag=yes
3051    ac_cv_prog_cc_g=no
3052    CFLAGS="-g"
3053    cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h.  */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h.  */
3059
3060 int
3061 main ()
3062 {
3063
3064   ;
3065   return 0;
3066 }
3067 _ACEOF
3068 rm -f conftest.$ac_objext
3069 if { (ac_try="$ac_compile"
3070 case "(($ac_try" in
3071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072   *) ac_try_echo=$ac_try;;
3073 esac
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075   (eval "$ac_compile") 2>conftest.er1
3076   ac_status=$?
3077   grep -v '^ *+' conftest.er1 >conftest.err
3078   rm -f conftest.er1
3079   cat conftest.err >&5
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); } &&
3082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3083   { (case "(($ac_try" in
3084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085   *) ac_try_echo=$ac_try;;
3086 esac
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088   (eval "$ac_try") 2>&5
3089   ac_status=$?
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); }; } &&
3092          { ac_try='test -s conftest.$ac_objext'
3093   { (case "(($ac_try" in
3094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095   *) ac_try_echo=$ac_try;;
3096 esac
3097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098   (eval "$ac_try") 2>&5
3099   ac_status=$?
3100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101   (exit $ac_status); }; }; then
3102   ac_cv_prog_cc_g=yes
3103 else
3104   echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107         CFLAGS=""
3108       cat >conftest.$ac_ext <<_ACEOF
3109 /* confdefs.h.  */
3110 _ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h.  */
3114
3115 int
3116 main ()
3117 {
3118
3119   ;
3120   return 0;
3121 }
3122 _ACEOF
3123 rm -f conftest.$ac_objext
3124 if { (ac_try="$ac_compile"
3125 case "(($ac_try" in
3126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127   *) ac_try_echo=$ac_try;;
3128 esac
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130   (eval "$ac_compile") 2>conftest.er1
3131   ac_status=$?
3132   grep -v '^ *+' conftest.er1 >conftest.err
3133   rm -f conftest.er1
3134   cat conftest.err >&5
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); } &&
3137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3138   { (case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143   (eval "$ac_try") 2>&5
3144   ac_status=$?
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); }; } &&
3147          { ac_try='test -s conftest.$ac_objext'
3148   { (case "(($ac_try" in
3149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150   *) ac_try_echo=$ac_try;;
3151 esac
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153   (eval "$ac_try") 2>&5
3154   ac_status=$?
3155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); }; }; then
3157   :
3158 else
3159   echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3161
3162         ac_c_werror_flag=$ac_save_c_werror_flag
3163          CFLAGS="-g"
3164          cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h.  */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h.  */
3170
3171 int
3172 main ()
3173 {
3174
3175   ;
3176   return 0;
3177 }
3178 _ACEOF
3179 rm -f conftest.$ac_objext
3180 if { (ac_try="$ac_compile"
3181 case "(($ac_try" in
3182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183   *) ac_try_echo=$ac_try;;
3184 esac
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186   (eval "$ac_compile") 2>conftest.er1
3187   ac_status=$?
3188   grep -v '^ *+' conftest.er1 >conftest.err
3189   rm -f conftest.er1
3190   cat conftest.err >&5
3191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192   (exit $ac_status); } &&
3193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3194   { (case "(($ac_try" in
3195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196   *) ac_try_echo=$ac_try;;
3197 esac
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199   (eval "$ac_try") 2>&5
3200   ac_status=$?
3201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202   (exit $ac_status); }; } &&
3203          { ac_try='test -s conftest.$ac_objext'
3204   { (case "(($ac_try" in
3205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206   *) ac_try_echo=$ac_try;;
3207 esac
3208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209   (eval "$ac_try") 2>&5
3210   ac_status=$?
3211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212   (exit $ac_status); }; }; then
3213   ac_cv_prog_cc_g=yes
3214 else
3215   echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3217
3218
3219 fi
3220
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 fi
3223
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 fi
3226
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228    ac_c_werror_flag=$ac_save_c_werror_flag
3229 fi
3230 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3231 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3232 if test "$ac_test_CFLAGS" = set; then
3233   CFLAGS=$ac_save_CFLAGS
3234 elif test $ac_cv_prog_cc_g = yes; then
3235   if test "$GCC" = yes; then
3236     CFLAGS="-g -O2"
3237   else
3238     CFLAGS="-g"
3239   fi
3240 else
3241   if test "$GCC" = yes; then
3242     CFLAGS="-O2"
3243   else
3244     CFLAGS=
3245   fi
3246 fi
3247 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3248 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3249 if test "${ac_cv_prog_cc_c89+set}" = set; then
3250   echo $ECHO_N "(cached) $ECHO_C" >&6
3251 else
3252   ac_cv_prog_cc_c89=no
3253 ac_save_CC=$CC
3254 cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h.  */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h.  */
3260 #include <stdarg.h>
3261 #include <stdio.h>
3262 #include <sys/types.h>
3263 #include <sys/stat.h>
3264 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3265 struct buf { int x; };
3266 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3267 static char *e (p, i)
3268      char **p;
3269      int i;
3270 {
3271   return p[i];
3272 }
3273 static char *f (char * (*g) (char **, int), char **p, ...)
3274 {
3275   char *s;
3276   va_list v;
3277   va_start (v,p);
3278   s = g (p, va_arg (v,int));
3279   va_end (v);
3280   return s;
3281 }
3282
3283 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3284    function prototypes and stuff, but not '\xHH' hex character constants.
3285    These don't provoke an error unfortunately, instead are silently treated
3286    as 'x'.  The following induces an error, until -std is added to get
3287    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3288    array size at least.  It's necessary to write '\x00'==0 to get something
3289    that's true only with -std.  */
3290 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3291
3292 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3293    inside strings and character constants.  */
3294 #define FOO(x) 'x'
3295 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3296
3297 int test (int i, double x);
3298 struct s1 {int (*f) (int a);};
3299 struct s2 {int (*f) (double a);};
3300 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3301 int argc;
3302 char **argv;
3303 int
3304 main ()
3305 {
3306 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3307   ;
3308   return 0;
3309 }
3310 _ACEOF
3311 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3312         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3313 do
3314   CC="$ac_save_CC $ac_arg"
3315   rm -f conftest.$ac_objext
3316 if { (ac_try="$ac_compile"
3317 case "(($ac_try" in
3318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319   *) ac_try_echo=$ac_try;;
3320 esac
3321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3322   (eval "$ac_compile") 2>conftest.er1
3323   ac_status=$?
3324   grep -v '^ *+' conftest.er1 >conftest.err
3325   rm -f conftest.er1
3326   cat conftest.err >&5
3327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328   (exit $ac_status); } &&
3329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3330   { (case "(($ac_try" in
3331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332   *) ac_try_echo=$ac_try;;
3333 esac
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335   (eval "$ac_try") 2>&5
3336   ac_status=$?
3337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338   (exit $ac_status); }; } &&
3339          { ac_try='test -s conftest.$ac_objext'
3340   { (case "(($ac_try" in
3341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342   *) ac_try_echo=$ac_try;;
3343 esac
3344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345   (eval "$ac_try") 2>&5
3346   ac_status=$?
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); }; }; then
3349   ac_cv_prog_cc_c89=$ac_arg
3350 else
3351   echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3353
3354
3355 fi
3356
3357 rm -f core conftest.err conftest.$ac_objext
3358   test "x$ac_cv_prog_cc_c89" != "xno" && break
3359 done
3360 rm -f conftest.$ac_ext
3361 CC=$ac_save_CC
3362
3363 fi
3364 # AC_CACHE_VAL
3365 case "x$ac_cv_prog_cc_c89" in
3366   x)
3367     { echo "$as_me:$LINENO: result: none needed" >&5
3368 echo "${ECHO_T}none needed" >&6; } ;;
3369   xno)
3370     { echo "$as_me:$LINENO: result: unsupported" >&5
3371 echo "${ECHO_T}unsupported" >&6; } ;;
3372   *)
3373     CC="$CC $ac_cv_prog_cc_c89"
3374     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3375 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3376 esac
3377
3378
3379 ac_ext=c
3380 ac_cpp='$CPP $CPPFLAGS'
3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384
3385
3386 ac_ext=c
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3392 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3393 # On Suns, sometimes $CPP names a directory.
3394 if test -n "$CPP" && test -d "$CPP"; then
3395   CPP=
3396 fi
3397 if test -z "$CPP"; then
3398   if test "${ac_cv_prog_CPP+set}" = set; then
3399   echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401       # Double quotes because CPP needs to be expanded
3402     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3403     do
3404       ac_preproc_ok=false
3405 for ac_c_preproc_warn_flag in '' yes
3406 do
3407   # Use a header file that comes with gcc, so configuring glibc
3408   # with a fresh cross-compiler works.
3409   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3410   # <limits.h> exists even on freestanding compilers.
3411   # On the NeXT, cc -E runs the code through the compiler's parser,
3412   # not just through cpp. "Syntax error" is here to catch this case.
3413   cat >conftest.$ac_ext <<_ACEOF
3414 /* confdefs.h.  */
3415 _ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h.  */
3419 #ifdef __STDC__
3420 # include <limits.h>
3421 #else
3422 # include <assert.h>
3423 #endif
3424                      Syntax error
3425 _ACEOF
3426 if { (ac_try="$ac_cpp conftest.$ac_ext"
3427 case "(($ac_try" in
3428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429   *) ac_try_echo=$ac_try;;
3430 esac
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3433   ac_status=$?
3434   grep -v '^ *+' conftest.er1 >conftest.err
3435   rm -f conftest.er1
3436   cat conftest.err >&5
3437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438   (exit $ac_status); } >/dev/null; then
3439   if test -s conftest.err; then
3440     ac_cpp_err=$ac_c_preproc_warn_flag
3441     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3442   else
3443     ac_cpp_err=
3444   fi
3445 else
3446   ac_cpp_err=yes
3447 fi
3448 if test -z "$ac_cpp_err"; then
3449   :
3450 else
3451   echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3453
3454   # Broken: fails on valid input.
3455 continue
3456 fi
3457
3458 rm -f conftest.err conftest.$ac_ext
3459
3460   # OK, works on sane cases.  Now check whether nonexistent headers
3461   # can be detected and how.
3462   cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h.  */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h.  */
3468 #include <ac_nonexistent.h>
3469 _ACEOF
3470 if { (ac_try="$ac_cpp conftest.$ac_ext"
3471 case "(($ac_try" in
3472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473   *) ac_try_echo=$ac_try;;
3474 esac
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3477   ac_status=$?
3478   grep -v '^ *+' conftest.er1 >conftest.err
3479   rm -f conftest.er1
3480   cat conftest.err >&5
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); } >/dev/null; then
3483   if test -s conftest.err; then
3484     ac_cpp_err=$ac_c_preproc_warn_flag
3485     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3486   else
3487     ac_cpp_err=
3488   fi
3489 else
3490   ac_cpp_err=yes
3491 fi
3492 if test -z "$ac_cpp_err"; then
3493   # Broken: success on invalid input.
3494 continue
3495 else
3496   echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3498
3499   # Passes both tests.
3500 ac_preproc_ok=:
3501 break
3502 fi
3503
3504 rm -f conftest.err conftest.$ac_ext
3505
3506 done
3507 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3508 rm -f conftest.err conftest.$ac_ext
3509 if $ac_preproc_ok; then
3510   break
3511 fi
3512
3513     done
3514     ac_cv_prog_CPP=$CPP
3515
3516 fi
3517   CPP=$ac_cv_prog_CPP
3518 else
3519   ac_cv_prog_CPP=$CPP
3520 fi
3521 { echo "$as_me:$LINENO: result: $CPP" >&5
3522 echo "${ECHO_T}$CPP" >&6; }
3523 ac_preproc_ok=false
3524 for ac_c_preproc_warn_flag in '' yes
3525 do
3526   # Use a header file that comes with gcc, so configuring glibc
3527   # with a fresh cross-compiler works.
3528   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3529   # <limits.h> exists even on freestanding compilers.
3530   # On the NeXT, cc -E runs the code through the compiler's parser,
3531   # not just through cpp. "Syntax error" is here to catch this case.
3532   cat >conftest.$ac_ext <<_ACEOF
3533 /* confdefs.h.  */
3534 _ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h.  */
3538 #ifdef __STDC__
3539 # include <limits.h>
3540 #else
3541 # include <assert.h>
3542 #endif
3543                      Syntax error
3544 _ACEOF
3545 if { (ac_try="$ac_cpp conftest.$ac_ext"
3546 case "(($ac_try" in
3547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548   *) ac_try_echo=$ac_try;;
3549 esac
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3552   ac_status=$?
3553   grep -v '^ *+' conftest.er1 >conftest.err
3554   rm -f conftest.er1
3555   cat conftest.err >&5
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); } >/dev/null; then
3558   if test -s conftest.err; then
3559     ac_cpp_err=$ac_c_preproc_warn_flag
3560     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3561   else
3562     ac_cpp_err=
3563   fi
3564 else
3565   ac_cpp_err=yes
3566 fi
3567 if test -z "$ac_cpp_err"; then
3568   :
3569 else
3570   echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3572
3573   # Broken: fails on valid input.
3574 continue
3575 fi
3576
3577 rm -f conftest.err conftest.$ac_ext
3578
3579   # OK, works on sane cases.  Now check whether nonexistent headers
3580   # can be detected and how.
3581   cat >conftest.$ac_ext <<_ACEOF
3582 /* confdefs.h.  */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h.  */
3587 #include <ac_nonexistent.h>
3588 _ACEOF
3589 if { (ac_try="$ac_cpp conftest.$ac_ext"
3590 case "(($ac_try" in
3591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592   *) ac_try_echo=$ac_try;;
3593 esac
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3596   ac_status=$?
3597   grep -v '^ *+' conftest.er1 >conftest.err
3598   rm -f conftest.er1
3599   cat conftest.err >&5
3600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601   (exit $ac_status); } >/dev/null; then
3602   if test -s conftest.err; then
3603     ac_cpp_err=$ac_c_preproc_warn_flag
3604     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3605   else
3606     ac_cpp_err=
3607   fi
3608 else
3609   ac_cpp_err=yes
3610 fi
3611 if test -z "$ac_cpp_err"; then
3612   # Broken: success on invalid input.
3613 continue
3614 else
3615   echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3617
3618   # Passes both tests.
3619 ac_preproc_ok=:
3620 break
3621 fi
3622
3623 rm -f conftest.err conftest.$ac_ext
3624
3625 done
3626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3627 rm -f conftest.err conftest.$ac_ext
3628 if $ac_preproc_ok; then
3629   :
3630 else
3631   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3632 See \`config.log' for more details." >&5
3633 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3634 See \`config.log' for more details." >&2;}
3635    { (exit 1); exit 1; }; }
3636 fi
3637
3638 ac_ext=c
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643
3644
3645 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3646 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3647 if test "${ac_cv_path_GREP+set}" = set; then
3648   echo $ECHO_N "(cached) $ECHO_C" >&6
3649 else
3650   # Extract the first word of "grep ggrep" to use in msg output
3651 if test -z "$GREP"; then
3652 set dummy grep ggrep; ac_prog_name=$2
3653 if test "${ac_cv_path_GREP+set}" = set; then
3654   echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656   ac_path_GREP_found=false
3657 # Loop through the user's path and test for each of PROGNAME-LIST
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3660 do
3661   IFS=$as_save_IFS
3662   test -z "$as_dir" && as_dir=.
3663   for ac_prog in grep ggrep; do
3664   for ac_exec_ext in '' $ac_executable_extensions; do
3665     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3666     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3667     # Check for GNU ac_path_GREP and select it if it is found.
3668   # Check for GNU $ac_path_GREP
3669 case `"$ac_path_GREP" --version 2>&1` in
3670 *GNU*)
3671   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3672 *)
3673   ac_count=0
3674   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3675   while :
3676   do
3677     cat "conftest.in" "conftest.in" >"conftest.tmp"
3678     mv "conftest.tmp" "conftest.in"
3679     cp "conftest.in" "conftest.nl"
3680     echo 'GREP' >> "conftest.nl"
3681     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3682     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3683     ac_count=`expr $ac_count + 1`
3684     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3685       # Best one so far, save it but keep looking for a better one
3686       ac_cv_path_GREP="$ac_path_GREP"
3687       ac_path_GREP_max=$ac_count
3688     fi
3689     # 10*(2^10) chars as input seems more than enough
3690     test $ac_count -gt 10 && break
3691   done
3692   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3693 esac
3694
3695
3696     $ac_path_GREP_found && break 3
3697   done
3698 done
3699
3700 done
3701 IFS=$as_save_IFS
3702
3703
3704 fi
3705
3706 GREP="$ac_cv_path_GREP"
3707 if test -z "$GREP"; then
3708   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3709 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3710    { (exit 1); exit 1; }; }
3711 fi
3712
3713 else
3714   ac_cv_path_GREP=$GREP
3715 fi
3716
3717
3718 fi
3719 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3720 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3721  GREP="$ac_cv_path_GREP"
3722
3723
3724 { echo "$as_me:$LINENO: checking for egrep" >&5
3725 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3726 if test "${ac_cv_path_EGREP+set}" = set; then
3727   echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3730    then ac_cv_path_EGREP="$GREP -E"
3731    else
3732      # Extract the first word of "egrep" to use in msg output
3733 if test -z "$EGREP"; then
3734 set dummy egrep; ac_prog_name=$2
3735 if test "${ac_cv_path_EGREP+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   ac_path_EGREP_found=false
3739 # Loop through the user's path and test for each of PROGNAME-LIST
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3742 do
3743   IFS=$as_save_IFS
3744   test -z "$as_dir" && as_dir=.
3745   for ac_prog in egrep; do
3746   for ac_exec_ext in '' $ac_executable_extensions; do
3747     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3748     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3749     # Check for GNU ac_path_EGREP and select it if it is found.
3750   # Check for GNU $ac_path_EGREP
3751 case `"$ac_path_EGREP" --version 2>&1` in
3752 *GNU*)
3753   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3754 *)
3755   ac_count=0
3756   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3757   while :
3758   do
3759     cat "conftest.in" "conftest.in" >"conftest.tmp"
3760     mv "conftest.tmp" "conftest.in"
3761     cp "conftest.in" "conftest.nl"
3762     echo 'EGREP' >> "conftest.nl"
3763     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3764     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3765     ac_count=`expr $ac_count + 1`
3766     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3767       # Best one so far, save it but keep looking for a better one
3768       ac_cv_path_EGREP="$ac_path_EGREP"
3769       ac_path_EGREP_max=$ac_count
3770     fi
3771     # 10*(2^10) chars as input seems more than enough
3772     test $ac_count -gt 10 && break
3773   done
3774   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3775 esac
3776
3777
3778     $ac_path_EGREP_found && break 3
3779   done
3780 done
3781
3782 done
3783 IFS=$as_save_IFS
3784
3785
3786 fi
3787
3788 EGREP="$ac_cv_path_EGREP"
3789 if test -z "$EGREP"; then
3790   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3791 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3792    { (exit 1); exit 1; }; }
3793 fi
3794
3795 else
3796   ac_cv_path_EGREP=$EGREP
3797 fi
3798
3799
3800    fi
3801 fi
3802 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3803 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3804  EGREP="$ac_cv_path_EGREP"
3805
3806
3807 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3808 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3809 if test "${ac_cv_header_stdc+set}" = set; then
3810   echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812   cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h.  */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h.  */
3818 #include <stdlib.h>
3819 #include <stdarg.h>
3820 #include <string.h>
3821 #include <float.h>
3822
3823 int
3824 main ()
3825 {
3826
3827   ;
3828   return 0;
3829 }
3830 _ACEOF
3831 rm -f conftest.$ac_objext
3832 if { (ac_try="$ac_compile"
3833 case "(($ac_try" in
3834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835   *) ac_try_echo=$ac_try;;
3836 esac
3837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838   (eval "$ac_compile") 2>conftest.er1
3839   ac_status=$?
3840   grep -v '^ *+' conftest.er1 >conftest.err
3841   rm -f conftest.er1
3842   cat conftest.err >&5
3843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844   (exit $ac_status); } &&
3845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3846   { (case "(($ac_try" in
3847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848   *) ac_try_echo=$ac_try;;
3849 esac
3850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851   (eval "$ac_try") 2>&5
3852   ac_status=$?
3853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854   (exit $ac_status); }; } &&
3855          { ac_try='test -s conftest.$ac_objext'
3856   { (case "(($ac_try" in
3857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858   *) ac_try_echo=$ac_try;;
3859 esac
3860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3861   (eval "$ac_try") 2>&5
3862   ac_status=$?
3863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864   (exit $ac_status); }; }; then
3865   ac_cv_header_stdc=yes
3866 else
3867   echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3869
3870         ac_cv_header_stdc=no
3871 fi
3872
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874
3875 if test $ac_cv_header_stdc = yes; then
3876   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3877   cat >conftest.$ac_ext <<_ACEOF
3878 /* confdefs.h.  */
3879 _ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h.  */
3883 #include <string.h>
3884
3885 _ACEOF
3886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3887   $EGREP "memchr" >/dev/null 2>&1; then
3888   :
3889 else
3890   ac_cv_header_stdc=no
3891 fi
3892 rm -f conftest*
3893
3894 fi
3895
3896 if test $ac_cv_header_stdc = yes; then
3897   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3898   cat >conftest.$ac_ext <<_ACEOF
3899 /* confdefs.h.  */
3900 _ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h.  */
3904 #include <stdlib.h>
3905
3906 _ACEOF
3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908   $EGREP "free" >/dev/null 2>&1; then
3909   :
3910 else
3911   ac_cv_header_stdc=no
3912 fi
3913 rm -f conftest*
3914
3915 fi
3916
3917 if test $ac_cv_header_stdc = yes; then
3918   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3919   if test "$cross_compiling" = yes; then
3920   :
3921 else
3922   cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h.  */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h.  */
3928 #include <ctype.h>
3929 #include <stdlib.h>
3930 #if ((' ' & 0x0FF) == 0x020)
3931 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3932 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3933 #else
3934 # define ISLOWER(c) \
3935                    (('a' <= (c) && (c) <= 'i') \
3936                      || ('j' <= (c) && (c) <= 'r') \
3937                      || ('s' <= (c) && (c) <= 'z'))
3938 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3939 #endif
3940
3941 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3942 int
3943 main ()
3944 {
3945   int i;
3946   for (i = 0; i < 256; i++)
3947     if (XOR (islower (i), ISLOWER (i))
3948         || toupper (i) != TOUPPER (i))
3949       return 2;
3950   return 0;
3951 }
3952 _ACEOF
3953 rm -f conftest$ac_exeext
3954 if { (ac_try="$ac_link"
3955 case "(($ac_try" in
3956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957   *) ac_try_echo=$ac_try;;
3958 esac
3959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960   (eval "$ac_link") 2>&5
3961   ac_status=$?
3962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3964   { (case "(($ac_try" in
3965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966   *) ac_try_echo=$ac_try;;
3967 esac
3968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969   (eval "$ac_try") 2>&5
3970   ac_status=$?
3971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972   (exit $ac_status); }; }; then
3973   :
3974 else
3975   echo "$as_me: program exited with status $ac_status" >&5
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3978
3979 ( exit $ac_status )
3980 ac_cv_header_stdc=no
3981 fi
3982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3983 fi
3984
3985
3986 fi
3987 fi
3988 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3989 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3990 if test $ac_cv_header_stdc = yes; then
3991
3992 cat >>confdefs.h <<\_ACEOF
3993 #define STDC_HEADERS 1
3994 _ACEOF
3995
3996 fi
3997
3998 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4009                   inttypes.h stdint.h unistd.h
4010 do
4011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4015   echo $ECHO_N "(cached) $ECHO_C" >&6
4016 else
4017   cat >conftest.$ac_ext <<_ACEOF
4018 /* confdefs.h.  */
4019 _ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h.  */
4023 $ac_includes_default
4024
4025 #include <$ac_header>
4026 _ACEOF
4027 rm -f conftest.$ac_objext
4028 if { (ac_try="$ac_compile"
4029 case "(($ac_try" in
4030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031   *) ac_try_echo=$ac_try;;
4032 esac
4033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034   (eval "$ac_compile") 2>conftest.er1
4035   ac_status=$?
4036   grep -v '^ *+' conftest.er1 >conftest.err
4037   rm -f conftest.er1
4038   cat conftest.err >&5
4039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040   (exit $ac_status); } &&
4041          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4042   { (case "(($ac_try" in
4043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044   *) ac_try_echo=$ac_try;;
4045 esac
4046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047   (eval "$ac_try") 2>&5
4048   ac_status=$?
4049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050   (exit $ac_status); }; } &&
4051          { ac_try='test -s conftest.$ac_objext'
4052   { (case "(($ac_try" in
4053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054   *) ac_try_echo=$ac_try;;
4055 esac
4056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4057   (eval "$ac_try") 2>&5
4058   ac_status=$?
4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); }; }; then
4061   eval "$as_ac_Header=yes"
4062 else
4063   echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4065
4066         eval "$as_ac_Header=no"
4067 fi
4068
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 fi
4071 ac_res=`eval echo '${'$as_ac_Header'}'`
4072                { echo "$as_me:$LINENO: result: $ac_res" >&5
4073 echo "${ECHO_T}$ac_res" >&6; }
4074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4075   cat >>confdefs.h <<_ACEOF
4076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4077 _ACEOF
4078
4079 fi
4080
4081 done
4082
4083
4084 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4085 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4086 if test "${ac_cv_c_bigendian+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   # See if sys/param.h defines the BYTE_ORDER macro.
4090 cat >conftest.$ac_ext <<_ACEOF
4091 /* confdefs.h.  */
4092 _ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h.  */
4096 #include <sys/types.h>
4097 #include <sys/param.h>
4098
4099 int
4100 main ()
4101 {
4102 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4103  bogus endian macros
4104 #endif
4105
4106   ;
4107   return 0;
4108 }
4109 _ACEOF
4110 rm -f conftest.$ac_objext
4111 if { (ac_try="$ac_compile"
4112 case "(($ac_try" in
4113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114   *) ac_try_echo=$ac_try;;
4115 esac
4116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4117   (eval "$ac_compile") 2>conftest.er1
4118   ac_status=$?
4119   grep -v '^ *+' conftest.er1 >conftest.err
4120   rm -f conftest.er1
4121   cat conftest.err >&5
4122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123   (exit $ac_status); } &&
4124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4125   { (case "(($ac_try" in
4126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127   *) ac_try_echo=$ac_try;;
4128 esac
4129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130   (eval "$ac_try") 2>&5
4131   ac_status=$?
4132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133   (exit $ac_status); }; } &&
4134          { ac_try='test -s conftest.$ac_objext'
4135   { (case "(($ac_try" in
4136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137   *) ac_try_echo=$ac_try;;
4138 esac
4139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140   (eval "$ac_try") 2>&5
4141   ac_status=$?
4142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); }; }; then
4144   # It does; now see whether it defined to BIG_ENDIAN or not.
4145 cat >conftest.$ac_ext <<_ACEOF
4146 /* confdefs.h.  */
4147 _ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h.  */
4151 #include <sys/types.h>
4152 #include <sys/param.h>
4153
4154 int
4155 main ()
4156 {
4157 #if BYTE_ORDER != BIG_ENDIAN
4158  not big endian
4159 #endif
4160
4161   ;
4162   return 0;
4163 }
4164 _ACEOF
4165 rm -f conftest.$ac_objext
4166 if { (ac_try="$ac_compile"
4167 case "(($ac_try" in
4168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169   *) ac_try_echo=$ac_try;;
4170 esac
4171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172   (eval "$ac_compile") 2>conftest.er1
4173   ac_status=$?
4174   grep -v '^ *+' conftest.er1 >conftest.err
4175   rm -f conftest.er1
4176   cat conftest.err >&5
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); } &&
4179          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4180   { (case "(($ac_try" in
4181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182   *) ac_try_echo=$ac_try;;
4183 esac
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185   (eval "$ac_try") 2>&5
4186   ac_status=$?
4187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); }; } &&
4189          { ac_try='test -s conftest.$ac_objext'
4190   { (case "(($ac_try" in
4191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192   *) ac_try_echo=$ac_try;;
4193 esac
4194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195   (eval "$ac_try") 2>&5
4196   ac_status=$?
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); }; }; then
4199   ac_cv_c_bigendian=yes
4200 else
4201   echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4203
4204         ac_cv_c_bigendian=no
4205 fi
4206
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 else
4209   echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4211
4212         # It does not; compile a test program.
4213 if test "$cross_compiling" = yes; then
4214   # try to guess the endianness by grepping values into an object file
4215   ac_cv_c_bigendian=unknown
4216   cat >conftest.$ac_ext <<_ACEOF
4217 /* confdefs.h.  */
4218 _ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h.  */
4222 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4223 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4224 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4225 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4226 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4227 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4228 int
4229 main ()
4230 {
4231  _ascii (); _ebcdic ();
4232   ;
4233   return 0;
4234 }
4235 _ACEOF
4236 rm -f conftest.$ac_objext
4237 if { (ac_try="$ac_compile"
4238 case "(($ac_try" in
4239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240   *) ac_try_echo=$ac_try;;
4241 esac
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243   (eval "$ac_compile") 2>conftest.er1
4244   ac_status=$?
4245   grep -v '^ *+' conftest.er1 >conftest.err
4246   rm -f conftest.er1
4247   cat conftest.err >&5
4248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249   (exit $ac_status); } &&
4250          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4251   { (case "(($ac_try" in
4252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253   *) ac_try_echo=$ac_try;;
4254 esac
4255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256   (eval "$ac_try") 2>&5
4257   ac_status=$?
4258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259   (exit $ac_status); }; } &&
4260          { ac_try='test -s conftest.$ac_objext'
4261   { (case "(($ac_try" in
4262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263   *) ac_try_echo=$ac_try;;
4264 esac
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266   (eval "$ac_try") 2>&5
4267   ac_status=$?
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); }; }; then
4270   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4271   ac_cv_c_bigendian=yes
4272 fi
4273 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4274   if test "$ac_cv_c_bigendian" = unknown; then
4275     ac_cv_c_bigendian=no
4276   else
4277     # finding both strings is unlikely to happen, but who knows?
4278     ac_cv_c_bigendian=unknown
4279   fi
4280 fi
4281 else
4282   echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4284
4285
4286 fi
4287
4288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289 else
4290   cat >conftest.$ac_ext <<_ACEOF
4291 /* confdefs.h.  */
4292 _ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h.  */
4296 $ac_includes_default
4297 int
4298 main ()
4299 {
4300
4301   /* Are we little or big endian?  From Harbison&Steele.  */
4302   union
4303   {
4304     long int l;
4305     char c[sizeof (long int)];
4306   } u;
4307   u.l = 1;
4308   return u.c[sizeof (long int) - 1] == 1;
4309
4310   ;
4311   return 0;
4312 }
4313 _ACEOF
4314 rm -f conftest$ac_exeext
4315 if { (ac_try="$ac_link"
4316 case "(($ac_try" in
4317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318   *) ac_try_echo=$ac_try;;
4319 esac
4320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321   (eval "$ac_link") 2>&5
4322   ac_status=$?
4323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4325   { (case "(($ac_try" in
4326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327   *) ac_try_echo=$ac_try;;
4328 esac
4329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330   (eval "$ac_try") 2>&5
4331   ac_status=$?
4332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333   (exit $ac_status); }; }; then
4334   ac_cv_c_bigendian=no
4335 else
4336   echo "$as_me: program exited with status $ac_status" >&5
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4339
4340 ( exit $ac_status )
4341 ac_cv_c_bigendian=yes
4342 fi
4343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4344 fi
4345
4346
4347 fi
4348
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 fi
4351 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4352 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4353 case $ac_cv_c_bigendian in
4354   yes)
4355     ENDIAN=big
4356  ;;
4357   no)
4358     ENDIAN=little
4359  ;;
4360   *)
4361     { { echo "$as_me:$LINENO: error: unknown endianness
4362 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4363 echo "$as_me: error: unknown endianness
4364 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4365    { (exit 1); exit 1; }; } ;;
4366 esac
4367
4368
4369 if test "$cross_compiling" = yes; then
4370   LLVM_CROSS_COMPILING=1
4371
4372
4373 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4374 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4375 if test "${ac_cv_build_exeext+set}" = set; then
4376   echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4379   ac_cv_build_exeext=.exe
4380 else
4381   ac_build_prefix=${build_alias}-
4382
4383   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4384 set dummy ${ac_build_prefix}gcc; ac_word=$2
4385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4387 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4388   echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390   if test -n "$BUILD_CC"; then
4391   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4395 do
4396   IFS=$as_save_IFS
4397   test -z "$as_dir" && as_dir=.
4398   for ac_exec_ext in '' $ac_executable_extensions; do
4399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4400     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4402     break 2
4403   fi
4404 done
4405 done
4406 IFS=$as_save_IFS
4407
4408 fi
4409 fi
4410 BUILD_CC=$ac_cv_prog_BUILD_CC
4411 if test -n "$BUILD_CC"; then
4412   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4413 echo "${ECHO_T}$BUILD_CC" >&6; }
4414 else
4415   { echo "$as_me:$LINENO: result: no" >&5
4416 echo "${ECHO_T}no" >&6; }
4417 fi
4418
4419
4420   if test -z "$BUILD_CC"; then
4421      # Extract the first word of "gcc", so it can be a program name with args.
4422 set dummy gcc; ac_word=$2
4423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4425 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4426   echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428   if test -n "$BUILD_CC"; then
4429   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4430 else
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434   IFS=$as_save_IFS
4435   test -z "$as_dir" && as_dir=.
4436   for ac_exec_ext in '' $ac_executable_extensions; do
4437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4438     ac_cv_prog_BUILD_CC="gcc"
4439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440     break 2
4441   fi
4442 done
4443 done
4444 IFS=$as_save_IFS
4445
4446 fi
4447 fi
4448 BUILD_CC=$ac_cv_prog_BUILD_CC
4449 if test -n "$BUILD_CC"; then
4450   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4451 echo "${ECHO_T}$BUILD_CC" >&6; }
4452 else
4453   { echo "$as_me:$LINENO: result: no" >&5
4454 echo "${ECHO_T}no" >&6; }
4455 fi
4456
4457
4458      if test -z "$BUILD_CC"; then
4459        # Extract the first word of "cc", so it can be a program name with args.
4460 set dummy cc; ac_word=$2
4461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4464   echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466   if test -n "$BUILD_CC"; then
4467   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4468 else
4469   ac_prog_rejected=no
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4472 do
4473   IFS=$as_save_IFS
4474   test -z "$as_dir" && as_dir=.
4475   for ac_exec_ext in '' $ac_executable_extensions; do
4476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4477     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4478        ac_prog_rejected=yes
4479        continue
4480      fi
4481     ac_cv_prog_BUILD_CC="cc"
4482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4483     break 2
4484   fi
4485 done
4486 done
4487 IFS=$as_save_IFS
4488
4489 if test $ac_prog_rejected = yes; then
4490   # We found a bogon in the path, so make sure we never use it.
4491   set dummy $ac_cv_prog_BUILD_CC
4492   shift
4493   if test $# != 0; then
4494     # We chose a different compiler from the bogus one.
4495     # However, it has the same basename, so the bogon will be chosen
4496     # first if we set BUILD_CC to just the basename; use the full file name.
4497     shift
4498     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4499   fi
4500 fi
4501 fi
4502 fi
4503 BUILD_CC=$ac_cv_prog_BUILD_CC
4504 if test -n "$BUILD_CC"; then
4505   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4506 echo "${ECHO_T}$BUILD_CC" >&6; }
4507 else
4508   { echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6; }
4510 fi
4511
4512
4513      fi
4514   fi
4515   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4516 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4517    { (exit 1); exit 1; }; }
4518   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4519   rm -f conftest*
4520   echo 'int main () { return 0; }' > conftest.$ac_ext
4521   ac_cv_build_exeext=
4522   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4523   (eval $ac_build_link) 2>&5
4524   ac_status=$?
4525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526   (exit $ac_status); }; then
4527     for file in conftest.*; do
4528       case $file in
4529       *.c | *.o | *.obj | *.dSYM) ;;
4530       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4531       esac
4532     done
4533   else
4534     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4535 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4536    { (exit 1); exit 1; }; }
4537   fi
4538   rm -f conftest*
4539   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4540 fi
4541 fi
4542
4543 BUILD_EXEEXT=""
4544 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4545 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4546 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4547 ac_build_exeext=$BUILD_EXEEXT
4548
4549   ac_build_prefix=${build_alias}-
4550   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4551 set dummy ${ac_build_prefix}g++; ac_word=$2
4552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4554 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   if test -n "$BUILD_CXX"; then
4558   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4559 else
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4562 do
4563   IFS=$as_save_IFS
4564   test -z "$as_dir" && as_dir=.
4565   for ac_exec_ext in '' $ac_executable_extensions; do
4566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4567     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569     break 2
4570   fi
4571 done
4572 done
4573 IFS=$as_save_IFS
4574
4575 fi
4576 fi
4577 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4578 if test -n "$BUILD_CXX"; then
4579   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4580 echo "${ECHO_T}$BUILD_CXX" >&6; }
4581 else
4582   { echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6; }
4584 fi
4585
4586
4587   if test -z "$BUILD_CXX"; then
4588      # Extract the first word of "g++", so it can be a program name with args.
4589 set dummy g++; ac_word=$2
4590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4593   echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595   if test -n "$BUILD_CXX"; then
4596   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4597 else
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4600 do
4601   IFS=$as_save_IFS
4602   test -z "$as_dir" && as_dir=.
4603   for ac_exec_ext in '' $ac_executable_extensions; do
4604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4605     ac_cv_prog_BUILD_CXX="g++"
4606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607     break 2
4608   fi
4609 done
4610 done
4611 IFS=$as_save_IFS
4612
4613 fi
4614 fi
4615 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4616 if test -n "$BUILD_CXX"; then
4617   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4618 echo "${ECHO_T}$BUILD_CXX" >&6; }
4619 else
4620   { echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6; }
4622 fi
4623
4624
4625      if test -z "$BUILD_CXX"; then
4626        # Extract the first word of "c++", so it can be a program name with args.
4627 set dummy c++; ac_word=$2
4628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4631   echo $ECHO_N "(cached) $ECHO_C" >&6
4632 else
4633   if test -n "$BUILD_CXX"; then
4634   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4635 else
4636   ac_prog_rejected=no
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640   IFS=$as_save_IFS
4641   test -z "$as_dir" && as_dir=.
4642   for ac_exec_ext in '' $ac_executable_extensions; do
4643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4644     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4645        ac_prog_rejected=yes
4646        continue
4647      fi
4648     ac_cv_prog_BUILD_CXX="c++"
4649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4650     break 2
4651   fi
4652 done
4653 done
4654 IFS=$as_save_IFS
4655
4656 if test $ac_prog_rejected = yes; then
4657   # We found a bogon in the path, so make sure we never use it.
4658   set dummy $ac_cv_prog_BUILD_CXX
4659   shift
4660   if test $# != 0; then
4661     # We chose a different compiler from the bogus one.
4662     # However, it has the same basename, so the bogon will be chosen
4663     # first if we set BUILD_CXX to just the basename; use the full file name.
4664     shift
4665     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4666   fi
4667 fi
4668 fi
4669 fi
4670 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4671 if test -n "$BUILD_CXX"; then
4672   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4673 echo "${ECHO_T}$BUILD_CXX" >&6; }
4674 else
4675   { echo "$as_me:$LINENO: result: no" >&5
4676 echo "${ECHO_T}no" >&6; }
4677 fi
4678
4679
4680      fi
4681   fi
4682 else
4683   LLVM_CROSS_COMPILING=0
4684
4685 fi
4686
4687 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4688   cvsbuild="yes"
4689   optimize="no"
4690   CVSBUILD=CVSBUILD=1
4691
4692 else
4693   cvsbuild="no"
4694   optimize="yes"
4695 fi
4696
4697
4698 # Check whether --enable-optimized was given.
4699 if test "${enable_optimized+set}" = set; then
4700   enableval=$enable_optimized;
4701 else
4702   enableval=$optimize
4703 fi
4704
4705 if test ${enableval} = "no" ; then
4706   ENABLE_OPTIMIZED=
4707
4708 else
4709   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4710
4711 fi
4712
4713 # Check whether --enable-profiling was given.
4714 if test "${enable_profiling+set}" = set; then
4715   enableval=$enable_profiling;
4716 else
4717   enableval="no"
4718 fi
4719
4720 if test ${enableval} = "no" ; then
4721   ENABLE_PROFILING=
4722
4723 else
4724   ENABLE_PROFILING=ENABLE_PROFILING=1
4725
4726 fi
4727
4728 # Check whether --enable-assertions was given.
4729 if test "${enable_assertions+set}" = set; then
4730   enableval=$enable_assertions;
4731 else
4732   enableval="yes"
4733 fi
4734
4735 if test ${enableval} = "yes" ; then
4736   DISABLE_ASSERTIONS=
4737
4738 else
4739   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4740
4741 fi
4742
4743 # Check whether --enable-expensive-checks was given.
4744 if test "${enable_expensive_checks+set}" = set; then
4745   enableval=$enable_expensive_checks;
4746 else
4747   enableval="no"
4748 fi
4749
4750 if test ${enableval} = "yes" ; then
4751   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4752
4753   EXPENSIVE_CHECKS=yes
4754
4755 else
4756   ENABLE_EXPENSIVE_CHECKS=
4757
4758   EXPENSIVE_CHECKS=no
4759
4760 fi
4761
4762 # Check whether --enable-debug-runtime was given.
4763 if test "${enable_debug_runtime+set}" = set; then
4764   enableval=$enable_debug_runtime;
4765 else
4766   enableval=no
4767 fi
4768
4769 if test ${enableval} = "no" ; then
4770   DEBUG_RUNTIME=
4771
4772 else
4773   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4774
4775 fi
4776
4777 # Check whether --enable-debug-symbols was given.
4778 if test "${enable_debug_symbols+set}" = set; then
4779   enableval=$enable_debug_symbols;
4780 else
4781   enableval=no
4782 fi
4783
4784 if test ${enableval} = "no" ; then
4785   DEBUG_SYMBOLS=
4786
4787 else
4788   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4789
4790 fi
4791
4792 # Check whether --enable-jit was given.
4793 if test "${enable_jit+set}" = set; then
4794   enableval=$enable_jit;
4795 else
4796   enableval=default
4797 fi
4798
4799 if test ${enableval} = "no"
4800 then
4801   JIT=
4802
4803 else
4804   case "$llvm_cv_target_arch" in
4805     x86)         TARGET_HAS_JIT=1
4806  ;;
4807     Sparc)       TARGET_HAS_JIT=0
4808  ;;
4809     PowerPC)     TARGET_HAS_JIT=1
4810  ;;
4811     x86_64)      TARGET_HAS_JIT=1
4812  ;;
4813     Alpha)       TARGET_HAS_JIT=1
4814  ;;
4815     ARM)         TARGET_HAS_JIT=1
4816  ;;
4817     Mips)        TARGET_HAS_JIT=0
4818  ;;
4819     PIC16)       TARGET_HAS_JIT=0
4820  ;;
4821     XCore)       TARGET_HAS_JIT=0
4822  ;;
4823     MSP430)      TARGET_HAS_JIT=0
4824  ;;
4825     SystemZ)     TARGET_HAS_JIT=0
4826  ;;
4827     Blackfin)    TARGET_HAS_JIT=0
4828  ;;
4829     MBlaze)      TARGET_HAS_JIT=0
4830  ;;
4831     *)           TARGET_HAS_JIT=0
4832  ;;
4833   esac
4834 fi
4835
4836 # Check whether --enable-doxygen was given.
4837 if test "${enable_doxygen+set}" = set; then
4838   enableval=$enable_doxygen;
4839 else
4840   enableval=default
4841 fi
4842
4843 case "$enableval" in
4844   yes) ENABLE_DOXYGEN=1
4845  ;;
4846   no)  ENABLE_DOXYGEN=0
4847  ;;
4848   default) ENABLE_DOXYGEN=0
4849  ;;
4850   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4851 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4852    { (exit 1); exit 1; }; } ;;
4853 esac
4854
4855 # Check whether --enable-threads was given.
4856 if test "${enable_threads+set}" = set; then
4857   enableval=$enable_threads;
4858 else
4859   enableval=default
4860 fi
4861
4862 case "$enableval" in
4863   yes) ENABLE_THREADS=1
4864  ;;
4865   no)  ENABLE_THREADS=0
4866  ;;
4867   default) ENABLE_THREADS=1
4868  ;;
4869   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4870 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4871    { (exit 1); exit 1; }; } ;;
4872 esac
4873
4874 cat >>confdefs.h <<_ACEOF
4875 #define ENABLE_THREADS $ENABLE_THREADS
4876 _ACEOF
4877
4878
4879 # Check whether --enable-pic was given.
4880 if test "${enable_pic+set}" = set; then
4881   enableval=$enable_pic;
4882 else
4883   enableval=default
4884 fi
4885
4886 case "$enableval" in
4887   yes) ENABLE_PIC=1
4888  ;;
4889   no)  ENABLE_PIC=0
4890  ;;
4891   default) ENABLE_PIC=1
4892  ;;
4893   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4894 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4895    { (exit 1); exit 1; }; } ;;
4896 esac
4897
4898 cat >>confdefs.h <<_ACEOF
4899 #define ENABLE_PIC $ENABLE_PIC
4900 _ACEOF
4901
4902
4903 # Check whether --enable-shared was given.
4904 if test "${enable_shared+set}" = set; then
4905   enableval=$enable_shared;
4906 else
4907   enableval=default
4908 fi
4909
4910 case "$enableval" in
4911   yes) ENABLE_SHARED=1
4912  ;;
4913   no)  ENABLE_SHARED=0
4914  ;;
4915   default) ENABLE_SHARED=0
4916  ;;
4917   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4918 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4919    { (exit 1); exit 1; }; } ;;
4920 esac
4921
4922 # Check whether --enable-timestamps was given.
4923 if test "${enable_timestamps+set}" = set; then
4924   enableval=$enable_timestamps;
4925 else
4926   enableval=default
4927 fi
4928
4929 case "$enableval" in
4930   yes) ENABLE_TIMESTAMPS=1
4931  ;;
4932   no)  ENABLE_TIMESTAMPS=0
4933  ;;
4934   default) ENABLE_TIMESTAMPS=1
4935  ;;
4936   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4937 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4938    { (exit 1); exit 1; }; } ;;
4939 esac
4940
4941 cat >>confdefs.h <<_ACEOF
4942 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4943 _ACEOF
4944
4945
4946 TARGETS_TO_BUILD=""
4947 # Check whether --enable-targets was given.
4948 if test "${enable_targets+set}" = set; then
4949   enableval=$enable_targets;
4950 else
4951   enableval=all
4952 fi
4953
4954 if test "$enableval" = host-only ; then
4955   enableval=host
4956 fi
4957 case "$enableval" in
4958   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4959   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4960       case "$a_target" in
4961         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4962         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4963         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4964         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4965         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4966         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4967         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4968         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4969         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4970         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4971         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4972         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4973         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4974         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4975         msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4976         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4977         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4978         host) case "$llvm_cv_target_arch" in
4979             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4980             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4981             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4982             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4983             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4984             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4985             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4986             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4987             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4988             PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4989             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4990             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4991             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4992             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4993             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4994 echo "$as_me: error: Can not set target to build" >&2;}
4995    { (exit 1); exit 1; }; } ;;
4996           esac ;;
4997         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4998 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4999    { (exit 1); exit 1; }; } ;;
5000       esac
5001   done
5002   ;;
5003 esac
5004 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5005
5006
5007 # Determine whether we are building LLVM support for the native architecture.
5008 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5009 for a_target in $TARGETS_TO_BUILD; do
5010   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5011     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5012
5013 cat >>confdefs.h <<_ACEOF
5014 #define LLVM_NATIVE_ARCHNAME $LLVM_NATIVE_ARCH
5015 _ACEOF
5016
5017
5018 cat >>confdefs.h <<_ACEOF
5019 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5020 _ACEOF
5021
5022   fi
5023 done
5024
5025 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5026 # target feature def files.
5027 LLVM_ENUM_TARGETS=""
5028 LLVM_ENUM_ASM_PRINTERS=""
5029 LLVM_ENUM_ASM_PARSERS=""
5030 LLVM_ENUM_DISASSEMBLERS=""
5031 for target_to_build in $TARGETS_TO_BUILD; do
5032   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5033   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5034     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5035   fi
5036   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5037     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5038   fi
5039   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5040     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5041   fi
5042 done
5043
5044
5045
5046
5047
5048 # Check whether --enable-cbe-printf-a was given.
5049 if test "${enable_cbe_printf_a+set}" = set; then
5050   enableval=$enable_cbe_printf_a;
5051 else
5052   enableval=default
5053 fi
5054
5055 case "$enableval" in
5056   yes) ENABLE_CBE_PRINTF_A=1
5057  ;;
5058   no)  ENABLE_CBE_PRINTF_A=0
5059  ;;
5060   default)  ENABLE_CBE_PRINTF_A=1
5061  ;;
5062   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5063 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5064    { (exit 1); exit 1; }; } ;;
5065 esac
5066
5067 cat >>confdefs.h <<_ACEOF
5068 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5069 _ACEOF
5070
5071
5072
5073 # Check whether --with-llvmgccdir was given.
5074 if test "${with_llvmgccdir+set}" = set; then
5075   withval=$with_llvmgccdir;
5076 else
5077   withval=default
5078 fi
5079
5080 case "$withval" in
5081   default) WITH_LLVMGCCDIR=default ;;
5082   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5083   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5084 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5085    { (exit 1); exit 1; }; } ;;
5086 esac
5087
5088
5089 # Check whether --with-llvmgcc was given.
5090 if test "${with_llvmgcc+set}" = set; then
5091   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5092       WITH_LLVMGCCDIR=""
5093 fi
5094
5095
5096
5097 # Check whether --with-llvmgxx was given.
5098 if test "${with_llvmgxx+set}" = set; then
5099   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5100     WITH_LLVMGCCDIR=""
5101 fi
5102
5103
5104 if test -n "$LLVMGCC"; then
5105    LLVMGCCCOMMAND="$LLVMGCC"
5106 fi
5107
5108 if test -n "$LLVMGXX"; then
5109    LLVMGXXCOMMAND="$LLVMGXX"
5110 fi
5111
5112 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5113    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5114 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5115    { (exit 1); exit 1; }; };
5116 fi
5117
5118 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5119    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5120 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5121    { (exit 1); exit 1; }; };
5122 fi
5123
5124
5125 # Check whether --with-clang was given.
5126 if test "${with_clang+set}" = set; then
5127   withval=$with_clang;
5128 else
5129   with_clang=default
5130 fi
5131
5132
5133
5134 # Check whether --with-built-clang was given.
5135 if test "${with_built_clang+set}" = set; then
5136   withval=$with_built_clang;
5137 else
5138   with_built_clang=check
5139 fi
5140
5141
5142 { echo "$as_me:$LINENO: checking clang compiler" >&5
5143 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5144 WITH_CLANGPATH=""
5145 WITH_BUILT_CLANG=0
5146 if test "$with_clang" != "default"; then
5147    WITH_CLANGPATH="$with_clang"
5148    if ! test -x "$WITH_CLANGPATH"; then
5149      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5150 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5151    { (exit 1); exit 1; }; }
5152    fi
5153 elif test "$with_built_clang" = "yes"; then
5154    WITH_BUILT_CLANG=1
5155 elif test "$with_built_clang" = "no"; then
5156    WITH_BUILT_CLANG=0
5157 else
5158    if test "$with_built_clang" != "check"; then
5159       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5160 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5161    { (exit 1); exit 1; }; }
5162    fi
5163
5164    if test -f ${srcdir}/tools/clang/README.txt; then
5165      WITH_BUILT_CLANG=1
5166    fi
5167 fi
5168
5169 if ! test -z "$WITH_CLANGPATH"; then
5170    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5171 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5172    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5173 elif test "$WITH_BUILT_CLANG" = "1"; then
5174    { echo "$as_me:$LINENO: result: built" >&5
5175 echo "${ECHO_T}built" >&6; }
5176 else
5177    { echo "$as_me:$LINENO: result: none" >&5
5178 echo "${ECHO_T}none" >&6; }
5179 fi
5180 CLANGPATH=$WITH_CLANGPATH
5181
5182 CLANGXXPATH=$WITH_CLANGXXPATH
5183
5184 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5185
5186
5187
5188 # Check whether --with-optimize-option was given.
5189 if test "${with_optimize_option+set}" = set; then
5190   withval=$with_optimize_option;
5191 else
5192   withval=default
5193 fi
5194
5195 { echo "$as_me:$LINENO: checking optimization flags" >&5
5196 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5197 case "$withval" in
5198   default)
5199     case "$llvm_cv_os_type" in
5200     FreeBSD) optimize_option=-O2 ;;
5201     MingW) optimize_option=-O2 ;;
5202     *)     optimize_option=-O3 ;;
5203     esac ;;
5204   *) optimize_option="$withval" ;;
5205 esac
5206 OPTIMIZE_OPTION=$optimize_option
5207
5208 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5209 echo "${ECHO_T}$optimize_option" >&6; }
5210
5211
5212 # Check whether --with-extra-options was given.
5213 if test "${with_extra_options+set}" = set; then
5214   withval=$with_extra_options;
5215 else
5216   withval=default
5217 fi
5218
5219 case "$withval" in
5220   default) EXTRA_OPTIONS= ;;
5221   *) EXTRA_OPTIONS=$withval ;;
5222 esac
5223 EXTRA_OPTIONS=$EXTRA_OPTIONS
5224
5225
5226 # Check whether --enable-bindings was given.
5227 if test "${enable_bindings+set}" = set; then
5228   enableval=$enable_bindings;
5229 else
5230   enableval=default
5231 fi
5232
5233 BINDINGS_TO_BUILD=""
5234 case "$enableval" in
5235   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5236   all ) BINDINGS_TO_BUILD="ocaml" ;;
5237   none | no) BINDINGS_TO_BUILD="" ;;
5238   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5239       case "$a_binding" in
5240         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5241         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5242 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5243    { (exit 1); exit 1; }; } ;;
5244       esac
5245   done
5246   ;;
5247 esac
5248
5249
5250 # Check whether --with-ocaml-libdir was given.
5251 if test "${with_ocaml_libdir+set}" = set; then
5252   withval=$with_ocaml_libdir;
5253 else
5254   withval=auto
5255 fi
5256
5257 case "$withval" in
5258   auto) with_ocaml_libdir="$withval" ;;
5259   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5260   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5261 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5262    { (exit 1); exit 1; }; } ;;
5263 esac
5264
5265
5266 # Check whether --with-c-include-dirs was given.
5267 if test "${with_c_include_dirs+set}" = set; then
5268   withval=$with_c_include_dirs;
5269 else
5270   withval=""
5271 fi
5272
5273
5274 cat >>confdefs.h <<_ACEOF
5275 #define C_INCLUDE_DIRS "$withval"
5276 _ACEOF
5277
5278
5279
5280 # Check whether --with-cxx-include-root was given.
5281 if test "${with_cxx_include_root+set}" = set; then
5282   withval=$with_cxx_include_root;
5283 else
5284   withval=""
5285 fi
5286
5287
5288 cat >>confdefs.h <<_ACEOF
5289 #define CXX_INCLUDE_ROOT "$withval"
5290 _ACEOF
5291
5292
5293
5294 # Check whether --with-cxx-include-arch was given.
5295 if test "${with_cxx_include_arch+set}" = set; then
5296   withval=$with_cxx_include_arch;
5297 else
5298   withval=""
5299 fi
5300
5301
5302 cat >>confdefs.h <<_ACEOF
5303 #define CXX_INCLUDE_ARCH "$withval"
5304 _ACEOF
5305
5306
5307
5308 # Check whether --with-cxx-include-32bit-dir was given.
5309 if test "${with_cxx_include_32bit_dir+set}" = set; then
5310   withval=$with_cxx_include_32bit_dir;
5311 else
5312   withval=""
5313 fi
5314
5315
5316 cat >>confdefs.h <<_ACEOF
5317 #define CXX_INCLUDE_32BIT_DIR "$withval"
5318 _ACEOF
5319
5320
5321
5322 # Check whether --with-cxx-include-64bit-dir was given.
5323 if test "${with_cxx_include_64bit_dir+set}" = set; then
5324   withval=$with_cxx_include_64bit_dir;
5325 else
5326   withval=""
5327 fi
5328
5329
5330 cat >>confdefs.h <<_ACEOF
5331 #define CXX_INCLUDE_64BIT_DIR "$withval"
5332 _ACEOF
5333
5334
5335
5336 # Check whether --with-binutils-include was given.
5337 if test "${with_binutils_include+set}" = set; then
5338   withval=$with_binutils_include;
5339 else
5340   withval=default
5341 fi
5342
5343 case "$withval" in
5344   default) WITH_BINUTILS_INCDIR=default ;;
5345   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5346   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5347 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5348    { (exit 1); exit 1; }; } ;;
5349 esac
5350 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5351   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5352
5353   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5354      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5355      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5356 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5357    { (exit 1); exit 1; }; };
5358   fi
5359 fi
5360
5361 # Check whether --enable-libffi was given.
5362 if test "${enable_libffi+set}" = set; then
5363   enableval=$enable_libffi; case "$enableval" in
5364     yes) llvm_cv_enable_libffi="yes" ;;
5365     no)  llvm_cv_enable_libffi="no"  ;;
5366     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5367 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5368    { (exit 1); exit 1; }; } ;;
5369   esac
5370 else
5371   llvm_cv_enable_libffi=no
5372 fi
5373
5374
5375
5376 ac_ext=c
5377 ac_cpp='$CPP $CPPFLAGS'
5378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5381 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5382 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5383 # On Suns, sometimes $CPP names a directory.
5384 if test -n "$CPP" && test -d "$CPP"; then
5385   CPP=
5386 fi
5387 if test -z "$CPP"; then
5388   if test "${ac_cv_prog_CPP+set}" = set; then
5389   echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391       # Double quotes because CPP needs to be expanded
5392     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5393     do
5394       ac_preproc_ok=false
5395 for ac_c_preproc_warn_flag in '' yes
5396 do
5397   # Use a header file that comes with gcc, so configuring glibc
5398   # with a fresh cross-compiler works.
5399   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5400   # <limits.h> exists even on freestanding compilers.
5401   # On the NeXT, cc -E runs the code through the compiler's parser,
5402   # not just through cpp. "Syntax error" is here to catch this case.
5403   cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h.  */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h.  */
5409 #ifdef __STDC__
5410 # include <limits.h>
5411 #else
5412 # include <assert.h>
5413 #endif
5414                      Syntax error
5415 _ACEOF
5416 if { (ac_try="$ac_cpp conftest.$ac_ext"
5417 case "(($ac_try" in
5418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419   *) ac_try_echo=$ac_try;;
5420 esac
5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5423   ac_status=$?
5424   grep -v '^ *+' conftest.er1 >conftest.err
5425   rm -f conftest.er1
5426   cat conftest.err >&5
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); } >/dev/null; then
5429   if test -s conftest.err; then
5430     ac_cpp_err=$ac_c_preproc_warn_flag
5431     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5432   else
5433     ac_cpp_err=
5434   fi
5435 else
5436   ac_cpp_err=yes
5437 fi
5438 if test -z "$ac_cpp_err"; then
5439   :
5440 else
5441   echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5443
5444   # Broken: fails on valid input.
5445 continue
5446 fi
5447
5448 rm -f conftest.err conftest.$ac_ext
5449
5450   # OK, works on sane cases.  Now check whether nonexistent headers
5451   # can be detected and how.
5452   cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h.  */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h.  */
5458 #include <ac_nonexistent.h>
5459 _ACEOF
5460 if { (ac_try="$ac_cpp conftest.$ac_ext"
5461 case "(($ac_try" in
5462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463   *) ac_try_echo=$ac_try;;
5464 esac
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5467   ac_status=$?
5468   grep -v '^ *+' conftest.er1 >conftest.err
5469   rm -f conftest.er1
5470   cat conftest.err >&5
5471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472   (exit $ac_status); } >/dev/null; then
5473   if test -s conftest.err; then
5474     ac_cpp_err=$ac_c_preproc_warn_flag
5475     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5476   else
5477     ac_cpp_err=
5478   fi
5479 else
5480   ac_cpp_err=yes
5481 fi
5482 if test -z "$ac_cpp_err"; then
5483   # Broken: success on invalid input.
5484 continue
5485 else
5486   echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5488
5489   # Passes both tests.
5490 ac_preproc_ok=:
5491 break
5492 fi
5493
5494 rm -f conftest.err conftest.$ac_ext
5495
5496 done
5497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5498 rm -f conftest.err conftest.$ac_ext
5499 if $ac_preproc_ok; then
5500   break
5501 fi
5502
5503     done
5504     ac_cv_prog_CPP=$CPP
5505
5506 fi
5507   CPP=$ac_cv_prog_CPP
5508 else
5509   ac_cv_prog_CPP=$CPP
5510 fi
5511 { echo "$as_me:$LINENO: result: $CPP" >&5
5512 echo "${ECHO_T}$CPP" >&6; }
5513 ac_preproc_ok=false
5514 for ac_c_preproc_warn_flag in '' yes
5515 do
5516   # Use a header file that comes with gcc, so configuring glibc
5517   # with a fresh cross-compiler works.
5518   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5519   # <limits.h> exists even on freestanding compilers.
5520   # On the NeXT, cc -E runs the code through the compiler's parser,
5521   # not just through cpp. "Syntax error" is here to catch this case.
5522   cat >conftest.$ac_ext <<_ACEOF
5523 /* confdefs.h.  */
5524 _ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h.  */
5528 #ifdef __STDC__
5529 # include <limits.h>
5530 #else
5531 # include <assert.h>
5532 #endif
5533                      Syntax error
5534 _ACEOF
5535 if { (ac_try="$ac_cpp conftest.$ac_ext"
5536 case "(($ac_try" in
5537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538   *) ac_try_echo=$ac_try;;
5539 esac
5540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5542   ac_status=$?
5543   grep -v '^ *+' conftest.er1 >conftest.err
5544   rm -f conftest.er1
5545   cat conftest.err >&5
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); } >/dev/null; then
5548   if test -s conftest.err; then
5549     ac_cpp_err=$ac_c_preproc_warn_flag
5550     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5551   else
5552     ac_cpp_err=
5553   fi
5554 else
5555   ac_cpp_err=yes
5556 fi
5557 if test -z "$ac_cpp_err"; then
5558   :
5559 else
5560   echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5562
5563   # Broken: fails on valid input.
5564 continue
5565 fi
5566
5567 rm -f conftest.err conftest.$ac_ext
5568
5569   # OK, works on sane cases.  Now check whether nonexistent headers
5570   # can be detected and how.
5571   cat >conftest.$ac_ext <<_ACEOF
5572 /* confdefs.h.  */
5573 _ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h.  */
5577 #include <ac_nonexistent.h>
5578 _ACEOF
5579 if { (ac_try="$ac_cpp conftest.$ac_ext"
5580 case "(($ac_try" in
5581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582   *) ac_try_echo=$ac_try;;
5583 esac
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5586   ac_status=$?
5587   grep -v '^ *+' conftest.er1 >conftest.err
5588   rm -f conftest.er1
5589   cat conftest.err >&5
5590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591   (exit $ac_status); } >/dev/null; then
5592   if test -s conftest.err; then
5593     ac_cpp_err=$ac_c_preproc_warn_flag
5594     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5595   else
5596     ac_cpp_err=
5597   fi
5598 else
5599   ac_cpp_err=yes
5600 fi
5601 if test -z "$ac_cpp_err"; then
5602   # Broken: success on invalid input.
5603 continue
5604 else
5605   echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5607
5608   # Passes both tests.
5609 ac_preproc_ok=:
5610 break
5611 fi
5612
5613 rm -f conftest.err conftest.$ac_ext
5614
5615 done
5616 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5617 rm -f conftest.err conftest.$ac_ext
5618 if $ac_preproc_ok; then
5619   :
5620 else
5621   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5622 See \`config.log' for more details." >&5
5623 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5624 See \`config.log' for more details." >&2;}
5625    { (exit 1); exit 1; }; }
5626 fi
5627
5628 ac_ext=c
5629 ac_cpp='$CPP $CPPFLAGS'
5630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5633
5634 ac_ext=c
5635 ac_cpp='$CPP $CPPFLAGS'
5636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639 if test -n "$ac_tool_prefix"; then
5640   for ac_prog in gcc
5641   do
5642     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5646 if test "${ac_cv_prog_CC+set}" = set; then
5647   echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649   if test -n "$CC"; then
5650   ac_cv_prog_CC="$CC" # Let the user override the test.
5651 else
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5654 do
5655   IFS=$as_save_IFS
5656   test -z "$as_dir" && as_dir=.
5657   for ac_exec_ext in '' $ac_executable_extensions; do
5658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5659     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5661     break 2
5662   fi
5663 done
5664 done
5665 IFS=$as_save_IFS
5666
5667 fi
5668 fi
5669 CC=$ac_cv_prog_CC
5670 if test -n "$CC"; then
5671   { echo "$as_me:$LINENO: result: $CC" >&5
5672 echo "${ECHO_T}$CC" >&6; }
5673 else
5674   { echo "$as_me:$LINENO: result: no" >&5
5675 echo "${ECHO_T}no" >&6; }
5676 fi
5677
5678
5679     test -n "$CC" && break
5680   done
5681 fi
5682 if test -z "$CC"; then
5683   ac_ct_CC=$CC
5684   for ac_prog in gcc
5685 do
5686   # Extract the first word of "$ac_prog", so it can be a program name with args.
5687 set dummy $ac_prog; ac_word=$2
5688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5690 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5691   echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693   if test -n "$ac_ct_CC"; then
5694   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5695 else
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5698 do
5699   IFS=$as_save_IFS
5700   test -z "$as_dir" && as_dir=.
5701   for ac_exec_ext in '' $ac_executable_extensions; do
5702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5703     ac_cv_prog_ac_ct_CC="$ac_prog"
5704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5705     break 2
5706   fi
5707 done
5708 done
5709 IFS=$as_save_IFS
5710
5711 fi
5712 fi
5713 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5714 if test -n "$ac_ct_CC"; then
5715   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5716 echo "${ECHO_T}$ac_ct_CC" >&6; }
5717 else
5718   { echo "$as_me:$LINENO: result: no" >&5
5719 echo "${ECHO_T}no" >&6; }
5720 fi
5721
5722
5723   test -n "$ac_ct_CC" && break
5724 done
5725
5726   if test "x$ac_ct_CC" = x; then
5727     CC=""
5728   else
5729     case $cross_compiling:$ac_tool_warned in
5730 yes:)
5731 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5732 whose name does not start with the host triplet.  If you think this
5733 configuration is useful to you, please write to autoconf@gnu.org." >&5
5734 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5735 whose name does not start with the host triplet.  If you think this
5736 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5737 ac_tool_warned=yes ;;
5738 esac
5739     CC=$ac_ct_CC
5740   fi
5741 fi
5742
5743
5744 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5745 See \`config.log' for more details." >&5
5746 echo "$as_me: error: no acceptable C compiler found in \$PATH
5747 See \`config.log' for more details." >&2;}
5748    { (exit 1); exit 1; }; }
5749
5750 # Provide some information about the compiler.
5751 echo "$as_me:$LINENO: checking for C compiler version" >&5
5752 ac_compiler=`set X $ac_compile; echo $2`
5753 { (ac_try="$ac_compiler --version >&5"
5754 case "(($ac_try" in
5755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756   *) ac_try_echo=$ac_try;;
5757 esac
5758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759   (eval "$ac_compiler --version >&5") 2>&5
5760   ac_status=$?
5761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762   (exit $ac_status); }
5763 { (ac_try="$ac_compiler -v >&5"
5764 case "(($ac_try" in
5765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5766   *) ac_try_echo=$ac_try;;
5767 esac
5768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5769   (eval "$ac_compiler -v >&5") 2>&5
5770   ac_status=$?
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); }
5773 { (ac_try="$ac_compiler -V >&5"
5774 case "(($ac_try" in
5775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776   *) ac_try_echo=$ac_try;;
5777 esac
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779   (eval "$ac_compiler -V >&5") 2>&5
5780   ac_status=$?
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); }
5783
5784 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5785 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5786 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5787   echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789   cat >conftest.$ac_ext <<_ACEOF
5790 /* confdefs.h.  */
5791 _ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h.  */
5795
5796 int
5797 main ()
5798 {
5799 #ifndef __GNUC__
5800        choke me
5801 #endif
5802
5803   ;
5804   return 0;
5805 }
5806 _ACEOF
5807 rm -f conftest.$ac_objext
5808 if { (ac_try="$ac_compile"
5809 case "(($ac_try" in
5810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811   *) ac_try_echo=$ac_try;;
5812 esac
5813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814   (eval "$ac_compile") 2>conftest.er1
5815   ac_status=$?
5816   grep -v '^ *+' conftest.er1 >conftest.err
5817   rm -f conftest.er1
5818   cat conftest.err >&5
5819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820   (exit $ac_status); } &&
5821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5822   { (case "(($ac_try" in
5823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824   *) ac_try_echo=$ac_try;;
5825 esac
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827   (eval "$ac_try") 2>&5
5828   ac_status=$?
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); }; } &&
5831          { ac_try='test -s conftest.$ac_objext'
5832   { (case "(($ac_try" in
5833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834   *) ac_try_echo=$ac_try;;
5835 esac
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837   (eval "$ac_try") 2>&5
5838   ac_status=$?
5839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); }; }; then
5841   ac_compiler_gnu=yes
5842 else
5843   echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5845
5846         ac_compiler_gnu=no
5847 fi
5848
5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5851
5852 fi
5853 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5854 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5855 GCC=`test $ac_compiler_gnu = yes && echo yes`
5856 ac_test_CFLAGS=${CFLAGS+set}
5857 ac_save_CFLAGS=$CFLAGS
5858 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5859 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5860 if test "${ac_cv_prog_cc_g+set}" = set; then
5861   echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
5863   ac_save_c_werror_flag=$ac_c_werror_flag
5864    ac_c_werror_flag=yes
5865    ac_cv_prog_cc_g=no
5866    CFLAGS="-g"
5867    cat >conftest.$ac_ext <<_ACEOF
5868 /* confdefs.h.  */
5869 _ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h.  */
5873
5874 int
5875 main ()
5876 {
5877
5878   ;
5879   return 0;
5880 }
5881 _ACEOF
5882 rm -f conftest.$ac_objext
5883 if { (ac_try="$ac_compile"
5884 case "(($ac_try" in
5885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886   *) ac_try_echo=$ac_try;;
5887 esac
5888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889   (eval "$ac_compile") 2>conftest.er1
5890   ac_status=$?
5891   grep -v '^ *+' conftest.er1 >conftest.err
5892   rm -f conftest.er1
5893   cat conftest.err >&5
5894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895   (exit $ac_status); } &&
5896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
5903   ac_status=$?
5904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905   (exit $ac_status); }; } &&
5906          { ac_try='test -s conftest.$ac_objext'
5907   { (case "(($ac_try" in
5908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909   *) ac_try_echo=$ac_try;;
5910 esac
5911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912   (eval "$ac_try") 2>&5
5913   ac_status=$?
5914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915   (exit $ac_status); }; }; then
5916   ac_cv_prog_cc_g=yes
5917 else
5918   echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5920
5921         CFLAGS=""
5922       cat >conftest.$ac_ext <<_ACEOF
5923 /* confdefs.h.  */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h.  */
5928
5929 int
5930 main ()
5931 {
5932
5933   ;
5934   return 0;
5935 }
5936 _ACEOF
5937 rm -f conftest.$ac_objext
5938 if { (ac_try="$ac_compile"
5939 case "(($ac_try" in
5940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941   *) ac_try_echo=$ac_try;;
5942 esac
5943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944   (eval "$ac_compile") 2>conftest.er1
5945   ac_status=$?
5946   grep -v '^ *+' conftest.er1 >conftest.err
5947   rm -f conftest.er1
5948   cat conftest.err >&5
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); } &&
5951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5952   { (case "(($ac_try" in
5953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954   *) ac_try_echo=$ac_try;;
5955 esac
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957   (eval "$ac_try") 2>&5
5958   ac_status=$?
5959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960   (exit $ac_status); }; } &&
5961          { ac_try='test -s conftest.$ac_objext'
5962   { (case "(($ac_try" in
5963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964   *) ac_try_echo=$ac_try;;
5965 esac
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967   (eval "$ac_try") 2>&5
5968   ac_status=$?
5969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970   (exit $ac_status); }; }; then
5971   :
5972 else
5973   echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5975
5976         ac_c_werror_flag=$ac_save_c_werror_flag
5977          CFLAGS="-g"
5978          cat >conftest.$ac_ext <<_ACEOF
5979 /* confdefs.h.  */
5980 _ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h.  */
5984
5985 int
5986 main ()
5987 {
5988
5989   ;
5990   return 0;
5991 }
5992 _ACEOF
5993 rm -f conftest.$ac_objext
5994 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
6001   ac_status=$?
6002   grep -v '^ *+' conftest.er1 >conftest.err
6003   rm -f conftest.er1
6004   cat conftest.err >&5
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); } &&
6007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6008   { (case "(($ac_try" in
6009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010   *) ac_try_echo=$ac_try;;
6011 esac
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013   (eval "$ac_try") 2>&5
6014   ac_status=$?
6015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016   (exit $ac_status); }; } &&
6017          { ac_try='test -s conftest.$ac_objext'
6018   { (case "(($ac_try" in
6019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020   *) ac_try_echo=$ac_try;;
6021 esac
6022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6023   (eval "$ac_try") 2>&5
6024   ac_status=$?
6025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026   (exit $ac_status); }; }; then
6027   ac_cv_prog_cc_g=yes
6028 else
6029   echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.$ac_ext >&5
6031
6032
6033 fi
6034
6035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6036 fi
6037
6038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6039 fi
6040
6041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042    ac_c_werror_flag=$ac_save_c_werror_flag
6043 fi
6044 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6045 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6046 if test "$ac_test_CFLAGS" = set; then
6047   CFLAGS=$ac_save_CFLAGS
6048 elif test $ac_cv_prog_cc_g = yes; then
6049   if test "$GCC" = yes; then
6050     CFLAGS="-g -O2"
6051   else
6052     CFLAGS="-g"
6053   fi
6054 else
6055   if test "$GCC" = yes; then
6056     CFLAGS="-O2"
6057   else
6058     CFLAGS=
6059   fi
6060 fi
6061 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6062 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6063 if test "${ac_cv_prog_cc_c89+set}" = set; then
6064   echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
6066   ac_cv_prog_cc_c89=no
6067 ac_save_CC=$CC
6068 cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h.  */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h.  */
6074 #include <stdarg.h>
6075 #include <stdio.h>
6076 #include <sys/types.h>
6077 #include <sys/stat.h>
6078 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6079 struct buf { int x; };
6080 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6081 static char *e (p, i)
6082      char **p;
6083      int i;
6084 {
6085   return p[i];
6086 }
6087 static char *f (char * (*g) (char **, int), char **p, ...)
6088 {
6089   char *s;
6090   va_list v;
6091   va_start (v,p);
6092   s = g (p, va_arg (v,int));
6093   va_end (v);
6094   return s;
6095 }
6096
6097 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6098    function prototypes and stuff, but not '\xHH' hex character constants.
6099    These don't provoke an error unfortunately, instead are silently treated
6100    as 'x'.  The following induces an error, until -std is added to get
6101    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6102    array size at least.  It's necessary to write '\x00'==0 to get something
6103    that's true only with -std.  */
6104 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6105
6106 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6107    inside strings and character constants.  */
6108 #define FOO(x) 'x'
6109 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6110
6111 int test (int i, double x);
6112 struct s1 {int (*f) (int a);};
6113 struct s2 {int (*f) (double a);};
6114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6115 int argc;
6116 char **argv;
6117 int
6118 main ()
6119 {
6120 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6121   ;
6122   return 0;
6123 }
6124 _ACEOF
6125 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6126         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6127 do
6128   CC="$ac_save_CC $ac_arg"
6129   rm -f conftest.$ac_objext
6130 if { (ac_try="$ac_compile"
6131 case "(($ac_try" in
6132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133   *) ac_try_echo=$ac_try;;
6134 esac
6135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136   (eval "$ac_compile") 2>conftest.er1
6137   ac_status=$?
6138   grep -v '^ *+' conftest.er1 >conftest.err
6139   rm -f conftest.er1
6140   cat conftest.err >&5
6141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142   (exit $ac_status); } &&
6143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6144   { (case "(($ac_try" in
6145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146   *) ac_try_echo=$ac_try;;
6147 esac
6148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149   (eval "$ac_try") 2>&5
6150   ac_status=$?
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); }; } &&
6153          { ac_try='test -s conftest.$ac_objext'
6154   { (case "(($ac_try" in
6155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156   *) ac_try_echo=$ac_try;;
6157 esac
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159   (eval "$ac_try") 2>&5
6160   ac_status=$?
6161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162   (exit $ac_status); }; }; then
6163   ac_cv_prog_cc_c89=$ac_arg
6164 else
6165   echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168
6169 fi
6170
6171 rm -f core conftest.err conftest.$ac_objext
6172   test "x$ac_cv_prog_cc_c89" != "xno" && break
6173 done
6174 rm -f conftest.$ac_ext
6175 CC=$ac_save_CC
6176
6177 fi
6178 # AC_CACHE_VAL
6179 case "x$ac_cv_prog_cc_c89" in
6180   x)
6181     { echo "$as_me:$LINENO: result: none needed" >&5
6182 echo "${ECHO_T}none needed" >&6; } ;;
6183   xno)
6184     { echo "$as_me:$LINENO: result: unsupported" >&5
6185 echo "${ECHO_T}unsupported" >&6; } ;;
6186   *)
6187     CC="$CC $ac_cv_prog_cc_c89"
6188     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6189 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6190 esac
6191
6192
6193 ac_ext=c
6194 ac_cpp='$CPP $CPPFLAGS'
6195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6198
6199 ac_ext=cpp
6200 ac_cpp='$CXXCPP $CPPFLAGS'
6201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6204 if test -z "$CXX"; then
6205   if test -n "$CCC"; then
6206     CXX=$CCC
6207   else
6208     if test -n "$ac_tool_prefix"; then
6209   for ac_prog in g++
6210   do
6211     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6215 if test "${ac_cv_prog_CXX+set}" = set; then
6216   echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218   if test -n "$CXX"; then
6219   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6220 else
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 for as_dir in $PATH
6223 do
6224   IFS=$as_save_IFS
6225   test -z "$as_dir" && as_dir=.
6226   for ac_exec_ext in '' $ac_executable_extensions; do
6227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6228     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230     break 2
6231   fi
6232 done
6233 done
6234 IFS=$as_save_IFS
6235
6236 fi
6237 fi
6238 CXX=$ac_cv_prog_CXX
6239 if test -n "$CXX"; then
6240   { echo "$as_me:$LINENO: result: $CXX" >&5
6241 echo "${ECHO_T}$CXX" >&6; }
6242 else
6243   { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6245 fi
6246
6247
6248     test -n "$CXX" && break
6249   done
6250 fi
6251 if test -z "$CXX"; then
6252   ac_ct_CXX=$CXX
6253   for ac_prog in g++
6254 do
6255   # Extract the first word of "$ac_prog", so it can be a program name with args.
6256 set dummy $ac_prog; ac_word=$2
6257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6259 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6260   echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262   if test -n "$ac_ct_CXX"; then
6263   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6264 else
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6267 do
6268   IFS=$as_save_IFS
6269   test -z "$as_dir" && as_dir=.
6270   for ac_exec_ext in '' $ac_executable_extensions; do
6271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6272     ac_cv_prog_ac_ct_CXX="$ac_prog"
6273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274     break 2
6275   fi
6276 done
6277 done
6278 IFS=$as_save_IFS
6279
6280 fi
6281 fi
6282 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6283 if test -n "$ac_ct_CXX"; then
6284   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6285 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6286 else
6287   { echo "$as_me:$LINENO: result: no" >&5
6288 echo "${ECHO_T}no" >&6; }
6289 fi
6290
6291
6292   test -n "$ac_ct_CXX" && break
6293 done
6294
6295   if test "x$ac_ct_CXX" = x; then
6296     CXX="g++"
6297   else
6298     case $cross_compiling:$ac_tool_warned in
6299 yes:)
6300 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6301 whose name does not start with the host triplet.  If you think this
6302 configuration is useful to you, please write to autoconf@gnu.org." >&5
6303 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6304 whose name does not start with the host triplet.  If you think this
6305 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6306 ac_tool_warned=yes ;;
6307 esac
6308     CXX=$ac_ct_CXX
6309   fi
6310 fi
6311
6312   fi
6313 fi
6314 # Provide some information about the compiler.
6315 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6316 ac_compiler=`set X $ac_compile; echo $2`
6317 { (ac_try="$ac_compiler --version >&5"
6318 case "(($ac_try" in
6319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320   *) ac_try_echo=$ac_try;;
6321 esac
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323   (eval "$ac_compiler --version >&5") 2>&5
6324   ac_status=$?
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); }
6327 { (ac_try="$ac_compiler -v >&5"
6328 case "(($ac_try" in
6329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330   *) ac_try_echo=$ac_try;;
6331 esac
6332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333   (eval "$ac_compiler -v >&5") 2>&5
6334   ac_status=$?
6335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336   (exit $ac_status); }
6337 { (ac_try="$ac_compiler -V >&5"
6338 case "(($ac_try" in
6339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340   *) ac_try_echo=$ac_try;;
6341 esac
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343   (eval "$ac_compiler -V >&5") 2>&5
6344   ac_status=$?
6345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); }
6347
6348 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6349 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6350 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6351   echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353   cat >conftest.$ac_ext <<_ACEOF
6354 /* confdefs.h.  */
6355 _ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h.  */
6359
6360 int
6361 main ()
6362 {
6363 #ifndef __GNUC__
6364        choke me
6365 #endif
6366
6367   ;
6368   return 0;
6369 }
6370 _ACEOF
6371 rm -f conftest.$ac_objext
6372 if { (ac_try="$ac_compile"
6373 case "(($ac_try" in
6374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375   *) ac_try_echo=$ac_try;;
6376 esac
6377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378   (eval "$ac_compile") 2>conftest.er1
6379   ac_status=$?
6380   grep -v '^ *+' conftest.er1 >conftest.err
6381   rm -f conftest.er1
6382   cat conftest.err >&5
6383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384   (exit $ac_status); } &&
6385          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6386   { (case "(($ac_try" in
6387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388   *) ac_try_echo=$ac_try;;
6389 esac
6390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391   (eval "$ac_try") 2>&5
6392   ac_status=$?
6393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394   (exit $ac_status); }; } &&
6395          { ac_try='test -s conftest.$ac_objext'
6396   { (case "(($ac_try" in
6397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398   *) ac_try_echo=$ac_try;;
6399 esac
6400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401   (eval "$ac_try") 2>&5
6402   ac_status=$?
6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404   (exit $ac_status); }; }; then
6405   ac_compiler_gnu=yes
6406 else
6407   echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6409
6410         ac_compiler_gnu=no
6411 fi
6412
6413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6415
6416 fi
6417 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6418 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6419 GXX=`test $ac_compiler_gnu = yes && echo yes`
6420 ac_test_CXXFLAGS=${CXXFLAGS+set}
6421 ac_save_CXXFLAGS=$CXXFLAGS
6422 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6423 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6424 if test "${ac_cv_prog_cxx_g+set}" = set; then
6425   echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6428    ac_cxx_werror_flag=yes
6429    ac_cv_prog_cxx_g=no
6430    CXXFLAGS="-g"
6431    cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h.  */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h.  */
6437
6438 int
6439 main ()
6440 {
6441
6442   ;
6443   return 0;
6444 }
6445 _ACEOF
6446 rm -f conftest.$ac_objext
6447 if { (ac_try="$ac_compile"
6448 case "(($ac_try" in
6449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450   *) ac_try_echo=$ac_try;;
6451 esac
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453   (eval "$ac_compile") 2>conftest.er1
6454   ac_status=$?
6455   grep -v '^ *+' conftest.er1 >conftest.err
6456   rm -f conftest.er1
6457   cat conftest.err >&5
6458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459   (exit $ac_status); } &&
6460          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
6467   ac_status=$?
6468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469   (exit $ac_status); }; } &&
6470          { ac_try='test -s conftest.$ac_objext'
6471   { (case "(($ac_try" in
6472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473   *) ac_try_echo=$ac_try;;
6474 esac
6475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476   (eval "$ac_try") 2>&5
6477   ac_status=$?
6478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479   (exit $ac_status); }; }; then
6480   ac_cv_prog_cxx_g=yes
6481 else
6482   echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6484
6485         CXXFLAGS=""
6486       cat >conftest.$ac_ext <<_ACEOF
6487 /* confdefs.h.  */
6488 _ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h.  */
6492
6493 int
6494 main ()
6495 {
6496
6497   ;
6498   return 0;
6499 }
6500 _ACEOF
6501 rm -f conftest.$ac_objext
6502 if { (ac_try="$ac_compile"
6503 case "(($ac_try" in
6504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505   *) ac_try_echo=$ac_try;;
6506 esac
6507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508   (eval "$ac_compile") 2>conftest.er1
6509   ac_status=$?
6510   grep -v '^ *+' conftest.er1 >conftest.err
6511   rm -f conftest.er1
6512   cat conftest.err >&5
6513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514   (exit $ac_status); } &&
6515          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6516   { (case "(($ac_try" in
6517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518   *) ac_try_echo=$ac_try;;
6519 esac
6520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6521   (eval "$ac_try") 2>&5
6522   ac_status=$?
6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524   (exit $ac_status); }; } &&
6525          { ac_try='test -s conftest.$ac_objext'
6526   { (case "(($ac_try" in
6527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6528   *) ac_try_echo=$ac_try;;
6529 esac
6530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531   (eval "$ac_try") 2>&5
6532   ac_status=$?
6533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534   (exit $ac_status); }; }; then
6535   :
6536 else
6537   echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6539
6540         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6541          CXXFLAGS="-g"
6542          cat >conftest.$ac_ext <<_ACEOF
6543 /* confdefs.h.  */
6544 _ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h.  */
6548
6549 int
6550 main ()
6551 {
6552
6553   ;
6554   return 0;
6555 }
6556 _ACEOF
6557 rm -f conftest.$ac_objext
6558 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
6565   ac_status=$?
6566   grep -v '^ *+' conftest.er1 >conftest.err
6567   rm -f conftest.er1
6568   cat conftest.err >&5
6569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570   (exit $ac_status); } &&
6571          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6572   { (case "(($ac_try" in
6573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574   *) ac_try_echo=$ac_try;;
6575 esac
6576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577   (eval "$ac_try") 2>&5
6578   ac_status=$?
6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); }; } &&
6581          { ac_try='test -s conftest.$ac_objext'
6582   { (case "(($ac_try" in
6583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584   *) ac_try_echo=$ac_try;;
6585 esac
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587   (eval "$ac_try") 2>&5
6588   ac_status=$?
6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); }; }; then
6591   ac_cv_prog_cxx_g=yes
6592 else
6593   echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6595
6596
6597 fi
6598
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600 fi
6601
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 fi
6604
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6607 fi
6608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6609 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6610 if test "$ac_test_CXXFLAGS" = set; then
6611   CXXFLAGS=$ac_save_CXXFLAGS
6612 elif test $ac_cv_prog_cxx_g = yes; then
6613   if test "$GXX" = yes; then
6614     CXXFLAGS="-g -O2"
6615   else
6616     CXXFLAGS="-g"
6617   fi
6618 else
6619   if test "$GXX" = yes; then
6620     CXXFLAGS="-O2"
6621   else
6622     CXXFLAGS=
6623   fi
6624 fi
6625 ac_ext=c
6626 ac_cpp='$CPP $CPPFLAGS'
6627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6630
6631
6632 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6633 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6634 if test "${lt_cv_path_NM+set}" = set; then
6635   echo $ECHO_N "(cached) $ECHO_C" >&6
6636 else
6637   if test -n "$NM"; then
6638   # Let the user override the test.
6639   lt_cv_path_NM="$NM"
6640 else
6641   lt_nm_to_check="${ac_tool_prefix}nm"
6642   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6643     lt_nm_to_check="$lt_nm_to_check nm"
6644   fi
6645   for lt_tmp_nm in $lt_nm_to_check; do
6646     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6647     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6648       IFS="$lt_save_ifs"
6649       test -z "$ac_dir" && ac_dir=.
6650       tmp_nm="$ac_dir/$lt_tmp_nm"
6651       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6652         # Check to see if the nm accepts a BSD-compat flag.
6653         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6654         #   nm: unknown option "B" ignored
6655         # Tru64's nm complains that /dev/null is an invalid object file
6656         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6657         */dev/null* | *'Invalid file or object type'*)
6658           lt_cv_path_NM="$tmp_nm -B"
6659           break
6660           ;;
6661         *)
6662           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6663           */dev/null*)
6664             lt_cv_path_NM="$tmp_nm -p"
6665             break
6666             ;;
6667           *)
6668             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6669             continue # so that we can try to find one that supports BSD flags
6670             ;;
6671           esac
6672           ;;
6673         esac
6674       fi
6675     done
6676     IFS="$lt_save_ifs"
6677   done
6678   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6679 fi
6680 fi
6681 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6682 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6683 NM="$lt_cv_path_NM"
6684
6685
6686
6687 { echo "$as_me:$LINENO: checking for GNU make" >&5
6688 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6689 if test "${llvm_cv_gnu_make_command+set}" = set; then
6690   echo $ECHO_N "(cached) $ECHO_C" >&6
6691 else
6692   llvm_cv_gnu_make_command=''
6693  for a in "$MAKE" make gmake gnumake ; do
6694   if test -z "$a" ; then continue ; fi ;
6695   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6696   then
6697    llvm_cv_gnu_make_command=$a ;
6698    break;
6699   fi
6700  done
6701 fi
6702 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6703 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6704  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6705    ifGNUmake='' ;
6706  else
6707    ifGNUmake='#' ;
6708    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6709 echo "${ECHO_T}\"Not found\"" >&6; };
6710  fi
6711
6712
6713 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6714 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6715 LN_S=$as_ln_s
6716 if test "$LN_S" = "ln -s"; then
6717   { echo "$as_me:$LINENO: result: yes" >&5
6718 echo "${ECHO_T}yes" >&6; }
6719 else
6720   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6721 echo "${ECHO_T}no, using $LN_S" >&6; }
6722 fi
6723
6724 # Extract the first word of "cmp", so it can be a program name with args.
6725 set dummy cmp; ac_word=$2
6726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6728 if test "${ac_cv_path_CMP+set}" = set; then
6729   echo $ECHO_N "(cached) $ECHO_C" >&6
6730 else
6731   case $CMP in
6732   [\\/]* | ?:[\\/]*)
6733   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6734   ;;
6735   *)
6736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6738 do
6739   IFS=$as_save_IFS
6740   test -z "$as_dir" && as_dir=.
6741   for ac_exec_ext in '' $ac_executable_extensions; do
6742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6743     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745     break 2
6746   fi
6747 done
6748 done
6749 IFS=$as_save_IFS
6750
6751   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6752   ;;
6753 esac
6754 fi
6755 CMP=$ac_cv_path_CMP
6756 if test -n "$CMP"; then
6757   { echo "$as_me:$LINENO: result: $CMP" >&5
6758 echo "${ECHO_T}$CMP" >&6; }
6759 else
6760   { echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6; }
6762 fi
6763
6764
6765 # Extract the first word of "cp", so it can be a program name with args.
6766 set dummy cp; ac_word=$2
6767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6769 if test "${ac_cv_path_CP+set}" = set; then
6770   echo $ECHO_N "(cached) $ECHO_C" >&6
6771 else
6772   case $CP in
6773   [\\/]* | ?:[\\/]*)
6774   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6775   ;;
6776   *)
6777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6779 do
6780   IFS=$as_save_IFS
6781   test -z "$as_dir" && as_dir=.
6782   for ac_exec_ext in '' $ac_executable_extensions; do
6783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6784     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6786     break 2
6787   fi
6788 done
6789 done
6790 IFS=$as_save_IFS
6791
6792   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6793   ;;
6794 esac
6795 fi
6796 CP=$ac_cv_path_CP
6797 if test -n "$CP"; then
6798   { echo "$as_me:$LINENO: result: $CP" >&5
6799 echo "${ECHO_T}$CP" >&6; }
6800 else
6801   { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6803 fi
6804
6805
6806 # Extract the first word of "date", so it can be a program name with args.
6807 set dummy date; ac_word=$2
6808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810 if test "${ac_cv_path_DATE+set}" = set; then
6811   echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813   case $DATE in
6814   [\\/]* | ?:[\\/]*)
6815   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6816   ;;
6817   *)
6818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821   IFS=$as_save_IFS
6822   test -z "$as_dir" && as_dir=.
6823   for ac_exec_ext in '' $ac_executable_extensions; do
6824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6825     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6827     break 2
6828   fi
6829 done
6830 done
6831 IFS=$as_save_IFS
6832
6833   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6834   ;;
6835 esac
6836 fi
6837 DATE=$ac_cv_path_DATE
6838 if test -n "$DATE"; then
6839   { echo "$as_me:$LINENO: result: $DATE" >&5
6840 echo "${ECHO_T}$DATE" >&6; }
6841 else
6842   { echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6; }
6844 fi
6845
6846
6847 # Extract the first word of "find", so it can be a program name with args.
6848 set dummy find; ac_word=$2
6849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851 if test "${ac_cv_path_FIND+set}" = set; then
6852   echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854   case $FIND in
6855   [\\/]* | ?:[\\/]*)
6856   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6857   ;;
6858   *)
6859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862   IFS=$as_save_IFS
6863   test -z "$as_dir" && as_dir=.
6864   for ac_exec_ext in '' $ac_executable_extensions; do
6865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6866     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868     break 2
6869   fi
6870 done
6871 done
6872 IFS=$as_save_IFS
6873
6874   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6875   ;;
6876 esac
6877 fi
6878 FIND=$ac_cv_path_FIND
6879 if test -n "$FIND"; then
6880   { echo "$as_me:$LINENO: result: $FIND" >&5
6881 echo "${ECHO_T}$FIND" >&6; }
6882 else
6883   { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6885 fi
6886
6887
6888 # Extract the first word of "grep", so it can be a program name with args.
6889 set dummy grep; ac_word=$2
6890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892 if test "${ac_cv_path_GREP+set}" = set; then
6893   echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895   case $GREP in
6896   [\\/]* | ?:[\\/]*)
6897   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6898   ;;
6899   *)
6900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6902 do
6903   IFS=$as_save_IFS
6904   test -z "$as_dir" && as_dir=.
6905   for ac_exec_ext in '' $ac_executable_extensions; do
6906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6907     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6909     break 2
6910   fi
6911 done
6912 done
6913 IFS=$as_save_IFS
6914
6915   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6916   ;;
6917 esac
6918 fi
6919 GREP=$ac_cv_path_GREP
6920 if test -n "$GREP"; then
6921   { echo "$as_me:$LINENO: result: $GREP" >&5
6922 echo "${ECHO_T}$GREP" >&6; }
6923 else
6924   { echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6; }
6926 fi
6927
6928
6929 # Extract the first word of "mkdir", so it can be a program name with args.
6930 set dummy mkdir; ac_word=$2
6931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933 if test "${ac_cv_path_MKDIR+set}" = set; then
6934   echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936   case $MKDIR in
6937   [\\/]* | ?:[\\/]*)
6938   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6939   ;;
6940   *)
6941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944   IFS=$as_save_IFS
6945   test -z "$as_dir" && as_dir=.
6946   for ac_exec_ext in '' $ac_executable_extensions; do
6947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6948     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6950     break 2
6951   fi
6952 done
6953 done
6954 IFS=$as_save_IFS
6955
6956   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6957   ;;
6958 esac
6959 fi
6960 MKDIR=$ac_cv_path_MKDIR
6961 if test -n "$MKDIR"; then
6962   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6963 echo "${ECHO_T}$MKDIR" >&6; }
6964 else
6965   { echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6; }
6967 fi
6968
6969
6970 # Extract the first word of "mv", so it can be a program name with args.
6971 set dummy mv; ac_word=$2
6972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974 if test "${ac_cv_path_MV+set}" = set; then
6975   echo $ECHO_N "(cached) $ECHO_C" >&6
6976 else
6977   case $MV in
6978   [\\/]* | ?:[\\/]*)
6979   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6980   ;;
6981   *)
6982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6984 do
6985   IFS=$as_save_IFS
6986   test -z "$as_dir" && as_dir=.
6987   for ac_exec_ext in '' $ac_executable_extensions; do
6988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6989     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991     break 2
6992   fi
6993 done
6994 done
6995 IFS=$as_save_IFS
6996
6997   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6998   ;;
6999 esac
7000 fi
7001 MV=$ac_cv_path_MV
7002 if test -n "$MV"; then
7003   { echo "$as_me:$LINENO: result: $MV" >&5
7004 echo "${ECHO_T}$MV" >&6; }
7005 else
7006   { echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6; }
7008 fi
7009
7010
7011 if test -n "$ac_tool_prefix"; then
7012   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7013 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016 if test "${ac_cv_prog_RANLIB+set}" = set; then
7017   echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019   if test -n "$RANLIB"; then
7020   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7021 else
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7024 do
7025   IFS=$as_save_IFS
7026   test -z "$as_dir" && as_dir=.
7027   for ac_exec_ext in '' $ac_executable_extensions; do
7028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7029     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7031     break 2
7032   fi
7033 done
7034 done
7035 IFS=$as_save_IFS
7036
7037 fi
7038 fi
7039 RANLIB=$ac_cv_prog_RANLIB
7040 if test -n "$RANLIB"; then
7041   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7042 echo "${ECHO_T}$RANLIB" >&6; }
7043 else
7044   { echo "$as_me:$LINENO: result: no" >&5
7045 echo "${ECHO_T}no" >&6; }
7046 fi
7047
7048
7049 fi
7050 if test -z "$ac_cv_prog_RANLIB"; then
7051   ac_ct_RANLIB=$RANLIB
7052   # Extract the first word of "ranlib", so it can be a program name with args.
7053 set dummy ranlib; ac_word=$2
7054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7057   echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059   if test -n "$ac_ct_RANLIB"; then
7060   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7061 else
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH
7064 do
7065   IFS=$as_save_IFS
7066   test -z "$as_dir" && as_dir=.
7067   for ac_exec_ext in '' $ac_executable_extensions; do
7068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7069     ac_cv_prog_ac_ct_RANLIB="ranlib"
7070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7071     break 2
7072   fi
7073 done
7074 done
7075 IFS=$as_save_IFS
7076
7077 fi
7078 fi
7079 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7080 if test -n "$ac_ct_RANLIB"; then
7081   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7082 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7083 else
7084   { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7086 fi
7087
7088   if test "x$ac_ct_RANLIB" = x; then
7089     RANLIB=":"
7090   else
7091     case $cross_compiling:$ac_tool_warned in
7092 yes:)
7093 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7094 whose name does not start with the host triplet.  If you think this
7095 configuration is useful to you, please write to autoconf@gnu.org." >&5
7096 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7097 whose name does not start with the host triplet.  If you think this
7098 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7099 ac_tool_warned=yes ;;
7100 esac
7101     RANLIB=$ac_ct_RANLIB
7102   fi
7103 else
7104   RANLIB="$ac_cv_prog_RANLIB"
7105 fi
7106
7107 if test -n "$ac_tool_prefix"; then
7108   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7109 set dummy ${ac_tool_prefix}ar; ac_word=$2
7110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7112 if test "${ac_cv_prog_AR+set}" = set; then
7113   echo $ECHO_N "(cached) $ECHO_C" >&6
7114 else
7115   if test -n "$AR"; then
7116   ac_cv_prog_AR="$AR" # Let the user override the test.
7117 else
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH
7120 do
7121   IFS=$as_save_IFS
7122   test -z "$as_dir" && as_dir=.
7123   for ac_exec_ext in '' $ac_executable_extensions; do
7124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7125     ac_cv_prog_AR="${ac_tool_prefix}ar"
7126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127     break 2
7128   fi
7129 done
7130 done
7131 IFS=$as_save_IFS
7132
7133 fi
7134 fi
7135 AR=$ac_cv_prog_AR
7136 if test -n "$AR"; then
7137   { echo "$as_me:$LINENO: result: $AR" >&5
7138 echo "${ECHO_T}$AR" >&6; }
7139 else
7140   { echo "$as_me:$LINENO: result: no" >&5
7141 echo "${ECHO_T}no" >&6; }
7142 fi
7143
7144
7145 fi
7146 if test -z "$ac_cv_prog_AR"; then
7147   ac_ct_AR=$AR
7148   # Extract the first word of "ar", so it can be a program name with args.
7149 set dummy ar; ac_word=$2
7150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7152 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7153   echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155   if test -n "$ac_ct_AR"; then
7156   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7157 else
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7160 do
7161   IFS=$as_save_IFS
7162   test -z "$as_dir" && as_dir=.
7163   for ac_exec_ext in '' $ac_executable_extensions; do
7164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7165     ac_cv_prog_ac_ct_AR="ar"
7166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167     break 2
7168   fi
7169 done
7170 done
7171 IFS=$as_save_IFS
7172
7173 fi
7174 fi
7175 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7176 if test -n "$ac_ct_AR"; then
7177   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7178 echo "${ECHO_T}$ac_ct_AR" >&6; }
7179 else
7180   { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7182 fi
7183
7184   if test "x$ac_ct_AR" = x; then
7185     AR="false"
7186   else
7187     case $cross_compiling:$ac_tool_warned in
7188 yes:)
7189 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7190 whose name does not start with the host triplet.  If you think this
7191 configuration is useful to you, please write to autoconf@gnu.org." >&5
7192 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7193 whose name does not start with the host triplet.  If you think this
7194 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7195 ac_tool_warned=yes ;;
7196 esac
7197     AR=$ac_ct_AR
7198   fi
7199 else
7200   AR="$ac_cv_prog_AR"
7201 fi
7202
7203 # Extract the first word of "rm", so it can be a program name with args.
7204 set dummy rm; ac_word=$2
7205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207 if test "${ac_cv_path_RM+set}" = set; then
7208   echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210   case $RM in
7211   [\\/]* | ?:[\\/]*)
7212   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7213   ;;
7214   *)
7215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7217 do
7218   IFS=$as_save_IFS
7219   test -z "$as_dir" && as_dir=.
7220   for ac_exec_ext in '' $ac_executable_extensions; do
7221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7222     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224     break 2
7225   fi
7226 done
7227 done
7228 IFS=$as_save_IFS
7229
7230   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7231   ;;
7232 esac
7233 fi
7234 RM=$ac_cv_path_RM
7235 if test -n "$RM"; then
7236   { echo "$as_me:$LINENO: result: $RM" >&5
7237 echo "${ECHO_T}$RM" >&6; }
7238 else
7239   { echo "$as_me:$LINENO: result: no" >&5
7240 echo "${ECHO_T}no" >&6; }
7241 fi
7242
7243
7244 # Extract the first word of "sed", so it can be a program name with args.
7245 set dummy sed; ac_word=$2
7246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7248 if test "${ac_cv_path_SED+set}" = set; then
7249   echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251   case $SED in
7252   [\\/]* | ?:[\\/]*)
7253   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7254   ;;
7255   *)
7256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259   IFS=$as_save_IFS
7260   test -z "$as_dir" && as_dir=.
7261   for ac_exec_ext in '' $ac_executable_extensions; do
7262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7263     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7265     break 2
7266   fi
7267 done
7268 done
7269 IFS=$as_save_IFS
7270
7271   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7272   ;;
7273 esac
7274 fi
7275 SED=$ac_cv_path_SED
7276 if test -n "$SED"; then
7277   { echo "$as_me:$LINENO: result: $SED" >&5
7278 echo "${ECHO_T}$SED" >&6; }
7279 else
7280   { echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6; }
7282 fi
7283
7284
7285 # Extract the first word of "tar", so it can be a program name with args.
7286 set dummy tar; ac_word=$2
7287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7289 if test "${ac_cv_path_TAR+set}" = set; then
7290   echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292   case $TAR in
7293   [\\/]* | ?:[\\/]*)
7294   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7295   ;;
7296   *)
7297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300   IFS=$as_save_IFS
7301   test -z "$as_dir" && as_dir=.
7302   for ac_exec_ext in '' $ac_executable_extensions; do
7303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7304     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7306     break 2
7307   fi
7308 done
7309 done
7310 IFS=$as_save_IFS
7311
7312   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7313   ;;
7314 esac
7315 fi
7316 TAR=$ac_cv_path_TAR
7317 if test -n "$TAR"; then
7318   { echo "$as_me:$LINENO: result: $TAR" >&5
7319 echo "${ECHO_T}$TAR" >&6; }
7320 else
7321   { echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6; }
7323 fi
7324
7325
7326 # Extract the first word of "pwd", so it can be a program name with args.
7327 set dummy pwd; ac_word=$2
7328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330 if test "${ac_cv_path_BINPWD+set}" = set; then
7331   echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333   case $BINPWD in
7334   [\\/]* | ?:[\\/]*)
7335   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7336   ;;
7337   *)
7338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7340 do
7341   IFS=$as_save_IFS
7342   test -z "$as_dir" && as_dir=.
7343   for ac_exec_ext in '' $ac_executable_extensions; do
7344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7345     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347     break 2
7348   fi
7349 done
7350 done
7351 IFS=$as_save_IFS
7352
7353   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7354   ;;
7355 esac
7356 fi
7357 BINPWD=$ac_cv_path_BINPWD
7358 if test -n "$BINPWD"; then
7359   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7360 echo "${ECHO_T}$BINPWD" >&6; }
7361 else
7362   { echo "$as_me:$LINENO: result: no" >&5
7363 echo "${ECHO_T}no" >&6; }
7364 fi
7365
7366
7367
7368 # Extract the first word of "Graphviz", so it can be a program name with args.
7369 set dummy Graphviz; ac_word=$2
7370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7372 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7373   echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375   case $GRAPHVIZ in
7376   [\\/]* | ?:[\\/]*)
7377   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7378   ;;
7379   *)
7380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7382 do
7383   IFS=$as_save_IFS
7384   test -z "$as_dir" && as_dir=.
7385   for ac_exec_ext in '' $ac_executable_extensions; do
7386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7387     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7389     break 2
7390   fi
7391 done
7392 done
7393 IFS=$as_save_IFS
7394
7395   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7396   ;;
7397 esac
7398 fi
7399 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7400 if test -n "$GRAPHVIZ"; then
7401   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7402 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7403 else
7404   { echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6; }
7406 fi
7407
7408
7409 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7410
7411 cat >>confdefs.h <<\_ACEOF
7412 #define HAVE_GRAPHVIZ 1
7413 _ACEOF
7414
7415     if test "$llvm_cv_os_type" = "MingW" ; then
7416     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7417   fi
7418
7419 cat >>confdefs.h <<_ACEOF
7420 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7421 _ACEOF
7422
7423 fi
7424 # Extract the first word of "dot", so it can be a program name with args.
7425 set dummy dot; ac_word=$2
7426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428 if test "${ac_cv_path_DOT+set}" = set; then
7429   echo $ECHO_N "(cached) $ECHO_C" >&6
7430 else
7431   case $DOT in
7432   [\\/]* | ?:[\\/]*)
7433   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7434   ;;
7435   *)
7436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7438 do
7439   IFS=$as_save_IFS
7440   test -z "$as_dir" && as_dir=.
7441   for ac_exec_ext in '' $ac_executable_extensions; do
7442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7443     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445     break 2
7446   fi
7447 done
7448 done
7449 IFS=$as_save_IFS
7450
7451   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7452   ;;
7453 esac
7454 fi
7455 DOT=$ac_cv_path_DOT
7456 if test -n "$DOT"; then
7457   { echo "$as_me:$LINENO: result: $DOT" >&5
7458 echo "${ECHO_T}$DOT" >&6; }
7459 else
7460   { echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6; }
7462 fi
7463
7464
7465 if test "$DOT" != "echo dot" ; then
7466
7467 cat >>confdefs.h <<\_ACEOF
7468 #define HAVE_DOT 1
7469 _ACEOF
7470
7471     if test "$llvm_cv_os_type" = "MingW" ; then
7472     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7473   fi
7474
7475 cat >>confdefs.h <<_ACEOF
7476 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7477 _ACEOF
7478
7479 fi
7480 # Extract the first word of "fdp", so it can be a program name with args.
7481 set dummy fdp; ac_word=$2
7482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7484 if test "${ac_cv_path_FDP+set}" = set; then
7485   echo $ECHO_N "(cached) $ECHO_C" >&6
7486 else
7487   case $FDP in
7488   [\\/]* | ?:[\\/]*)
7489   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7490   ;;
7491   *)
7492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 for as_dir in $PATH
7494 do
7495   IFS=$as_save_IFS
7496   test -z "$as_dir" && as_dir=.
7497   for ac_exec_ext in '' $ac_executable_extensions; do
7498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7499     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7501     break 2
7502   fi
7503 done
7504 done
7505 IFS=$as_save_IFS
7506
7507   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7508   ;;
7509 esac
7510 fi
7511 FDP=$ac_cv_path_FDP
7512 if test -n "$FDP"; then
7513   { echo "$as_me:$LINENO: result: $FDP" >&5
7514 echo "${ECHO_T}$FDP" >&6; }
7515 else
7516   { echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6; }
7518 fi
7519
7520
7521 if test "$FDP" != "echo fdp" ; then
7522
7523 cat >>confdefs.h <<\_ACEOF
7524 #define HAVE_FDP 1
7525 _ACEOF
7526
7527     if test "$llvm_cv_os_type" = "MingW" ; then
7528     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7529   fi
7530
7531 cat >>confdefs.h <<_ACEOF
7532 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7533 _ACEOF
7534
7535 fi
7536 # Extract the first word of "neato", so it can be a program name with args.
7537 set dummy neato; ac_word=$2
7538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540 if test "${ac_cv_path_NEATO+set}" = set; then
7541   echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543   case $NEATO in
7544   [\\/]* | ?:[\\/]*)
7545   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7546   ;;
7547   *)
7548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7550 do
7551   IFS=$as_save_IFS
7552   test -z "$as_dir" && as_dir=.
7553   for ac_exec_ext in '' $ac_executable_extensions; do
7554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7555     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7557     break 2
7558   fi
7559 done
7560 done
7561 IFS=$as_save_IFS
7562
7563   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7564   ;;
7565 esac
7566 fi
7567 NEATO=$ac_cv_path_NEATO
7568 if test -n "$NEATO"; then
7569   { echo "$as_me:$LINENO: result: $NEATO" >&5
7570 echo "${ECHO_T}$NEATO" >&6; }
7571 else
7572   { echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6; }
7574 fi
7575
7576
7577 if test "$NEATO" != "echo neato" ; then
7578
7579 cat >>confdefs.h <<\_ACEOF
7580 #define HAVE_NEATO 1
7581 _ACEOF
7582
7583     if test "$llvm_cv_os_type" = "MingW" ; then
7584     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7585   fi
7586
7587 cat >>confdefs.h <<_ACEOF
7588 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7589 _ACEOF
7590
7591 fi
7592 # Extract the first word of "twopi", so it can be a program name with args.
7593 set dummy twopi; ac_word=$2
7594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596 if test "${ac_cv_path_TWOPI+set}" = set; then
7597   echo $ECHO_N "(cached) $ECHO_C" >&6
7598 else
7599   case $TWOPI in
7600   [\\/]* | ?:[\\/]*)
7601   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7602   ;;
7603   *)
7604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7606 do
7607   IFS=$as_save_IFS
7608   test -z "$as_dir" && as_dir=.
7609   for ac_exec_ext in '' $ac_executable_extensions; do
7610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7611     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613     break 2
7614   fi
7615 done
7616 done
7617 IFS=$as_save_IFS
7618
7619   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7620   ;;
7621 esac
7622 fi
7623 TWOPI=$ac_cv_path_TWOPI
7624 if test -n "$TWOPI"; then
7625   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7626 echo "${ECHO_T}$TWOPI" >&6; }
7627 else
7628   { echo "$as_me:$LINENO: result: no" >&5
7629 echo "${ECHO_T}no" >&6; }
7630 fi
7631
7632
7633 if test "$TWOPI" != "echo twopi" ; then
7634
7635 cat >>confdefs.h <<\_ACEOF
7636 #define HAVE_TWOPI 1
7637 _ACEOF
7638
7639     if test "$llvm_cv_os_type" = "MingW" ; then
7640     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7641   fi
7642
7643 cat >>confdefs.h <<_ACEOF
7644 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7645 _ACEOF
7646
7647 fi
7648 # Extract the first word of "circo", so it can be a program name with args.
7649 set dummy circo; ac_word=$2
7650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7652 if test "${ac_cv_path_CIRCO+set}" = set; then
7653   echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7655   case $CIRCO in
7656   [\\/]* | ?:[\\/]*)
7657   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7658   ;;
7659   *)
7660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH
7662 do
7663   IFS=$as_save_IFS
7664   test -z "$as_dir" && as_dir=.
7665   for ac_exec_ext in '' $ac_executable_extensions; do
7666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7667     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7669     break 2
7670   fi
7671 done
7672 done
7673 IFS=$as_save_IFS
7674
7675   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7676   ;;
7677 esac
7678 fi
7679 CIRCO=$ac_cv_path_CIRCO
7680 if test -n "$CIRCO"; then
7681   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7682 echo "${ECHO_T}$CIRCO" >&6; }
7683 else
7684   { echo "$as_me:$LINENO: result: no" >&5
7685 echo "${ECHO_T}no" >&6; }
7686 fi
7687
7688
7689 if test "$CIRCO" != "echo circo" ; then
7690
7691 cat >>confdefs.h <<\_ACEOF
7692 #define HAVE_CIRCO 1
7693 _ACEOF
7694
7695     if test "$llvm_cv_os_type" = "MingW" ; then
7696     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7697   fi
7698
7699 cat >>confdefs.h <<_ACEOF
7700 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7701 _ACEOF
7702
7703 fi
7704 for ac_prog in gv gsview32
7705 do
7706   # Extract the first word of "$ac_prog", so it can be a program name with args.
7707 set dummy $ac_prog; ac_word=$2
7708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7710 if test "${ac_cv_path_GV+set}" = set; then
7711   echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713   case $GV in
7714   [\\/]* | ?:[\\/]*)
7715   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7716   ;;
7717   *)
7718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH
7720 do
7721   IFS=$as_save_IFS
7722   test -z "$as_dir" && as_dir=.
7723   for ac_exec_ext in '' $ac_executable_extensions; do
7724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7725     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7727     break 2
7728   fi
7729 done
7730 done
7731 IFS=$as_save_IFS
7732
7733   ;;
7734 esac
7735 fi
7736 GV=$ac_cv_path_GV
7737 if test -n "$GV"; then
7738   { echo "$as_me:$LINENO: result: $GV" >&5
7739 echo "${ECHO_T}$GV" >&6; }
7740 else
7741   { echo "$as_me:$LINENO: result: no" >&5
7742 echo "${ECHO_T}no" >&6; }
7743 fi
7744
7745
7746   test -n "$GV" && break
7747 done
7748 test -n "$GV" || GV="echo gv"
7749
7750 if test "$GV" != "echo gv" ; then
7751
7752 cat >>confdefs.h <<\_ACEOF
7753 #define HAVE_GV 1
7754 _ACEOF
7755
7756     if test "$llvm_cv_os_type" = "MingW" ; then
7757     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7758   fi
7759
7760 cat >>confdefs.h <<_ACEOF
7761 #define LLVM_PATH_GV "$GV${EXEEXT}"
7762 _ACEOF
7763
7764 fi
7765 # Extract the first word of "dotty", so it can be a program name with args.
7766 set dummy dotty; ac_word=$2
7767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7769 if test "${ac_cv_path_DOTTY+set}" = set; then
7770   echo $ECHO_N "(cached) $ECHO_C" >&6
7771 else
7772   case $DOTTY in
7773   [\\/]* | ?:[\\/]*)
7774   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7775   ;;
7776   *)
7777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7779 do
7780   IFS=$as_save_IFS
7781   test -z "$as_dir" && as_dir=.
7782   for ac_exec_ext in '' $ac_executable_extensions; do
7783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7784     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7786     break 2
7787   fi
7788 done
7789 done
7790 IFS=$as_save_IFS
7791
7792   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7793   ;;
7794 esac
7795 fi
7796 DOTTY=$ac_cv_path_DOTTY
7797 if test -n "$DOTTY"; then
7798   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7799 echo "${ECHO_T}$DOTTY" >&6; }
7800 else
7801   { echo "$as_me:$LINENO: result: no" >&5
7802 echo "${ECHO_T}no" >&6; }
7803 fi
7804
7805
7806 if test "$DOTTY" != "echo dotty" ; then
7807
7808 cat >>confdefs.h <<\_ACEOF
7809 #define HAVE_DOTTY 1
7810 _ACEOF
7811
7812     if test "$llvm_cv_os_type" = "MingW" ; then
7813     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7814   fi
7815
7816 cat >>confdefs.h <<_ACEOF
7817 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7818 _ACEOF
7819
7820 fi
7821
7822
7823 # Extract the first word of "perl", so it can be a program name with args.
7824 set dummy perl; ac_word=$2
7825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7827 if test "${ac_cv_path_PERL+set}" = set; then
7828   echo $ECHO_N "(cached) $ECHO_C" >&6
7829 else
7830   case $PERL in
7831   [\\/]* | ?:[\\/]*)
7832   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7833   ;;
7834   *)
7835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7837 do
7838   IFS=$as_save_IFS
7839   test -z "$as_dir" && as_dir=.
7840   for ac_exec_ext in '' $ac_executable_extensions; do
7841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7842     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7844     break 2
7845   fi
7846 done
7847 done
7848 IFS=$as_save_IFS
7849
7850   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7851   ;;
7852 esac
7853 fi
7854 PERL=$ac_cv_path_PERL
7855 if test -n "$PERL"; then
7856   { echo "$as_me:$LINENO: result: $PERL" >&5
7857 echo "${ECHO_T}$PERL" >&6; }
7858 else
7859   { echo "$as_me:$LINENO: result: no" >&5
7860 echo "${ECHO_T}no" >&6; }
7861 fi
7862
7863
7864 if test "$PERL" != "none"; then
7865   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7866 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7867   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7868     { echo "$as_me:$LINENO: result: yes" >&5
7869 echo "${ECHO_T}yes" >&6; }
7870   else
7871     PERL=none
7872     { echo "$as_me:$LINENO: result: not found" >&5
7873 echo "${ECHO_T}not found" >&6; }
7874   fi
7875 fi
7876
7877
7878 if test x"$PERL" = xnone; then
7879    HAVE_PERL=0
7880
7881    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7882 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7883    { (exit 1); exit 1; }; }
7884 else
7885    HAVE_PERL=1
7886
7887 fi
7888
7889 # Find a good install program.  We prefer a C program (faster),
7890 # so one script is as good as another.  But avoid the broken or
7891 # incompatible versions:
7892 # SysV /etc/install, /usr/sbin/install
7893 # SunOS /usr/etc/install
7894 # IRIX /sbin/install
7895 # AIX /bin/install
7896 # AmigaOS /C/install, which installs bootblocks on floppy discs
7897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7900 # OS/2's system install, which has a completely different semantic
7901 # ./install, which can be erroneously created by make from ./install.sh.
7902 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7903 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7904 if test -z "$INSTALL"; then
7905 if test "${ac_cv_path_install+set}" = set; then
7906   echo $ECHO_N "(cached) $ECHO_C" >&6
7907 else
7908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7910 do
7911   IFS=$as_save_IFS
7912   test -z "$as_dir" && as_dir=.
7913   # Account for people who put trailing slashes in PATH elements.
7914 case $as_dir/ in
7915   ./ | .// | /cC/* | \
7916   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7917   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7918   /usr/ucb/* ) ;;
7919   *)
7920     # OSF1 and SCO ODT 3.0 have their own names for install.
7921     # Don't use installbsd from OSF since it installs stuff as root
7922     # by default.
7923     for ac_prog in ginstall scoinst install; do
7924       for ac_exec_ext in '' $ac_executable_extensions; do
7925         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7926           if test $ac_prog = install &&
7927             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7928             # AIX install.  It has an incompatible calling convention.
7929             :
7930           elif test $ac_prog = install &&
7931             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7932             # program-specific install script used by HP pwplus--don't use.
7933             :
7934           else
7935             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7936             break 3
7937           fi
7938         fi
7939       done
7940     done
7941     ;;
7942 esac
7943 done
7944 IFS=$as_save_IFS
7945
7946
7947 fi
7948   if test "${ac_cv_path_install+set}" = set; then
7949     INSTALL=$ac_cv_path_install
7950   else
7951     # As a last resort, use the slow shell script.  Don't cache a
7952     # value for INSTALL within a source directory, because that will
7953     # break other packages using the cache if that directory is
7954     # removed, or if the value is a relative name.
7955     INSTALL=$ac_install_sh
7956   fi
7957 fi
7958 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7959 echo "${ECHO_T}$INSTALL" >&6; }
7960
7961 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7962 # It thinks the first close brace ends the variable substitution.
7963 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7964
7965 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7966
7967 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7968
7969 case "$INSTALL" in
7970  [\\/$]* | ?:[\\/]* ) ;;
7971  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7972 esac
7973
7974 # Extract the first word of "bzip2", so it can be a program name with args.
7975 set dummy bzip2; ac_word=$2
7976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7978 if test "${ac_cv_path_BZIP2+set}" = set; then
7979   echo $ECHO_N "(cached) $ECHO_C" >&6
7980 else
7981   case $BZIP2 in
7982   [\\/]* | ?:[\\/]*)
7983   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7984   ;;
7985   *)
7986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 for as_dir in $PATH
7988 do
7989   IFS=$as_save_IFS
7990   test -z "$as_dir" && as_dir=.
7991   for ac_exec_ext in '' $ac_executable_extensions; do
7992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7993     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7995     break 2
7996   fi
7997 done
7998 done
7999 IFS=$as_save_IFS
8000
8001   ;;
8002 esac
8003 fi
8004 BZIP2=$ac_cv_path_BZIP2
8005 if test -n "$BZIP2"; then
8006   { echo "$as_me:$LINENO: result: $BZIP2" >&5
8007 echo "${ECHO_T}$BZIP2" >&6; }
8008 else
8009   { echo "$as_me:$LINENO: result: no" >&5
8010 echo "${ECHO_T}no" >&6; }
8011 fi
8012
8013
8014 # Extract the first word of "cat", so it can be a program name with args.
8015 set dummy cat; ac_word=$2
8016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8018 if test "${ac_cv_path_CAT+set}" = set; then
8019   echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8021   case $CAT in
8022   [\\/]* | ?:[\\/]*)
8023   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8024   ;;
8025   *)
8026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8028 do
8029   IFS=$as_save_IFS
8030   test -z "$as_dir" && as_dir=.
8031   for ac_exec_ext in '' $ac_executable_extensions; do
8032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8033     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8035     break 2
8036   fi
8037 done
8038 done
8039 IFS=$as_save_IFS
8040
8041   ;;
8042 esac
8043 fi
8044 CAT=$ac_cv_path_CAT
8045 if test -n "$CAT"; then
8046   { echo "$as_me:$LINENO: result: $CAT" >&5
8047 echo "${ECHO_T}$CAT" >&6; }
8048 else
8049   { echo "$as_me:$LINENO: result: no" >&5
8050 echo "${ECHO_T}no" >&6; }
8051 fi
8052
8053
8054 # Extract the first word of "doxygen", so it can be a program name with args.
8055 set dummy doxygen; ac_word=$2
8056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8058 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8059   echo $ECHO_N "(cached) $ECHO_C" >&6
8060 else
8061   case $DOXYGEN in
8062   [\\/]* | ?:[\\/]*)
8063   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8064   ;;
8065   *)
8066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 for as_dir in $PATH
8068 do
8069   IFS=$as_save_IFS
8070   test -z "$as_dir" && as_dir=.
8071   for ac_exec_ext in '' $ac_executable_extensions; do
8072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8073     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8075     break 2
8076   fi
8077 done
8078 done
8079 IFS=$as_save_IFS
8080
8081   ;;
8082 esac
8083 fi
8084 DOXYGEN=$ac_cv_path_DOXYGEN
8085 if test -n "$DOXYGEN"; then
8086   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8087 echo "${ECHO_T}$DOXYGEN" >&6; }
8088 else
8089   { echo "$as_me:$LINENO: result: no" >&5
8090 echo "${ECHO_T}no" >&6; }
8091 fi
8092
8093
8094 # Extract the first word of "groff", so it can be a program name with args.
8095 set dummy groff; ac_word=$2
8096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8098 if test "${ac_cv_path_GROFF+set}" = set; then
8099   echo $ECHO_N "(cached) $ECHO_C" >&6
8100 else
8101   case $GROFF in
8102   [\\/]* | ?:[\\/]*)
8103   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8104   ;;
8105   *)
8106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 for as_dir in $PATH
8108 do
8109   IFS=$as_save_IFS
8110   test -z "$as_dir" && as_dir=.
8111   for ac_exec_ext in '' $ac_executable_extensions; do
8112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8113     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8115     break 2
8116   fi
8117 done
8118 done
8119 IFS=$as_save_IFS
8120
8121   ;;
8122 esac
8123 fi
8124 GROFF=$ac_cv_path_GROFF
8125 if test -n "$GROFF"; then
8126   { echo "$as_me:$LINENO: result: $GROFF" >&5
8127 echo "${ECHO_T}$GROFF" >&6; }
8128 else
8129   { echo "$as_me:$LINENO: result: no" >&5
8130 echo "${ECHO_T}no" >&6; }
8131 fi
8132
8133
8134 # Extract the first word of "gzip", so it can be a program name with args.
8135 set dummy gzip; ac_word=$2
8136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8138 if test "${ac_cv_path_GZIP+set}" = set; then
8139   echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141   case $GZIP in
8142   [\\/]* | ?:[\\/]*)
8143   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8144   ;;
8145   *)
8146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 for as_dir in $PATH
8148 do
8149   IFS=$as_save_IFS
8150   test -z "$as_dir" && as_dir=.
8151   for ac_exec_ext in '' $ac_executable_extensions; do
8152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8153     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8155     break 2
8156   fi
8157 done
8158 done
8159 IFS=$as_save_IFS
8160
8161   ;;
8162 esac
8163 fi
8164 GZIP=$ac_cv_path_GZIP
8165 if test -n "$GZIP"; then
8166   { echo "$as_me:$LINENO: result: $GZIP" >&5
8167 echo "${ECHO_T}$GZIP" >&6; }
8168 else
8169   { echo "$as_me:$LINENO: result: no" >&5
8170 echo "${ECHO_T}no" >&6; }
8171 fi
8172
8173
8174 # Extract the first word of "pod2html", so it can be a program name with args.
8175 set dummy pod2html; ac_word=$2
8176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8178 if test "${ac_cv_path_POD2HTML+set}" = set; then
8179   echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181   case $POD2HTML in
8182   [\\/]* | ?:[\\/]*)
8183   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8184   ;;
8185   *)
8186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 for as_dir in $PATH
8188 do
8189   IFS=$as_save_IFS
8190   test -z "$as_dir" && as_dir=.
8191   for ac_exec_ext in '' $ac_executable_extensions; do
8192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8193     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8195     break 2
8196   fi
8197 done
8198 done
8199 IFS=$as_save_IFS
8200
8201   ;;
8202 esac
8203 fi
8204 POD2HTML=$ac_cv_path_POD2HTML
8205 if test -n "$POD2HTML"; then
8206   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8207 echo "${ECHO_T}$POD2HTML" >&6; }
8208 else
8209   { echo "$as_me:$LINENO: result: no" >&5
8210 echo "${ECHO_T}no" >&6; }
8211 fi
8212
8213
8214 # Extract the first word of "pod2man", so it can be a program name with args.
8215 set dummy pod2man; ac_word=$2
8216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8218 if test "${ac_cv_path_POD2MAN+set}" = set; then
8219   echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221   case $POD2MAN in
8222   [\\/]* | ?:[\\/]*)
8223   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8224   ;;
8225   *)
8226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8228 do
8229   IFS=$as_save_IFS
8230   test -z "$as_dir" && as_dir=.
8231   for ac_exec_ext in '' $ac_executable_extensions; do
8232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8233     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8235     break 2
8236   fi
8237 done
8238 done
8239 IFS=$as_save_IFS
8240
8241   ;;
8242 esac
8243 fi
8244 POD2MAN=$ac_cv_path_POD2MAN
8245 if test -n "$POD2MAN"; then
8246   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8247 echo "${ECHO_T}$POD2MAN" >&6; }
8248 else
8249   { echo "$as_me:$LINENO: result: no" >&5
8250 echo "${ECHO_T}no" >&6; }
8251 fi
8252
8253
8254 # Extract the first word of "pdfroff", so it can be a program name with args.
8255 set dummy pdfroff; ac_word=$2
8256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8258 if test "${ac_cv_path_PDFROFF+set}" = set; then
8259   echo $ECHO_N "(cached) $ECHO_C" >&6
8260 else
8261   case $PDFROFF in
8262   [\\/]* | ?:[\\/]*)
8263   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8264   ;;
8265   *)
8266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8268 do
8269   IFS=$as_save_IFS
8270   test -z "$as_dir" && as_dir=.
8271   for ac_exec_ext in '' $ac_executable_extensions; do
8272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8273     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8275     break 2
8276   fi
8277 done
8278 done
8279 IFS=$as_save_IFS
8280
8281   ;;
8282 esac
8283 fi
8284 PDFROFF=$ac_cv_path_PDFROFF
8285 if test -n "$PDFROFF"; then
8286   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8287 echo "${ECHO_T}$PDFROFF" >&6; }
8288 else
8289   { echo "$as_me:$LINENO: result: no" >&5
8290 echo "${ECHO_T}no" >&6; }
8291 fi
8292
8293
8294 # Extract the first word of "runtest", so it can be a program name with args.
8295 set dummy runtest; ac_word=$2
8296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8298 if test "${ac_cv_path_RUNTEST+set}" = set; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301   case $RUNTEST in
8302   [\\/]* | ?:[\\/]*)
8303   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8304   ;;
8305   *)
8306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 for as_dir in $PATH
8308 do
8309   IFS=$as_save_IFS
8310   test -z "$as_dir" && as_dir=.
8311   for ac_exec_ext in '' $ac_executable_extensions; do
8312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8313     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8315     break 2
8316   fi
8317 done
8318 done
8319 IFS=$as_save_IFS
8320
8321   ;;
8322 esac
8323 fi
8324 RUNTEST=$ac_cv_path_RUNTEST
8325 if test -n "$RUNTEST"; then
8326   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8327 echo "${ECHO_T}$RUNTEST" >&6; }
8328 else
8329   { echo "$as_me:$LINENO: result: no" >&5
8330 echo "${ECHO_T}no" >&6; }
8331 fi
8332
8333
8334
8335 no_itcl=true
8336 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8337 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8338
8339 # Check whether --with-tclinclude was given.
8340 if test "${with_tclinclude+set}" = set; then
8341   withval=$with_tclinclude; with_tclinclude=${withval}
8342 else
8343   with_tclinclude=''
8344 fi
8345
8346 if test "${ac_cv_path_tclsh+set}" = set; then
8347   echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349
8350 if test x"${with_tclinclude}" != x ; then
8351   if test -f ${with_tclinclude}/tclsh ; then
8352     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8353   elif test -f ${with_tclinclude}/src/tclsh ; then
8354     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8355   else
8356     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8357 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8358    { (exit 1); exit 1; }; }
8359   fi
8360 fi
8361 fi
8362
8363
8364 if test x"${ac_cv_path_tclsh}" = x ; then
8365   { echo "$as_me:$LINENO: result: none" >&5
8366 echo "${ECHO_T}none" >&6; }
8367   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
8368 do
8369   # Extract the first word of "$ac_prog", so it can be a program name with args.
8370 set dummy $ac_prog; ac_word=$2
8371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8373 if test "${ac_cv_path_TCLSH+set}" = set; then
8374   echo $ECHO_N "(cached) $ECHO_C" >&6
8375 else
8376   case $TCLSH in
8377   [\\/]* | ?:[\\/]*)
8378   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8379   ;;
8380   *)
8381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382 for as_dir in $PATH
8383 do
8384   IFS=$as_save_IFS
8385   test -z "$as_dir" && as_dir=.
8386   for ac_exec_ext in '' $ac_executable_extensions; do
8387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8388     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8390     break 2
8391   fi
8392 done
8393 done
8394 IFS=$as_save_IFS
8395
8396   ;;
8397 esac
8398 fi
8399 TCLSH=$ac_cv_path_TCLSH
8400 if test -n "$TCLSH"; then
8401   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8402 echo "${ECHO_T}$TCLSH" >&6; }
8403 else
8404   { echo "$as_me:$LINENO: result: no" >&5
8405 echo "${ECHO_T}no" >&6; }
8406 fi
8407
8408
8409   test -n "$TCLSH" && break
8410 done
8411
8412   if test x"${TCLSH}" = x ; then
8413     ac_cv_path_tclsh='';
8414   else
8415     ac_cv_path_tclsh="${TCLSH}";
8416   fi
8417 else
8418   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8419 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8420   TCLSH="${ac_cv_path_tclsh}"
8421
8422 fi
8423
8424 # Extract the first word of "zip", so it can be a program name with args.
8425 set dummy zip; ac_word=$2
8426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8428 if test "${ac_cv_path_ZIP+set}" = set; then
8429   echo $ECHO_N "(cached) $ECHO_C" >&6
8430 else
8431   case $ZIP in
8432   [\\/]* | ?:[\\/]*)
8433   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8434   ;;
8435   *)
8436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 for as_dir in $PATH
8438 do
8439   IFS=$as_save_IFS
8440   test -z "$as_dir" && as_dir=.
8441   for ac_exec_ext in '' $ac_executable_extensions; do
8442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8443     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8445     break 2
8446   fi
8447 done
8448 done
8449 IFS=$as_save_IFS
8450
8451   ;;
8452 esac
8453 fi
8454 ZIP=$ac_cv_path_ZIP
8455 if test -n "$ZIP"; then
8456   { echo "$as_me:$LINENO: result: $ZIP" >&5
8457 echo "${ECHO_T}$ZIP" >&6; }
8458 else
8459   { echo "$as_me:$LINENO: result: no" >&5
8460 echo "${ECHO_T}no" >&6; }
8461 fi
8462
8463
8464 for ac_prog in ocamlc
8465 do
8466   # Extract the first word of "$ac_prog", so it can be a program name with args.
8467 set dummy $ac_prog; ac_word=$2
8468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8470 if test "${ac_cv_path_OCAMLC+set}" = set; then
8471   echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473   case $OCAMLC in
8474   [\\/]* | ?:[\\/]*)
8475   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8476   ;;
8477   *)
8478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 for as_dir in $PATH
8480 do
8481   IFS=$as_save_IFS
8482   test -z "$as_dir" && as_dir=.
8483   for ac_exec_ext in '' $ac_executable_extensions; do
8484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8485     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8487     break 2
8488   fi
8489 done
8490 done
8491 IFS=$as_save_IFS
8492
8493   ;;
8494 esac
8495 fi
8496 OCAMLC=$ac_cv_path_OCAMLC
8497 if test -n "$OCAMLC"; then
8498   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8499 echo "${ECHO_T}$OCAMLC" >&6; }
8500 else
8501   { echo "$as_me:$LINENO: result: no" >&5
8502 echo "${ECHO_T}no" >&6; }
8503 fi
8504
8505
8506   test -n "$OCAMLC" && break
8507 done
8508
8509 for ac_prog in ocamlopt
8510 do
8511   # Extract the first word of "$ac_prog", so it can be a program name with args.
8512 set dummy $ac_prog; ac_word=$2
8513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8515 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8516   echo $ECHO_N "(cached) $ECHO_C" >&6
8517 else
8518   case $OCAMLOPT in
8519   [\\/]* | ?:[\\/]*)
8520   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8521   ;;
8522   *)
8523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524 for as_dir in $PATH
8525 do
8526   IFS=$as_save_IFS
8527   test -z "$as_dir" && as_dir=.
8528   for ac_exec_ext in '' $ac_executable_extensions; do
8529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8530     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8532     break 2
8533   fi
8534 done
8535 done
8536 IFS=$as_save_IFS
8537
8538   ;;
8539 esac
8540 fi
8541 OCAMLOPT=$ac_cv_path_OCAMLOPT
8542 if test -n "$OCAMLOPT"; then
8543   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8544 echo "${ECHO_T}$OCAMLOPT" >&6; }
8545 else
8546   { echo "$as_me:$LINENO: result: no" >&5
8547 echo "${ECHO_T}no" >&6; }
8548 fi
8549
8550
8551   test -n "$OCAMLOPT" && break
8552 done
8553
8554 for ac_prog in ocamldep
8555 do
8556   # Extract the first word of "$ac_prog", so it can be a program name with args.
8557 set dummy $ac_prog; ac_word=$2
8558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8560 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8561   echo $ECHO_N "(cached) $ECHO_C" >&6
8562 else
8563   case $OCAMLDEP in
8564   [\\/]* | ?:[\\/]*)
8565   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8566   ;;
8567   *)
8568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569 for as_dir in $PATH
8570 do
8571   IFS=$as_save_IFS
8572   test -z "$as_dir" && as_dir=.
8573   for ac_exec_ext in '' $ac_executable_extensions; do
8574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8575     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8577     break 2
8578   fi
8579 done
8580 done
8581 IFS=$as_save_IFS
8582
8583   ;;
8584 esac
8585 fi
8586 OCAMLDEP=$ac_cv_path_OCAMLDEP
8587 if test -n "$OCAMLDEP"; then
8588   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8589 echo "${ECHO_T}$OCAMLDEP" >&6; }
8590 else
8591   { echo "$as_me:$LINENO: result: no" >&5
8592 echo "${ECHO_T}no" >&6; }
8593 fi
8594
8595
8596   test -n "$OCAMLDEP" && break
8597 done
8598
8599 for ac_prog in ocamldoc
8600 do
8601   # Extract the first word of "$ac_prog", so it can be a program name with args.
8602 set dummy $ac_prog; ac_word=$2
8603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8605 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8606   echo $ECHO_N "(cached) $ECHO_C" >&6
8607 else
8608   case $OCAMLDOC in
8609   [\\/]* | ?:[\\/]*)
8610   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8611   ;;
8612   *)
8613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614 for as_dir in $PATH
8615 do
8616   IFS=$as_save_IFS
8617   test -z "$as_dir" && as_dir=.
8618   for ac_exec_ext in '' $ac_executable_extensions; do
8619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8620     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8622     break 2
8623   fi
8624 done
8625 done
8626 IFS=$as_save_IFS
8627
8628   ;;
8629 esac
8630 fi
8631 OCAMLDOC=$ac_cv_path_OCAMLDOC
8632 if test -n "$OCAMLDOC"; then
8633   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8634 echo "${ECHO_T}$OCAMLDOC" >&6; }
8635 else
8636   { echo "$as_me:$LINENO: result: no" >&5
8637 echo "${ECHO_T}no" >&6; }
8638 fi
8639
8640
8641   test -n "$OCAMLDOC" && break
8642 done
8643
8644 for ac_prog in gas as
8645 do
8646   # Extract the first word of "$ac_prog", so it can be a program name with args.
8647 set dummy $ac_prog; ac_word=$2
8648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8650 if test "${ac_cv_path_GAS+set}" = set; then
8651   echo $ECHO_N "(cached) $ECHO_C" >&6
8652 else
8653   case $GAS in
8654   [\\/]* | ?:[\\/]*)
8655   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8656   ;;
8657   *)
8658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659 for as_dir in $PATH
8660 do
8661   IFS=$as_save_IFS
8662   test -z "$as_dir" && as_dir=.
8663   for ac_exec_ext in '' $ac_executable_extensions; do
8664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8665     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8667     break 2
8668   fi
8669 done
8670 done
8671 IFS=$as_save_IFS
8672
8673   ;;
8674 esac
8675 fi
8676 GAS=$ac_cv_path_GAS
8677 if test -n "$GAS"; then
8678   { echo "$as_me:$LINENO: result: $GAS" >&5
8679 echo "${ECHO_T}$GAS" >&6; }
8680 else
8681   { echo "$as_me:$LINENO: result: no" >&5
8682 echo "${ECHO_T}no" >&6; }
8683 fi
8684
8685
8686   test -n "$GAS" && break
8687 done
8688
8689
8690 { echo "$as_me:$LINENO: checking for linker version" >&5
8691 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8692 if test "${llvm_cv_link_version+set}" = set; then
8693   echo $ECHO_N "(cached) $ECHO_C" >&6
8694 else
8695
8696    version_string="$(ld -v 2>&1 | head -1)"
8697
8698    # Check for ld64.
8699    if (echo "$version_string" | grep -q "ld64"); then
8700      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8701    else
8702      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8703    fi
8704
8705 fi
8706 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8707 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8708
8709 cat >>confdefs.h <<_ACEOF
8710 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8711 _ACEOF
8712
8713
8714
8715 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8716 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8717 if test "${llvm_cv_link_use_r+set}" = set; then
8718   echo $ECHO_N "(cached) $ECHO_C" >&6
8719 else
8720    ac_ext=c
8721 ac_cpp='$CPP $CPPFLAGS'
8722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8725
8726   oldcflags="$CFLAGS"
8727   CFLAGS="$CFLAGS -Wl,-R."
8728   cat >conftest.$ac_ext <<_ACEOF
8729 /* confdefs.h.  */
8730 _ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h.  */
8734
8735 int
8736 main ()
8737 {
8738
8739   ;
8740   return 0;
8741 }
8742 _ACEOF
8743 rm -f conftest.$ac_objext conftest$ac_exeext
8744 if { (ac_try="$ac_link"
8745 case "(($ac_try" in
8746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8747   *) ac_try_echo=$ac_try;;
8748 esac
8749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8750   (eval "$ac_link") 2>conftest.er1
8751   ac_status=$?
8752   grep -v '^ *+' conftest.er1 >conftest.err
8753   rm -f conftest.er1
8754   cat conftest.err >&5
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); } &&
8757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8758   { (case "(($ac_try" in
8759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760   *) ac_try_echo=$ac_try;;
8761 esac
8762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8763   (eval "$ac_try") 2>&5
8764   ac_status=$?
8765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766   (exit $ac_status); }; } &&
8767          { ac_try='test -s conftest$ac_exeext'
8768   { (case "(($ac_try" in
8769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770   *) ac_try_echo=$ac_try;;
8771 esac
8772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8773   (eval "$ac_try") 2>&5
8774   ac_status=$?
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); }; }; then
8777   llvm_cv_link_use_r=yes
8778 else
8779   echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8781
8782         llvm_cv_link_use_r=no
8783 fi
8784
8785 rm -f core conftest.err conftest.$ac_objext \
8786       conftest$ac_exeext conftest.$ac_ext
8787   CFLAGS="$oldcflags"
8788   ac_ext=c
8789 ac_cpp='$CPP $CPPFLAGS'
8790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8793
8794
8795 fi
8796 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8797 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8798 if test "$llvm_cv_link_use_r" = yes ; then
8799
8800 cat >>confdefs.h <<\_ACEOF
8801 #define HAVE_LINK_R 1
8802 _ACEOF
8803
8804   fi
8805
8806
8807 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8808 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8809 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8810   echo $ECHO_N "(cached) $ECHO_C" >&6
8811 else
8812    ac_ext=c
8813 ac_cpp='$CPP $CPPFLAGS'
8814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8817
8818   oldcflags="$CFLAGS"
8819   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8820   cat >conftest.$ac_ext <<_ACEOF
8821 /* confdefs.h.  */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h.  */
8826
8827 int
8828 main ()
8829 {
8830
8831   ;
8832   return 0;
8833 }
8834 _ACEOF
8835 rm -f conftest.$ac_objext conftest$ac_exeext
8836 if { (ac_try="$ac_link"
8837 case "(($ac_try" in
8838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839   *) ac_try_echo=$ac_try;;
8840 esac
8841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8842   (eval "$ac_link") 2>conftest.er1
8843   ac_status=$?
8844   grep -v '^ *+' conftest.er1 >conftest.err
8845   rm -f conftest.er1
8846   cat conftest.err >&5
8847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848   (exit $ac_status); } &&
8849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8850   { (case "(($ac_try" in
8851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852   *) ac_try_echo=$ac_try;;
8853 esac
8854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855   (eval "$ac_try") 2>&5
8856   ac_status=$?
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); }; } &&
8859          { ac_try='test -s conftest$ac_exeext'
8860   { (case "(($ac_try" in
8861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862   *) ac_try_echo=$ac_try;;
8863 esac
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865   (eval "$ac_try") 2>&5
8866   ac_status=$?
8867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868   (exit $ac_status); }; }; then
8869   llvm_cv_link_use_export_dynamic=yes
8870 else
8871   echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8873
8874         llvm_cv_link_use_export_dynamic=no
8875 fi
8876
8877 rm -f core conftest.err conftest.$ac_objext \
8878       conftest$ac_exeext conftest.$ac_ext
8879   CFLAGS="$oldcflags"
8880   ac_ext=c
8881 ac_cpp='$CPP $CPPFLAGS'
8882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8885
8886
8887 fi
8888 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8889 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8890 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8891
8892 cat >>confdefs.h <<\_ACEOF
8893 #define HAVE_LINK_EXPORT_DYNAMIC 1
8894 _ACEOF
8895
8896   fi
8897
8898
8899 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8900 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8901 if test "${llvm_cv_link_use_version_script+set}" = set; then
8902   echo $ECHO_N "(cached) $ECHO_C" >&6
8903 else
8904    ac_ext=c
8905 ac_cpp='$CPP $CPPFLAGS'
8906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8909
8910   oldcflags="$CFLAGS"
8911
8912   # The following code is from the autoconf manual,
8913   # "11.13: Limitations of Usual Tools".
8914   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8915   # Use mktemp if possible; otherwise fall back on mkdir,
8916   # with $RANDOM to make collisions less likely.
8917   : ${TMPDIR=/tmp}
8918   {
8919     tmp=`
8920       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8921     ` &&
8922     test -n "$tmp" && test -d "$tmp"
8923   } || {
8924     tmp=$TMPDIR/foo$$-$RANDOM
8925     (umask 077 && mkdir "$tmp")
8926   } || exit $?
8927
8928   echo "{" > "$tmp/export.map"
8929   echo "  global: main;" >> "$tmp/export.map"
8930   echo "  local: *;" >> "$tmp/export.map"
8931   echo "};" >> "$tmp/export.map"
8932
8933   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8934   cat >conftest.$ac_ext <<_ACEOF
8935 /* confdefs.h.  */
8936 _ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h.  */
8940
8941 int
8942 main ()
8943 {
8944
8945   ;
8946   return 0;
8947 }
8948 _ACEOF
8949 rm -f conftest.$ac_objext conftest$ac_exeext
8950 if { (ac_try="$ac_link"
8951 case "(($ac_try" in
8952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953   *) ac_try_echo=$ac_try;;
8954 esac
8955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956   (eval "$ac_link") 2>conftest.er1
8957   ac_status=$?
8958   grep -v '^ *+' conftest.er1 >conftest.err
8959   rm -f conftest.er1
8960   cat conftest.err >&5
8961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962   (exit $ac_status); } &&
8963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8964   { (case "(($ac_try" in
8965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966   *) ac_try_echo=$ac_try;;
8967 esac
8968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8969   (eval "$ac_try") 2>&5
8970   ac_status=$?
8971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972   (exit $ac_status); }; } &&
8973          { ac_try='test -s conftest$ac_exeext'
8974   { (case "(($ac_try" in
8975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976   *) ac_try_echo=$ac_try;;
8977 esac
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979   (eval "$ac_try") 2>&5
8980   ac_status=$?
8981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982   (exit $ac_status); }; }; then
8983   llvm_cv_link_use_version_script=yes
8984 else
8985   echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8987
8988         llvm_cv_link_use_version_script=no
8989 fi
8990
8991 rm -f core conftest.err conftest.$ac_objext \
8992       conftest$ac_exeext conftest.$ac_ext
8993   rm "$tmp/export.map"
8994   rmdir "$tmp"
8995   CFLAGS="$oldcflags"
8996   ac_ext=c
8997 ac_cpp='$CPP $CPPFLAGS'
8998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9001
9002
9003 fi
9004 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9005 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9006 if test "$llvm_cv_link_use_version_script" = yes ; then
9007   HAVE_LINK_VERSION_SCRIPT=1
9008
9009   fi
9010
9011
9012
9013
9014 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9015 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9016 if test "${ac_cv_c_const+set}" = set; then
9017   echo $ECHO_N "(cached) $ECHO_C" >&6
9018 else
9019   cat >conftest.$ac_ext <<_ACEOF
9020 /* confdefs.h.  */
9021 _ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h.  */
9025
9026 int
9027 main ()
9028 {
9029 /* FIXME: Include the comments suggested by Paul. */
9030 #ifndef __cplusplus
9031   /* Ultrix mips cc rejects this.  */
9032   typedef int charset[2];
9033   const charset x;
9034   /* SunOS 4.1.1 cc rejects this.  */
9035   char const *const *ccp;
9036   char **p;
9037   /* NEC SVR4.0.2 mips cc rejects this.  */
9038   struct point {int x, y;};
9039   static struct point const zero = {0,0};
9040   /* AIX XL C 1.02.0.0 rejects this.
9041      It does not let you subtract one const X* pointer from another in
9042      an arm of an if-expression whose if-part is not a constant
9043      expression */
9044   const char *g = "string";
9045   ccp = &g + (g ? g-g : 0);
9046   /* HPUX 7.0 cc rejects these. */
9047   ++ccp;
9048   p = (char**) ccp;
9049   ccp = (char const *const *) p;
9050   { /* SCO 3.2v4 cc rejects this.  */
9051     char *t;
9052     char const *s = 0 ? (char *) 0 : (char const *) 0;
9053
9054     *t++ = 0;
9055     if (s) return 0;
9056   }
9057   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9058     int x[] = {25, 17};
9059     const int *foo = &x[0];
9060     ++foo;
9061   }
9062   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9063     typedef const int *iptr;
9064     iptr p = 0;
9065     ++p;
9066   }
9067   { /* AIX XL C 1.02.0.0 rejects this saying
9068        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9069     struct s { int j; const int *ap[3]; };
9070     struct s *b; b->j = 5;
9071   }
9072   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9073     const int foo = 10;
9074     if (!foo) return 0;
9075   }
9076   return !x[0] && !zero.x;
9077 #endif
9078
9079   ;
9080   return 0;
9081 }
9082 _ACEOF
9083 rm -f conftest.$ac_objext
9084 if { (ac_try="$ac_compile"
9085 case "(($ac_try" in
9086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9087   *) ac_try_echo=$ac_try;;
9088 esac
9089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9090   (eval "$ac_compile") 2>conftest.er1
9091   ac_status=$?
9092   grep -v '^ *+' conftest.er1 >conftest.err
9093   rm -f conftest.er1
9094   cat conftest.err >&5
9095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096   (exit $ac_status); } &&
9097          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9098   { (case "(($ac_try" in
9099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9100   *) ac_try_echo=$ac_try;;
9101 esac
9102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9103   (eval "$ac_try") 2>&5
9104   ac_status=$?
9105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106   (exit $ac_status); }; } &&
9107          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9117   ac_cv_c_const=yes
9118 else
9119   echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9121
9122         ac_cv_c_const=no
9123 fi
9124
9125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9126 fi
9127 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9128 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9129 if test $ac_cv_c_const = no; then
9130
9131 cat >>confdefs.h <<\_ACEOF
9132 #define const
9133 _ACEOF
9134
9135 fi
9136
9137
9138
9139
9140
9141
9142 ac_header_dirent=no
9143 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9144   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9145 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9146 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9148   echo $ECHO_N "(cached) $ECHO_C" >&6
9149 else
9150   cat >conftest.$ac_ext <<_ACEOF
9151 /* confdefs.h.  */
9152 _ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h.  */
9156 #include <sys/types.h>
9157 #include <$ac_hdr>
9158
9159 int
9160 main ()
9161 {
9162 if ((DIR *) 0)
9163 return 0;
9164   ;
9165   return 0;
9166 }
9167 _ACEOF
9168 rm -f conftest.$ac_objext
9169 if { (ac_try="$ac_compile"
9170 case "(($ac_try" in
9171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9172   *) ac_try_echo=$ac_try;;
9173 esac
9174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9175   (eval "$ac_compile") 2>conftest.er1
9176   ac_status=$?
9177   grep -v '^ *+' conftest.er1 >conftest.err
9178   rm -f conftest.er1
9179   cat conftest.err >&5
9180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181   (exit $ac_status); } &&
9182          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9183   { (case "(($ac_try" in
9184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185   *) ac_try_echo=$ac_try;;
9186 esac
9187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9188   (eval "$ac_try") 2>&5
9189   ac_status=$?
9190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191   (exit $ac_status); }; } &&
9192          { ac_try='test -s conftest.$ac_objext'
9193   { (case "(($ac_try" in
9194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9195   *) ac_try_echo=$ac_try;;
9196 esac
9197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9198   (eval "$ac_try") 2>&5
9199   ac_status=$?
9200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201   (exit $ac_status); }; }; then
9202   eval "$as_ac_Header=yes"
9203 else
9204   echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9206
9207         eval "$as_ac_Header=no"
9208 fi
9209
9210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9211 fi
9212 ac_res=`eval echo '${'$as_ac_Header'}'`
9213                { echo "$as_me:$LINENO: result: $ac_res" >&5
9214 echo "${ECHO_T}$ac_res" >&6; }
9215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9216   cat >>confdefs.h <<_ACEOF
9217 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9218 _ACEOF
9219
9220 ac_header_dirent=$ac_hdr; break
9221 fi
9222
9223 done
9224 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9225 if test $ac_header_dirent = dirent.h; then
9226   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9227 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9228 if test "${ac_cv_search_opendir+set}" = set; then
9229   echo $ECHO_N "(cached) $ECHO_C" >&6
9230 else
9231   ac_func_search_save_LIBS=$LIBS
9232 cat >conftest.$ac_ext <<_ACEOF
9233 /* confdefs.h.  */
9234 _ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h.  */
9238
9239 /* Override any GCC internal prototype to avoid an error.
9240    Use char because int might match the return type of a GCC
9241    builtin and then its argument prototype would still apply.  */
9242 #ifdef __cplusplus
9243 extern "C"
9244 #endif
9245 char opendir ();
9246 int
9247 main ()
9248 {
9249 return opendir ();
9250   ;
9251   return 0;
9252 }
9253 _ACEOF
9254 for ac_lib in '' dir; do
9255   if test -z "$ac_lib"; then
9256     ac_res="none required"
9257   else
9258     ac_res=-l$ac_lib
9259     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9260   fi
9261   rm -f conftest.$ac_objext conftest$ac_exeext
9262 if { (ac_try="$ac_link"
9263 case "(($ac_try" in
9264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9265   *) ac_try_echo=$ac_try;;
9266 esac
9267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9268   (eval "$ac_link") 2>conftest.er1
9269   ac_status=$?
9270   grep -v '^ *+' conftest.er1 >conftest.err
9271   rm -f conftest.er1
9272   cat conftest.err >&5
9273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274   (exit $ac_status); } &&
9275          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9276   { (case "(($ac_try" in
9277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278   *) ac_try_echo=$ac_try;;
9279 esac
9280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9281   (eval "$ac_try") 2>&5
9282   ac_status=$?
9283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284   (exit $ac_status); }; } &&
9285          { ac_try='test -s conftest$ac_exeext'
9286   { (case "(($ac_try" in
9287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9288   *) ac_try_echo=$ac_try;;
9289 esac
9290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291   (eval "$ac_try") 2>&5
9292   ac_status=$?
9293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294   (exit $ac_status); }; }; then
9295   ac_cv_search_opendir=$ac_res
9296 else
9297   echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9299
9300
9301 fi
9302
9303 rm -f core conftest.err conftest.$ac_objext \
9304       conftest$ac_exeext
9305   if test "${ac_cv_search_opendir+set}" = set; then
9306   break
9307 fi
9308 done
9309 if test "${ac_cv_search_opendir+set}" = set; then
9310   :
9311 else
9312   ac_cv_search_opendir=no
9313 fi
9314 rm conftest.$ac_ext
9315 LIBS=$ac_func_search_save_LIBS
9316 fi
9317 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9318 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9319 ac_res=$ac_cv_search_opendir
9320 if test "$ac_res" != no; then
9321   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9322
9323 fi
9324
9325 else
9326   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9327 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9328 if test "${ac_cv_search_opendir+set}" = set; then
9329   echo $ECHO_N "(cached) $ECHO_C" >&6
9330 else
9331   ac_func_search_save_LIBS=$LIBS
9332 cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h.  */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h.  */
9338
9339 /* Override any GCC internal prototype to avoid an error.
9340    Use char because int might match the return type of a GCC
9341    builtin and then its argument prototype would still apply.  */
9342 #ifdef __cplusplus
9343 extern "C"
9344 #endif
9345 char opendir ();
9346 int
9347 main ()
9348 {
9349 return opendir ();
9350   ;
9351   return 0;
9352 }
9353 _ACEOF
9354 for ac_lib in '' x; do
9355   if test -z "$ac_lib"; then
9356     ac_res="none required"
9357   else
9358     ac_res=-l$ac_lib
9359     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9360   fi
9361   rm -f conftest.$ac_objext conftest$ac_exeext
9362 if { (ac_try="$ac_link"
9363 case "(($ac_try" in
9364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365   *) ac_try_echo=$ac_try;;
9366 esac
9367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9368   (eval "$ac_link") 2>conftest.er1
9369   ac_status=$?
9370   grep -v '^ *+' conftest.er1 >conftest.err
9371   rm -f conftest.er1
9372   cat conftest.err >&5
9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374   (exit $ac_status); } &&
9375          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9376   { (case "(($ac_try" in
9377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378   *) ac_try_echo=$ac_try;;
9379 esac
9380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381   (eval "$ac_try") 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); }; } &&
9385          { ac_try='test -s conftest$ac_exeext'
9386   { (case "(($ac_try" in
9387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388   *) ac_try_echo=$ac_try;;
9389 esac
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391   (eval "$ac_try") 2>&5
9392   ac_status=$?
9393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394   (exit $ac_status); }; }; then
9395   ac_cv_search_opendir=$ac_res
9396 else
9397   echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9399
9400
9401 fi
9402
9403 rm -f core conftest.err conftest.$ac_objext \
9404       conftest$ac_exeext
9405   if test "${ac_cv_search_opendir+set}" = set; then
9406   break
9407 fi
9408 done
9409 if test "${ac_cv_search_opendir+set}" = set; then
9410   :
9411 else
9412   ac_cv_search_opendir=no
9413 fi
9414 rm conftest.$ac_ext
9415 LIBS=$ac_func_search_save_LIBS
9416 fi
9417 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9418 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9419 ac_res=$ac_cv_search_opendir
9420 if test "$ac_res" != no; then
9421   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9422
9423 fi
9424
9425 fi
9426
9427
9428 for ac_header in dlfcn.h
9429 do
9430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9432   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9435   echo $ECHO_N "(cached) $ECHO_C" >&6
9436 fi
9437 ac_res=`eval echo '${'$as_ac_Header'}'`
9438                { echo "$as_me:$LINENO: result: $ac_res" >&5
9439 echo "${ECHO_T}$ac_res" >&6; }
9440 else
9441   # Is the header compilable?
9442 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9444 cat >conftest.$ac_ext <<_ACEOF
9445 /* confdefs.h.  */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h.  */
9450 $ac_includes_default
9451 #include <$ac_header>
9452 _ACEOF
9453 rm -f conftest.$ac_objext
9454 if { (ac_try="$ac_compile"
9455 case "(($ac_try" in
9456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9457   *) ac_try_echo=$ac_try;;
9458 esac
9459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9460   (eval "$ac_compile") 2>conftest.er1
9461   ac_status=$?
9462   grep -v '^ *+' conftest.er1 >conftest.err
9463   rm -f conftest.er1
9464   cat conftest.err >&5
9465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   (exit $ac_status); } &&
9467          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9468   { (case "(($ac_try" in
9469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470   *) ac_try_echo=$ac_try;;
9471 esac
9472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9473   (eval "$ac_try") 2>&5
9474   ac_status=$?
9475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476   (exit $ac_status); }; } &&
9477          { ac_try='test -s conftest.$ac_objext'
9478   { (case "(($ac_try" in
9479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9480   *) ac_try_echo=$ac_try;;
9481 esac
9482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9483   (eval "$ac_try") 2>&5
9484   ac_status=$?
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); }; }; then
9487   ac_header_compiler=yes
9488 else
9489   echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.$ac_ext >&5
9491
9492         ac_header_compiler=no
9493 fi
9494
9495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9497 echo "${ECHO_T}$ac_header_compiler" >&6; }
9498
9499 # Is the header present?
9500 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9502 cat >conftest.$ac_ext <<_ACEOF
9503 /* confdefs.h.  */
9504 _ACEOF
9505 cat confdefs.h >>conftest.$ac_ext
9506 cat >>conftest.$ac_ext <<_ACEOF
9507 /* end confdefs.h.  */
9508 #include <$ac_header>
9509 _ACEOF
9510 if { (ac_try="$ac_cpp conftest.$ac_ext"
9511 case "(($ac_try" in
9512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513   *) ac_try_echo=$ac_try;;
9514 esac
9515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9516   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9517   ac_status=$?
9518   grep -v '^ *+' conftest.er1 >conftest.err
9519   rm -f conftest.er1
9520   cat conftest.err >&5
9521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522   (exit $ac_status); } >/dev/null; then
9523   if test -s conftest.err; then
9524     ac_cpp_err=$ac_c_preproc_warn_flag
9525     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9526   else
9527     ac_cpp_err=
9528   fi
9529 else
9530   ac_cpp_err=yes
9531 fi
9532 if test -z "$ac_cpp_err"; then
9533   ac_header_preproc=yes
9534 else
9535   echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9537
9538   ac_header_preproc=no
9539 fi
9540
9541 rm -f conftest.err conftest.$ac_ext
9542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9543 echo "${ECHO_T}$ac_header_preproc" >&6; }
9544
9545 # So?  What about this header?
9546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9547   yes:no: )
9548     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9552     ac_header_preproc=yes
9553     ;;
9554   no:yes:* )
9555     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9557     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9558 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9559     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9561     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9562 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9565     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9567     ( cat <<\_ASBOX
9568 ## ----------------------------------- ##
9569 ## Report this to llvmbugs@cs.uiuc.edu ##
9570 ## ----------------------------------- ##
9571 _ASBOX
9572      ) | sed "s/^/$as_me: WARNING:     /" >&2
9573     ;;
9574 esac
9575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9578   echo $ECHO_N "(cached) $ECHO_C" >&6
9579 else
9580   eval "$as_ac_Header=\$ac_header_preproc"
9581 fi
9582 ac_res=`eval echo '${'$as_ac_Header'}'`
9583                { echo "$as_me:$LINENO: result: $ac_res" >&5
9584 echo "${ECHO_T}$ac_res" >&6; }
9585
9586 fi
9587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9588   cat >>confdefs.h <<_ACEOF
9589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9590 _ACEOF
9591
9592 fi
9593
9594 done
9595
9596 # Check whether --enable-ltdl-install was given.
9597 if test "${enable_ltdl_install+set}" = set; then
9598   enableval=$enable_ltdl_install;
9599 fi
9600
9601
9602
9603
9604 if test x"${enable_ltdl_install-no}" != xno; then
9605   INSTALL_LTDL_TRUE=
9606   INSTALL_LTDL_FALSE='#'
9607 else
9608   INSTALL_LTDL_TRUE='#'
9609   INSTALL_LTDL_FALSE=
9610 fi
9611
9612
9613
9614 if test x"${enable_ltdl_convenience-no}" != xno; then
9615   CONVENIENCE_LTDL_TRUE=
9616   CONVENIENCE_LTDL_FALSE='#'
9617 else
9618   CONVENIENCE_LTDL_TRUE='#'
9619   CONVENIENCE_LTDL_FALSE=
9620 fi
9621
9622
9623 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9624 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9625 library_names_spec=
9626 libname_spec='lib$name'
9627 soname_spec=
9628 shrext_cmds=".so"
9629 postinstall_cmds=
9630 postuninstall_cmds=
9631 finish_cmds=
9632 finish_eval=
9633 shlibpath_var=
9634 shlibpath_overrides_runpath=unknown
9635 version_type=none
9636 dynamic_linker="$host_os ld.so"
9637 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9638 if test "$GCC" = yes; then
9639   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9640   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9641     # if the path contains ";" then we assume it to be the separator
9642     # otherwise default to the standard path separator (i.e. ":") - it is
9643     # assumed that no part of a normal pathname contains ";" but that should
9644     # okay in the real world where ";" in dirpaths is itself problematic.
9645     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9646   else
9647     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9648   fi
9649 else
9650   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9651 fi
9652 need_lib_prefix=unknown
9653 hardcode_into_libs=no
9654
9655 # when you set need_version to no, make sure it does not cause -set_version
9656 # flags to be left without arguments
9657 need_version=unknown
9658
9659 case $host_os in
9660 aix3*)
9661   version_type=linux
9662   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9663   shlibpath_var=LIBPATH
9664
9665   # AIX 3 has no versioning support, so we append a major version to the name.
9666   soname_spec='${libname}${release}${shared_ext}$major'
9667   ;;
9668
9669 aix4* | aix5*)
9670   version_type=linux
9671   need_lib_prefix=no
9672   need_version=no
9673   hardcode_into_libs=yes
9674   if test "$host_cpu" = ia64; then
9675     # AIX 5 supports IA64
9676     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9677     shlibpath_var=LD_LIBRARY_PATH
9678   else
9679     # With GCC up to 2.95.x, collect2 would create an import file
9680     # for dependence libraries.  The import file would start with
9681     # the line `#! .'.  This would cause the generated library to
9682     # depend on `.', always an invalid library.  This was fixed in
9683     # development snapshots of GCC prior to 3.0.
9684     case $host_os in
9685       aix4 | aix4.[01] | aix4.[01].*)
9686       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9687            echo ' yes '
9688            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9689         :
9690       else
9691         can_build_shared=no
9692       fi
9693       ;;
9694     esac
9695     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9696     # soname into executable. Probably we can add versioning support to
9697     # collect2, so additional links can be useful in future.
9698     if test "$aix_use_runtimelinking" = yes; then
9699       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9700       # instead of lib<name>.a to let people know that these are not
9701       # typical AIX shared libraries.
9702       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703     else
9704       # We preserve .a as extension for shared libraries through AIX4.2
9705       # and later when we are not doing run time linking.
9706       library_names_spec='${libname}${release}.a $libname.a'
9707       soname_spec='${libname}${release}${shared_ext}$major'
9708     fi
9709     shlibpath_var=LIBPATH
9710   fi
9711   ;;
9712
9713 amigaos*)
9714   library_names_spec='$libname.ixlibrary $libname.a'
9715   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9716   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'
9717   ;;
9718
9719 beos*)
9720   library_names_spec='${libname}${shared_ext}'
9721   dynamic_linker="$host_os ld.so"
9722   shlibpath_var=LIBRARY_PATH
9723   ;;
9724
9725 bsdi[45]*)
9726   version_type=linux
9727   need_version=no
9728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9729   soname_spec='${libname}${release}${shared_ext}$major'
9730   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9731   shlibpath_var=LD_LIBRARY_PATH
9732   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9733   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9734   # the default ld.so.conf also contains /usr/contrib/lib and
9735   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9736   # libtool to hard-code these into programs
9737   ;;
9738
9739 cygwin* | mingw* | pw32*)
9740   version_type=windows
9741   shrext_cmds=".dll"
9742   need_version=no
9743   need_lib_prefix=no
9744
9745   case $GCC,$host_os in
9746   yes,cygwin* | yes,mingw* | yes,pw32*)
9747     library_names_spec='$libname.dll.a'
9748     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9749     postinstall_cmds='base_file=`basename \${file}`~
9750       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9751       dldir=$destdir/`dirname \$dlpath`~
9752       test -d \$dldir || mkdir -p \$dldir~
9753       $install_prog $dir/$dlname \$dldir/$dlname~
9754       chmod a+x \$dldir/$dlname'
9755     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9756       dlpath=$dir/\$dldll~
9757        $rm \$dlpath'
9758     shlibpath_overrides_runpath=yes
9759
9760     case $host_os in
9761     cygwin*)
9762       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9763       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9764       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9765       ;;
9766     mingw*)
9767       # MinGW DLLs use traditional 'lib' prefix
9768       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9769       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9770       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9771         # It is most probably a Windows format PATH printed by
9772         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9773         # path with ; separators, and with drive letters. We can handle the
9774         # drive letters (cygwin fileutils understands them), so leave them,
9775         # especially as we might pass files found there to a mingw objdump,
9776         # which wouldn't understand a cygwinified path. Ahh.
9777         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9778       else
9779         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9780       fi
9781       ;;
9782     pw32*)
9783       # pw32 DLLs use 'pw' prefix rather than 'lib'
9784       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9785       ;;
9786     esac
9787     ;;
9788
9789   *)
9790     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9791     ;;
9792   esac
9793   dynamic_linker='Win32 ld.exe'
9794   # FIXME: first we should search . and the directory the executable is in
9795   shlibpath_var=PATH
9796   ;;
9797
9798 darwin* | rhapsody*)
9799   dynamic_linker="$host_os dyld"
9800   version_type=darwin
9801   need_lib_prefix=no
9802   need_version=no
9803   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9804   soname_spec='${libname}${release}${major}$shared_ext'
9805   shlibpath_overrides_runpath=yes
9806   shlibpath_var=DYLD_LIBRARY_PATH
9807   shrext_cmds='.dylib'
9808   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9809   if test "$GCC" = yes; then
9810     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"`
9811   else
9812     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9813   fi
9814   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9815   ;;
9816
9817 dgux*)
9818   version_type=linux
9819   need_lib_prefix=no
9820   need_version=no
9821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9822   soname_spec='${libname}${release}${shared_ext}$major'
9823   shlibpath_var=LD_LIBRARY_PATH
9824   ;;
9825
9826 freebsd1*)
9827   dynamic_linker=no
9828   ;;
9829
9830 kfreebsd*-gnu)
9831   version_type=linux
9832   need_lib_prefix=no
9833   need_version=no
9834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9835   soname_spec='${libname}${release}${shared_ext}$major'
9836   shlibpath_var=LD_LIBRARY_PATH
9837   shlibpath_overrides_runpath=no
9838   hardcode_into_libs=yes
9839   dynamic_linker='GNU ld.so'
9840   ;;
9841
9842 freebsd* | dragonfly*)
9843   # DragonFly does not have aout.  When/if they implement a new
9844   # versioning mechanism, adjust this.
9845   if test -x /usr/bin/objformat; then
9846     objformat=`/usr/bin/objformat`
9847   else
9848     case $host_os in
9849     freebsd[123]*) objformat=aout ;;
9850     *) objformat=elf ;;
9851     esac
9852   fi
9853   version_type=freebsd-$objformat
9854   case $version_type in
9855     freebsd-elf*)
9856       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9857       need_version=no
9858       need_lib_prefix=no
9859       ;;
9860     freebsd-*)
9861       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9862       need_version=yes
9863       ;;
9864   esac
9865   shlibpath_var=LD_LIBRARY_PATH
9866   case $host_os in
9867   freebsd2*)
9868     shlibpath_overrides_runpath=yes
9869     ;;
9870   freebsd3.[01]* | freebsdelf3.[01]*)
9871     shlibpath_overrides_runpath=yes
9872     hardcode_into_libs=yes
9873     ;;
9874   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9875   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9876     shlibpath_overrides_runpath=no
9877     hardcode_into_libs=yes
9878     ;;
9879   freebsd*) # from 4.6 on
9880     shlibpath_overrides_runpath=yes
9881     hardcode_into_libs=yes
9882     ;;
9883   esac
9884   ;;
9885
9886 gnu*)
9887   version_type=linux
9888   need_lib_prefix=no
9889   need_version=no
9890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9891   soname_spec='${libname}${release}${shared_ext}$major'
9892   shlibpath_var=LD_LIBRARY_PATH
9893   hardcode_into_libs=yes
9894   ;;
9895
9896 hpux9* | hpux10* | hpux11*)
9897   # Give a soname corresponding to the major version so that dld.sl refuses to
9898   # link against other versions.
9899   version_type=sunos
9900   need_lib_prefix=no
9901   need_version=no
9902   case $host_cpu in
9903   ia64*)
9904     shrext_cmds='.so'
9905     hardcode_into_libs=yes
9906     dynamic_linker="$host_os dld.so"
9907     shlibpath_var=LD_LIBRARY_PATH
9908     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9909     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9910     soname_spec='${libname}${release}${shared_ext}$major'
9911     if test "X$HPUX_IA64_MODE" = X32; then
9912       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9913     else
9914       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9915     fi
9916     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9917     ;;
9918    hppa*64*)
9919      shrext_cmds='.sl'
9920      hardcode_into_libs=yes
9921      dynamic_linker="$host_os dld.sl"
9922      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9923      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9924      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9925      soname_spec='${libname}${release}${shared_ext}$major'
9926      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9927      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9928      ;;
9929    *)
9930     shrext_cmds='.sl'
9931     dynamic_linker="$host_os dld.sl"
9932     shlibpath_var=SHLIB_PATH
9933     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9934     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9935     soname_spec='${libname}${release}${shared_ext}$major'
9936     ;;
9937   esac
9938   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9939   postinstall_cmds='chmod 555 $lib'
9940   ;;
9941
9942 interix3*)
9943   version_type=linux
9944   need_lib_prefix=no
9945   need_version=no
9946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9947   soname_spec='${libname}${release}${shared_ext}$major'
9948   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9949   shlibpath_var=LD_LIBRARY_PATH
9950   shlibpath_overrides_runpath=no
9951   hardcode_into_libs=yes
9952   ;;
9953
9954 irix5* | irix6* | nonstopux*)
9955   case $host_os in
9956     nonstopux*) version_type=nonstopux ;;
9957     *)
9958         if test "$lt_cv_prog_gnu_ld" = yes; then
9959                 version_type=linux
9960         else
9961                 version_type=irix
9962         fi ;;
9963   esac
9964   need_lib_prefix=no
9965   need_version=no
9966   soname_spec='${libname}${release}${shared_ext}$major'
9967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9968   case $host_os in
9969   irix5* | nonstopux*)
9970     libsuff= shlibsuff=
9971     ;;
9972   *)
9973     case $LD in # libtool.m4 will add one of these switches to LD
9974     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9975       libsuff= shlibsuff= libmagic=32-bit;;
9976     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9977       libsuff=32 shlibsuff=N32 libmagic=N32;;
9978     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9979       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9980     *) libsuff= shlibsuff= libmagic=never-match;;
9981     esac
9982     ;;
9983   esac
9984   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9985   shlibpath_overrides_runpath=no
9986   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9987   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9988   hardcode_into_libs=yes
9989   ;;
9990
9991 # No shared lib support for Linux oldld, aout, or coff.
9992 linux*oldld* | linux*aout* | linux*coff*)
9993   dynamic_linker=no
9994   ;;
9995
9996 # This must be Linux ELF.
9997 linux*)
9998   version_type=linux
9999   need_lib_prefix=no
10000   need_version=no
10001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002   soname_spec='${libname}${release}${shared_ext}$major'
10003   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10004   shlibpath_var=LD_LIBRARY_PATH
10005   shlibpath_overrides_runpath=no
10006   # This implies no fast_install, which is unacceptable.
10007   # Some rework will be needed to allow for fast_install
10008   # before this can be enabled.
10009   hardcode_into_libs=yes
10010
10011   # Append ld.so.conf contents to the search path
10012   if test -f /etc/ld.so.conf; then
10013     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' ' '`
10014     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10015   fi
10016
10017   # We used to test for /lib/ld.so.1 and disable shared libraries on
10018   # powerpc, because MkLinux only supported shared libraries with the
10019   # GNU dynamic linker.  Since this was broken with cross compilers,
10020   # most powerpc-linux boxes support dynamic linking these days and
10021   # people can always --disable-shared, the test was removed, and we
10022   # assume the GNU/Linux dynamic linker is in use.
10023   dynamic_linker='GNU/Linux ld.so'
10024   ;;
10025
10026 knetbsd*-gnu)
10027   version_type=linux
10028   need_lib_prefix=no
10029   need_version=no
10030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10031   soname_spec='${libname}${release}${shared_ext}$major'
10032   shlibpath_var=LD_LIBRARY_PATH
10033   shlibpath_overrides_runpath=no
10034   hardcode_into_libs=yes
10035   dynamic_linker='GNU ld.so'
10036   ;;
10037
10038 netbsd*)
10039   version_type=sunos
10040   need_lib_prefix=no
10041   need_version=no
10042   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10044     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10045     dynamic_linker='NetBSD (a.out) ld.so'
10046   else
10047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10048     soname_spec='${libname}${release}${shared_ext}$major'
10049     dynamic_linker='NetBSD ld.elf_so'
10050   fi
10051   shlibpath_var=LD_LIBRARY_PATH
10052   shlibpath_overrides_runpath=yes
10053   hardcode_into_libs=yes
10054   ;;
10055
10056 newsos6)
10057   version_type=linux
10058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059   shlibpath_var=LD_LIBRARY_PATH
10060   shlibpath_overrides_runpath=yes
10061   ;;
10062
10063 nto-qnx*)
10064   version_type=linux
10065   need_lib_prefix=no
10066   need_version=no
10067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068   soname_spec='${libname}${release}${shared_ext}$major'
10069   shlibpath_var=LD_LIBRARY_PATH
10070   shlibpath_overrides_runpath=yes
10071   ;;
10072
10073 openbsd*)
10074   version_type=sunos
10075   sys_lib_dlsearch_path_spec="/usr/lib"
10076   need_lib_prefix=no
10077   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10078   case $host_os in
10079     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10080     *)                         need_version=no  ;;
10081   esac
10082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10083   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10084   shlibpath_var=LD_LIBRARY_PATH
10085   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10086     case $host_os in
10087       openbsd2.[89] | openbsd2.[89].*)
10088         shlibpath_overrides_runpath=no
10089         ;;
10090       *)
10091         shlibpath_overrides_runpath=yes
10092         ;;
10093       esac
10094   else
10095     shlibpath_overrides_runpath=yes
10096   fi
10097   ;;
10098
10099 os2*)
10100   libname_spec='$name'
10101   shrext_cmds=".dll"
10102   need_lib_prefix=no
10103   library_names_spec='$libname${shared_ext} $libname.a'
10104   dynamic_linker='OS/2 ld.exe'
10105   shlibpath_var=LIBPATH
10106   ;;
10107
10108 osf3* | osf4* | osf5*)
10109   version_type=osf
10110   need_lib_prefix=no
10111   need_version=no
10112   soname_spec='${libname}${release}${shared_ext}$major'
10113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114   shlibpath_var=LD_LIBRARY_PATH
10115   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10116   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10117   ;;
10118
10119 solaris*)
10120   version_type=linux
10121   need_lib_prefix=no
10122   need_version=no
10123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124   soname_spec='${libname}${release}${shared_ext}$major'
10125   shlibpath_var=LD_LIBRARY_PATH
10126   shlibpath_overrides_runpath=yes
10127   hardcode_into_libs=yes
10128   # ldd complains unless libraries are executable
10129   postinstall_cmds='chmod +x $lib'
10130   ;;
10131
10132 sunos4*)
10133   version_type=sunos
10134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10135   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10136   shlibpath_var=LD_LIBRARY_PATH
10137   shlibpath_overrides_runpath=yes
10138   if test "$with_gnu_ld" = yes; then
10139     need_lib_prefix=no
10140   fi
10141   need_version=yes
10142   ;;
10143
10144 sysv4 | sysv4.3*)
10145   version_type=linux
10146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147   soname_spec='${libname}${release}${shared_ext}$major'
10148   shlibpath_var=LD_LIBRARY_PATH
10149   case $host_vendor in
10150     sni)
10151       shlibpath_overrides_runpath=no
10152       need_lib_prefix=no
10153       export_dynamic_flag_spec='${wl}-Blargedynsym'
10154       runpath_var=LD_RUN_PATH
10155       ;;
10156     siemens)
10157       need_lib_prefix=no
10158       ;;
10159     motorola)
10160       need_lib_prefix=no
10161       need_version=no
10162       shlibpath_overrides_runpath=no
10163       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10164       ;;
10165   esac
10166   ;;
10167
10168 sysv4*MP*)
10169   if test -d /usr/nec ;then
10170     version_type=linux
10171     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10172     soname_spec='$libname${shared_ext}.$major'
10173     shlibpath_var=LD_LIBRARY_PATH
10174   fi
10175   ;;
10176
10177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10178   version_type=freebsd-elf
10179   need_lib_prefix=no
10180   need_version=no
10181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10182   soname_spec='${libname}${release}${shared_ext}$major'
10183   shlibpath_var=LD_LIBRARY_PATH
10184   hardcode_into_libs=yes
10185   if test "$with_gnu_ld" = yes; then
10186     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10187     shlibpath_overrides_runpath=no
10188   else
10189     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10190     shlibpath_overrides_runpath=yes
10191     case $host_os in
10192       sco3.2v5*)
10193         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10194         ;;
10195     esac
10196   fi
10197   sys_lib_dlsearch_path_spec='/usr/lib'
10198   ;;
10199
10200 uts4*)
10201   version_type=linux
10202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203   soname_spec='${libname}${release}${shared_ext}$major'
10204   shlibpath_var=LD_LIBRARY_PATH
10205   ;;
10206
10207 *)
10208   dynamic_linker=no
10209   ;;
10210 esac
10211 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10212 echo "${ECHO_T}$dynamic_linker" >&6; }
10213 test "$dynamic_linker" = no && can_build_shared=no
10214
10215 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10216 if test "$GCC" = yes; then
10217   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10218 fi
10219
10220
10221 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10222 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10223 if test "${libltdl_cv_shlibext+set}" = set; then
10224   echo $ECHO_N "(cached) $ECHO_C" >&6
10225 else
10226
10227 module=yes
10228 eval libltdl_cv_shlibext=$shrext_cmds
10229
10230 fi
10231 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10232 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10233 if test -n "$libltdl_cv_shlibext"; then
10234
10235 cat >>confdefs.h <<_ACEOF
10236 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10237 _ACEOF
10238
10239 fi
10240
10241
10242 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10243 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10244 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10245   echo $ECHO_N "(cached) $ECHO_C" >&6
10246 else
10247   libltdl_cv_shlibpath_var="$shlibpath_var"
10248 fi
10249 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10250 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10251 if test -n "$libltdl_cv_shlibpath_var"; then
10252
10253 cat >>confdefs.h <<_ACEOF
10254 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10255 _ACEOF
10256
10257 fi
10258
10259
10260 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10261 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10262 if test "${libltdl_cv_sys_search_path+set}" = set; then
10263   echo $ECHO_N "(cached) $ECHO_C" >&6
10264 else
10265   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10266 fi
10267 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10268 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10269 if test -n "$libltdl_cv_sys_search_path"; then
10270   sys_search_path=
10271   for dir in $libltdl_cv_sys_search_path; do
10272     if test -z "$sys_search_path"; then
10273       sys_search_path="$dir"
10274     else
10275       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10276     fi
10277   done
10278
10279 cat >>confdefs.h <<_ACEOF
10280 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10281 _ACEOF
10282
10283 fi
10284
10285 { echo "$as_me:$LINENO: checking for objdir" >&5
10286 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10287 if test "${libltdl_cv_objdir+set}" = set; then
10288   echo $ECHO_N "(cached) $ECHO_C" >&6
10289 else
10290   libltdl_cv_objdir="$objdir"
10291   if test -n "$objdir"; then
10292     :
10293   else
10294     rm -f .libs 2>/dev/null
10295     mkdir .libs 2>/dev/null
10296     if test -d .libs; then
10297       libltdl_cv_objdir=.libs
10298     else
10299       # MS-DOS does not allow filenames that begin with a dot.
10300       libltdl_cv_objdir=_libs
10301     fi
10302   rmdir .libs 2>/dev/null
10303   fi
10304
10305 fi
10306 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10307 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10308
10309 cat >>confdefs.h <<_ACEOF
10310 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10311 _ACEOF
10312
10313
10314
10315
10316
10317
10318 # Check for command to grab the raw symbol name followed by C symbol from nm.
10319 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10320 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10321 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10322   echo $ECHO_N "(cached) $ECHO_C" >&6
10323 else
10324
10325 # These are sane defaults that work on at least a few old systems.
10326 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10327
10328 # Character class describing NM global symbol codes.
10329 symcode='[BCDEGRST]'
10330
10331 # Regexp to match symbols that can be accessed directly from C.
10332 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10333
10334 # Transform an extracted symbol line into a proper C declaration
10335 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10336
10337 # Transform an extracted symbol line into symbol name and symbol address
10338 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'"
10339
10340 # Define system-specific variables.
10341 case $host_os in
10342 aix*)
10343   symcode='[BCDT]'
10344   ;;
10345 cygwin* | mingw* | pw32*)
10346   symcode='[ABCDGISTW]'
10347   ;;
10348 hpux*) # Its linker distinguishes data from code symbols
10349   if test "$host_cpu" = ia64; then
10350     symcode='[ABCDEGRST]'
10351   fi
10352   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10353   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'"
10354   ;;
10355 linux*)
10356   if test "$host_cpu" = ia64; then
10357     symcode='[ABCDGIRSTW]'
10358     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10359     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'"
10360   fi
10361   ;;
10362 irix* | nonstopux*)
10363   symcode='[BCDEGRST]'
10364   ;;
10365 osf*)
10366   symcode='[BCDEGQRST]'
10367   ;;
10368 solaris*)
10369   symcode='[BDRT]'
10370   ;;
10371 sco3.2v5*)
10372   symcode='[DT]'
10373   ;;
10374 sysv4.2uw2*)
10375   symcode='[DT]'
10376   ;;
10377 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10378   symcode='[ABDT]'
10379   ;;
10380 sysv4)
10381   symcode='[DFNSTU]'
10382   ;;
10383 esac
10384
10385 # Handle CRLF in mingw tool chain
10386 opt_cr=
10387 case $build_os in
10388 mingw*)
10389   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10390   ;;
10391 esac
10392
10393 # If we're using GNU nm, then use its standard symbol codes.
10394 case `$NM -V 2>&1` in
10395 *GNU* | *'with BFD'*)
10396   symcode='[ABCDGIRSTW]' ;;
10397 esac
10398
10399 # Try without a prefix undercore, then with it.
10400 for ac_symprfx in "" "_"; do
10401
10402   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10403   symxfrm="\\1 $ac_symprfx\\2 \\2"
10404
10405   # Write the raw and C identifiers.
10406   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10407
10408   # Check to see that the pipe works correctly.
10409   pipe_works=no
10410
10411   rm -f conftest*
10412   cat > conftest.$ac_ext <<EOF
10413 #ifdef __cplusplus
10414 extern "C" {
10415 #endif
10416 char nm_test_var;
10417 void nm_test_func(){}
10418 #ifdef __cplusplus
10419 }
10420 #endif
10421 int main(){nm_test_var='a';nm_test_func();return(0);}
10422 EOF
10423
10424   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10425   (eval $ac_compile) 2>&5
10426   ac_status=$?
10427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428   (exit $ac_status); }; then
10429     # Now try to grab the symbols.
10430     nlist=conftest.nm
10431     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10432   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10433   ac_status=$?
10434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435   (exit $ac_status); } && test -s "$nlist"; then
10436       # Try sorting and uniquifying the output.
10437       if sort "$nlist" | uniq > "$nlist"T; then
10438         mv -f "$nlist"T "$nlist"
10439       else
10440         rm -f "$nlist"T
10441       fi
10442
10443       # Make sure that we snagged all the symbols we need.
10444       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10445         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10446           cat <<EOF > conftest.$ac_ext
10447 #ifdef __cplusplus
10448 extern "C" {
10449 #endif
10450
10451 EOF
10452           # Now generate the symbol file.
10453           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10454
10455           cat <<EOF >> conftest.$ac_ext
10456 #if defined (__STDC__) && __STDC__
10457 # define lt_ptr_t void *
10458 #else
10459 # define lt_ptr_t char *
10460 # define const
10461 #endif
10462
10463 /* The mapping between symbol names and symbols. */
10464 const struct {
10465   const char *name;
10466   lt_ptr_t address;
10467 }
10468 lt_preloaded_symbols[] =
10469 {
10470 EOF
10471           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10472           cat <<\EOF >> conftest.$ac_ext
10473   {0, (lt_ptr_t) 0}
10474 };
10475
10476 #ifdef __cplusplus
10477 }
10478 #endif
10479 EOF
10480           # Now try linking the two files.
10481           mv conftest.$ac_objext conftstm.$ac_objext
10482           lt_save_LIBS="$LIBS"
10483           lt_save_CFLAGS="$CFLAGS"
10484           LIBS="conftstm.$ac_objext"
10485           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10486           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10487   (eval $ac_link) 2>&5
10488   ac_status=$?
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10491             pipe_works=yes
10492           fi
10493           LIBS="$lt_save_LIBS"
10494           CFLAGS="$lt_save_CFLAGS"
10495         else
10496           echo "cannot find nm_test_func in $nlist" >&5
10497         fi
10498       else
10499         echo "cannot find nm_test_var in $nlist" >&5
10500       fi
10501     else
10502       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10503     fi
10504   else
10505     echo "$progname: failed program was:" >&5
10506     cat conftest.$ac_ext >&5
10507   fi
10508   rm -f conftest* conftst*
10509
10510   # Do not use the global_symbol_pipe unless it works.
10511   if test "$pipe_works" = yes; then
10512     break
10513   else
10514     lt_cv_sys_global_symbol_pipe=
10515   fi
10516 done
10517
10518 fi
10519
10520 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10521   lt_cv_sys_global_symbol_to_cdecl=
10522 fi
10523 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10524   { echo "$as_me:$LINENO: result: failed" >&5
10525 echo "${ECHO_T}failed" >&6; }
10526 else
10527   { echo "$as_me:$LINENO: result: ok" >&5
10528 echo "${ECHO_T}ok" >&6; }
10529 fi
10530
10531
10532 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10533 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10534 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10535   echo $ECHO_N "(cached) $ECHO_C" >&6
10536 else
10537   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10538     libltdl_cv_preloaded_symbols=yes
10539   else
10540     libltdl_cv_preloaded_symbols=no
10541   fi
10542
10543 fi
10544 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10545 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10546 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10547
10548 cat >>confdefs.h <<\_ACEOF
10549 #define HAVE_PRELOADED_SYMBOLS 1
10550 _ACEOF
10551
10552 fi
10553
10554 LIBADD_DL=
10555
10556 ac_ext=c
10557 ac_cpp='$CPP $CPPFLAGS'
10558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10561
10562
10563 { echo "$as_me:$LINENO: checking for shl_load" >&5
10564 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10565 if test "${ac_cv_func_shl_load+set}" = set; then
10566   echo $ECHO_N "(cached) $ECHO_C" >&6
10567 else
10568   cat >conftest.$ac_ext <<_ACEOF
10569 /* confdefs.h.  */
10570 _ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h.  */
10574 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10576 #define shl_load innocuous_shl_load
10577
10578 /* System header to define __stub macros and hopefully few prototypes,
10579     which can conflict with char shl_load (); below.
10580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10581     <limits.h> exists even on freestanding compilers.  */
10582
10583 #ifdef __STDC__
10584 # include <limits.h>
10585 #else
10586 # include <assert.h>
10587 #endif
10588
10589 #undef shl_load
10590
10591 /* Override any GCC internal prototype to avoid an error.
10592    Use char because int might match the return type of a GCC
10593    builtin and then its argument prototype would still apply.  */
10594 #ifdef __cplusplus
10595 extern "C"
10596 #endif
10597 char shl_load ();
10598 /* The GNU C library defines this for functions which it implements
10599     to always fail with ENOSYS.  Some functions are actually named
10600     something starting with __ and the normal name is an alias.  */
10601 #if defined __stub_shl_load || defined __stub___shl_load
10602 choke me
10603 #endif
10604
10605 int
10606 main ()
10607 {
10608 return shl_load ();
10609   ;
10610   return 0;
10611 }
10612 _ACEOF
10613 rm -f conftest.$ac_objext conftest$ac_exeext
10614 if { (ac_try="$ac_link"
10615 case "(($ac_try" in
10616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617   *) ac_try_echo=$ac_try;;
10618 esac
10619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620   (eval "$ac_link") 2>conftest.er1
10621   ac_status=$?
10622   grep -v '^ *+' conftest.er1 >conftest.err
10623   rm -f conftest.er1
10624   cat conftest.err >&5
10625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626   (exit $ac_status); } &&
10627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10628   { (case "(($ac_try" in
10629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630   *) ac_try_echo=$ac_try;;
10631 esac
10632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633   (eval "$ac_try") 2>&5
10634   ac_status=$?
10635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636   (exit $ac_status); }; } &&
10637          { ac_try='test -s conftest$ac_exeext'
10638   { (case "(($ac_try" in
10639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10640   *) ac_try_echo=$ac_try;;
10641 esac
10642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10643   (eval "$ac_try") 2>&5
10644   ac_status=$?
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); }; }; then
10647   ac_cv_func_shl_load=yes
10648 else
10649   echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10651
10652         ac_cv_func_shl_load=no
10653 fi
10654
10655 rm -f core conftest.err conftest.$ac_objext \
10656       conftest$ac_exeext conftest.$ac_ext
10657 fi
10658 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10659 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10660 if test $ac_cv_func_shl_load = yes; then
10661
10662 cat >>confdefs.h <<\_ACEOF
10663 #define HAVE_SHL_LOAD 1
10664 _ACEOF
10665
10666 else
10667   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10668 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10669 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10670   echo $ECHO_N "(cached) $ECHO_C" >&6
10671 else
10672   ac_check_lib_save_LIBS=$LIBS
10673 LIBS="-ldld  $LIBS"
10674 cat >conftest.$ac_ext <<_ACEOF
10675 /* confdefs.h.  */
10676 _ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h.  */
10680
10681 /* Override any GCC internal prototype to avoid an error.
10682    Use char because int might match the return type of a GCC
10683    builtin and then its argument prototype would still apply.  */
10684 #ifdef __cplusplus
10685 extern "C"
10686 #endif
10687 char shl_load ();
10688 int
10689 main ()
10690 {
10691 return shl_load ();
10692   ;
10693   return 0;
10694 }
10695 _ACEOF
10696 rm -f conftest.$ac_objext conftest$ac_exeext
10697 if { (ac_try="$ac_link"
10698 case "(($ac_try" in
10699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700   *) ac_try_echo=$ac_try;;
10701 esac
10702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703   (eval "$ac_link") 2>conftest.er1
10704   ac_status=$?
10705   grep -v '^ *+' conftest.er1 >conftest.err
10706   rm -f conftest.er1
10707   cat conftest.err >&5
10708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709   (exit $ac_status); } &&
10710          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10711   { (case "(($ac_try" in
10712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713   *) ac_try_echo=$ac_try;;
10714 esac
10715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716   (eval "$ac_try") 2>&5
10717   ac_status=$?
10718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719   (exit $ac_status); }; } &&
10720          { ac_try='test -s conftest$ac_exeext'
10721   { (case "(($ac_try" in
10722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723   *) ac_try_echo=$ac_try;;
10724 esac
10725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726   (eval "$ac_try") 2>&5
10727   ac_status=$?
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); }; }; then
10730   ac_cv_lib_dld_shl_load=yes
10731 else
10732   echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10734
10735         ac_cv_lib_dld_shl_load=no
10736 fi
10737
10738 rm -f core conftest.err conftest.$ac_objext \
10739       conftest$ac_exeext conftest.$ac_ext
10740 LIBS=$ac_check_lib_save_LIBS
10741 fi
10742 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10743 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10744 if test $ac_cv_lib_dld_shl_load = yes; then
10745
10746 cat >>confdefs.h <<\_ACEOF
10747 #define HAVE_SHL_LOAD 1
10748 _ACEOF
10749
10750         LIBADD_DL="$LIBADD_DL -ldld"
10751 else
10752   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10753 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10754 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10755   echo $ECHO_N "(cached) $ECHO_C" >&6
10756 else
10757   ac_check_lib_save_LIBS=$LIBS
10758 LIBS="-ldl  $LIBS"
10759 cat >conftest.$ac_ext <<_ACEOF
10760 /* confdefs.h.  */
10761 _ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h.  */
10765
10766 /* Override any GCC internal prototype to avoid an error.
10767    Use char because int might match the return type of a GCC
10768    builtin and then its argument prototype would still apply.  */
10769 #ifdef __cplusplus
10770 extern "C"
10771 #endif
10772 char dlopen ();
10773 int
10774 main ()
10775 {
10776 return dlopen ();
10777   ;
10778   return 0;
10779 }
10780 _ACEOF
10781 rm -f conftest.$ac_objext conftest$ac_exeext
10782 if { (ac_try="$ac_link"
10783 case "(($ac_try" in
10784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785   *) ac_try_echo=$ac_try;;
10786 esac
10787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788   (eval "$ac_link") 2>conftest.er1
10789   ac_status=$?
10790   grep -v '^ *+' conftest.er1 >conftest.err
10791   rm -f conftest.er1
10792   cat conftest.err >&5
10793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794   (exit $ac_status); } &&
10795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10796   { (case "(($ac_try" in
10797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798   *) ac_try_echo=$ac_try;;
10799 esac
10800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801   (eval "$ac_try") 2>&5
10802   ac_status=$?
10803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804   (exit $ac_status); }; } &&
10805          { ac_try='test -s conftest$ac_exeext'
10806   { (case "(($ac_try" in
10807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808   *) ac_try_echo=$ac_try;;
10809 esac
10810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811   (eval "$ac_try") 2>&5
10812   ac_status=$?
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); }; }; then
10815   ac_cv_lib_dl_dlopen=yes
10816 else
10817   echo "$as_me: failed program was:" >&5
10818 sed 's/^/| /' conftest.$ac_ext >&5
10819
10820         ac_cv_lib_dl_dlopen=no
10821 fi
10822
10823 rm -f core conftest.err conftest.$ac_objext \
10824       conftest$ac_exeext conftest.$ac_ext
10825 LIBS=$ac_check_lib_save_LIBS
10826 fi
10827 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10828 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10829 if test $ac_cv_lib_dl_dlopen = yes; then
10830
10831 cat >>confdefs.h <<\_ACEOF
10832 #define HAVE_LIBDL 1
10833 _ACEOF
10834
10835                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10836 else
10837   cat >conftest.$ac_ext <<_ACEOF
10838 /* confdefs.h.  */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h.  */
10843 #if HAVE_DLFCN_H
10844 #  include <dlfcn.h>
10845 #endif
10846
10847 int
10848 main ()
10849 {
10850 dlopen(0, 0);
10851   ;
10852   return 0;
10853 }
10854 _ACEOF
10855 rm -f conftest.$ac_objext conftest$ac_exeext
10856 if { (ac_try="$ac_link"
10857 case "(($ac_try" in
10858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859   *) ac_try_echo=$ac_try;;
10860 esac
10861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10862   (eval "$ac_link") 2>conftest.er1
10863   ac_status=$?
10864   grep -v '^ *+' conftest.er1 >conftest.err
10865   rm -f conftest.er1
10866   cat conftest.err >&5
10867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868   (exit $ac_status); } &&
10869          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10870   { (case "(($ac_try" in
10871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872   *) ac_try_echo=$ac_try;;
10873 esac
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875   (eval "$ac_try") 2>&5
10876   ac_status=$?
10877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878   (exit $ac_status); }; } &&
10879          { ac_try='test -s conftest$ac_exeext'
10880   { (case "(($ac_try" in
10881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882   *) ac_try_echo=$ac_try;;
10883 esac
10884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885   (eval "$ac_try") 2>&5
10886   ac_status=$?
10887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888   (exit $ac_status); }; }; then
10889
10890 cat >>confdefs.h <<\_ACEOF
10891 #define HAVE_LIBDL 1
10892 _ACEOF
10893  libltdl_cv_func_dlopen="yes"
10894 else
10895   echo "$as_me: failed program was:" >&5
10896 sed 's/^/| /' conftest.$ac_ext >&5
10897
10898         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10899 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10900 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10901   echo $ECHO_N "(cached) $ECHO_C" >&6
10902 else
10903   ac_check_lib_save_LIBS=$LIBS
10904 LIBS="-lsvld  $LIBS"
10905 cat >conftest.$ac_ext <<_ACEOF
10906 /* confdefs.h.  */
10907 _ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h.  */
10911
10912 /* Override any GCC internal prototype to avoid an error.
10913    Use char because int might match the return type of a GCC
10914    builtin and then its argument prototype would still apply.  */
10915 #ifdef __cplusplus
10916 extern "C"
10917 #endif
10918 char dlopen ();
10919 int
10920 main ()
10921 {
10922 return dlopen ();
10923   ;
10924   return 0;
10925 }
10926 _ACEOF
10927 rm -f conftest.$ac_objext conftest$ac_exeext
10928 if { (ac_try="$ac_link"
10929 case "(($ac_try" in
10930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931   *) ac_try_echo=$ac_try;;
10932 esac
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934   (eval "$ac_link") 2>conftest.er1
10935   ac_status=$?
10936   grep -v '^ *+' conftest.er1 >conftest.err
10937   rm -f conftest.er1
10938   cat conftest.err >&5
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); } &&
10941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10942   { (case "(($ac_try" in
10943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944   *) ac_try_echo=$ac_try;;
10945 esac
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947   (eval "$ac_try") 2>&5
10948   ac_status=$?
10949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); }; } &&
10951          { ac_try='test -s conftest$ac_exeext'
10952   { (case "(($ac_try" in
10953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954   *) ac_try_echo=$ac_try;;
10955 esac
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957   (eval "$ac_try") 2>&5
10958   ac_status=$?
10959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); }; }; then
10961   ac_cv_lib_svld_dlopen=yes
10962 else
10963   echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10965
10966         ac_cv_lib_svld_dlopen=no
10967 fi
10968
10969 rm -f core conftest.err conftest.$ac_objext \
10970       conftest$ac_exeext conftest.$ac_ext
10971 LIBS=$ac_check_lib_save_LIBS
10972 fi
10973 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10974 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10975 if test $ac_cv_lib_svld_dlopen = yes; then
10976
10977 cat >>confdefs.h <<\_ACEOF
10978 #define HAVE_LIBDL 1
10979 _ACEOF
10980
10981                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10982 else
10983   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10984 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10985 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10986   echo $ECHO_N "(cached) $ECHO_C" >&6
10987 else
10988   ac_check_lib_save_LIBS=$LIBS
10989 LIBS="-ldld  $LIBS"
10990 cat >conftest.$ac_ext <<_ACEOF
10991 /* confdefs.h.  */
10992 _ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h.  */
10996
10997 /* Override any GCC internal prototype to avoid an error.
10998    Use char because int might match the return type of a GCC
10999    builtin and then its argument prototype would still apply.  */
11000 #ifdef __cplusplus
11001 extern "C"
11002 #endif
11003 char dld_link ();
11004 int
11005 main ()
11006 {
11007 return dld_link ();
11008   ;
11009   return 0;
11010 }
11011 _ACEOF
11012 rm -f conftest.$ac_objext conftest$ac_exeext
11013 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
11020   ac_status=$?
11021   grep -v '^ *+' conftest.er1 >conftest.err
11022   rm -f conftest.er1
11023   cat conftest.err >&5
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); } &&
11026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11027   { (case "(($ac_try" in
11028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029   *) ac_try_echo=$ac_try;;
11030 esac
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032   (eval "$ac_try") 2>&5
11033   ac_status=$?
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); }; } &&
11036          { ac_try='test -s conftest$ac_exeext'
11037   { (case "(($ac_try" in
11038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039   *) ac_try_echo=$ac_try;;
11040 esac
11041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042   (eval "$ac_try") 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); }; }; then
11046   ac_cv_lib_dld_dld_link=yes
11047 else
11048   echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11050
11051         ac_cv_lib_dld_dld_link=no
11052 fi
11053
11054 rm -f core conftest.err conftest.$ac_objext \
11055       conftest$ac_exeext conftest.$ac_ext
11056 LIBS=$ac_check_lib_save_LIBS
11057 fi
11058 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11059 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11060 if test $ac_cv_lib_dld_dld_link = yes; then
11061
11062 cat >>confdefs.h <<\_ACEOF
11063 #define HAVE_DLD 1
11064 _ACEOF
11065
11066                 LIBADD_DL="$LIBADD_DL -ldld"
11067 else
11068   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11069 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11070 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11071   echo $ECHO_N "(cached) $ECHO_C" >&6
11072 else
11073   cat >conftest.$ac_ext <<_ACEOF
11074 /* confdefs.h.  */
11075 _ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h.  */
11079 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11081 #define _dyld_func_lookup innocuous__dyld_func_lookup
11082
11083 /* System header to define __stub macros and hopefully few prototypes,
11084     which can conflict with char _dyld_func_lookup (); below.
11085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11086     <limits.h> exists even on freestanding compilers.  */
11087
11088 #ifdef __STDC__
11089 # include <limits.h>
11090 #else
11091 # include <assert.h>
11092 #endif
11093
11094 #undef _dyld_func_lookup
11095
11096 /* Override any GCC internal prototype to avoid an error.
11097    Use char because int might match the return type of a GCC
11098    builtin and then its argument prototype would still apply.  */
11099 #ifdef __cplusplus
11100 extern "C"
11101 #endif
11102 char _dyld_func_lookup ();
11103 /* The GNU C library defines this for functions which it implements
11104     to always fail with ENOSYS.  Some functions are actually named
11105     something starting with __ and the normal name is an alias.  */
11106 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11107 choke me
11108 #endif
11109
11110 int
11111 main ()
11112 {
11113 return _dyld_func_lookup ();
11114   ;
11115   return 0;
11116 }
11117 _ACEOF
11118 rm -f conftest.$ac_objext conftest$ac_exeext
11119 if { (ac_try="$ac_link"
11120 case "(($ac_try" in
11121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122   *) ac_try_echo=$ac_try;;
11123 esac
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125   (eval "$ac_link") 2>conftest.er1
11126   ac_status=$?
11127   grep -v '^ *+' conftest.er1 >conftest.err
11128   rm -f conftest.er1
11129   cat conftest.err >&5
11130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131   (exit $ac_status); } &&
11132          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11133   { (case "(($ac_try" in
11134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135   *) ac_try_echo=$ac_try;;
11136 esac
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138   (eval "$ac_try") 2>&5
11139   ac_status=$?
11140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141   (exit $ac_status); }; } &&
11142          { ac_try='test -s conftest$ac_exeext'
11143   { (case "(($ac_try" in
11144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145   *) ac_try_echo=$ac_try;;
11146 esac
11147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148   (eval "$ac_try") 2>&5
11149   ac_status=$?
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); }; }; then
11152   ac_cv_func__dyld_func_lookup=yes
11153 else
11154   echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11156
11157         ac_cv_func__dyld_func_lookup=no
11158 fi
11159
11160 rm -f core conftest.err conftest.$ac_objext \
11161       conftest$ac_exeext conftest.$ac_ext
11162 fi
11163 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11164 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11165 if test $ac_cv_func__dyld_func_lookup = yes; then
11166
11167 cat >>confdefs.h <<\_ACEOF
11168 #define HAVE_DYLD 1
11169 _ACEOF
11170
11171 fi
11172
11173
11174 fi
11175
11176
11177 fi
11178
11179
11180 fi
11181
11182 rm -f core conftest.err conftest.$ac_objext \
11183       conftest$ac_exeext conftest.$ac_ext
11184
11185 fi
11186
11187
11188 fi
11189
11190
11191 fi
11192
11193
11194 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11195 then
11196   lt_save_LIBS="$LIBS"
11197   LIBS="$LIBS $LIBADD_DL"
11198
11199 for ac_func in dlerror
11200 do
11201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11202 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11205   echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207   cat >conftest.$ac_ext <<_ACEOF
11208 /* confdefs.h.  */
11209 _ACEOF
11210 cat confdefs.h >>conftest.$ac_ext
11211 cat >>conftest.$ac_ext <<_ACEOF
11212 /* end confdefs.h.  */
11213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11214    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11215 #define $ac_func innocuous_$ac_func
11216
11217 /* System header to define __stub macros and hopefully few prototypes,
11218     which can conflict with char $ac_func (); below.
11219     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11220     <limits.h> exists even on freestanding compilers.  */
11221
11222 #ifdef __STDC__
11223 # include <limits.h>
11224 #else
11225 # include <assert.h>
11226 #endif
11227
11228 #undef $ac_func
11229
11230 /* Override any GCC internal prototype to avoid an error.
11231    Use char because int might match the return type of a GCC
11232    builtin and then its argument prototype would still apply.  */
11233 #ifdef __cplusplus
11234 extern "C"
11235 #endif
11236 char $ac_func ();
11237 /* The GNU C library defines this for functions which it implements
11238     to always fail with ENOSYS.  Some functions are actually named
11239     something starting with __ and the normal name is an alias.  */
11240 #if defined __stub_$ac_func || defined __stub___$ac_func
11241 choke me
11242 #endif
11243
11244 int
11245 main ()
11246 {
11247 return $ac_func ();
11248   ;
11249   return 0;
11250 }
11251 _ACEOF
11252 rm -f conftest.$ac_objext conftest$ac_exeext
11253 if { (ac_try="$ac_link"
11254 case "(($ac_try" in
11255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256   *) ac_try_echo=$ac_try;;
11257 esac
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259   (eval "$ac_link") 2>conftest.er1
11260   ac_status=$?
11261   grep -v '^ *+' conftest.er1 >conftest.err
11262   rm -f conftest.er1
11263   cat conftest.err >&5
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); } &&
11266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267   { (case "(($ac_try" in
11268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269   *) ac_try_echo=$ac_try;;
11270 esac
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272   (eval "$ac_try") 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); }; } &&
11276          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11286   eval "$as_ac_var=yes"
11287 else
11288   echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11290
11291         eval "$as_ac_var=no"
11292 fi
11293
11294 rm -f core conftest.err conftest.$ac_objext \
11295       conftest$ac_exeext conftest.$ac_ext
11296 fi
11297 ac_res=`eval echo '${'$as_ac_var'}'`
11298                { echo "$as_me:$LINENO: result: $ac_res" >&5
11299 echo "${ECHO_T}$ac_res" >&6; }
11300 if test `eval echo '${'$as_ac_var'}'` = yes; then
11301   cat >>confdefs.h <<_ACEOF
11302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11303 _ACEOF
11304
11305 fi
11306 done
11307
11308   LIBS="$lt_save_LIBS"
11309 fi
11310 ac_ext=c
11311 ac_cpp='$CPP $CPPFLAGS'
11312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11315
11316
11317
11318 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11319 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11320 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11321   echo $ECHO_N "(cached) $ECHO_C" >&6
11322 else
11323   ac_cv_sys_symbol_underscore=no
11324   cat > conftest.$ac_ext <<EOF
11325 void nm_test_func(){}
11326 int main(){nm_test_func;return 0;}
11327 EOF
11328   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11329   (eval $ac_compile) 2>&5
11330   ac_status=$?
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); }; then
11333     # Now try to grab the symbols.
11334     ac_nlist=conftest.nm
11335     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11336   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11337   ac_status=$?
11338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339   (exit $ac_status); } && test -s "$ac_nlist"; then
11340       # See whether the symbols have a leading underscore.
11341       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11342         ac_cv_sys_symbol_underscore=yes
11343       else
11344         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11345           :
11346         else
11347           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11348         fi
11349       fi
11350     else
11351       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11352     fi
11353   else
11354     echo "configure: failed program was:" >&5
11355     cat conftest.c >&5
11356   fi
11357   rm -rf conftest*
11358
11359 fi
11360 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11361 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11362
11363
11364 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11365   if test x"$libltdl_cv_func_dlopen" = xyes ||
11366      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11367         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11368 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11369 if test "${libltdl_cv_need_uscore+set}" = set; then
11370   echo $ECHO_N "(cached) $ECHO_C" >&6
11371 else
11372   libltdl_cv_need_uscore=unknown
11373           save_LIBS="$LIBS"
11374           LIBS="$LIBS $LIBADD_DL"
11375           if test "$cross_compiling" = yes; then :
11376   libltdl_cv_need_uscore=cross
11377 else
11378   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11379   lt_status=$lt_dlunknown
11380   cat > conftest.$ac_ext <<EOF
11381 #line 11381 "configure"
11382 #include "confdefs.h"
11383
11384 #if HAVE_DLFCN_H
11385 #include <dlfcn.h>
11386 #endif
11387
11388 #include <stdio.h>
11389
11390 #ifdef RTLD_GLOBAL
11391 #  define LT_DLGLOBAL           RTLD_GLOBAL
11392 #else
11393 #  ifdef DL_GLOBAL
11394 #    define LT_DLGLOBAL         DL_GLOBAL
11395 #  else
11396 #    define LT_DLGLOBAL         0
11397 #  endif
11398 #endif
11399
11400 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11401    find out it does not work in some platform. */
11402 #ifndef LT_DLLAZY_OR_NOW
11403 #  ifdef RTLD_LAZY
11404 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11405 #  else
11406 #    ifdef DL_LAZY
11407 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11408 #    else
11409 #      ifdef RTLD_NOW
11410 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11411 #      else
11412 #        ifdef DL_NOW
11413 #          define LT_DLLAZY_OR_NOW      DL_NOW
11414 #        else
11415 #          define LT_DLLAZY_OR_NOW      0
11416 #        endif
11417 #      endif
11418 #    endif
11419 #  endif
11420 #endif
11421
11422 #ifdef __cplusplus
11423 extern "C" void exit (int);
11424 #endif
11425
11426 void fnord() { int i=42;}
11427 int main ()
11428 {
11429   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11430   int status = $lt_dlunknown;
11431
11432   if (self)
11433     {
11434       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11435       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11436       /* dlclose (self); */
11437     }
11438   else
11439     puts (dlerror ());
11440
11441     exit (status);
11442 }
11443 EOF
11444   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11445   (eval $ac_link) 2>&5
11446   ac_status=$?
11447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11449     (./conftest; exit; ) >&5 2>/dev/null
11450     lt_status=$?
11451     case x$lt_status in
11452       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11453       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11454       x$lt_dlunknown|x*)  ;;
11455     esac
11456   else :
11457     # compilation failed
11458
11459   fi
11460 fi
11461 rm -fr conftest*
11462
11463           LIBS="$save_LIBS"
11464
11465 fi
11466 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11467 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11468   fi
11469 fi
11470
11471 if test x"$libltdl_cv_need_uscore" = xyes; then
11472
11473 cat >>confdefs.h <<\_ACEOF
11474 #define NEED_USCORE 1
11475 _ACEOF
11476
11477 fi
11478
11479
11480 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11481 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11482 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11483   echo $ECHO_N "(cached) $ECHO_C" >&6
11484 else
11485   # PORTME does your system automatically load deplibs for dlopen?
11486   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11487   # For now, we just catch OSes we know something about -- in the
11488   # future, we'll try test this programmatically.
11489   libltdl_cv_sys_dlopen_deplibs=unknown
11490   case "$host_os" in
11491   aix3*|aix4.1.*|aix4.2.*)
11492     # Unknown whether this is true for these versions of AIX, but
11493     # we want this `case' here to explicitly catch those versions.
11494     libltdl_cv_sys_dlopen_deplibs=unknown
11495     ;;
11496   aix[45]*)
11497     libltdl_cv_sys_dlopen_deplibs=yes
11498     ;;
11499   darwin*)
11500     # Assuming the user has installed a libdl from somewhere, this is true
11501     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11502     libltdl_cv_sys_dlopen_deplibs=yes
11503     ;;
11504   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11505     # GNU and its variants, using gnu ld.so (Glibc)
11506     libltdl_cv_sys_dlopen_deplibs=yes
11507     ;;
11508   hpux10*|hpux11*)
11509     libltdl_cv_sys_dlopen_deplibs=yes
11510     ;;
11511   interix*)
11512     libltdl_cv_sys_dlopen_deplibs=yes
11513     ;;
11514   irix[12345]*|irix6.[01]*)
11515     # Catch all versions of IRIX before 6.2, and indicate that we don't
11516     # know how it worked for any of those versions.
11517     libltdl_cv_sys_dlopen_deplibs=unknown
11518     ;;
11519   irix*)
11520     # The case above catches anything before 6.2, and it's known that
11521     # at 6.2 and later dlopen does load deplibs.
11522     libltdl_cv_sys_dlopen_deplibs=yes
11523     ;;
11524   netbsd*)
11525     libltdl_cv_sys_dlopen_deplibs=yes
11526     ;;
11527   openbsd*)
11528     libltdl_cv_sys_dlopen_deplibs=yes
11529     ;;
11530   osf[1234]*)
11531     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11532     # it did *not* use an RPATH in a shared library to find objects the
11533     # library depends on, so we explictly say `no'.
11534     libltdl_cv_sys_dlopen_deplibs=no
11535     ;;
11536   osf5.0|osf5.0a|osf5.1)
11537     # dlopen *does* load deplibs and with the right loader patch applied
11538     # it even uses RPATH in a shared library to search for shared objects
11539     # that the library depends on, but there's no easy way to know if that
11540     # patch is installed.  Since this is the case, all we can really
11541     # say is unknown -- it depends on the patch being installed.  If
11542     # it is, this changes to `yes'.  Without it, it would be `no'.
11543     libltdl_cv_sys_dlopen_deplibs=unknown
11544     ;;
11545   osf*)
11546     # the two cases above should catch all versions of osf <= 5.1.  Read
11547     # the comments above for what we know about them.
11548     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11549     # is used to find them so we can finally say `yes'.
11550     libltdl_cv_sys_dlopen_deplibs=yes
11551     ;;
11552   solaris*)
11553     libltdl_cv_sys_dlopen_deplibs=yes
11554     ;;
11555   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11556     libltdl_cv_sys_dlopen_deplibs=yes
11557     ;;
11558   esac
11559
11560 fi
11561 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11562 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11563 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11564
11565 cat >>confdefs.h <<\_ACEOF
11566 #define LTDL_DLOPEN_DEPLIBS 1
11567 _ACEOF
11568
11569 fi
11570
11571
11572 for ac_header in argz.h
11573 do
11574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11579   echo $ECHO_N "(cached) $ECHO_C" >&6
11580 fi
11581 ac_res=`eval echo '${'$as_ac_Header'}'`
11582                { echo "$as_me:$LINENO: result: $ac_res" >&5
11583 echo "${ECHO_T}$ac_res" >&6; }
11584 else
11585   # Is the header compilable?
11586 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11588 cat >conftest.$ac_ext <<_ACEOF
11589 /* confdefs.h.  */
11590 _ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h.  */
11594 $ac_includes_default
11595 #include <$ac_header>
11596 _ACEOF
11597 rm -f conftest.$ac_objext
11598 if { (ac_try="$ac_compile"
11599 case "(($ac_try" in
11600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601   *) ac_try_echo=$ac_try;;
11602 esac
11603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604   (eval "$ac_compile") 2>conftest.er1
11605   ac_status=$?
11606   grep -v '^ *+' conftest.er1 >conftest.err
11607   rm -f conftest.er1
11608   cat conftest.err >&5
11609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); } &&
11611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11612   { (case "(($ac_try" in
11613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614   *) ac_try_echo=$ac_try;;
11615 esac
11616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617   (eval "$ac_try") 2>&5
11618   ac_status=$?
11619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620   (exit $ac_status); }; } &&
11621          { ac_try='test -s conftest.$ac_objext'
11622   { (case "(($ac_try" in
11623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624   *) ac_try_echo=$ac_try;;
11625 esac
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627   (eval "$ac_try") 2>&5
11628   ac_status=$?
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); }; }; then
11631   ac_header_compiler=yes
11632 else
11633   echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11635
11636         ac_header_compiler=no
11637 fi
11638
11639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11641 echo "${ECHO_T}$ac_header_compiler" >&6; }
11642
11643 # Is the header present?
11644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11646 cat >conftest.$ac_ext <<_ACEOF
11647 /* confdefs.h.  */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h.  */
11652 #include <$ac_header>
11653 _ACEOF
11654 if { (ac_try="$ac_cpp conftest.$ac_ext"
11655 case "(($ac_try" in
11656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657   *) ac_try_echo=$ac_try;;
11658 esac
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11661   ac_status=$?
11662   grep -v '^ *+' conftest.er1 >conftest.err
11663   rm -f conftest.er1
11664   cat conftest.err >&5
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); } >/dev/null; then
11667   if test -s conftest.err; then
11668     ac_cpp_err=$ac_c_preproc_warn_flag
11669     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11670   else
11671     ac_cpp_err=
11672   fi
11673 else
11674   ac_cpp_err=yes
11675 fi
11676 if test -z "$ac_cpp_err"; then
11677   ac_header_preproc=yes
11678 else
11679   echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11681
11682   ac_header_preproc=no
11683 fi
11684
11685 rm -f conftest.err conftest.$ac_ext
11686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11687 echo "${ECHO_T}$ac_header_preproc" >&6; }
11688
11689 # So?  What about this header?
11690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11691   yes:no: )
11692     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11696     ac_header_preproc=yes
11697     ;;
11698   no:yes:* )
11699     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11701     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11702 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11703     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11705     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11706 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11709     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11711     ( cat <<\_ASBOX
11712 ## ----------------------------------- ##
11713 ## Report this to llvmbugs@cs.uiuc.edu ##
11714 ## ----------------------------------- ##
11715 _ASBOX
11716      ) | sed "s/^/$as_me: WARNING:     /" >&2
11717     ;;
11718 esac
11719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11722   echo $ECHO_N "(cached) $ECHO_C" >&6
11723 else
11724   eval "$as_ac_Header=\$ac_header_preproc"
11725 fi
11726 ac_res=`eval echo '${'$as_ac_Header'}'`
11727                { echo "$as_me:$LINENO: result: $ac_res" >&5
11728 echo "${ECHO_T}$ac_res" >&6; }
11729
11730 fi
11731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11732   cat >>confdefs.h <<_ACEOF
11733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11734 _ACEOF
11735
11736 fi
11737
11738 done
11739
11740
11741 { echo "$as_me:$LINENO: checking for error_t" >&5
11742 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11743 if test "${ac_cv_type_error_t+set}" = set; then
11744   echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746   cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h.  */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h.  */
11752 #if HAVE_ARGZ_H
11753 #  include <argz.h>
11754 #endif
11755
11756 typedef error_t ac__type_new_;
11757 int
11758 main ()
11759 {
11760 if ((ac__type_new_ *) 0)
11761   return 0;
11762 if (sizeof (ac__type_new_))
11763   return 0;
11764   ;
11765   return 0;
11766 }
11767 _ACEOF
11768 rm -f conftest.$ac_objext
11769 if { (ac_try="$ac_compile"
11770 case "(($ac_try" in
11771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772   *) ac_try_echo=$ac_try;;
11773 esac
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775   (eval "$ac_compile") 2>conftest.er1
11776   ac_status=$?
11777   grep -v '^ *+' conftest.er1 >conftest.err
11778   rm -f conftest.er1
11779   cat conftest.err >&5
11780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781   (exit $ac_status); } &&
11782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11783   { (case "(($ac_try" in
11784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785   *) ac_try_echo=$ac_try;;
11786 esac
11787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788   (eval "$ac_try") 2>&5
11789   ac_status=$?
11790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791   (exit $ac_status); }; } &&
11792          { ac_try='test -s conftest.$ac_objext'
11793   { (case "(($ac_try" in
11794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795   *) ac_try_echo=$ac_try;;
11796 esac
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798   (eval "$ac_try") 2>&5
11799   ac_status=$?
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); }; }; then
11802   ac_cv_type_error_t=yes
11803 else
11804   echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11806
11807         ac_cv_type_error_t=no
11808 fi
11809
11810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11811 fi
11812 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11813 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11814 if test $ac_cv_type_error_t = yes; then
11815
11816 cat >>confdefs.h <<_ACEOF
11817 #define HAVE_ERROR_T 1
11818 _ACEOF
11819
11820
11821 else
11822
11823 cat >>confdefs.h <<\_ACEOF
11824 #define error_t int
11825 _ACEOF
11826
11827 fi
11828
11829
11830
11831
11832
11833
11834
11835 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11836 do
11837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11838 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11841   echo $ECHO_N "(cached) $ECHO_C" >&6
11842 else
11843   cat >conftest.$ac_ext <<_ACEOF
11844 /* confdefs.h.  */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h.  */
11849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11850    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11851 #define $ac_func innocuous_$ac_func
11852
11853 /* System header to define __stub macros and hopefully few prototypes,
11854     which can conflict with char $ac_func (); below.
11855     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11856     <limits.h> exists even on freestanding compilers.  */
11857
11858 #ifdef __STDC__
11859 # include <limits.h>
11860 #else
11861 # include <assert.h>
11862 #endif
11863
11864 #undef $ac_func
11865
11866 /* Override any GCC internal prototype to avoid an error.
11867    Use char because int might match the return type of a GCC
11868    builtin and then its argument prototype would still apply.  */
11869 #ifdef __cplusplus
11870 extern "C"
11871 #endif
11872 char $ac_func ();
11873 /* The GNU C library defines this for functions which it implements
11874     to always fail with ENOSYS.  Some functions are actually named
11875     something starting with __ and the normal name is an alias.  */
11876 #if defined __stub_$ac_func || defined __stub___$ac_func
11877 choke me
11878 #endif
11879
11880 int
11881 main ()
11882 {
11883 return $ac_func ();
11884   ;
11885   return 0;
11886 }
11887 _ACEOF
11888 rm -f conftest.$ac_objext conftest$ac_exeext
11889 if { (ac_try="$ac_link"
11890 case "(($ac_try" in
11891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892   *) ac_try_echo=$ac_try;;
11893 esac
11894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895   (eval "$ac_link") 2>conftest.er1
11896   ac_status=$?
11897   grep -v '^ *+' conftest.er1 >conftest.err
11898   rm -f conftest.er1
11899   cat conftest.err >&5
11900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901   (exit $ac_status); } &&
11902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11903   { (case "(($ac_try" in
11904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905   *) ac_try_echo=$ac_try;;
11906 esac
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908   (eval "$ac_try") 2>&5
11909   ac_status=$?
11910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   (exit $ac_status); }; } &&
11912          { ac_try='test -s conftest$ac_exeext'
11913   { (case "(($ac_try" in
11914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915   *) ac_try_echo=$ac_try;;
11916 esac
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918   (eval "$ac_try") 2>&5
11919   ac_status=$?
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); }; }; then
11922   eval "$as_ac_var=yes"
11923 else
11924   echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11926
11927         eval "$as_ac_var=no"
11928 fi
11929
11930 rm -f core conftest.err conftest.$ac_objext \
11931       conftest$ac_exeext conftest.$ac_ext
11932 fi
11933 ac_res=`eval echo '${'$as_ac_var'}'`
11934                { echo "$as_me:$LINENO: result: $ac_res" >&5
11935 echo "${ECHO_T}$ac_res" >&6; }
11936 if test `eval echo '${'$as_ac_var'}'` = yes; then
11937   cat >>confdefs.h <<_ACEOF
11938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11939 _ACEOF
11940
11941 fi
11942 done
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11972                   stdio.h unistd.h
11973 do
11974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11976   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11979   echo $ECHO_N "(cached) $ECHO_C" >&6
11980 fi
11981 ac_res=`eval echo '${'$as_ac_Header'}'`
11982                { echo "$as_me:$LINENO: result: $ac_res" >&5
11983 echo "${ECHO_T}$ac_res" >&6; }
11984 else
11985   # Is the header compilable?
11986 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11988 cat >conftest.$ac_ext <<_ACEOF
11989 /* confdefs.h.  */
11990 _ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h.  */
11994 $ac_includes_default
11995 #include <$ac_header>
11996 _ACEOF
11997 rm -f conftest.$ac_objext
11998 if { (ac_try="$ac_compile"
11999 case "(($ac_try" in
12000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001   *) ac_try_echo=$ac_try;;
12002 esac
12003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004   (eval "$ac_compile") 2>conftest.er1
12005   ac_status=$?
12006   grep -v '^ *+' conftest.er1 >conftest.err
12007   rm -f conftest.er1
12008   cat conftest.err >&5
12009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); } &&
12011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12012   { (case "(($ac_try" in
12013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014   *) ac_try_echo=$ac_try;;
12015 esac
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017   (eval "$ac_try") 2>&5
12018   ac_status=$?
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); }; } &&
12021          { ac_try='test -s conftest.$ac_objext'
12022   { (case "(($ac_try" in
12023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024   *) ac_try_echo=$ac_try;;
12025 esac
12026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027   (eval "$ac_try") 2>&5
12028   ac_status=$?
12029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); }; }; then
12031   ac_header_compiler=yes
12032 else
12033   echo "$as_me: failed program was:" >&5
12034 sed 's/^/| /' conftest.$ac_ext >&5
12035
12036         ac_header_compiler=no
12037 fi
12038
12039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12041 echo "${ECHO_T}$ac_header_compiler" >&6; }
12042
12043 # Is the header present?
12044 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12046 cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h.  */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h.  */
12052 #include <$ac_header>
12053 _ACEOF
12054 if { (ac_try="$ac_cpp conftest.$ac_ext"
12055 case "(($ac_try" in
12056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057   *) ac_try_echo=$ac_try;;
12058 esac
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12061   ac_status=$?
12062   grep -v '^ *+' conftest.er1 >conftest.err
12063   rm -f conftest.er1
12064   cat conftest.err >&5
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); } >/dev/null; then
12067   if test -s conftest.err; then
12068     ac_cpp_err=$ac_c_preproc_warn_flag
12069     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12070   else
12071     ac_cpp_err=
12072   fi
12073 else
12074   ac_cpp_err=yes
12075 fi
12076 if test -z "$ac_cpp_err"; then
12077   ac_header_preproc=yes
12078 else
12079   echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12081
12082   ac_header_preproc=no
12083 fi
12084
12085 rm -f conftest.err conftest.$ac_ext
12086 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12087 echo "${ECHO_T}$ac_header_preproc" >&6; }
12088
12089 # So?  What about this header?
12090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12091   yes:no: )
12092     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12096     ac_header_preproc=yes
12097     ;;
12098   no:yes:* )
12099     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12101     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12102 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12103     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12105     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12106 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12109     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12111     ( cat <<\_ASBOX
12112 ## ----------------------------------- ##
12113 ## Report this to llvmbugs@cs.uiuc.edu ##
12114 ## ----------------------------------- ##
12115 _ASBOX
12116      ) | sed "s/^/$as_me: WARNING:     /" >&2
12117     ;;
12118 esac
12119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12122   echo $ECHO_N "(cached) $ECHO_C" >&6
12123 else
12124   eval "$as_ac_Header=\$ac_header_preproc"
12125 fi
12126 ac_res=`eval echo '${'$as_ac_Header'}'`
12127                { echo "$as_me:$LINENO: result: $ac_res" >&5
12128 echo "${ECHO_T}$ac_res" >&6; }
12129
12130 fi
12131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12132   cat >>confdefs.h <<_ACEOF
12133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12134 _ACEOF
12135
12136 fi
12137
12138 done
12139
12140
12141
12142
12143
12144 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12145 do
12146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12148   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12151   echo $ECHO_N "(cached) $ECHO_C" >&6
12152 fi
12153 ac_res=`eval echo '${'$as_ac_Header'}'`
12154                { echo "$as_me:$LINENO: result: $ac_res" >&5
12155 echo "${ECHO_T}$ac_res" >&6; }
12156 else
12157   # Is the header compilable?
12158 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12160 cat >conftest.$ac_ext <<_ACEOF
12161 /* confdefs.h.  */
12162 _ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h.  */
12166 $ac_includes_default
12167 #include <$ac_header>
12168 _ACEOF
12169 rm -f conftest.$ac_objext
12170 if { (ac_try="$ac_compile"
12171 case "(($ac_try" in
12172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173   *) ac_try_echo=$ac_try;;
12174 esac
12175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176   (eval "$ac_compile") 2>conftest.er1
12177   ac_status=$?
12178   grep -v '^ *+' conftest.er1 >conftest.err
12179   rm -f conftest.er1
12180   cat conftest.err >&5
12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182   (exit $ac_status); } &&
12183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12184   { (case "(($ac_try" in
12185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186   *) ac_try_echo=$ac_try;;
12187 esac
12188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189   (eval "$ac_try") 2>&5
12190   ac_status=$?
12191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192   (exit $ac_status); }; } &&
12193          { ac_try='test -s conftest.$ac_objext'
12194   { (case "(($ac_try" in
12195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196   *) ac_try_echo=$ac_try;;
12197 esac
12198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199   (eval "$ac_try") 2>&5
12200   ac_status=$?
12201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202   (exit $ac_status); }; }; then
12203   ac_header_compiler=yes
12204 else
12205   echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12207
12208         ac_header_compiler=no
12209 fi
12210
12211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12212 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12213 echo "${ECHO_T}$ac_header_compiler" >&6; }
12214
12215 # Is the header present?
12216 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12218 cat >conftest.$ac_ext <<_ACEOF
12219 /* confdefs.h.  */
12220 _ACEOF
12221 cat confdefs.h >>conftest.$ac_ext
12222 cat >>conftest.$ac_ext <<_ACEOF
12223 /* end confdefs.h.  */
12224 #include <$ac_header>
12225 _ACEOF
12226 if { (ac_try="$ac_cpp conftest.$ac_ext"
12227 case "(($ac_try" in
12228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229   *) ac_try_echo=$ac_try;;
12230 esac
12231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12232   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12233   ac_status=$?
12234   grep -v '^ *+' conftest.er1 >conftest.err
12235   rm -f conftest.er1
12236   cat conftest.err >&5
12237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238   (exit $ac_status); } >/dev/null; then
12239   if test -s conftest.err; then
12240     ac_cpp_err=$ac_c_preproc_warn_flag
12241     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12242   else
12243     ac_cpp_err=
12244   fi
12245 else
12246   ac_cpp_err=yes
12247 fi
12248 if test -z "$ac_cpp_err"; then
12249   ac_header_preproc=yes
12250 else
12251   echo "$as_me: failed program was:" >&5
12252 sed 's/^/| /' conftest.$ac_ext >&5
12253
12254   ac_header_preproc=no
12255 fi
12256
12257 rm -f conftest.err conftest.$ac_ext
12258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12259 echo "${ECHO_T}$ac_header_preproc" >&6; }
12260
12261 # So?  What about this header?
12262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12263   yes:no: )
12264     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12268     ac_header_preproc=yes
12269     ;;
12270   no:yes:* )
12271     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12273     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12274 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12275     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12277     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12278 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12279     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12281     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12283     ( cat <<\_ASBOX
12284 ## ----------------------------------- ##
12285 ## Report this to llvmbugs@cs.uiuc.edu ##
12286 ## ----------------------------------- ##
12287 _ASBOX
12288      ) | sed "s/^/$as_me: WARNING:     /" >&2
12289     ;;
12290 esac
12291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12294   echo $ECHO_N "(cached) $ECHO_C" >&6
12295 else
12296   eval "$as_ac_Header=\$ac_header_preproc"
12297 fi
12298 ac_res=`eval echo '${'$as_ac_Header'}'`
12299                { echo "$as_me:$LINENO: result: $ac_res" >&5
12300 echo "${ECHO_T}$ac_res" >&6; }
12301
12302 fi
12303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12304   cat >>confdefs.h <<_ACEOF
12305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12306 _ACEOF
12307
12308 fi
12309
12310 done
12311
12312
12313
12314 for ac_header in string.h strings.h
12315 do
12316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12318   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12321   echo $ECHO_N "(cached) $ECHO_C" >&6
12322 fi
12323 ac_res=`eval echo '${'$as_ac_Header'}'`
12324                { echo "$as_me:$LINENO: result: $ac_res" >&5
12325 echo "${ECHO_T}$ac_res" >&6; }
12326 else
12327   # Is the header compilable?
12328 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12330 cat >conftest.$ac_ext <<_ACEOF
12331 /* confdefs.h.  */
12332 _ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h.  */
12336 $ac_includes_default
12337 #include <$ac_header>
12338 _ACEOF
12339 rm -f conftest.$ac_objext
12340 if { (ac_try="$ac_compile"
12341 case "(($ac_try" in
12342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343   *) ac_try_echo=$ac_try;;
12344 esac
12345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12346   (eval "$ac_compile") 2>conftest.er1
12347   ac_status=$?
12348   grep -v '^ *+' conftest.er1 >conftest.err
12349   rm -f conftest.er1
12350   cat conftest.err >&5
12351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352   (exit $ac_status); } &&
12353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12354   { (case "(($ac_try" in
12355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356   *) ac_try_echo=$ac_try;;
12357 esac
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359   (eval "$ac_try") 2>&5
12360   ac_status=$?
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); }; } &&
12363          { ac_try='test -s conftest.$ac_objext'
12364   { (case "(($ac_try" in
12365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366   *) ac_try_echo=$ac_try;;
12367 esac
12368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369   (eval "$ac_try") 2>&5
12370   ac_status=$?
12371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372   (exit $ac_status); }; }; then
12373   ac_header_compiler=yes
12374 else
12375   echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12377
12378         ac_header_compiler=no
12379 fi
12380
12381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12382 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12383 echo "${ECHO_T}$ac_header_compiler" >&6; }
12384
12385 # Is the header present?
12386 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12388 cat >conftest.$ac_ext <<_ACEOF
12389 /* confdefs.h.  */
12390 _ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h.  */
12394 #include <$ac_header>
12395 _ACEOF
12396 if { (ac_try="$ac_cpp conftest.$ac_ext"
12397 case "(($ac_try" in
12398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399   *) ac_try_echo=$ac_try;;
12400 esac
12401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12402   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12403   ac_status=$?
12404   grep -v '^ *+' conftest.er1 >conftest.err
12405   rm -f conftest.er1
12406   cat conftest.err >&5
12407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408   (exit $ac_status); } >/dev/null; then
12409   if test -s conftest.err; then
12410     ac_cpp_err=$ac_c_preproc_warn_flag
12411     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12412   else
12413     ac_cpp_err=
12414   fi
12415 else
12416   ac_cpp_err=yes
12417 fi
12418 if test -z "$ac_cpp_err"; then
12419   ac_header_preproc=yes
12420 else
12421   echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12423
12424   ac_header_preproc=no
12425 fi
12426
12427 rm -f conftest.err conftest.$ac_ext
12428 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12429 echo "${ECHO_T}$ac_header_preproc" >&6; }
12430
12431 # So?  What about this header?
12432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12433   yes:no: )
12434     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12436     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12437 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12438     ac_header_preproc=yes
12439     ;;
12440   no:yes:* )
12441     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12442 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12443     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12444 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12445     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12446 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12447     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12448 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12451     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12452 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12453     ( cat <<\_ASBOX
12454 ## ----------------------------------- ##
12455 ## Report this to llvmbugs@cs.uiuc.edu ##
12456 ## ----------------------------------- ##
12457 _ASBOX
12458      ) | sed "s/^/$as_me: WARNING:     /" >&2
12459     ;;
12460 esac
12461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12464   echo $ECHO_N "(cached) $ECHO_C" >&6
12465 else
12466   eval "$as_ac_Header=\$ac_header_preproc"
12467 fi
12468 ac_res=`eval echo '${'$as_ac_Header'}'`
12469                { echo "$as_me:$LINENO: result: $ac_res" >&5
12470 echo "${ECHO_T}$ac_res" >&6; }
12471
12472 fi
12473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12474   cat >>confdefs.h <<_ACEOF
12475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12476 _ACEOF
12477  break
12478 fi
12479
12480 done
12481
12482
12483
12484
12485 for ac_func in strchr index
12486 do
12487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12488 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12490 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12491   echo $ECHO_N "(cached) $ECHO_C" >&6
12492 else
12493   cat >conftest.$ac_ext <<_ACEOF
12494 /* confdefs.h.  */
12495 _ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h.  */
12499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12500    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12501 #define $ac_func innocuous_$ac_func
12502
12503 /* System header to define __stub macros and hopefully few prototypes,
12504     which can conflict with char $ac_func (); below.
12505     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12506     <limits.h> exists even on freestanding compilers.  */
12507
12508 #ifdef __STDC__
12509 # include <limits.h>
12510 #else
12511 # include <assert.h>
12512 #endif
12513
12514 #undef $ac_func
12515
12516 /* Override any GCC internal prototype to avoid an error.
12517    Use char because int might match the return type of a GCC
12518    builtin and then its argument prototype would still apply.  */
12519 #ifdef __cplusplus
12520 extern "C"
12521 #endif
12522 char $ac_func ();
12523 /* The GNU C library defines this for functions which it implements
12524     to always fail with ENOSYS.  Some functions are actually named
12525     something starting with __ and the normal name is an alias.  */
12526 #if defined __stub_$ac_func || defined __stub___$ac_func
12527 choke me
12528 #endif
12529
12530 int
12531 main ()
12532 {
12533 return $ac_func ();
12534   ;
12535   return 0;
12536 }
12537 _ACEOF
12538 rm -f conftest.$ac_objext conftest$ac_exeext
12539 if { (ac_try="$ac_link"
12540 case "(($ac_try" in
12541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542   *) ac_try_echo=$ac_try;;
12543 esac
12544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545   (eval "$ac_link") 2>conftest.er1
12546   ac_status=$?
12547   grep -v '^ *+' conftest.er1 >conftest.err
12548   rm -f conftest.er1
12549   cat conftest.err >&5
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); } &&
12552          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12553   { (case "(($ac_try" in
12554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555   *) ac_try_echo=$ac_try;;
12556 esac
12557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558   (eval "$ac_try") 2>&5
12559   ac_status=$?
12560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561   (exit $ac_status); }; } &&
12562          { ac_try='test -s conftest$ac_exeext'
12563   { (case "(($ac_try" in
12564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12565   *) ac_try_echo=$ac_try;;
12566 esac
12567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12568   (eval "$ac_try") 2>&5
12569   ac_status=$?
12570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571   (exit $ac_status); }; }; then
12572   eval "$as_ac_var=yes"
12573 else
12574   echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12576
12577         eval "$as_ac_var=no"
12578 fi
12579
12580 rm -f core conftest.err conftest.$ac_objext \
12581       conftest$ac_exeext conftest.$ac_ext
12582 fi
12583 ac_res=`eval echo '${'$as_ac_var'}'`
12584                { echo "$as_me:$LINENO: result: $ac_res" >&5
12585 echo "${ECHO_T}$ac_res" >&6; }
12586 if test `eval echo '${'$as_ac_var'}'` = yes; then
12587   cat >>confdefs.h <<_ACEOF
12588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12589 _ACEOF
12590  break
12591 fi
12592 done
12593
12594
12595
12596 for ac_func in strrchr rindex
12597 do
12598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12602   echo $ECHO_N "(cached) $ECHO_C" >&6
12603 else
12604   cat >conftest.$ac_ext <<_ACEOF
12605 /* confdefs.h.  */
12606 _ACEOF
12607 cat confdefs.h >>conftest.$ac_ext
12608 cat >>conftest.$ac_ext <<_ACEOF
12609 /* end confdefs.h.  */
12610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12611    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12612 #define $ac_func innocuous_$ac_func
12613
12614 /* System header to define __stub macros and hopefully few prototypes,
12615     which can conflict with char $ac_func (); below.
12616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12617     <limits.h> exists even on freestanding compilers.  */
12618
12619 #ifdef __STDC__
12620 # include <limits.h>
12621 #else
12622 # include <assert.h>
12623 #endif
12624
12625 #undef $ac_func
12626
12627 /* Override any GCC internal prototype to avoid an error.
12628    Use char because int might match the return type of a GCC
12629    builtin and then its argument prototype would still apply.  */
12630 #ifdef __cplusplus
12631 extern "C"
12632 #endif
12633 char $ac_func ();
12634 /* The GNU C library defines this for functions which it implements
12635     to always fail with ENOSYS.  Some functions are actually named
12636     something starting with __ and the normal name is an alias.  */
12637 #if defined __stub_$ac_func || defined __stub___$ac_func
12638 choke me
12639 #endif
12640
12641 int
12642 main ()
12643 {
12644 return $ac_func ();
12645   ;
12646   return 0;
12647 }
12648 _ACEOF
12649 rm -f conftest.$ac_objext conftest$ac_exeext
12650 if { (ac_try="$ac_link"
12651 case "(($ac_try" in
12652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12653   *) ac_try_echo=$ac_try;;
12654 esac
12655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12656   (eval "$ac_link") 2>conftest.er1
12657   ac_status=$?
12658   grep -v '^ *+' conftest.er1 >conftest.err
12659   rm -f conftest.er1
12660   cat conftest.err >&5
12661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662   (exit $ac_status); } &&
12663          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12664   { (case "(($ac_try" in
12665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666   *) ac_try_echo=$ac_try;;
12667 esac
12668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669   (eval "$ac_try") 2>&5
12670   ac_status=$?
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); }; } &&
12673          { ac_try='test -s conftest$ac_exeext'
12674   { (case "(($ac_try" in
12675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676   *) ac_try_echo=$ac_try;;
12677 esac
12678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679   (eval "$ac_try") 2>&5
12680   ac_status=$?
12681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682   (exit $ac_status); }; }; then
12683   eval "$as_ac_var=yes"
12684 else
12685   echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12687
12688         eval "$as_ac_var=no"
12689 fi
12690
12691 rm -f core conftest.err conftest.$ac_objext \
12692       conftest$ac_exeext conftest.$ac_ext
12693 fi
12694 ac_res=`eval echo '${'$as_ac_var'}'`
12695                { echo "$as_me:$LINENO: result: $ac_res" >&5
12696 echo "${ECHO_T}$ac_res" >&6; }
12697 if test `eval echo '${'$as_ac_var'}'` = yes; then
12698   cat >>confdefs.h <<_ACEOF
12699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12700 _ACEOF
12701  break
12702 fi
12703 done
12704
12705
12706
12707 for ac_func in memcpy bcopy
12708 do
12709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12713   echo $ECHO_N "(cached) $ECHO_C" >&6
12714 else
12715   cat >conftest.$ac_ext <<_ACEOF
12716 /* confdefs.h.  */
12717 _ACEOF
12718 cat confdefs.h >>conftest.$ac_ext
12719 cat >>conftest.$ac_ext <<_ACEOF
12720 /* end confdefs.h.  */
12721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12723 #define $ac_func innocuous_$ac_func
12724
12725 /* System header to define __stub macros and hopefully few prototypes,
12726     which can conflict with char $ac_func (); below.
12727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12728     <limits.h> exists even on freestanding compilers.  */
12729
12730 #ifdef __STDC__
12731 # include <limits.h>
12732 #else
12733 # include <assert.h>
12734 #endif
12735
12736 #undef $ac_func
12737
12738 /* Override any GCC internal prototype to avoid an error.
12739    Use char because int might match the return type of a GCC
12740    builtin and then its argument prototype would still apply.  */
12741 #ifdef __cplusplus
12742 extern "C"
12743 #endif
12744 char $ac_func ();
12745 /* The GNU C library defines this for functions which it implements
12746     to always fail with ENOSYS.  Some functions are actually named
12747     something starting with __ and the normal name is an alias.  */
12748 #if defined __stub_$ac_func || defined __stub___$ac_func
12749 choke me
12750 #endif
12751
12752 int
12753 main ()
12754 {
12755 return $ac_func ();
12756   ;
12757   return 0;
12758 }
12759 _ACEOF
12760 rm -f conftest.$ac_objext conftest$ac_exeext
12761 if { (ac_try="$ac_link"
12762 case "(($ac_try" in
12763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12764   *) ac_try_echo=$ac_try;;
12765 esac
12766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12767   (eval "$ac_link") 2>conftest.er1
12768   ac_status=$?
12769   grep -v '^ *+' conftest.er1 >conftest.err
12770   rm -f conftest.er1
12771   cat conftest.err >&5
12772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); } &&
12774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12775   { (case "(($ac_try" in
12776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777   *) ac_try_echo=$ac_try;;
12778 esac
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780   (eval "$ac_try") 2>&5
12781   ac_status=$?
12782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783   (exit $ac_status); }; } &&
12784          { ac_try='test -s conftest$ac_exeext'
12785   { (case "(($ac_try" in
12786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787   *) ac_try_echo=$ac_try;;
12788 esac
12789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790   (eval "$ac_try") 2>&5
12791   ac_status=$?
12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); }; }; then
12794   eval "$as_ac_var=yes"
12795 else
12796   echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12798
12799         eval "$as_ac_var=no"
12800 fi
12801
12802 rm -f core conftest.err conftest.$ac_objext \
12803       conftest$ac_exeext conftest.$ac_ext
12804 fi
12805 ac_res=`eval echo '${'$as_ac_var'}'`
12806                { echo "$as_me:$LINENO: result: $ac_res" >&5
12807 echo "${ECHO_T}$ac_res" >&6; }
12808 if test `eval echo '${'$as_ac_var'}'` = yes; then
12809   cat >>confdefs.h <<_ACEOF
12810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12811 _ACEOF
12812  break
12813 fi
12814 done
12815
12816
12817
12818 for ac_func in memmove strcmp
12819 do
12820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12821 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12823 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12824   echo $ECHO_N "(cached) $ECHO_C" >&6
12825 else
12826   cat >conftest.$ac_ext <<_ACEOF
12827 /* confdefs.h.  */
12828 _ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h.  */
12832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12833    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12834 #define $ac_func innocuous_$ac_func
12835
12836 /* System header to define __stub macros and hopefully few prototypes,
12837     which can conflict with char $ac_func (); below.
12838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12839     <limits.h> exists even on freestanding compilers.  */
12840
12841 #ifdef __STDC__
12842 # include <limits.h>
12843 #else
12844 # include <assert.h>
12845 #endif
12846
12847 #undef $ac_func
12848
12849 /* Override any GCC internal prototype to avoid an error.
12850    Use char because int might match the return type of a GCC
12851    builtin and then its argument prototype would still apply.  */
12852 #ifdef __cplusplus
12853 extern "C"
12854 #endif
12855 char $ac_func ();
12856 /* The GNU C library defines this for functions which it implements
12857     to always fail with ENOSYS.  Some functions are actually named
12858     something starting with __ and the normal name is an alias.  */
12859 #if defined __stub_$ac_func || defined __stub___$ac_func
12860 choke me
12861 #endif
12862
12863 int
12864 main ()
12865 {
12866 return $ac_func ();
12867   ;
12868   return 0;
12869 }
12870 _ACEOF
12871 rm -f conftest.$ac_objext conftest$ac_exeext
12872 if { (ac_try="$ac_link"
12873 case "(($ac_try" in
12874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875   *) ac_try_echo=$ac_try;;
12876 esac
12877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12878   (eval "$ac_link") 2>conftest.er1
12879   ac_status=$?
12880   grep -v '^ *+' conftest.er1 >conftest.err
12881   rm -f conftest.er1
12882   cat conftest.err >&5
12883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884   (exit $ac_status); } &&
12885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12886   { (case "(($ac_try" in
12887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888   *) ac_try_echo=$ac_try;;
12889 esac
12890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891   (eval "$ac_try") 2>&5
12892   ac_status=$?
12893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894   (exit $ac_status); }; } &&
12895          { ac_try='test -s conftest$ac_exeext'
12896   { (case "(($ac_try" in
12897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898   *) ac_try_echo=$ac_try;;
12899 esac
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901   (eval "$ac_try") 2>&5
12902   ac_status=$?
12903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); }; }; then
12905   eval "$as_ac_var=yes"
12906 else
12907   echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12909
12910         eval "$as_ac_var=no"
12911 fi
12912
12913 rm -f core conftest.err conftest.$ac_objext \
12914       conftest$ac_exeext conftest.$ac_ext
12915 fi
12916 ac_res=`eval echo '${'$as_ac_var'}'`
12917                { echo "$as_me:$LINENO: result: $ac_res" >&5
12918 echo "${ECHO_T}$ac_res" >&6; }
12919 if test `eval echo '${'$as_ac_var'}'` = yes; then
12920   cat >>confdefs.h <<_ACEOF
12921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12922 _ACEOF
12923
12924 fi
12925 done
12926
12927
12928
12929
12930 for ac_func in closedir opendir readdir
12931 do
12932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12933 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12936   echo $ECHO_N "(cached) $ECHO_C" >&6
12937 else
12938   cat >conftest.$ac_ext <<_ACEOF
12939 /* confdefs.h.  */
12940 _ACEOF
12941 cat confdefs.h >>conftest.$ac_ext
12942 cat >>conftest.$ac_ext <<_ACEOF
12943 /* end confdefs.h.  */
12944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12946 #define $ac_func innocuous_$ac_func
12947
12948 /* System header to define __stub macros and hopefully few prototypes,
12949     which can conflict with char $ac_func (); below.
12950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12951     <limits.h> exists even on freestanding compilers.  */
12952
12953 #ifdef __STDC__
12954 # include <limits.h>
12955 #else
12956 # include <assert.h>
12957 #endif
12958
12959 #undef $ac_func
12960
12961 /* Override any GCC internal prototype to avoid an error.
12962    Use char because int might match the return type of a GCC
12963    builtin and then its argument prototype would still apply.  */
12964 #ifdef __cplusplus
12965 extern "C"
12966 #endif
12967 char $ac_func ();
12968 /* The GNU C library defines this for functions which it implements
12969     to always fail with ENOSYS.  Some functions are actually named
12970     something starting with __ and the normal name is an alias.  */
12971 #if defined __stub_$ac_func || defined __stub___$ac_func
12972 choke me
12973 #endif
12974
12975 int
12976 main ()
12977 {
12978 return $ac_func ();
12979   ;
12980   return 0;
12981 }
12982 _ACEOF
12983 rm -f conftest.$ac_objext conftest$ac_exeext
12984 if { (ac_try="$ac_link"
12985 case "(($ac_try" in
12986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987   *) ac_try_echo=$ac_try;;
12988 esac
12989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990   (eval "$ac_link") 2>conftest.er1
12991   ac_status=$?
12992   grep -v '^ *+' conftest.er1 >conftest.err
12993   rm -f conftest.er1
12994   cat conftest.err >&5
12995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996   (exit $ac_status); } &&
12997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12998   { (case "(($ac_try" in
12999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000   *) ac_try_echo=$ac_try;;
13001 esac
13002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003   (eval "$ac_try") 2>&5
13004   ac_status=$?
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); }; } &&
13007          { ac_try='test -s conftest$ac_exeext'
13008   { (case "(($ac_try" in
13009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010   *) ac_try_echo=$ac_try;;
13011 esac
13012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13013   (eval "$ac_try") 2>&5
13014   ac_status=$?
13015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016   (exit $ac_status); }; }; then
13017   eval "$as_ac_var=yes"
13018 else
13019   echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.$ac_ext >&5
13021
13022         eval "$as_ac_var=no"
13023 fi
13024
13025 rm -f core conftest.err conftest.$ac_objext \
13026       conftest$ac_exeext conftest.$ac_ext
13027 fi
13028 ac_res=`eval echo '${'$as_ac_var'}'`
13029                { echo "$as_me:$LINENO: result: $ac_res" >&5
13030 echo "${ECHO_T}$ac_res" >&6; }
13031 if test `eval echo '${'$as_ac_var'}'` = yes; then
13032   cat >>confdefs.h <<_ACEOF
13033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13034 _ACEOF
13035
13036 fi
13037 done
13038
13039
13040
13041 if test "$WITH_LLVMGCCDIR" = "default" ; then
13042   LLVMGCC="llvm-gcc${EXEEXT}"
13043   LLVMGXX="llvm-g++${EXEEXT}"
13044   LLVMGCCCOMMAND="$LLVMGCC"
13045   LLVMGXXCOMMAND="$LLVMGXX"
13046   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13047
13048   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13049
13050   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13051 set dummy $LLVMGCC; ac_word=$2
13052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13054 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13055   echo $ECHO_N "(cached) $ECHO_C" >&6
13056 else
13057   case $LLVMGCC in
13058   [\\/]* | ?:[\\/]*)
13059   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13060   ;;
13061   *)
13062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13063 for as_dir in $PATH
13064 do
13065   IFS=$as_save_IFS
13066   test -z "$as_dir" && as_dir=.
13067   for ac_exec_ext in '' $ac_executable_extensions; do
13068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13069     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13071     break 2
13072   fi
13073 done
13074 done
13075 IFS=$as_save_IFS
13076
13077   ;;
13078 esac
13079 fi
13080 LLVMGCC=$ac_cv_path_LLVMGCC
13081 if test -n "$LLVMGCC"; then
13082   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13083 echo "${ECHO_T}$LLVMGCC" >&6; }
13084 else
13085   { echo "$as_me:$LINENO: result: no" >&5
13086 echo "${ECHO_T}no" >&6; }
13087 fi
13088
13089
13090   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13091 set dummy $LLVMGXX; ac_word=$2
13092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13094 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13095   echo $ECHO_N "(cached) $ECHO_C" >&6
13096 else
13097   case $LLVMGXX in
13098   [\\/]* | ?:[\\/]*)
13099   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13100   ;;
13101   *)
13102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13103 for as_dir in $PATH
13104 do
13105   IFS=$as_save_IFS
13106   test -z "$as_dir" && as_dir=.
13107   for ac_exec_ext in '' $ac_executable_extensions; do
13108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13109     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13111     break 2
13112   fi
13113 done
13114 done
13115 IFS=$as_save_IFS
13116
13117   ;;
13118 esac
13119 fi
13120 LLVMGXX=$ac_cv_path_LLVMGXX
13121 if test -n "$LLVMGXX"; then
13122   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13123 echo "${ECHO_T}$LLVMGXX" >&6; }
13124 else
13125   { echo "$as_me:$LINENO: result: no" >&5
13126 echo "${ECHO_T}no" >&6; }
13127 fi
13128
13129
13130 else
13131   if test -z "$LLVMGCC"; then
13132     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13133     LLVMGCCCOMMAND="$LLVMGCC"
13134   fi
13135   if test -z "$LLVMGXX"; then
13136     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13137     LLVMGXXCOMMAND="$LLVMGXX"
13138   fi
13139
13140   LLVMGCC=$LLVMGCC
13141
13142   LLVMGXX=$LLVMGXX
13143
13144   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13145
13146   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13147
13148 fi
13149
13150
13151 # Check whether --with-llvmcc was given.
13152 if test "${with_llvmcc+set}" = set; then
13153   withval=$with_llvmcc;
13154 else
13155   with_llvmcc=check
13156 fi
13157
13158 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13159 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13160 if test "$with_llvmcc" != "check"; then
13161    if (test "$with_llvmcc" != "llvm-gcc" &&
13162        test "$with_llvmcc" != "clang" &&
13163        test "$with_llvmcc" != "none"); then
13164       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13165 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13166    { (exit 1); exit 1; }; }
13167    fi
13168    WITH_LLVMCC="$with_llvmcc"
13169 elif test -n "$LLVMGCC"; then
13170    WITH_LLVMCC=llvm-gcc
13171 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13172    WITH_LLVMCC=clang
13173 else
13174    WITH_LLVMCC=none
13175 fi
13176 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13177 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13178 LLVMCC_OPTION=$WITH_LLVMCC
13179
13180
13181 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13182 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13183
13184 ICC=no
13185 IXX=no
13186 case $CC in
13187   icc*|icpc*)
13188     ICC=yes
13189     IXX=yes
13190     ;;
13191    *)
13192     ;;
13193 esac
13194
13195 if test "$GCC" != "yes" && test "$ICC" != "yes"
13196 then
13197   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13198 echo "$as_me: error: gcc|icc required but not found" >&2;}
13199    { (exit 1); exit 1; }; }
13200 fi
13201
13202 if test "$GXX" != "yes" && test "$IXX" != "yes"
13203 then
13204   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13205 echo "$as_me: error: g++|icc required but not found" >&2;}
13206    { (exit 1); exit 1; }; }
13207 fi
13208
13209 if test "$GCC" = "yes"
13210 then
13211   cat >conftest.$ac_ext <<_ACEOF
13212 #if !defined(__GNUC__) || __GNUC__ < 3
13213 #error Unsupported GCC version
13214 #endif
13215
13216 _ACEOF
13217 rm -f conftest.$ac_objext
13218 if { (ac_try="$ac_compile"
13219 case "(($ac_try" in
13220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221   *) ac_try_echo=$ac_try;;
13222 esac
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224   (eval "$ac_compile") 2>conftest.er1
13225   ac_status=$?
13226   grep -v '^ *+' conftest.er1 >conftest.err
13227   rm -f conftest.er1
13228   cat conftest.err >&5
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); } &&
13231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13232   { (case "(($ac_try" in
13233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234   *) ac_try_echo=$ac_try;;
13235 esac
13236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237   (eval "$ac_try") 2>&5
13238   ac_status=$?
13239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240   (exit $ac_status); }; } &&
13241          { ac_try='test -s conftest.$ac_objext'
13242   { (case "(($ac_try" in
13243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244   *) ac_try_echo=$ac_try;;
13245 esac
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247   (eval "$ac_try") 2>&5
13248   ac_status=$?
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); }; }; then
13251   :
13252 else
13253   echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13255
13256         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13257 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13258    { (exit 1); exit 1; }; }
13259 fi
13260
13261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13262 fi
13263
13264 if test -z "$llvm_cv_gnu_make_command"
13265 then
13266   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13267 echo "$as_me: error: GNU Make required but not found" >&2;}
13268    { (exit 1); exit 1; }; }
13269 fi
13270
13271 { echo "$as_me:$LINENO: result: ok" >&5
13272 echo "${ECHO_T}ok" >&6; }
13273
13274 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13275 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13276 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13277
13278 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13279
13280 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13281 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13282
13283
13284
13285 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13286 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13287 if test "${ac_cv_lib_m_sin+set}" = set; then
13288   echo $ECHO_N "(cached) $ECHO_C" >&6
13289 else
13290   ac_check_lib_save_LIBS=$LIBS
13291 LIBS="-lm  $LIBS"
13292 cat >conftest.$ac_ext <<_ACEOF
13293 /* confdefs.h.  */
13294 _ACEOF
13295 cat confdefs.h >>conftest.$ac_ext
13296 cat >>conftest.$ac_ext <<_ACEOF
13297 /* end confdefs.h.  */
13298
13299 /* Override any GCC internal prototype to avoid an error.
13300    Use char because int might match the return type of a GCC
13301    builtin and then its argument prototype would still apply.  */
13302 #ifdef __cplusplus
13303 extern "C"
13304 #endif
13305 char sin ();
13306 int
13307 main ()
13308 {
13309 return sin ();
13310   ;
13311   return 0;
13312 }
13313 _ACEOF
13314 rm -f conftest.$ac_objext conftest$ac_exeext
13315 if { (ac_try="$ac_link"
13316 case "(($ac_try" in
13317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318   *) ac_try_echo=$ac_try;;
13319 esac
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321   (eval "$ac_link") 2>conftest.er1
13322   ac_status=$?
13323   grep -v '^ *+' conftest.er1 >conftest.err
13324   rm -f conftest.er1
13325   cat conftest.err >&5
13326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327   (exit $ac_status); } &&
13328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13329   { (case "(($ac_try" in
13330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331   *) ac_try_echo=$ac_try;;
13332 esac
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334   (eval "$ac_try") 2>&5
13335   ac_status=$?
13336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337   (exit $ac_status); }; } &&
13338          { ac_try='test -s conftest$ac_exeext'
13339   { (case "(($ac_try" in
13340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341   *) ac_try_echo=$ac_try;;
13342 esac
13343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344   (eval "$ac_try") 2>&5
13345   ac_status=$?
13346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347   (exit $ac_status); }; }; then
13348   ac_cv_lib_m_sin=yes
13349 else
13350   echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13352
13353         ac_cv_lib_m_sin=no
13354 fi
13355
13356 rm -f core conftest.err conftest.$ac_objext \
13357       conftest$ac_exeext conftest.$ac_ext
13358 LIBS=$ac_check_lib_save_LIBS
13359 fi
13360 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13361 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13362 if test $ac_cv_lib_m_sin = yes; then
13363   cat >>confdefs.h <<_ACEOF
13364 #define HAVE_LIBM 1
13365 _ACEOF
13366
13367   LIBS="-lm $LIBS"
13368
13369 fi
13370
13371 if test "$llvm_cv_os_type" = "MingW" ; then
13372
13373 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13374 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13375 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13376   echo $ECHO_N "(cached) $ECHO_C" >&6
13377 else
13378   ac_check_lib_save_LIBS=$LIBS
13379 LIBS="-limagehlp  $LIBS"
13380 cat >conftest.$ac_ext <<_ACEOF
13381 /* confdefs.h.  */
13382 _ACEOF
13383 cat confdefs.h >>conftest.$ac_ext
13384 cat >>conftest.$ac_ext <<_ACEOF
13385 /* end confdefs.h.  */
13386
13387
13388 int
13389 main ()
13390 {
13391 return main ();
13392   ;
13393   return 0;
13394 }
13395 _ACEOF
13396 rm -f conftest.$ac_objext conftest$ac_exeext
13397 if { (ac_try="$ac_link"
13398 case "(($ac_try" in
13399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400   *) ac_try_echo=$ac_try;;
13401 esac
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403   (eval "$ac_link") 2>conftest.er1
13404   ac_status=$?
13405   grep -v '^ *+' conftest.er1 >conftest.err
13406   rm -f conftest.er1
13407   cat conftest.err >&5
13408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409   (exit $ac_status); } &&
13410          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13411   { (case "(($ac_try" in
13412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413   *) ac_try_echo=$ac_try;;
13414 esac
13415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416   (eval "$ac_try") 2>&5
13417   ac_status=$?
13418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419   (exit $ac_status); }; } &&
13420          { ac_try='test -s conftest$ac_exeext'
13421   { (case "(($ac_try" in
13422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423   *) ac_try_echo=$ac_try;;
13424 esac
13425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426   (eval "$ac_try") 2>&5
13427   ac_status=$?
13428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429   (exit $ac_status); }; }; then
13430   ac_cv_lib_imagehlp_main=yes
13431 else
13432   echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13434
13435         ac_cv_lib_imagehlp_main=no
13436 fi
13437
13438 rm -f core conftest.err conftest.$ac_objext \
13439       conftest$ac_exeext conftest.$ac_ext
13440 LIBS=$ac_check_lib_save_LIBS
13441 fi
13442 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13443 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13444 if test $ac_cv_lib_imagehlp_main = yes; then
13445   cat >>confdefs.h <<_ACEOF
13446 #define HAVE_LIBIMAGEHLP 1
13447 _ACEOF
13448
13449   LIBS="-limagehlp $LIBS"
13450
13451 fi
13452
13453
13454 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13455 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13456 if test "${ac_cv_lib_psapi_main+set}" = set; then
13457   echo $ECHO_N "(cached) $ECHO_C" >&6
13458 else
13459   ac_check_lib_save_LIBS=$LIBS
13460 LIBS="-lpsapi  $LIBS"
13461 cat >conftest.$ac_ext <<_ACEOF
13462 /* confdefs.h.  */
13463 _ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h.  */
13467
13468
13469 int
13470 main ()
13471 {
13472 return main ();
13473   ;
13474   return 0;
13475 }
13476 _ACEOF
13477 rm -f conftest.$ac_objext conftest$ac_exeext
13478 if { (ac_try="$ac_link"
13479 case "(($ac_try" in
13480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481   *) ac_try_echo=$ac_try;;
13482 esac
13483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484   (eval "$ac_link") 2>conftest.er1
13485   ac_status=$?
13486   grep -v '^ *+' conftest.er1 >conftest.err
13487   rm -f conftest.er1
13488   cat conftest.err >&5
13489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490   (exit $ac_status); } &&
13491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13492   { (case "(($ac_try" in
13493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494   *) ac_try_echo=$ac_try;;
13495 esac
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497   (eval "$ac_try") 2>&5
13498   ac_status=$?
13499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500   (exit $ac_status); }; } &&
13501          { ac_try='test -s conftest$ac_exeext'
13502   { (case "(($ac_try" in
13503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504   *) ac_try_echo=$ac_try;;
13505 esac
13506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13507   (eval "$ac_try") 2>&5
13508   ac_status=$?
13509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510   (exit $ac_status); }; }; then
13511   ac_cv_lib_psapi_main=yes
13512 else
13513   echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.$ac_ext >&5
13515
13516         ac_cv_lib_psapi_main=no
13517 fi
13518
13519 rm -f core conftest.err conftest.$ac_objext \
13520       conftest$ac_exeext conftest.$ac_ext
13521 LIBS=$ac_check_lib_save_LIBS
13522 fi
13523 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13524 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13525 if test $ac_cv_lib_psapi_main = yes; then
13526   cat >>confdefs.h <<_ACEOF
13527 #define HAVE_LIBPSAPI 1
13528 _ACEOF
13529
13530   LIBS="-lpsapi $LIBS"
13531
13532 fi
13533
13534 fi
13535
13536 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13537 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13538 if test "${ac_cv_search_dlopen+set}" = set; then
13539   echo $ECHO_N "(cached) $ECHO_C" >&6
13540 else
13541   ac_func_search_save_LIBS=$LIBS
13542 cat >conftest.$ac_ext <<_ACEOF
13543 /* confdefs.h.  */
13544 _ACEOF
13545 cat confdefs.h >>conftest.$ac_ext
13546 cat >>conftest.$ac_ext <<_ACEOF
13547 /* end confdefs.h.  */
13548
13549 /* Override any GCC internal prototype to avoid an error.
13550    Use char because int might match the return type of a GCC
13551    builtin and then its argument prototype would still apply.  */
13552 #ifdef __cplusplus
13553 extern "C"
13554 #endif
13555 char dlopen ();
13556 int
13557 main ()
13558 {
13559 return dlopen ();
13560   ;
13561   return 0;
13562 }
13563 _ACEOF
13564 for ac_lib in '' dl; do
13565   if test -z "$ac_lib"; then
13566     ac_res="none required"
13567   else
13568     ac_res=-l$ac_lib
13569     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13570   fi
13571   rm -f conftest.$ac_objext conftest$ac_exeext
13572 if { (ac_try="$ac_link"
13573 case "(($ac_try" in
13574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575   *) ac_try_echo=$ac_try;;
13576 esac
13577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578   (eval "$ac_link") 2>conftest.er1
13579   ac_status=$?
13580   grep -v '^ *+' conftest.er1 >conftest.err
13581   rm -f conftest.er1
13582   cat conftest.err >&5
13583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); } &&
13585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13586   { (case "(($ac_try" in
13587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588   *) ac_try_echo=$ac_try;;
13589 esac
13590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13591   (eval "$ac_try") 2>&5
13592   ac_status=$?
13593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594   (exit $ac_status); }; } &&
13595          { ac_try='test -s conftest$ac_exeext'
13596   { (case "(($ac_try" in
13597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598   *) ac_try_echo=$ac_try;;
13599 esac
13600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601   (eval "$ac_try") 2>&5
13602   ac_status=$?
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); }; }; then
13605   ac_cv_search_dlopen=$ac_res
13606 else
13607   echo "$as_me: failed program was:" >&5
13608 sed 's/^/| /' conftest.$ac_ext >&5
13609
13610
13611 fi
13612
13613 rm -f core conftest.err conftest.$ac_objext \
13614       conftest$ac_exeext
13615   if test "${ac_cv_search_dlopen+set}" = set; then
13616   break
13617 fi
13618 done
13619 if test "${ac_cv_search_dlopen+set}" = set; then
13620   :
13621 else
13622   ac_cv_search_dlopen=no
13623 fi
13624 rm conftest.$ac_ext
13625 LIBS=$ac_func_search_save_LIBS
13626 fi
13627 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13628 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13629 ac_res=$ac_cv_search_dlopen
13630 if test "$ac_res" != no; then
13631   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13632
13633 cat >>confdefs.h <<\_ACEOF
13634 #define HAVE_DLOPEN 1
13635 _ACEOF
13636
13637 else
13638   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13639 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13640 fi
13641
13642
13643 if test "$llvm_cv_enable_libffi" = "yes" ; then
13644   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13645 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13646 if test "${ac_cv_search_ffi_call+set}" = set; then
13647   echo $ECHO_N "(cached) $ECHO_C" >&6
13648 else
13649   ac_func_search_save_LIBS=$LIBS
13650 cat >conftest.$ac_ext <<_ACEOF
13651 /* confdefs.h.  */
13652 _ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h.  */
13656
13657 /* Override any GCC internal prototype to avoid an error.
13658    Use char because int might match the return type of a GCC
13659    builtin and then its argument prototype would still apply.  */
13660 #ifdef __cplusplus
13661 extern "C"
13662 #endif
13663 char ffi_call ();
13664 int
13665 main ()
13666 {
13667 return ffi_call ();
13668   ;
13669   return 0;
13670 }
13671 _ACEOF
13672 for ac_lib in '' ffi; do
13673   if test -z "$ac_lib"; then
13674     ac_res="none required"
13675   else
13676     ac_res=-l$ac_lib
13677     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13678   fi
13679   rm -f conftest.$ac_objext conftest$ac_exeext
13680 if { (ac_try="$ac_link"
13681 case "(($ac_try" in
13682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683   *) ac_try_echo=$ac_try;;
13684 esac
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686   (eval "$ac_link") 2>conftest.er1
13687   ac_status=$?
13688   grep -v '^ *+' conftest.er1 >conftest.err
13689   rm -f conftest.er1
13690   cat conftest.err >&5
13691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692   (exit $ac_status); } &&
13693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13694   { (case "(($ac_try" in
13695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696   *) ac_try_echo=$ac_try;;
13697 esac
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699   (eval "$ac_try") 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); }; } &&
13703          { ac_try='test -s conftest$ac_exeext'
13704   { (case "(($ac_try" in
13705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706   *) ac_try_echo=$ac_try;;
13707 esac
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709   (eval "$ac_try") 2>&5
13710   ac_status=$?
13711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); }; }; then
13713   ac_cv_search_ffi_call=$ac_res
13714 else
13715   echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13717
13718
13719 fi
13720
13721 rm -f core conftest.err conftest.$ac_objext \
13722       conftest$ac_exeext
13723   if test "${ac_cv_search_ffi_call+set}" = set; then
13724   break
13725 fi
13726 done
13727 if test "${ac_cv_search_ffi_call+set}" = set; then
13728   :
13729 else
13730   ac_cv_search_ffi_call=no
13731 fi
13732 rm conftest.$ac_ext
13733 LIBS=$ac_func_search_save_LIBS
13734 fi
13735 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13736 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13737 ac_res=$ac_cv_search_ffi_call
13738 if test "$ac_res" != no; then
13739   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13740
13741 cat >>confdefs.h <<\_ACEOF
13742 #define HAVE_FFI_CALL 1
13743 _ACEOF
13744
13745 else
13746   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13747 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13748    { (exit 1); exit 1; }; }
13749 fi
13750
13751 fi
13752
13753 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13754 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13755 if test "${ac_cv_search_mallinfo+set}" = set; then
13756   echo $ECHO_N "(cached) $ECHO_C" >&6
13757 else
13758   ac_func_search_save_LIBS=$LIBS
13759 cat >conftest.$ac_ext <<_ACEOF
13760 /* confdefs.h.  */
13761 _ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h.  */
13765
13766 /* Override any GCC internal prototype to avoid an error.
13767    Use char because int might match the return type of a GCC
13768    builtin and then its argument prototype would still apply.  */
13769 #ifdef __cplusplus
13770 extern "C"
13771 #endif
13772 char mallinfo ();
13773 int
13774 main ()
13775 {
13776 return mallinfo ();
13777   ;
13778   return 0;
13779 }
13780 _ACEOF
13781 for ac_lib in '' malloc; do
13782   if test -z "$ac_lib"; then
13783     ac_res="none required"
13784   else
13785     ac_res=-l$ac_lib
13786     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13787   fi
13788   rm -f conftest.$ac_objext conftest$ac_exeext
13789 if { (ac_try="$ac_link"
13790 case "(($ac_try" in
13791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792   *) ac_try_echo=$ac_try;;
13793 esac
13794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795   (eval "$ac_link") 2>conftest.er1
13796   ac_status=$?
13797   grep -v '^ *+' conftest.er1 >conftest.err
13798   rm -f conftest.er1
13799   cat conftest.err >&5
13800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801   (exit $ac_status); } &&
13802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13803   { (case "(($ac_try" in
13804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805   *) ac_try_echo=$ac_try;;
13806 esac
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808   (eval "$ac_try") 2>&5
13809   ac_status=$?
13810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811   (exit $ac_status); }; } &&
13812          { ac_try='test -s conftest$ac_exeext'
13813   { (case "(($ac_try" in
13814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13815   *) ac_try_echo=$ac_try;;
13816 esac
13817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13818   (eval "$ac_try") 2>&5
13819   ac_status=$?
13820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821   (exit $ac_status); }; }; then
13822   ac_cv_search_mallinfo=$ac_res
13823 else
13824   echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13826
13827
13828 fi
13829
13830 rm -f core conftest.err conftest.$ac_objext \
13831       conftest$ac_exeext
13832   if test "${ac_cv_search_mallinfo+set}" = set; then
13833   break
13834 fi
13835 done
13836 if test "${ac_cv_search_mallinfo+set}" = set; then
13837   :
13838 else
13839   ac_cv_search_mallinfo=no
13840 fi
13841 rm conftest.$ac_ext
13842 LIBS=$ac_func_search_save_LIBS
13843 fi
13844 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13845 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13846 ac_res=$ac_cv_search_mallinfo
13847 if test "$ac_res" != no; then
13848   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13849
13850 cat >>confdefs.h <<\_ACEOF
13851 #define HAVE_MALLINFO 1
13852 _ACEOF
13853
13854 fi
13855
13856
13857 if test "$ENABLE_THREADS" -eq 1 ; then
13858
13859 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13860 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13861 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13862   echo $ECHO_N "(cached) $ECHO_C" >&6
13863 else
13864   ac_check_lib_save_LIBS=$LIBS
13865 LIBS="-lpthread  $LIBS"
13866 cat >conftest.$ac_ext <<_ACEOF
13867 /* confdefs.h.  */
13868 _ACEOF
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h.  */
13872
13873 /* Override any GCC internal prototype to avoid an error.
13874    Use char because int might match the return type of a GCC
13875    builtin and then its argument prototype would still apply.  */
13876 #ifdef __cplusplus
13877 extern "C"
13878 #endif
13879 char pthread_mutex_init ();
13880 int
13881 main ()
13882 {
13883 return pthread_mutex_init ();
13884   ;
13885   return 0;
13886 }
13887 _ACEOF
13888 rm -f conftest.$ac_objext conftest$ac_exeext
13889 if { (ac_try="$ac_link"
13890 case "(($ac_try" in
13891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892   *) ac_try_echo=$ac_try;;
13893 esac
13894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895   (eval "$ac_link") 2>conftest.er1
13896   ac_status=$?
13897   grep -v '^ *+' conftest.er1 >conftest.err
13898   rm -f conftest.er1
13899   cat conftest.err >&5
13900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901   (exit $ac_status); } &&
13902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13903   { (case "(($ac_try" in
13904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13905   *) ac_try_echo=$ac_try;;
13906 esac
13907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13908   (eval "$ac_try") 2>&5
13909   ac_status=$?
13910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911   (exit $ac_status); }; } &&
13912          { ac_try='test -s conftest$ac_exeext'
13913   { (case "(($ac_try" in
13914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915   *) ac_try_echo=$ac_try;;
13916 esac
13917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13918   (eval "$ac_try") 2>&5
13919   ac_status=$?
13920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921   (exit $ac_status); }; }; then
13922   ac_cv_lib_pthread_pthread_mutex_init=yes
13923 else
13924   echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13926
13927         ac_cv_lib_pthread_pthread_mutex_init=no
13928 fi
13929
13930 rm -f core conftest.err conftest.$ac_objext \
13931       conftest$ac_exeext conftest.$ac_ext
13932 LIBS=$ac_check_lib_save_LIBS
13933 fi
13934 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13935 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13936 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13937   cat >>confdefs.h <<_ACEOF
13938 #define HAVE_LIBPTHREAD 1
13939 _ACEOF
13940
13941   LIBS="-lpthread $LIBS"
13942
13943 fi
13944
13945   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13946 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13947 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13948   echo $ECHO_N "(cached) $ECHO_C" >&6
13949 else
13950   ac_func_search_save_LIBS=$LIBS
13951 cat >conftest.$ac_ext <<_ACEOF
13952 /* confdefs.h.  */
13953 _ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h.  */
13957
13958 /* Override any GCC internal prototype to avoid an error.
13959    Use char because int might match the return type of a GCC
13960    builtin and then its argument prototype would still apply.  */
13961 #ifdef __cplusplus
13962 extern "C"
13963 #endif
13964 char pthread_mutex_lock ();
13965 int
13966 main ()
13967 {
13968 return pthread_mutex_lock ();
13969   ;
13970   return 0;
13971 }
13972 _ACEOF
13973 for ac_lib in '' pthread; do
13974   if test -z "$ac_lib"; then
13975     ac_res="none required"
13976   else
13977     ac_res=-l$ac_lib
13978     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13979   fi
13980   rm -f conftest.$ac_objext conftest$ac_exeext
13981 if { (ac_try="$ac_link"
13982 case "(($ac_try" in
13983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13984   *) ac_try_echo=$ac_try;;
13985 esac
13986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13987   (eval "$ac_link") 2>conftest.er1
13988   ac_status=$?
13989   grep -v '^ *+' conftest.er1 >conftest.err
13990   rm -f conftest.er1
13991   cat conftest.err >&5
13992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993   (exit $ac_status); } &&
13994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13995   { (case "(($ac_try" in
13996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997   *) ac_try_echo=$ac_try;;
13998 esac
13999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000   (eval "$ac_try") 2>&5
14001   ac_status=$?
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); }; } &&
14004          { ac_try='test -s conftest$ac_exeext'
14005   { (case "(($ac_try" in
14006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007   *) ac_try_echo=$ac_try;;
14008 esac
14009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14010   (eval "$ac_try") 2>&5
14011   ac_status=$?
14012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013   (exit $ac_status); }; }; then
14014   ac_cv_search_pthread_mutex_lock=$ac_res
14015 else
14016   echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14018
14019
14020 fi
14021
14022 rm -f core conftest.err conftest.$ac_objext \
14023       conftest$ac_exeext
14024   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14025   break
14026 fi
14027 done
14028 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14029   :
14030 else
14031   ac_cv_search_pthread_mutex_lock=no
14032 fi
14033 rm conftest.$ac_ext
14034 LIBS=$ac_func_search_save_LIBS
14035 fi
14036 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14037 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14038 ac_res=$ac_cv_search_pthread_mutex_lock
14039 if test "$ac_res" != no; then
14040   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14041
14042 cat >>confdefs.h <<\_ACEOF
14043 #define HAVE_PTHREAD_MUTEX_LOCK 1
14044 _ACEOF
14045
14046 fi
14047
14048   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14049 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14050 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14051   echo $ECHO_N "(cached) $ECHO_C" >&6
14052 else
14053   ac_func_search_save_LIBS=$LIBS
14054 cat >conftest.$ac_ext <<_ACEOF
14055 /* confdefs.h.  */
14056 _ACEOF
14057 cat confdefs.h >>conftest.$ac_ext
14058 cat >>conftest.$ac_ext <<_ACEOF
14059 /* end confdefs.h.  */
14060
14061 /* Override any GCC internal prototype to avoid an error.
14062    Use char because int might match the return type of a GCC
14063    builtin and then its argument prototype would still apply.  */
14064 #ifdef __cplusplus
14065 extern "C"
14066 #endif
14067 char pthread_rwlock_init ();
14068 int
14069 main ()
14070 {
14071 return pthread_rwlock_init ();
14072   ;
14073   return 0;
14074 }
14075 _ACEOF
14076 for ac_lib in '' pthread; do
14077   if test -z "$ac_lib"; then
14078     ac_res="none required"
14079   else
14080     ac_res=-l$ac_lib
14081     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14082   fi
14083   rm -f conftest.$ac_objext conftest$ac_exeext
14084 if { (ac_try="$ac_link"
14085 case "(($ac_try" in
14086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087   *) ac_try_echo=$ac_try;;
14088 esac
14089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090   (eval "$ac_link") 2>conftest.er1
14091   ac_status=$?
14092   grep -v '^ *+' conftest.er1 >conftest.err
14093   rm -f conftest.er1
14094   cat conftest.err >&5
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); } &&
14097          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14098   { (case "(($ac_try" in
14099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100   *) ac_try_echo=$ac_try;;
14101 esac
14102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103   (eval "$ac_try") 2>&5
14104   ac_status=$?
14105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106   (exit $ac_status); }; } &&
14107          { ac_try='test -s conftest$ac_exeext'
14108   { (case "(($ac_try" in
14109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110   *) ac_try_echo=$ac_try;;
14111 esac
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113   (eval "$ac_try") 2>&5
14114   ac_status=$?
14115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116   (exit $ac_status); }; }; then
14117   ac_cv_search_pthread_rwlock_init=$ac_res
14118 else
14119   echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14121
14122
14123 fi
14124
14125 rm -f core conftest.err conftest.$ac_objext \
14126       conftest$ac_exeext
14127   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14128   break
14129 fi
14130 done
14131 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14132   :
14133 else
14134   ac_cv_search_pthread_rwlock_init=no
14135 fi
14136 rm conftest.$ac_ext
14137 LIBS=$ac_func_search_save_LIBS
14138 fi
14139 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14140 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14141 ac_res=$ac_cv_search_pthread_rwlock_init
14142 if test "$ac_res" != no; then
14143   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14144
14145 cat >>confdefs.h <<\_ACEOF
14146 #define HAVE_PTHREAD_RWLOCK_INIT 1
14147 _ACEOF
14148
14149 fi
14150
14151   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14152 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14153 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14154   echo $ECHO_N "(cached) $ECHO_C" >&6
14155 else
14156   ac_func_search_save_LIBS=$LIBS
14157 cat >conftest.$ac_ext <<_ACEOF
14158 /* confdefs.h.  */
14159 _ACEOF
14160 cat confdefs.h >>conftest.$ac_ext
14161 cat >>conftest.$ac_ext <<_ACEOF
14162 /* end confdefs.h.  */
14163
14164 /* Override any GCC internal prototype to avoid an error.
14165    Use char because int might match the return type of a GCC
14166    builtin and then its argument prototype would still apply.  */
14167 #ifdef __cplusplus
14168 extern "C"
14169 #endif
14170 char pthread_getspecific ();
14171 int
14172 main ()
14173 {
14174 return pthread_getspecific ();
14175   ;
14176   return 0;
14177 }
14178 _ACEOF
14179 for ac_lib in '' pthread; do
14180   if test -z "$ac_lib"; then
14181     ac_res="none required"
14182   else
14183     ac_res=-l$ac_lib
14184     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14185   fi
14186   rm -f conftest.$ac_objext conftest$ac_exeext
14187 if { (ac_try="$ac_link"
14188 case "(($ac_try" in
14189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14190   *) ac_try_echo=$ac_try;;
14191 esac
14192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14193   (eval "$ac_link") 2>conftest.er1
14194   ac_status=$?
14195   grep -v '^ *+' conftest.er1 >conftest.err
14196   rm -f conftest.er1
14197   cat conftest.err >&5
14198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199   (exit $ac_status); } &&
14200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14201   { (case "(($ac_try" in
14202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203   *) ac_try_echo=$ac_try;;
14204 esac
14205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14206   (eval "$ac_try") 2>&5
14207   ac_status=$?
14208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209   (exit $ac_status); }; } &&
14210          { ac_try='test -s conftest$ac_exeext'
14211   { (case "(($ac_try" in
14212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213   *) ac_try_echo=$ac_try;;
14214 esac
14215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216   (eval "$ac_try") 2>&5
14217   ac_status=$?
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); }; }; then
14220   ac_cv_search_pthread_getspecific=$ac_res
14221 else
14222   echo "$as_me: failed program was:" >&5
14223 sed 's/^/| /' conftest.$ac_ext >&5
14224
14225
14226 fi
14227
14228 rm -f core conftest.err conftest.$ac_objext \
14229       conftest$ac_exeext
14230   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14231   break
14232 fi
14233 done
14234 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14235   :
14236 else
14237   ac_cv_search_pthread_getspecific=no
14238 fi
14239 rm conftest.$ac_ext
14240 LIBS=$ac_func_search_save_LIBS
14241 fi
14242 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14243 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14244 ac_res=$ac_cv_search_pthread_getspecific
14245 if test "$ac_res" != no; then
14246   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14247
14248 cat >>confdefs.h <<\_ACEOF
14249 #define HAVE_PTHREAD_GETSPECIFIC 1
14250 _ACEOF
14251
14252 fi
14253
14254 fi
14255
14256
14257 # Check whether --with-udis86 was given.
14258 if test "${with_udis86+set}" = set; then
14259   withval=$with_udis86;
14260       USE_UDIS86=1
14261
14262       case "$withval" in
14263         /usr/lib|yes) ;;
14264         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14265       esac
14266
14267 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14268 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14269 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14270   echo $ECHO_N "(cached) $ECHO_C" >&6
14271 else
14272   ac_check_lib_save_LIBS=$LIBS
14273 LIBS="-ludis86  $LIBS"
14274 cat >conftest.$ac_ext <<_ACEOF
14275 /* confdefs.h.  */
14276 _ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h.  */
14280
14281 /* Override any GCC internal prototype to avoid an error.
14282    Use char because int might match the return type of a GCC
14283    builtin and then its argument prototype would still apply.  */
14284 #ifdef __cplusplus
14285 extern "C"
14286 #endif
14287 char ud_init ();
14288 int
14289 main ()
14290 {
14291 return ud_init ();
14292   ;
14293   return 0;
14294 }
14295 _ACEOF
14296 rm -f conftest.$ac_objext conftest$ac_exeext
14297 if { (ac_try="$ac_link"
14298 case "(($ac_try" in
14299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300   *) ac_try_echo=$ac_try;;
14301 esac
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303   (eval "$ac_link") 2>conftest.er1
14304   ac_status=$?
14305   grep -v '^ *+' conftest.er1 >conftest.err
14306   rm -f conftest.er1
14307   cat conftest.err >&5
14308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309   (exit $ac_status); } &&
14310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14311   { (case "(($ac_try" in
14312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313   *) ac_try_echo=$ac_try;;
14314 esac
14315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316   (eval "$ac_try") 2>&5
14317   ac_status=$?
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); }; } &&
14320          { ac_try='test -s conftest$ac_exeext'
14321   { (case "(($ac_try" in
14322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323   *) ac_try_echo=$ac_try;;
14324 esac
14325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326   (eval "$ac_try") 2>&5
14327   ac_status=$?
14328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329   (exit $ac_status); }; }; then
14330   ac_cv_lib_udis86_ud_init=yes
14331 else
14332   echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14334
14335         ac_cv_lib_udis86_ud_init=no
14336 fi
14337
14338 rm -f core conftest.err conftest.$ac_objext \
14339       conftest$ac_exeext conftest.$ac_ext
14340 LIBS=$ac_check_lib_save_LIBS
14341 fi
14342 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14343 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14344 if test $ac_cv_lib_udis86_ud_init = yes; then
14345   cat >>confdefs.h <<_ACEOF
14346 #define HAVE_LIBUDIS86 1
14347 _ACEOF
14348
14349   LIBS="-ludis86 $LIBS"
14350
14351 else
14352
14353         echo "Error! You need to have libudis86 around."
14354         exit -1
14355
14356 fi
14357
14358
14359 else
14360   USE_UDIS86=0
14361
14362 fi
14363
14364
14365 cat >>confdefs.h <<_ACEOF
14366 #define USE_UDIS86 $USE_UDIS86
14367 _ACEOF
14368
14369
14370
14371 # Check whether --with-oprofile was given.
14372 if test "${with_oprofile+set}" = set; then
14373   withval=$with_oprofile;
14374       USE_OPROFILE=1
14375
14376       case "$withval" in
14377         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14378         no) llvm_cv_oppath=
14379             USE_OPROFILE=0
14380  ;;
14381         *) llvm_cv_oppath="${withval}/lib/oprofile"
14382            CPPFLAGS="-I${withval}/include";;
14383       esac
14384       if test -n "$llvm_cv_oppath" ; then
14385         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14386                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14387 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14388 if test "${ac_cv_search_bfd_init+set}" = set; then
14389   echo $ECHO_N "(cached) $ECHO_C" >&6
14390 else
14391   ac_func_search_save_LIBS=$LIBS
14392 cat >conftest.$ac_ext <<_ACEOF
14393 /* confdefs.h.  */
14394 _ACEOF
14395 cat confdefs.h >>conftest.$ac_ext
14396 cat >>conftest.$ac_ext <<_ACEOF
14397 /* end confdefs.h.  */
14398
14399 /* Override any GCC internal prototype to avoid an error.
14400    Use char because int might match the return type of a GCC
14401    builtin and then its argument prototype would still apply.  */
14402 #ifdef __cplusplus
14403 extern "C"
14404 #endif
14405 char bfd_init ();
14406 int
14407 main ()
14408 {
14409 return bfd_init ();
14410   ;
14411   return 0;
14412 }
14413 _ACEOF
14414 for ac_lib in '' bfd; do
14415   if test -z "$ac_lib"; then
14416     ac_res="none required"
14417   else
14418     ac_res=-l$ac_lib
14419     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14420   fi
14421   rm -f conftest.$ac_objext conftest$ac_exeext
14422 if { (ac_try="$ac_link"
14423 case "(($ac_try" in
14424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425   *) ac_try_echo=$ac_try;;
14426 esac
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428   (eval "$ac_link") 2>conftest.er1
14429   ac_status=$?
14430   grep -v '^ *+' conftest.er1 >conftest.err
14431   rm -f conftest.er1
14432   cat conftest.err >&5
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); } &&
14435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14436   { (case "(($ac_try" in
14437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438   *) ac_try_echo=$ac_try;;
14439 esac
14440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441   (eval "$ac_try") 2>&5
14442   ac_status=$?
14443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444   (exit $ac_status); }; } &&
14445          { ac_try='test -s conftest$ac_exeext'
14446   { (case "(($ac_try" in
14447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448   *) ac_try_echo=$ac_try;;
14449 esac
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451   (eval "$ac_try") 2>&5
14452   ac_status=$?
14453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454   (exit $ac_status); }; }; then
14455   ac_cv_search_bfd_init=$ac_res
14456 else
14457   echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14459
14460
14461 fi
14462
14463 rm -f core conftest.err conftest.$ac_objext \
14464       conftest$ac_exeext
14465   if test "${ac_cv_search_bfd_init+set}" = set; then
14466   break
14467 fi
14468 done
14469 if test "${ac_cv_search_bfd_init+set}" = set; then
14470   :
14471 else
14472   ac_cv_search_bfd_init=no
14473 fi
14474 rm conftest.$ac_ext
14475 LIBS=$ac_func_search_save_LIBS
14476 fi
14477 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14478 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14479 ac_res=$ac_cv_search_bfd_init
14480 if test "$ac_res" != no; then
14481   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14482
14483 fi
14484
14485         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14486 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14487 if test "${ac_cv_search_op_open_agent+set}" = set; then
14488   echo $ECHO_N "(cached) $ECHO_C" >&6
14489 else
14490   ac_func_search_save_LIBS=$LIBS
14491 cat >conftest.$ac_ext <<_ACEOF
14492 /* confdefs.h.  */
14493 _ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h.  */
14497
14498 /* Override any GCC internal prototype to avoid an error.
14499    Use char because int might match the return type of a GCC
14500    builtin and then its argument prototype would still apply.  */
14501 #ifdef __cplusplus
14502 extern "C"
14503 #endif
14504 char op_open_agent ();
14505 int
14506 main ()
14507 {
14508 return op_open_agent ();
14509   ;
14510   return 0;
14511 }
14512 _ACEOF
14513 for ac_lib in '' opagent; do
14514   if test -z "$ac_lib"; then
14515     ac_res="none required"
14516   else
14517     ac_res=-l$ac_lib
14518     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14519   fi
14520   rm -f conftest.$ac_objext conftest$ac_exeext
14521 if { (ac_try="$ac_link"
14522 case "(($ac_try" in
14523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524   *) ac_try_echo=$ac_try;;
14525 esac
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527   (eval "$ac_link") 2>conftest.er1
14528   ac_status=$?
14529   grep -v '^ *+' conftest.er1 >conftest.err
14530   rm -f conftest.er1
14531   cat conftest.err >&5
14532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533   (exit $ac_status); } &&
14534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14535   { (case "(($ac_try" in
14536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537   *) ac_try_echo=$ac_try;;
14538 esac
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540   (eval "$ac_try") 2>&5
14541   ac_status=$?
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); }; } &&
14544          { ac_try='test -s conftest$ac_exeext'
14545   { (case "(($ac_try" in
14546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547   *) ac_try_echo=$ac_try;;
14548 esac
14549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550   (eval "$ac_try") 2>&5
14551   ac_status=$?
14552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553   (exit $ac_status); }; }; then
14554   ac_cv_search_op_open_agent=$ac_res
14555 else
14556   echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14558
14559
14560 fi
14561
14562 rm -f core conftest.err conftest.$ac_objext \
14563       conftest$ac_exeext
14564   if test "${ac_cv_search_op_open_agent+set}" = set; then
14565   break
14566 fi
14567 done
14568 if test "${ac_cv_search_op_open_agent+set}" = set; then
14569   :
14570 else
14571   ac_cv_search_op_open_agent=no
14572 fi
14573 rm conftest.$ac_ext
14574 LIBS=$ac_func_search_save_LIBS
14575 fi
14576 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14577 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14578 ac_res=$ac_cv_search_op_open_agent
14579 if test "$ac_res" != no; then
14580   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14581
14582 else
14583
14584           echo "Error! You need to have libopagent around."
14585           exit -1
14586
14587 fi
14588
14589         if test "${ac_cv_header_opagent_h+set}" = set; then
14590   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14591 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14592 if test "${ac_cv_header_opagent_h+set}" = set; then
14593   echo $ECHO_N "(cached) $ECHO_C" >&6
14594 fi
14595 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14596 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14597 else
14598   # Is the header compilable?
14599 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14600 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14601 cat >conftest.$ac_ext <<_ACEOF
14602 /* confdefs.h.  */
14603 _ACEOF
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h.  */
14607 $ac_includes_default
14608 #include <opagent.h>
14609 _ACEOF
14610 rm -f conftest.$ac_objext
14611 if { (ac_try="$ac_compile"
14612 case "(($ac_try" in
14613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614   *) ac_try_echo=$ac_try;;
14615 esac
14616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14617   (eval "$ac_compile") 2>conftest.er1
14618   ac_status=$?
14619   grep -v '^ *+' conftest.er1 >conftest.err
14620   rm -f conftest.er1
14621   cat conftest.err >&5
14622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623   (exit $ac_status); } &&
14624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14625   { (case "(($ac_try" in
14626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627   *) ac_try_echo=$ac_try;;
14628 esac
14629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630   (eval "$ac_try") 2>&5
14631   ac_status=$?
14632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633   (exit $ac_status); }; } &&
14634          { ac_try='test -s conftest.$ac_objext'
14635   { (case "(($ac_try" in
14636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637   *) ac_try_echo=$ac_try;;
14638 esac
14639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640   (eval "$ac_try") 2>&5
14641   ac_status=$?
14642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643   (exit $ac_status); }; }; then
14644   ac_header_compiler=yes
14645 else
14646   echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14648
14649         ac_header_compiler=no
14650 fi
14651
14652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14654 echo "${ECHO_T}$ac_header_compiler" >&6; }
14655
14656 # Is the header present?
14657 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14658 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14659 cat >conftest.$ac_ext <<_ACEOF
14660 /* confdefs.h.  */
14661 _ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h.  */
14665 #include <opagent.h>
14666 _ACEOF
14667 if { (ac_try="$ac_cpp conftest.$ac_ext"
14668 case "(($ac_try" in
14669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670   *) ac_try_echo=$ac_try;;
14671 esac
14672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14674   ac_status=$?
14675   grep -v '^ *+' conftest.er1 >conftest.err
14676   rm -f conftest.er1
14677   cat conftest.err >&5
14678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); } >/dev/null; then
14680   if test -s conftest.err; then
14681     ac_cpp_err=$ac_c_preproc_warn_flag
14682     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14683   else
14684     ac_cpp_err=
14685   fi
14686 else
14687   ac_cpp_err=yes
14688 fi
14689 if test -z "$ac_cpp_err"; then
14690   ac_header_preproc=yes
14691 else
14692   echo "$as_me: failed program was:" >&5
14693 sed 's/^/| /' conftest.$ac_ext >&5
14694
14695   ac_header_preproc=no
14696 fi
14697
14698 rm -f conftest.err conftest.$ac_ext
14699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14700 echo "${ECHO_T}$ac_header_preproc" >&6; }
14701
14702 # So?  What about this header?
14703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14704   yes:no: )
14705     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14706 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14707     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14708 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14709     ac_header_preproc=yes
14710     ;;
14711   no:yes:* )
14712     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14713 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14714     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14715 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14716     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14717 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14718     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14719 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14720     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14721 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14722     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14723 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14724     ( cat <<\_ASBOX
14725 ## ----------------------------------- ##
14726 ## Report this to llvmbugs@cs.uiuc.edu ##
14727 ## ----------------------------------- ##
14728 _ASBOX
14729      ) | sed "s/^/$as_me: WARNING:     /" >&2
14730     ;;
14731 esac
14732 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14733 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14734 if test "${ac_cv_header_opagent_h+set}" = set; then
14735   echo $ECHO_N "(cached) $ECHO_C" >&6
14736 else
14737   ac_cv_header_opagent_h=$ac_header_preproc
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
14742 fi
14743 if test $ac_cv_header_opagent_h = yes; then
14744   :
14745 else
14746
14747           echo "Error! You need to have opagent.h around."
14748           exit -1
14749
14750 fi
14751
14752
14753       fi
14754
14755 else
14756
14757       USE_OPROFILE=0
14758
14759
14760 fi
14761
14762
14763 cat >>confdefs.h <<_ACEOF
14764 #define USE_OPROFILE $USE_OPROFILE
14765 _ACEOF
14766
14767
14768
14769
14770
14771
14772
14773
14774 ac_header_dirent=no
14775 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14776   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14777 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14778 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14780   echo $ECHO_N "(cached) $ECHO_C" >&6
14781 else
14782   cat >conftest.$ac_ext <<_ACEOF
14783 /* confdefs.h.  */
14784 _ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h.  */
14788 #include <sys/types.h>
14789 #include <$ac_hdr>
14790
14791 int
14792 main ()
14793 {
14794 if ((DIR *) 0)
14795 return 0;
14796   ;
14797   return 0;
14798 }
14799 _ACEOF
14800 rm -f conftest.$ac_objext
14801 if { (ac_try="$ac_compile"
14802 case "(($ac_try" in
14803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804   *) ac_try_echo=$ac_try;;
14805 esac
14806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807   (eval "$ac_compile") 2>conftest.er1
14808   ac_status=$?
14809   grep -v '^ *+' conftest.er1 >conftest.err
14810   rm -f conftest.er1
14811   cat conftest.err >&5
14812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813   (exit $ac_status); } &&
14814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14815   { (case "(($ac_try" in
14816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817   *) ac_try_echo=$ac_try;;
14818 esac
14819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820   (eval "$ac_try") 2>&5
14821   ac_status=$?
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); }; } &&
14824          { ac_try='test -s conftest.$ac_objext'
14825   { (case "(($ac_try" in
14826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827   *) ac_try_echo=$ac_try;;
14828 esac
14829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830   (eval "$ac_try") 2>&5
14831   ac_status=$?
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); }; }; then
14834   eval "$as_ac_Header=yes"
14835 else
14836   echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.$ac_ext >&5
14838
14839         eval "$as_ac_Header=no"
14840 fi
14841
14842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14843 fi
14844 ac_res=`eval echo '${'$as_ac_Header'}'`
14845                { echo "$as_me:$LINENO: result: $ac_res" >&5
14846 echo "${ECHO_T}$ac_res" >&6; }
14847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14848   cat >>confdefs.h <<_ACEOF
14849 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14850 _ACEOF
14851
14852 ac_header_dirent=$ac_hdr; break
14853 fi
14854
14855 done
14856 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14857 if test $ac_header_dirent = dirent.h; then
14858   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14859 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14860 if test "${ac_cv_search_opendir+set}" = set; then
14861   echo $ECHO_N "(cached) $ECHO_C" >&6
14862 else
14863   ac_func_search_save_LIBS=$LIBS
14864 cat >conftest.$ac_ext <<_ACEOF
14865 /* confdefs.h.  */
14866 _ACEOF
14867 cat confdefs.h >>conftest.$ac_ext
14868 cat >>conftest.$ac_ext <<_ACEOF
14869 /* end confdefs.h.  */
14870
14871 /* Override any GCC internal prototype to avoid an error.
14872    Use char because int might match the return type of a GCC
14873    builtin and then its argument prototype would still apply.  */
14874 #ifdef __cplusplus
14875 extern "C"
14876 #endif
14877 char opendir ();
14878 int
14879 main ()
14880 {
14881 return opendir ();
14882   ;
14883   return 0;
14884 }
14885 _ACEOF
14886 for ac_lib in '' dir; do
14887   if test -z "$ac_lib"; then
14888     ac_res="none required"
14889   else
14890     ac_res=-l$ac_lib
14891     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14892   fi
14893   rm -f conftest.$ac_objext conftest$ac_exeext
14894 if { (ac_try="$ac_link"
14895 case "(($ac_try" in
14896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897   *) ac_try_echo=$ac_try;;
14898 esac
14899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900   (eval "$ac_link") 2>conftest.er1
14901   ac_status=$?
14902   grep -v '^ *+' conftest.er1 >conftest.err
14903   rm -f conftest.er1
14904   cat conftest.err >&5
14905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906   (exit $ac_status); } &&
14907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14908   { (case "(($ac_try" in
14909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910   *) ac_try_echo=$ac_try;;
14911 esac
14912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14913   (eval "$ac_try") 2>&5
14914   ac_status=$?
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); }; } &&
14917          { ac_try='test -s conftest$ac_exeext'
14918   { (case "(($ac_try" in
14919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920   *) ac_try_echo=$ac_try;;
14921 esac
14922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923   (eval "$ac_try") 2>&5
14924   ac_status=$?
14925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926   (exit $ac_status); }; }; then
14927   ac_cv_search_opendir=$ac_res
14928 else
14929   echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14931
14932
14933 fi
14934
14935 rm -f core conftest.err conftest.$ac_objext \
14936       conftest$ac_exeext
14937   if test "${ac_cv_search_opendir+set}" = set; then
14938   break
14939 fi
14940 done
14941 if test "${ac_cv_search_opendir+set}" = set; then
14942   :
14943 else
14944   ac_cv_search_opendir=no
14945 fi
14946 rm conftest.$ac_ext
14947 LIBS=$ac_func_search_save_LIBS
14948 fi
14949 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14950 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14951 ac_res=$ac_cv_search_opendir
14952 if test "$ac_res" != no; then
14953   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14954
14955 fi
14956
14957 else
14958   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14959 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14960 if test "${ac_cv_search_opendir+set}" = set; then
14961   echo $ECHO_N "(cached) $ECHO_C" >&6
14962 else
14963   ac_func_search_save_LIBS=$LIBS
14964 cat >conftest.$ac_ext <<_ACEOF
14965 /* confdefs.h.  */
14966 _ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h.  */
14970
14971 /* Override any GCC internal prototype to avoid an error.
14972    Use char because int might match the return type of a GCC
14973    builtin and then its argument prototype would still apply.  */
14974 #ifdef __cplusplus
14975 extern "C"
14976 #endif
14977 char opendir ();
14978 int
14979 main ()
14980 {
14981 return opendir ();
14982   ;
14983   return 0;
14984 }
14985 _ACEOF
14986 for ac_lib in '' x; do
14987   if test -z "$ac_lib"; then
14988     ac_res="none required"
14989   else
14990     ac_res=-l$ac_lib
14991     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14992   fi
14993   rm -f conftest.$ac_objext conftest$ac_exeext
14994 if { (ac_try="$ac_link"
14995 case "(($ac_try" in
14996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997   *) ac_try_echo=$ac_try;;
14998 esac
14999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15000   (eval "$ac_link") 2>conftest.er1
15001   ac_status=$?
15002   grep -v '^ *+' conftest.er1 >conftest.err
15003   rm -f conftest.er1
15004   cat conftest.err >&5
15005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006   (exit $ac_status); } &&
15007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15008   { (case "(($ac_try" in
15009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010   *) ac_try_echo=$ac_try;;
15011 esac
15012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013   (eval "$ac_try") 2>&5
15014   ac_status=$?
15015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016   (exit $ac_status); }; } &&
15017          { ac_try='test -s conftest$ac_exeext'
15018   { (case "(($ac_try" in
15019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020   *) ac_try_echo=$ac_try;;
15021 esac
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023   (eval "$ac_try") 2>&5
15024   ac_status=$?
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); }; }; then
15027   ac_cv_search_opendir=$ac_res
15028 else
15029   echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15031
15032
15033 fi
15034
15035 rm -f core conftest.err conftest.$ac_objext \
15036       conftest$ac_exeext
15037   if test "${ac_cv_search_opendir+set}" = set; then
15038   break
15039 fi
15040 done
15041 if test "${ac_cv_search_opendir+set}" = set; then
15042   :
15043 else
15044   ac_cv_search_opendir=no
15045 fi
15046 rm conftest.$ac_ext
15047 LIBS=$ac_func_search_save_LIBS
15048 fi
15049 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15050 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15051 ac_res=$ac_cv_search_opendir
15052 if test "$ac_res" != no; then
15053   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15054
15055 fi
15056
15057 fi
15058
15059 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15060 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15061 if test "${ac_cv_header_mmap_anon+set}" = set; then
15062   echo $ECHO_N "(cached) $ECHO_C" >&6
15063 else
15064    ac_ext=c
15065 ac_cpp='$CPP $CPPFLAGS'
15066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15069
15070   cat >conftest.$ac_ext <<_ACEOF
15071 /* confdefs.h.  */
15072 _ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h.  */
15076 #include <sys/mman.h>
15077 #include <unistd.h>
15078 #include <fcntl.h>
15079 int
15080 main ()
15081 {
15082 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15083   ;
15084   return 0;
15085 }
15086 _ACEOF
15087 rm -f conftest.$ac_objext
15088 if { (ac_try="$ac_compile"
15089 case "(($ac_try" in
15090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091   *) ac_try_echo=$ac_try;;
15092 esac
15093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15094   (eval "$ac_compile") 2>conftest.er1
15095   ac_status=$?
15096   grep -v '^ *+' conftest.er1 >conftest.err
15097   rm -f conftest.er1
15098   cat conftest.err >&5
15099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100   (exit $ac_status); } &&
15101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15102   { (case "(($ac_try" in
15103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104   *) ac_try_echo=$ac_try;;
15105 esac
15106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107   (eval "$ac_try") 2>&5
15108   ac_status=$?
15109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110   (exit $ac_status); }; } &&
15111          { ac_try='test -s conftest.$ac_objext'
15112   { (case "(($ac_try" in
15113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114   *) ac_try_echo=$ac_try;;
15115 esac
15116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117   (eval "$ac_try") 2>&5
15118   ac_status=$?
15119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120   (exit $ac_status); }; }; then
15121   ac_cv_header_mmap_anon=yes
15122 else
15123   echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15125
15126         ac_cv_header_mmap_anon=no
15127 fi
15128
15129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15130   ac_ext=c
15131 ac_cpp='$CPP $CPPFLAGS'
15132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15135
15136
15137 fi
15138 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15139 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15140 if test "$ac_cv_header_mmap_anon" = yes; then
15141
15142 cat >>confdefs.h <<\_ACEOF
15143 #define HAVE_MMAP_ANONYMOUS 1
15144 _ACEOF
15145
15146 fi
15147
15148 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15149 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15150 if test "${ac_cv_header_stat_broken+set}" = set; then
15151   echo $ECHO_N "(cached) $ECHO_C" >&6
15152 else
15153   cat >conftest.$ac_ext <<_ACEOF
15154 /* confdefs.h.  */
15155 _ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h.  */
15159 #include <sys/types.h>
15160 #include <sys/stat.h>
15161
15162 #if defined S_ISBLK && defined S_IFDIR
15163 # if S_ISBLK (S_IFDIR)
15164 You lose.
15165 # endif
15166 #endif
15167
15168 #if defined S_ISBLK && defined S_IFCHR
15169 # if S_ISBLK (S_IFCHR)
15170 You lose.
15171 # endif
15172 #endif
15173
15174 #if defined S_ISLNK && defined S_IFREG
15175 # if S_ISLNK (S_IFREG)
15176 You lose.
15177 # endif
15178 #endif
15179
15180 #if defined S_ISSOCK && defined S_IFREG
15181 # if S_ISSOCK (S_IFREG)
15182 You lose.
15183 # endif
15184 #endif
15185
15186 _ACEOF
15187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15188   $EGREP "You lose" >/dev/null 2>&1; then
15189   ac_cv_header_stat_broken=yes
15190 else
15191   ac_cv_header_stat_broken=no
15192 fi
15193 rm -f conftest*
15194
15195 fi
15196 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15197 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15198 if test $ac_cv_header_stat_broken = yes; then
15199
15200 cat >>confdefs.h <<\_ACEOF
15201 #define STAT_MACROS_BROKEN 1
15202 _ACEOF
15203
15204 fi
15205
15206 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15207 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15208 if test "${ac_cv_header_stdc+set}" = set; then
15209   echo $ECHO_N "(cached) $ECHO_C" >&6
15210 else
15211   cat >conftest.$ac_ext <<_ACEOF
15212 /* confdefs.h.  */
15213 _ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h.  */
15217 #include <stdlib.h>
15218 #include <stdarg.h>
15219 #include <string.h>
15220 #include <float.h>
15221
15222 int
15223 main ()
15224 {
15225
15226   ;
15227   return 0;
15228 }
15229 _ACEOF
15230 rm -f conftest.$ac_objext
15231 if { (ac_try="$ac_compile"
15232 case "(($ac_try" in
15233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234   *) ac_try_echo=$ac_try;;
15235 esac
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237   (eval "$ac_compile") 2>conftest.er1
15238   ac_status=$?
15239   grep -v '^ *+' conftest.er1 >conftest.err
15240   rm -f conftest.er1
15241   cat conftest.err >&5
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); } &&
15244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15245   { (case "(($ac_try" in
15246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247   *) ac_try_echo=$ac_try;;
15248 esac
15249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250   (eval "$ac_try") 2>&5
15251   ac_status=$?
15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253   (exit $ac_status); }; } &&
15254          { ac_try='test -s conftest.$ac_objext'
15255   { (case "(($ac_try" in
15256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257   *) ac_try_echo=$ac_try;;
15258 esac
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260   (eval "$ac_try") 2>&5
15261   ac_status=$?
15262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263   (exit $ac_status); }; }; then
15264   ac_cv_header_stdc=yes
15265 else
15266   echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15268
15269         ac_cv_header_stdc=no
15270 fi
15271
15272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15273
15274 if test $ac_cv_header_stdc = yes; then
15275   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15276   cat >conftest.$ac_ext <<_ACEOF
15277 /* confdefs.h.  */
15278 _ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h.  */
15282 #include <string.h>
15283
15284 _ACEOF
15285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15286   $EGREP "memchr" >/dev/null 2>&1; then
15287   :
15288 else
15289   ac_cv_header_stdc=no
15290 fi
15291 rm -f conftest*
15292
15293 fi
15294
15295 if test $ac_cv_header_stdc = yes; then
15296   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
15304
15305 _ACEOF
15306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15307   $EGREP "free" >/dev/null 2>&1; then
15308   :
15309 else
15310   ac_cv_header_stdc=no
15311 fi
15312 rm -f conftest*
15313
15314 fi
15315
15316 if test $ac_cv_header_stdc = yes; then
15317   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15318   if test "$cross_compiling" = yes; then
15319   :
15320 else
15321   cat >conftest.$ac_ext <<_ACEOF
15322 /* confdefs.h.  */
15323 _ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h.  */
15327 #include <ctype.h>
15328 #include <stdlib.h>
15329 #if ((' ' & 0x0FF) == 0x020)
15330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15331 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15332 #else
15333 # define ISLOWER(c) \
15334                    (('a' <= (c) && (c) <= 'i') \
15335                      || ('j' <= (c) && (c) <= 'r') \
15336                      || ('s' <= (c) && (c) <= 'z'))
15337 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15338 #endif
15339
15340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15341 int
15342 main ()
15343 {
15344   int i;
15345   for (i = 0; i < 256; i++)
15346     if (XOR (islower (i), ISLOWER (i))
15347         || toupper (i) != TOUPPER (i))
15348       return 2;
15349   return 0;
15350 }
15351 _ACEOF
15352 rm -f conftest$ac_exeext
15353 if { (ac_try="$ac_link"
15354 case "(($ac_try" in
15355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356   *) ac_try_echo=$ac_try;;
15357 esac
15358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359   (eval "$ac_link") 2>&5
15360   ac_status=$?
15361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15363   { (case "(($ac_try" in
15364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365   *) ac_try_echo=$ac_try;;
15366 esac
15367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15368   (eval "$ac_try") 2>&5
15369   ac_status=$?
15370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371   (exit $ac_status); }; }; then
15372   :
15373 else
15374   echo "$as_me: program exited with status $ac_status" >&5
15375 echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.$ac_ext >&5
15377
15378 ( exit $ac_status )
15379 ac_cv_header_stdc=no
15380 fi
15381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15382 fi
15383
15384
15385 fi
15386 fi
15387 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15388 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15389 if test $ac_cv_header_stdc = yes; then
15390
15391 cat >>confdefs.h <<\_ACEOF
15392 #define STDC_HEADERS 1
15393 _ACEOF
15394
15395 fi
15396
15397 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15398 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15399 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15400   echo $ECHO_N "(cached) $ECHO_C" >&6
15401 else
15402   cat >conftest.$ac_ext <<_ACEOF
15403 /* confdefs.h.  */
15404 _ACEOF
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h.  */
15408 #include <sys/types.h>
15409 #include <sys/wait.h>
15410 #ifndef WEXITSTATUS
15411 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15412 #endif
15413 #ifndef WIFEXITED
15414 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15415 #endif
15416
15417 int
15418 main ()
15419 {
15420   int s;
15421   wait (&s);
15422   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15423   ;
15424   return 0;
15425 }
15426 _ACEOF
15427 rm -f conftest.$ac_objext
15428 if { (ac_try="$ac_compile"
15429 case "(($ac_try" in
15430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431   *) ac_try_echo=$ac_try;;
15432 esac
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434   (eval "$ac_compile") 2>conftest.er1
15435   ac_status=$?
15436   grep -v '^ *+' conftest.er1 >conftest.err
15437   rm -f conftest.er1
15438   cat conftest.err >&5
15439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440   (exit $ac_status); } &&
15441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15442   { (case "(($ac_try" in
15443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444   *) ac_try_echo=$ac_try;;
15445 esac
15446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447   (eval "$ac_try") 2>&5
15448   ac_status=$?
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); }; } &&
15451          { ac_try='test -s conftest.$ac_objext'
15452   { (case "(($ac_try" in
15453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454   *) ac_try_echo=$ac_try;;
15455 esac
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457   (eval "$ac_try") 2>&5
15458   ac_status=$?
15459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460   (exit $ac_status); }; }; then
15461   ac_cv_header_sys_wait_h=yes
15462 else
15463   echo "$as_me: failed program was:" >&5
15464 sed 's/^/| /' conftest.$ac_ext >&5
15465
15466         ac_cv_header_sys_wait_h=no
15467 fi
15468
15469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15470 fi
15471 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15472 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15473 if test $ac_cv_header_sys_wait_h = yes; then
15474
15475 cat >>confdefs.h <<\_ACEOF
15476 #define HAVE_SYS_WAIT_H 1
15477 _ACEOF
15478
15479 fi
15480
15481 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15482 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15483 if test "${ac_cv_header_time+set}" = set; then
15484   echo $ECHO_N "(cached) $ECHO_C" >&6
15485 else
15486   cat >conftest.$ac_ext <<_ACEOF
15487 /* confdefs.h.  */
15488 _ACEOF
15489 cat confdefs.h >>conftest.$ac_ext
15490 cat >>conftest.$ac_ext <<_ACEOF
15491 /* end confdefs.h.  */
15492 #include <sys/types.h>
15493 #include <sys/time.h>
15494 #include <time.h>
15495
15496 int
15497 main ()
15498 {
15499 if ((struct tm *) 0)
15500 return 0;
15501   ;
15502   return 0;
15503 }
15504 _ACEOF
15505 rm -f conftest.$ac_objext
15506 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15513   ac_status=$?
15514   grep -v '^ *+' conftest.er1 >conftest.err
15515   rm -f conftest.er1
15516   cat conftest.err >&5
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); } &&
15519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15520   { (case "(($ac_try" in
15521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522   *) ac_try_echo=$ac_try;;
15523 esac
15524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525   (eval "$ac_try") 2>&5
15526   ac_status=$?
15527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528   (exit $ac_status); }; } &&
15529          { ac_try='test -s conftest.$ac_objext'
15530   { (case "(($ac_try" in
15531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15532   *) ac_try_echo=$ac_try;;
15533 esac
15534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15535   (eval "$ac_try") 2>&5
15536   ac_status=$?
15537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538   (exit $ac_status); }; }; then
15539   ac_cv_header_time=yes
15540 else
15541   echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15543
15544         ac_cv_header_time=no
15545 fi
15546
15547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15548 fi
15549 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15550 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15551 if test $ac_cv_header_time = yes; then
15552
15553 cat >>confdefs.h <<\_ACEOF
15554 #define TIME_WITH_SYS_TIME 1
15555 _ACEOF
15556
15557 fi
15558
15559
15560
15561
15562
15563
15564
15565
15566 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15567 do
15568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15570   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15573   echo $ECHO_N "(cached) $ECHO_C" >&6
15574 fi
15575 ac_res=`eval echo '${'$as_ac_Header'}'`
15576                { echo "$as_me:$LINENO: result: $ac_res" >&5
15577 echo "${ECHO_T}$ac_res" >&6; }
15578 else
15579   # Is the header compilable?
15580 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15582 cat >conftest.$ac_ext <<_ACEOF
15583 /* confdefs.h.  */
15584 _ACEOF
15585 cat confdefs.h >>conftest.$ac_ext
15586 cat >>conftest.$ac_ext <<_ACEOF
15587 /* end confdefs.h.  */
15588 $ac_includes_default
15589 #include <$ac_header>
15590 _ACEOF
15591 rm -f conftest.$ac_objext
15592 if { (ac_try="$ac_compile"
15593 case "(($ac_try" in
15594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595   *) ac_try_echo=$ac_try;;
15596 esac
15597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15598   (eval "$ac_compile") 2>conftest.er1
15599   ac_status=$?
15600   grep -v '^ *+' conftest.er1 >conftest.err
15601   rm -f conftest.er1
15602   cat conftest.err >&5
15603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604   (exit $ac_status); } &&
15605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15606   { (case "(($ac_try" in
15607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608   *) ac_try_echo=$ac_try;;
15609 esac
15610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15611   (eval "$ac_try") 2>&5
15612   ac_status=$?
15613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614   (exit $ac_status); }; } &&
15615          { ac_try='test -s conftest.$ac_objext'
15616   { (case "(($ac_try" in
15617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618   *) ac_try_echo=$ac_try;;
15619 esac
15620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621   (eval "$ac_try") 2>&5
15622   ac_status=$?
15623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); }; }; then
15625   ac_header_compiler=yes
15626 else
15627   echo "$as_me: failed program was:" >&5
15628 sed 's/^/| /' conftest.$ac_ext >&5
15629
15630         ac_header_compiler=no
15631 fi
15632
15633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15635 echo "${ECHO_T}$ac_header_compiler" >&6; }
15636
15637 # Is the header present?
15638 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15640 cat >conftest.$ac_ext <<_ACEOF
15641 /* confdefs.h.  */
15642 _ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h.  */
15646 #include <$ac_header>
15647 _ACEOF
15648 if { (ac_try="$ac_cpp conftest.$ac_ext"
15649 case "(($ac_try" in
15650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15651   *) ac_try_echo=$ac_try;;
15652 esac
15653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15654   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15655   ac_status=$?
15656   grep -v '^ *+' conftest.er1 >conftest.err
15657   rm -f conftest.er1
15658   cat conftest.err >&5
15659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660   (exit $ac_status); } >/dev/null; then
15661   if test -s conftest.err; then
15662     ac_cpp_err=$ac_c_preproc_warn_flag
15663     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15664   else
15665     ac_cpp_err=
15666   fi
15667 else
15668   ac_cpp_err=yes
15669 fi
15670 if test -z "$ac_cpp_err"; then
15671   ac_header_preproc=yes
15672 else
15673   echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15675
15676   ac_header_preproc=no
15677 fi
15678
15679 rm -f conftest.err conftest.$ac_ext
15680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15681 echo "${ECHO_T}$ac_header_preproc" >&6; }
15682
15683 # So?  What about this header?
15684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15685   yes:no: )
15686     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15690     ac_header_preproc=yes
15691     ;;
15692   no:yes:* )
15693     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15695     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15696 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15697     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15699     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15700 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15701     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15703     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15705     ( cat <<\_ASBOX
15706 ## ----------------------------------- ##
15707 ## Report this to llvmbugs@cs.uiuc.edu ##
15708 ## ----------------------------------- ##
15709 _ASBOX
15710      ) | sed "s/^/$as_me: WARNING:     /" >&2
15711     ;;
15712 esac
15713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15716   echo $ECHO_N "(cached) $ECHO_C" >&6
15717 else
15718   eval "$as_ac_Header=\$ac_header_preproc"
15719 fi
15720 ac_res=`eval echo '${'$as_ac_Header'}'`
15721                { echo "$as_me:$LINENO: result: $ac_res" >&5
15722 echo "${ECHO_T}$ac_res" >&6; }
15723
15724 fi
15725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15726   cat >>confdefs.h <<_ACEOF
15727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15728 _ACEOF
15729
15730 fi
15731
15732 done
15733
15734
15735
15736
15737
15738
15739
15740 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15741 do
15742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15744   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15747   echo $ECHO_N "(cached) $ECHO_C" >&6
15748 fi
15749 ac_res=`eval echo '${'$as_ac_Header'}'`
15750                { echo "$as_me:$LINENO: result: $ac_res" >&5
15751 echo "${ECHO_T}$ac_res" >&6; }
15752 else
15753   # Is the header compilable?
15754 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15756 cat >conftest.$ac_ext <<_ACEOF
15757 /* confdefs.h.  */
15758 _ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h.  */
15762 $ac_includes_default
15763 #include <$ac_header>
15764 _ACEOF
15765 rm -f conftest.$ac_objext
15766 if { (ac_try="$ac_compile"
15767 case "(($ac_try" in
15768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769   *) ac_try_echo=$ac_try;;
15770 esac
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772   (eval "$ac_compile") 2>conftest.er1
15773   ac_status=$?
15774   grep -v '^ *+' conftest.er1 >conftest.err
15775   rm -f conftest.er1
15776   cat conftest.err >&5
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); } &&
15779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15780   { (case "(($ac_try" in
15781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782   *) ac_try_echo=$ac_try;;
15783 esac
15784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785   (eval "$ac_try") 2>&5
15786   ac_status=$?
15787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788   (exit $ac_status); }; } &&
15789          { ac_try='test -s conftest.$ac_objext'
15790   { (case "(($ac_try" in
15791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792   *) ac_try_echo=$ac_try;;
15793 esac
15794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795   (eval "$ac_try") 2>&5
15796   ac_status=$?
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); }; }; then
15799   ac_header_compiler=yes
15800 else
15801   echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15803
15804         ac_header_compiler=no
15805 fi
15806
15807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15809 echo "${ECHO_T}$ac_header_compiler" >&6; }
15810
15811 # Is the header present?
15812 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15814 cat >conftest.$ac_ext <<_ACEOF
15815 /* confdefs.h.  */
15816 _ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h.  */
15820 #include <$ac_header>
15821 _ACEOF
15822 if { (ac_try="$ac_cpp conftest.$ac_ext"
15823 case "(($ac_try" in
15824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825   *) ac_try_echo=$ac_try;;
15826 esac
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15829   ac_status=$?
15830   grep -v '^ *+' conftest.er1 >conftest.err
15831   rm -f conftest.er1
15832   cat conftest.err >&5
15833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834   (exit $ac_status); } >/dev/null; then
15835   if test -s conftest.err; then
15836     ac_cpp_err=$ac_c_preproc_warn_flag
15837     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15838   else
15839     ac_cpp_err=
15840   fi
15841 else
15842   ac_cpp_err=yes
15843 fi
15844 if test -z "$ac_cpp_err"; then
15845   ac_header_preproc=yes
15846 else
15847   echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15849
15850   ac_header_preproc=no
15851 fi
15852
15853 rm -f conftest.err conftest.$ac_ext
15854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15855 echo "${ECHO_T}$ac_header_preproc" >&6; }
15856
15857 # So?  What about this header?
15858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15859   yes:no: )
15860     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15862     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15864     ac_header_preproc=yes
15865     ;;
15866   no:yes:* )
15867     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15869     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15870 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15871     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15873     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15874 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15877     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15879     ( cat <<\_ASBOX
15880 ## ----------------------------------- ##
15881 ## Report this to llvmbugs@cs.uiuc.edu ##
15882 ## ----------------------------------- ##
15883 _ASBOX
15884      ) | sed "s/^/$as_me: WARNING:     /" >&2
15885     ;;
15886 esac
15887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15890   echo $ECHO_N "(cached) $ECHO_C" >&6
15891 else
15892   eval "$as_ac_Header=\$ac_header_preproc"
15893 fi
15894 ac_res=`eval echo '${'$as_ac_Header'}'`
15895                { echo "$as_me:$LINENO: result: $ac_res" >&5
15896 echo "${ECHO_T}$ac_res" >&6; }
15897
15898 fi
15899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15900   cat >>confdefs.h <<_ACEOF
15901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15902 _ACEOF
15903
15904 fi
15905
15906 done
15907
15908
15909
15910 for ac_header in utime.h windows.h
15911 do
15912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15914   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15917   echo $ECHO_N "(cached) $ECHO_C" >&6
15918 fi
15919 ac_res=`eval echo '${'$as_ac_Header'}'`
15920                { echo "$as_me:$LINENO: result: $ac_res" >&5
15921 echo "${ECHO_T}$ac_res" >&6; }
15922 else
15923   # Is the header compilable?
15924 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15926 cat >conftest.$ac_ext <<_ACEOF
15927 /* confdefs.h.  */
15928 _ACEOF
15929 cat confdefs.h >>conftest.$ac_ext
15930 cat >>conftest.$ac_ext <<_ACEOF
15931 /* end confdefs.h.  */
15932 $ac_includes_default
15933 #include <$ac_header>
15934 _ACEOF
15935 rm -f conftest.$ac_objext
15936 if { (ac_try="$ac_compile"
15937 case "(($ac_try" in
15938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939   *) ac_try_echo=$ac_try;;
15940 esac
15941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942   (eval "$ac_compile") 2>conftest.er1
15943   ac_status=$?
15944   grep -v '^ *+' conftest.er1 >conftest.err
15945   rm -f conftest.er1
15946   cat conftest.err >&5
15947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948   (exit $ac_status); } &&
15949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15950   { (case "(($ac_try" in
15951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952   *) ac_try_echo=$ac_try;;
15953 esac
15954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955   (eval "$ac_try") 2>&5
15956   ac_status=$?
15957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958   (exit $ac_status); }; } &&
15959          { ac_try='test -s conftest.$ac_objext'
15960   { (case "(($ac_try" in
15961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15962   *) ac_try_echo=$ac_try;;
15963 esac
15964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15965   (eval "$ac_try") 2>&5
15966   ac_status=$?
15967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968   (exit $ac_status); }; }; then
15969   ac_header_compiler=yes
15970 else
15971   echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15973
15974         ac_header_compiler=no
15975 fi
15976
15977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15978 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15979 echo "${ECHO_T}$ac_header_compiler" >&6; }
15980
15981 # Is the header present?
15982 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15984 cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h.  */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h.  */
15990 #include <$ac_header>
15991 _ACEOF
15992 if { (ac_try="$ac_cpp conftest.$ac_ext"
15993 case "(($ac_try" in
15994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995   *) ac_try_echo=$ac_try;;
15996 esac
15997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15998   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15999   ac_status=$?
16000   grep -v '^ *+' conftest.er1 >conftest.err
16001   rm -f conftest.er1
16002   cat conftest.err >&5
16003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004   (exit $ac_status); } >/dev/null; then
16005   if test -s conftest.err; then
16006     ac_cpp_err=$ac_c_preproc_warn_flag
16007     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16008   else
16009     ac_cpp_err=
16010   fi
16011 else
16012   ac_cpp_err=yes
16013 fi
16014 if test -z "$ac_cpp_err"; then
16015   ac_header_preproc=yes
16016 else
16017   echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16019
16020   ac_header_preproc=no
16021 fi
16022
16023 rm -f conftest.err conftest.$ac_ext
16024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16025 echo "${ECHO_T}$ac_header_preproc" >&6; }
16026
16027 # So?  What about this header?
16028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16029   yes:no: )
16030     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16034     ac_header_preproc=yes
16035     ;;
16036   no:yes:* )
16037     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16039     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16040 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16041     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16043     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16044 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16047     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16049     ( cat <<\_ASBOX
16050 ## ----------------------------------- ##
16051 ## Report this to llvmbugs@cs.uiuc.edu ##
16052 ## ----------------------------------- ##
16053 _ASBOX
16054      ) | sed "s/^/$as_me: WARNING:     /" >&2
16055     ;;
16056 esac
16057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16060   echo $ECHO_N "(cached) $ECHO_C" >&6
16061 else
16062   eval "$as_ac_Header=\$ac_header_preproc"
16063 fi
16064 ac_res=`eval echo '${'$as_ac_Header'}'`
16065                { echo "$as_me:$LINENO: result: $ac_res" >&5
16066 echo "${ECHO_T}$ac_res" >&6; }
16067
16068 fi
16069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16070   cat >>confdefs.h <<_ACEOF
16071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16072 _ACEOF
16073
16074 fi
16075
16076 done
16077
16078
16079
16080
16081
16082 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16083 do
16084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16086   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16089   echo $ECHO_N "(cached) $ECHO_C" >&6
16090 fi
16091 ac_res=`eval echo '${'$as_ac_Header'}'`
16092                { echo "$as_me:$LINENO: result: $ac_res" >&5
16093 echo "${ECHO_T}$ac_res" >&6; }
16094 else
16095   # Is the header compilable?
16096 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16098 cat >conftest.$ac_ext <<_ACEOF
16099 /* confdefs.h.  */
16100 _ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h.  */
16104 $ac_includes_default
16105 #include <$ac_header>
16106 _ACEOF
16107 rm -f conftest.$ac_objext
16108 if { (ac_try="$ac_compile"
16109 case "(($ac_try" in
16110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111   *) ac_try_echo=$ac_try;;
16112 esac
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114   (eval "$ac_compile") 2>conftest.er1
16115   ac_status=$?
16116   grep -v '^ *+' conftest.er1 >conftest.err
16117   rm -f conftest.er1
16118   cat conftest.err >&5
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   (exit $ac_status); } &&
16121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16122   { (case "(($ac_try" in
16123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124   *) ac_try_echo=$ac_try;;
16125 esac
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127   (eval "$ac_try") 2>&5
16128   ac_status=$?
16129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130   (exit $ac_status); }; } &&
16131          { ac_try='test -s conftest.$ac_objext'
16132   { (case "(($ac_try" in
16133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134   *) ac_try_echo=$ac_try;;
16135 esac
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137   (eval "$ac_try") 2>&5
16138   ac_status=$?
16139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140   (exit $ac_status); }; }; then
16141   ac_header_compiler=yes
16142 else
16143   echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16145
16146         ac_header_compiler=no
16147 fi
16148
16149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16151 echo "${ECHO_T}$ac_header_compiler" >&6; }
16152
16153 # Is the header present?
16154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16156 cat >conftest.$ac_ext <<_ACEOF
16157 /* confdefs.h.  */
16158 _ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h.  */
16162 #include <$ac_header>
16163 _ACEOF
16164 if { (ac_try="$ac_cpp conftest.$ac_ext"
16165 case "(($ac_try" in
16166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167   *) ac_try_echo=$ac_try;;
16168 esac
16169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16171   ac_status=$?
16172   grep -v '^ *+' conftest.er1 >conftest.err
16173   rm -f conftest.er1
16174   cat conftest.err >&5
16175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); } >/dev/null; then
16177   if test -s conftest.err; then
16178     ac_cpp_err=$ac_c_preproc_warn_flag
16179     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16180   else
16181     ac_cpp_err=
16182   fi
16183 else
16184   ac_cpp_err=yes
16185 fi
16186 if test -z "$ac_cpp_err"; then
16187   ac_header_preproc=yes
16188 else
16189   echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16191
16192   ac_header_preproc=no
16193 fi
16194
16195 rm -f conftest.err conftest.$ac_ext
16196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16197 echo "${ECHO_T}$ac_header_preproc" >&6; }
16198
16199 # So?  What about this header?
16200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16201   yes:no: )
16202     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16206     ac_header_preproc=yes
16207     ;;
16208   no:yes:* )
16209     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16211     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16212 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16213     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16215     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16216 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16219     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16221     ( cat <<\_ASBOX
16222 ## ----------------------------------- ##
16223 ## Report this to llvmbugs@cs.uiuc.edu ##
16224 ## ----------------------------------- ##
16225 _ASBOX
16226      ) | sed "s/^/$as_me: WARNING:     /" >&2
16227     ;;
16228 esac
16229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16232   echo $ECHO_N "(cached) $ECHO_C" >&6
16233 else
16234   eval "$as_ac_Header=\$ac_header_preproc"
16235 fi
16236 ac_res=`eval echo '${'$as_ac_Header'}'`
16237                { echo "$as_me:$LINENO: result: $ac_res" >&5
16238 echo "${ECHO_T}$ac_res" >&6; }
16239
16240 fi
16241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16242   cat >>confdefs.h <<_ACEOF
16243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16244 _ACEOF
16245
16246 fi
16247
16248 done
16249
16250
16251
16252
16253
16254 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16255 do
16256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16258   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16261   echo $ECHO_N "(cached) $ECHO_C" >&6
16262 fi
16263 ac_res=`eval echo '${'$as_ac_Header'}'`
16264                { echo "$as_me:$LINENO: result: $ac_res" >&5
16265 echo "${ECHO_T}$ac_res" >&6; }
16266 else
16267   # Is the header compilable?
16268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16270 cat >conftest.$ac_ext <<_ACEOF
16271 /* confdefs.h.  */
16272 _ACEOF
16273 cat confdefs.h >>conftest.$ac_ext
16274 cat >>conftest.$ac_ext <<_ACEOF
16275 /* end confdefs.h.  */
16276 $ac_includes_default
16277 #include <$ac_header>
16278 _ACEOF
16279 rm -f conftest.$ac_objext
16280 if { (ac_try="$ac_compile"
16281 case "(($ac_try" in
16282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283   *) ac_try_echo=$ac_try;;
16284 esac
16285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286   (eval "$ac_compile") 2>conftest.er1
16287   ac_status=$?
16288   grep -v '^ *+' conftest.er1 >conftest.err
16289   rm -f conftest.er1
16290   cat conftest.err >&5
16291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292   (exit $ac_status); } &&
16293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16294   { (case "(($ac_try" in
16295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296   *) ac_try_echo=$ac_try;;
16297 esac
16298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299   (eval "$ac_try") 2>&5
16300   ac_status=$?
16301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302   (exit $ac_status); }; } &&
16303          { ac_try='test -s conftest.$ac_objext'
16304   { (case "(($ac_try" in
16305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16306   *) ac_try_echo=$ac_try;;
16307 esac
16308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16309   (eval "$ac_try") 2>&5
16310   ac_status=$?
16311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312   (exit $ac_status); }; }; then
16313   ac_header_compiler=yes
16314 else
16315   echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16317
16318         ac_header_compiler=no
16319 fi
16320
16321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16323 echo "${ECHO_T}$ac_header_compiler" >&6; }
16324
16325 # Is the header present?
16326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16328 cat >conftest.$ac_ext <<_ACEOF
16329 /* confdefs.h.  */
16330 _ACEOF
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h.  */
16334 #include <$ac_header>
16335 _ACEOF
16336 if { (ac_try="$ac_cpp conftest.$ac_ext"
16337 case "(($ac_try" in
16338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339   *) ac_try_echo=$ac_try;;
16340 esac
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16343   ac_status=$?
16344   grep -v '^ *+' conftest.er1 >conftest.err
16345   rm -f conftest.er1
16346   cat conftest.err >&5
16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348   (exit $ac_status); } >/dev/null; then
16349   if test -s conftest.err; then
16350     ac_cpp_err=$ac_c_preproc_warn_flag
16351     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16352   else
16353     ac_cpp_err=
16354   fi
16355 else
16356   ac_cpp_err=yes
16357 fi
16358 if test -z "$ac_cpp_err"; then
16359   ac_header_preproc=yes
16360 else
16361   echo "$as_me: failed program was:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16363
16364   ac_header_preproc=no
16365 fi
16366
16367 rm -f conftest.err conftest.$ac_ext
16368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16369 echo "${ECHO_T}$ac_header_preproc" >&6; }
16370
16371 # So?  What about this header?
16372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16373   yes:no: )
16374     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16378     ac_header_preproc=yes
16379     ;;
16380   no:yes:* )
16381     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16383     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16384 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16385     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16387     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16388 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16391     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16393     ( cat <<\_ASBOX
16394 ## ----------------------------------- ##
16395 ## Report this to llvmbugs@cs.uiuc.edu ##
16396 ## ----------------------------------- ##
16397 _ASBOX
16398      ) | sed "s/^/$as_me: WARNING:     /" >&2
16399     ;;
16400 esac
16401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16404   echo $ECHO_N "(cached) $ECHO_C" >&6
16405 else
16406   eval "$as_ac_Header=\$ac_header_preproc"
16407 fi
16408 ac_res=`eval echo '${'$as_ac_Header'}'`
16409                { echo "$as_me:$LINENO: result: $ac_res" >&5
16410 echo "${ECHO_T}$ac_res" >&6; }
16411
16412 fi
16413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16414   cat >>confdefs.h <<_ACEOF
16415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16416 _ACEOF
16417
16418 fi
16419
16420 done
16421
16422
16423 for ac_header in valgrind/valgrind.h
16424 do
16425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16427   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16430   echo $ECHO_N "(cached) $ECHO_C" >&6
16431 fi
16432 ac_res=`eval echo '${'$as_ac_Header'}'`
16433                { echo "$as_me:$LINENO: result: $ac_res" >&5
16434 echo "${ECHO_T}$ac_res" >&6; }
16435 else
16436   # Is the header compilable?
16437 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16439 cat >conftest.$ac_ext <<_ACEOF
16440 /* confdefs.h.  */
16441 _ACEOF
16442 cat confdefs.h >>conftest.$ac_ext
16443 cat >>conftest.$ac_ext <<_ACEOF
16444 /* end confdefs.h.  */
16445 $ac_includes_default
16446 #include <$ac_header>
16447 _ACEOF
16448 rm -f conftest.$ac_objext
16449 if { (ac_try="$ac_compile"
16450 case "(($ac_try" in
16451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452   *) ac_try_echo=$ac_try;;
16453 esac
16454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455   (eval "$ac_compile") 2>conftest.er1
16456   ac_status=$?
16457   grep -v '^ *+' conftest.er1 >conftest.err
16458   rm -f conftest.er1
16459   cat conftest.err >&5
16460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461   (exit $ac_status); } &&
16462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16463   { (case "(($ac_try" in
16464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16465   *) ac_try_echo=$ac_try;;
16466 esac
16467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16468   (eval "$ac_try") 2>&5
16469   ac_status=$?
16470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471   (exit $ac_status); }; } &&
16472          { ac_try='test -s conftest.$ac_objext'
16473   { (case "(($ac_try" in
16474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475   *) ac_try_echo=$ac_try;;
16476 esac
16477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16478   (eval "$ac_try") 2>&5
16479   ac_status=$?
16480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481   (exit $ac_status); }; }; then
16482   ac_header_compiler=yes
16483 else
16484   echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16486
16487         ac_header_compiler=no
16488 fi
16489
16490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16492 echo "${ECHO_T}$ac_header_compiler" >&6; }
16493
16494 # Is the header present?
16495 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16497 cat >conftest.$ac_ext <<_ACEOF
16498 /* confdefs.h.  */
16499 _ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h.  */
16503 #include <$ac_header>
16504 _ACEOF
16505 if { (ac_try="$ac_cpp conftest.$ac_ext"
16506 case "(($ac_try" in
16507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508   *) ac_try_echo=$ac_try;;
16509 esac
16510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16512   ac_status=$?
16513   grep -v '^ *+' conftest.er1 >conftest.err
16514   rm -f conftest.er1
16515   cat conftest.err >&5
16516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); } >/dev/null; then
16518   if test -s conftest.err; then
16519     ac_cpp_err=$ac_c_preproc_warn_flag
16520     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16521   else
16522     ac_cpp_err=
16523   fi
16524 else
16525   ac_cpp_err=yes
16526 fi
16527 if test -z "$ac_cpp_err"; then
16528   ac_header_preproc=yes
16529 else
16530   echo "$as_me: failed program was:" >&5
16531 sed 's/^/| /' conftest.$ac_ext >&5
16532
16533   ac_header_preproc=no
16534 fi
16535
16536 rm -f conftest.err conftest.$ac_ext
16537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16538 echo "${ECHO_T}$ac_header_preproc" >&6; }
16539
16540 # So?  What about this header?
16541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16542   yes:no: )
16543     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16547     ac_header_preproc=yes
16548     ;;
16549   no:yes:* )
16550     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16552     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16553 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16554     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16556     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16557 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16560     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16562     ( cat <<\_ASBOX
16563 ## ----------------------------------- ##
16564 ## Report this to llvmbugs@cs.uiuc.edu ##
16565 ## ----------------------------------- ##
16566 _ASBOX
16567      ) | sed "s/^/$as_me: WARNING:     /" >&2
16568     ;;
16569 esac
16570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16573   echo $ECHO_N "(cached) $ECHO_C" >&6
16574 else
16575   eval "$as_ac_Header=\$ac_header_preproc"
16576 fi
16577 ac_res=`eval echo '${'$as_ac_Header'}'`
16578                { echo "$as_me:$LINENO: result: $ac_res" >&5
16579 echo "${ECHO_T}$ac_res" >&6; }
16580
16581 fi
16582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16583   cat >>confdefs.h <<_ACEOF
16584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16585 _ACEOF
16586
16587 fi
16588
16589 done
16590
16591 if test "$ENABLE_THREADS" -eq 1 ; then
16592
16593 for ac_header in pthread.h
16594 do
16595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16597   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16600   echo $ECHO_N "(cached) $ECHO_C" >&6
16601 fi
16602 ac_res=`eval echo '${'$as_ac_Header'}'`
16603                { echo "$as_me:$LINENO: result: $ac_res" >&5
16604 echo "${ECHO_T}$ac_res" >&6; }
16605 else
16606   # Is the header compilable?
16607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16609 cat >conftest.$ac_ext <<_ACEOF
16610 /* confdefs.h.  */
16611 _ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h.  */
16615 $ac_includes_default
16616 #include <$ac_header>
16617 _ACEOF
16618 rm -f conftest.$ac_objext
16619 if { (ac_try="$ac_compile"
16620 case "(($ac_try" in
16621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622   *) ac_try_echo=$ac_try;;
16623 esac
16624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625   (eval "$ac_compile") 2>conftest.er1
16626   ac_status=$?
16627   grep -v '^ *+' conftest.er1 >conftest.err
16628   rm -f conftest.er1
16629   cat conftest.err >&5
16630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631   (exit $ac_status); } &&
16632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16633   { (case "(($ac_try" in
16634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635   *) ac_try_echo=$ac_try;;
16636 esac
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638   (eval "$ac_try") 2>&5
16639   ac_status=$?
16640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641   (exit $ac_status); }; } &&
16642          { ac_try='test -s conftest.$ac_objext'
16643   { (case "(($ac_try" in
16644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645   *) ac_try_echo=$ac_try;;
16646 esac
16647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648   (eval "$ac_try") 2>&5
16649   ac_status=$?
16650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651   (exit $ac_status); }; }; then
16652   ac_header_compiler=yes
16653 else
16654   echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.$ac_ext >&5
16656
16657         ac_header_compiler=no
16658 fi
16659
16660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16662 echo "${ECHO_T}$ac_header_compiler" >&6; }
16663
16664 # Is the header present?
16665 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16667 cat >conftest.$ac_ext <<_ACEOF
16668 /* confdefs.h.  */
16669 _ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h.  */
16673 #include <$ac_header>
16674 _ACEOF
16675 if { (ac_try="$ac_cpp conftest.$ac_ext"
16676 case "(($ac_try" in
16677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678   *) ac_try_echo=$ac_try;;
16679 esac
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16682   ac_status=$?
16683   grep -v '^ *+' conftest.er1 >conftest.err
16684   rm -f conftest.er1
16685   cat conftest.err >&5
16686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687   (exit $ac_status); } >/dev/null; then
16688   if test -s conftest.err; then
16689     ac_cpp_err=$ac_c_preproc_warn_flag
16690     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16691   else
16692     ac_cpp_err=
16693   fi
16694 else
16695   ac_cpp_err=yes
16696 fi
16697 if test -z "$ac_cpp_err"; then
16698   ac_header_preproc=yes
16699 else
16700   echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16702
16703   ac_header_preproc=no
16704 fi
16705
16706 rm -f conftest.err conftest.$ac_ext
16707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16708 echo "${ECHO_T}$ac_header_preproc" >&6; }
16709
16710 # So?  What about this header?
16711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16712   yes:no: )
16713     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16715     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16717     ac_header_preproc=yes
16718     ;;
16719   no:yes:* )
16720     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16722     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16723 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16724     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16726     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16727 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16730     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16732     ( cat <<\_ASBOX
16733 ## ----------------------------------- ##
16734 ## Report this to llvmbugs@cs.uiuc.edu ##
16735 ## ----------------------------------- ##
16736 _ASBOX
16737      ) | sed "s/^/$as_me: WARNING:     /" >&2
16738     ;;
16739 esac
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 else
16745   eval "$as_ac_Header=\$ac_header_preproc"
16746 fi
16747 ac_res=`eval echo '${'$as_ac_Header'}'`
16748                { echo "$as_me:$LINENO: result: $ac_res" >&5
16749 echo "${ECHO_T}$ac_res" >&6; }
16750
16751 fi
16752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16753   cat >>confdefs.h <<_ACEOF
16754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16755 _ACEOF
16756  HAVE_PTHREAD=1
16757
16758 else
16759   HAVE_PTHREAD=0
16760
16761 fi
16762
16763 done
16764
16765 else
16766   HAVE_PTHREAD=0
16767
16768 fi
16769
16770 if test "$llvm_cv_enable_libffi" = "yes" ; then
16771
16772
16773 for ac_header in ffi.h ffi/ffi.h
16774 do
16775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16777   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16780   echo $ECHO_N "(cached) $ECHO_C" >&6
16781 fi
16782 ac_res=`eval echo '${'$as_ac_Header'}'`
16783                { echo "$as_me:$LINENO: result: $ac_res" >&5
16784 echo "${ECHO_T}$ac_res" >&6; }
16785 else
16786   # Is the header compilable?
16787 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16789 cat >conftest.$ac_ext <<_ACEOF
16790 /* confdefs.h.  */
16791 _ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h.  */
16795 $ac_includes_default
16796 #include <$ac_header>
16797 _ACEOF
16798 rm -f conftest.$ac_objext
16799 if { (ac_try="$ac_compile"
16800 case "(($ac_try" in
16801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802   *) ac_try_echo=$ac_try;;
16803 esac
16804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805   (eval "$ac_compile") 2>conftest.er1
16806   ac_status=$?
16807   grep -v '^ *+' conftest.er1 >conftest.err
16808   rm -f conftest.er1
16809   cat conftest.err >&5
16810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811   (exit $ac_status); } &&
16812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16813   { (case "(($ac_try" in
16814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815   *) ac_try_echo=$ac_try;;
16816 esac
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818   (eval "$ac_try") 2>&5
16819   ac_status=$?
16820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821   (exit $ac_status); }; } &&
16822          { ac_try='test -s conftest.$ac_objext'
16823   { (case "(($ac_try" in
16824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825   *) ac_try_echo=$ac_try;;
16826 esac
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828   (eval "$ac_try") 2>&5
16829   ac_status=$?
16830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831   (exit $ac_status); }; }; then
16832   ac_header_compiler=yes
16833 else
16834   echo "$as_me: failed program was:" >&5
16835 sed 's/^/| /' conftest.$ac_ext >&5
16836
16837         ac_header_compiler=no
16838 fi
16839
16840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16842 echo "${ECHO_T}$ac_header_compiler" >&6; }
16843
16844 # Is the header present?
16845 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16847 cat >conftest.$ac_ext <<_ACEOF
16848 /* confdefs.h.  */
16849 _ACEOF
16850 cat confdefs.h >>conftest.$ac_ext
16851 cat >>conftest.$ac_ext <<_ACEOF
16852 /* end confdefs.h.  */
16853 #include <$ac_header>
16854 _ACEOF
16855 if { (ac_try="$ac_cpp conftest.$ac_ext"
16856 case "(($ac_try" in
16857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858   *) ac_try_echo=$ac_try;;
16859 esac
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16862   ac_status=$?
16863   grep -v '^ *+' conftest.er1 >conftest.err
16864   rm -f conftest.er1
16865   cat conftest.err >&5
16866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); } >/dev/null; then
16868   if test -s conftest.err; then
16869     ac_cpp_err=$ac_c_preproc_warn_flag
16870     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16871   else
16872     ac_cpp_err=
16873   fi
16874 else
16875   ac_cpp_err=yes
16876 fi
16877 if test -z "$ac_cpp_err"; then
16878   ac_header_preproc=yes
16879 else
16880   echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16882
16883   ac_header_preproc=no
16884 fi
16885
16886 rm -f conftest.err conftest.$ac_ext
16887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16888 echo "${ECHO_T}$ac_header_preproc" >&6; }
16889
16890 # So?  What about this header?
16891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16892   yes:no: )
16893     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16897     ac_header_preproc=yes
16898     ;;
16899   no:yes:* )
16900     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16902     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16903 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16904     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16906     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16907 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16910     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16912     ( cat <<\_ASBOX
16913 ## ----------------------------------- ##
16914 ## Report this to llvmbugs@cs.uiuc.edu ##
16915 ## ----------------------------------- ##
16916 _ASBOX
16917      ) | sed "s/^/$as_me: WARNING:     /" >&2
16918     ;;
16919 esac
16920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16923   echo $ECHO_N "(cached) $ECHO_C" >&6
16924 else
16925   eval "$as_ac_Header=\$ac_header_preproc"
16926 fi
16927 ac_res=`eval echo '${'$as_ac_Header'}'`
16928                { echo "$as_me:$LINENO: result: $ac_res" >&5
16929 echo "${ECHO_T}$ac_res" >&6; }
16930
16931 fi
16932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16933   cat >>confdefs.h <<_ACEOF
16934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16935 _ACEOF
16936
16937 fi
16938
16939 done
16940
16941 fi
16942
16943
16944 for ac_header in CrashReporterClient.h
16945 do
16946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16948   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16951   echo $ECHO_N "(cached) $ECHO_C" >&6
16952 fi
16953 ac_res=`eval echo '${'$as_ac_Header'}'`
16954                { echo "$as_me:$LINENO: result: $ac_res" >&5
16955 echo "${ECHO_T}$ac_res" >&6; }
16956 else
16957   # Is the header compilable?
16958 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16960 cat >conftest.$ac_ext <<_ACEOF
16961 /* confdefs.h.  */
16962 _ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h.  */
16966 $ac_includes_default
16967 #include <$ac_header>
16968 _ACEOF
16969 rm -f conftest.$ac_objext
16970 if { (ac_try="$ac_compile"
16971 case "(($ac_try" in
16972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973   *) ac_try_echo=$ac_try;;
16974 esac
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976   (eval "$ac_compile") 2>conftest.er1
16977   ac_status=$?
16978   grep -v '^ *+' conftest.er1 >conftest.err
16979   rm -f conftest.er1
16980   cat conftest.err >&5
16981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982   (exit $ac_status); } &&
16983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16984   { (case "(($ac_try" in
16985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986   *) ac_try_echo=$ac_try;;
16987 esac
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989   (eval "$ac_try") 2>&5
16990   ac_status=$?
16991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992   (exit $ac_status); }; } &&
16993          { ac_try='test -s conftest.$ac_objext'
16994   { (case "(($ac_try" in
16995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996   *) ac_try_echo=$ac_try;;
16997 esac
16998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999   (eval "$ac_try") 2>&5
17000   ac_status=$?
17001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002   (exit $ac_status); }; }; then
17003   ac_header_compiler=yes
17004 else
17005   echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17007
17008         ac_header_compiler=no
17009 fi
17010
17011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17013 echo "${ECHO_T}$ac_header_compiler" >&6; }
17014
17015 # Is the header present?
17016 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17018 cat >conftest.$ac_ext <<_ACEOF
17019 /* confdefs.h.  */
17020 _ACEOF
17021 cat confdefs.h >>conftest.$ac_ext
17022 cat >>conftest.$ac_ext <<_ACEOF
17023 /* end confdefs.h.  */
17024 #include <$ac_header>
17025 _ACEOF
17026 if { (ac_try="$ac_cpp conftest.$ac_ext"
17027 case "(($ac_try" in
17028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029   *) ac_try_echo=$ac_try;;
17030 esac
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17033   ac_status=$?
17034   grep -v '^ *+' conftest.er1 >conftest.err
17035   rm -f conftest.er1
17036   cat conftest.err >&5
17037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038   (exit $ac_status); } >/dev/null; then
17039   if test -s conftest.err; then
17040     ac_cpp_err=$ac_c_preproc_warn_flag
17041     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17042   else
17043     ac_cpp_err=
17044   fi
17045 else
17046   ac_cpp_err=yes
17047 fi
17048 if test -z "$ac_cpp_err"; then
17049   ac_header_preproc=yes
17050 else
17051   echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17053
17054   ac_header_preproc=no
17055 fi
17056
17057 rm -f conftest.err conftest.$ac_ext
17058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17059 echo "${ECHO_T}$ac_header_preproc" >&6; }
17060
17061 # So?  What about this header?
17062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17063   yes:no: )
17064     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17068     ac_header_preproc=yes
17069     ;;
17070   no:yes:* )
17071     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17073     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17074 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17075     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17077     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17078 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17079     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17081     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17083     ( cat <<\_ASBOX
17084 ## ----------------------------------- ##
17085 ## Report this to llvmbugs@cs.uiuc.edu ##
17086 ## ----------------------------------- ##
17087 _ASBOX
17088      ) | sed "s/^/$as_me: WARNING:     /" >&2
17089     ;;
17090 esac
17091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17094   echo $ECHO_N "(cached) $ECHO_C" >&6
17095 else
17096   eval "$as_ac_Header=\$ac_header_preproc"
17097 fi
17098 ac_res=`eval echo '${'$as_ac_Header'}'`
17099                { echo "$as_me:$LINENO: result: $ac_res" >&5
17100 echo "${ECHO_T}$ac_res" >&6; }
17101
17102 fi
17103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17104   cat >>confdefs.h <<_ACEOF
17105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17106 _ACEOF
17107
17108 fi
17109
17110 done
17111
17112
17113
17114 for ac_header in mach-o/getsect.h
17115 do
17116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17118   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17121   echo $ECHO_N "(cached) $ECHO_C" >&6
17122 fi
17123 ac_res=`eval echo '${'$as_ac_Header'}'`
17124                { echo "$as_me:$LINENO: result: $ac_res" >&5
17125 echo "${ECHO_T}$ac_res" >&6; }
17126 else
17127   # Is the header compilable?
17128 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17130 cat >conftest.$ac_ext <<_ACEOF
17131 /* confdefs.h.  */
17132 _ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h.  */
17136 $ac_includes_default
17137 #include <$ac_header>
17138 _ACEOF
17139 rm -f conftest.$ac_objext
17140 if { (ac_try="$ac_compile"
17141 case "(($ac_try" in
17142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143   *) ac_try_echo=$ac_try;;
17144 esac
17145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146   (eval "$ac_compile") 2>conftest.er1
17147   ac_status=$?
17148   grep -v '^ *+' conftest.er1 >conftest.err
17149   rm -f conftest.er1
17150   cat conftest.err >&5
17151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152   (exit $ac_status); } &&
17153          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17154   { (case "(($ac_try" in
17155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156   *) ac_try_echo=$ac_try;;
17157 esac
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159   (eval "$ac_try") 2>&5
17160   ac_status=$?
17161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162   (exit $ac_status); }; } &&
17163          { ac_try='test -s conftest.$ac_objext'
17164   { (case "(($ac_try" in
17165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166   *) ac_try_echo=$ac_try;;
17167 esac
17168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17169   (eval "$ac_try") 2>&5
17170   ac_status=$?
17171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172   (exit $ac_status); }; }; then
17173   ac_header_compiler=yes
17174 else
17175   echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17177
17178         ac_header_compiler=no
17179 fi
17180
17181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17182 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17183 echo "${ECHO_T}$ac_header_compiler" >&6; }
17184
17185 # Is the header present?
17186 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17187 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17188 cat >conftest.$ac_ext <<_ACEOF
17189 /* confdefs.h.  */
17190 _ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h.  */
17194 #include <$ac_header>
17195 _ACEOF
17196 if { (ac_try="$ac_cpp conftest.$ac_ext"
17197 case "(($ac_try" in
17198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199   *) ac_try_echo=$ac_try;;
17200 esac
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17203   ac_status=$?
17204   grep -v '^ *+' conftest.er1 >conftest.err
17205   rm -f conftest.er1
17206   cat conftest.err >&5
17207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208   (exit $ac_status); } >/dev/null; then
17209   if test -s conftest.err; then
17210     ac_cpp_err=$ac_c_preproc_warn_flag
17211     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17212   else
17213     ac_cpp_err=
17214   fi
17215 else
17216   ac_cpp_err=yes
17217 fi
17218 if test -z "$ac_cpp_err"; then
17219   ac_header_preproc=yes
17220 else
17221   echo "$as_me: failed program was:" >&5
17222 sed 's/^/| /' conftest.$ac_ext >&5
17223
17224   ac_header_preproc=no
17225 fi
17226
17227 rm -f conftest.err conftest.$ac_ext
17228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17229 echo "${ECHO_T}$ac_header_preproc" >&6; }
17230
17231 # So?  What about this header?
17232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17233   yes:no: )
17234     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17235 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17236     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17237 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17238     ac_header_preproc=yes
17239     ;;
17240   no:yes:* )
17241     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17242 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17243     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17244 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17245     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17246 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17247     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17248 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17249     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17251     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17252 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17253     ( cat <<\_ASBOX
17254 ## ----------------------------------- ##
17255 ## Report this to llvmbugs@cs.uiuc.edu ##
17256 ## ----------------------------------- ##
17257 _ASBOX
17258      ) | sed "s/^/$as_me: WARNING:     /" >&2
17259     ;;
17260 esac
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 else
17266   eval "$as_ac_Header=\$ac_header_preproc"
17267 fi
17268 ac_res=`eval echo '${'$as_ac_Header'}'`
17269                { echo "$as_me:$LINENO: result: $ac_res" >&5
17270 echo "${ECHO_T}$ac_res" >&6; }
17271
17272 fi
17273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17274   cat >>confdefs.h <<_ACEOF
17275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17276 _ACEOF
17277
17278 fi
17279
17280 done
17281
17282
17283
17284
17285
17286   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17287 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17288 if test "${ac_cv_huge_val_sanity+set}" = set; then
17289   echo $ECHO_N "(cached) $ECHO_C" >&6
17290 else
17291
17292     ac_ext=cpp
17293 ac_cpp='$CXXCPP $CPPFLAGS'
17294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17297
17298     ac_save_CXXFLAGS=$CXXFLAGS
17299     CXXFLAGS=-pedantic
17300     if test "$cross_compiling" = yes; then
17301   ac_cv_huge_val_sanity=yes
17302 else
17303   cat >conftest.$ac_ext <<_ACEOF
17304 /* confdefs.h.  */
17305 _ACEOF
17306 cat confdefs.h >>conftest.$ac_ext
17307 cat >>conftest.$ac_ext <<_ACEOF
17308 /* end confdefs.h.  */
17309 #include <math.h>
17310 int
17311 main ()
17312 {
17313 double x = HUGE_VAL; return x != x;
17314   ;
17315   return 0;
17316 }
17317 _ACEOF
17318 rm -f conftest$ac_exeext
17319 if { (ac_try="$ac_link"
17320 case "(($ac_try" in
17321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322   *) ac_try_echo=$ac_try;;
17323 esac
17324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17325   (eval "$ac_link") 2>&5
17326   ac_status=$?
17327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17329   { (case "(($ac_try" in
17330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331   *) ac_try_echo=$ac_try;;
17332 esac
17333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17334   (eval "$ac_try") 2>&5
17335   ac_status=$?
17336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337   (exit $ac_status); }; }; then
17338   ac_cv_huge_val_sanity=yes
17339 else
17340   echo "$as_me: program exited with status $ac_status" >&5
17341 echo "$as_me: failed program was:" >&5
17342 sed 's/^/| /' conftest.$ac_ext >&5
17343
17344 ( exit $ac_status )
17345 ac_cv_huge_val_sanity=no
17346 fi
17347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17348 fi
17349
17350
17351     CXXFLAGS=$ac_save_CXXFLAGS
17352     ac_ext=c
17353 ac_cpp='$CPP $CPPFLAGS'
17354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17357
17358
17359 fi
17360 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17361 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17362   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17363
17364
17365 { echo "$as_me:$LINENO: checking for pid_t" >&5
17366 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17367 if test "${ac_cv_type_pid_t+set}" = set; then
17368   echo $ECHO_N "(cached) $ECHO_C" >&6
17369 else
17370   cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h.  */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h.  */
17376 $ac_includes_default
17377 typedef pid_t ac__type_new_;
17378 int
17379 main ()
17380 {
17381 if ((ac__type_new_ *) 0)
17382   return 0;
17383 if (sizeof (ac__type_new_))
17384   return 0;
17385   ;
17386   return 0;
17387 }
17388 _ACEOF
17389 rm -f conftest.$ac_objext
17390 if { (ac_try="$ac_compile"
17391 case "(($ac_try" in
17392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393   *) ac_try_echo=$ac_try;;
17394 esac
17395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396   (eval "$ac_compile") 2>conftest.er1
17397   ac_status=$?
17398   grep -v '^ *+' conftest.er1 >conftest.err
17399   rm -f conftest.er1
17400   cat conftest.err >&5
17401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402   (exit $ac_status); } &&
17403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17404   { (case "(($ac_try" in
17405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406   *) ac_try_echo=$ac_try;;
17407 esac
17408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409   (eval "$ac_try") 2>&5
17410   ac_status=$?
17411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412   (exit $ac_status); }; } &&
17413          { ac_try='test -s conftest.$ac_objext'
17414   { (case "(($ac_try" in
17415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17416   *) ac_try_echo=$ac_try;;
17417 esac
17418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17419   (eval "$ac_try") 2>&5
17420   ac_status=$?
17421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422   (exit $ac_status); }; }; then
17423   ac_cv_type_pid_t=yes
17424 else
17425   echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17427
17428         ac_cv_type_pid_t=no
17429 fi
17430
17431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17432 fi
17433 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17434 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17435 if test $ac_cv_type_pid_t = yes; then
17436   :
17437 else
17438
17439 cat >>confdefs.h <<_ACEOF
17440 #define pid_t int
17441 _ACEOF
17442
17443 fi
17444
17445 { echo "$as_me:$LINENO: checking for size_t" >&5
17446 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17447 if test "${ac_cv_type_size_t+set}" = set; then
17448   echo $ECHO_N "(cached) $ECHO_C" >&6
17449 else
17450   cat >conftest.$ac_ext <<_ACEOF
17451 /* confdefs.h.  */
17452 _ACEOF
17453 cat confdefs.h >>conftest.$ac_ext
17454 cat >>conftest.$ac_ext <<_ACEOF
17455 /* end confdefs.h.  */
17456 $ac_includes_default
17457 typedef size_t ac__type_new_;
17458 int
17459 main ()
17460 {
17461 if ((ac__type_new_ *) 0)
17462   return 0;
17463 if (sizeof (ac__type_new_))
17464   return 0;
17465   ;
17466   return 0;
17467 }
17468 _ACEOF
17469 rm -f conftest.$ac_objext
17470 if { (ac_try="$ac_compile"
17471 case "(($ac_try" in
17472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473   *) ac_try_echo=$ac_try;;
17474 esac
17475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476   (eval "$ac_compile") 2>conftest.er1
17477   ac_status=$?
17478   grep -v '^ *+' conftest.er1 >conftest.err
17479   rm -f conftest.er1
17480   cat conftest.err >&5
17481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482   (exit $ac_status); } &&
17483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17484   { (case "(($ac_try" in
17485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486   *) ac_try_echo=$ac_try;;
17487 esac
17488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489   (eval "$ac_try") 2>&5
17490   ac_status=$?
17491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492   (exit $ac_status); }; } &&
17493          { ac_try='test -s conftest.$ac_objext'
17494   { (case "(($ac_try" in
17495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17496   *) ac_try_echo=$ac_try;;
17497 esac
17498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17499   (eval "$ac_try") 2>&5
17500   ac_status=$?
17501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502   (exit $ac_status); }; }; then
17503   ac_cv_type_size_t=yes
17504 else
17505   echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17507
17508         ac_cv_type_size_t=no
17509 fi
17510
17511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17512 fi
17513 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17514 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17515 if test $ac_cv_type_size_t = yes; then
17516   :
17517 else
17518
17519 cat >>confdefs.h <<_ACEOF
17520 #define size_t unsigned int
17521 _ACEOF
17522
17523 fi
17524
17525
17526 cat >>confdefs.h <<_ACEOF
17527 #define RETSIGTYPE void
17528 _ACEOF
17529
17530 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17531 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17532 if test "${ac_cv_struct_tm+set}" = set; then
17533   echo $ECHO_N "(cached) $ECHO_C" >&6
17534 else
17535   cat >conftest.$ac_ext <<_ACEOF
17536 /* confdefs.h.  */
17537 _ACEOF
17538 cat confdefs.h >>conftest.$ac_ext
17539 cat >>conftest.$ac_ext <<_ACEOF
17540 /* end confdefs.h.  */
17541 #include <sys/types.h>
17542 #include <time.h>
17543
17544 int
17545 main ()
17546 {
17547 struct tm *tp; tp->tm_sec;
17548   ;
17549   return 0;
17550 }
17551 _ACEOF
17552 rm -f conftest.$ac_objext
17553 if { (ac_try="$ac_compile"
17554 case "(($ac_try" in
17555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17556   *) ac_try_echo=$ac_try;;
17557 esac
17558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17559   (eval "$ac_compile") 2>conftest.er1
17560   ac_status=$?
17561   grep -v '^ *+' conftest.er1 >conftest.err
17562   rm -f conftest.er1
17563   cat conftest.err >&5
17564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565   (exit $ac_status); } &&
17566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17567   { (case "(($ac_try" in
17568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17569   *) ac_try_echo=$ac_try;;
17570 esac
17571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17572   (eval "$ac_try") 2>&5
17573   ac_status=$?
17574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); }; } &&
17576          { ac_try='test -s conftest.$ac_objext'
17577   { (case "(($ac_try" in
17578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17579   *) ac_try_echo=$ac_try;;
17580 esac
17581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17582   (eval "$ac_try") 2>&5
17583   ac_status=$?
17584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585   (exit $ac_status); }; }; then
17586   ac_cv_struct_tm=time.h
17587 else
17588   echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.$ac_ext >&5
17590
17591         ac_cv_struct_tm=sys/time.h
17592 fi
17593
17594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17595 fi
17596 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17597 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17598 if test $ac_cv_struct_tm = sys/time.h; then
17599
17600 cat >>confdefs.h <<\_ACEOF
17601 #define TM_IN_SYS_TIME 1
17602 _ACEOF
17603
17604 fi
17605
17606 { echo "$as_me:$LINENO: checking for int64_t" >&5
17607 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17608 if test "${ac_cv_type_int64_t+set}" = set; then
17609   echo $ECHO_N "(cached) $ECHO_C" >&6
17610 else
17611   cat >conftest.$ac_ext <<_ACEOF
17612 /* confdefs.h.  */
17613 _ACEOF
17614 cat confdefs.h >>conftest.$ac_ext
17615 cat >>conftest.$ac_ext <<_ACEOF
17616 /* end confdefs.h.  */
17617 $ac_includes_default
17618 typedef int64_t ac__type_new_;
17619 int
17620 main ()
17621 {
17622 if ((ac__type_new_ *) 0)
17623   return 0;
17624 if (sizeof (ac__type_new_))
17625   return 0;
17626   ;
17627   return 0;
17628 }
17629 _ACEOF
17630 rm -f conftest.$ac_objext
17631 if { (ac_try="$ac_compile"
17632 case "(($ac_try" in
17633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634   *) ac_try_echo=$ac_try;;
17635 esac
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637   (eval "$ac_compile") 2>conftest.er1
17638   ac_status=$?
17639   grep -v '^ *+' conftest.er1 >conftest.err
17640   rm -f conftest.er1
17641   cat conftest.err >&5
17642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643   (exit $ac_status); } &&
17644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17645   { (case "(($ac_try" in
17646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647   *) ac_try_echo=$ac_try;;
17648 esac
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650   (eval "$ac_try") 2>&5
17651   ac_status=$?
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); }; } &&
17654          { ac_try='test -s conftest.$ac_objext'
17655   { (case "(($ac_try" in
17656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17657   *) ac_try_echo=$ac_try;;
17658 esac
17659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17660   (eval "$ac_try") 2>&5
17661   ac_status=$?
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); }; }; then
17664   ac_cv_type_int64_t=yes
17665 else
17666   echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17668
17669         ac_cv_type_int64_t=no
17670 fi
17671
17672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17673 fi
17674 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17675 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17676 if test $ac_cv_type_int64_t = yes; then
17677
17678 cat >>confdefs.h <<_ACEOF
17679 #define HAVE_INT64_T 1
17680 _ACEOF
17681
17682
17683 else
17684   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17685 echo "$as_me: error: Type int64_t required but not found" >&2;}
17686    { (exit 1); exit 1; }; }
17687 fi
17688
17689 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17690 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17691 if test "${ac_cv_type_uint64_t+set}" = set; then
17692   echo $ECHO_N "(cached) $ECHO_C" >&6
17693 else
17694   cat >conftest.$ac_ext <<_ACEOF
17695 /* confdefs.h.  */
17696 _ACEOF
17697 cat confdefs.h >>conftest.$ac_ext
17698 cat >>conftest.$ac_ext <<_ACEOF
17699 /* end confdefs.h.  */
17700 $ac_includes_default
17701 typedef uint64_t ac__type_new_;
17702 int
17703 main ()
17704 {
17705 if ((ac__type_new_ *) 0)
17706   return 0;
17707 if (sizeof (ac__type_new_))
17708   return 0;
17709   ;
17710   return 0;
17711 }
17712 _ACEOF
17713 rm -f conftest.$ac_objext
17714 if { (ac_try="$ac_compile"
17715 case "(($ac_try" in
17716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717   *) ac_try_echo=$ac_try;;
17718 esac
17719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720   (eval "$ac_compile") 2>conftest.er1
17721   ac_status=$?
17722   grep -v '^ *+' conftest.er1 >conftest.err
17723   rm -f conftest.er1
17724   cat conftest.err >&5
17725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); } &&
17727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17728   { (case "(($ac_try" in
17729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17730   *) ac_try_echo=$ac_try;;
17731 esac
17732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17733   (eval "$ac_try") 2>&5
17734   ac_status=$?
17735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736   (exit $ac_status); }; } &&
17737          { ac_try='test -s conftest.$ac_objext'
17738   { (case "(($ac_try" in
17739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740   *) ac_try_echo=$ac_try;;
17741 esac
17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743   (eval "$ac_try") 2>&5
17744   ac_status=$?
17745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746   (exit $ac_status); }; }; then
17747   ac_cv_type_uint64_t=yes
17748 else
17749   echo "$as_me: failed program was:" >&5
17750 sed 's/^/| /' conftest.$ac_ext >&5
17751
17752         ac_cv_type_uint64_t=no
17753 fi
17754
17755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17756 fi
17757 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17758 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17759 if test $ac_cv_type_uint64_t = yes; then
17760
17761 cat >>confdefs.h <<_ACEOF
17762 #define HAVE_UINT64_T 1
17763 _ACEOF
17764
17765
17766 else
17767   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17768 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17769 if test "${ac_cv_type_u_int64_t+set}" = set; then
17770   echo $ECHO_N "(cached) $ECHO_C" >&6
17771 else
17772   cat >conftest.$ac_ext <<_ACEOF
17773 /* confdefs.h.  */
17774 _ACEOF
17775 cat confdefs.h >>conftest.$ac_ext
17776 cat >>conftest.$ac_ext <<_ACEOF
17777 /* end confdefs.h.  */
17778 $ac_includes_default
17779 typedef u_int64_t ac__type_new_;
17780 int
17781 main ()
17782 {
17783 if ((ac__type_new_ *) 0)
17784   return 0;
17785 if (sizeof (ac__type_new_))
17786   return 0;
17787   ;
17788   return 0;
17789 }
17790 _ACEOF
17791 rm -f conftest.$ac_objext
17792 if { (ac_try="$ac_compile"
17793 case "(($ac_try" in
17794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17795   *) ac_try_echo=$ac_try;;
17796 esac
17797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17798   (eval "$ac_compile") 2>conftest.er1
17799   ac_status=$?
17800   grep -v '^ *+' conftest.er1 >conftest.err
17801   rm -f conftest.er1
17802   cat conftest.err >&5
17803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804   (exit $ac_status); } &&
17805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17806   { (case "(($ac_try" in
17807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808   *) ac_try_echo=$ac_try;;
17809 esac
17810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811   (eval "$ac_try") 2>&5
17812   ac_status=$?
17813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814   (exit $ac_status); }; } &&
17815          { ac_try='test -s conftest.$ac_objext'
17816   { (case "(($ac_try" in
17817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818   *) ac_try_echo=$ac_try;;
17819 esac
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821   (eval "$ac_try") 2>&5
17822   ac_status=$?
17823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824   (exit $ac_status); }; }; then
17825   ac_cv_type_u_int64_t=yes
17826 else
17827   echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17829
17830         ac_cv_type_u_int64_t=no
17831 fi
17832
17833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17834 fi
17835 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17836 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17837 if test $ac_cv_type_u_int64_t = yes; then
17838
17839 cat >>confdefs.h <<_ACEOF
17840 #define HAVE_U_INT64_T 1
17841 _ACEOF
17842
17843
17844 else
17845   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17846 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17847    { (exit 1); exit 1; }; }
17848 fi
17849
17850 fi
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17862 do
17863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17864 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17867   echo $ECHO_N "(cached) $ECHO_C" >&6
17868 else
17869   cat >conftest.$ac_ext <<_ACEOF
17870 /* confdefs.h.  */
17871 _ACEOF
17872 cat confdefs.h >>conftest.$ac_ext
17873 cat >>conftest.$ac_ext <<_ACEOF
17874 /* end confdefs.h.  */
17875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17877 #define $ac_func innocuous_$ac_func
17878
17879 /* System header to define __stub macros and hopefully few prototypes,
17880     which can conflict with char $ac_func (); below.
17881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17882     <limits.h> exists even on freestanding compilers.  */
17883
17884 #ifdef __STDC__
17885 # include <limits.h>
17886 #else
17887 # include <assert.h>
17888 #endif
17889
17890 #undef $ac_func
17891
17892 /* Override any GCC internal prototype to avoid an error.
17893    Use char because int might match the return type of a GCC
17894    builtin and then its argument prototype would still apply.  */
17895 #ifdef __cplusplus
17896 extern "C"
17897 #endif
17898 char $ac_func ();
17899 /* The GNU C library defines this for functions which it implements
17900     to always fail with ENOSYS.  Some functions are actually named
17901     something starting with __ and the normal name is an alias.  */
17902 #if defined __stub_$ac_func || defined __stub___$ac_func
17903 choke me
17904 #endif
17905
17906 int
17907 main ()
17908 {
17909 return $ac_func ();
17910   ;
17911   return 0;
17912 }
17913 _ACEOF
17914 rm -f conftest.$ac_objext conftest$ac_exeext
17915 if { (ac_try="$ac_link"
17916 case "(($ac_try" in
17917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918   *) ac_try_echo=$ac_try;;
17919 esac
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921   (eval "$ac_link") 2>conftest.er1
17922   ac_status=$?
17923   grep -v '^ *+' conftest.er1 >conftest.err
17924   rm -f conftest.er1
17925   cat conftest.err >&5
17926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927   (exit $ac_status); } &&
17928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17929   { (case "(($ac_try" in
17930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17931   *) ac_try_echo=$ac_try;;
17932 esac
17933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17934   (eval "$ac_try") 2>&5
17935   ac_status=$?
17936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937   (exit $ac_status); }; } &&
17938          { ac_try='test -s conftest$ac_exeext'
17939   { (case "(($ac_try" in
17940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941   *) ac_try_echo=$ac_try;;
17942 esac
17943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944   (eval "$ac_try") 2>&5
17945   ac_status=$?
17946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947   (exit $ac_status); }; }; then
17948   eval "$as_ac_var=yes"
17949 else
17950   echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17952
17953         eval "$as_ac_var=no"
17954 fi
17955
17956 rm -f core conftest.err conftest.$ac_objext \
17957       conftest$ac_exeext conftest.$ac_ext
17958 fi
17959 ac_res=`eval echo '${'$as_ac_var'}'`
17960                { echo "$as_me:$LINENO: result: $ac_res" >&5
17961 echo "${ECHO_T}$ac_res" >&6; }
17962 if test `eval echo '${'$as_ac_var'}'` = yes; then
17963   cat >>confdefs.h <<_ACEOF
17964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17965 _ACEOF
17966
17967 fi
17968 done
17969
17970
17971
17972
17973
17974 for ac_func in powf fmodf strtof round
17975 do
17976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17980   echo $ECHO_N "(cached) $ECHO_C" >&6
17981 else
17982   cat >conftest.$ac_ext <<_ACEOF
17983 /* confdefs.h.  */
17984 _ACEOF
17985 cat confdefs.h >>conftest.$ac_ext
17986 cat >>conftest.$ac_ext <<_ACEOF
17987 /* end confdefs.h.  */
17988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17990 #define $ac_func innocuous_$ac_func
17991
17992 /* System header to define __stub macros and hopefully few prototypes,
17993     which can conflict with char $ac_func (); below.
17994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17995     <limits.h> exists even on freestanding compilers.  */
17996
17997 #ifdef __STDC__
17998 # include <limits.h>
17999 #else
18000 # include <assert.h>
18001 #endif
18002
18003 #undef $ac_func
18004
18005 /* Override any GCC internal prototype to avoid an error.
18006    Use char because int might match the return type of a GCC
18007    builtin and then its argument prototype would still apply.  */
18008 #ifdef __cplusplus
18009 extern "C"
18010 #endif
18011 char $ac_func ();
18012 /* The GNU C library defines this for functions which it implements
18013     to always fail with ENOSYS.  Some functions are actually named
18014     something starting with __ and the normal name is an alias.  */
18015 #if defined __stub_$ac_func || defined __stub___$ac_func
18016 choke me
18017 #endif
18018
18019 int
18020 main ()
18021 {
18022 return $ac_func ();
18023   ;
18024   return 0;
18025 }
18026 _ACEOF
18027 rm -f conftest.$ac_objext conftest$ac_exeext
18028 if { (ac_try="$ac_link"
18029 case "(($ac_try" in
18030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18031   *) ac_try_echo=$ac_try;;
18032 esac
18033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18034   (eval "$ac_link") 2>conftest.er1
18035   ac_status=$?
18036   grep -v '^ *+' conftest.er1 >conftest.err
18037   rm -f conftest.er1
18038   cat conftest.err >&5
18039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040   (exit $ac_status); } &&
18041          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18042   { (case "(($ac_try" in
18043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044   *) ac_try_echo=$ac_try;;
18045 esac
18046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047   (eval "$ac_try") 2>&5
18048   ac_status=$?
18049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050   (exit $ac_status); }; } &&
18051          { ac_try='test -s conftest$ac_exeext'
18052   { (case "(($ac_try" in
18053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054   *) ac_try_echo=$ac_try;;
18055 esac
18056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18057   (eval "$ac_try") 2>&5
18058   ac_status=$?
18059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060   (exit $ac_status); }; }; then
18061   eval "$as_ac_var=yes"
18062 else
18063   echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.$ac_ext >&5
18065
18066         eval "$as_ac_var=no"
18067 fi
18068
18069 rm -f core conftest.err conftest.$ac_objext \
18070       conftest$ac_exeext conftest.$ac_ext
18071 fi
18072 ac_res=`eval echo '${'$as_ac_var'}'`
18073                { echo "$as_me:$LINENO: result: $ac_res" >&5
18074 echo "${ECHO_T}$ac_res" >&6; }
18075 if test `eval echo '${'$as_ac_var'}'` = yes; then
18076   cat >>confdefs.h <<_ACEOF
18077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18078 _ACEOF
18079
18080 fi
18081 done
18082
18083
18084
18085
18086
18087
18088 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18089 do
18090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18094   echo $ECHO_N "(cached) $ECHO_C" >&6
18095 else
18096   cat >conftest.$ac_ext <<_ACEOF
18097 /* confdefs.h.  */
18098 _ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h.  */
18102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18103    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18104 #define $ac_func innocuous_$ac_func
18105
18106 /* System header to define __stub macros and hopefully few prototypes,
18107     which can conflict with char $ac_func (); below.
18108     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18109     <limits.h> exists even on freestanding compilers.  */
18110
18111 #ifdef __STDC__
18112 # include <limits.h>
18113 #else
18114 # include <assert.h>
18115 #endif
18116
18117 #undef $ac_func
18118
18119 /* Override any GCC internal prototype to avoid an error.
18120    Use char because int might match the return type of a GCC
18121    builtin and then its argument prototype would still apply.  */
18122 #ifdef __cplusplus
18123 extern "C"
18124 #endif
18125 char $ac_func ();
18126 /* The GNU C library defines this for functions which it implements
18127     to always fail with ENOSYS.  Some functions are actually named
18128     something starting with __ and the normal name is an alias.  */
18129 #if defined __stub_$ac_func || defined __stub___$ac_func
18130 choke me
18131 #endif
18132
18133 int
18134 main ()
18135 {
18136 return $ac_func ();
18137   ;
18138   return 0;
18139 }
18140 _ACEOF
18141 rm -f conftest.$ac_objext conftest$ac_exeext
18142 if { (ac_try="$ac_link"
18143 case "(($ac_try" in
18144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145   *) ac_try_echo=$ac_try;;
18146 esac
18147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18148   (eval "$ac_link") 2>conftest.er1
18149   ac_status=$?
18150   grep -v '^ *+' conftest.er1 >conftest.err
18151   rm -f conftest.er1
18152   cat conftest.err >&5
18153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154   (exit $ac_status); } &&
18155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18156   { (case "(($ac_try" in
18157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158   *) ac_try_echo=$ac_try;;
18159 esac
18160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161   (eval "$ac_try") 2>&5
18162   ac_status=$?
18163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164   (exit $ac_status); }; } &&
18165          { ac_try='test -s conftest$ac_exeext'
18166   { (case "(($ac_try" in
18167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168   *) ac_try_echo=$ac_try;;
18169 esac
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171   (eval "$ac_try") 2>&5
18172   ac_status=$?
18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174   (exit $ac_status); }; }; then
18175   eval "$as_ac_var=yes"
18176 else
18177   echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18179
18180         eval "$as_ac_var=no"
18181 fi
18182
18183 rm -f core conftest.err conftest.$ac_objext \
18184       conftest$ac_exeext conftest.$ac_ext
18185 fi
18186 ac_res=`eval echo '${'$as_ac_var'}'`
18187                { echo "$as_me:$LINENO: result: $ac_res" >&5
18188 echo "${ECHO_T}$ac_res" >&6; }
18189 if test `eval echo '${'$as_ac_var'}'` = yes; then
18190   cat >>confdefs.h <<_ACEOF
18191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18192 _ACEOF
18193
18194 fi
18195 done
18196
18197
18198
18199
18200 for ac_func in isatty mkdtemp mkstemp
18201 do
18202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18203 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18205 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18206   echo $ECHO_N "(cached) $ECHO_C" >&6
18207 else
18208   cat >conftest.$ac_ext <<_ACEOF
18209 /* confdefs.h.  */
18210 _ACEOF
18211 cat confdefs.h >>conftest.$ac_ext
18212 cat >>conftest.$ac_ext <<_ACEOF
18213 /* end confdefs.h.  */
18214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18215    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18216 #define $ac_func innocuous_$ac_func
18217
18218 /* System header to define __stub macros and hopefully few prototypes,
18219     which can conflict with char $ac_func (); below.
18220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18221     <limits.h> exists even on freestanding compilers.  */
18222
18223 #ifdef __STDC__
18224 # include <limits.h>
18225 #else
18226 # include <assert.h>
18227 #endif
18228
18229 #undef $ac_func
18230
18231 /* Override any GCC internal prototype to avoid an error.
18232    Use char because int might match the return type of a GCC
18233    builtin and then its argument prototype would still apply.  */
18234 #ifdef __cplusplus
18235 extern "C"
18236 #endif
18237 char $ac_func ();
18238 /* The GNU C library defines this for functions which it implements
18239     to always fail with ENOSYS.  Some functions are actually named
18240     something starting with __ and the normal name is an alias.  */
18241 #if defined __stub_$ac_func || defined __stub___$ac_func
18242 choke me
18243 #endif
18244
18245 int
18246 main ()
18247 {
18248 return $ac_func ();
18249   ;
18250   return 0;
18251 }
18252 _ACEOF
18253 rm -f conftest.$ac_objext conftest$ac_exeext
18254 if { (ac_try="$ac_link"
18255 case "(($ac_try" in
18256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18257   *) ac_try_echo=$ac_try;;
18258 esac
18259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18260   (eval "$ac_link") 2>conftest.er1
18261   ac_status=$?
18262   grep -v '^ *+' conftest.er1 >conftest.err
18263   rm -f conftest.er1
18264   cat conftest.err >&5
18265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266   (exit $ac_status); } &&
18267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18268   { (case "(($ac_try" in
18269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270   *) ac_try_echo=$ac_try;;
18271 esac
18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273   (eval "$ac_try") 2>&5
18274   ac_status=$?
18275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276   (exit $ac_status); }; } &&
18277          { ac_try='test -s conftest$ac_exeext'
18278   { (case "(($ac_try" in
18279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280   *) ac_try_echo=$ac_try;;
18281 esac
18282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283   (eval "$ac_try") 2>&5
18284   ac_status=$?
18285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286   (exit $ac_status); }; }; then
18287   eval "$as_ac_var=yes"
18288 else
18289   echo "$as_me: failed program was:" >&5
18290 sed 's/^/| /' conftest.$ac_ext >&5
18291
18292         eval "$as_ac_var=no"
18293 fi
18294
18295 rm -f core conftest.err conftest.$ac_objext \
18296       conftest$ac_exeext conftest.$ac_ext
18297 fi
18298 ac_res=`eval echo '${'$as_ac_var'}'`
18299                { echo "$as_me:$LINENO: result: $ac_res" >&5
18300 echo "${ECHO_T}$ac_res" >&6; }
18301 if test `eval echo '${'$as_ac_var'}'` = yes; then
18302   cat >>confdefs.h <<_ACEOF
18303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18304 _ACEOF
18305
18306 fi
18307 done
18308
18309
18310
18311
18312
18313
18314
18315 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18316 do
18317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18321   echo $ECHO_N "(cached) $ECHO_C" >&6
18322 else
18323   cat >conftest.$ac_ext <<_ACEOF
18324 /* confdefs.h.  */
18325 _ACEOF
18326 cat confdefs.h >>conftest.$ac_ext
18327 cat >>conftest.$ac_ext <<_ACEOF
18328 /* end confdefs.h.  */
18329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18331 #define $ac_func innocuous_$ac_func
18332
18333 /* System header to define __stub macros and hopefully few prototypes,
18334     which can conflict with char $ac_func (); below.
18335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18336     <limits.h> exists even on freestanding compilers.  */
18337
18338 #ifdef __STDC__
18339 # include <limits.h>
18340 #else
18341 # include <assert.h>
18342 #endif
18343
18344 #undef $ac_func
18345
18346 /* Override any GCC internal prototype to avoid an error.
18347    Use char because int might match the return type of a GCC
18348    builtin and then its argument prototype would still apply.  */
18349 #ifdef __cplusplus
18350 extern "C"
18351 #endif
18352 char $ac_func ();
18353 /* The GNU C library defines this for functions which it implements
18354     to always fail with ENOSYS.  Some functions are actually named
18355     something starting with __ and the normal name is an alias.  */
18356 #if defined __stub_$ac_func || defined __stub___$ac_func
18357 choke me
18358 #endif
18359
18360 int
18361 main ()
18362 {
18363 return $ac_func ();
18364   ;
18365   return 0;
18366 }
18367 _ACEOF
18368 rm -f conftest.$ac_objext conftest$ac_exeext
18369 if { (ac_try="$ac_link"
18370 case "(($ac_try" in
18371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372   *) ac_try_echo=$ac_try;;
18373 esac
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375   (eval "$ac_link") 2>conftest.er1
18376   ac_status=$?
18377   grep -v '^ *+' conftest.er1 >conftest.err
18378   rm -f conftest.er1
18379   cat conftest.err >&5
18380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381   (exit $ac_status); } &&
18382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18383   { (case "(($ac_try" in
18384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18385   *) ac_try_echo=$ac_try;;
18386 esac
18387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18388   (eval "$ac_try") 2>&5
18389   ac_status=$?
18390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391   (exit $ac_status); }; } &&
18392          { ac_try='test -s conftest$ac_exeext'
18393   { (case "(($ac_try" in
18394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395   *) ac_try_echo=$ac_try;;
18396 esac
18397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398   (eval "$ac_try") 2>&5
18399   ac_status=$?
18400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401   (exit $ac_status); }; }; then
18402   eval "$as_ac_var=yes"
18403 else
18404   echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.$ac_ext >&5
18406
18407         eval "$as_ac_var=no"
18408 fi
18409
18410 rm -f core conftest.err conftest.$ac_objext \
18411       conftest$ac_exeext conftest.$ac_ext
18412 fi
18413 ac_res=`eval echo '${'$as_ac_var'}'`
18414                { echo "$as_me:$LINENO: result: $ac_res" >&5
18415 echo "${ECHO_T}$ac_res" >&6; }
18416 if test `eval echo '${'$as_ac_var'}'` = yes; then
18417   cat >>confdefs.h <<_ACEOF
18418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18419 _ACEOF
18420
18421 fi
18422 done
18423
18424
18425
18426
18427
18428 for ac_func in strerror strerror_r strerror_s setenv
18429 do
18430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18431 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18434   echo $ECHO_N "(cached) $ECHO_C" >&6
18435 else
18436   cat >conftest.$ac_ext <<_ACEOF
18437 /* confdefs.h.  */
18438 _ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h.  */
18442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18444 #define $ac_func innocuous_$ac_func
18445
18446 /* System header to define __stub macros and hopefully few prototypes,
18447     which can conflict with char $ac_func (); below.
18448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18449     <limits.h> exists even on freestanding compilers.  */
18450
18451 #ifdef __STDC__
18452 # include <limits.h>
18453 #else
18454 # include <assert.h>
18455 #endif
18456
18457 #undef $ac_func
18458
18459 /* Override any GCC internal prototype to avoid an error.
18460    Use char because int might match the return type of a GCC
18461    builtin and then its argument prototype would still apply.  */
18462 #ifdef __cplusplus
18463 extern "C"
18464 #endif
18465 char $ac_func ();
18466 /* The GNU C library defines this for functions which it implements
18467     to always fail with ENOSYS.  Some functions are actually named
18468     something starting with __ and the normal name is an alias.  */
18469 #if defined __stub_$ac_func || defined __stub___$ac_func
18470 choke me
18471 #endif
18472
18473 int
18474 main ()
18475 {
18476 return $ac_func ();
18477   ;
18478   return 0;
18479 }
18480 _ACEOF
18481 rm -f conftest.$ac_objext conftest$ac_exeext
18482 if { (ac_try="$ac_link"
18483 case "(($ac_try" in
18484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18485   *) ac_try_echo=$ac_try;;
18486 esac
18487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18488   (eval "$ac_link") 2>conftest.er1
18489   ac_status=$?
18490   grep -v '^ *+' conftest.er1 >conftest.err
18491   rm -f conftest.er1
18492   cat conftest.err >&5
18493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494   (exit $ac_status); } &&
18495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18496   { (case "(($ac_try" in
18497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498   *) ac_try_echo=$ac_try;;
18499 esac
18500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501   (eval "$ac_try") 2>&5
18502   ac_status=$?
18503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504   (exit $ac_status); }; } &&
18505          { ac_try='test -s conftest$ac_exeext'
18506   { (case "(($ac_try" in
18507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18508   *) ac_try_echo=$ac_try;;
18509 esac
18510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18511   (eval "$ac_try") 2>&5
18512   ac_status=$?
18513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514   (exit $ac_status); }; }; then
18515   eval "$as_ac_var=yes"
18516 else
18517   echo "$as_me: failed program was:" >&5
18518 sed 's/^/| /' conftest.$ac_ext >&5
18519
18520         eval "$as_ac_var=no"
18521 fi
18522
18523 rm -f core conftest.err conftest.$ac_objext \
18524       conftest$ac_exeext conftest.$ac_ext
18525 fi
18526 ac_res=`eval echo '${'$as_ac_var'}'`
18527                { echo "$as_me:$LINENO: result: $ac_res" >&5
18528 echo "${ECHO_T}$ac_res" >&6; }
18529 if test `eval echo '${'$as_ac_var'}'` = yes; then
18530   cat >>confdefs.h <<_ACEOF
18531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18532 _ACEOF
18533
18534 fi
18535 done
18536
18537
18538
18539
18540
18541 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18542 do
18543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18544 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18546 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18547   echo $ECHO_N "(cached) $ECHO_C" >&6
18548 else
18549   cat >conftest.$ac_ext <<_ACEOF
18550 /* confdefs.h.  */
18551 _ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h.  */
18555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18557 #define $ac_func innocuous_$ac_func
18558
18559 /* System header to define __stub macros and hopefully few prototypes,
18560     which can conflict with char $ac_func (); below.
18561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18562     <limits.h> exists even on freestanding compilers.  */
18563
18564 #ifdef __STDC__
18565 # include <limits.h>
18566 #else
18567 # include <assert.h>
18568 #endif
18569
18570 #undef $ac_func
18571
18572 /* Override any GCC internal prototype to avoid an error.
18573    Use char because int might match the return type of a GCC
18574    builtin and then its argument prototype would still apply.  */
18575 #ifdef __cplusplus
18576 extern "C"
18577 #endif
18578 char $ac_func ();
18579 /* The GNU C library defines this for functions which it implements
18580     to always fail with ENOSYS.  Some functions are actually named
18581     something starting with __ and the normal name is an alias.  */
18582 #if defined __stub_$ac_func || defined __stub___$ac_func
18583 choke me
18584 #endif
18585
18586 int
18587 main ()
18588 {
18589 return $ac_func ();
18590   ;
18591   return 0;
18592 }
18593 _ACEOF
18594 rm -f conftest.$ac_objext conftest$ac_exeext
18595 if { (ac_try="$ac_link"
18596 case "(($ac_try" in
18597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598   *) ac_try_echo=$ac_try;;
18599 esac
18600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601   (eval "$ac_link") 2>conftest.er1
18602   ac_status=$?
18603   grep -v '^ *+' conftest.er1 >conftest.err
18604   rm -f conftest.er1
18605   cat conftest.err >&5
18606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607   (exit $ac_status); } &&
18608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18609   { (case "(($ac_try" in
18610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611   *) ac_try_echo=$ac_try;;
18612 esac
18613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614   (eval "$ac_try") 2>&5
18615   ac_status=$?
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); }; } &&
18618          { ac_try='test -s conftest$ac_exeext'
18619   { (case "(($ac_try" in
18620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621   *) ac_try_echo=$ac_try;;
18622 esac
18623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18624   (eval "$ac_try") 2>&5
18625   ac_status=$?
18626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627   (exit $ac_status); }; }; then
18628   eval "$as_ac_var=yes"
18629 else
18630   echo "$as_me: failed program was:" >&5
18631 sed 's/^/| /' conftest.$ac_ext >&5
18632
18633         eval "$as_ac_var=no"
18634 fi
18635
18636 rm -f core conftest.err conftest.$ac_objext \
18637       conftest$ac_exeext conftest.$ac_ext
18638 fi
18639 ac_res=`eval echo '${'$as_ac_var'}'`
18640                { echo "$as_me:$LINENO: result: $ac_res" >&5
18641 echo "${ECHO_T}$ac_res" >&6; }
18642 if test `eval echo '${'$as_ac_var'}'` = yes; then
18643   cat >>confdefs.h <<_ACEOF
18644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18645 _ACEOF
18646
18647 fi
18648 done
18649
18650
18651
18652
18653
18654 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18655 do
18656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18660   echo $ECHO_N "(cached) $ECHO_C" >&6
18661 else
18662   cat >conftest.$ac_ext <<_ACEOF
18663 /* confdefs.h.  */
18664 _ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h.  */
18668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18670 #define $ac_func innocuous_$ac_func
18671
18672 /* System header to define __stub macros and hopefully few prototypes,
18673     which can conflict with char $ac_func (); below.
18674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18675     <limits.h> exists even on freestanding compilers.  */
18676
18677 #ifdef __STDC__
18678 # include <limits.h>
18679 #else
18680 # include <assert.h>
18681 #endif
18682
18683 #undef $ac_func
18684
18685 /* Override any GCC internal prototype to avoid an error.
18686    Use char because int might match the return type of a GCC
18687    builtin and then its argument prototype would still apply.  */
18688 #ifdef __cplusplus
18689 extern "C"
18690 #endif
18691 char $ac_func ();
18692 /* The GNU C library defines this for functions which it implements
18693     to always fail with ENOSYS.  Some functions are actually named
18694     something starting with __ and the normal name is an alias.  */
18695 #if defined __stub_$ac_func || defined __stub___$ac_func
18696 choke me
18697 #endif
18698
18699 int
18700 main ()
18701 {
18702 return $ac_func ();
18703   ;
18704   return 0;
18705 }
18706 _ACEOF
18707 rm -f conftest.$ac_objext conftest$ac_exeext
18708 if { (ac_try="$ac_link"
18709 case "(($ac_try" in
18710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18711   *) ac_try_echo=$ac_try;;
18712 esac
18713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18714   (eval "$ac_link") 2>conftest.er1
18715   ac_status=$?
18716   grep -v '^ *+' conftest.er1 >conftest.err
18717   rm -f conftest.er1
18718   cat conftest.err >&5
18719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720   (exit $ac_status); } &&
18721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18722   { (case "(($ac_try" in
18723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18724   *) ac_try_echo=$ac_try;;
18725 esac
18726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18727   (eval "$ac_try") 2>&5
18728   ac_status=$?
18729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730   (exit $ac_status); }; } &&
18731          { ac_try='test -s conftest$ac_exeext'
18732   { (case "(($ac_try" in
18733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734   *) ac_try_echo=$ac_try;;
18735 esac
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737   (eval "$ac_try") 2>&5
18738   ac_status=$?
18739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740   (exit $ac_status); }; }; then
18741   eval "$as_ac_var=yes"
18742 else
18743   echo "$as_me: failed program was:" >&5
18744 sed 's/^/| /' conftest.$ac_ext >&5
18745
18746         eval "$as_ac_var=no"
18747 fi
18748
18749 rm -f core conftest.err conftest.$ac_objext \
18750       conftest$ac_exeext conftest.$ac_ext
18751 fi
18752 ac_res=`eval echo '${'$as_ac_var'}'`
18753                { echo "$as_me:$LINENO: result: $ac_res" >&5
18754 echo "${ECHO_T}$ac_res" >&6; }
18755 if test `eval echo '${'$as_ac_var'}'` = yes; then
18756   cat >>confdefs.h <<_ACEOF
18757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18758 _ACEOF
18759
18760 fi
18761 done
18762
18763 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18764 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18765 if test "${llvm_cv_c_printf_a+set}" = set; then
18766   echo $ECHO_N "(cached) $ECHO_C" >&6
18767 else
18768   ac_ext=c
18769 ac_cpp='$CPP $CPPFLAGS'
18770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18773
18774  if test "$cross_compiling" = yes; then
18775   llvmac_cv_c_printf_a=no
18776 else
18777   cat >conftest.$ac_ext <<_ACEOF
18778
18779   /* confdefs.h.  */
18780 _ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h.  */
18784
18785 #include <stdio.h>
18786 #include <stdlib.h>
18787
18788 int
18789 main ()
18790 {
18791
18792 volatile double A, B;
18793 char Buffer[100];
18794 A = 1;
18795 A /= 10.0;
18796 sprintf(Buffer, "%a", A);
18797 B = atof(Buffer);
18798 if (A != B)
18799   return (1);
18800 if (A != 0x1.999999999999ap-4)
18801   return (1);
18802 return (0);
18803   ;
18804   return 0;
18805 }
18806 _ACEOF
18807 rm -f conftest$ac_exeext
18808 if { (ac_try="$ac_link"
18809 case "(($ac_try" in
18810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811   *) ac_try_echo=$ac_try;;
18812 esac
18813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814   (eval "$ac_link") 2>&5
18815   ac_status=$?
18816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18818   { (case "(($ac_try" in
18819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820   *) ac_try_echo=$ac_try;;
18821 esac
18822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18823   (eval "$ac_try") 2>&5
18824   ac_status=$?
18825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826   (exit $ac_status); }; }; then
18827   llvm_cv_c_printf_a=yes
18828 else
18829   echo "$as_me: program exited with status $ac_status" >&5
18830 echo "$as_me: failed program was:" >&5
18831 sed 's/^/| /' conftest.$ac_ext >&5
18832
18833 ( exit $ac_status )
18834 llvmac_cv_c_printf_a=no
18835 fi
18836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18837 fi
18838
18839
18840  ac_ext=c
18841 ac_cpp='$CPP $CPPFLAGS'
18842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18845
18846 fi
18847 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18848 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18849  if test "$llvm_cv_c_printf_a" = "yes"; then
18850
18851 cat >>confdefs.h <<\_ACEOF
18852 #define HAVE_PRINTF_A 1
18853 _ACEOF
18854
18855  fi
18856
18857
18858 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18859 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18860 if test "${ac_cv_func_rand48+set}" = set; then
18861   echo $ECHO_N "(cached) $ECHO_C" >&6
18862 else
18863   ac_ext=cpp
18864 ac_cpp='$CXXCPP $CPPFLAGS'
18865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18868
18869    cat >conftest.$ac_ext <<_ACEOF
18870 /* confdefs.h.  */
18871 _ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h.  */
18875 #include <stdlib.h>
18876 int
18877 main ()
18878 {
18879 srand48(0);lrand48();drand48();
18880   ;
18881   return 0;
18882 }
18883 _ACEOF
18884 rm -f conftest.$ac_objext
18885 if { (ac_try="$ac_compile"
18886 case "(($ac_try" in
18887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888   *) ac_try_echo=$ac_try;;
18889 esac
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891   (eval "$ac_compile") 2>conftest.er1
18892   ac_status=$?
18893   grep -v '^ *+' conftest.er1 >conftest.err
18894   rm -f conftest.er1
18895   cat conftest.err >&5
18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897   (exit $ac_status); } &&
18898          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18899   { (case "(($ac_try" in
18900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18901   *) ac_try_echo=$ac_try;;
18902 esac
18903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18904   (eval "$ac_try") 2>&5
18905   ac_status=$?
18906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907   (exit $ac_status); }; } &&
18908          { ac_try='test -s conftest.$ac_objext'
18909   { (case "(($ac_try" in
18910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18911   *) ac_try_echo=$ac_try;;
18912 esac
18913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18914   (eval "$ac_try") 2>&5
18915   ac_status=$?
18916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917   (exit $ac_status); }; }; then
18918   ac_cv_func_rand48=yes
18919 else
18920   echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.$ac_ext >&5
18922
18923         ac_cv_func_rand48=no
18924 fi
18925
18926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18927   ac_ext=c
18928 ac_cpp='$CPP $CPPFLAGS'
18929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18932
18933 fi
18934 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18935 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18936
18937 if test "$ac_cv_func_rand48" = "yes" ; then
18938
18939 cat >>confdefs.h <<\_ACEOF
18940 #define HAVE_RAND48 1
18941 _ACEOF
18942
18943 fi
18944
18945
18946
18947 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18948 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18949 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18950   echo $ECHO_N "(cached) $ECHO_C" >&6
18951 else
18952   ac_ext=cpp
18953 ac_cpp='$CXXCPP $CPPFLAGS'
18954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18957
18958    cat >conftest.$ac_ext <<_ACEOF
18959 /* confdefs.h.  */
18960 _ACEOF
18961 cat confdefs.h >>conftest.$ac_ext
18962 cat >>conftest.$ac_ext <<_ACEOF
18963 /* end confdefs.h.  */
18964 #include <math.h>
18965 int
18966 main ()
18967 {
18968 float f; isnan(f);
18969   ;
18970   return 0;
18971 }
18972 _ACEOF
18973 rm -f conftest.$ac_objext
18974 if { (ac_try="$ac_compile"
18975 case "(($ac_try" in
18976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977   *) ac_try_echo=$ac_try;;
18978 esac
18979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980   (eval "$ac_compile") 2>conftest.er1
18981   ac_status=$?
18982   grep -v '^ *+' conftest.er1 >conftest.err
18983   rm -f conftest.er1
18984   cat conftest.err >&5
18985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986   (exit $ac_status); } &&
18987          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18988   { (case "(($ac_try" in
18989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990   *) ac_try_echo=$ac_try;;
18991 esac
18992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993   (eval "$ac_try") 2>&5
18994   ac_status=$?
18995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996   (exit $ac_status); }; } &&
18997          { ac_try='test -s conftest.$ac_objext'
18998   { (case "(($ac_try" in
18999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000   *) ac_try_echo=$ac_try;;
19001 esac
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003   (eval "$ac_try") 2>&5
19004   ac_status=$?
19005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006   (exit $ac_status); }; }; then
19007   ac_cv_func_isnan_in_math_h=yes
19008 else
19009   echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19011
19012         ac_cv_func_isnan_in_math_h=no
19013 fi
19014
19015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19016   ac_ext=c
19017 ac_cpp='$CPP $CPPFLAGS'
19018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19021
19022 fi
19023 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19024 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19025
19026
19027 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19028
19029 cat >>confdefs.h <<\_ACEOF
19030 #define HAVE_ISNAN_IN_MATH_H 1
19031 _ACEOF
19032
19033 fi
19034
19035 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19036 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19037 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19038   echo $ECHO_N "(cached) $ECHO_C" >&6
19039 else
19040   ac_ext=cpp
19041 ac_cpp='$CXXCPP $CPPFLAGS'
19042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19045
19046    cat >conftest.$ac_ext <<_ACEOF
19047 /* confdefs.h.  */
19048 _ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h.  */
19052 #include <cmath>
19053 int
19054 main ()
19055 {
19056 float f; isnan(f);
19057   ;
19058   return 0;
19059 }
19060 _ACEOF
19061 rm -f conftest.$ac_objext
19062 if { (ac_try="$ac_compile"
19063 case "(($ac_try" in
19064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065   *) ac_try_echo=$ac_try;;
19066 esac
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068   (eval "$ac_compile") 2>conftest.er1
19069   ac_status=$?
19070   grep -v '^ *+' conftest.er1 >conftest.err
19071   rm -f conftest.er1
19072   cat conftest.err >&5
19073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074   (exit $ac_status); } &&
19075          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19076   { (case "(($ac_try" in
19077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19078   *) ac_try_echo=$ac_try;;
19079 esac
19080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19081   (eval "$ac_try") 2>&5
19082   ac_status=$?
19083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084   (exit $ac_status); }; } &&
19085          { ac_try='test -s conftest.$ac_objext'
19086   { (case "(($ac_try" in
19087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088   *) ac_try_echo=$ac_try;;
19089 esac
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091   (eval "$ac_try") 2>&5
19092   ac_status=$?
19093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094   (exit $ac_status); }; }; then
19095   ac_cv_func_isnan_in_cmath=yes
19096 else
19097   echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19099
19100         ac_cv_func_isnan_in_cmath=no
19101 fi
19102
19103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19104   ac_ext=c
19105 ac_cpp='$CPP $CPPFLAGS'
19106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19109
19110 fi
19111 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19112 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19113
19114 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19115
19116 cat >>confdefs.h <<\_ACEOF
19117 #define HAVE_ISNAN_IN_CMATH 1
19118 _ACEOF
19119
19120 fi
19121
19122 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19123 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19124 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19125   echo $ECHO_N "(cached) $ECHO_C" >&6
19126 else
19127   ac_ext=cpp
19128 ac_cpp='$CXXCPP $CPPFLAGS'
19129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19132
19133    cat >conftest.$ac_ext <<_ACEOF
19134 /* confdefs.h.  */
19135 _ACEOF
19136 cat confdefs.h >>conftest.$ac_ext
19137 cat >>conftest.$ac_ext <<_ACEOF
19138 /* end confdefs.h.  */
19139 #include <cmath>
19140 int
19141 main ()
19142 {
19143 float f; std::isnan(f);
19144   ;
19145   return 0;
19146 }
19147 _ACEOF
19148 rm -f conftest.$ac_objext
19149 if { (ac_try="$ac_compile"
19150 case "(($ac_try" in
19151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19152   *) ac_try_echo=$ac_try;;
19153 esac
19154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19155   (eval "$ac_compile") 2>conftest.er1
19156   ac_status=$?
19157   grep -v '^ *+' conftest.er1 >conftest.err
19158   rm -f conftest.er1
19159   cat conftest.err >&5
19160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161   (exit $ac_status); } &&
19162          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19163   { (case "(($ac_try" in
19164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165   *) ac_try_echo=$ac_try;;
19166 esac
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168   (eval "$ac_try") 2>&5
19169   ac_status=$?
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); }; } &&
19172          { ac_try='test -s conftest.$ac_objext'
19173   { (case "(($ac_try" in
19174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175   *) ac_try_echo=$ac_try;;
19176 esac
19177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19178   (eval "$ac_try") 2>&5
19179   ac_status=$?
19180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181   (exit $ac_status); }; }; then
19182   ac_cv_func_std_isnan_in_cmath=yes
19183 else
19184   echo "$as_me: failed program was:" >&5
19185 sed 's/^/| /' conftest.$ac_ext >&5
19186
19187         ac_cv_func_std_isnan_in_cmath=no
19188 fi
19189
19190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19191   ac_ext=c
19192 ac_cpp='$CPP $CPPFLAGS'
19193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19196
19197 fi
19198 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19199 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19200
19201 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19202
19203 cat >>confdefs.h <<\_ACEOF
19204 #define HAVE_STD_ISNAN_IN_CMATH 1
19205 _ACEOF
19206
19207 fi
19208
19209
19210 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19211 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19212 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19213   echo $ECHO_N "(cached) $ECHO_C" >&6
19214 else
19215   ac_ext=cpp
19216 ac_cpp='$CXXCPP $CPPFLAGS'
19217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19220
19221    cat >conftest.$ac_ext <<_ACEOF
19222 /* confdefs.h.  */
19223 _ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h.  */
19227 #include <math.h>
19228 int
19229 main ()
19230 {
19231 float f; isinf(f);
19232   ;
19233   return 0;
19234 }
19235 _ACEOF
19236 rm -f conftest.$ac_objext
19237 if { (ac_try="$ac_compile"
19238 case "(($ac_try" in
19239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240   *) ac_try_echo=$ac_try;;
19241 esac
19242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243   (eval "$ac_compile") 2>conftest.er1
19244   ac_status=$?
19245   grep -v '^ *+' conftest.er1 >conftest.err
19246   rm -f conftest.er1
19247   cat conftest.err >&5
19248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249   (exit $ac_status); } &&
19250          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19251   { (case "(($ac_try" in
19252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253   *) ac_try_echo=$ac_try;;
19254 esac
19255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256   (eval "$ac_try") 2>&5
19257   ac_status=$?
19258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259   (exit $ac_status); }; } &&
19260          { ac_try='test -s conftest.$ac_objext'
19261   { (case "(($ac_try" in
19262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263   *) ac_try_echo=$ac_try;;
19264 esac
19265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266   (eval "$ac_try") 2>&5
19267   ac_status=$?
19268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269   (exit $ac_status); }; }; then
19270   ac_cv_func_isinf_in_math_h=yes
19271 else
19272   echo "$as_me: failed program was:" >&5
19273 sed 's/^/| /' conftest.$ac_ext >&5
19274
19275         ac_cv_func_isinf_in_math_h=no
19276 fi
19277
19278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19279   ac_ext=c
19280 ac_cpp='$CPP $CPPFLAGS'
19281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19284
19285 fi
19286 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19287 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19288
19289 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19290
19291 cat >>confdefs.h <<\_ACEOF
19292 #define HAVE_ISINF_IN_MATH_H 1
19293 _ACEOF
19294
19295 fi
19296
19297 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19298 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19299 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19300   echo $ECHO_N "(cached) $ECHO_C" >&6
19301 else
19302   ac_ext=cpp
19303 ac_cpp='$CXXCPP $CPPFLAGS'
19304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19307
19308    cat >conftest.$ac_ext <<_ACEOF
19309 /* confdefs.h.  */
19310 _ACEOF
19311 cat confdefs.h >>conftest.$ac_ext
19312 cat >>conftest.$ac_ext <<_ACEOF
19313 /* end confdefs.h.  */
19314 #include <cmath>
19315 int
19316 main ()
19317 {
19318 float f; isinf(f);
19319   ;
19320   return 0;
19321 }
19322 _ACEOF
19323 rm -f conftest.$ac_objext
19324 if { (ac_try="$ac_compile"
19325 case "(($ac_try" in
19326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327   *) ac_try_echo=$ac_try;;
19328 esac
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330   (eval "$ac_compile") 2>conftest.er1
19331   ac_status=$?
19332   grep -v '^ *+' conftest.er1 >conftest.err
19333   rm -f conftest.er1
19334   cat conftest.err >&5
19335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336   (exit $ac_status); } &&
19337          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19338   { (case "(($ac_try" in
19339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340   *) ac_try_echo=$ac_try;;
19341 esac
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343   (eval "$ac_try") 2>&5
19344   ac_status=$?
19345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346   (exit $ac_status); }; } &&
19347          { ac_try='test -s conftest.$ac_objext'
19348   { (case "(($ac_try" in
19349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19350   *) ac_try_echo=$ac_try;;
19351 esac
19352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19353   (eval "$ac_try") 2>&5
19354   ac_status=$?
19355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356   (exit $ac_status); }; }; then
19357   ac_cv_func_isinf_in_cmath=yes
19358 else
19359   echo "$as_me: failed program was:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19361
19362         ac_cv_func_isinf_in_cmath=no
19363 fi
19364
19365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19366   ac_ext=c
19367 ac_cpp='$CPP $CPPFLAGS'
19368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19371
19372 fi
19373 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19374 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19375
19376 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19377
19378 cat >>confdefs.h <<\_ACEOF
19379 #define HAVE_ISINF_IN_CMATH 1
19380 _ACEOF
19381
19382 fi
19383
19384 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19385 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19386 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19387   echo $ECHO_N "(cached) $ECHO_C" >&6
19388 else
19389   ac_ext=cpp
19390 ac_cpp='$CXXCPP $CPPFLAGS'
19391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19394
19395    cat >conftest.$ac_ext <<_ACEOF
19396 /* confdefs.h.  */
19397 _ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h.  */
19401 #include <cmath>
19402 int
19403 main ()
19404 {
19405 float f; std::isinf(f)}
19406   ;
19407   return 0;
19408 }
19409 _ACEOF
19410 rm -f conftest.$ac_objext
19411 if { (ac_try="$ac_compile"
19412 case "(($ac_try" in
19413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19414   *) ac_try_echo=$ac_try;;
19415 esac
19416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19417   (eval "$ac_compile") 2>conftest.er1
19418   ac_status=$?
19419   grep -v '^ *+' conftest.er1 >conftest.err
19420   rm -f conftest.er1
19421   cat conftest.err >&5
19422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423   (exit $ac_status); } &&
19424          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19425   { (case "(($ac_try" in
19426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427   *) ac_try_echo=$ac_try;;
19428 esac
19429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430   (eval "$ac_try") 2>&5
19431   ac_status=$?
19432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433   (exit $ac_status); }; } &&
19434          { ac_try='test -s conftest.$ac_objext'
19435   { (case "(($ac_try" in
19436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19437   *) ac_try_echo=$ac_try;;
19438 esac
19439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19440   (eval "$ac_try") 2>&5
19441   ac_status=$?
19442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443   (exit $ac_status); }; }; then
19444   ac_cv_func_std_isinf_in_cmath=yes
19445 else
19446   echo "$as_me: failed program was:" >&5
19447 sed 's/^/| /' conftest.$ac_ext >&5
19448
19449         ac_cv_func_std_isinf_in_cmath=no
19450 fi
19451
19452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19453   ac_ext=c
19454 ac_cpp='$CPP $CPPFLAGS'
19455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19458
19459 fi
19460 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19461 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19462
19463 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19464
19465 cat >>confdefs.h <<\_ACEOF
19466 #define HAVE_STD_ISINF_IN_CMATH 1
19467 _ACEOF
19468
19469 fi
19470
19471 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19472 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19473 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19474   echo $ECHO_N "(cached) $ECHO_C" >&6
19475 else
19476   ac_ext=cpp
19477 ac_cpp='$CXXCPP $CPPFLAGS'
19478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19481
19482    cat >conftest.$ac_ext <<_ACEOF
19483 /* confdefs.h.  */
19484 _ACEOF
19485 cat confdefs.h >>conftest.$ac_ext
19486 cat >>conftest.$ac_ext <<_ACEOF
19487 /* end confdefs.h.  */
19488 #include <ieeefp.h>
19489 int
19490 main ()
19491 {
19492 float f; finite(f);
19493   ;
19494   return 0;
19495 }
19496 _ACEOF
19497 rm -f conftest.$ac_objext
19498 if { (ac_try="$ac_compile"
19499 case "(($ac_try" in
19500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501   *) ac_try_echo=$ac_try;;
19502 esac
19503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19504   (eval "$ac_compile") 2>conftest.er1
19505   ac_status=$?
19506   grep -v '^ *+' conftest.er1 >conftest.err
19507   rm -f conftest.er1
19508   cat conftest.err >&5
19509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510   (exit $ac_status); } &&
19511          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19512   { (case "(($ac_try" in
19513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514   *) ac_try_echo=$ac_try;;
19515 esac
19516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517   (eval "$ac_try") 2>&5
19518   ac_status=$?
19519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520   (exit $ac_status); }; } &&
19521          { ac_try='test -s conftest.$ac_objext'
19522   { (case "(($ac_try" in
19523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524   *) ac_try_echo=$ac_try;;
19525 esac
19526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527   (eval "$ac_try") 2>&5
19528   ac_status=$?
19529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530   (exit $ac_status); }; }; then
19531   ac_cv_func_finite_in_ieeefp_h=yes
19532 else
19533   echo "$as_me: failed program was:" >&5
19534 sed 's/^/| /' conftest.$ac_ext >&5
19535
19536         ac_cv_func_finite_in_ieeefp_h=no
19537 fi
19538
19539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19540   ac_ext=c
19541 ac_cpp='$CPP $CPPFLAGS'
19542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19545
19546 fi
19547 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19548 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19549
19550 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19551
19552 cat >>confdefs.h <<\_ACEOF
19553 #define HAVE_FINITE_IN_IEEEFP_H 1
19554 _ACEOF
19555
19556 fi
19557
19558
19559
19560 if test "$llvm_cv_platform_type" = "Unix" ; then
19561
19562
19563 for ac_header in stdlib.h unistd.h
19564 do
19565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19567   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19570   echo $ECHO_N "(cached) $ECHO_C" >&6
19571 fi
19572 ac_res=`eval echo '${'$as_ac_Header'}'`
19573                { echo "$as_me:$LINENO: result: $ac_res" >&5
19574 echo "${ECHO_T}$ac_res" >&6; }
19575 else
19576   # Is the header compilable?
19577 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19579 cat >conftest.$ac_ext <<_ACEOF
19580 /* confdefs.h.  */
19581 _ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h.  */
19585 $ac_includes_default
19586 #include <$ac_header>
19587 _ACEOF
19588 rm -f conftest.$ac_objext
19589 if { (ac_try="$ac_compile"
19590 case "(($ac_try" in
19591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592   *) ac_try_echo=$ac_try;;
19593 esac
19594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19595   (eval "$ac_compile") 2>conftest.er1
19596   ac_status=$?
19597   grep -v '^ *+' conftest.er1 >conftest.err
19598   rm -f conftest.er1
19599   cat conftest.err >&5
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); } &&
19602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19603   { (case "(($ac_try" in
19604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605   *) ac_try_echo=$ac_try;;
19606 esac
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608   (eval "$ac_try") 2>&5
19609   ac_status=$?
19610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611   (exit $ac_status); }; } &&
19612          { ac_try='test -s conftest.$ac_objext'
19613   { (case "(($ac_try" in
19614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19615   *) ac_try_echo=$ac_try;;
19616 esac
19617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19618   (eval "$ac_try") 2>&5
19619   ac_status=$?
19620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621   (exit $ac_status); }; }; then
19622   ac_header_compiler=yes
19623 else
19624   echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19626
19627         ac_header_compiler=no
19628 fi
19629
19630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19631 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19632 echo "${ECHO_T}$ac_header_compiler" >&6; }
19633
19634 # Is the header present?
19635 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19636 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19637 cat >conftest.$ac_ext <<_ACEOF
19638 /* confdefs.h.  */
19639 _ACEOF
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h.  */
19643 #include <$ac_header>
19644 _ACEOF
19645 if { (ac_try="$ac_cpp conftest.$ac_ext"
19646 case "(($ac_try" in
19647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648   *) ac_try_echo=$ac_try;;
19649 esac
19650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19651   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19652   ac_status=$?
19653   grep -v '^ *+' conftest.er1 >conftest.err
19654   rm -f conftest.er1
19655   cat conftest.err >&5
19656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657   (exit $ac_status); } >/dev/null; then
19658   if test -s conftest.err; then
19659     ac_cpp_err=$ac_c_preproc_warn_flag
19660     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19661   else
19662     ac_cpp_err=
19663   fi
19664 else
19665   ac_cpp_err=yes
19666 fi
19667 if test -z "$ac_cpp_err"; then
19668   ac_header_preproc=yes
19669 else
19670   echo "$as_me: failed program was:" >&5
19671 sed 's/^/| /' conftest.$ac_ext >&5
19672
19673   ac_header_preproc=no
19674 fi
19675
19676 rm -f conftest.err conftest.$ac_ext
19677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19678 echo "${ECHO_T}$ac_header_preproc" >&6; }
19679
19680 # So?  What about this header?
19681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19682   yes:no: )
19683     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19685     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19687     ac_header_preproc=yes
19688     ;;
19689   no:yes:* )
19690     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19692     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19693 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19694     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19696     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19697 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19698     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19700     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19702     ( cat <<\_ASBOX
19703 ## ----------------------------------- ##
19704 ## Report this to llvmbugs@cs.uiuc.edu ##
19705 ## ----------------------------------- ##
19706 _ASBOX
19707      ) | sed "s/^/$as_me: WARNING:     /" >&2
19708     ;;
19709 esac
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 else
19715   eval "$as_ac_Header=\$ac_header_preproc"
19716 fi
19717 ac_res=`eval echo '${'$as_ac_Header'}'`
19718                { echo "$as_me:$LINENO: result: $ac_res" >&5
19719 echo "${ECHO_T}$ac_res" >&6; }
19720
19721 fi
19722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19723   cat >>confdefs.h <<_ACEOF
19724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19725 _ACEOF
19726
19727 fi
19728
19729 done
19730
19731
19732 for ac_func in getpagesize
19733 do
19734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19738   echo $ECHO_N "(cached) $ECHO_C" >&6
19739 else
19740   cat >conftest.$ac_ext <<_ACEOF
19741 /* confdefs.h.  */
19742 _ACEOF
19743 cat confdefs.h >>conftest.$ac_ext
19744 cat >>conftest.$ac_ext <<_ACEOF
19745 /* end confdefs.h.  */
19746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19748 #define $ac_func innocuous_$ac_func
19749
19750 /* System header to define __stub macros and hopefully few prototypes,
19751     which can conflict with char $ac_func (); below.
19752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19753     <limits.h> exists even on freestanding compilers.  */
19754
19755 #ifdef __STDC__
19756 # include <limits.h>
19757 #else
19758 # include <assert.h>
19759 #endif
19760
19761 #undef $ac_func
19762
19763 /* Override any GCC internal prototype to avoid an error.
19764    Use char because int might match the return type of a GCC
19765    builtin and then its argument prototype would still apply.  */
19766 #ifdef __cplusplus
19767 extern "C"
19768 #endif
19769 char $ac_func ();
19770 /* The GNU C library defines this for functions which it implements
19771     to always fail with ENOSYS.  Some functions are actually named
19772     something starting with __ and the normal name is an alias.  */
19773 #if defined __stub_$ac_func || defined __stub___$ac_func
19774 choke me
19775 #endif
19776
19777 int
19778 main ()
19779 {
19780 return $ac_func ();
19781   ;
19782   return 0;
19783 }
19784 _ACEOF
19785 rm -f conftest.$ac_objext conftest$ac_exeext
19786 if { (ac_try="$ac_link"
19787 case "(($ac_try" in
19788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789   *) ac_try_echo=$ac_try;;
19790 esac
19791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792   (eval "$ac_link") 2>conftest.er1
19793   ac_status=$?
19794   grep -v '^ *+' conftest.er1 >conftest.err
19795   rm -f conftest.er1
19796   cat conftest.err >&5
19797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798   (exit $ac_status); } &&
19799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19800   { (case "(($ac_try" in
19801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802   *) ac_try_echo=$ac_try;;
19803 esac
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805   (eval "$ac_try") 2>&5
19806   ac_status=$?
19807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808   (exit $ac_status); }; } &&
19809          { ac_try='test -s conftest$ac_exeext'
19810   { (case "(($ac_try" in
19811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812   *) ac_try_echo=$ac_try;;
19813 esac
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815   (eval "$ac_try") 2>&5
19816   ac_status=$?
19817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818   (exit $ac_status); }; }; then
19819   eval "$as_ac_var=yes"
19820 else
19821   echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19823
19824         eval "$as_ac_var=no"
19825 fi
19826
19827 rm -f core conftest.err conftest.$ac_objext \
19828       conftest$ac_exeext conftest.$ac_ext
19829 fi
19830 ac_res=`eval echo '${'$as_ac_var'}'`
19831                { echo "$as_me:$LINENO: result: $ac_res" >&5
19832 echo "${ECHO_T}$ac_res" >&6; }
19833 if test `eval echo '${'$as_ac_var'}'` = yes; then
19834   cat >>confdefs.h <<_ACEOF
19835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19836 _ACEOF
19837
19838 fi
19839 done
19840
19841 { echo "$as_me:$LINENO: checking for working mmap" >&5
19842 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19843 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19844   echo $ECHO_N "(cached) $ECHO_C" >&6
19845 else
19846   if test "$cross_compiling" = yes; then
19847   ac_cv_func_mmap_fixed_mapped=no
19848 else
19849   cat >conftest.$ac_ext <<_ACEOF
19850 /* confdefs.h.  */
19851 _ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h.  */
19855 $ac_includes_default
19856 /* malloc might have been renamed as rpl_malloc. */
19857 #undef malloc
19858
19859 /* Thanks to Mike Haertel and Jim Avera for this test.
19860    Here is a matrix of mmap possibilities:
19861         mmap private not fixed
19862         mmap private fixed at somewhere currently unmapped
19863         mmap private fixed at somewhere already mapped
19864         mmap shared not fixed
19865         mmap shared fixed at somewhere currently unmapped
19866         mmap shared fixed at somewhere already mapped
19867    For private mappings, we should verify that changes cannot be read()
19868    back from the file, nor mmap's back from the file at a different
19869    address.  (There have been systems where private was not correctly
19870    implemented like the infamous i386 svr4.0, and systems where the
19871    VM page cache was not coherent with the file system buffer cache
19872    like early versions of FreeBSD and possibly contemporary NetBSD.)
19873    For shared mappings, we should conversely verify that changes get
19874    propagated back to all the places they're supposed to be.
19875
19876    Grep wants private fixed already mapped.
19877    The main things grep needs to know about mmap are:
19878    * does it exist and is it safe to write into the mmap'd area
19879    * how to use it (BSD variants)  */
19880
19881 #include <fcntl.h>
19882 #include <sys/mman.h>
19883
19884 #if !STDC_HEADERS && !HAVE_STDLIB_H
19885 char *malloc ();
19886 #endif
19887
19888 /* This mess was copied from the GNU getpagesize.h.  */
19889 #if !HAVE_GETPAGESIZE
19890 /* Assume that all systems that can run configure have sys/param.h.  */
19891 # if !HAVE_SYS_PARAM_H
19892 #  define HAVE_SYS_PARAM_H 1
19893 # endif
19894
19895 # ifdef _SC_PAGESIZE
19896 #  define getpagesize() sysconf(_SC_PAGESIZE)
19897 # else /* no _SC_PAGESIZE */
19898 #  if HAVE_SYS_PARAM_H
19899 #   include <sys/param.h>
19900 #   ifdef EXEC_PAGESIZE
19901 #    define getpagesize() EXEC_PAGESIZE
19902 #   else /* no EXEC_PAGESIZE */
19903 #    ifdef NBPG
19904 #     define getpagesize() NBPG * CLSIZE
19905 #     ifndef CLSIZE
19906 #      define CLSIZE 1
19907 #     endif /* no CLSIZE */
19908 #    else /* no NBPG */
19909 #     ifdef NBPC
19910 #      define getpagesize() NBPC
19911 #     else /* no NBPC */
19912 #      ifdef PAGESIZE
19913 #       define getpagesize() PAGESIZE
19914 #      endif /* PAGESIZE */
19915 #     endif /* no NBPC */
19916 #    endif /* no NBPG */
19917 #   endif /* no EXEC_PAGESIZE */
19918 #  else /* no HAVE_SYS_PARAM_H */
19919 #   define getpagesize() 8192   /* punt totally */
19920 #  endif /* no HAVE_SYS_PARAM_H */
19921 # endif /* no _SC_PAGESIZE */
19922
19923 #endif /* no HAVE_GETPAGESIZE */
19924
19925 int
19926 main ()
19927 {
19928   char *data, *data2, *data3;
19929   int i, pagesize;
19930   int fd;
19931
19932   pagesize = getpagesize ();
19933
19934   /* First, make a file with some known garbage in it. */
19935   data = (char *) malloc (pagesize);
19936   if (!data)
19937     return 1;
19938   for (i = 0; i < pagesize; ++i)
19939     *(data + i) = rand ();
19940   umask (0);
19941   fd = creat ("conftest.mmap", 0600);
19942   if (fd < 0)
19943     return 1;
19944   if (write (fd, data, pagesize) != pagesize)
19945     return 1;
19946   close (fd);
19947
19948   /* Next, try to mmap the file at a fixed address which already has
19949      something else allocated at it.  If we can, also make sure that
19950      we see the same garbage.  */
19951   fd = open ("conftest.mmap", O_RDWR);
19952   if (fd < 0)
19953     return 1;
19954   data2 = (char *) malloc (2 * pagesize);
19955   if (!data2)
19956     return 1;
19957   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19958   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19959                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19960     return 1;
19961   for (i = 0; i < pagesize; ++i)
19962     if (*(data + i) != *(data2 + i))
19963       return 1;
19964
19965   /* Finally, make sure that changes to the mapped area do not
19966      percolate back to the file as seen by read().  (This is a bug on
19967      some variants of i386 svr4.0.)  */
19968   for (i = 0; i < pagesize; ++i)
19969     *(data2 + i) = *(data2 + i) + 1;
19970   data3 = (char *) malloc (pagesize);
19971   if (!data3)
19972     return 1;
19973   if (read (fd, data3, pagesize) != pagesize)
19974     return 1;
19975   for (i = 0; i < pagesize; ++i)
19976     if (*(data + i) != *(data3 + i))
19977       return 1;
19978   close (fd);
19979   return 0;
19980 }
19981 _ACEOF
19982 rm -f conftest$ac_exeext
19983 if { (ac_try="$ac_link"
19984 case "(($ac_try" in
19985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986   *) ac_try_echo=$ac_try;;
19987 esac
19988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989   (eval "$ac_link") 2>&5
19990   ac_status=$?
19991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19993   { (case "(($ac_try" in
19994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995   *) ac_try_echo=$ac_try;;
19996 esac
19997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998   (eval "$ac_try") 2>&5
19999   ac_status=$?
20000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001   (exit $ac_status); }; }; then
20002   ac_cv_func_mmap_fixed_mapped=yes
20003 else
20004   echo "$as_me: program exited with status $ac_status" >&5
20005 echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20007
20008 ( exit $ac_status )
20009 ac_cv_func_mmap_fixed_mapped=no
20010 fi
20011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20012 fi
20013
20014
20015 fi
20016 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20017 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20018 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20019
20020 cat >>confdefs.h <<\_ACEOF
20021 #define HAVE_MMAP 1
20022 _ACEOF
20023
20024 fi
20025 rm -f conftest.mmap
20026
20027   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20028 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20029 if test "${ac_cv_func_mmap_file+set}" = set; then
20030   echo $ECHO_N "(cached) $ECHO_C" >&6
20031 else
20032    ac_ext=c
20033 ac_cpp='$CPP $CPPFLAGS'
20034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20037
20038   if test "$cross_compiling" = yes; then
20039   ac_cv_func_mmap_file=no
20040 else
20041   cat >conftest.$ac_ext <<_ACEOF
20042
20043     /* confdefs.h.  */
20044 _ACEOF
20045 cat confdefs.h >>conftest.$ac_ext
20046 cat >>conftest.$ac_ext <<_ACEOF
20047 /* end confdefs.h.  */
20048
20049 #include <sys/types.h>
20050 #include <sys/mman.h>
20051 #include <fcntl.h>
20052
20053 int
20054 main ()
20055 {
20056
20057   int fd;
20058   fd = creat ("foo",0777);
20059   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20060   unlink ("foo");
20061   return (fd != (int) MAP_FAILED);
20062   ;
20063   return 0;
20064 }
20065 _ACEOF
20066 rm -f conftest$ac_exeext
20067 if { (ac_try="$ac_link"
20068 case "(($ac_try" in
20069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070   *) ac_try_echo=$ac_try;;
20071 esac
20072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20073   (eval "$ac_link") 2>&5
20074   ac_status=$?
20075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20077   { (case "(($ac_try" in
20078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20079   *) ac_try_echo=$ac_try;;
20080 esac
20081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20082   (eval "$ac_try") 2>&5
20083   ac_status=$?
20084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085   (exit $ac_status); }; }; then
20086   ac_cv_func_mmap_file=yes
20087 else
20088   echo "$as_me: program exited with status $ac_status" >&5
20089 echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20091
20092 ( exit $ac_status )
20093 ac_cv_func_mmap_file=no
20094 fi
20095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20096 fi
20097
20098
20099   ac_ext=c
20100 ac_cpp='$CPP $CPPFLAGS'
20101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20104
20105
20106 fi
20107 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20108 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20109 if test "$ac_cv_func_mmap_file" = yes; then
20110
20111 cat >>confdefs.h <<\_ACEOF
20112 #define HAVE_MMAP_FILE
20113 _ACEOF
20114
20115    MMAP_FILE=yes
20116
20117 fi
20118
20119   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20120 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20121 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20122   echo $ECHO_N "(cached) $ECHO_C" >&6
20123 else
20124   if test "$llvm_cv_os_type" = "Interix" ; then
20125    ac_cv_need_dev_zero_for_mmap=yes
20126  else
20127    ac_cv_need_dev_zero_for_mmap=no
20128  fi
20129
20130 fi
20131 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20132 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20133 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20134
20135 cat >>confdefs.h <<\_ACEOF
20136 #define NEED_DEV_ZERO_FOR_MMAP 1
20137 _ACEOF
20138
20139 fi
20140
20141   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20142   then
20143     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20144 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20145   fi
20146   if test "$ac_cv_func_mmap_file" = "no"
20147   then
20148     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20149 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20150   fi
20151 fi
20152
20153 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20154 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20155 ac_ext=cpp
20156 ac_cpp='$CXXCPP $CPPFLAGS'
20157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20160
20161 cat >conftest.$ac_ext <<_ACEOF
20162 /* confdefs.h.  */
20163 _ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h.  */
20167 int main() {
20168         volatile unsigned long val = 1;
20169         __sync_synchronize();
20170         __sync_val_compare_and_swap(&val, 1, 0);
20171         __sync_add_and_fetch(&val, 1);
20172         __sync_sub_and_fetch(&val, 1);
20173         return 0;
20174       }
20175
20176 _ACEOF
20177 rm -f conftest.$ac_objext conftest$ac_exeext
20178 if { (ac_try="$ac_link"
20179 case "(($ac_try" in
20180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20181   *) ac_try_echo=$ac_try;;
20182 esac
20183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20184   (eval "$ac_link") 2>conftest.er1
20185   ac_status=$?
20186   grep -v '^ *+' conftest.er1 >conftest.err
20187   rm -f conftest.er1
20188   cat conftest.err >&5
20189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190   (exit $ac_status); } &&
20191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20192   { (case "(($ac_try" in
20193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194   *) ac_try_echo=$ac_try;;
20195 esac
20196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20197   (eval "$ac_try") 2>&5
20198   ac_status=$?
20199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200   (exit $ac_status); }; } &&
20201          { ac_try='test -s conftest$ac_exeext'
20202   { (case "(($ac_try" in
20203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20204   *) ac_try_echo=$ac_try;;
20205 esac
20206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20207   (eval "$ac_try") 2>&5
20208   ac_status=$?
20209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210   (exit $ac_status); }; }; then
20211   ac_ext=c
20212 ac_cpp='$CPP $CPPFLAGS'
20213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20216
20217   { echo "$as_me:$LINENO: result: yes" >&5
20218 echo "${ECHO_T}yes" >&6; }
20219
20220 cat >>confdefs.h <<\_ACEOF
20221 #define LLVM_MULTITHREADED 1
20222 _ACEOF
20223
20224 else
20225   echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20227
20228         { echo "$as_me:$LINENO: result: no" >&5
20229 echo "${ECHO_T}no" >&6; }
20230
20231 cat >>confdefs.h <<\_ACEOF
20232 #define LLVM_MULTITHREADED 0
20233 _ACEOF
20234
20235   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20236 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20237 fi
20238
20239 rm -f core conftest.err conftest.$ac_objext \
20240       conftest$ac_exeext conftest.$ac_ext
20241
20242 { echo "$as_me:$LINENO: checking for getsect()" >&5
20243 echo $ECHO_N "checking for getsect()... $ECHO_C" >&6; }
20244 cat >conftest.$ac_ext <<_ACEOF
20245 /* confdefs.h.  */
20246 _ACEOF
20247 cat confdefs.h >>conftest.$ac_ext
20248 cat >>conftest.$ac_ext <<_ACEOF
20249 /* end confdefs.h.  */
20250 #include <mach-o/getsect.h>
20251       int main() {
20252         unsigned long p;
20253         return (int)getsect("__DATA","__pass_info", &p);
20254       }
20255
20256 _ACEOF
20257 rm -f conftest.$ac_objext
20258 if { (ac_try="$ac_compile"
20259 case "(($ac_try" in
20260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20261   *) ac_try_echo=$ac_try;;
20262 esac
20263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20264   (eval "$ac_compile") 2>conftest.er1
20265   ac_status=$?
20266   grep -v '^ *+' conftest.er1 >conftest.err
20267   rm -f conftest.er1
20268   cat conftest.err >&5
20269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270   (exit $ac_status); } &&
20271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20272   { (case "(($ac_try" in
20273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20274   *) ac_try_echo=$ac_try;;
20275 esac
20276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20277   (eval "$ac_try") 2>&5
20278   ac_status=$?
20279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280   (exit $ac_status); }; } &&
20281          { ac_try='test -s conftest.$ac_objext'
20282   { (case "(($ac_try" in
20283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284   *) ac_try_echo=$ac_try;;
20285 esac
20286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20287   (eval "$ac_try") 2>&5
20288   ac_status=$?
20289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290   (exit $ac_status); }; }; then
20291   { echo "$as_me:$LINENO: result: yes" >&5
20292 echo "${ECHO_T}yes" >&6; }
20293
20294 cat >>confdefs.h <<\_ACEOF
20295 #define HAVE_GETSECT 1
20296 _ACEOF
20297
20298 else
20299   echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20301
20302         { echo "$as_me:$LINENO: result: no" >&5
20303 echo "${ECHO_T}no" >&6; }
20304
20305 cat >>confdefs.h <<\_ACEOF
20306 #define HAVE_GETSECT 1
20307 _ACEOF
20308
20309
20310 fi
20311
20312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20313
20314
20315
20316 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20317   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20318 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20319 if test "${llvm_cv_linux_mixed+set}" = set; then
20320   echo $ECHO_N "(cached) $ECHO_C" >&6
20321 else
20322    ac_ext=c
20323 ac_cpp='$CPP $CPPFLAGS'
20324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20327
20328   cat >conftest.$ac_ext <<_ACEOF
20329 /* confdefs.h.  */
20330 _ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h.  */
20334 #ifndef __x86_64__
20335        error: Not x86-64 even if uname says so!
20336       #endif
20337
20338 int
20339 main ()
20340 {
20341
20342   ;
20343   return 0;
20344 }
20345 _ACEOF
20346 rm -f conftest.$ac_objext
20347 if { (ac_try="$ac_compile"
20348 case "(($ac_try" in
20349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350   *) ac_try_echo=$ac_try;;
20351 esac
20352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353   (eval "$ac_compile") 2>conftest.er1
20354   ac_status=$?
20355   grep -v '^ *+' conftest.er1 >conftest.err
20356   rm -f conftest.er1
20357   cat conftest.err >&5
20358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359   (exit $ac_status); } &&
20360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20361   { (case "(($ac_try" in
20362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363   *) ac_try_echo=$ac_try;;
20364 esac
20365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366   (eval "$ac_try") 2>&5
20367   ac_status=$?
20368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369   (exit $ac_status); }; } &&
20370          { ac_try='test -s conftest.$ac_objext'
20371   { (case "(($ac_try" in
20372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373   *) ac_try_echo=$ac_try;;
20374 esac
20375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376   (eval "$ac_try") 2>&5
20377   ac_status=$?
20378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379   (exit $ac_status); }; }; then
20380   llvm_cv_linux_mixed=no
20381 else
20382   echo "$as_me: failed program was:" >&5
20383 sed 's/^/| /' conftest.$ac_ext >&5
20384
20385         llvm_cv_linux_mixed=yes
20386 fi
20387
20388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20389   ac_ext=c
20390 ac_cpp='$CPP $CPPFLAGS'
20391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20394
20395
20396 fi
20397 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20398 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20399
20400   if test "$llvm_cv_linux_mixed" = "yes"; then
20401     llvm_cv_target_arch="x86"
20402     ARCH="x86"
20403   fi
20404 fi
20405
20406
20407 for ac_func in __dso_handle
20408 do
20409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20410 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20413   echo $ECHO_N "(cached) $ECHO_C" >&6
20414 else
20415   cat >conftest.$ac_ext <<_ACEOF
20416 /* confdefs.h.  */
20417 _ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h.  */
20421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20423 #define $ac_func innocuous_$ac_func
20424
20425 /* System header to define __stub macros and hopefully few prototypes,
20426     which can conflict with char $ac_func (); below.
20427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20428     <limits.h> exists even on freestanding compilers.  */
20429
20430 #ifdef __STDC__
20431 # include <limits.h>
20432 #else
20433 # include <assert.h>
20434 #endif
20435
20436 #undef $ac_func
20437
20438 /* Override any GCC internal prototype to avoid an error.
20439    Use char because int might match the return type of a GCC
20440    builtin and then its argument prototype would still apply.  */
20441 #ifdef __cplusplus
20442 extern "C"
20443 #endif
20444 char $ac_func ();
20445 /* The GNU C library defines this for functions which it implements
20446     to always fail with ENOSYS.  Some functions are actually named
20447     something starting with __ and the normal name is an alias.  */
20448 #if defined __stub_$ac_func || defined __stub___$ac_func
20449 choke me
20450 #endif
20451
20452 int
20453 main ()
20454 {
20455 return $ac_func ();
20456   ;
20457   return 0;
20458 }
20459 _ACEOF
20460 rm -f conftest.$ac_objext conftest$ac_exeext
20461 if { (ac_try="$ac_link"
20462 case "(($ac_try" in
20463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464   *) ac_try_echo=$ac_try;;
20465 esac
20466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467   (eval "$ac_link") 2>conftest.er1
20468   ac_status=$?
20469   grep -v '^ *+' conftest.er1 >conftest.err
20470   rm -f conftest.er1
20471   cat conftest.err >&5
20472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473   (exit $ac_status); } &&
20474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20475   { (case "(($ac_try" in
20476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477   *) ac_try_echo=$ac_try;;
20478 esac
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480   (eval "$ac_try") 2>&5
20481   ac_status=$?
20482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483   (exit $ac_status); }; } &&
20484          { ac_try='test -s conftest$ac_exeext'
20485   { (case "(($ac_try" in
20486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20487   *) ac_try_echo=$ac_try;;
20488 esac
20489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20490   (eval "$ac_try") 2>&5
20491   ac_status=$?
20492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493   (exit $ac_status); }; }; then
20494   eval "$as_ac_var=yes"
20495 else
20496   echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20498
20499         eval "$as_ac_var=no"
20500 fi
20501
20502 rm -f core conftest.err conftest.$ac_objext \
20503       conftest$ac_exeext conftest.$ac_ext
20504 fi
20505 ac_res=`eval echo '${'$as_ac_var'}'`
20506                { echo "$as_me:$LINENO: result: $ac_res" >&5
20507 echo "${ECHO_T}$ac_res" >&6; }
20508 if test `eval echo '${'$as_ac_var'}'` = yes; then
20509   cat >>confdefs.h <<_ACEOF
20510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20511 _ACEOF
20512
20513 fi
20514 done
20515
20516
20517 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20518 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20519 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20520   echo $ECHO_N "(cached) $ECHO_C" >&6
20521 else
20522   llvm_cv_llvmgcc_sanity="no"
20523 if test -x "$LLVMGCC" ; then
20524   cp /dev/null conftest.c
20525   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20526       grep 'target datalayout =' > /dev/null 2>&1
20527   if test $? -eq 0 ; then
20528     llvm_cv_llvmgcc_sanity="yes"
20529   fi
20530   rm conftest.c
20531 fi
20532 fi
20533 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20534 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20535
20536 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20537   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20538 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20539   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20540   LLVMCC1=$llvmcc1path
20541
20542   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20543   LLVMCC1PLUS=$llvmcc1pluspath
20544
20545   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20546   LLVMGCCDIR=$llvmgccdir
20547
20548   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20549   LLVMGCC_LANGS=$llvmgcclangs
20550
20551   { echo "$as_me:$LINENO: result: ok" >&5
20552 echo "${ECHO_T}ok" >&6; }
20553 fi
20554
20555 SHLIBEXT=$libltdl_cv_shlibext
20556
20557
20558 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20559
20560
20561 # Translate the various configuration directories and other basic
20562 # information into substitutions that will end up in Makefile.config.in
20563 # that these configured values can be used by the makefiles
20564 if test "${prefix}" = "NONE" ; then
20565   prefix="/usr/local"
20566 fi
20567 eval LLVM_PREFIX="${prefix}";
20568 eval LLVM_BINDIR="${prefix}/bin";
20569 eval LLVM_LIBDIR="${prefix}/lib";
20570 eval LLVM_DATADIR="${prefix}/share/llvm";
20571 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20572 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20573 eval LLVM_INCLUDEDIR="${prefix}/include";
20574 eval LLVM_INFODIR="${prefix}/info";
20575 eval LLVM_MANDIR="${prefix}/man";
20576 LLVM_CONFIGTIME=`date`
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588 # Place the various directores into the config.h file as #defines so that we
20589 # can know about the installation paths within LLVM.
20590
20591 cat >>confdefs.h <<_ACEOF
20592 #define LLVM_PREFIX "$LLVM_PREFIX"
20593 _ACEOF
20594
20595
20596 cat >>confdefs.h <<_ACEOF
20597 #define LLVM_BINDIR "$LLVM_BINDIR"
20598 _ACEOF
20599
20600
20601 cat >>confdefs.h <<_ACEOF
20602 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20603 _ACEOF
20604
20605
20606 cat >>confdefs.h <<_ACEOF
20607 #define LLVM_DATADIR "$LLVM_DATADIR"
20608 _ACEOF
20609
20610
20611 cat >>confdefs.h <<_ACEOF
20612 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20613 _ACEOF
20614
20615
20616 cat >>confdefs.h <<_ACEOF
20617 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20618 _ACEOF
20619
20620
20621 cat >>confdefs.h <<_ACEOF
20622 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20623 _ACEOF
20624
20625
20626 cat >>confdefs.h <<_ACEOF
20627 #define LLVM_INFODIR "$LLVM_INFODIR"
20628 _ACEOF
20629
20630
20631 cat >>confdefs.h <<_ACEOF
20632 #define LLVM_MANDIR "$LLVM_MANDIR"
20633 _ACEOF
20634
20635
20636 cat >>confdefs.h <<_ACEOF
20637 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20638 _ACEOF
20639
20640
20641 cat >>confdefs.h <<_ACEOF
20642 #define LLVM_HOSTTRIPLE "$host"
20643 _ACEOF
20644
20645
20646 # Determine which bindings to build.
20647 if test "$BINDINGS_TO_BUILD" = auto ; then
20648   BINDINGS_TO_BUILD=""
20649   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20650     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20651   fi
20652 fi
20653 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20654
20655
20656 # This isn't really configurey, but it avoids having to repeat the list in
20657 # other files.
20658 ALL_BINDINGS=ocaml
20659
20660
20661 # Do any work necessary to ensure that bindings have what they need.
20662 binding_prereqs_failed=0
20663 for a_binding in $BINDINGS_TO_BUILD ; do
20664   case "$a_binding" in
20665   ocaml)
20666     if test "x$OCAMLC" = x ; then
20667       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20668 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20669       binding_prereqs_failed=1
20670     fi
20671     if test "x$OCAMLDEP" = x ; then
20672       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20673 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20674       binding_prereqs_failed=1
20675     fi
20676     if test "x$OCAMLOPT" = x ; then
20677       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20678 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20679           fi
20680     if test "x$with_ocaml_libdir" != xauto ; then
20681       OCAML_LIBDIR=$with_ocaml_libdir
20682
20683     else
20684       ocaml_stdlib="`"$OCAMLC" -where`"
20685       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20686       then
20687         # ocaml stdlib is beneath our prefix; use stdlib
20688         OCAML_LIBDIR=$ocaml_stdlib
20689
20690       else
20691         # ocaml stdlib is outside our prefix; use libdir/ocaml
20692         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20693
20694       fi
20695     fi
20696     ;;
20697   esac
20698 done
20699 if test "$binding_prereqs_failed" = 1 ; then
20700   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20701 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20702    { (exit 1); exit 1; }; }
20703 fi
20704
20705 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20706 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20707 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20708   echo $ECHO_N "(cached) $ECHO_C" >&6
20709 else
20710    ac_ext=cpp
20711 ac_cpp='$CXXCPP $CPPFLAGS'
20712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20715
20716   oldcxxflags="$CXXFLAGS"
20717   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20718   cat >conftest.$ac_ext <<_ACEOF
20719 /* confdefs.h.  */
20720 _ACEOF
20721 cat confdefs.h >>conftest.$ac_ext
20722 cat >>conftest.$ac_ext <<_ACEOF
20723 /* end confdefs.h.  */
20724
20725 int
20726 main ()
20727 {
20728
20729   ;
20730   return 0;
20731 }
20732 _ACEOF
20733 rm -f conftest.$ac_objext
20734 if { (ac_try="$ac_compile"
20735 case "(($ac_try" in
20736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737   *) ac_try_echo=$ac_try;;
20738 esac
20739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740   (eval "$ac_compile") 2>conftest.er1
20741   ac_status=$?
20742   grep -v '^ *+' conftest.er1 >conftest.err
20743   rm -f conftest.er1
20744   cat conftest.err >&5
20745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); } &&
20747          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20748   { (case "(($ac_try" in
20749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750   *) ac_try_echo=$ac_try;;
20751 esac
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753   (eval "$ac_try") 2>&5
20754   ac_status=$?
20755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756   (exit $ac_status); }; } &&
20757          { ac_try='test -s conftest.$ac_objext'
20758   { (case "(($ac_try" in
20759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20760   *) ac_try_echo=$ac_try;;
20761 esac
20762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20763   (eval "$ac_try") 2>&5
20764   ac_status=$?
20765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766   (exit $ac_status); }; }; then
20767   llvm_cv_cxx_visibility_inlines_hidden=yes
20768 else
20769   echo "$as_me: failed program was:" >&5
20770 sed 's/^/| /' conftest.$ac_ext >&5
20771
20772         llvm_cv_cxx_visibility_inlines_hidden=no
20773 fi
20774
20775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20776   CXXFLAGS="$oldcxxflags"
20777   ac_ext=c
20778 ac_cpp='$CPP $CPPFLAGS'
20779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20782
20783
20784 fi
20785 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20786 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20787 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20788   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20789
20790 else
20791   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20792
20793 fi
20794
20795
20796 if test "$llvm_cv_link_use_r" = "yes" ; then
20797   RPATH="-Wl,-R"
20798 else
20799   RPATH="-Wl,-rpath"
20800 fi
20801
20802
20803 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20804   RDYNAMIC="-Wl,-export-dynamic"
20805 else
20806   RDYNAMIC=""
20807 fi
20808
20809
20810
20811 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20812
20813
20814
20815
20816
20817
20818 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20819
20820 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20821
20822 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20823
20824 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20825
20826 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20827
20828
20829 ac_config_files="$ac_config_files Makefile.config"
20830
20831
20832 ac_config_files="$ac_config_files llvm.spec"
20833
20834
20835 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20836
20837
20838 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20839
20840
20841 ac_config_commands="$ac_config_commands setup"
20842
20843 ac_config_commands="$ac_config_commands Makefile"
20844
20845
20846 ac_config_commands="$ac_config_commands Makefile.common"
20847
20848
20849 ac_config_commands="$ac_config_commands examples/Makefile"
20850
20851
20852 ac_config_commands="$ac_config_commands lib/Makefile"
20853
20854
20855 ac_config_commands="$ac_config_commands runtime/Makefile"
20856
20857
20858 ac_config_commands="$ac_config_commands test/Makefile"
20859
20860
20861 ac_config_commands="$ac_config_commands test/Makefile.tests"
20862
20863
20864 ac_config_commands="$ac_config_commands unittests/Makefile"
20865
20866
20867 ac_config_commands="$ac_config_commands tools/Makefile"
20868
20869
20870 ac_config_commands="$ac_config_commands utils/Makefile"
20871
20872
20873 ac_config_commands="$ac_config_commands projects/Makefile"
20874
20875
20876 ac_config_commands="$ac_config_commands bindings/Makefile"
20877
20878
20879 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20880
20881
20882
20883 cat >confcache <<\_ACEOF
20884 # This file is a shell script that caches the results of configure
20885 # tests run on this system so they can be shared between configure
20886 # scripts and configure runs, see configure's option --config-cache.
20887 # It is not useful on other systems.  If it contains results you don't
20888 # want to keep, you may remove or edit it.
20889 #
20890 # config.status only pays attention to the cache file if you give it
20891 # the --recheck option to rerun configure.
20892 #
20893 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20894 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20895 # following values.
20896
20897 _ACEOF
20898
20899 # The following way of writing the cache mishandles newlines in values,
20900 # but we know of no workaround that is simple, portable, and efficient.
20901 # So, we kill variables containing newlines.
20902 # Ultrix sh set writes to stderr and can't be redirected directly,
20903 # and sets the high bit in the cache file unless we assign to the vars.
20904 (
20905   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20906     eval ac_val=\$$ac_var
20907     case $ac_val in #(
20908     *${as_nl}*)
20909       case $ac_var in #(
20910       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20911 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20912       esac
20913       case $ac_var in #(
20914       _ | IFS | as_nl) ;; #(
20915       *) $as_unset $ac_var ;;
20916       esac ;;
20917     esac
20918   done
20919
20920   (set) 2>&1 |
20921     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20922     *${as_nl}ac_space=\ *)
20923       # `set' does not quote correctly, so add quotes (double-quote
20924       # substitution turns \\\\ into \\, and sed turns \\ into \).
20925       sed -n \
20926         "s/'/'\\\\''/g;
20927           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20928       ;; #(
20929     *)
20930       # `set' quotes correctly as required by POSIX, so do not add quotes.
20931       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20932       ;;
20933     esac |
20934     sort
20935 ) |
20936   sed '
20937      /^ac_cv_env_/b end
20938      t clear
20939      :clear
20940      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20941      t end
20942      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20943      :end' >>confcache
20944 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20945   if test -w "$cache_file"; then
20946     test "x$cache_file" != "x/dev/null" &&
20947       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20948 echo "$as_me: updating cache $cache_file" >&6;}
20949     cat confcache >$cache_file
20950   else
20951     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20952 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20953   fi
20954 fi
20955 rm -f confcache
20956
20957 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20958 # Let make expand exec_prefix.
20959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20960
20961 DEFS=-DHAVE_CONFIG_H
20962
20963 ac_libobjs=
20964 ac_ltlibobjs=
20965 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20966   # 1. Remove the extension, and $U if already installed.
20967   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20968   ac_i=`echo "$ac_i" | sed "$ac_script"`
20969   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20970   #    will be set to the directory where LIBOBJS objects are built.
20971   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20972   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20973 done
20974 LIBOBJS=$ac_libobjs
20975
20976 LTLIBOBJS=$ac_ltlibobjs
20977
20978
20979 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20980   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20981 Usually this means the macro was only invoked conditionally." >&5
20982 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20983 Usually this means the macro was only invoked conditionally." >&2;}
20984    { (exit 1); exit 1; }; }
20985 fi
20986 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20987   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20988 Usually this means the macro was only invoked conditionally." >&5
20989 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20990 Usually this means the macro was only invoked conditionally." >&2;}
20991    { (exit 1); exit 1; }; }
20992 fi
20993
20994 : ${CONFIG_STATUS=./config.status}
20995 ac_clean_files_save=$ac_clean_files
20996 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20997 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20998 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20999 cat >$CONFIG_STATUS <<_ACEOF
21000 #! $SHELL
21001 # Generated by $as_me.
21002 # Run this file to recreate the current configuration.
21003 # Compiler output produced by configure, useful for debugging
21004 # configure, is in config.log if it exists.
21005
21006 debug=false
21007 ac_cs_recheck=false
21008 ac_cs_silent=false
21009 SHELL=\${CONFIG_SHELL-$SHELL}
21010 _ACEOF
21011
21012 cat >>$CONFIG_STATUS <<\_ACEOF
21013 ## --------------------- ##
21014 ## M4sh Initialization.  ##
21015 ## --------------------- ##
21016
21017 # Be Bourne compatible
21018 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21019   emulate sh
21020   NULLCMD=:
21021   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21022   # is contrary to our usage.  Disable this feature.
21023   alias -g '${1+"$@"}'='"$@"'
21024   setopt NO_GLOB_SUBST
21025 else
21026   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21027 fi
21028 BIN_SH=xpg4; export BIN_SH # for Tru64
21029 DUALCASE=1; export DUALCASE # for MKS sh
21030
21031
21032 # PATH needs CR
21033 # Avoid depending upon Character Ranges.
21034 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21035 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21036 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21037 as_cr_digits='0123456789'
21038 as_cr_alnum=$as_cr_Letters$as_cr_digits
21039
21040 # The user is always right.
21041 if test "${PATH_SEPARATOR+set}" != set; then
21042   echo "#! /bin/sh" >conf$$.sh
21043   echo  "exit 0"   >>conf$$.sh
21044   chmod +x conf$$.sh
21045   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21046     PATH_SEPARATOR=';'
21047   else
21048     PATH_SEPARATOR=:
21049   fi
21050   rm -f conf$$.sh
21051 fi
21052
21053 # Support unset when possible.
21054 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21055   as_unset=unset
21056 else
21057   as_unset=false
21058 fi
21059
21060
21061 # IFS
21062 # We need space, tab and new line, in precisely that order.  Quoting is
21063 # there to prevent editors from complaining about space-tab.
21064 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21065 # splitting by setting IFS to empty value.)
21066 as_nl='
21067 '
21068 IFS=" ""        $as_nl"
21069
21070 # Find who we are.  Look in the path if we contain no directory separator.
21071 case $0 in
21072   *[\\/]* ) as_myself=$0 ;;
21073   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21074 for as_dir in $PATH
21075 do
21076   IFS=$as_save_IFS
21077   test -z "$as_dir" && as_dir=.
21078   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21079 done
21080 IFS=$as_save_IFS
21081
21082      ;;
21083 esac
21084 # We did not find ourselves, most probably we were run as `sh COMMAND'
21085 # in which case we are not to be found in the path.
21086 if test "x$as_myself" = x; then
21087   as_myself=$0
21088 fi
21089 if test ! -f "$as_myself"; then
21090   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21091   { (exit 1); exit 1; }
21092 fi
21093
21094 # Work around bugs in pre-3.0 UWIN ksh.
21095 for as_var in ENV MAIL MAILPATH
21096 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21097 done
21098 PS1='$ '
21099 PS2='> '
21100 PS4='+ '
21101
21102 # NLS nuisances.
21103 for as_var in \
21104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21106   LC_TELEPHONE LC_TIME
21107 do
21108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21109     eval $as_var=C; export $as_var
21110   else
21111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21112   fi
21113 done
21114
21115 # Required to use basename.
21116 if expr a : '\(a\)' >/dev/null 2>&1 &&
21117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21118   as_expr=expr
21119 else
21120   as_expr=false
21121 fi
21122
21123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21124   as_basename=basename
21125 else
21126   as_basename=false
21127 fi
21128
21129
21130 # Name of the executable.
21131 as_me=`$as_basename -- "$0" ||
21132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21133          X"$0" : 'X\(//\)$' \| \
21134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21135 echo X/"$0" |
21136     sed '/^.*\/\([^/][^/]*\)\/*$/{
21137             s//\1/
21138             q
21139           }
21140           /^X\/\(\/\/\)$/{
21141             s//\1/
21142             q
21143           }
21144           /^X\/\(\/\).*/{
21145             s//\1/
21146             q
21147           }
21148           s/.*/./; q'`
21149
21150 # CDPATH.
21151 $as_unset CDPATH
21152
21153
21154
21155   as_lineno_1=$LINENO
21156   as_lineno_2=$LINENO
21157   test "x$as_lineno_1" != "x$as_lineno_2" &&
21158   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21159
21160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21161   # uniformly replaced by the line number.  The first 'sed' inserts a
21162   # line-number line after each line using $LINENO; the second 'sed'
21163   # does the real work.  The second script uses 'N' to pair each
21164   # line-number line with the line containing $LINENO, and appends
21165   # trailing '-' during substitution so that $LINENO is not a special
21166   # case at line end.
21167   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21168   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21169   # E. McMahon (1931-1989) for sed's syntax.  :-)
21170   sed -n '
21171     p
21172     /[$]LINENO/=
21173   ' <$as_myself |
21174     sed '
21175       s/[$]LINENO.*/&-/
21176       t lineno
21177       b
21178       :lineno
21179       N
21180       :loop
21181       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21182       t loop
21183       s/-\n.*//
21184     ' >$as_me.lineno &&
21185   chmod +x "$as_me.lineno" ||
21186     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21187    { (exit 1); exit 1; }; }
21188
21189   # Don't try to exec as it changes $[0], causing all sort of problems
21190   # (the dirname of $[0] is not the place where we might find the
21191   # original and so on.  Autoconf is especially sensitive to this).
21192   . "./$as_me.lineno"
21193   # Exit status is that of the last command.
21194   exit
21195 }
21196
21197
21198 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21199   as_dirname=dirname
21200 else
21201   as_dirname=false
21202 fi
21203
21204 ECHO_C= ECHO_N= ECHO_T=
21205 case `echo -n x` in
21206 -n*)
21207   case `echo 'x\c'` in
21208   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21209   *)   ECHO_C='\c';;
21210   esac;;
21211 *)
21212   ECHO_N='-n';;
21213 esac
21214
21215 if expr a : '\(a\)' >/dev/null 2>&1 &&
21216    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21217   as_expr=expr
21218 else
21219   as_expr=false
21220 fi
21221
21222 rm -f conf$$ conf$$.exe conf$$.file
21223 if test -d conf$$.dir; then
21224   rm -f conf$$.dir/conf$$.file
21225 else
21226   rm -f conf$$.dir
21227   mkdir conf$$.dir
21228 fi
21229 echo >conf$$.file
21230 if ln -s conf$$.file conf$$ 2>/dev/null; then
21231   as_ln_s='ln -s'
21232   # ... but there are two gotchas:
21233   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21234   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21235   # In both cases, we have to default to `cp -p'.
21236   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21237     as_ln_s='cp -p'
21238 elif ln conf$$.file conf$$ 2>/dev/null; then
21239   as_ln_s=ln
21240 else
21241   as_ln_s='cp -p'
21242 fi
21243 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21244 rmdir conf$$.dir 2>/dev/null
21245
21246 if mkdir -p . 2>/dev/null; then
21247   as_mkdir_p=:
21248 else
21249   test -d ./-p && rmdir ./-p
21250   as_mkdir_p=false
21251 fi
21252
21253 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21254 # systems may use methods other than mode bits to determine executability.
21255 cat >conf$$.file <<_ASEOF
21256 #! /bin/sh
21257 exit 0
21258 _ASEOF
21259 chmod +x conf$$.file
21260 if test -x conf$$.file >/dev/null 2>&1; then
21261   as_executable_p="test -x"
21262 else
21263   as_executable_p=:
21264 fi
21265 rm -f conf$$.file
21266
21267 # Sed expression to map a string onto a valid CPP name.
21268 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21269
21270 # Sed expression to map a string onto a valid variable name.
21271 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21272
21273
21274 exec 6>&1
21275
21276 # Save the log message, to keep $[0] and so on meaningful, and to
21277 # report actual input values of CONFIG_FILES etc. instead of their
21278 # values after options handling.
21279 ac_log="
21280 This file was extended by llvm $as_me 2.8svn, which was
21281 generated by GNU Autoconf 2.60.  Invocation command line was
21282
21283   CONFIG_FILES    = $CONFIG_FILES
21284   CONFIG_HEADERS  = $CONFIG_HEADERS
21285   CONFIG_LINKS    = $CONFIG_LINKS
21286   CONFIG_COMMANDS = $CONFIG_COMMANDS
21287   $ $0 $@
21288
21289 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21290 "
21291
21292 _ACEOF
21293
21294 cat >>$CONFIG_STATUS <<_ACEOF
21295 # Files that config.status was made for.
21296 config_files="$ac_config_files"
21297 config_headers="$ac_config_headers"
21298 config_commands="$ac_config_commands"
21299
21300 _ACEOF
21301
21302 cat >>$CONFIG_STATUS <<\_ACEOF
21303 ac_cs_usage="\
21304 \`$as_me' instantiates files from templates according to the
21305 current configuration.
21306
21307 Usage: $0 [OPTIONS] [FILE]...
21308
21309   -h, --help       print this help, then exit
21310   -V, --version    print version number, then exit
21311   -q, --quiet      do not print progress messages
21312   -d, --debug      don't remove temporary files
21313       --recheck    update $as_me by reconfiguring in the same conditions
21314   --file=FILE[:TEMPLATE]
21315                    instantiate the configuration file FILE
21316   --header=FILE[:TEMPLATE]
21317                    instantiate the configuration header FILE
21318
21319 Configuration files:
21320 $config_files
21321
21322 Configuration headers:
21323 $config_headers
21324
21325 Configuration commands:
21326 $config_commands
21327
21328 Report bugs to <bug-autoconf@gnu.org>."
21329
21330 _ACEOF
21331 cat >>$CONFIG_STATUS <<_ACEOF
21332 ac_cs_version="\\
21333 llvm config.status 2.8svn
21334 configured by $0, generated by GNU Autoconf 2.60,
21335   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21336
21337 Copyright (C) 2006 Free Software Foundation, Inc.
21338 This config.status script is free software; the Free Software Foundation
21339 gives unlimited permission to copy, distribute and modify it."
21340
21341 ac_pwd='$ac_pwd'
21342 srcdir='$srcdir'
21343 INSTALL='$INSTALL'
21344 _ACEOF
21345
21346 cat >>$CONFIG_STATUS <<\_ACEOF
21347 # If no file are specified by the user, then we need to provide default
21348 # value.  By we need to know if files were specified by the user.
21349 ac_need_defaults=:
21350 while test $# != 0
21351 do
21352   case $1 in
21353   --*=*)
21354     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21355     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21356     ac_shift=:
21357     ;;
21358   *)
21359     ac_option=$1
21360     ac_optarg=$2
21361     ac_shift=shift
21362     ;;
21363   esac
21364
21365   case $ac_option in
21366   # Handling of the options.
21367   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21368     ac_cs_recheck=: ;;
21369   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21370     echo "$ac_cs_version"; exit ;;
21371   --debug | --debu | --deb | --de | --d | -d )
21372     debug=: ;;
21373   --file | --fil | --fi | --f )
21374     $ac_shift
21375     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21376     ac_need_defaults=false;;
21377   --header | --heade | --head | --hea )
21378     $ac_shift
21379     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21380     ac_need_defaults=false;;
21381   --he | --h)
21382     # Conflict between --help and --header
21383     { echo "$as_me: error: ambiguous option: $1
21384 Try \`$0 --help' for more information." >&2
21385    { (exit 1); exit 1; }; };;
21386   --help | --hel | -h )
21387     echo "$ac_cs_usage"; exit ;;
21388   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21389   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21390     ac_cs_silent=: ;;
21391
21392   # This is an error.
21393   -*) { echo "$as_me: error: unrecognized option: $1
21394 Try \`$0 --help' for more information." >&2
21395    { (exit 1); exit 1; }; } ;;
21396
21397   *) ac_config_targets="$ac_config_targets $1"
21398      ac_need_defaults=false ;;
21399
21400   esac
21401   shift
21402 done
21403
21404 ac_configure_extra_args=
21405
21406 if $ac_cs_silent; then
21407   exec 6>/dev/null
21408   ac_configure_extra_args="$ac_configure_extra_args --silent"
21409 fi
21410
21411 _ACEOF
21412 cat >>$CONFIG_STATUS <<_ACEOF
21413 if \$ac_cs_recheck; then
21414   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21415   CONFIG_SHELL=$SHELL
21416   export CONFIG_SHELL
21417   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21418 fi
21419
21420 _ACEOF
21421 cat >>$CONFIG_STATUS <<\_ACEOF
21422 exec 5>>config.log
21423 {
21424   echo
21425   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21426 ## Running $as_me. ##
21427 _ASBOX
21428   echo "$ac_log"
21429 } >&5
21430
21431 _ACEOF
21432 cat >>$CONFIG_STATUS <<_ACEOF
21433 #
21434 # INIT-COMMANDS
21435 #
21436 llvm_src="${srcdir}"
21437
21438 _ACEOF
21439
21440 cat >>$CONFIG_STATUS <<\_ACEOF
21441
21442 # Handling of arguments.
21443 for ac_config_target in $ac_config_targets
21444 do
21445   case $ac_config_target in
21446     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21447     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21448     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21449     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21450     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21451     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21452     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21453     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21454     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21455     "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21456     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21457     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21458     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21459     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21460     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21461     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21462     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21463     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21464     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21465     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21466     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21467     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21468     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21469     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21470     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21471
21472   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21473 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21474    { (exit 1); exit 1; }; };;
21475   esac
21476 done
21477
21478
21479 # If the user did not use the arguments to specify the items to instantiate,
21480 # then the envvar interface is used.  Set only those that are not.
21481 # We use the long form for the default assignment because of an extremely
21482 # bizarre bug on SunOS 4.1.3.
21483 if $ac_need_defaults; then
21484   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21485   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21486   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21487 fi
21488
21489 # Have a temporary directory for convenience.  Make it in the build tree
21490 # simply because there is no reason against having it here, and in addition,
21491 # creating and moving files from /tmp can sometimes cause problems.
21492 # Hook for its removal unless debugging.
21493 # Note that there is a small window in which the directory will not be cleaned:
21494 # after its creation but before its name has been assigned to `$tmp'.
21495 $debug ||
21496 {
21497   tmp=
21498   trap 'exit_status=$?
21499   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21500 ' 0
21501   trap '{ (exit 1); exit 1; }' 1 2 13 15
21502 }
21503 # Create a (secure) tmp directory for tmp files.
21504
21505 {
21506   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21507   test -n "$tmp" && test -d "$tmp"
21508 }  ||
21509 {
21510   tmp=./conf$$-$RANDOM
21511   (umask 077 && mkdir "$tmp")
21512 } ||
21513 {
21514    echo "$me: cannot create a temporary directory in ." >&2
21515    { (exit 1); exit 1; }
21516 }
21517
21518 #
21519 # Set up the sed scripts for CONFIG_FILES section.
21520 #
21521
21522 # No need to generate the scripts if there are no CONFIG_FILES.
21523 # This happens for instance when ./config.status config.h
21524 if test -n "$CONFIG_FILES"; then
21525
21526 _ACEOF
21527
21528
21529
21530 ac_delim='%!_!# '
21531 for ac_last_try in false false false false false :; do
21532   cat >conf$$subs.sed <<_ACEOF
21533 SHELL!$SHELL$ac_delim
21534 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21535 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21536 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21537 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21538 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21539 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21540 exec_prefix!$exec_prefix$ac_delim
21541 prefix!$prefix$ac_delim
21542 program_transform_name!$program_transform_name$ac_delim
21543 bindir!$bindir$ac_delim
21544 sbindir!$sbindir$ac_delim
21545 libexecdir!$libexecdir$ac_delim
21546 datarootdir!$datarootdir$ac_delim
21547 datadir!$datadir$ac_delim
21548 sysconfdir!$sysconfdir$ac_delim
21549 sharedstatedir!$sharedstatedir$ac_delim
21550 localstatedir!$localstatedir$ac_delim
21551 includedir!$includedir$ac_delim
21552 oldincludedir!$oldincludedir$ac_delim
21553 docdir!$docdir$ac_delim
21554 infodir!$infodir$ac_delim
21555 htmldir!$htmldir$ac_delim
21556 dvidir!$dvidir$ac_delim
21557 pdfdir!$pdfdir$ac_delim
21558 psdir!$psdir$ac_delim
21559 libdir!$libdir$ac_delim
21560 localedir!$localedir$ac_delim
21561 mandir!$mandir$ac_delim
21562 DEFS!$DEFS$ac_delim
21563 ECHO_C!$ECHO_C$ac_delim
21564 ECHO_N!$ECHO_N$ac_delim
21565 ECHO_T!$ECHO_T$ac_delim
21566 LIBS!$LIBS$ac_delim
21567 build_alias!$build_alias$ac_delim
21568 host_alias!$host_alias$ac_delim
21569 target_alias!$target_alias$ac_delim
21570 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21571 subdirs!$subdirs$ac_delim
21572 build!$build$ac_delim
21573 build_cpu!$build_cpu$ac_delim
21574 build_vendor!$build_vendor$ac_delim
21575 build_os!$build_os$ac_delim
21576 host!$host$ac_delim
21577 host_cpu!$host_cpu$ac_delim
21578 host_vendor!$host_vendor$ac_delim
21579 host_os!$host_os$ac_delim
21580 target!$target$ac_delim
21581 target_cpu!$target_cpu$ac_delim
21582 target_vendor!$target_vendor$ac_delim
21583 target_os!$target_os$ac_delim
21584 OS!$OS$ac_delim
21585 HOST_OS!$HOST_OS$ac_delim
21586 TARGET_OS!$TARGET_OS$ac_delim
21587 LINKALL!$LINKALL$ac_delim
21588 NOLINKALL!$NOLINKALL$ac_delim
21589 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21590 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21591 ARCH!$ARCH$ac_delim
21592 ENDIAN!$ENDIAN$ac_delim
21593 CC!$CC$ac_delim
21594 CFLAGS!$CFLAGS$ac_delim
21595 LDFLAGS!$LDFLAGS$ac_delim
21596 CPPFLAGS!$CPPFLAGS$ac_delim
21597 ac_ct_CC!$ac_ct_CC$ac_delim
21598 EXEEXT!$EXEEXT$ac_delim
21599 OBJEXT!$OBJEXT$ac_delim
21600 CPP!$CPP$ac_delim
21601 GREP!$GREP$ac_delim
21602 EGREP!$EGREP$ac_delim
21603 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21604 BUILD_CC!$BUILD_CC$ac_delim
21605 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21606 BUILD_CXX!$BUILD_CXX$ac_delim
21607 CVSBUILD!$CVSBUILD$ac_delim
21608 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21609 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21610 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21611 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21612 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21613 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21614 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21615 JIT!$JIT$ac_delim
21616 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21617 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21618 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21619 ENABLE_PIC!$ENABLE_PIC$ac_delim
21620 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21621 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21622 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21623 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21624 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21625 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21626 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21627 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21628 CLANGPATH!$CLANGPATH$ac_delim
21629 CLANGXXPATH!$CLANGXXPATH$ac_delim
21630 _ACEOF
21631
21632   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21633     break
21634   elif $ac_last_try; then
21635     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21636 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21637    { (exit 1); exit 1; }; }
21638   else
21639     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21640   fi
21641 done
21642
21643 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21644 if test -n "$ac_eof"; then
21645   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21646   ac_eof=`expr $ac_eof + 1`
21647 fi
21648
21649 cat >>$CONFIG_STATUS <<_ACEOF
21650 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21651 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21652 _ACEOF
21653 sed '
21654 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21655 s/^/s,@/; s/!/@,|#_!!_#|/
21656 :n
21657 t n
21658 s/'"$ac_delim"'$/,g/; t
21659 s/$/\\/; p
21660 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21661 ' >>$CONFIG_STATUS <conf$$subs.sed
21662 rm -f conf$$subs.sed
21663 cat >>$CONFIG_STATUS <<_ACEOF
21664 CEOF$ac_eof
21665 _ACEOF
21666
21667
21668 ac_delim='%!_!# '
21669 for ac_last_try in false false false false false :; do
21670   cat >conf$$subs.sed <<_ACEOF
21671 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21672 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21673 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21674 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21675 CXX!$CXX$ac_delim
21676 CXXFLAGS!$CXXFLAGS$ac_delim
21677 ac_ct_CXX!$ac_ct_CXX$ac_delim
21678 NM!$NM$ac_delim
21679 ifGNUmake!$ifGNUmake$ac_delim
21680 LN_S!$LN_S$ac_delim
21681 CMP!$CMP$ac_delim
21682 CP!$CP$ac_delim
21683 DATE!$DATE$ac_delim
21684 FIND!$FIND$ac_delim
21685 MKDIR!$MKDIR$ac_delim
21686 MV!$MV$ac_delim
21687 RANLIB!$RANLIB$ac_delim
21688 AR!$AR$ac_delim
21689 RM!$RM$ac_delim
21690 SED!$SED$ac_delim
21691 TAR!$TAR$ac_delim
21692 BINPWD!$BINPWD$ac_delim
21693 GRAPHVIZ!$GRAPHVIZ$ac_delim
21694 DOT!$DOT$ac_delim
21695 FDP!$FDP$ac_delim
21696 NEATO!$NEATO$ac_delim
21697 TWOPI!$TWOPI$ac_delim
21698 CIRCO!$CIRCO$ac_delim
21699 GV!$GV$ac_delim
21700 DOTTY!$DOTTY$ac_delim
21701 PERL!$PERL$ac_delim
21702 HAVE_PERL!$HAVE_PERL$ac_delim
21703 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21704 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21705 INSTALL_DATA!$INSTALL_DATA$ac_delim
21706 BZIP2!$BZIP2$ac_delim
21707 CAT!$CAT$ac_delim
21708 DOXYGEN!$DOXYGEN$ac_delim
21709 GROFF!$GROFF$ac_delim
21710 GZIP!$GZIP$ac_delim
21711 POD2HTML!$POD2HTML$ac_delim
21712 POD2MAN!$POD2MAN$ac_delim
21713 PDFROFF!$PDFROFF$ac_delim
21714 RUNTEST!$RUNTEST$ac_delim
21715 TCLSH!$TCLSH$ac_delim
21716 ZIP!$ZIP$ac_delim
21717 OCAMLC!$OCAMLC$ac_delim
21718 OCAMLOPT!$OCAMLOPT$ac_delim
21719 OCAMLDEP!$OCAMLDEP$ac_delim
21720 OCAMLDOC!$OCAMLDOC$ac_delim
21721 GAS!$GAS$ac_delim
21722 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21723 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21724 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21725 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21726 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21727 LIBADD_DL!$LIBADD_DL$ac_delim
21728 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21729 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21730 LLVMGCC!$LLVMGCC$ac_delim
21731 LLVMGXX!$LLVMGXX$ac_delim
21732 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21733 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21734 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21735 USE_UDIS86!$USE_UDIS86$ac_delim
21736 USE_OPROFILE!$USE_OPROFILE$ac_delim
21737 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21738 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21739 MMAP_FILE!$MMAP_FILE$ac_delim
21740 LLVMCC1!$LLVMCC1$ac_delim
21741 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21742 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21743 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21744 SHLIBEXT!$SHLIBEXT$ac_delim
21745 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21746 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21747 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21748 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21749 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21750 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21751 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21752 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21753 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21754 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21755 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21756 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21757 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21758 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21759 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21760 RPATH!$RPATH$ac_delim
21761 RDYNAMIC!$RDYNAMIC$ac_delim
21762 LIBOBJS!$LIBOBJS$ac_delim
21763 LTLIBOBJS!$LTLIBOBJS$ac_delim
21764 _ACEOF
21765
21766   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
21767     break
21768   elif $ac_last_try; then
21769     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21770 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21771    { (exit 1); exit 1; }; }
21772   else
21773     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21774   fi
21775 done
21776
21777 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21778 if test -n "$ac_eof"; then
21779   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21780   ac_eof=`expr $ac_eof + 1`
21781 fi
21782
21783 cat >>$CONFIG_STATUS <<_ACEOF
21784 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21785 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21786 _ACEOF
21787 sed '
21788 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21789 s/^/s,@/; s/!/@,|#_!!_#|/
21790 :n
21791 t n
21792 s/'"$ac_delim"'$/,g/; t
21793 s/$/\\/; p
21794 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21795 ' >>$CONFIG_STATUS <conf$$subs.sed
21796 rm -f conf$$subs.sed
21797 cat >>$CONFIG_STATUS <<_ACEOF
21798 :end
21799 s/|#_!!_#|//g
21800 CEOF$ac_eof
21801 _ACEOF
21802
21803
21804 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21805 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21806 # trailing colons and then remove the whole line if VPATH becomes empty
21807 # (actually we leave an empty line to preserve line numbers).
21808 if test "x$srcdir" = x.; then
21809   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21810 s/:*\$(srcdir):*/:/
21811 s/:*\${srcdir}:*/:/
21812 s/:*@srcdir@:*/:/
21813 s/^\([^=]*=[     ]*\):*/\1/
21814 s/:*$//
21815 s/^[^=]*=[       ]*$//
21816 }'
21817 fi
21818
21819 cat >>$CONFIG_STATUS <<\_ACEOF
21820 fi # test -n "$CONFIG_FILES"
21821
21822
21823 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21824 do
21825   case $ac_tag in
21826   :[FHLC]) ac_mode=$ac_tag; continue;;
21827   esac
21828   case $ac_mode$ac_tag in
21829   :[FHL]*:*);;
21830   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21831 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21832    { (exit 1); exit 1; }; };;
21833   :[FH]-) ac_tag=-:-;;
21834   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21835   esac
21836   ac_save_IFS=$IFS
21837   IFS=:
21838   set x $ac_tag
21839   IFS=$ac_save_IFS
21840   shift
21841   ac_file=$1
21842   shift
21843
21844   case $ac_mode in
21845   :L) ac_source=$1;;
21846   :[FH])
21847     ac_file_inputs=
21848     for ac_f
21849     do
21850       case $ac_f in
21851       -) ac_f="$tmp/stdin";;
21852       *) # Look for the file first in the build tree, then in the source tree
21853          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21854          # because $ac_f cannot contain `:'.
21855          test -f "$ac_f" ||
21856            case $ac_f in
21857            [\\/$]*) false;;
21858            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21859            esac ||
21860            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21861 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21862    { (exit 1); exit 1; }; };;
21863       esac
21864       ac_file_inputs="$ac_file_inputs $ac_f"
21865     done
21866
21867     # Let's still pretend it is `configure' which instantiates (i.e., don't
21868     # use $as_me), people would be surprised to read:
21869     #    /* config.h.  Generated by config.status.  */
21870     configure_input="Generated from "`IFS=:
21871           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21872     if test x"$ac_file" != x-; then
21873       configure_input="$ac_file.  $configure_input"
21874       { echo "$as_me:$LINENO: creating $ac_file" >&5
21875 echo "$as_me: creating $ac_file" >&6;}
21876     fi
21877
21878     case $ac_tag in
21879     *:-:* | *:-) cat >"$tmp/stdin";;
21880     esac
21881     ;;
21882   esac
21883
21884   ac_dir=`$as_dirname -- "$ac_file" ||
21885 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21886          X"$ac_file" : 'X\(//\)[^/]' \| \
21887          X"$ac_file" : 'X\(//\)$' \| \
21888          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21889 echo X"$ac_file" |
21890     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21891             s//\1/
21892             q
21893           }
21894           /^X\(\/\/\)[^/].*/{
21895             s//\1/
21896             q
21897           }
21898           /^X\(\/\/\)$/{
21899             s//\1/
21900             q
21901           }
21902           /^X\(\/\).*/{
21903             s//\1/
21904             q
21905           }
21906           s/.*/./; q'`
21907   { as_dir="$ac_dir"
21908   case $as_dir in #(
21909   -*) as_dir=./$as_dir;;
21910   esac
21911   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21912     as_dirs=
21913     while :; do
21914       case $as_dir in #(
21915       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21916       *) as_qdir=$as_dir;;
21917       esac
21918       as_dirs="'$as_qdir' $as_dirs"
21919       as_dir=`$as_dirname -- "$as_dir" ||
21920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21921          X"$as_dir" : 'X\(//\)[^/]' \| \
21922          X"$as_dir" : 'X\(//\)$' \| \
21923          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21924 echo X"$as_dir" |
21925     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21926             s//\1/
21927             q
21928           }
21929           /^X\(\/\/\)[^/].*/{
21930             s//\1/
21931             q
21932           }
21933           /^X\(\/\/\)$/{
21934             s//\1/
21935             q
21936           }
21937           /^X\(\/\).*/{
21938             s//\1/
21939             q
21940           }
21941           s/.*/./; q'`
21942       test -d "$as_dir" && break
21943     done
21944     test -z "$as_dirs" || eval "mkdir $as_dirs"
21945   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21946 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21947    { (exit 1); exit 1; }; }; }
21948   ac_builddir=.
21949
21950 case "$ac_dir" in
21951 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21952 *)
21953   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21954   # A ".." for each directory in $ac_dir_suffix.
21955   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21956   case $ac_top_builddir_sub in
21957   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21958   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21959   esac ;;
21960 esac
21961 ac_abs_top_builddir=$ac_pwd
21962 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21963 # for backward compatibility:
21964 ac_top_builddir=$ac_top_build_prefix
21965
21966 case $srcdir in
21967   .)  # We are building in place.
21968     ac_srcdir=.
21969     ac_top_srcdir=$ac_top_builddir_sub
21970     ac_abs_top_srcdir=$ac_pwd ;;
21971   [\\/]* | ?:[\\/]* )  # Absolute name.
21972     ac_srcdir=$srcdir$ac_dir_suffix;
21973     ac_top_srcdir=$srcdir
21974     ac_abs_top_srcdir=$srcdir ;;
21975   *) # Relative name.
21976     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21977     ac_top_srcdir=$ac_top_build_prefix$srcdir
21978     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21979 esac
21980 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21981
21982
21983   case $ac_mode in
21984   :F)
21985   #
21986   # CONFIG_FILE
21987   #
21988
21989   case $INSTALL in
21990   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21991   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21992   esac
21993 _ACEOF
21994
21995 cat >>$CONFIG_STATUS <<\_ACEOF
21996 # If the template does not know about datarootdir, expand it.
21997 # FIXME: This hack should be removed a few years after 2.60.
21998 ac_datarootdir_hack=; ac_datarootdir_seen=
21999
22000 case `sed -n '/datarootdir/ {
22001   p
22002   q
22003 }
22004 /@datadir@/p
22005 /@docdir@/p
22006 /@infodir@/p
22007 /@localedir@/p
22008 /@mandir@/p
22009 ' $ac_file_inputs` in
22010 *datarootdir*) ac_datarootdir_seen=yes;;
22011 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22012   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22013 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22014 _ACEOF
22015 cat >>$CONFIG_STATUS <<_ACEOF
22016   ac_datarootdir_hack='
22017   s&@datadir@&$datadir&g
22018   s&@docdir@&$docdir&g
22019   s&@infodir@&$infodir&g
22020   s&@localedir@&$localedir&g
22021   s&@mandir@&$mandir&g
22022     s&\\\${datarootdir}&$datarootdir&g' ;;
22023 esac
22024 _ACEOF
22025
22026 # Neutralize VPATH when `$srcdir' = `.'.
22027 # Shell code in configure.ac might set extrasub.
22028 # FIXME: do we really want to maintain this feature?
22029 cat >>$CONFIG_STATUS <<_ACEOF
22030   sed "$ac_vpsub
22031 $extrasub
22032 _ACEOF
22033 cat >>$CONFIG_STATUS <<\_ACEOF
22034 :t
22035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22036 s&@configure_input@&$configure_input&;t t
22037 s&@top_builddir@&$ac_top_builddir_sub&;t t
22038 s&@srcdir@&$ac_srcdir&;t t
22039 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22040 s&@top_srcdir@&$ac_top_srcdir&;t t
22041 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22042 s&@builddir@&$ac_builddir&;t t
22043 s&@abs_builddir@&$ac_abs_builddir&;t t
22044 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22045 s&@INSTALL@&$ac_INSTALL&;t t
22046 $ac_datarootdir_hack
22047 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22048
22049 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22050   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22051   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22052   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22053 which seems to be undefined.  Please make sure it is defined." >&5
22054 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22055 which seems to be undefined.  Please make sure it is defined." >&2;}
22056
22057   rm -f "$tmp/stdin"
22058   case $ac_file in
22059   -) cat "$tmp/out"; rm -f "$tmp/out";;
22060   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22061   esac
22062  ;;
22063   :H)
22064   #
22065   # CONFIG_HEADER
22066   #
22067 _ACEOF
22068
22069 # Transform confdefs.h into a sed script `conftest.defines', that
22070 # substitutes the proper values into config.h.in to produce config.h.
22071 rm -f conftest.defines conftest.tail
22072 # First, append a space to every undef/define line, to ease matching.
22073 echo 's/$/ /' >conftest.defines
22074 # Then, protect against being on the right side of a sed subst, or in
22075 # an unquoted here document, in config.status.  If some macros were
22076 # called several times there might be several #defines for the same
22077 # symbol, which is useless.  But do not sort them, since the last
22078 # AC_DEFINE must be honored.
22079 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22080 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22081 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22082 # PARAMS is the parameter list in the macro definition--in most cases, it's
22083 # just an empty string.
22084 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22085 ac_dB='\\)[      (].*,\\1define\\2'
22086 ac_dC=' '
22087 ac_dD=' ,'
22088
22089 uniq confdefs.h |
22090   sed -n '
22091         t rset
22092         :rset
22093         s/^[     ]*#[    ]*define[       ][      ]*//
22094         t ok
22095         d
22096         :ok
22097         s/[\\&,]/\\&/g
22098         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22099         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22100   ' >>conftest.defines
22101
22102 # Remove the space that was appended to ease matching.
22103 # Then replace #undef with comments.  This is necessary, for
22104 # example, in the case of _POSIX_SOURCE, which is predefined and required
22105 # on some systems where configure will not decide to define it.
22106 # (The regexp can be short, since the line contains either #define or #undef.)
22107 echo 's/ $//
22108 s,^[     #]*u.*,/* & */,' >>conftest.defines
22109
22110 # Break up conftest.defines:
22111 ac_max_sed_lines=50
22112
22113 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22114 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22115 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22116 # et cetera.
22117 ac_in='$ac_file_inputs'
22118 ac_out='"$tmp/out1"'
22119 ac_nxt='"$tmp/out2"'
22120
22121 while :
22122 do
22123   # Write a here document:
22124     cat >>$CONFIG_STATUS <<_ACEOF
22125     # First, check the format of the line:
22126     cat >"\$tmp/defines.sed" <<\\CEOF
22127 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22128 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22129 b
22130 :def
22131 _ACEOF
22132   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22133   echo 'CEOF
22134     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22135   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22136   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22137   grep . conftest.tail >/dev/null || break
22138   rm -f conftest.defines
22139   mv conftest.tail conftest.defines
22140 done
22141 rm -f conftest.defines conftest.tail
22142
22143 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22144 cat >>$CONFIG_STATUS <<\_ACEOF
22145   if test x"$ac_file" != x-; then
22146     echo "/* $configure_input  */" >"$tmp/config.h"
22147     cat "$ac_result" >>"$tmp/config.h"
22148     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22149       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22150 echo "$as_me: $ac_file is unchanged" >&6;}
22151     else
22152       rm -f $ac_file
22153       mv "$tmp/config.h" $ac_file
22154     fi
22155   else
22156     echo "/* $configure_input  */"
22157     cat "$ac_result"
22158   fi
22159   rm -f "$tmp/out12"
22160  ;;
22161
22162   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22163 echo "$as_me: executing $ac_file commands" >&6;}
22164  ;;
22165   esac
22166
22167
22168   case $ac_file$ac_mode in
22169     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22170    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22171     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22172    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22173     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22174    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22175     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22176    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22177     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22178    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22179     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22180    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22181     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22182    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22183     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22184    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22185     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22186    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22187     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22188    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22189     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22190    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22191     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22192    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22193     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22194    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22195
22196   esac
22197 done # for ac_tag
22198
22199
22200 { (exit 0); exit 0; }
22201 _ACEOF
22202 chmod +x $CONFIG_STATUS
22203 ac_clean_files=$ac_clean_files_save
22204
22205
22206 # configure is writing to config.log, and then calls config.status.
22207 # config.status does its own redirection, appending to config.log.
22208 # Unfortunately, on DOS this fails, as config.log is still kept open
22209 # by configure, so config.status won't be able to write to it; its
22210 # output is simply discarded.  So we exec the FD to /dev/null,
22211 # effectively closing config.log, so it can be properly (re)opened and
22212 # appended to by config.status.  When coming back to configure, we
22213 # need to make the FD available again.
22214 if test "$no_create" != yes; then
22215   ac_cs_success=:
22216   ac_config_status_args=
22217   test "$silent" = yes &&
22218     ac_config_status_args="$ac_config_status_args --quiet"
22219   exec 5>/dev/null
22220   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22221   exec 5>>config.log
22222   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22223   # would make configure fail if this is the last instruction.
22224   $ac_cs_success || { (exit 1); exit 1; }
22225 fi
22226
22227 #
22228 # CONFIG_SUBDIRS section.
22229 #
22230 if test "$no_recursion" != yes; then
22231
22232   # Remove --cache-file and --srcdir arguments so they do not pile up.
22233   ac_sub_configure_args=
22234   ac_prev=
22235   eval "set x $ac_configure_args"
22236   shift
22237   for ac_arg
22238   do
22239     if test -n "$ac_prev"; then
22240       ac_prev=
22241       continue
22242     fi
22243     case $ac_arg in
22244     -cache-file | --cache-file | --cache-fil | --cache-fi \
22245     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22246       ac_prev=cache_file ;;
22247     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22248     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22249     | --c=*)
22250       ;;
22251     --config-cache | -C)
22252       ;;
22253     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22254       ac_prev=srcdir ;;
22255     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22256       ;;
22257     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22258       ac_prev=prefix ;;
22259     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22260       ;;
22261     *)
22262       case $ac_arg in
22263       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22264       esac
22265       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22266     esac
22267   done
22268
22269   # Always prepend --prefix to ensure using the same prefix
22270   # in subdir configurations.
22271   ac_arg="--prefix=$prefix"
22272   case $ac_arg in
22273   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22274   esac
22275   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22276
22277   ac_popdir=`pwd`
22278   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22279
22280     # Do not complain, so a configure script can configure whichever
22281     # parts of a large source tree are present.
22282     test -d "$srcdir/$ac_dir" || continue
22283
22284     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22285     echo "$as_me:$LINENO: $ac_msg" >&5
22286     echo "$ac_msg" >&6
22287     { as_dir="$ac_dir"
22288   case $as_dir in #(
22289   -*) as_dir=./$as_dir;;
22290   esac
22291   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22292     as_dirs=
22293     while :; do
22294       case $as_dir in #(
22295       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22296       *) as_qdir=$as_dir;;
22297       esac
22298       as_dirs="'$as_qdir' $as_dirs"
22299       as_dir=`$as_dirname -- "$as_dir" ||
22300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22301          X"$as_dir" : 'X\(//\)[^/]' \| \
22302          X"$as_dir" : 'X\(//\)$' \| \
22303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22304 echo X"$as_dir" |
22305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22306             s//\1/
22307             q
22308           }
22309           /^X\(\/\/\)[^/].*/{
22310             s//\1/
22311             q
22312           }
22313           /^X\(\/\/\)$/{
22314             s//\1/
22315             q
22316           }
22317           /^X\(\/\).*/{
22318             s//\1/
22319             q
22320           }
22321           s/.*/./; q'`
22322       test -d "$as_dir" && break
22323     done
22324     test -z "$as_dirs" || eval "mkdir $as_dirs"
22325   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22326 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22327    { (exit 1); exit 1; }; }; }
22328     ac_builddir=.
22329
22330 case "$ac_dir" in
22331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22332 *)
22333   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22334   # A ".." for each directory in $ac_dir_suffix.
22335   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22336   case $ac_top_builddir_sub in
22337   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22338   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22339   esac ;;
22340 esac
22341 ac_abs_top_builddir=$ac_pwd
22342 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22343 # for backward compatibility:
22344 ac_top_builddir=$ac_top_build_prefix
22345
22346 case $srcdir in
22347   .)  # We are building in place.
22348     ac_srcdir=.
22349     ac_top_srcdir=$ac_top_builddir_sub
22350     ac_abs_top_srcdir=$ac_pwd ;;
22351   [\\/]* | ?:[\\/]* )  # Absolute name.
22352     ac_srcdir=$srcdir$ac_dir_suffix;
22353     ac_top_srcdir=$srcdir
22354     ac_abs_top_srcdir=$srcdir ;;
22355   *) # Relative name.
22356     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22357     ac_top_srcdir=$ac_top_build_prefix$srcdir
22358     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22359 esac
22360 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22361
22362
22363     cd "$ac_dir"
22364
22365     # Check for guested configure; otherwise get Cygnus style configure.
22366     if test -f "$ac_srcdir/configure.gnu"; then
22367       ac_sub_configure=$ac_srcdir/configure.gnu
22368     elif test -f "$ac_srcdir/configure"; then
22369       ac_sub_configure=$ac_srcdir/configure
22370     elif test -f "$ac_srcdir/configure.in"; then
22371       # This should be Cygnus configure.
22372       ac_sub_configure=$ac_aux_dir/configure
22373     else
22374       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22375 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22376       ac_sub_configure=
22377     fi
22378
22379     # The recursion is here.
22380     if test -n "$ac_sub_configure"; then
22381       # Make the cache file name correct relative to the subdirectory.
22382       case $cache_file in
22383       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22384       *) # Relative name.
22385         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22386       esac
22387
22388       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22389 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22390       # The eval makes quoting arguments work.
22391       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22392            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22393         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22394 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22395    { (exit 1); exit 1; }; }
22396     fi
22397
22398     cd "$ac_popdir"
22399   done
22400 fi
22401