Correct some bogus target triples.
[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 TARGETS_TO_BUILD
694 LLVM_ENUM_TARGETS
695 LLVM_ENUM_ASM_PRINTERS
696 LLVM_ENUM_ASM_PARSERS
697 LLVM_ENUM_DISASSEMBLERS
698 ENABLE_CBE_PRINTF_A
699 CLANGPATH
700 CLANGXXPATH
701 ENABLE_BUILT_CLANG
702 OPTIMIZE_OPTION
703 EXTRA_OPTIONS
704 BINUTILS_INCDIR
705 ENABLE_LLVMC_DYNAMIC
706 ENABLE_LLVMC_DYNAMIC_PLUGINS
707 CXX
708 CXXFLAGS
709 ac_ct_CXX
710 NM
711 ifGNUmake
712 LN_S
713 CMP
714 CP
715 DATE
716 FIND
717 MKDIR
718 MV
719 RANLIB
720 AR
721 RM
722 SED
723 TAR
724 BINPWD
725 GRAPHVIZ
726 DOT
727 FDP
728 NEATO
729 TWOPI
730 CIRCO
731 GV
732 DOTTY
733 PERL
734 HAVE_PERL
735 INSTALL_PROGRAM
736 INSTALL_SCRIPT
737 INSTALL_DATA
738 BZIP2
739 CAT
740 DOXYGEN
741 GROFF
742 GZIP
743 POD2HTML
744 POD2MAN
745 PDFROFF
746 RUNTEST
747 TCLSH
748 ZIP
749 OCAMLC
750 OCAMLOPT
751 OCAMLDEP
752 OCAMLDOC
753 GAS
754 HAVE_LINK_RETAIN_SYMBOLS_FILE
755 INSTALL_LTDL_TRUE
756 INSTALL_LTDL_FALSE
757 CONVENIENCE_LTDL_TRUE
758 CONVENIENCE_LTDL_FALSE
759 LIBADD_DL
760 LLVMGCCCOMMAND
761 LLVMGXXCOMMAND
762 LLVMGCC
763 LLVMGXX
764 LLVMCC_OPTION
765 NO_VARIADIC_MACROS
766 NO_MISSING_FIELD_INITIALIZERS
767 USE_UDIS86
768 USE_OPROFILE
769 HAVE_PTHREAD
770 HUGE_VAL_SANITY
771 MMAP_FILE
772 LLVMCC1
773 LLVMCC1PLUS
774 LLVMGCCDIR
775 LLVMGCC_LANGS
776 SHLIBEXT
777 SHLIBPATH_VAR
778 LLVM_PREFIX
779 LLVM_BINDIR
780 LLVM_LIBDIR
781 LLVM_DATADIR
782 LLVM_DOCSDIR
783 LLVM_ETCDIR
784 LLVM_INCLUDEDIR
785 LLVM_INFODIR
786 LLVM_MANDIR
787 LLVM_CONFIGTIME
788 BINDINGS_TO_BUILD
789 ALL_BINDINGS
790 OCAML_LIBDIR
791 ENABLE_VISIBILITY_INLINES_HIDDEN
792 RPATH
793 RDYNAMIC
794 LIBOBJS
795 LTLIBOBJS'
796 ac_subst_files=''
797       ac_precious_vars='build_alias
798 host_alias
799 target_alias
800 CC
801 CFLAGS
802 LDFLAGS
803 CPPFLAGS
804 CPP
805 CXX
806 CXXFLAGS
807 CCC'
808 ac_subdirs_all='projects/llvm-gcc
809 projects/test-suite
810 projects/llvm-test
811 projects/poolalloc
812 projects/llvm-poolalloc
813 projects/sample
814 projects/privbracket
815 projects/llvm-stacker
816 projects/llvm-reopt
817 projects/llvm-java
818 projects/llvm-tv
819 projects/safecode
820 projects/llvm-kernel'
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
841
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
867
868 ac_prev=
869 ac_dashdash=
870 for ac_option
871 do
872   # If the previous option needs an argument, assign it.
873   if test -n "$ac_prev"; then
874     eval $ac_prev=\$ac_option
875     ac_prev=
876     continue
877   fi
878
879   case $ac_option in
880   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881   *)    ac_optarg=yes ;;
882   esac
883
884   # Accept the important Cygnus configure options, so we can diagnose typos.
885
886   case $ac_dashdash$ac_option in
887   --)
888     ac_dashdash=yes ;;
889
890   -bindir | --bindir | --bindi | --bind | --bin | --bi)
891     ac_prev=bindir ;;
892   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893     bindir=$ac_optarg ;;
894
895   -build | --build | --buil | --bui | --bu)
896     ac_prev=build_alias ;;
897   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898     build_alias=$ac_optarg ;;
899
900   -cache-file | --cache-file | --cache-fil | --cache-fi \
901   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902     ac_prev=cache_file ;;
903   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905     cache_file=$ac_optarg ;;
906
907   --config-cache | -C)
908     cache_file=config.cache ;;
909
910   -datadir | --datadir | --datadi | --datad)
911     ac_prev=datadir ;;
912   -datadir=* | --datadir=* | --datadi=* | --datad=*)
913     datadir=$ac_optarg ;;
914
915   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916   | --dataroo | --dataro | --datar)
917     ac_prev=datarootdir ;;
918   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920     datarootdir=$ac_optarg ;;
921
922   -disable-* | --disable-*)
923     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924     # Reject names that are not valid shell variable names.
925     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927    { (exit 1); exit 1; }; }
928     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929     eval enable_$ac_feature=no ;;
930
931   -docdir | --docdir | --docdi | --doc | --do)
932     ac_prev=docdir ;;
933   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934     docdir=$ac_optarg ;;
935
936   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937     ac_prev=dvidir ;;
938   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939     dvidir=$ac_optarg ;;
940
941   -enable-* | --enable-*)
942     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943     # Reject names that are not valid shell variable names.
944     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946    { (exit 1); exit 1; }; }
947     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948     eval enable_$ac_feature=\$ac_optarg ;;
949
950   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952   | --exec | --exe | --ex)
953     ac_prev=exec_prefix ;;
954   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956   | --exec=* | --exe=* | --ex=*)
957     exec_prefix=$ac_optarg ;;
958
959   -gas | --gas | --ga | --g)
960     # Obsolete; use --with-gas.
961     with_gas=yes ;;
962
963   -help | --help | --hel | --he | -h)
964     ac_init_help=long ;;
965   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966     ac_init_help=recursive ;;
967   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968     ac_init_help=short ;;
969
970   -host | --host | --hos | --ho)
971     ac_prev=host_alias ;;
972   -host=* | --host=* | --hos=* | --ho=*)
973     host_alias=$ac_optarg ;;
974
975   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976     ac_prev=htmldir ;;
977   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978   | --ht=*)
979     htmldir=$ac_optarg ;;
980
981   -includedir | --includedir | --includedi | --included | --include \
982   | --includ | --inclu | --incl | --inc)
983     ac_prev=includedir ;;
984   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985   | --includ=* | --inclu=* | --incl=* | --inc=*)
986     includedir=$ac_optarg ;;
987
988   -infodir | --infodir | --infodi | --infod | --info | --inf)
989     ac_prev=infodir ;;
990   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991     infodir=$ac_optarg ;;
992
993   -libdir | --libdir | --libdi | --libd)
994     ac_prev=libdir ;;
995   -libdir=* | --libdir=* | --libdi=* | --libd=*)
996     libdir=$ac_optarg ;;
997
998   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999   | --libexe | --libex | --libe)
1000     ac_prev=libexecdir ;;
1001   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002   | --libexe=* | --libex=* | --libe=*)
1003     libexecdir=$ac_optarg ;;
1004
1005   -localedir | --localedir | --localedi | --localed | --locale)
1006     ac_prev=localedir ;;
1007   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008     localedir=$ac_optarg ;;
1009
1010   -localstatedir | --localstatedir | --localstatedi | --localstated \
1011   | --localstate | --localstat | --localsta | --localst | --locals)
1012     ac_prev=localstatedir ;;
1013   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015     localstatedir=$ac_optarg ;;
1016
1017   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018     ac_prev=mandir ;;
1019   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020     mandir=$ac_optarg ;;
1021
1022   -nfp | --nfp | --nf)
1023     # Obsolete; use --without-fp.
1024     with_fp=no ;;
1025
1026   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027   | --no-cr | --no-c | -n)
1028     no_create=yes ;;
1029
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     no_recursion=yes ;;
1033
1034   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036   | --oldin | --oldi | --old | --ol | --o)
1037     ac_prev=oldincludedir ;;
1038   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041     oldincludedir=$ac_optarg ;;
1042
1043   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044     ac_prev=prefix ;;
1045   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046     prefix=$ac_optarg ;;
1047
1048   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049   | --program-pre | --program-pr | --program-p)
1050     ac_prev=program_prefix ;;
1051   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053     program_prefix=$ac_optarg ;;
1054
1055   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056   | --program-suf | --program-su | --program-s)
1057     ac_prev=program_suffix ;;
1058   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060     program_suffix=$ac_optarg ;;
1061
1062   -program-transform-name | --program-transform-name \
1063   | --program-transform-nam | --program-transform-na \
1064   | --program-transform-n | --program-transform- \
1065   | --program-transform | --program-transfor \
1066   | --program-transfo | --program-transf \
1067   | --program-trans | --program-tran \
1068   | --progr-tra | --program-tr | --program-t)
1069     ac_prev=program_transform_name ;;
1070   -program-transform-name=* | --program-transform-name=* \
1071   | --program-transform-nam=* | --program-transform-na=* \
1072   | --program-transform-n=* | --program-transform-=* \
1073   | --program-transform=* | --program-transfor=* \
1074   | --program-transfo=* | --program-transf=* \
1075   | --program-trans=* | --program-tran=* \
1076   | --progr-tra=* | --program-tr=* | --program-t=*)
1077     program_transform_name=$ac_optarg ;;
1078
1079   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080     ac_prev=pdfdir ;;
1081   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082     pdfdir=$ac_optarg ;;
1083
1084   -psdir | --psdir | --psdi | --psd | --ps)
1085     ac_prev=psdir ;;
1086   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087     psdir=$ac_optarg ;;
1088
1089   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090   | -silent | --silent | --silen | --sile | --sil)
1091     silent=yes ;;
1092
1093   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094     ac_prev=sbindir ;;
1095   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096   | --sbi=* | --sb=*)
1097     sbindir=$ac_optarg ;;
1098
1099   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101   | --sharedst | --shareds | --shared | --share | --shar \
1102   | --sha | --sh)
1103     ac_prev=sharedstatedir ;;
1104   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107   | --sha=* | --sh=*)
1108     sharedstatedir=$ac_optarg ;;
1109
1110   -site | --site | --sit)
1111     ac_prev=site ;;
1112   -site=* | --site=* | --sit=*)
1113     site=$ac_optarg ;;
1114
1115   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116     ac_prev=srcdir ;;
1117   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118     srcdir=$ac_optarg ;;
1119
1120   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121   | --syscon | --sysco | --sysc | --sys | --sy)
1122     ac_prev=sysconfdir ;;
1123   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125     sysconfdir=$ac_optarg ;;
1126
1127   -target | --target | --targe | --targ | --tar | --ta | --t)
1128     ac_prev=target_alias ;;
1129   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130     target_alias=$ac_optarg ;;
1131
1132   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133     verbose=yes ;;
1134
1135   -version | --version | --versio | --versi | --vers | -V)
1136     ac_init_version=: ;;
1137
1138   -with-* | --with-*)
1139     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142       { echo "$as_me: error: invalid package name: $ac_package" >&2
1143    { (exit 1); exit 1; }; }
1144     ac_package=`echo $ac_package| sed 's/-/_/g'`
1145     eval with_$ac_package=\$ac_optarg ;;
1146
1147   -without-* | --without-*)
1148     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149     # Reject names that are not valid shell variable names.
1150     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151       { echo "$as_me: error: invalid package name: $ac_package" >&2
1152    { (exit 1); exit 1; }; }
1153     ac_package=`echo $ac_package | sed 's/-/_/g'`
1154     eval with_$ac_package=no ;;
1155
1156   --x)
1157     # Obsolete; use --with-x.
1158     with_x=yes ;;
1159
1160   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161   | --x-incl | --x-inc | --x-in | --x-i)
1162     ac_prev=x_includes ;;
1163   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165     x_includes=$ac_optarg ;;
1166
1167   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169     ac_prev=x_libraries ;;
1170   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172     x_libraries=$ac_optarg ;;
1173
1174   -*) { echo "$as_me: error: unrecognized option: $ac_option
1175 Try \`$0 --help' for more information." >&2
1176    { (exit 1); exit 1; }; }
1177     ;;
1178
1179   *=*)
1180     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184    { (exit 1); exit 1; }; }
1185     eval $ac_envvar=\$ac_optarg
1186     export $ac_envvar ;;
1187
1188   *)
1189     # FIXME: should be removed in autoconf 3.0.
1190     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194     ;;
1195
1196   esac
1197 done
1198
1199 if test -n "$ac_prev"; then
1200   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201   { echo "$as_me: error: missing argument to $ac_option" >&2
1202    { (exit 1); exit 1; }; }
1203 fi
1204
1205 # Be sure to have absolute directory names.
1206 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207                 datadir sysconfdir sharedstatedir localstatedir includedir \
1208                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209                 libdir localedir mandir
1210 do
1211   eval ac_val=\$$ac_var
1212   case $ac_val in
1213     [\\/$]* | ?:[\\/]* )  continue;;
1214     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215   esac
1216   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217    { (exit 1); exit 1; }; }
1218 done
1219
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1223 build=$build_alias
1224 host=$host_alias
1225 target=$target_alias
1226
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229   if test "x$build_alias" = x; then
1230     cross_compiling=maybe
1231     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1232     If a cross compiler is detected then cross compile mode will be used." >&2
1233   elif test "x$build_alias" != "x$host_alias"; then
1234     cross_compiling=yes
1235   fi
1236 fi
1237
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241 test "$silent" = yes && exec 6>/dev/null
1242
1243
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247   { echo "$as_me: error: Working directory cannot be determined" >&2
1248    { (exit 1); exit 1; }; }
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250   { echo "$as_me: error: pwd does not report name of working directory" >&2
1251    { (exit 1); exit 1; }; }
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256   ac_srcdir_defaulted=yes
1257   # Try the directory containing this script, then the parent directory.
1258   ac_confdir=`$as_dirname -- "$0" ||
1259 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260          X"$0" : 'X\(//\)[^/]' \| \
1261          X"$0" : 'X\(//\)$' \| \
1262          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 echo X"$0" |
1264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)[^/].*/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\/\)$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\).*/{
1277             s//\1/
1278             q
1279           }
1280           s/.*/./; q'`
1281   srcdir=$ac_confdir
1282   if test ! -r "$srcdir/$ac_unique_file"; then
1283     srcdir=..
1284   fi
1285 else
1286   ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291    { (exit 1); exit 1; }; }
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296    { (exit 1); exit 1; }; }
1297         pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300   srcdir=.
1301 fi
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_env_${ac_var}_value=\$${ac_var}
1311   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1314
1315 #
1316 # Report the --help message.
1317 #
1318 if test "$ac_init_help" = "long"; then
1319   # Omit some internal or obsolete options to make the list less imposing.
1320   # This message is too long to be a string in the A/UX 3.1 sh.
1321   cat <<_ACEOF
1322 \`configure' configures llvm 2.8svn to adapt to many kinds of systems.
1323
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE.  See below for descriptions of some of the useful variables.
1328
1329 Defaults for the options are specified in brackets.
1330
1331 Configuration:
1332   -h, --help              display this help and exit
1333       --help=short        display options specific to this package
1334       --help=recursive    display the short help of all the included packages
1335   -V, --version           display version information and exit
1336   -q, --quiet, --silent   do not print \`checking...' messages
1337       --cache-file=FILE   cache test results in FILE [disabled]
1338   -C, --config-cache      alias for \`--cache-file=config.cache'
1339   -n, --no-create         do not create output files
1340       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1341
1342 Installation directories:
1343   --prefix=PREFIX         install architecture-independent files in PREFIX
1344                           [$ac_default_prefix]
1345   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1346                           [PREFIX]
1347
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1352
1353 For better control, use the options below.
1354
1355 Fine tuning of the installation directories:
1356   --bindir=DIR           user executables [EPREFIX/bin]
1357   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1358   --libexecdir=DIR       program executables [EPREFIX/libexec]
1359   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1360   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1361   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1362   --libdir=DIR           object code libraries [EPREFIX/lib]
1363   --includedir=DIR       C header files [PREFIX/include]
1364   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1365   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1366   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1367   --infodir=DIR          info documentation [DATAROOTDIR/info]
1368   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1369   --mandir=DIR           man documentation [DATAROOTDIR/man]
1370   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1371   --htmldir=DIR          html documentation [DOCDIR]
1372   --dvidir=DIR           dvi documentation [DOCDIR]
1373   --pdfdir=DIR           pdf documentation [DOCDIR]
1374   --psdir=DIR            ps documentation [DOCDIR]
1375 _ACEOF
1376
1377   cat <<\_ACEOF
1378
1379 System types:
1380   --build=BUILD     configure for building on BUILD [guessed]
1381   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1382   --target=TARGET   configure for building compilers for TARGET [HOST]
1383 _ACEOF
1384 fi
1385
1386 if test -n "$ac_init_help"; then
1387   case $ac_init_help in
1388      short | recursive ) echo "Configuration of llvm 2.8svn:";;
1389    esac
1390   cat <<\_ACEOF
1391
1392 Optional Features:
1393   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1394   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1395   --enable-optimized      Compile with optimizations enabled (default is NO)
1396   --enable-profiling      Compile with profiling enabled (default is NO)
1397   --enable-assertions     Compile with assertion checks enabled (default is
1398                           YES)
1399   --enable-expensive-checks
1400                           Compile with expensive debug checks enabled (default
1401                           is NO)
1402   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1403                           NO)
1404   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1405                           optimization is on and YES if it's off)
1406   --enable-jit            Enable Just In Time Compiling (default is YES)
1407   --enable-doxygen        Build doxygen documentation (default is NO)
1408   --enable-threads        Use threads if available (default is YES)
1409   --enable-pic            Build LLVM with Position Independent Code (default
1410                           is YES)
1411   --enable-shared         Build a shared library and link tools against it
1412                           (default is NO)
1413   --enable-targets        Build specific host targets: all or
1414                           target1,target2,... Valid targets are: host, x86,
1415                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1416                           pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1417                           and cpp (default=all)
1418   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1419                           %a (default is YES)
1420   --enable-bindings       Build specific language bindings:
1421                           all,auto,none,{binding-name} (default=auto)
1422   --enable-libffi         Check for the presence of libffi (default is NO)
1423   --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1424                           Win32)
1425   --enable-llvmc-dynamic-plugins
1426                           Enable dynamic LLVMC plugins (default is YES)
1427   --enable-ltdl-install   install libltdl
1428
1429 Optional Packages:
1430   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1431   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1432   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1433                           searches PATH)
1434   --with-llvmgcc          Specify location of llvm-gcc driver (default
1435                           searches PATH)
1436   --with-llvmgxx          Specify location of llvm-g++ driver (default
1437                           searches PATH)
1438   --with-clang            Specify location of clang compiler (default is
1439                           --with-built-clang)
1440   --with-built-clang      Use the compiled Clang as the LLVM compiler
1441                           (default=check)
1442   --with-optimize-option  Select the compiler options to use for optimized
1443                           builds
1444   --with-extra-options    Specify additional options to compile LLVM with
1445   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1446                           is stdlib)
1447   --with-c-include-dirs   Colon separated list of directories clang will
1448                           search for headers
1449   --with-cxx-include-root Directory with the libstdc++ headers.
1450   --with-cxx-include-arch Architecture of the libstdc++ headers.
1451   --with-cxx-include-32bit-dir
1452                           32 bit multilib dir.
1453   --with-cxx-include-64bit-dir
1454                           64 bit multilib directory.
1455   --with-binutils-include Specify path to binutils/include/ containing
1456                           plugin-api.h file for gold plugin.
1457   --with-tclinclude       directory where tcl headers are
1458   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1459                           clang, or none; default=check)
1460   --with-udis86=<path>    Use udis86 external x86 disassembler library
1461   --with-oprofile=<prefix>
1462                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1463
1464 Some influential environment variables:
1465   CC          C compiler command
1466   CFLAGS      C compiler flags
1467   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1468               nonstandard directory <lib dir>
1469   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1470               you have headers in a nonstandard directory <include dir>
1471   CPP         C preprocessor
1472   CXX         C++ compiler command
1473   CXXFLAGS    C++ compiler flags
1474
1475 Use these variables to override the choices made by `configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1477
1478 Report bugs to <llvmbugs@cs.uiuc.edu>.
1479 _ACEOF
1480 ac_status=$?
1481 fi
1482
1483 if test "$ac_init_help" = "recursive"; then
1484   # If there are subdirs, report their specific --help.
1485   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486     test -d "$ac_dir" || continue
1487     ac_builddir=.
1488
1489 case "$ac_dir" in
1490 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *)
1492   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1493   # A ".." for each directory in $ac_dir_suffix.
1494   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1495   case $ac_top_builddir_sub in
1496   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1498   esac ;;
1499 esac
1500 ac_abs_top_builddir=$ac_pwd
1501 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1502 # for backward compatibility:
1503 ac_top_builddir=$ac_top_build_prefix
1504
1505 case $srcdir in
1506   .)  # We are building in place.
1507     ac_srcdir=.
1508     ac_top_srcdir=$ac_top_builddir_sub
1509     ac_abs_top_srcdir=$ac_pwd ;;
1510   [\\/]* | ?:[\\/]* )  # Absolute name.
1511     ac_srcdir=$srcdir$ac_dir_suffix;
1512     ac_top_srcdir=$srcdir
1513     ac_abs_top_srcdir=$srcdir ;;
1514   *) # Relative name.
1515     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1516     ac_top_srcdir=$ac_top_build_prefix$srcdir
1517     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1518 esac
1519 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1520
1521     cd "$ac_dir" || { ac_status=$?; continue; }
1522     # Check for guested configure.
1523     if test -f "$ac_srcdir/configure.gnu"; then
1524       echo &&
1525       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526     elif test -f "$ac_srcdir/configure"; then
1527       echo &&
1528       $SHELL "$ac_srcdir/configure" --help=recursive
1529     else
1530       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531     fi || ac_status=$?
1532     cd "$ac_pwd" || { ac_status=$?; break; }
1533   done
1534 fi
1535
1536 test -n "$ac_init_help" && exit $ac_status
1537 if $ac_init_version; then
1538   cat <<\_ACEOF
1539 llvm configure 2.8svn
1540 generated by GNU Autoconf 2.60
1541
1542 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1543 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1544 This configure script is free software; the Free Software Foundation
1545 gives unlimited permission to copy, distribute and modify it.
1546
1547 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1548 _ACEOF
1549   exit
1550 fi
1551 cat >config.log <<_ACEOF
1552 This file contains any messages produced by compilers while
1553 running configure, to aid debugging if configure makes a mistake.
1554
1555 It was created by llvm $as_me 2.8svn, which was
1556 generated by GNU Autoconf 2.60.  Invocation command line was
1557
1558   $ $0 $@
1559
1560 _ACEOF
1561 exec 5>>config.log
1562 {
1563 cat <<_ASUNAME
1564 ## --------- ##
1565 ## Platform. ##
1566 ## --------- ##
1567
1568 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1569 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1570 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1571 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1572 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1573
1574 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1575 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1576
1577 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1578 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1579 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1580 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1581 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1582 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1583 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1584
1585 _ASUNAME
1586
1587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 for as_dir in $PATH
1589 do
1590   IFS=$as_save_IFS
1591   test -z "$as_dir" && as_dir=.
1592   echo "PATH: $as_dir"
1593 done
1594 IFS=$as_save_IFS
1595
1596 } >&5
1597
1598 cat >&5 <<_ACEOF
1599
1600
1601 ## ----------- ##
1602 ## Core tests. ##
1603 ## ----------- ##
1604
1605 _ACEOF
1606
1607
1608 # Keep a trace of the command line.
1609 # Strip out --no-create and --no-recursion so they do not pile up.
1610 # Strip out --silent because we don't want to record it for future runs.
1611 # Also quote any args containing shell meta-characters.
1612 # Make two passes to allow for proper duplicate-argument suppression.
1613 ac_configure_args=
1614 ac_configure_args0=
1615 ac_configure_args1=
1616 ac_must_keep_next=false
1617 for ac_pass in 1 2
1618 do
1619   for ac_arg
1620   do
1621     case $ac_arg in
1622     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1623     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1624     | -silent | --silent | --silen | --sile | --sil)
1625       continue ;;
1626     *\'*)
1627       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1628     esac
1629     case $ac_pass in
1630     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1631     2)
1632       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1633       if test $ac_must_keep_next = true; then
1634         ac_must_keep_next=false # Got value, back to normal.
1635       else
1636         case $ac_arg in
1637           *=* | --config-cache | -C | -disable-* | --disable-* \
1638           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1639           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1640           | -with-* | --with-* | -without-* | --without-* | --x)
1641             case "$ac_configure_args0 " in
1642               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1643             esac
1644             ;;
1645           -* ) ac_must_keep_next=true ;;
1646         esac
1647       fi
1648       ac_configure_args="$ac_configure_args '$ac_arg'"
1649       ;;
1650     esac
1651   done
1652 done
1653 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1654 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1655
1656 # When interrupted or exit'd, cleanup temporary files, and complete
1657 # config.log.  We remove comments because anyway the quotes in there
1658 # would cause problems or look ugly.
1659 # WARNING: Use '\'' to represent an apostrophe within the trap.
1660 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1661 trap 'exit_status=$?
1662   # Save into config.log some information that might help in debugging.
1663   {
1664     echo
1665
1666     cat <<\_ASBOX
1667 ## ---------------- ##
1668 ## Cache variables. ##
1669 ## ---------------- ##
1670 _ASBOX
1671     echo
1672     # The following way of writing the cache mishandles newlines in values,
1673 (
1674   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1675     eval ac_val=\$$ac_var
1676     case $ac_val in #(
1677     *${as_nl}*)
1678       case $ac_var in #(
1679       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1680 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1681       esac
1682       case $ac_var in #(
1683       _ | IFS | as_nl) ;; #(
1684       *) $as_unset $ac_var ;;
1685       esac ;;
1686     esac
1687   done
1688   (set) 2>&1 |
1689     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1690     *${as_nl}ac_space=\ *)
1691       sed -n \
1692         "s/'\''/'\''\\\\'\'''\''/g;
1693           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1694       ;; #(
1695     *)
1696       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1697       ;;
1698     esac |
1699     sort
1700 )
1701     echo
1702
1703     cat <<\_ASBOX
1704 ## ----------------- ##
1705 ## Output variables. ##
1706 ## ----------------- ##
1707 _ASBOX
1708     echo
1709     for ac_var in $ac_subst_vars
1710     do
1711       eval ac_val=\$$ac_var
1712       case $ac_val in
1713       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1714       esac
1715       echo "$ac_var='\''$ac_val'\''"
1716     done | sort
1717     echo
1718
1719     if test -n "$ac_subst_files"; then
1720       cat <<\_ASBOX
1721 ## ------------------- ##
1722 ## File substitutions. ##
1723 ## ------------------- ##
1724 _ASBOX
1725       echo
1726       for ac_var in $ac_subst_files
1727       do
1728         eval ac_val=\$$ac_var
1729         case $ac_val in
1730         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1731         esac
1732         echo "$ac_var='\''$ac_val'\''"
1733       done | sort
1734       echo
1735     fi
1736
1737     if test -s confdefs.h; then
1738       cat <<\_ASBOX
1739 ## ----------- ##
1740 ## confdefs.h. ##
1741 ## ----------- ##
1742 _ASBOX
1743       echo
1744       cat confdefs.h
1745       echo
1746     fi
1747     test "$ac_signal" != 0 &&
1748       echo "$as_me: caught signal $ac_signal"
1749     echo "$as_me: exit $exit_status"
1750   } >&5
1751   rm -f core *.core core.conftest.* &&
1752     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1753     exit $exit_status
1754 ' 0
1755 for ac_signal in 1 2 13 15; do
1756   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1757 done
1758 ac_signal=0
1759
1760 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1761 rm -f -r conftest* confdefs.h
1762
1763 # Predefined preprocessor variables.
1764
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_NAME "$PACKAGE_NAME"
1767 _ACEOF
1768
1769
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1772 _ACEOF
1773
1774
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1777 _ACEOF
1778
1779
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_STRING "$PACKAGE_STRING"
1782 _ACEOF
1783
1784
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1787 _ACEOF
1788
1789
1790 # Let the site file select an alternate cache file if it wants to.
1791 # Prefer explicitly selected file to automatically selected ones.
1792 if test -n "$CONFIG_SITE"; then
1793   set x "$CONFIG_SITE"
1794 elif test "x$prefix" != xNONE; then
1795   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1796 else
1797   set x "$ac_default_prefix/share/config.site" \
1798         "$ac_default_prefix/etc/config.site"
1799 fi
1800 shift
1801 for ac_site_file
1802 do
1803   if test -r "$ac_site_file"; then
1804     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1805 echo "$as_me: loading site script $ac_site_file" >&6;}
1806     sed 's/^/| /' "$ac_site_file" >&5
1807     . "$ac_site_file"
1808   fi
1809 done
1810
1811 if test -r "$cache_file"; then
1812   # Some versions of bash will fail to source /dev/null (special
1813   # files actually), so we avoid doing that.
1814   if test -f "$cache_file"; then
1815     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1816 echo "$as_me: loading cache $cache_file" >&6;}
1817     case $cache_file in
1818       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1819       *)                      . "./$cache_file";;
1820     esac
1821   fi
1822 else
1823   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1824 echo "$as_me: creating cache $cache_file" >&6;}
1825   >$cache_file
1826 fi
1827
1828 # Check that the precious variables saved in the cache have kept the same
1829 # value.
1830 ac_cache_corrupted=false
1831 for ac_var in $ac_precious_vars; do
1832   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1833   eval ac_new_set=\$ac_env_${ac_var}_set
1834   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1835   eval ac_new_val=\$ac_env_${ac_var}_value
1836   case $ac_old_set,$ac_new_set in
1837     set,)
1838       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1839 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1840       ac_cache_corrupted=: ;;
1841     ,set)
1842       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1843 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1844       ac_cache_corrupted=: ;;
1845     ,);;
1846     *)
1847       if test "x$ac_old_val" != "x$ac_new_val"; then
1848         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1849 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1850         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1851 echo "$as_me:   former value:  $ac_old_val" >&2;}
1852         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1853 echo "$as_me:   current value: $ac_new_val" >&2;}
1854         ac_cache_corrupted=:
1855       fi;;
1856   esac
1857   # Pass precious variables to config.status.
1858   if test "$ac_new_set" = set; then
1859     case $ac_new_val in
1860     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1861     *) ac_arg=$ac_var=$ac_new_val ;;
1862     esac
1863     case " $ac_configure_args " in
1864       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1865       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1866     esac
1867   fi
1868 done
1869 if $ac_cache_corrupted; then
1870   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1871 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1872   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1873 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1874    { (exit 1); exit 1; }; }
1875 fi
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901 ac_ext=c
1902 ac_cpp='$CPP $CPPFLAGS'
1903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1906
1907
1908
1909 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1910
1911
1912
1913
1914
1915
1916
1917 ac_aux_dir=
1918 for ac_dir in autoconf "$srcdir"/autoconf; do
1919   if test -f "$ac_dir/install-sh"; then
1920     ac_aux_dir=$ac_dir
1921     ac_install_sh="$ac_aux_dir/install-sh -c"
1922     break
1923   elif test -f "$ac_dir/install.sh"; then
1924     ac_aux_dir=$ac_dir
1925     ac_install_sh="$ac_aux_dir/install.sh -c"
1926     break
1927   elif test -f "$ac_dir/shtool"; then
1928     ac_aux_dir=$ac_dir
1929     ac_install_sh="$ac_aux_dir/shtool install -c"
1930     break
1931   fi
1932 done
1933 if test -z "$ac_aux_dir"; then
1934   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1935 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1936    { (exit 1); exit 1; }; }
1937 fi
1938
1939 # These three variables are undocumented and unsupported,
1940 # and are intended to be withdrawn in a future Autoconf release.
1941 # They can cause serious problems if a builder's source tree is in a directory
1942 # whose full name contains unusual characters.
1943 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1944 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1945 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1946
1947
1948
1949 if test ${srcdir} != "." ; then
1950   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1951     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1952 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1953    { (exit 1); exit 1; }; }
1954   fi
1955 fi
1956
1957
1958
1959 if test -d ${srcdir}/projects/llvm-gcc ; then
1960   subdirs="$subdirs projects/llvm-gcc"
1961
1962 fi
1963
1964 if test -d ${srcdir}/projects/test-suite ; then
1965   subdirs="$subdirs projects/test-suite"
1966
1967 fi
1968
1969 if test -d ${srcdir}/projects/llvm-test ; then
1970   subdirs="$subdirs projects/llvm-test"
1971
1972 fi
1973
1974 if test -d ${srcdir}/projects/poolalloc ; then
1975   subdirs="$subdirs projects/poolalloc"
1976
1977 fi
1978
1979 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1980   subdirs="$subdirs projects/llvm-poolalloc"
1981
1982 fi
1983
1984 for i in `ls ${srcdir}/projects`
1985 do
1986   if test -d ${srcdir}/projects/${i} ; then
1987     case ${i} in
1988       CVS) ;;
1989       sample)       subdirs="$subdirs projects/sample"
1990     ;;
1991       privbracket)  subdirs="$subdirs projects/privbracket"
1992  ;;
1993       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1994  ;;
1995       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
1996 ;;
1997       llvm-java)    subdirs="$subdirs projects/llvm-java"
1998  ;;
1999       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2000    ;;
2001       safecode)     subdirs="$subdirs projects/safecode"
2002  ;;
2003       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2004  ;;
2005       llvm-gcc)       ;;
2006       test-suite)     ;;
2007       llvm-test)      ;;
2008       poolalloc)      ;;
2009       llvm-poolalloc) ;;
2010       *)
2011         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2012 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2013         ;;
2014     esac
2015   fi
2016 done
2017
2018
2019 # Make sure we can run config.sub.
2020 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2021   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2022 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2023    { (exit 1); exit 1; }; }
2024
2025 { echo "$as_me:$LINENO: checking build system type" >&5
2026 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2027 if test "${ac_cv_build+set}" = set; then
2028   echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030   ac_build_alias=$build_alias
2031 test "x$ac_build_alias" = x &&
2032   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2033 test "x$ac_build_alias" = x &&
2034   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2035 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2036    { (exit 1); exit 1; }; }
2037 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2038   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2039 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2040    { (exit 1); exit 1; }; }
2041
2042 fi
2043 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2044 echo "${ECHO_T}$ac_cv_build" >&6; }
2045 case $ac_cv_build in
2046 *-*-*) ;;
2047 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2048 echo "$as_me: error: invalid value of canonical build" >&2;}
2049    { (exit 1); exit 1; }; };;
2050 esac
2051 build=$ac_cv_build
2052 ac_save_IFS=$IFS; IFS='-'
2053 set x $ac_cv_build
2054 shift
2055 build_cpu=$1
2056 build_vendor=$2
2057 shift; shift
2058 # Remember, the first character of IFS is used to create $*,
2059 # except with old shells:
2060 build_os=$*
2061 IFS=$ac_save_IFS
2062 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2063
2064
2065 { echo "$as_me:$LINENO: checking host system type" >&5
2066 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2067 if test "${ac_cv_host+set}" = set; then
2068   echo $ECHO_N "(cached) $ECHO_C" >&6
2069 else
2070   if test "x$host_alias" = x; then
2071   ac_cv_host=$ac_cv_build
2072 else
2073   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2074     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2075 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2076    { (exit 1); exit 1; }; }
2077 fi
2078
2079 fi
2080 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2081 echo "${ECHO_T}$ac_cv_host" >&6; }
2082 case $ac_cv_host in
2083 *-*-*) ;;
2084 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2085 echo "$as_me: error: invalid value of canonical host" >&2;}
2086    { (exit 1); exit 1; }; };;
2087 esac
2088 host=$ac_cv_host
2089 ac_save_IFS=$IFS; IFS='-'
2090 set x $ac_cv_host
2091 shift
2092 host_cpu=$1
2093 host_vendor=$2
2094 shift; shift
2095 # Remember, the first character of IFS is used to create $*,
2096 # except with old shells:
2097 host_os=$*
2098 IFS=$ac_save_IFS
2099 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2100
2101
2102 { echo "$as_me:$LINENO: checking target system type" >&5
2103 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2104 if test "${ac_cv_target+set}" = set; then
2105   echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107   if test "x$target_alias" = x; then
2108   ac_cv_target=$ac_cv_host
2109 else
2110   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2111     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2112 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2113    { (exit 1); exit 1; }; }
2114 fi
2115
2116 fi
2117 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2118 echo "${ECHO_T}$ac_cv_target" >&6; }
2119 case $ac_cv_target in
2120 *-*-*) ;;
2121 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2122 echo "$as_me: error: invalid value of canonical target" >&2;}
2123    { (exit 1); exit 1; }; };;
2124 esac
2125 target=$ac_cv_target
2126 ac_save_IFS=$IFS; IFS='-'
2127 set x $ac_cv_target
2128 shift
2129 target_cpu=$1
2130 target_vendor=$2
2131 shift; shift
2132 # Remember, the first character of IFS is used to create $*,
2133 # except with old shells:
2134 target_os=$*
2135 IFS=$ac_save_IFS
2136 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2137
2138
2139 # The aliases save the names the user supplied, while $host etc.
2140 # will get canonicalized.
2141 test -n "$target_alias" &&
2142   test "$program_prefix$program_suffix$program_transform_name" = \
2143     NONENONEs,x,x, &&
2144   program_prefix=${target_alias}-
2145
2146 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2147 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2148 if test "${llvm_cv_os_type+set}" = set; then
2149   echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151   case $host in
2152   *-*-aix*)
2153     llvm_cv_link_all_option="-Wl,--whole-archive"
2154     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2155     llvm_cv_os_type="AIX"
2156     llvm_cv_platform_type="Unix" ;;
2157   *-*-irix*)
2158     llvm_cv_link_all_option="-Wl,--whole-archive"
2159     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2160     llvm_cv_os_type="IRIX"
2161     llvm_cv_platform_type="Unix" ;;
2162   *-*-cygwin*)
2163     llvm_cv_link_all_option="-Wl,--whole-archive"
2164     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2165     llvm_cv_os_type="Cygwin"
2166     llvm_cv_platform_type="Unix" ;;
2167   *-*-darwin*)
2168     llvm_cv_link_all_option="-Wl,-all_load"
2169     llvm_cv_no_link_all_option="-Wl,-noall_load"
2170     llvm_cv_os_type="Darwin"
2171     llvm_cv_platform_type="Unix" ;;
2172   *-*-minix*)
2173     llvm_cv_link_all_option="-Wl,-all_load"
2174     llvm_cv_no_link_all_option="-Wl,-noall_load"
2175     llvm_cv_os_type="Minix"
2176     llvm_cv_platform_type="Unix" ;;
2177   *-*-freebsd*)
2178     llvm_cv_link_all_option="-Wl,--whole-archive"
2179     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2180     llvm_cv_os_type="FreeBSD"
2181     llvm_cv_platform_type="Unix" ;;
2182   *-*-openbsd*)
2183     llvm_cv_link_all_option="-Wl,--whole-archive"
2184     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2185     llvm_cv_os_type="OpenBSD"
2186     llvm_cv_platform_type="Unix" ;;
2187   *-*-netbsd*)
2188     llvm_cv_link_all_option="-Wl,--whole-archive"
2189     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2190     llvm_cv_os_type="NetBSD"
2191     llvm_cv_platform_type="Unix" ;;
2192   *-*-dragonfly*)
2193     llvm_cv_link_all_option="-Wl,--whole-archive"
2194     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2195     llvm_cv_os_type="DragonFly"
2196     llvm_cv_platform_type="Unix" ;;
2197   *-*-hpux*)
2198     llvm_cv_link_all_option="-Wl,--whole-archive"
2199     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2200     llvm_cv_os_type="HP-UX"
2201     llvm_cv_platform_type="Unix" ;;
2202   *-*-interix*)
2203     llvm_cv_link_all_option="-Wl,--whole-archive"
2204     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2205     llvm_cv_os_type="Interix"
2206     llvm_cv_platform_type="Unix" ;;
2207   *-*-linux*)
2208     llvm_cv_link_all_option="-Wl,--whole-archive"
2209     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2210     llvm_cv_os_type="Linux"
2211     llvm_cv_platform_type="Unix" ;;
2212   *-*-solaris*)
2213     llvm_cv_link_all_option="-Wl,-z,allextract"
2214     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2215     llvm_cv_os_type="SunOS"
2216     llvm_cv_platform_type="Unix" ;;
2217   *-*-auroraux*)
2218     llvm_cv_link_all_option="-Wl,-z,allextract"
2219     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2220     llvm_cv_os_type="AuroraUX"
2221     llvm_cv_platform_type="Unix" ;;
2222   *-*-win32*)
2223     llvm_cv_link_all_option="-Wl,--whole-archive"
2224     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2225     llvm_cv_os_type="Win32"
2226     llvm_cv_platform_type="Win32" ;;
2227   *-*-mingw*)
2228     llvm_cv_link_all_option="-Wl,--whole-archive"
2229     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2230     llvm_cv_os_type="MingW"
2231     llvm_cv_platform_type="Win32" ;;
2232   *-*-haiku*)
2233     llvm_cv_link_all_option="-Wl,--whole-archive"
2234     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2235     llvm_cv_os_type="Haiku"
2236     llvm_cv_platform_type="Unix" ;;
2237   *-unknown-eabi*)
2238     llvm_cv_link_all_option="-Wl,--whole-archive"
2239     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2240     llvm_cv_os_type="Freestanding"
2241     llvm_cv_platform_type="Unix" ;;
2242   *-unknown-elf*)
2243     llvm_cv_link_all_option="-Wl,--whole-archive"
2244     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2245     llvm_cv_os_type="Freestanding"
2246     llvm_cv_platform_type="Unix" ;;
2247   *)
2248     llvm_cv_link_all_option=""
2249     llvm_cv_no_link_all_option=""
2250     llvm_cv_os_type="Unknown"
2251     llvm_cv_platform_type="Unknown" ;;
2252 esac
2253 fi
2254 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2255 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2256
2257 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2258 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2259 if test "${llvm_cv_target_os_type+set}" = set; then
2260   echo $ECHO_N "(cached) $ECHO_C" >&6
2261 else
2262   case $target in
2263   *-*-aix*)
2264     llvm_cv_target_os_type="AIX" ;;
2265   *-*-irix*)
2266     llvm_cv_target_os_type="IRIX" ;;
2267   *-*-cygwin*)
2268     llvm_cv_target_os_type="Cygwin" ;;
2269   *-*-darwin*)
2270     llvm_cv_target_os_type="Darwin" ;;
2271   *-*-minix*)
2272     llvm_cv_target_os_type="Minix" ;;
2273   *-*-freebsd*)
2274     llvm_cv_target_os_type="FreeBSD" ;;
2275   *-*-openbsd*)
2276     llvm_cv_target_os_type="OpenBSD" ;;
2277   *-*-netbsd*)
2278     llvm_cv_target_os_type="NetBSD" ;;
2279   *-*-dragonfly*)
2280     llvm_cv_target_os_type="DragonFly" ;;
2281   *-*-hpux*)
2282     llvm_cv_target_os_type="HP-UX" ;;
2283   *-*-interix*)
2284     llvm_cv_target_os_type="Interix" ;;
2285   *-*-linux*)
2286     llvm_cv_target_os_type="Linux" ;;
2287   *-*-solaris*)
2288     llvm_cv_target_os_type="SunOS" ;;
2289   *-*-auroraux*)
2290     llvm_cv_target_os_type="AuroraUX" ;;
2291   *-*-win32*)
2292     llvm_cv_target_os_type="Win32" ;;
2293   *-*-mingw*)
2294     llvm_cv_target_os_type="MingW" ;;
2295   *-*-haiku*)
2296     llvm_cv_target_os_type="Haiku" ;;
2297   *-unknown-eabi*)
2298     llvm_cv_target_os_type="Freestanding" ;;
2299   *)
2300     llvm_cv_target_os_type="Unknown" ;;
2301 esac
2302 fi
2303 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2304 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2305
2306 if test "$llvm_cv_os_type" = "Unknown" ; then
2307   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2308 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2309    { (exit 1); exit 1; }; }
2310 fi
2311
2312 OS=$llvm_cv_os_type
2313
2314 HOST_OS=$llvm_cv_os_type
2315
2316 TARGET_OS=$llvm_cv_target_os_type
2317
2318
2319 LINKALL=$llvm_cv_link_all_option
2320
2321 NOLINKALL=$llvm_cv_no_link_all_option
2322
2323
2324 case $llvm_cv_platform_type in
2325   Unix)
2326
2327 cat >>confdefs.h <<\_ACEOF
2328 #define LLVM_ON_UNIX 1
2329 _ACEOF
2330
2331     LLVM_ON_UNIX=1
2332
2333     LLVM_ON_WIN32=0
2334
2335     ;;
2336   Win32)
2337
2338 cat >>confdefs.h <<\_ACEOF
2339 #define LLVM_ON_WIN32 1
2340 _ACEOF
2341
2342     LLVM_ON_UNIX=0
2343
2344     LLVM_ON_WIN32=1
2345
2346     ;;
2347 esac
2348
2349 { echo "$as_me:$LINENO: checking target architecture" >&5
2350 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2351 if test "${llvm_cv_target_arch+set}" = set; then
2352   echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354   case $target in
2355   i?86-*)                 llvm_cv_target_arch="x86" ;;
2356   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2357   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2358   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2359   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2360   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2361   mips-*)                 llvm_cv_target_arch="Mips" ;;
2362   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2363   xcore-*)                llvm_cv_target_arch="XCore" ;;
2364   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2365   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2366   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2367   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2368   *)                      llvm_cv_target_arch="Unknown" ;;
2369 esac
2370 fi
2371 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2372 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2373
2374 if test "$llvm_cv_target_arch" = "Unknown" ; then
2375   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2376 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2377 fi
2378
2379 # Determine the LLVM native architecture for the target
2380 case "$llvm_cv_target_arch" in
2381     x86)     LLVM_NATIVE_ARCH="X86" ;;
2382     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2383     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2384 esac
2385
2386 ARCH=$llvm_cv_target_arch
2387
2388
2389 ac_ext=c
2390 ac_cpp='$CPP $CPPFLAGS'
2391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394 if test -n "$ac_tool_prefix"; then
2395   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2396 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2399 if test "${ac_cv_prog_CC+set}" = set; then
2400   echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402   if test -n "$CC"; then
2403   ac_cv_prog_CC="$CC" # Let the user override the test.
2404 else
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 for as_dir in $PATH
2407 do
2408   IFS=$as_save_IFS
2409   test -z "$as_dir" && as_dir=.
2410   for ac_exec_ext in '' $ac_executable_extensions; do
2411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2412     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414     break 2
2415   fi
2416 done
2417 done
2418 IFS=$as_save_IFS
2419
2420 fi
2421 fi
2422 CC=$ac_cv_prog_CC
2423 if test -n "$CC"; then
2424   { echo "$as_me:$LINENO: result: $CC" >&5
2425 echo "${ECHO_T}$CC" >&6; }
2426 else
2427   { echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6; }
2429 fi
2430
2431
2432 fi
2433 if test -z "$ac_cv_prog_CC"; then
2434   ac_ct_CC=$CC
2435   # Extract the first word of "gcc", so it can be a program name with args.
2436 set dummy gcc; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2440   echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442   if test -n "$ac_ct_CC"; then
2443   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2447 do
2448   IFS=$as_save_IFS
2449   test -z "$as_dir" && as_dir=.
2450   for ac_exec_ext in '' $ac_executable_extensions; do
2451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2452     ac_cv_prog_ac_ct_CC="gcc"
2453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454     break 2
2455   fi
2456 done
2457 done
2458 IFS=$as_save_IFS
2459
2460 fi
2461 fi
2462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2463 if test -n "$ac_ct_CC"; then
2464   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2465 echo "${ECHO_T}$ac_ct_CC" >&6; }
2466 else
2467   { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2469 fi
2470
2471   if test "x$ac_ct_CC" = x; then
2472     CC=""
2473   else
2474     case $cross_compiling:$ac_tool_warned in
2475 yes:)
2476 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2477 whose name does not start with the host triplet.  If you think this
2478 configuration is useful to you, please write to autoconf@gnu.org." >&5
2479 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2480 whose name does not start with the host triplet.  If you think this
2481 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2482 ac_tool_warned=yes ;;
2483 esac
2484     CC=$ac_ct_CC
2485   fi
2486 else
2487   CC="$ac_cv_prog_CC"
2488 fi
2489
2490 if test -z "$CC"; then
2491           if test -n "$ac_tool_prefix"; then
2492     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2493 set dummy ${ac_tool_prefix}cc; ac_word=$2
2494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2496 if test "${ac_cv_prog_CC+set}" = set; then
2497   echo $ECHO_N "(cached) $ECHO_C" >&6
2498 else
2499   if test -n "$CC"; then
2500   ac_cv_prog_CC="$CC" # Let the user override the test.
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505   IFS=$as_save_IFS
2506   test -z "$as_dir" && as_dir=.
2507   for ac_exec_ext in '' $ac_executable_extensions; do
2508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2509     ac_cv_prog_CC="${ac_tool_prefix}cc"
2510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2511     break 2
2512   fi
2513 done
2514 done
2515 IFS=$as_save_IFS
2516
2517 fi
2518 fi
2519 CC=$ac_cv_prog_CC
2520 if test -n "$CC"; then
2521   { echo "$as_me:$LINENO: result: $CC" >&5
2522 echo "${ECHO_T}$CC" >&6; }
2523 else
2524   { echo "$as_me:$LINENO: result: no" >&5
2525 echo "${ECHO_T}no" >&6; }
2526 fi
2527
2528
2529   fi
2530 fi
2531 if test -z "$CC"; then
2532   # Extract the first word of "cc", so it can be a program name with args.
2533 set dummy cc; ac_word=$2
2534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536 if test "${ac_cv_prog_CC+set}" = set; then
2537   echo $ECHO_N "(cached) $ECHO_C" >&6
2538 else
2539   if test -n "$CC"; then
2540   ac_cv_prog_CC="$CC" # Let the user override the test.
2541 else
2542   ac_prog_rejected=no
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546   IFS=$as_save_IFS
2547   test -z "$as_dir" && as_dir=.
2548   for ac_exec_ext in '' $ac_executable_extensions; do
2549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2550     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2551        ac_prog_rejected=yes
2552        continue
2553      fi
2554     ac_cv_prog_CC="cc"
2555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556     break 2
2557   fi
2558 done
2559 done
2560 IFS=$as_save_IFS
2561
2562 if test $ac_prog_rejected = yes; then
2563   # We found a bogon in the path, so make sure we never use it.
2564   set dummy $ac_cv_prog_CC
2565   shift
2566   if test $# != 0; then
2567     # We chose a different compiler from the bogus one.
2568     # However, it has the same basename, so the bogon will be chosen
2569     # first if we set CC to just the basename; use the full file name.
2570     shift
2571     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2572   fi
2573 fi
2574 fi
2575 fi
2576 CC=$ac_cv_prog_CC
2577 if test -n "$CC"; then
2578   { echo "$as_me:$LINENO: result: $CC" >&5
2579 echo "${ECHO_T}$CC" >&6; }
2580 else
2581   { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2583 fi
2584
2585
2586 fi
2587 if test -z "$CC"; then
2588   if test -n "$ac_tool_prefix"; then
2589   for ac_prog in cl.exe
2590   do
2591     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2595 if test "${ac_cv_prog_CC+set}" = set; then
2596   echo $ECHO_N "(cached) $ECHO_C" >&6
2597 else
2598   if test -n "$CC"; then
2599   ac_cv_prog_CC="$CC" # Let the user override the test.
2600 else
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH
2603 do
2604   IFS=$as_save_IFS
2605   test -z "$as_dir" && as_dir=.
2606   for ac_exec_ext in '' $ac_executable_extensions; do
2607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2608     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610     break 2
2611   fi
2612 done
2613 done
2614 IFS=$as_save_IFS
2615
2616 fi
2617 fi
2618 CC=$ac_cv_prog_CC
2619 if test -n "$CC"; then
2620   { echo "$as_me:$LINENO: result: $CC" >&5
2621 echo "${ECHO_T}$CC" >&6; }
2622 else
2623   { echo "$as_me:$LINENO: result: no" >&5
2624 echo "${ECHO_T}no" >&6; }
2625 fi
2626
2627
2628     test -n "$CC" && break
2629   done
2630 fi
2631 if test -z "$CC"; then
2632   ac_ct_CC=$CC
2633   for ac_prog in cl.exe
2634 do
2635   # Extract the first word of "$ac_prog", so it can be a program name with args.
2636 set dummy $ac_prog; ac_word=$2
2637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2640   echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642   if test -n "$ac_ct_CC"; then
2643   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648   IFS=$as_save_IFS
2649   test -z "$as_dir" && as_dir=.
2650   for ac_exec_ext in '' $ac_executable_extensions; do
2651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2652     ac_cv_prog_ac_ct_CC="$ac_prog"
2653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654     break 2
2655   fi
2656 done
2657 done
2658 IFS=$as_save_IFS
2659
2660 fi
2661 fi
2662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2663 if test -n "$ac_ct_CC"; then
2664   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2665 echo "${ECHO_T}$ac_ct_CC" >&6; }
2666 else
2667   { echo "$as_me:$LINENO: result: no" >&5
2668 echo "${ECHO_T}no" >&6; }
2669 fi
2670
2671
2672   test -n "$ac_ct_CC" && break
2673 done
2674
2675   if test "x$ac_ct_CC" = x; then
2676     CC=""
2677   else
2678     case $cross_compiling:$ac_tool_warned in
2679 yes:)
2680 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2681 whose name does not start with the host triplet.  If you think this
2682 configuration is useful to you, please write to autoconf@gnu.org." >&5
2683 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2684 whose name does not start with the host triplet.  If you think this
2685 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2686 ac_tool_warned=yes ;;
2687 esac
2688     CC=$ac_ct_CC
2689   fi
2690 fi
2691
2692 fi
2693
2694
2695 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2696 See \`config.log' for more details." >&5
2697 echo "$as_me: error: no acceptable C compiler found in \$PATH
2698 See \`config.log' for more details." >&2;}
2699    { (exit 1); exit 1; }; }
2700
2701 # Provide some information about the compiler.
2702 echo "$as_me:$LINENO: checking for C compiler version" >&5
2703 ac_compiler=`set X $ac_compile; echo $2`
2704 { (ac_try="$ac_compiler --version >&5"
2705 case "(($ac_try" in
2706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707   *) ac_try_echo=$ac_try;;
2708 esac
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710   (eval "$ac_compiler --version >&5") 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); }
2714 { (ac_try="$ac_compiler -v >&5"
2715 case "(($ac_try" in
2716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717   *) ac_try_echo=$ac_try;;
2718 esac
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720   (eval "$ac_compiler -v >&5") 2>&5
2721   ac_status=$?
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); }
2724 { (ac_try="$ac_compiler -V >&5"
2725 case "(($ac_try" in
2726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727   *) ac_try_echo=$ac_try;;
2728 esac
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730   (eval "$ac_compiler -V >&5") 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }
2734
2735 cat >conftest.$ac_ext <<_ACEOF
2736 /* confdefs.h.  */
2737 _ACEOF
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h.  */
2741
2742 int
2743 main ()
2744 {
2745
2746   ;
2747   return 0;
2748 }
2749 _ACEOF
2750 ac_clean_files_save=$ac_clean_files
2751 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2752 # Try to create an executable without -o first, disregard a.out.
2753 # It will help us diagnose broken compilers, and finding out an intuition
2754 # of exeext.
2755 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2756 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2757 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2758 #
2759 # List of possible output files, starting from the most likely.
2760 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2761 # only as a last resort.  b.out is created by i960 compilers.
2762 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2763 #
2764 # The IRIX 6 linker writes into existing files which may not be
2765 # executable, retaining their permissions.  Remove them first so a
2766 # subsequent execution test works.
2767 ac_rmfiles=
2768 for ac_file in $ac_files
2769 do
2770   case $ac_file in
2771     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2772     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2773   esac
2774 done
2775 rm -f $ac_rmfiles
2776
2777 if { (ac_try="$ac_link_default"
2778 case "(($ac_try" in
2779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780   *) ac_try_echo=$ac_try;;
2781 esac
2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783   (eval "$ac_link_default") 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }; then
2787   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2788 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2789 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2790 # so that the user can short-circuit this test for compilers unknown to
2791 # Autoconf.
2792 for ac_file in $ac_files
2793 do
2794   test -f "$ac_file" || continue
2795   case $ac_file in
2796     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2797         ;;
2798     [ab].out )
2799         # We found the default executable, but exeext='' is most
2800         # certainly right.
2801         break;;
2802     *.* )
2803         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2804         then :; else
2805            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2806         fi
2807         # We set ac_cv_exeext here because the later test for it is not
2808         # safe: cross compilers may not add the suffix if given an `-o'
2809         # argument, so we may need to know it at that point already.
2810         # Even if this section looks crufty: it has the advantage of
2811         # actually working.
2812         break;;
2813     * )
2814         break;;
2815   esac
2816 done
2817 test "$ac_cv_exeext" = no && ac_cv_exeext=
2818
2819 else
2820   echo "$as_me: failed program was:" >&5
2821 sed 's/^/| /' conftest.$ac_ext >&5
2822
2823 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2824 See \`config.log' for more details." >&5
2825 echo "$as_me: error: C compiler cannot create executables
2826 See \`config.log' for more details." >&2;}
2827    { (exit 77); exit 77; }; }
2828 fi
2829
2830 ac_exeext=$ac_cv_exeext
2831 { echo "$as_me:$LINENO: result: $ac_file" >&5
2832 echo "${ECHO_T}$ac_file" >&6; }
2833
2834 # Check that the compiler produces executables we can run.  If not, either
2835 # the compiler is broken, or we cross compile.
2836 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2837 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2838 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2839 # If not cross compiling, check that we can run a simple program.
2840 if test "$cross_compiling" != yes; then
2841   if { ac_try='./$ac_file'
2842   { (case "(($ac_try" in
2843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844   *) ac_try_echo=$ac_try;;
2845 esac
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847   (eval "$ac_try") 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }; }; then
2851     cross_compiling=no
2852   else
2853     if test "$cross_compiling" = maybe; then
2854         cross_compiling=yes
2855     else
2856         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2857 If you meant to cross compile, use \`--host'.
2858 See \`config.log' for more details." >&5
2859 echo "$as_me: error: cannot run C compiled programs.
2860 If you meant to cross compile, use \`--host'.
2861 See \`config.log' for more details." >&2;}
2862    { (exit 1); exit 1; }; }
2863     fi
2864   fi
2865 fi
2866 { echo "$as_me:$LINENO: result: yes" >&5
2867 echo "${ECHO_T}yes" >&6; }
2868
2869 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2870 ac_clean_files=$ac_clean_files_save
2871 # Check that the compiler produces executables we can run.  If not, either
2872 # the compiler is broken, or we cross compile.
2873 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2874 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2875 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2876 echo "${ECHO_T}$cross_compiling" >&6; }
2877
2878 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2879 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2880 if { (ac_try="$ac_link"
2881 case "(($ac_try" in
2882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883   *) ac_try_echo=$ac_try;;
2884 esac
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886   (eval "$ac_link") 2>&5
2887   ac_status=$?
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); }; then
2890   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2891 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2892 # work properly (i.e., refer to `conftest.exe'), while it won't with
2893 # `rm'.
2894 for ac_file in conftest.exe conftest conftest.*; do
2895   test -f "$ac_file" || continue
2896   case $ac_file in
2897     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2898     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2899           break;;
2900     * ) break;;
2901   esac
2902 done
2903 else
2904   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2905 See \`config.log' for more details." >&5
2906 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details." >&2;}
2908    { (exit 1); exit 1; }; }
2909 fi
2910
2911 rm -f conftest$ac_cv_exeext
2912 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2913 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2914
2915 rm -f conftest.$ac_ext
2916 EXEEXT=$ac_cv_exeext
2917 ac_exeext=$EXEEXT
2918 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2919 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2920 if test "${ac_cv_objext+set}" = set; then
2921   echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923   cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h.  */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h.  */
2929
2930 int
2931 main ()
2932 {
2933
2934   ;
2935   return 0;
2936 }
2937 _ACEOF
2938 rm -f conftest.o conftest.obj
2939 if { (ac_try="$ac_compile"
2940 case "(($ac_try" in
2941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942   *) ac_try_echo=$ac_try;;
2943 esac
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945   (eval "$ac_compile") 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); }; then
2949   for ac_file in conftest.o conftest.obj conftest.*; do
2950   test -f "$ac_file" || continue;
2951   case $ac_file in
2952     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2953     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2954        break;;
2955   esac
2956 done
2957 else
2958   echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2960
2961 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2962 See \`config.log' for more details." >&5
2963 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2964 See \`config.log' for more details." >&2;}
2965    { (exit 1); exit 1; }; }
2966 fi
2967
2968 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2969 fi
2970 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2971 echo "${ECHO_T}$ac_cv_objext" >&6; }
2972 OBJEXT=$ac_cv_objext
2973 ac_objext=$OBJEXT
2974 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2975 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2976 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2977   echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979   cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h.  */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h.  */
2985
2986 int
2987 main ()
2988 {
2989 #ifndef __GNUC__
2990        choke me
2991 #endif
2992
2993   ;
2994   return 0;
2995 }
2996 _ACEOF
2997 rm -f conftest.$ac_objext
2998 if { (ac_try="$ac_compile"
2999 case "(($ac_try" in
3000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001   *) ac_try_echo=$ac_try;;
3002 esac
3003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004   (eval "$ac_compile") 2>conftest.er1
3005   ac_status=$?
3006   grep -v '^ *+' conftest.er1 >conftest.err
3007   rm -f conftest.er1
3008   cat conftest.err >&5
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); } &&
3011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3012   { (case "(($ac_try" in
3013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014   *) ac_try_echo=$ac_try;;
3015 esac
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017   (eval "$ac_try") 2>&5
3018   ac_status=$?
3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); }; } &&
3021          { ac_try='test -s conftest.$ac_objext'
3022   { (case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027   (eval "$ac_try") 2>&5
3028   ac_status=$?
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); }; }; then
3031   ac_compiler_gnu=yes
3032 else
3033   echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3035
3036         ac_compiler_gnu=no
3037 fi
3038
3039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3040 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3041
3042 fi
3043 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3044 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3045 GCC=`test $ac_compiler_gnu = yes && echo yes`
3046 ac_test_CFLAGS=${CFLAGS+set}
3047 ac_save_CFLAGS=$CFLAGS
3048 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3049 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3050 if test "${ac_cv_prog_cc_g+set}" = set; then
3051   echo $ECHO_N "(cached) $ECHO_C" >&6
3052 else
3053   ac_save_c_werror_flag=$ac_c_werror_flag
3054    ac_c_werror_flag=yes
3055    ac_cv_prog_cc_g=no
3056    CFLAGS="-g"
3057    cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h.  */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h.  */
3063
3064 int
3065 main ()
3066 {
3067
3068   ;
3069   return 0;
3070 }
3071 _ACEOF
3072 rm -f conftest.$ac_objext
3073 if { (ac_try="$ac_compile"
3074 case "(($ac_try" in
3075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076   *) ac_try_echo=$ac_try;;
3077 esac
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079   (eval "$ac_compile") 2>conftest.er1
3080   ac_status=$?
3081   grep -v '^ *+' conftest.er1 >conftest.err
3082   rm -f conftest.er1
3083   cat conftest.err >&5
3084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085   (exit $ac_status); } &&
3086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3087   { (case "(($ac_try" in
3088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089   *) ac_try_echo=$ac_try;;
3090 esac
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092   (eval "$ac_try") 2>&5
3093   ac_status=$?
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); }; } &&
3096          { ac_try='test -s conftest.$ac_objext'
3097   { (case "(($ac_try" in
3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099   *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102   (eval "$ac_try") 2>&5
3103   ac_status=$?
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); }; }; then
3106   ac_cv_prog_cc_g=yes
3107 else
3108   echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3110
3111         CFLAGS=""
3112       cat >conftest.$ac_ext <<_ACEOF
3113 /* confdefs.h.  */
3114 _ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h.  */
3118
3119 int
3120 main ()
3121 {
3122
3123   ;
3124   return 0;
3125 }
3126 _ACEOF
3127 rm -f conftest.$ac_objext
3128 if { (ac_try="$ac_compile"
3129 case "(($ac_try" in
3130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131   *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134   (eval "$ac_compile") 2>conftest.er1
3135   ac_status=$?
3136   grep -v '^ *+' conftest.er1 >conftest.err
3137   rm -f conftest.er1
3138   cat conftest.err >&5
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); } &&
3141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3142   { (case "(($ac_try" in
3143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144   *) ac_try_echo=$ac_try;;
3145 esac
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147   (eval "$ac_try") 2>&5
3148   ac_status=$?
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); }; } &&
3151          { ac_try='test -s conftest.$ac_objext'
3152   { (case "(($ac_try" in
3153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154   *) ac_try_echo=$ac_try;;
3155 esac
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157   (eval "$ac_try") 2>&5
3158   ac_status=$?
3159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160   (exit $ac_status); }; }; then
3161   :
3162 else
3163   echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3165
3166         ac_c_werror_flag=$ac_save_c_werror_flag
3167          CFLAGS="-g"
3168          cat >conftest.$ac_ext <<_ACEOF
3169 /* confdefs.h.  */
3170 _ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h.  */
3174
3175 int
3176 main ()
3177 {
3178
3179   ;
3180   return 0;
3181 }
3182 _ACEOF
3183 rm -f conftest.$ac_objext
3184 if { (ac_try="$ac_compile"
3185 case "(($ac_try" in
3186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187   *) ac_try_echo=$ac_try;;
3188 esac
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190   (eval "$ac_compile") 2>conftest.er1
3191   ac_status=$?
3192   grep -v '^ *+' conftest.er1 >conftest.err
3193   rm -f conftest.er1
3194   cat conftest.err >&5
3195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196   (exit $ac_status); } &&
3197          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3198   { (case "(($ac_try" in
3199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200   *) ac_try_echo=$ac_try;;
3201 esac
3202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203   (eval "$ac_try") 2>&5
3204   ac_status=$?
3205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); }; } &&
3207          { ac_try='test -s conftest.$ac_objext'
3208   { (case "(($ac_try" in
3209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210   *) ac_try_echo=$ac_try;;
3211 esac
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213   (eval "$ac_try") 2>&5
3214   ac_status=$?
3215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216   (exit $ac_status); }; }; then
3217   ac_cv_prog_cc_g=yes
3218 else
3219   echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3221
3222
3223 fi
3224
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 fi
3227
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 fi
3230
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232    ac_c_werror_flag=$ac_save_c_werror_flag
3233 fi
3234 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3235 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3236 if test "$ac_test_CFLAGS" = set; then
3237   CFLAGS=$ac_save_CFLAGS
3238 elif test $ac_cv_prog_cc_g = yes; then
3239   if test "$GCC" = yes; then
3240     CFLAGS="-g -O2"
3241   else
3242     CFLAGS="-g"
3243   fi
3244 else
3245   if test "$GCC" = yes; then
3246     CFLAGS="-O2"
3247   else
3248     CFLAGS=
3249   fi
3250 fi
3251 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3252 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3253 if test "${ac_cv_prog_cc_c89+set}" = set; then
3254   echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256   ac_cv_prog_cc_c89=no
3257 ac_save_CC=$CC
3258 cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h.  */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h.  */
3264 #include <stdarg.h>
3265 #include <stdio.h>
3266 #include <sys/types.h>
3267 #include <sys/stat.h>
3268 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3269 struct buf { int x; };
3270 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3271 static char *e (p, i)
3272      char **p;
3273      int i;
3274 {
3275   return p[i];
3276 }
3277 static char *f (char * (*g) (char **, int), char **p, ...)
3278 {
3279   char *s;
3280   va_list v;
3281   va_start (v,p);
3282   s = g (p, va_arg (v,int));
3283   va_end (v);
3284   return s;
3285 }
3286
3287 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3288    function prototypes and stuff, but not '\xHH' hex character constants.
3289    These don't provoke an error unfortunately, instead are silently treated
3290    as 'x'.  The following induces an error, until -std is added to get
3291    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3292    array size at least.  It's necessary to write '\x00'==0 to get something
3293    that's true only with -std.  */
3294 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3295
3296 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3297    inside strings and character constants.  */
3298 #define FOO(x) 'x'
3299 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3300
3301 int test (int i, double x);
3302 struct s1 {int (*f) (int a);};
3303 struct s2 {int (*f) (double a);};
3304 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3305 int argc;
3306 char **argv;
3307 int
3308 main ()
3309 {
3310 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3311   ;
3312   return 0;
3313 }
3314 _ACEOF
3315 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3316         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3317 do
3318   CC="$ac_save_CC $ac_arg"
3319   rm -f conftest.$ac_objext
3320 if { (ac_try="$ac_compile"
3321 case "(($ac_try" in
3322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323   *) ac_try_echo=$ac_try;;
3324 esac
3325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326   (eval "$ac_compile") 2>conftest.er1
3327   ac_status=$?
3328   grep -v '^ *+' conftest.er1 >conftest.err
3329   rm -f conftest.er1
3330   cat conftest.err >&5
3331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332   (exit $ac_status); } &&
3333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3334   { (case "(($ac_try" in
3335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336   *) ac_try_echo=$ac_try;;
3337 esac
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339   (eval "$ac_try") 2>&5
3340   ac_status=$?
3341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342   (exit $ac_status); }; } &&
3343          { ac_try='test -s conftest.$ac_objext'
3344   { (case "(($ac_try" in
3345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346   *) ac_try_echo=$ac_try;;
3347 esac
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349   (eval "$ac_try") 2>&5
3350   ac_status=$?
3351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352   (exit $ac_status); }; }; then
3353   ac_cv_prog_cc_c89=$ac_arg
3354 else
3355   echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3357
3358
3359 fi
3360
3361 rm -f core conftest.err conftest.$ac_objext
3362   test "x$ac_cv_prog_cc_c89" != "xno" && break
3363 done
3364 rm -f conftest.$ac_ext
3365 CC=$ac_save_CC
3366
3367 fi
3368 # AC_CACHE_VAL
3369 case "x$ac_cv_prog_cc_c89" in
3370   x)
3371     { echo "$as_me:$LINENO: result: none needed" >&5
3372 echo "${ECHO_T}none needed" >&6; } ;;
3373   xno)
3374     { echo "$as_me:$LINENO: result: unsupported" >&5
3375 echo "${ECHO_T}unsupported" >&6; } ;;
3376   *)
3377     CC="$CC $ac_cv_prog_cc_c89"
3378     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3379 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3380 esac
3381
3382
3383 ac_ext=c
3384 ac_cpp='$CPP $CPPFLAGS'
3385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3388
3389
3390 ac_ext=c
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3396 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3397 # On Suns, sometimes $CPP names a directory.
3398 if test -n "$CPP" && test -d "$CPP"; then
3399   CPP=
3400 fi
3401 if test -z "$CPP"; then
3402   if test "${ac_cv_prog_CPP+set}" = set; then
3403   echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
3405       # Double quotes because CPP needs to be expanded
3406     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3407     do
3408       ac_preproc_ok=false
3409 for ac_c_preproc_warn_flag in '' yes
3410 do
3411   # Use a header file that comes with gcc, so configuring glibc
3412   # with a fresh cross-compiler works.
3413   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3414   # <limits.h> exists even on freestanding compilers.
3415   # On the NeXT, cc -E runs the code through the compiler's parser,
3416   # not just through cpp. "Syntax error" is here to catch this case.
3417   cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h.  */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h.  */
3423 #ifdef __STDC__
3424 # include <limits.h>
3425 #else
3426 # include <assert.h>
3427 #endif
3428                      Syntax error
3429 _ACEOF
3430 if { (ac_try="$ac_cpp conftest.$ac_ext"
3431 case "(($ac_try" in
3432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433   *) ac_try_echo=$ac_try;;
3434 esac
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3437   ac_status=$?
3438   grep -v '^ *+' conftest.er1 >conftest.err
3439   rm -f conftest.er1
3440   cat conftest.err >&5
3441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442   (exit $ac_status); } >/dev/null; then
3443   if test -s conftest.err; then
3444     ac_cpp_err=$ac_c_preproc_warn_flag
3445     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3446   else
3447     ac_cpp_err=
3448   fi
3449 else
3450   ac_cpp_err=yes
3451 fi
3452 if test -z "$ac_cpp_err"; then
3453   :
3454 else
3455   echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3457
3458   # Broken: fails on valid input.
3459 continue
3460 fi
3461
3462 rm -f conftest.err conftest.$ac_ext
3463
3464   # OK, works on sane cases.  Now check whether nonexistent headers
3465   # can be detected and how.
3466   cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h.  */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h.  */
3472 #include <ac_nonexistent.h>
3473 _ACEOF
3474 if { (ac_try="$ac_cpp conftest.$ac_ext"
3475 case "(($ac_try" in
3476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477   *) ac_try_echo=$ac_try;;
3478 esac
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3481   ac_status=$?
3482   grep -v '^ *+' conftest.er1 >conftest.err
3483   rm -f conftest.er1
3484   cat conftest.err >&5
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); } >/dev/null; then
3487   if test -s conftest.err; then
3488     ac_cpp_err=$ac_c_preproc_warn_flag
3489     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3490   else
3491     ac_cpp_err=
3492   fi
3493 else
3494   ac_cpp_err=yes
3495 fi
3496 if test -z "$ac_cpp_err"; then
3497   # Broken: success on invalid input.
3498 continue
3499 else
3500   echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3502
3503   # Passes both tests.
3504 ac_preproc_ok=:
3505 break
3506 fi
3507
3508 rm -f conftest.err conftest.$ac_ext
3509
3510 done
3511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3512 rm -f conftest.err conftest.$ac_ext
3513 if $ac_preproc_ok; then
3514   break
3515 fi
3516
3517     done
3518     ac_cv_prog_CPP=$CPP
3519
3520 fi
3521   CPP=$ac_cv_prog_CPP
3522 else
3523   ac_cv_prog_CPP=$CPP
3524 fi
3525 { echo "$as_me:$LINENO: result: $CPP" >&5
3526 echo "${ECHO_T}$CPP" >&6; }
3527 ac_preproc_ok=false
3528 for ac_c_preproc_warn_flag in '' yes
3529 do
3530   # Use a header file that comes with gcc, so configuring glibc
3531   # with a fresh cross-compiler works.
3532   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3533   # <limits.h> exists even on freestanding compilers.
3534   # On the NeXT, cc -E runs the code through the compiler's parser,
3535   # not just through cpp. "Syntax error" is here to catch this case.
3536   cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542 #ifdef __STDC__
3543 # include <limits.h>
3544 #else
3545 # include <assert.h>
3546 #endif
3547                      Syntax error
3548 _ACEOF
3549 if { (ac_try="$ac_cpp conftest.$ac_ext"
3550 case "(($ac_try" in
3551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552   *) ac_try_echo=$ac_try;;
3553 esac
3554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3556   ac_status=$?
3557   grep -v '^ *+' conftest.er1 >conftest.err
3558   rm -f conftest.er1
3559   cat conftest.err >&5
3560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561   (exit $ac_status); } >/dev/null; then
3562   if test -s conftest.err; then
3563     ac_cpp_err=$ac_c_preproc_warn_flag
3564     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3565   else
3566     ac_cpp_err=
3567   fi
3568 else
3569   ac_cpp_err=yes
3570 fi
3571 if test -z "$ac_cpp_err"; then
3572   :
3573 else
3574   echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577   # Broken: fails on valid input.
3578 continue
3579 fi
3580
3581 rm -f conftest.err conftest.$ac_ext
3582
3583   # OK, works on sane cases.  Now check whether nonexistent headers
3584   # can be detected and how.
3585   cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h.  */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h.  */
3591 #include <ac_nonexistent.h>
3592 _ACEOF
3593 if { (ac_try="$ac_cpp conftest.$ac_ext"
3594 case "(($ac_try" in
3595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596   *) ac_try_echo=$ac_try;;
3597 esac
3598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3600   ac_status=$?
3601   grep -v '^ *+' conftest.er1 >conftest.err
3602   rm -f conftest.er1
3603   cat conftest.err >&5
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); } >/dev/null; then
3606   if test -s conftest.err; then
3607     ac_cpp_err=$ac_c_preproc_warn_flag
3608     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3609   else
3610     ac_cpp_err=
3611   fi
3612 else
3613   ac_cpp_err=yes
3614 fi
3615 if test -z "$ac_cpp_err"; then
3616   # Broken: success on invalid input.
3617 continue
3618 else
3619   echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622   # Passes both tests.
3623 ac_preproc_ok=:
3624 break
3625 fi
3626
3627 rm -f conftest.err conftest.$ac_ext
3628
3629 done
3630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3631 rm -f conftest.err conftest.$ac_ext
3632 if $ac_preproc_ok; then
3633   :
3634 else
3635   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3636 See \`config.log' for more details." >&5
3637 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3638 See \`config.log' for more details." >&2;}
3639    { (exit 1); exit 1; }; }
3640 fi
3641
3642 ac_ext=c
3643 ac_cpp='$CPP $CPPFLAGS'
3644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647
3648
3649 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3650 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3651 if test "${ac_cv_path_GREP+set}" = set; then
3652   echo $ECHO_N "(cached) $ECHO_C" >&6
3653 else
3654   # Extract the first word of "grep ggrep" to use in msg output
3655 if test -z "$GREP"; then
3656 set dummy grep ggrep; ac_prog_name=$2
3657 if test "${ac_cv_path_GREP+set}" = set; then
3658   echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660   ac_path_GREP_found=false
3661 # Loop through the user's path and test for each of PROGNAME-LIST
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3664 do
3665   IFS=$as_save_IFS
3666   test -z "$as_dir" && as_dir=.
3667   for ac_prog in grep ggrep; do
3668   for ac_exec_ext in '' $ac_executable_extensions; do
3669     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3670     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3671     # Check for GNU ac_path_GREP and select it if it is found.
3672   # Check for GNU $ac_path_GREP
3673 case `"$ac_path_GREP" --version 2>&1` in
3674 *GNU*)
3675   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3676 *)
3677   ac_count=0
3678   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3679   while :
3680   do
3681     cat "conftest.in" "conftest.in" >"conftest.tmp"
3682     mv "conftest.tmp" "conftest.in"
3683     cp "conftest.in" "conftest.nl"
3684     echo 'GREP' >> "conftest.nl"
3685     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3686     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3687     ac_count=`expr $ac_count + 1`
3688     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3689       # Best one so far, save it but keep looking for a better one
3690       ac_cv_path_GREP="$ac_path_GREP"
3691       ac_path_GREP_max=$ac_count
3692     fi
3693     # 10*(2^10) chars as input seems more than enough
3694     test $ac_count -gt 10 && break
3695   done
3696   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3697 esac
3698
3699
3700     $ac_path_GREP_found && break 3
3701   done
3702 done
3703
3704 done
3705 IFS=$as_save_IFS
3706
3707
3708 fi
3709
3710 GREP="$ac_cv_path_GREP"
3711 if test -z "$GREP"; then
3712   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3713 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3714    { (exit 1); exit 1; }; }
3715 fi
3716
3717 else
3718   ac_cv_path_GREP=$GREP
3719 fi
3720
3721
3722 fi
3723 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3724 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3725  GREP="$ac_cv_path_GREP"
3726
3727
3728 { echo "$as_me:$LINENO: checking for egrep" >&5
3729 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3730 if test "${ac_cv_path_EGREP+set}" = set; then
3731   echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3734    then ac_cv_path_EGREP="$GREP -E"
3735    else
3736      # Extract the first word of "egrep" to use in msg output
3737 if test -z "$EGREP"; then
3738 set dummy egrep; ac_prog_name=$2
3739 if test "${ac_cv_path_EGREP+set}" = set; then
3740   echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742   ac_path_EGREP_found=false
3743 # Loop through the user's path and test for each of PROGNAME-LIST
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3746 do
3747   IFS=$as_save_IFS
3748   test -z "$as_dir" && as_dir=.
3749   for ac_prog in egrep; do
3750   for ac_exec_ext in '' $ac_executable_extensions; do
3751     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3752     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3753     # Check for GNU ac_path_EGREP and select it if it is found.
3754   # Check for GNU $ac_path_EGREP
3755 case `"$ac_path_EGREP" --version 2>&1` in
3756 *GNU*)
3757   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3758 *)
3759   ac_count=0
3760   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3761   while :
3762   do
3763     cat "conftest.in" "conftest.in" >"conftest.tmp"
3764     mv "conftest.tmp" "conftest.in"
3765     cp "conftest.in" "conftest.nl"
3766     echo 'EGREP' >> "conftest.nl"
3767     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3768     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3769     ac_count=`expr $ac_count + 1`
3770     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3771       # Best one so far, save it but keep looking for a better one
3772       ac_cv_path_EGREP="$ac_path_EGREP"
3773       ac_path_EGREP_max=$ac_count
3774     fi
3775     # 10*(2^10) chars as input seems more than enough
3776     test $ac_count -gt 10 && break
3777   done
3778   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3779 esac
3780
3781
3782     $ac_path_EGREP_found && break 3
3783   done
3784 done
3785
3786 done
3787 IFS=$as_save_IFS
3788
3789
3790 fi
3791
3792 EGREP="$ac_cv_path_EGREP"
3793 if test -z "$EGREP"; then
3794   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3795 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3796    { (exit 1); exit 1; }; }
3797 fi
3798
3799 else
3800   ac_cv_path_EGREP=$EGREP
3801 fi
3802
3803
3804    fi
3805 fi
3806 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3807 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3808  EGREP="$ac_cv_path_EGREP"
3809
3810
3811 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3812 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3813 if test "${ac_cv_header_stdc+set}" = set; then
3814   echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816   cat >conftest.$ac_ext <<_ACEOF
3817 /* confdefs.h.  */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h.  */
3822 #include <stdlib.h>
3823 #include <stdarg.h>
3824 #include <string.h>
3825 #include <float.h>
3826
3827 int
3828 main ()
3829 {
3830
3831   ;
3832   return 0;
3833 }
3834 _ACEOF
3835 rm -f conftest.$ac_objext
3836 if { (ac_try="$ac_compile"
3837 case "(($ac_try" in
3838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839   *) ac_try_echo=$ac_try;;
3840 esac
3841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3842   (eval "$ac_compile") 2>conftest.er1
3843   ac_status=$?
3844   grep -v '^ *+' conftest.er1 >conftest.err
3845   rm -f conftest.er1
3846   cat conftest.err >&5
3847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848   (exit $ac_status); } &&
3849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3850   { (case "(($ac_try" in
3851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852   *) ac_try_echo=$ac_try;;
3853 esac
3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855   (eval "$ac_try") 2>&5
3856   ac_status=$?
3857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858   (exit $ac_status); }; } &&
3859          { ac_try='test -s conftest.$ac_objext'
3860   { (case "(($ac_try" in
3861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862   *) ac_try_echo=$ac_try;;
3863 esac
3864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3865   (eval "$ac_try") 2>&5
3866   ac_status=$?
3867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868   (exit $ac_status); }; }; then
3869   ac_cv_header_stdc=yes
3870 else
3871   echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3873
3874         ac_cv_header_stdc=no
3875 fi
3876
3877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878
3879 if test $ac_cv_header_stdc = yes; then
3880   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3881   cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h.  */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h.  */
3887 #include <string.h>
3888
3889 _ACEOF
3890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3891   $EGREP "memchr" >/dev/null 2>&1; then
3892   :
3893 else
3894   ac_cv_header_stdc=no
3895 fi
3896 rm -f conftest*
3897
3898 fi
3899
3900 if test $ac_cv_header_stdc = yes; then
3901   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3902   cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h.  */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h.  */
3908 #include <stdlib.h>
3909
3910 _ACEOF
3911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3912   $EGREP "free" >/dev/null 2>&1; then
3913   :
3914 else
3915   ac_cv_header_stdc=no
3916 fi
3917 rm -f conftest*
3918
3919 fi
3920
3921 if test $ac_cv_header_stdc = yes; then
3922   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3923   if test "$cross_compiling" = yes; then
3924   :
3925 else
3926   cat >conftest.$ac_ext <<_ACEOF
3927 /* confdefs.h.  */
3928 _ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h.  */
3932 #include <ctype.h>
3933 #include <stdlib.h>
3934 #if ((' ' & 0x0FF) == 0x020)
3935 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3936 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3937 #else
3938 # define ISLOWER(c) \
3939                    (('a' <= (c) && (c) <= 'i') \
3940                      || ('j' <= (c) && (c) <= 'r') \
3941                      || ('s' <= (c) && (c) <= 'z'))
3942 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3943 #endif
3944
3945 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3946 int
3947 main ()
3948 {
3949   int i;
3950   for (i = 0; i < 256; i++)
3951     if (XOR (islower (i), ISLOWER (i))
3952         || toupper (i) != TOUPPER (i))
3953       return 2;
3954   return 0;
3955 }
3956 _ACEOF
3957 rm -f conftest$ac_exeext
3958 if { (ac_try="$ac_link"
3959 case "(($ac_try" in
3960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961   *) ac_try_echo=$ac_try;;
3962 esac
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964   (eval "$ac_link") 2>&5
3965   ac_status=$?
3966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3968   { (case "(($ac_try" in
3969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970   *) ac_try_echo=$ac_try;;
3971 esac
3972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973   (eval "$ac_try") 2>&5
3974   ac_status=$?
3975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976   (exit $ac_status); }; }; then
3977   :
3978 else
3979   echo "$as_me: program exited with status $ac_status" >&5
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983 ( exit $ac_status )
3984 ac_cv_header_stdc=no
3985 fi
3986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3987 fi
3988
3989
3990 fi
3991 fi
3992 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3993 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3994 if test $ac_cv_header_stdc = yes; then
3995
3996 cat >>confdefs.h <<\_ACEOF
3997 #define STDC_HEADERS 1
3998 _ACEOF
3999
4000 fi
4001
4002 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4013                   inttypes.h stdint.h unistd.h
4014 do
4015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4019   echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021   cat >conftest.$ac_ext <<_ACEOF
4022 /* confdefs.h.  */
4023 _ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h.  */
4027 $ac_includes_default
4028
4029 #include <$ac_header>
4030 _ACEOF
4031 rm -f conftest.$ac_objext
4032 if { (ac_try="$ac_compile"
4033 case "(($ac_try" in
4034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035   *) ac_try_echo=$ac_try;;
4036 esac
4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038   (eval "$ac_compile") 2>conftest.er1
4039   ac_status=$?
4040   grep -v '^ *+' conftest.er1 >conftest.err
4041   rm -f conftest.er1
4042   cat conftest.err >&5
4043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044   (exit $ac_status); } &&
4045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4046   { (case "(($ac_try" in
4047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048   *) ac_try_echo=$ac_try;;
4049 esac
4050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051   (eval "$ac_try") 2>&5
4052   ac_status=$?
4053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054   (exit $ac_status); }; } &&
4055          { ac_try='test -s conftest.$ac_objext'
4056   { (case "(($ac_try" in
4057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058   *) ac_try_echo=$ac_try;;
4059 esac
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061   (eval "$ac_try") 2>&5
4062   ac_status=$?
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); }; }; then
4065   eval "$as_ac_Header=yes"
4066 else
4067   echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070         eval "$as_ac_Header=no"
4071 fi
4072
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 fi
4075 ac_res=`eval echo '${'$as_ac_Header'}'`
4076                { echo "$as_me:$LINENO: result: $ac_res" >&5
4077 echo "${ECHO_T}$ac_res" >&6; }
4078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4079   cat >>confdefs.h <<_ACEOF
4080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4081 _ACEOF
4082
4083 fi
4084
4085 done
4086
4087
4088 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4089 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4090 if test "${ac_cv_c_bigendian+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   # See if sys/param.h defines the BYTE_ORDER macro.
4094 cat >conftest.$ac_ext <<_ACEOF
4095 /* confdefs.h.  */
4096 _ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h.  */
4100 #include <sys/types.h>
4101 #include <sys/param.h>
4102
4103 int
4104 main ()
4105 {
4106 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4107  bogus endian macros
4108 #endif
4109
4110   ;
4111   return 0;
4112 }
4113 _ACEOF
4114 rm -f conftest.$ac_objext
4115 if { (ac_try="$ac_compile"
4116 case "(($ac_try" in
4117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118   *) ac_try_echo=$ac_try;;
4119 esac
4120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4121   (eval "$ac_compile") 2>conftest.er1
4122   ac_status=$?
4123   grep -v '^ *+' conftest.er1 >conftest.err
4124   rm -f conftest.er1
4125   cat conftest.err >&5
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); } &&
4128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4129   { (case "(($ac_try" in
4130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131   *) ac_try_echo=$ac_try;;
4132 esac
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134   (eval "$ac_try") 2>&5
4135   ac_status=$?
4136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137   (exit $ac_status); }; } &&
4138          { ac_try='test -s conftest.$ac_objext'
4139   { (case "(($ac_try" in
4140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141   *) ac_try_echo=$ac_try;;
4142 esac
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144   (eval "$ac_try") 2>&5
4145   ac_status=$?
4146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147   (exit $ac_status); }; }; then
4148   # It does; now see whether it defined to BIG_ENDIAN or not.
4149 cat >conftest.$ac_ext <<_ACEOF
4150 /* confdefs.h.  */
4151 _ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h.  */
4155 #include <sys/types.h>
4156 #include <sys/param.h>
4157
4158 int
4159 main ()
4160 {
4161 #if BYTE_ORDER != BIG_ENDIAN
4162  not big endian
4163 #endif
4164
4165   ;
4166   return 0;
4167 }
4168 _ACEOF
4169 rm -f conftest.$ac_objext
4170 if { (ac_try="$ac_compile"
4171 case "(($ac_try" in
4172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173   *) ac_try_echo=$ac_try;;
4174 esac
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176   (eval "$ac_compile") 2>conftest.er1
4177   ac_status=$?
4178   grep -v '^ *+' conftest.er1 >conftest.err
4179   rm -f conftest.er1
4180   cat conftest.err >&5
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); } &&
4183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4184   { (case "(($ac_try" in
4185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186   *) ac_try_echo=$ac_try;;
4187 esac
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189   (eval "$ac_try") 2>&5
4190   ac_status=$?
4191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192   (exit $ac_status); }; } &&
4193          { ac_try='test -s conftest.$ac_objext'
4194   { (case "(($ac_try" in
4195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196   *) ac_try_echo=$ac_try;;
4197 esac
4198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199   (eval "$ac_try") 2>&5
4200   ac_status=$?
4201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202   (exit $ac_status); }; }; then
4203   ac_cv_c_bigendian=yes
4204 else
4205   echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4207
4208         ac_cv_c_bigendian=no
4209 fi
4210
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 else
4213   echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4215
4216         # It does not; compile a test program.
4217 if test "$cross_compiling" = yes; then
4218   # try to guess the endianness by grepping values into an object file
4219   ac_cv_c_bigendian=unknown
4220   cat >conftest.$ac_ext <<_ACEOF
4221 /* confdefs.h.  */
4222 _ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h.  */
4226 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4227 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4228 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4229 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4230 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4231 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4232 int
4233 main ()
4234 {
4235  _ascii (); _ebcdic ();
4236   ;
4237   return 0;
4238 }
4239 _ACEOF
4240 rm -f conftest.$ac_objext
4241 if { (ac_try="$ac_compile"
4242 case "(($ac_try" in
4243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244   *) ac_try_echo=$ac_try;;
4245 esac
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247   (eval "$ac_compile") 2>conftest.er1
4248   ac_status=$?
4249   grep -v '^ *+' conftest.er1 >conftest.err
4250   rm -f conftest.er1
4251   cat conftest.err >&5
4252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253   (exit $ac_status); } &&
4254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4255   { (case "(($ac_try" in
4256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257   *) ac_try_echo=$ac_try;;
4258 esac
4259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4260   (eval "$ac_try") 2>&5
4261   ac_status=$?
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); }; } &&
4264          { ac_try='test -s conftest.$ac_objext'
4265   { (case "(($ac_try" in
4266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267   *) ac_try_echo=$ac_try;;
4268 esac
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270   (eval "$ac_try") 2>&5
4271   ac_status=$?
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); }; }; then
4274   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4275   ac_cv_c_bigendian=yes
4276 fi
4277 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4278   if test "$ac_cv_c_bigendian" = unknown; then
4279     ac_cv_c_bigendian=no
4280   else
4281     # finding both strings is unlikely to happen, but who knows?
4282     ac_cv_c_bigendian=unknown
4283   fi
4284 fi
4285 else
4286   echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4288
4289
4290 fi
4291
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293 else
4294   cat >conftest.$ac_ext <<_ACEOF
4295 /* confdefs.h.  */
4296 _ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h.  */
4300 $ac_includes_default
4301 int
4302 main ()
4303 {
4304
4305   /* Are we little or big endian?  From Harbison&Steele.  */
4306   union
4307   {
4308     long int l;
4309     char c[sizeof (long int)];
4310   } u;
4311   u.l = 1;
4312   return u.c[sizeof (long int) - 1] == 1;
4313
4314   ;
4315   return 0;
4316 }
4317 _ACEOF
4318 rm -f conftest$ac_exeext
4319 if { (ac_try="$ac_link"
4320 case "(($ac_try" in
4321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322   *) ac_try_echo=$ac_try;;
4323 esac
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325   (eval "$ac_link") 2>&5
4326   ac_status=$?
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4329   { (case "(($ac_try" in
4330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331   *) ac_try_echo=$ac_try;;
4332 esac
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334   (eval "$ac_try") 2>&5
4335   ac_status=$?
4336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337   (exit $ac_status); }; }; then
4338   ac_cv_c_bigendian=no
4339 else
4340   echo "$as_me: program exited with status $ac_status" >&5
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344 ( exit $ac_status )
4345 ac_cv_c_bigendian=yes
4346 fi
4347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4348 fi
4349
4350
4351 fi
4352
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354 fi
4355 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4356 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4357 case $ac_cv_c_bigendian in
4358   yes)
4359     ENDIAN=big
4360  ;;
4361   no)
4362     ENDIAN=little
4363  ;;
4364   *)
4365     { { echo "$as_me:$LINENO: error: unknown endianness
4366 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4367 echo "$as_me: error: unknown endianness
4368 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4369    { (exit 1); exit 1; }; } ;;
4370 esac
4371
4372
4373 if test "$cross_compiling" = yes; then
4374   LLVM_CROSS_COMPILING=1
4375
4376
4377 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4378 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4379 if test "${ac_cv_build_exeext+set}" = set; then
4380   echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4383   ac_cv_build_exeext=.exe
4384 else
4385   ac_build_prefix=${build_alias}-
4386
4387   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4388 set dummy ${ac_build_prefix}gcc; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4392   echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394   if test -n "$BUILD_CC"; then
4395   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400   IFS=$as_save_IFS
4401   test -z "$as_dir" && as_dir=.
4402   for ac_exec_ext in '' $ac_executable_extensions; do
4403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4404     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406     break 2
4407   fi
4408 done
4409 done
4410 IFS=$as_save_IFS
4411
4412 fi
4413 fi
4414 BUILD_CC=$ac_cv_prog_BUILD_CC
4415 if test -n "$BUILD_CC"; then
4416   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4417 echo "${ECHO_T}$BUILD_CC" >&6; }
4418 else
4419   { echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6; }
4421 fi
4422
4423
4424   if test -z "$BUILD_CC"; then
4425      # Extract the first word of "gcc", so it can be a program name with args.
4426 set dummy gcc; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4430   echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432   if test -n "$BUILD_CC"; then
4433   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4437 do
4438   IFS=$as_save_IFS
4439   test -z "$as_dir" && as_dir=.
4440   for ac_exec_ext in '' $ac_executable_extensions; do
4441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4442     ac_cv_prog_BUILD_CC="gcc"
4443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444     break 2
4445   fi
4446 done
4447 done
4448 IFS=$as_save_IFS
4449
4450 fi
4451 fi
4452 BUILD_CC=$ac_cv_prog_BUILD_CC
4453 if test -n "$BUILD_CC"; then
4454   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4455 echo "${ECHO_T}$BUILD_CC" >&6; }
4456 else
4457   { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4459 fi
4460
4461
4462      if test -z "$BUILD_CC"; then
4463        # Extract the first word of "cc", so it can be a program name with args.
4464 set dummy cc; ac_word=$2
4465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4467 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4468   echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470   if test -n "$BUILD_CC"; then
4471   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4472 else
4473   ac_prog_rejected=no
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 for as_dir in $PATH
4476 do
4477   IFS=$as_save_IFS
4478   test -z "$as_dir" && as_dir=.
4479   for ac_exec_ext in '' $ac_executable_extensions; do
4480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4481     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4482        ac_prog_rejected=yes
4483        continue
4484      fi
4485     ac_cv_prog_BUILD_CC="cc"
4486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487     break 2
4488   fi
4489 done
4490 done
4491 IFS=$as_save_IFS
4492
4493 if test $ac_prog_rejected = yes; then
4494   # We found a bogon in the path, so make sure we never use it.
4495   set dummy $ac_cv_prog_BUILD_CC
4496   shift
4497   if test $# != 0; then
4498     # We chose a different compiler from the bogus one.
4499     # However, it has the same basename, so the bogon will be chosen
4500     # first if we set BUILD_CC to just the basename; use the full file name.
4501     shift
4502     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4503   fi
4504 fi
4505 fi
4506 fi
4507 BUILD_CC=$ac_cv_prog_BUILD_CC
4508 if test -n "$BUILD_CC"; then
4509   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4510 echo "${ECHO_T}$BUILD_CC" >&6; }
4511 else
4512   { echo "$as_me:$LINENO: result: no" >&5
4513 echo "${ECHO_T}no" >&6; }
4514 fi
4515
4516
4517      fi
4518   fi
4519   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4520 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4521    { (exit 1); exit 1; }; }
4522   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4523   rm -f conftest*
4524   echo 'int main () { return 0; }' > conftest.$ac_ext
4525   ac_cv_build_exeext=
4526   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4527   (eval $ac_build_link) 2>&5
4528   ac_status=$?
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); }; then
4531     for file in conftest.*; do
4532       case $file in
4533       *.c | *.o | *.obj | *.dSYM) ;;
4534       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4535       esac
4536     done
4537   else
4538     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4539 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4540    { (exit 1); exit 1; }; }
4541   fi
4542   rm -f conftest*
4543   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4544 fi
4545 fi
4546
4547 BUILD_EXEEXT=""
4548 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4549 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4550 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4551 ac_build_exeext=$BUILD_EXEEXT
4552
4553   ac_build_prefix=${build_alias}-
4554   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4555 set dummy ${ac_build_prefix}g++; ac_word=$2
4556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4558 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4559   echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561   if test -n "$BUILD_CXX"; then
4562   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567   IFS=$as_save_IFS
4568   test -z "$as_dir" && as_dir=.
4569   for ac_exec_ext in '' $ac_executable_extensions; do
4570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4571     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573     break 2
4574   fi
4575 done
4576 done
4577 IFS=$as_save_IFS
4578
4579 fi
4580 fi
4581 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4582 if test -n "$BUILD_CXX"; then
4583   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4584 echo "${ECHO_T}$BUILD_CXX" >&6; }
4585 else
4586   { echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6; }
4588 fi
4589
4590
4591   if test -z "$BUILD_CXX"; then
4592      # Extract the first word of "g++", so it can be a program name with args.
4593 set dummy g++; ac_word=$2
4594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   if test -n "$BUILD_CXX"; then
4600   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4601 else
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4604 do
4605   IFS=$as_save_IFS
4606   test -z "$as_dir" && as_dir=.
4607   for ac_exec_ext in '' $ac_executable_extensions; do
4608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4609     ac_cv_prog_BUILD_CXX="g++"
4610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4611     break 2
4612   fi
4613 done
4614 done
4615 IFS=$as_save_IFS
4616
4617 fi
4618 fi
4619 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4620 if test -n "$BUILD_CXX"; then
4621   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4622 echo "${ECHO_T}$BUILD_CXX" >&6; }
4623 else
4624   { echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6; }
4626 fi
4627
4628
4629      if test -z "$BUILD_CXX"; then
4630        # Extract the first word of "c++", so it can be a program name with args.
4631 set dummy c++; ac_word=$2
4632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4634 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4635   echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637   if test -n "$BUILD_CXX"; then
4638   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4639 else
4640   ac_prog_rejected=no
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4643 do
4644   IFS=$as_save_IFS
4645   test -z "$as_dir" && as_dir=.
4646   for ac_exec_ext in '' $ac_executable_extensions; do
4647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4648     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4649        ac_prog_rejected=yes
4650        continue
4651      fi
4652     ac_cv_prog_BUILD_CXX="c++"
4653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654     break 2
4655   fi
4656 done
4657 done
4658 IFS=$as_save_IFS
4659
4660 if test $ac_prog_rejected = yes; then
4661   # We found a bogon in the path, so make sure we never use it.
4662   set dummy $ac_cv_prog_BUILD_CXX
4663   shift
4664   if test $# != 0; then
4665     # We chose a different compiler from the bogus one.
4666     # However, it has the same basename, so the bogon will be chosen
4667     # first if we set BUILD_CXX to just the basename; use the full file name.
4668     shift
4669     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4670   fi
4671 fi
4672 fi
4673 fi
4674 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4675 if test -n "$BUILD_CXX"; then
4676   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4677 echo "${ECHO_T}$BUILD_CXX" >&6; }
4678 else
4679   { echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6; }
4681 fi
4682
4683
4684      fi
4685   fi
4686 else
4687   LLVM_CROSS_COMPILING=0
4688
4689 fi
4690
4691 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4692   cvsbuild="yes"
4693   optimize="no"
4694   CVSBUILD=CVSBUILD=1
4695
4696 else
4697   cvsbuild="no"
4698   optimize="yes"
4699 fi
4700
4701
4702 # Check whether --enable-optimized was given.
4703 if test "${enable_optimized+set}" = set; then
4704   enableval=$enable_optimized;
4705 else
4706   enableval=$optimize
4707 fi
4708
4709 if test ${enableval} = "no" ; then
4710   ENABLE_OPTIMIZED=
4711
4712 else
4713   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4714
4715 fi
4716
4717 # Check whether --enable-profiling was given.
4718 if test "${enable_profiling+set}" = set; then
4719   enableval=$enable_profiling;
4720 else
4721   enableval="no"
4722 fi
4723
4724 if test ${enableval} = "no" ; then
4725   ENABLE_PROFILING=
4726
4727 else
4728   ENABLE_PROFILING=ENABLE_PROFILING=1
4729
4730 fi
4731
4732 # Check whether --enable-assertions was given.
4733 if test "${enable_assertions+set}" = set; then
4734   enableval=$enable_assertions;
4735 else
4736   enableval="yes"
4737 fi
4738
4739 if test ${enableval} = "yes" ; then
4740   DISABLE_ASSERTIONS=
4741
4742 else
4743   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4744
4745 fi
4746
4747 # Check whether --enable-expensive-checks was given.
4748 if test "${enable_expensive_checks+set}" = set; then
4749   enableval=$enable_expensive_checks;
4750 else
4751   enableval="no"
4752 fi
4753
4754 if test ${enableval} = "yes" ; then
4755   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4756
4757   EXPENSIVE_CHECKS=yes
4758
4759 else
4760   ENABLE_EXPENSIVE_CHECKS=
4761
4762   EXPENSIVE_CHECKS=no
4763
4764 fi
4765
4766 # Check whether --enable-debug-runtime was given.
4767 if test "${enable_debug_runtime+set}" = set; then
4768   enableval=$enable_debug_runtime;
4769 else
4770   enableval=no
4771 fi
4772
4773 if test ${enableval} = "no" ; then
4774   DEBUG_RUNTIME=
4775
4776 else
4777   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4778
4779 fi
4780
4781 # Check whether --enable-debug-symbols was given.
4782 if test "${enable_debug_symbols+set}" = set; then
4783   enableval=$enable_debug_symbols;
4784 else
4785   enableval=no
4786 fi
4787
4788 if test ${enableval} = "no" ; then
4789   DEBUG_SYMBOLS=
4790
4791 else
4792   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4793
4794 fi
4795
4796 # Check whether --enable-jit was given.
4797 if test "${enable_jit+set}" = set; then
4798   enableval=$enable_jit;
4799 else
4800   enableval=default
4801 fi
4802
4803 if test ${enableval} = "no"
4804 then
4805   JIT=
4806
4807 else
4808   case "$llvm_cv_target_arch" in
4809     x86)         TARGET_HAS_JIT=1
4810  ;;
4811     Sparc)       TARGET_HAS_JIT=0
4812  ;;
4813     PowerPC)     TARGET_HAS_JIT=1
4814  ;;
4815     x86_64)      TARGET_HAS_JIT=1
4816  ;;
4817     Alpha)       TARGET_HAS_JIT=1
4818  ;;
4819     ARM)         TARGET_HAS_JIT=1
4820  ;;
4821     Mips)        TARGET_HAS_JIT=0
4822  ;;
4823     PIC16)       TARGET_HAS_JIT=0
4824  ;;
4825     XCore)       TARGET_HAS_JIT=0
4826  ;;
4827     MSP430)      TARGET_HAS_JIT=0
4828  ;;
4829     SystemZ)     TARGET_HAS_JIT=0
4830  ;;
4831     Blackfin)    TARGET_HAS_JIT=0
4832  ;;
4833     MBlaze)      TARGET_HAS_JIT=0
4834  ;;
4835     *)           TARGET_HAS_JIT=0
4836  ;;
4837   esac
4838 fi
4839
4840 # Check whether --enable-doxygen was given.
4841 if test "${enable_doxygen+set}" = set; then
4842   enableval=$enable_doxygen;
4843 else
4844   enableval=default
4845 fi
4846
4847 case "$enableval" in
4848   yes) ENABLE_DOXYGEN=1
4849  ;;
4850   no)  ENABLE_DOXYGEN=0
4851  ;;
4852   default) ENABLE_DOXYGEN=0
4853  ;;
4854   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4855 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4856    { (exit 1); exit 1; }; } ;;
4857 esac
4858
4859 # Check whether --enable-threads was given.
4860 if test "${enable_threads+set}" = set; then
4861   enableval=$enable_threads;
4862 else
4863   enableval=default
4864 fi
4865
4866 case "$enableval" in
4867   yes) ENABLE_THREADS=1
4868  ;;
4869   no)  ENABLE_THREADS=0
4870  ;;
4871   default) ENABLE_THREADS=1
4872  ;;
4873   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4874 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4875    { (exit 1); exit 1; }; } ;;
4876 esac
4877
4878 cat >>confdefs.h <<_ACEOF
4879 #define ENABLE_THREADS $ENABLE_THREADS
4880 _ACEOF
4881
4882
4883 # Check whether --enable-pic was given.
4884 if test "${enable_pic+set}" = set; then
4885   enableval=$enable_pic;
4886 else
4887   enableval=default
4888 fi
4889
4890 case "$enableval" in
4891   yes) ENABLE_PIC=1
4892  ;;
4893   no)  ENABLE_PIC=0
4894  ;;
4895   default) ENABLE_PIC=1
4896  ;;
4897   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4898 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4899    { (exit 1); exit 1; }; } ;;
4900 esac
4901
4902 cat >>confdefs.h <<_ACEOF
4903 #define ENABLE_PIC $ENABLE_PIC
4904 _ACEOF
4905
4906
4907 # Check whether --enable-shared was given.
4908 if test "${enable_shared+set}" = set; then
4909   enableval=$enable_shared;
4910 else
4911   enableval=default
4912 fi
4913
4914 case "$enableval" in
4915   yes) ENABLE_SHARED=1
4916  ;;
4917   no)  ENABLE_SHARED=0
4918  ;;
4919   default) ENABLE_SHARED=0
4920  ;;
4921   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4922 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4923    { (exit 1); exit 1; }; } ;;
4924 esac
4925
4926 TARGETS_TO_BUILD=""
4927 # Check whether --enable-targets was given.
4928 if test "${enable_targets+set}" = set; then
4929   enableval=$enable_targets;
4930 else
4931   enableval=all
4932 fi
4933
4934 if test "$enableval" = host-only ; then
4935   enableval=host
4936 fi
4937 case "$enableval" in
4938   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4939   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4940       case "$a_target" in
4941         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4942         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4943         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4944         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4945         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4946         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4947         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4948         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4949         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4950         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4951         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4952         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4953         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4954         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4955         msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4956         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4957         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4958         host) case "$llvm_cv_target_arch" in
4959             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4960             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4961             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4962             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4963             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4964             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4965             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4966             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4967             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4968             PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4969             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4970             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4971             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4972             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4973             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4974 echo "$as_me: error: Can not set target to build" >&2;}
4975    { (exit 1); exit 1; }; } ;;
4976           esac ;;
4977         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4978 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4979    { (exit 1); exit 1; }; } ;;
4980       esac
4981   done
4982   ;;
4983 esac
4984 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4985
4986
4987 # Determine whether we are building LLVM support for the native architecture.
4988 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4989 for a_target in $TARGETS_TO_BUILD; do
4990   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4991     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4992
4993 cat >>confdefs.h <<_ACEOF
4994 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4995 _ACEOF
4996
4997   fi
4998 done
4999
5000 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5001 # target feature def files.
5002 LLVM_ENUM_TARGETS=""
5003 LLVM_ENUM_ASM_PRINTERS=""
5004 LLVM_ENUM_ASM_PARSERS=""
5005 LLVM_ENUM_DISASSEMBLERS=""
5006 for target_to_build in $TARGETS_TO_BUILD; do
5007   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5008   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5009     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5010   fi
5011   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5012     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5013   fi
5014   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5015     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5016   fi
5017 done
5018
5019
5020
5021
5022
5023 # Check whether --enable-cbe-printf-a was given.
5024 if test "${enable_cbe_printf_a+set}" = set; then
5025   enableval=$enable_cbe_printf_a;
5026 else
5027   enableval=default
5028 fi
5029
5030 case "$enableval" in
5031   yes) ENABLE_CBE_PRINTF_A=1
5032  ;;
5033   no)  ENABLE_CBE_PRINTF_A=0
5034  ;;
5035   default)  ENABLE_CBE_PRINTF_A=1
5036  ;;
5037   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5038 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5039    { (exit 1); exit 1; }; } ;;
5040 esac
5041
5042 cat >>confdefs.h <<_ACEOF
5043 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5044 _ACEOF
5045
5046
5047
5048 # Check whether --with-llvmgccdir was given.
5049 if test "${with_llvmgccdir+set}" = set; then
5050   withval=$with_llvmgccdir;
5051 else
5052   withval=default
5053 fi
5054
5055 case "$withval" in
5056   default) WITH_LLVMGCCDIR=default ;;
5057   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5058   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5059 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5060    { (exit 1); exit 1; }; } ;;
5061 esac
5062
5063
5064 # Check whether --with-llvmgcc was given.
5065 if test "${with_llvmgcc+set}" = set; then
5066   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5067       WITH_LLVMGCCDIR=""
5068 fi
5069
5070
5071
5072 # Check whether --with-llvmgxx was given.
5073 if test "${with_llvmgxx+set}" = set; then
5074   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5075     WITH_LLVMGCCDIR=""
5076 fi
5077
5078
5079 if test -n "$LLVMGCC"; then
5080    LLVMGCCCOMMAND="$LLVMGCC"
5081 fi
5082
5083 if test -n "$LLVMGXX"; then
5084    LLVMGXXCOMMAND="$LLVMGXX"
5085 fi
5086
5087 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5088    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5089 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5090    { (exit 1); exit 1; }; };
5091 fi
5092
5093 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5094    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5095 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5096    { (exit 1); exit 1; }; };
5097 fi
5098
5099
5100 # Check whether --with-clang was given.
5101 if test "${with_clang+set}" = set; then
5102   withval=$with_clang;
5103 else
5104   with_clang=default
5105 fi
5106
5107
5108
5109 # Check whether --with-built-clang was given.
5110 if test "${with_built_clang+set}" = set; then
5111   withval=$with_built_clang;
5112 else
5113   with_built_clang=check
5114 fi
5115
5116
5117 { echo "$as_me:$LINENO: checking clang compiler" >&5
5118 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5119 WITH_CLANGPATH=""
5120 WITH_BUILT_CLANG=0
5121 if test "$with_clang" != "default"; then
5122    WITH_CLANGPATH="$with_clang"
5123    if ! test -x "$WITH_CLANGPATH"; then
5124      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5125 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5126    { (exit 1); exit 1; }; }
5127    fi
5128 elif test "$with_built_clang" = "yes"; then
5129    WITH_BUILT_CLANG=1
5130 elif test "$with_built_clang" = "no"; then
5131    WITH_BUILT_CLANG=0
5132 else
5133    if test "$with_built_clang" != "check"; then
5134       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5135 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5136    { (exit 1); exit 1; }; }
5137    fi
5138
5139    if test -f ${srcdir}/tools/clang/README.txt; then
5140      WITH_BUILT_CLANG=1
5141    fi
5142 fi
5143
5144 if ! test -z "$WITH_CLANGPATH"; then
5145    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5146 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5147    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5148 elif test "$WITH_BUILT_CLANG" = "1"; then
5149    { echo "$as_me:$LINENO: result: built" >&5
5150 echo "${ECHO_T}built" >&6; }
5151 else
5152    { echo "$as_me:$LINENO: result: none" >&5
5153 echo "${ECHO_T}none" >&6; }
5154 fi
5155 CLANGPATH=$WITH_CLANGPATH
5156
5157 CLANGXXPATH=$WITH_CLANGXXPATH
5158
5159 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5160
5161
5162
5163 # Check whether --with-optimize-option was given.
5164 if test "${with_optimize_option+set}" = set; then
5165   withval=$with_optimize_option;
5166 else
5167   withval=default
5168 fi
5169
5170 { echo "$as_me:$LINENO: checking optimization flags" >&5
5171 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5172 case "$withval" in
5173   default)
5174     case "$llvm_cv_os_type" in
5175     FreeBSD) optimize_option=-O2 ;;
5176     MingW) optimize_option=-O2 ;;
5177     *)     optimize_option=-O3 ;;
5178     esac ;;
5179   *) optimize_option="$withval" ;;
5180 esac
5181 OPTIMIZE_OPTION=$optimize_option
5182
5183 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5184 echo "${ECHO_T}$optimize_option" >&6; }
5185
5186
5187 # Check whether --with-extra-options was given.
5188 if test "${with_extra_options+set}" = set; then
5189   withval=$with_extra_options;
5190 else
5191   withval=default
5192 fi
5193
5194 case "$withval" in
5195   default) EXTRA_OPTIONS= ;;
5196   *) EXTRA_OPTIONS=$withval ;;
5197 esac
5198 EXTRA_OPTIONS=$EXTRA_OPTIONS
5199
5200
5201 # Check whether --enable-bindings was given.
5202 if test "${enable_bindings+set}" = set; then
5203   enableval=$enable_bindings;
5204 else
5205   enableval=default
5206 fi
5207
5208 BINDINGS_TO_BUILD=""
5209 case "$enableval" in
5210   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5211   all ) BINDINGS_TO_BUILD="ocaml" ;;
5212   none | no) BINDINGS_TO_BUILD="" ;;
5213   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5214       case "$a_binding" in
5215         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5216         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5217 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5218    { (exit 1); exit 1; }; } ;;
5219       esac
5220   done
5221   ;;
5222 esac
5223
5224
5225 # Check whether --with-ocaml-libdir was given.
5226 if test "${with_ocaml_libdir+set}" = set; then
5227   withval=$with_ocaml_libdir;
5228 else
5229   withval=auto
5230 fi
5231
5232 case "$withval" in
5233   auto) with_ocaml_libdir="$withval" ;;
5234   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5235   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5236 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5237    { (exit 1); exit 1; }; } ;;
5238 esac
5239
5240
5241 # Check whether --with-c-include-dirs was given.
5242 if test "${with_c_include_dirs+set}" = set; then
5243   withval=$with_c_include_dirs;
5244 else
5245   withval=""
5246 fi
5247
5248
5249 cat >>confdefs.h <<_ACEOF
5250 #define C_INCLUDE_DIRS "$withval"
5251 _ACEOF
5252
5253
5254
5255 # Check whether --with-cxx-include-root was given.
5256 if test "${with_cxx_include_root+set}" = set; then
5257   withval=$with_cxx_include_root;
5258 else
5259   withval=""
5260 fi
5261
5262
5263 cat >>confdefs.h <<_ACEOF
5264 #define CXX_INCLUDE_ROOT "$withval"
5265 _ACEOF
5266
5267
5268
5269 # Check whether --with-cxx-include-arch was given.
5270 if test "${with_cxx_include_arch+set}" = set; then
5271   withval=$with_cxx_include_arch;
5272 else
5273   withval=""
5274 fi
5275
5276
5277 cat >>confdefs.h <<_ACEOF
5278 #define CXX_INCLUDE_ARCH "$withval"
5279 _ACEOF
5280
5281
5282
5283 # Check whether --with-cxx-include-32bit-dir was given.
5284 if test "${with_cxx_include_32bit_dir+set}" = set; then
5285   withval=$with_cxx_include_32bit_dir;
5286 else
5287   withval=""
5288 fi
5289
5290
5291 cat >>confdefs.h <<_ACEOF
5292 #define CXX_INCLUDE_32BIT_DIR "$withval"
5293 _ACEOF
5294
5295
5296
5297 # Check whether --with-cxx-include-64bit-dir was given.
5298 if test "${with_cxx_include_64bit_dir+set}" = set; then
5299   withval=$with_cxx_include_64bit_dir;
5300 else
5301   withval=""
5302 fi
5303
5304
5305 cat >>confdefs.h <<_ACEOF
5306 #define CXX_INCLUDE_64BIT_DIR "$withval"
5307 _ACEOF
5308
5309
5310
5311 # Check whether --with-binutils-include was given.
5312 if test "${with_binutils_include+set}" = set; then
5313   withval=$with_binutils_include;
5314 else
5315   withval=default
5316 fi
5317
5318 case "$withval" in
5319   default) WITH_BINUTILS_INCDIR=default ;;
5320   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5321   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5322 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5323    { (exit 1); exit 1; }; } ;;
5324 esac
5325 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5326   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5327
5328   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5329      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5330      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5331 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5332    { (exit 1); exit 1; }; };
5333   fi
5334 fi
5335
5336 # Check whether --enable-libffi was given.
5337 if test "${enable_libffi+set}" = set; then
5338   enableval=$enable_libffi; case "$enableval" in
5339     yes) llvm_cv_enable_libffi="yes" ;;
5340     no)  llvm_cv_enable_libffi="no"  ;;
5341     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5342 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5343    { (exit 1); exit 1; }; } ;;
5344   esac
5345 else
5346   llvm_cv_enable_libffi=no
5347 fi
5348
5349
5350 if test "$llvm_cv_os_type" = "Win32" ; then
5351    llvmc_dynamic="yes"
5352 else
5353    llvmc_dynamic="no"
5354 fi
5355
5356 # Check whether --enable-llvmc-dynamic was given.
5357 if test "${enable_llvmc_dynamic+set}" = set; then
5358   enableval=$enable_llvmc_dynamic;
5359 else
5360   enableval=$llvmc_dynamic
5361 fi
5362
5363 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5364    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5365
5366 else
5367    ENABLE_LLVMC_DYNAMIC=
5368
5369 fi
5370
5371 # Check whether --enable-llvmc-dynamic-plugins was given.
5372 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5373   enableval=$enable_llvmc_dynamic_plugins;
5374 else
5375   enableval=yes
5376 fi
5377
5378 if test ${enableval} = "yes" ; then
5379    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5380
5381 else
5382    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5383
5384 fi
5385
5386
5387 ac_ext=c
5388 ac_cpp='$CPP $CPPFLAGS'
5389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5392 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5393 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5394 # On Suns, sometimes $CPP names a directory.
5395 if test -n "$CPP" && test -d "$CPP"; then
5396   CPP=
5397 fi
5398 if test -z "$CPP"; then
5399   if test "${ac_cv_prog_CPP+set}" = set; then
5400   echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402       # Double quotes because CPP needs to be expanded
5403     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5404     do
5405       ac_preproc_ok=false
5406 for ac_c_preproc_warn_flag in '' yes
5407 do
5408   # Use a header file that comes with gcc, so configuring glibc
5409   # with a fresh cross-compiler works.
5410   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5411   # <limits.h> exists even on freestanding compilers.
5412   # On the NeXT, cc -E runs the code through the compiler's parser,
5413   # not just through cpp. "Syntax error" is here to catch this case.
5414   cat >conftest.$ac_ext <<_ACEOF
5415 /* confdefs.h.  */
5416 _ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h.  */
5420 #ifdef __STDC__
5421 # include <limits.h>
5422 #else
5423 # include <assert.h>
5424 #endif
5425                      Syntax error
5426 _ACEOF
5427 if { (ac_try="$ac_cpp conftest.$ac_ext"
5428 case "(($ac_try" in
5429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430   *) ac_try_echo=$ac_try;;
5431 esac
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5434   ac_status=$?
5435   grep -v '^ *+' conftest.er1 >conftest.err
5436   rm -f conftest.er1
5437   cat conftest.err >&5
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); } >/dev/null; then
5440   if test -s conftest.err; then
5441     ac_cpp_err=$ac_c_preproc_warn_flag
5442     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5443   else
5444     ac_cpp_err=
5445   fi
5446 else
5447   ac_cpp_err=yes
5448 fi
5449 if test -z "$ac_cpp_err"; then
5450   :
5451 else
5452   echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5454
5455   # Broken: fails on valid input.
5456 continue
5457 fi
5458
5459 rm -f conftest.err conftest.$ac_ext
5460
5461   # OK, works on sane cases.  Now check whether nonexistent headers
5462   # can be detected and how.
5463   cat >conftest.$ac_ext <<_ACEOF
5464 /* confdefs.h.  */
5465 _ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h.  */
5469 #include <ac_nonexistent.h>
5470 _ACEOF
5471 if { (ac_try="$ac_cpp conftest.$ac_ext"
5472 case "(($ac_try" in
5473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474   *) ac_try_echo=$ac_try;;
5475 esac
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5478   ac_status=$?
5479   grep -v '^ *+' conftest.er1 >conftest.err
5480   rm -f conftest.er1
5481   cat conftest.err >&5
5482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483   (exit $ac_status); } >/dev/null; then
5484   if test -s conftest.err; then
5485     ac_cpp_err=$ac_c_preproc_warn_flag
5486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5487   else
5488     ac_cpp_err=
5489   fi
5490 else
5491   ac_cpp_err=yes
5492 fi
5493 if test -z "$ac_cpp_err"; then
5494   # Broken: success on invalid input.
5495 continue
5496 else
5497   echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5499
5500   # Passes both tests.
5501 ac_preproc_ok=:
5502 break
5503 fi
5504
5505 rm -f conftest.err conftest.$ac_ext
5506
5507 done
5508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5509 rm -f conftest.err conftest.$ac_ext
5510 if $ac_preproc_ok; then
5511   break
5512 fi
5513
5514     done
5515     ac_cv_prog_CPP=$CPP
5516
5517 fi
5518   CPP=$ac_cv_prog_CPP
5519 else
5520   ac_cv_prog_CPP=$CPP
5521 fi
5522 { echo "$as_me:$LINENO: result: $CPP" >&5
5523 echo "${ECHO_T}$CPP" >&6; }
5524 ac_preproc_ok=false
5525 for ac_c_preproc_warn_flag in '' yes
5526 do
5527   # Use a header file that comes with gcc, so configuring glibc
5528   # with a fresh cross-compiler works.
5529   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5530   # <limits.h> exists even on freestanding compilers.
5531   # On the NeXT, cc -E runs the code through the compiler's parser,
5532   # not just through cpp. "Syntax error" is here to catch this case.
5533   cat >conftest.$ac_ext <<_ACEOF
5534 /* confdefs.h.  */
5535 _ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h.  */
5539 #ifdef __STDC__
5540 # include <limits.h>
5541 #else
5542 # include <assert.h>
5543 #endif
5544                      Syntax error
5545 _ACEOF
5546 if { (ac_try="$ac_cpp conftest.$ac_ext"
5547 case "(($ac_try" in
5548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549   *) ac_try_echo=$ac_try;;
5550 esac
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5553   ac_status=$?
5554   grep -v '^ *+' conftest.er1 >conftest.err
5555   rm -f conftest.er1
5556   cat conftest.err >&5
5557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558   (exit $ac_status); } >/dev/null; then
5559   if test -s conftest.err; then
5560     ac_cpp_err=$ac_c_preproc_warn_flag
5561     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5562   else
5563     ac_cpp_err=
5564   fi
5565 else
5566   ac_cpp_err=yes
5567 fi
5568 if test -z "$ac_cpp_err"; then
5569   :
5570 else
5571   echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5573
5574   # Broken: fails on valid input.
5575 continue
5576 fi
5577
5578 rm -f conftest.err conftest.$ac_ext
5579
5580   # OK, works on sane cases.  Now check whether nonexistent headers
5581   # can be detected and how.
5582   cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h.  */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h.  */
5588 #include <ac_nonexistent.h>
5589 _ACEOF
5590 if { (ac_try="$ac_cpp conftest.$ac_ext"
5591 case "(($ac_try" in
5592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593   *) ac_try_echo=$ac_try;;
5594 esac
5595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5597   ac_status=$?
5598   grep -v '^ *+' conftest.er1 >conftest.err
5599   rm -f conftest.er1
5600   cat conftest.err >&5
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); } >/dev/null; then
5603   if test -s conftest.err; then
5604     ac_cpp_err=$ac_c_preproc_warn_flag
5605     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5606   else
5607     ac_cpp_err=
5608   fi
5609 else
5610   ac_cpp_err=yes
5611 fi
5612 if test -z "$ac_cpp_err"; then
5613   # Broken: success on invalid input.
5614 continue
5615 else
5616   echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5618
5619   # Passes both tests.
5620 ac_preproc_ok=:
5621 break
5622 fi
5623
5624 rm -f conftest.err conftest.$ac_ext
5625
5626 done
5627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5628 rm -f conftest.err conftest.$ac_ext
5629 if $ac_preproc_ok; then
5630   :
5631 else
5632   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5633 See \`config.log' for more details." >&5
5634 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5635 See \`config.log' for more details." >&2;}
5636    { (exit 1); exit 1; }; }
5637 fi
5638
5639 ac_ext=c
5640 ac_cpp='$CPP $CPPFLAGS'
5641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5644
5645 ac_ext=c
5646 ac_cpp='$CPP $CPPFLAGS'
5647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5650 if test -n "$ac_tool_prefix"; then
5651   for ac_prog in gcc
5652   do
5653     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5657 if test "${ac_cv_prog_CC+set}" = set; then
5658   echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660   if test -n "$CC"; then
5661   ac_cv_prog_CC="$CC" # Let the user override the test.
5662 else
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5665 do
5666   IFS=$as_save_IFS
5667   test -z "$as_dir" && as_dir=.
5668   for ac_exec_ext in '' $ac_executable_extensions; do
5669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5670     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5672     break 2
5673   fi
5674 done
5675 done
5676 IFS=$as_save_IFS
5677
5678 fi
5679 fi
5680 CC=$ac_cv_prog_CC
5681 if test -n "$CC"; then
5682   { echo "$as_me:$LINENO: result: $CC" >&5
5683 echo "${ECHO_T}$CC" >&6; }
5684 else
5685   { echo "$as_me:$LINENO: result: no" >&5
5686 echo "${ECHO_T}no" >&6; }
5687 fi
5688
5689
5690     test -n "$CC" && break
5691   done
5692 fi
5693 if test -z "$CC"; then
5694   ac_ct_CC=$CC
5695   for ac_prog in gcc
5696 do
5697   # Extract the first word of "$ac_prog", so it can be a program name with args.
5698 set dummy $ac_prog; ac_word=$2
5699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5702   echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704   if test -n "$ac_ct_CC"; then
5705   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5706 else
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5709 do
5710   IFS=$as_save_IFS
5711   test -z "$as_dir" && as_dir=.
5712   for ac_exec_ext in '' $ac_executable_extensions; do
5713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5714     ac_cv_prog_ac_ct_CC="$ac_prog"
5715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5716     break 2
5717   fi
5718 done
5719 done
5720 IFS=$as_save_IFS
5721
5722 fi
5723 fi
5724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5725 if test -n "$ac_ct_CC"; then
5726   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5727 echo "${ECHO_T}$ac_ct_CC" >&6; }
5728 else
5729   { echo "$as_me:$LINENO: result: no" >&5
5730 echo "${ECHO_T}no" >&6; }
5731 fi
5732
5733
5734   test -n "$ac_ct_CC" && break
5735 done
5736
5737   if test "x$ac_ct_CC" = x; then
5738     CC=""
5739   else
5740     case $cross_compiling:$ac_tool_warned in
5741 yes:)
5742 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5743 whose name does not start with the host triplet.  If you think this
5744 configuration is useful to you, please write to autoconf@gnu.org." >&5
5745 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5746 whose name does not start with the host triplet.  If you think this
5747 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5748 ac_tool_warned=yes ;;
5749 esac
5750     CC=$ac_ct_CC
5751   fi
5752 fi
5753
5754
5755 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5756 See \`config.log' for more details." >&5
5757 echo "$as_me: error: no acceptable C compiler found in \$PATH
5758 See \`config.log' for more details." >&2;}
5759    { (exit 1); exit 1; }; }
5760
5761 # Provide some information about the compiler.
5762 echo "$as_me:$LINENO: checking for C compiler version" >&5
5763 ac_compiler=`set X $ac_compile; echo $2`
5764 { (ac_try="$ac_compiler --version >&5"
5765 case "(($ac_try" in
5766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767   *) ac_try_echo=$ac_try;;
5768 esac
5769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770   (eval "$ac_compiler --version >&5") 2>&5
5771   ac_status=$?
5772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773   (exit $ac_status); }
5774 { (ac_try="$ac_compiler -v >&5"
5775 case "(($ac_try" in
5776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777   *) ac_try_echo=$ac_try;;
5778 esac
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780   (eval "$ac_compiler -v >&5") 2>&5
5781   ac_status=$?
5782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783   (exit $ac_status); }
5784 { (ac_try="$ac_compiler -V >&5"
5785 case "(($ac_try" in
5786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787   *) ac_try_echo=$ac_try;;
5788 esac
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790   (eval "$ac_compiler -V >&5") 2>&5
5791   ac_status=$?
5792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793   (exit $ac_status); }
5794
5795 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5796 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5797 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5798   echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800   cat >conftest.$ac_ext <<_ACEOF
5801 /* confdefs.h.  */
5802 _ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h.  */
5806
5807 int
5808 main ()
5809 {
5810 #ifndef __GNUC__
5811        choke me
5812 #endif
5813
5814   ;
5815   return 0;
5816 }
5817 _ACEOF
5818 rm -f conftest.$ac_objext
5819 if { (ac_try="$ac_compile"
5820 case "(($ac_try" in
5821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822   *) ac_try_echo=$ac_try;;
5823 esac
5824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825   (eval "$ac_compile") 2>conftest.er1
5826   ac_status=$?
5827   grep -v '^ *+' conftest.er1 >conftest.err
5828   rm -f conftest.er1
5829   cat conftest.err >&5
5830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831   (exit $ac_status); } &&
5832          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5833   { (case "(($ac_try" in
5834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835   *) ac_try_echo=$ac_try;;
5836 esac
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838   (eval "$ac_try") 2>&5
5839   ac_status=$?
5840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841   (exit $ac_status); }; } &&
5842          { ac_try='test -s conftest.$ac_objext'
5843   { (case "(($ac_try" in
5844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845   *) ac_try_echo=$ac_try;;
5846 esac
5847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848   (eval "$ac_try") 2>&5
5849   ac_status=$?
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); }; }; then
5852   ac_compiler_gnu=yes
5853 else
5854   echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5856
5857         ac_compiler_gnu=no
5858 fi
5859
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5862
5863 fi
5864 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5865 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5866 GCC=`test $ac_compiler_gnu = yes && echo yes`
5867 ac_test_CFLAGS=${CFLAGS+set}
5868 ac_save_CFLAGS=$CFLAGS
5869 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5870 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5871 if test "${ac_cv_prog_cc_g+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   ac_save_c_werror_flag=$ac_c_werror_flag
5875    ac_c_werror_flag=yes
5876    ac_cv_prog_cc_g=no
5877    CFLAGS="-g"
5878    cat >conftest.$ac_ext <<_ACEOF
5879 /* confdefs.h.  */
5880 _ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h.  */
5884
5885 int
5886 main ()
5887 {
5888
5889   ;
5890   return 0;
5891 }
5892 _ACEOF
5893 rm -f conftest.$ac_objext
5894 if { (ac_try="$ac_compile"
5895 case "(($ac_try" in
5896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897   *) ac_try_echo=$ac_try;;
5898 esac
5899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900   (eval "$ac_compile") 2>conftest.er1
5901   ac_status=$?
5902   grep -v '^ *+' conftest.er1 >conftest.err
5903   rm -f conftest.er1
5904   cat conftest.err >&5
5905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906   (exit $ac_status); } &&
5907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5908   { (case "(($ac_try" in
5909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910   *) ac_try_echo=$ac_try;;
5911 esac
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913   (eval "$ac_try") 2>&5
5914   ac_status=$?
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); }; } &&
5917          { ac_try='test -s conftest.$ac_objext'
5918   { (case "(($ac_try" in
5919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920   *) ac_try_echo=$ac_try;;
5921 esac
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923   (eval "$ac_try") 2>&5
5924   ac_status=$?
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); }; }; then
5927   ac_cv_prog_cc_g=yes
5928 else
5929   echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5931
5932         CFLAGS=""
5933       cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h.  */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h.  */
5939
5940 int
5941 main ()
5942 {
5943
5944   ;
5945   return 0;
5946 }
5947 _ACEOF
5948 rm -f conftest.$ac_objext
5949 if { (ac_try="$ac_compile"
5950 case "(($ac_try" in
5951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5952   *) ac_try_echo=$ac_try;;
5953 esac
5954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5955   (eval "$ac_compile") 2>conftest.er1
5956   ac_status=$?
5957   grep -v '^ *+' conftest.er1 >conftest.err
5958   rm -f conftest.er1
5959   cat conftest.err >&5
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); } &&
5962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5963   { (case "(($ac_try" in
5964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965   *) ac_try_echo=$ac_try;;
5966 esac
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968   (eval "$ac_try") 2>&5
5969   ac_status=$?
5970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971   (exit $ac_status); }; } &&
5972          { ac_try='test -s conftest.$ac_objext'
5973   { (case "(($ac_try" in
5974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975   *) ac_try_echo=$ac_try;;
5976 esac
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978   (eval "$ac_try") 2>&5
5979   ac_status=$?
5980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981   (exit $ac_status); }; }; then
5982   :
5983 else
5984   echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.$ac_ext >&5
5986
5987         ac_c_werror_flag=$ac_save_c_werror_flag
5988          CFLAGS="-g"
5989          cat >conftest.$ac_ext <<_ACEOF
5990 /* confdefs.h.  */
5991 _ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h.  */
5995
5996 int
5997 main ()
5998 {
5999
6000   ;
6001   return 0;
6002 }
6003 _ACEOF
6004 rm -f conftest.$ac_objext
6005 if { (ac_try="$ac_compile"
6006 case "(($ac_try" in
6007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008   *) ac_try_echo=$ac_try;;
6009 esac
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011   (eval "$ac_compile") 2>conftest.er1
6012   ac_status=$?
6013   grep -v '^ *+' conftest.er1 >conftest.err
6014   rm -f conftest.er1
6015   cat conftest.err >&5
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); } &&
6018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6019   { (case "(($ac_try" in
6020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021   *) ac_try_echo=$ac_try;;
6022 esac
6023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024   (eval "$ac_try") 2>&5
6025   ac_status=$?
6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); }; } &&
6028          { ac_try='test -s conftest.$ac_objext'
6029   { (case "(($ac_try" in
6030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031   *) ac_try_echo=$ac_try;;
6032 esac
6033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034   (eval "$ac_try") 2>&5
6035   ac_status=$?
6036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037   (exit $ac_status); }; }; then
6038   ac_cv_prog_cc_g=yes
6039 else
6040   echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6042
6043
6044 fi
6045
6046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047 fi
6048
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 fi
6051
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053    ac_c_werror_flag=$ac_save_c_werror_flag
6054 fi
6055 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6056 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6057 if test "$ac_test_CFLAGS" = set; then
6058   CFLAGS=$ac_save_CFLAGS
6059 elif test $ac_cv_prog_cc_g = yes; then
6060   if test "$GCC" = yes; then
6061     CFLAGS="-g -O2"
6062   else
6063     CFLAGS="-g"
6064   fi
6065 else
6066   if test "$GCC" = yes; then
6067     CFLAGS="-O2"
6068   else
6069     CFLAGS=
6070   fi
6071 fi
6072 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6073 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6074 if test "${ac_cv_prog_cc_c89+set}" = set; then
6075   echo $ECHO_N "(cached) $ECHO_C" >&6
6076 else
6077   ac_cv_prog_cc_c89=no
6078 ac_save_CC=$CC
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h.  */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h.  */
6085 #include <stdarg.h>
6086 #include <stdio.h>
6087 #include <sys/types.h>
6088 #include <sys/stat.h>
6089 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6090 struct buf { int x; };
6091 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6092 static char *e (p, i)
6093      char **p;
6094      int i;
6095 {
6096   return p[i];
6097 }
6098 static char *f (char * (*g) (char **, int), char **p, ...)
6099 {
6100   char *s;
6101   va_list v;
6102   va_start (v,p);
6103   s = g (p, va_arg (v,int));
6104   va_end (v);
6105   return s;
6106 }
6107
6108 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6109    function prototypes and stuff, but not '\xHH' hex character constants.
6110    These don't provoke an error unfortunately, instead are silently treated
6111    as 'x'.  The following induces an error, until -std is added to get
6112    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6113    array size at least.  It's necessary to write '\x00'==0 to get something
6114    that's true only with -std.  */
6115 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6116
6117 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6118    inside strings and character constants.  */
6119 #define FOO(x) 'x'
6120 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6121
6122 int test (int i, double x);
6123 struct s1 {int (*f) (int a);};
6124 struct s2 {int (*f) (double a);};
6125 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6126 int argc;
6127 char **argv;
6128 int
6129 main ()
6130 {
6131 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6132   ;
6133   return 0;
6134 }
6135 _ACEOF
6136 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6137         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6138 do
6139   CC="$ac_save_CC $ac_arg"
6140   rm -f conftest.$ac_objext
6141 if { (ac_try="$ac_compile"
6142 case "(($ac_try" in
6143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6144   *) ac_try_echo=$ac_try;;
6145 esac
6146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147   (eval "$ac_compile") 2>conftest.er1
6148   ac_status=$?
6149   grep -v '^ *+' conftest.er1 >conftest.err
6150   rm -f conftest.er1
6151   cat conftest.err >&5
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); } &&
6154          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6155   { (case "(($ac_try" in
6156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157   *) ac_try_echo=$ac_try;;
6158 esac
6159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160   (eval "$ac_try") 2>&5
6161   ac_status=$?
6162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163   (exit $ac_status); }; } &&
6164          { ac_try='test -s conftest.$ac_objext'
6165   { (case "(($ac_try" in
6166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6167   *) ac_try_echo=$ac_try;;
6168 esac
6169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6170   (eval "$ac_try") 2>&5
6171   ac_status=$?
6172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173   (exit $ac_status); }; }; then
6174   ac_cv_prog_cc_c89=$ac_arg
6175 else
6176   echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.$ac_ext >&5
6178
6179
6180 fi
6181
6182 rm -f core conftest.err conftest.$ac_objext
6183   test "x$ac_cv_prog_cc_c89" != "xno" && break
6184 done
6185 rm -f conftest.$ac_ext
6186 CC=$ac_save_CC
6187
6188 fi
6189 # AC_CACHE_VAL
6190 case "x$ac_cv_prog_cc_c89" in
6191   x)
6192     { echo "$as_me:$LINENO: result: none needed" >&5
6193 echo "${ECHO_T}none needed" >&6; } ;;
6194   xno)
6195     { echo "$as_me:$LINENO: result: unsupported" >&5
6196 echo "${ECHO_T}unsupported" >&6; } ;;
6197   *)
6198     CC="$CC $ac_cv_prog_cc_c89"
6199     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6200 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6201 esac
6202
6203
6204 ac_ext=c
6205 ac_cpp='$CPP $CPPFLAGS'
6206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6209
6210 ac_ext=cpp
6211 ac_cpp='$CXXCPP $CPPFLAGS'
6212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6215 if test -z "$CXX"; then
6216   if test -n "$CCC"; then
6217     CXX=$CCC
6218   else
6219     if test -n "$ac_tool_prefix"; then
6220   for ac_prog in g++
6221   do
6222     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6223 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6226 if test "${ac_cv_prog_CXX+set}" = set; then
6227   echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229   if test -n "$CXX"; then
6230   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6231 else
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6234 do
6235   IFS=$as_save_IFS
6236   test -z "$as_dir" && as_dir=.
6237   for ac_exec_ext in '' $ac_executable_extensions; do
6238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6239     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241     break 2
6242   fi
6243 done
6244 done
6245 IFS=$as_save_IFS
6246
6247 fi
6248 fi
6249 CXX=$ac_cv_prog_CXX
6250 if test -n "$CXX"; then
6251   { echo "$as_me:$LINENO: result: $CXX" >&5
6252 echo "${ECHO_T}$CXX" >&6; }
6253 else
6254   { echo "$as_me:$LINENO: result: no" >&5
6255 echo "${ECHO_T}no" >&6; }
6256 fi
6257
6258
6259     test -n "$CXX" && break
6260   done
6261 fi
6262 if test -z "$CXX"; then
6263   ac_ct_CXX=$CXX
6264   for ac_prog in g++
6265 do
6266   # Extract the first word of "$ac_prog", so it can be a program name with args.
6267 set dummy $ac_prog; ac_word=$2
6268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6271   echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273   if test -n "$ac_ct_CXX"; then
6274   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6275 else
6276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 for as_dir in $PATH
6278 do
6279   IFS=$as_save_IFS
6280   test -z "$as_dir" && as_dir=.
6281   for ac_exec_ext in '' $ac_executable_extensions; do
6282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6283     ac_cv_prog_ac_ct_CXX="$ac_prog"
6284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6285     break 2
6286   fi
6287 done
6288 done
6289 IFS=$as_save_IFS
6290
6291 fi
6292 fi
6293 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6294 if test -n "$ac_ct_CXX"; then
6295   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6296 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6297 else
6298   { echo "$as_me:$LINENO: result: no" >&5
6299 echo "${ECHO_T}no" >&6; }
6300 fi
6301
6302
6303   test -n "$ac_ct_CXX" && break
6304 done
6305
6306   if test "x$ac_ct_CXX" = x; then
6307     CXX="g++"
6308   else
6309     case $cross_compiling:$ac_tool_warned in
6310 yes:)
6311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6312 whose name does not start with the host triplet.  If you think this
6313 configuration is useful to you, please write to autoconf@gnu.org." >&5
6314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6315 whose name does not start with the host triplet.  If you think this
6316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6317 ac_tool_warned=yes ;;
6318 esac
6319     CXX=$ac_ct_CXX
6320   fi
6321 fi
6322
6323   fi
6324 fi
6325 # Provide some information about the compiler.
6326 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6327 ac_compiler=`set X $ac_compile; echo $2`
6328 { (ac_try="$ac_compiler --version >&5"
6329 case "(($ac_try" in
6330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331   *) ac_try_echo=$ac_try;;
6332 esac
6333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6334   (eval "$ac_compiler --version >&5") 2>&5
6335   ac_status=$?
6336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337   (exit $ac_status); }
6338 { (ac_try="$ac_compiler -v >&5"
6339 case "(($ac_try" in
6340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341   *) ac_try_echo=$ac_try;;
6342 esac
6343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344   (eval "$ac_compiler -v >&5") 2>&5
6345   ac_status=$?
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); }
6348 { (ac_try="$ac_compiler -V >&5"
6349 case "(($ac_try" in
6350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351   *) ac_try_echo=$ac_try;;
6352 esac
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354   (eval "$ac_compiler -V >&5") 2>&5
6355   ac_status=$?
6356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357   (exit $ac_status); }
6358
6359 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6360 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6361 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6362   echo $ECHO_N "(cached) $ECHO_C" >&6
6363 else
6364   cat >conftest.$ac_ext <<_ACEOF
6365 /* confdefs.h.  */
6366 _ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h.  */
6370
6371 int
6372 main ()
6373 {
6374 #ifndef __GNUC__
6375        choke me
6376 #endif
6377
6378   ;
6379   return 0;
6380 }
6381 _ACEOF
6382 rm -f conftest.$ac_objext
6383 if { (ac_try="$ac_compile"
6384 case "(($ac_try" in
6385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386   *) ac_try_echo=$ac_try;;
6387 esac
6388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6389   (eval "$ac_compile") 2>conftest.er1
6390   ac_status=$?
6391   grep -v '^ *+' conftest.er1 >conftest.err
6392   rm -f conftest.er1
6393   cat conftest.err >&5
6394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395   (exit $ac_status); } &&
6396          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6397   { (case "(($ac_try" in
6398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399   *) ac_try_echo=$ac_try;;
6400 esac
6401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402   (eval "$ac_try") 2>&5
6403   ac_status=$?
6404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405   (exit $ac_status); }; } &&
6406          { ac_try='test -s conftest.$ac_objext'
6407   { (case "(($ac_try" in
6408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409   *) ac_try_echo=$ac_try;;
6410 esac
6411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412   (eval "$ac_try") 2>&5
6413   ac_status=$?
6414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415   (exit $ac_status); }; }; then
6416   ac_compiler_gnu=yes
6417 else
6418   echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6420
6421         ac_compiler_gnu=no
6422 fi
6423
6424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6426
6427 fi
6428 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6429 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6430 GXX=`test $ac_compiler_gnu = yes && echo yes`
6431 ac_test_CXXFLAGS=${CXXFLAGS+set}
6432 ac_save_CXXFLAGS=$CXXFLAGS
6433 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6434 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6435 if test "${ac_cv_prog_cxx_g+set}" = set; then
6436   echo $ECHO_N "(cached) $ECHO_C" >&6
6437 else
6438   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6439    ac_cxx_werror_flag=yes
6440    ac_cv_prog_cxx_g=no
6441    CXXFLAGS="-g"
6442    cat >conftest.$ac_ext <<_ACEOF
6443 /* confdefs.h.  */
6444 _ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h.  */
6448
6449 int
6450 main ()
6451 {
6452
6453   ;
6454   return 0;
6455 }
6456 _ACEOF
6457 rm -f conftest.$ac_objext
6458 if { (ac_try="$ac_compile"
6459 case "(($ac_try" in
6460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461   *) ac_try_echo=$ac_try;;
6462 esac
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464   (eval "$ac_compile") 2>conftest.er1
6465   ac_status=$?
6466   grep -v '^ *+' conftest.er1 >conftest.err
6467   rm -f conftest.er1
6468   cat conftest.err >&5
6469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470   (exit $ac_status); } &&
6471          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6472   { (case "(($ac_try" in
6473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474   *) ac_try_echo=$ac_try;;
6475 esac
6476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6477   (eval "$ac_try") 2>&5
6478   ac_status=$?
6479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480   (exit $ac_status); }; } &&
6481          { ac_try='test -s conftest.$ac_objext'
6482   { (case "(($ac_try" in
6483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484   *) ac_try_echo=$ac_try;;
6485 esac
6486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487   (eval "$ac_try") 2>&5
6488   ac_status=$?
6489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490   (exit $ac_status); }; }; then
6491   ac_cv_prog_cxx_g=yes
6492 else
6493   echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6495
6496         CXXFLAGS=""
6497       cat >conftest.$ac_ext <<_ACEOF
6498 /* confdefs.h.  */
6499 _ACEOF
6500 cat confdefs.h >>conftest.$ac_ext
6501 cat >>conftest.$ac_ext <<_ACEOF
6502 /* end confdefs.h.  */
6503
6504 int
6505 main ()
6506 {
6507
6508   ;
6509   return 0;
6510 }
6511 _ACEOF
6512 rm -f conftest.$ac_objext
6513 if { (ac_try="$ac_compile"
6514 case "(($ac_try" in
6515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6516   *) ac_try_echo=$ac_try;;
6517 esac
6518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6519   (eval "$ac_compile") 2>conftest.er1
6520   ac_status=$?
6521   grep -v '^ *+' conftest.er1 >conftest.err
6522   rm -f conftest.er1
6523   cat conftest.err >&5
6524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525   (exit $ac_status); } &&
6526          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6527   { (case "(($ac_try" in
6528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529   *) ac_try_echo=$ac_try;;
6530 esac
6531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6532   (eval "$ac_try") 2>&5
6533   ac_status=$?
6534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535   (exit $ac_status); }; } &&
6536          { ac_try='test -s conftest.$ac_objext'
6537   { (case "(($ac_try" in
6538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6539   *) ac_try_echo=$ac_try;;
6540 esac
6541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6542   (eval "$ac_try") 2>&5
6543   ac_status=$?
6544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545   (exit $ac_status); }; }; then
6546   :
6547 else
6548   echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6550
6551         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6552          CXXFLAGS="-g"
6553          cat >conftest.$ac_ext <<_ACEOF
6554 /* confdefs.h.  */
6555 _ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h.  */
6559
6560 int
6561 main ()
6562 {
6563
6564   ;
6565   return 0;
6566 }
6567 _ACEOF
6568 rm -f conftest.$ac_objext
6569 if { (ac_try="$ac_compile"
6570 case "(($ac_try" in
6571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572   *) ac_try_echo=$ac_try;;
6573 esac
6574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575   (eval "$ac_compile") 2>conftest.er1
6576   ac_status=$?
6577   grep -v '^ *+' conftest.er1 >conftest.err
6578   rm -f conftest.er1
6579   cat conftest.err >&5
6580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581   (exit $ac_status); } &&
6582          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6583   { (case "(($ac_try" in
6584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585   *) ac_try_echo=$ac_try;;
6586 esac
6587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588   (eval "$ac_try") 2>&5
6589   ac_status=$?
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); }; } &&
6592          { ac_try='test -s conftest.$ac_objext'
6593   { (case "(($ac_try" in
6594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595   *) ac_try_echo=$ac_try;;
6596 esac
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598   (eval "$ac_try") 2>&5
6599   ac_status=$?
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); }; }; then
6602   ac_cv_prog_cxx_g=yes
6603 else
6604   echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6606
6607
6608 fi
6609
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 fi
6612
6613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614 fi
6615
6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6618 fi
6619 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6620 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6621 if test "$ac_test_CXXFLAGS" = set; then
6622   CXXFLAGS=$ac_save_CXXFLAGS
6623 elif test $ac_cv_prog_cxx_g = yes; then
6624   if test "$GXX" = yes; then
6625     CXXFLAGS="-g -O2"
6626   else
6627     CXXFLAGS="-g"
6628   fi
6629 else
6630   if test "$GXX" = yes; then
6631     CXXFLAGS="-O2"
6632   else
6633     CXXFLAGS=
6634   fi
6635 fi
6636 ac_ext=c
6637 ac_cpp='$CPP $CPPFLAGS'
6638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6641
6642
6643 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6644 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6645 if test "${lt_cv_path_NM+set}" = set; then
6646   echo $ECHO_N "(cached) $ECHO_C" >&6
6647 else
6648   if test -n "$NM"; then
6649   # Let the user override the test.
6650   lt_cv_path_NM="$NM"
6651 else
6652   lt_nm_to_check="${ac_tool_prefix}nm"
6653   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6654     lt_nm_to_check="$lt_nm_to_check nm"
6655   fi
6656   for lt_tmp_nm in $lt_nm_to_check; do
6657     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6658     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6659       IFS="$lt_save_ifs"
6660       test -z "$ac_dir" && ac_dir=.
6661       tmp_nm="$ac_dir/$lt_tmp_nm"
6662       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6663         # Check to see if the nm accepts a BSD-compat flag.
6664         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6665         #   nm: unknown option "B" ignored
6666         # Tru64's nm complains that /dev/null is an invalid object file
6667         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6668         */dev/null* | *'Invalid file or object type'*)
6669           lt_cv_path_NM="$tmp_nm -B"
6670           break
6671           ;;
6672         *)
6673           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6674           */dev/null*)
6675             lt_cv_path_NM="$tmp_nm -p"
6676             break
6677             ;;
6678           *)
6679             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6680             continue # so that we can try to find one that supports BSD flags
6681             ;;
6682           esac
6683           ;;
6684         esac
6685       fi
6686     done
6687     IFS="$lt_save_ifs"
6688   done
6689   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6690 fi
6691 fi
6692 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6693 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6694 NM="$lt_cv_path_NM"
6695
6696
6697
6698 { echo "$as_me:$LINENO: checking for GNU make" >&5
6699 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6700 if test "${llvm_cv_gnu_make_command+set}" = set; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   llvm_cv_gnu_make_command=''
6704  for a in "$MAKE" make gmake gnumake ; do
6705   if test -z "$a" ; then continue ; fi ;
6706   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6707   then
6708    llvm_cv_gnu_make_command=$a ;
6709    break;
6710   fi
6711  done
6712 fi
6713 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6714 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6715  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6716    ifGNUmake='' ;
6717  else
6718    ifGNUmake='#' ;
6719    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6720 echo "${ECHO_T}\"Not found\"" >&6; };
6721  fi
6722
6723
6724 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6725 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6726 LN_S=$as_ln_s
6727 if test "$LN_S" = "ln -s"; then
6728   { echo "$as_me:$LINENO: result: yes" >&5
6729 echo "${ECHO_T}yes" >&6; }
6730 else
6731   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6732 echo "${ECHO_T}no, using $LN_S" >&6; }
6733 fi
6734
6735 # Extract the first word of "cmp", so it can be a program name with args.
6736 set dummy cmp; ac_word=$2
6737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739 if test "${ac_cv_path_CMP+set}" = set; then
6740   echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742   case $CMP in
6743   [\\/]* | ?:[\\/]*)
6744   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6745   ;;
6746   *)
6747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 for as_dir in $PATH
6749 do
6750   IFS=$as_save_IFS
6751   test -z "$as_dir" && as_dir=.
6752   for ac_exec_ext in '' $ac_executable_extensions; do
6753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6754     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756     break 2
6757   fi
6758 done
6759 done
6760 IFS=$as_save_IFS
6761
6762   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6763   ;;
6764 esac
6765 fi
6766 CMP=$ac_cv_path_CMP
6767 if test -n "$CMP"; then
6768   { echo "$as_me:$LINENO: result: $CMP" >&5
6769 echo "${ECHO_T}$CMP" >&6; }
6770 else
6771   { echo "$as_me:$LINENO: result: no" >&5
6772 echo "${ECHO_T}no" >&6; }
6773 fi
6774
6775
6776 # Extract the first word of "cp", so it can be a program name with args.
6777 set dummy cp; ac_word=$2
6778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780 if test "${ac_cv_path_CP+set}" = set; then
6781   echo $ECHO_N "(cached) $ECHO_C" >&6
6782 else
6783   case $CP in
6784   [\\/]* | ?:[\\/]*)
6785   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6786   ;;
6787   *)
6788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 for as_dir in $PATH
6790 do
6791   IFS=$as_save_IFS
6792   test -z "$as_dir" && as_dir=.
6793   for ac_exec_ext in '' $ac_executable_extensions; do
6794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6795     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6797     break 2
6798   fi
6799 done
6800 done
6801 IFS=$as_save_IFS
6802
6803   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6804   ;;
6805 esac
6806 fi
6807 CP=$ac_cv_path_CP
6808 if test -n "$CP"; then
6809   { echo "$as_me:$LINENO: result: $CP" >&5
6810 echo "${ECHO_T}$CP" >&6; }
6811 else
6812   { echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6; }
6814 fi
6815
6816
6817 # Extract the first word of "date", so it can be a program name with args.
6818 set dummy date; ac_word=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_path_DATE+set}" = set; then
6822   echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824   case $DATE in
6825   [\\/]* | ?:[\\/]*)
6826   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6827   ;;
6828   *)
6829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832   IFS=$as_save_IFS
6833   test -z "$as_dir" && as_dir=.
6834   for ac_exec_ext in '' $ac_executable_extensions; do
6835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6836     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838     break 2
6839   fi
6840 done
6841 done
6842 IFS=$as_save_IFS
6843
6844   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6845   ;;
6846 esac
6847 fi
6848 DATE=$ac_cv_path_DATE
6849 if test -n "$DATE"; then
6850   { echo "$as_me:$LINENO: result: $DATE" >&5
6851 echo "${ECHO_T}$DATE" >&6; }
6852 else
6853   { echo "$as_me:$LINENO: result: no" >&5
6854 echo "${ECHO_T}no" >&6; }
6855 fi
6856
6857
6858 # Extract the first word of "find", so it can be a program name with args.
6859 set dummy find; ac_word=$2
6860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6862 if test "${ac_cv_path_FIND+set}" = set; then
6863   echo $ECHO_N "(cached) $ECHO_C" >&6
6864 else
6865   case $FIND in
6866   [\\/]* | ?:[\\/]*)
6867   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6868   ;;
6869   *)
6870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6872 do
6873   IFS=$as_save_IFS
6874   test -z "$as_dir" && as_dir=.
6875   for ac_exec_ext in '' $ac_executable_extensions; do
6876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6877     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879     break 2
6880   fi
6881 done
6882 done
6883 IFS=$as_save_IFS
6884
6885   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6886   ;;
6887 esac
6888 fi
6889 FIND=$ac_cv_path_FIND
6890 if test -n "$FIND"; then
6891   { echo "$as_me:$LINENO: result: $FIND" >&5
6892 echo "${ECHO_T}$FIND" >&6; }
6893 else
6894   { echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6; }
6896 fi
6897
6898
6899 # Extract the first word of "grep", so it can be a program name with args.
6900 set dummy grep; ac_word=$2
6901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6903 if test "${ac_cv_path_GREP+set}" = set; then
6904   echo $ECHO_N "(cached) $ECHO_C" >&6
6905 else
6906   case $GREP in
6907   [\\/]* | ?:[\\/]*)
6908   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6909   ;;
6910   *)
6911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6913 do
6914   IFS=$as_save_IFS
6915   test -z "$as_dir" && as_dir=.
6916   for ac_exec_ext in '' $ac_executable_extensions; do
6917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6918     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6920     break 2
6921   fi
6922 done
6923 done
6924 IFS=$as_save_IFS
6925
6926   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6927   ;;
6928 esac
6929 fi
6930 GREP=$ac_cv_path_GREP
6931 if test -n "$GREP"; then
6932   { echo "$as_me:$LINENO: result: $GREP" >&5
6933 echo "${ECHO_T}$GREP" >&6; }
6934 else
6935   { echo "$as_me:$LINENO: result: no" >&5
6936 echo "${ECHO_T}no" >&6; }
6937 fi
6938
6939
6940 # Extract the first word of "mkdir", so it can be a program name with args.
6941 set dummy mkdir; ac_word=$2
6942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6944 if test "${ac_cv_path_MKDIR+set}" = set; then
6945   echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947   case $MKDIR in
6948   [\\/]* | ?:[\\/]*)
6949   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6950   ;;
6951   *)
6952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955   IFS=$as_save_IFS
6956   test -z "$as_dir" && as_dir=.
6957   for ac_exec_ext in '' $ac_executable_extensions; do
6958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6959     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961     break 2
6962   fi
6963 done
6964 done
6965 IFS=$as_save_IFS
6966
6967   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6968   ;;
6969 esac
6970 fi
6971 MKDIR=$ac_cv_path_MKDIR
6972 if test -n "$MKDIR"; then
6973   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6974 echo "${ECHO_T}$MKDIR" >&6; }
6975 else
6976   { echo "$as_me:$LINENO: result: no" >&5
6977 echo "${ECHO_T}no" >&6; }
6978 fi
6979
6980
6981 # Extract the first word of "mv", so it can be a program name with args.
6982 set dummy mv; ac_word=$2
6983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6985 if test "${ac_cv_path_MV+set}" = set; then
6986   echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988   case $MV in
6989   [\\/]* | ?:[\\/]*)
6990   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6991   ;;
6992   *)
6993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6995 do
6996   IFS=$as_save_IFS
6997   test -z "$as_dir" && as_dir=.
6998   for ac_exec_ext in '' $ac_executable_extensions; do
6999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7000     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002     break 2
7003   fi
7004 done
7005 done
7006 IFS=$as_save_IFS
7007
7008   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7009   ;;
7010 esac
7011 fi
7012 MV=$ac_cv_path_MV
7013 if test -n "$MV"; then
7014   { echo "$as_me:$LINENO: result: $MV" >&5
7015 echo "${ECHO_T}$MV" >&6; }
7016 else
7017   { echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6; }
7019 fi
7020
7021
7022 if test -n "$ac_tool_prefix"; then
7023   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7024 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7027 if test "${ac_cv_prog_RANLIB+set}" = set; then
7028   echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030   if test -n "$RANLIB"; then
7031   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7032 else
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 for as_dir in $PATH
7035 do
7036   IFS=$as_save_IFS
7037   test -z "$as_dir" && as_dir=.
7038   for ac_exec_ext in '' $ac_executable_extensions; do
7039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7040     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042     break 2
7043   fi
7044 done
7045 done
7046 IFS=$as_save_IFS
7047
7048 fi
7049 fi
7050 RANLIB=$ac_cv_prog_RANLIB
7051 if test -n "$RANLIB"; then
7052   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7053 echo "${ECHO_T}$RANLIB" >&6; }
7054 else
7055   { echo "$as_me:$LINENO: result: no" >&5
7056 echo "${ECHO_T}no" >&6; }
7057 fi
7058
7059
7060 fi
7061 if test -z "$ac_cv_prog_RANLIB"; then
7062   ac_ct_RANLIB=$RANLIB
7063   # Extract the first word of "ranlib", so it can be a program name with args.
7064 set dummy ranlib; ac_word=$2
7065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7067 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7068   echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070   if test -n "$ac_ct_RANLIB"; then
7071   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076   IFS=$as_save_IFS
7077   test -z "$as_dir" && as_dir=.
7078   for ac_exec_ext in '' $ac_executable_extensions; do
7079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7080     ac_cv_prog_ac_ct_RANLIB="ranlib"
7081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082     break 2
7083   fi
7084 done
7085 done
7086 IFS=$as_save_IFS
7087
7088 fi
7089 fi
7090 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7091 if test -n "$ac_ct_RANLIB"; then
7092   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7093 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7094 else
7095   { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7097 fi
7098
7099   if test "x$ac_ct_RANLIB" = x; then
7100     RANLIB=":"
7101   else
7102     case $cross_compiling:$ac_tool_warned in
7103 yes:)
7104 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7105 whose name does not start with the host triplet.  If you think this
7106 configuration is useful to you, please write to autoconf@gnu.org." >&5
7107 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7108 whose name does not start with the host triplet.  If you think this
7109 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7110 ac_tool_warned=yes ;;
7111 esac
7112     RANLIB=$ac_ct_RANLIB
7113   fi
7114 else
7115   RANLIB="$ac_cv_prog_RANLIB"
7116 fi
7117
7118 if test -n "$ac_tool_prefix"; then
7119   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7120 set dummy ${ac_tool_prefix}ar; ac_word=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_prog_AR+set}" = set; then
7124   echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126   if test -n "$AR"; then
7127   ac_cv_prog_AR="$AR" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132   IFS=$as_save_IFS
7133   test -z "$as_dir" && as_dir=.
7134   for ac_exec_ext in '' $ac_executable_extensions; do
7135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7136     ac_cv_prog_AR="${ac_tool_prefix}ar"
7137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138     break 2
7139   fi
7140 done
7141 done
7142 IFS=$as_save_IFS
7143
7144 fi
7145 fi
7146 AR=$ac_cv_prog_AR
7147 if test -n "$AR"; then
7148   { echo "$as_me:$LINENO: result: $AR" >&5
7149 echo "${ECHO_T}$AR" >&6; }
7150 else
7151   { echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6; }
7153 fi
7154
7155
7156 fi
7157 if test -z "$ac_cv_prog_AR"; then
7158   ac_ct_AR=$AR
7159   # Extract the first word of "ar", so it can be a program name with args.
7160 set dummy ar; ac_word=$2
7161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7164   echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166   if test -n "$ac_ct_AR"; then
7167   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7168 else
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172   IFS=$as_save_IFS
7173   test -z "$as_dir" && as_dir=.
7174   for ac_exec_ext in '' $ac_executable_extensions; do
7175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7176     ac_cv_prog_ac_ct_AR="ar"
7177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178     break 2
7179   fi
7180 done
7181 done
7182 IFS=$as_save_IFS
7183
7184 fi
7185 fi
7186 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7187 if test -n "$ac_ct_AR"; then
7188   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7189 echo "${ECHO_T}$ac_ct_AR" >&6; }
7190 else
7191   { echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6; }
7193 fi
7194
7195   if test "x$ac_ct_AR" = x; then
7196     AR="false"
7197   else
7198     case $cross_compiling:$ac_tool_warned in
7199 yes:)
7200 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7201 whose name does not start with the host triplet.  If you think this
7202 configuration is useful to you, please write to autoconf@gnu.org." >&5
7203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7204 whose name does not start with the host triplet.  If you think this
7205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7206 ac_tool_warned=yes ;;
7207 esac
7208     AR=$ac_ct_AR
7209   fi
7210 else
7211   AR="$ac_cv_prog_AR"
7212 fi
7213
7214 # Extract the first word of "rm", so it can be a program name with args.
7215 set dummy rm; ac_word=$2
7216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7218 if test "${ac_cv_path_RM+set}" = set; then
7219   echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221   case $RM in
7222   [\\/]* | ?:[\\/]*)
7223   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7224   ;;
7225   *)
7226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 for as_dir in $PATH
7228 do
7229   IFS=$as_save_IFS
7230   test -z "$as_dir" && as_dir=.
7231   for ac_exec_ext in '' $ac_executable_extensions; do
7232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7233     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235     break 2
7236   fi
7237 done
7238 done
7239 IFS=$as_save_IFS
7240
7241   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7242   ;;
7243 esac
7244 fi
7245 RM=$ac_cv_path_RM
7246 if test -n "$RM"; then
7247   { echo "$as_me:$LINENO: result: $RM" >&5
7248 echo "${ECHO_T}$RM" >&6; }
7249 else
7250   { echo "$as_me:$LINENO: result: no" >&5
7251 echo "${ECHO_T}no" >&6; }
7252 fi
7253
7254
7255 # Extract the first word of "sed", so it can be a program name with args.
7256 set dummy sed; ac_word=$2
7257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7259 if test "${ac_cv_path_SED+set}" = set; then
7260   echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262   case $SED in
7263   [\\/]* | ?:[\\/]*)
7264   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7265   ;;
7266   *)
7267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 for as_dir in $PATH
7269 do
7270   IFS=$as_save_IFS
7271   test -z "$as_dir" && as_dir=.
7272   for ac_exec_ext in '' $ac_executable_extensions; do
7273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7274     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276     break 2
7277   fi
7278 done
7279 done
7280 IFS=$as_save_IFS
7281
7282   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7283   ;;
7284 esac
7285 fi
7286 SED=$ac_cv_path_SED
7287 if test -n "$SED"; then
7288   { echo "$as_me:$LINENO: result: $SED" >&5
7289 echo "${ECHO_T}$SED" >&6; }
7290 else
7291   { echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6; }
7293 fi
7294
7295
7296 # Extract the first word of "tar", so it can be a program name with args.
7297 set dummy tar; ac_word=$2
7298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7300 if test "${ac_cv_path_TAR+set}" = set; then
7301   echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303   case $TAR in
7304   [\\/]* | ?:[\\/]*)
7305   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7306   ;;
7307   *)
7308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7310 do
7311   IFS=$as_save_IFS
7312   test -z "$as_dir" && as_dir=.
7313   for ac_exec_ext in '' $ac_executable_extensions; do
7314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7315     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317     break 2
7318   fi
7319 done
7320 done
7321 IFS=$as_save_IFS
7322
7323   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7324   ;;
7325 esac
7326 fi
7327 TAR=$ac_cv_path_TAR
7328 if test -n "$TAR"; then
7329   { echo "$as_me:$LINENO: result: $TAR" >&5
7330 echo "${ECHO_T}$TAR" >&6; }
7331 else
7332   { echo "$as_me:$LINENO: result: no" >&5
7333 echo "${ECHO_T}no" >&6; }
7334 fi
7335
7336
7337 # Extract the first word of "pwd", so it can be a program name with args.
7338 set dummy pwd; ac_word=$2
7339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7341 if test "${ac_cv_path_BINPWD+set}" = set; then
7342   echo $ECHO_N "(cached) $ECHO_C" >&6
7343 else
7344   case $BINPWD in
7345   [\\/]* | ?:[\\/]*)
7346   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7347   ;;
7348   *)
7349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7351 do
7352   IFS=$as_save_IFS
7353   test -z "$as_dir" && as_dir=.
7354   for ac_exec_ext in '' $ac_executable_extensions; do
7355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7356     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7358     break 2
7359   fi
7360 done
7361 done
7362 IFS=$as_save_IFS
7363
7364   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7365   ;;
7366 esac
7367 fi
7368 BINPWD=$ac_cv_path_BINPWD
7369 if test -n "$BINPWD"; then
7370   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7371 echo "${ECHO_T}$BINPWD" >&6; }
7372 else
7373   { echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6; }
7375 fi
7376
7377
7378
7379 # Extract the first word of "Graphviz", so it can be a program name with args.
7380 set dummy Graphviz; ac_word=$2
7381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7384   echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386   case $GRAPHVIZ in
7387   [\\/]* | ?:[\\/]*)
7388   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7389   ;;
7390   *)
7391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7393 do
7394   IFS=$as_save_IFS
7395   test -z "$as_dir" && as_dir=.
7396   for ac_exec_ext in '' $ac_executable_extensions; do
7397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7398     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400     break 2
7401   fi
7402 done
7403 done
7404 IFS=$as_save_IFS
7405
7406   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7407   ;;
7408 esac
7409 fi
7410 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7411 if test -n "$GRAPHVIZ"; then
7412   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7413 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7414 else
7415   { echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6; }
7417 fi
7418
7419
7420 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7421
7422 cat >>confdefs.h <<\_ACEOF
7423 #define HAVE_GRAPHVIZ 1
7424 _ACEOF
7425
7426     if test "$llvm_cv_os_type" = "MingW" ; then
7427     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7428   fi
7429
7430 cat >>confdefs.h <<_ACEOF
7431 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7432 _ACEOF
7433
7434 fi
7435 # Extract the first word of "dot", so it can be a program name with args.
7436 set dummy dot; ac_word=$2
7437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7439 if test "${ac_cv_path_DOT+set}" = set; then
7440   echo $ECHO_N "(cached) $ECHO_C" >&6
7441 else
7442   case $DOT in
7443   [\\/]* | ?:[\\/]*)
7444   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7445   ;;
7446   *)
7447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7449 do
7450   IFS=$as_save_IFS
7451   test -z "$as_dir" && as_dir=.
7452   for ac_exec_ext in '' $ac_executable_extensions; do
7453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7454     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456     break 2
7457   fi
7458 done
7459 done
7460 IFS=$as_save_IFS
7461
7462   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7463   ;;
7464 esac
7465 fi
7466 DOT=$ac_cv_path_DOT
7467 if test -n "$DOT"; then
7468   { echo "$as_me:$LINENO: result: $DOT" >&5
7469 echo "${ECHO_T}$DOT" >&6; }
7470 else
7471   { echo "$as_me:$LINENO: result: no" >&5
7472 echo "${ECHO_T}no" >&6; }
7473 fi
7474
7475
7476 if test "$DOT" != "echo dot" ; then
7477
7478 cat >>confdefs.h <<\_ACEOF
7479 #define HAVE_DOT 1
7480 _ACEOF
7481
7482     if test "$llvm_cv_os_type" = "MingW" ; then
7483     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7484   fi
7485
7486 cat >>confdefs.h <<_ACEOF
7487 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7488 _ACEOF
7489
7490 fi
7491 # Extract the first word of "fdp", so it can be a program name with args.
7492 set dummy fdp; ac_word=$2
7493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495 if test "${ac_cv_path_FDP+set}" = set; then
7496   echo $ECHO_N "(cached) $ECHO_C" >&6
7497 else
7498   case $FDP in
7499   [\\/]* | ?:[\\/]*)
7500   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7501   ;;
7502   *)
7503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506   IFS=$as_save_IFS
7507   test -z "$as_dir" && as_dir=.
7508   for ac_exec_ext in '' $ac_executable_extensions; do
7509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512     break 2
7513   fi
7514 done
7515 done
7516 IFS=$as_save_IFS
7517
7518   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7519   ;;
7520 esac
7521 fi
7522 FDP=$ac_cv_path_FDP
7523 if test -n "$FDP"; then
7524   { echo "$as_me:$LINENO: result: $FDP" >&5
7525 echo "${ECHO_T}$FDP" >&6; }
7526 else
7527   { echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6; }
7529 fi
7530
7531
7532 if test "$FDP" != "echo fdp" ; then
7533
7534 cat >>confdefs.h <<\_ACEOF
7535 #define HAVE_FDP 1
7536 _ACEOF
7537
7538     if test "$llvm_cv_os_type" = "MingW" ; then
7539     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7540   fi
7541
7542 cat >>confdefs.h <<_ACEOF
7543 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7544 _ACEOF
7545
7546 fi
7547 # Extract the first word of "neato", so it can be a program name with args.
7548 set dummy neato; ac_word=$2
7549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7551 if test "${ac_cv_path_NEATO+set}" = set; then
7552   echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554   case $NEATO in
7555   [\\/]* | ?:[\\/]*)
7556   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7557   ;;
7558   *)
7559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562   IFS=$as_save_IFS
7563   test -z "$as_dir" && as_dir=.
7564   for ac_exec_ext in '' $ac_executable_extensions; do
7565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7566     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568     break 2
7569   fi
7570 done
7571 done
7572 IFS=$as_save_IFS
7573
7574   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7575   ;;
7576 esac
7577 fi
7578 NEATO=$ac_cv_path_NEATO
7579 if test -n "$NEATO"; then
7580   { echo "$as_me:$LINENO: result: $NEATO" >&5
7581 echo "${ECHO_T}$NEATO" >&6; }
7582 else
7583   { echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6; }
7585 fi
7586
7587
7588 if test "$NEATO" != "echo neato" ; then
7589
7590 cat >>confdefs.h <<\_ACEOF
7591 #define HAVE_NEATO 1
7592 _ACEOF
7593
7594     if test "$llvm_cv_os_type" = "MingW" ; then
7595     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7596   fi
7597
7598 cat >>confdefs.h <<_ACEOF
7599 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7600 _ACEOF
7601
7602 fi
7603 # Extract the first word of "twopi", so it can be a program name with args.
7604 set dummy twopi; ac_word=$2
7605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7607 if test "${ac_cv_path_TWOPI+set}" = set; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610   case $TWOPI in
7611   [\\/]* | ?:[\\/]*)
7612   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7613   ;;
7614   *)
7615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 for as_dir in $PATH
7617 do
7618   IFS=$as_save_IFS
7619   test -z "$as_dir" && as_dir=.
7620   for ac_exec_ext in '' $ac_executable_extensions; do
7621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7622     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624     break 2
7625   fi
7626 done
7627 done
7628 IFS=$as_save_IFS
7629
7630   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7631   ;;
7632 esac
7633 fi
7634 TWOPI=$ac_cv_path_TWOPI
7635 if test -n "$TWOPI"; then
7636   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7637 echo "${ECHO_T}$TWOPI" >&6; }
7638 else
7639   { echo "$as_me:$LINENO: result: no" >&5
7640 echo "${ECHO_T}no" >&6; }
7641 fi
7642
7643
7644 if test "$TWOPI" != "echo twopi" ; then
7645
7646 cat >>confdefs.h <<\_ACEOF
7647 #define HAVE_TWOPI 1
7648 _ACEOF
7649
7650     if test "$llvm_cv_os_type" = "MingW" ; then
7651     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7652   fi
7653
7654 cat >>confdefs.h <<_ACEOF
7655 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7656 _ACEOF
7657
7658 fi
7659 # Extract the first word of "circo", so it can be a program name with args.
7660 set dummy circo; ac_word=$2
7661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7663 if test "${ac_cv_path_CIRCO+set}" = set; then
7664   echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666   case $CIRCO in
7667   [\\/]* | ?:[\\/]*)
7668   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7669   ;;
7670   *)
7671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676   for ac_exec_ext in '' $ac_executable_extensions; do
7677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7678     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680     break 2
7681   fi
7682 done
7683 done
7684 IFS=$as_save_IFS
7685
7686   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7687   ;;
7688 esac
7689 fi
7690 CIRCO=$ac_cv_path_CIRCO
7691 if test -n "$CIRCO"; then
7692   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7693 echo "${ECHO_T}$CIRCO" >&6; }
7694 else
7695   { echo "$as_me:$LINENO: result: no" >&5
7696 echo "${ECHO_T}no" >&6; }
7697 fi
7698
7699
7700 if test "$CIRCO" != "echo circo" ; then
7701
7702 cat >>confdefs.h <<\_ACEOF
7703 #define HAVE_CIRCO 1
7704 _ACEOF
7705
7706     if test "$llvm_cv_os_type" = "MingW" ; then
7707     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7708   fi
7709
7710 cat >>confdefs.h <<_ACEOF
7711 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7712 _ACEOF
7713
7714 fi
7715 for ac_prog in gv gsview32
7716 do
7717   # Extract the first word of "$ac_prog", so it can be a program name with args.
7718 set dummy $ac_prog; ac_word=$2
7719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7721 if test "${ac_cv_path_GV+set}" = set; then
7722   echo $ECHO_N "(cached) $ECHO_C" >&6
7723 else
7724   case $GV in
7725   [\\/]* | ?:[\\/]*)
7726   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7727   ;;
7728   *)
7729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7731 do
7732   IFS=$as_save_IFS
7733   test -z "$as_dir" && as_dir=.
7734   for ac_exec_ext in '' $ac_executable_extensions; do
7735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7736     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7738     break 2
7739   fi
7740 done
7741 done
7742 IFS=$as_save_IFS
7743
7744   ;;
7745 esac
7746 fi
7747 GV=$ac_cv_path_GV
7748 if test -n "$GV"; then
7749   { echo "$as_me:$LINENO: result: $GV" >&5
7750 echo "${ECHO_T}$GV" >&6; }
7751 else
7752   { echo "$as_me:$LINENO: result: no" >&5
7753 echo "${ECHO_T}no" >&6; }
7754 fi
7755
7756
7757   test -n "$GV" && break
7758 done
7759 test -n "$GV" || GV="echo gv"
7760
7761 if test "$GV" != "echo gv" ; then
7762
7763 cat >>confdefs.h <<\_ACEOF
7764 #define HAVE_GV 1
7765 _ACEOF
7766
7767     if test "$llvm_cv_os_type" = "MingW" ; then
7768     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7769   fi
7770
7771 cat >>confdefs.h <<_ACEOF
7772 #define LLVM_PATH_GV "$GV${EXEEXT}"
7773 _ACEOF
7774
7775 fi
7776 # Extract the first word of "dotty", so it can be a program name with args.
7777 set dummy dotty; ac_word=$2
7778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7780 if test "${ac_cv_path_DOTTY+set}" = set; then
7781   echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783   case $DOTTY in
7784   [\\/]* | ?:[\\/]*)
7785   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7786   ;;
7787   *)
7788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 for as_dir in $PATH
7790 do
7791   IFS=$as_save_IFS
7792   test -z "$as_dir" && as_dir=.
7793   for ac_exec_ext in '' $ac_executable_extensions; do
7794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7795     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7797     break 2
7798   fi
7799 done
7800 done
7801 IFS=$as_save_IFS
7802
7803   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7804   ;;
7805 esac
7806 fi
7807 DOTTY=$ac_cv_path_DOTTY
7808 if test -n "$DOTTY"; then
7809   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7810 echo "${ECHO_T}$DOTTY" >&6; }
7811 else
7812   { echo "$as_me:$LINENO: result: no" >&5
7813 echo "${ECHO_T}no" >&6; }
7814 fi
7815
7816
7817 if test "$DOTTY" != "echo dotty" ; then
7818
7819 cat >>confdefs.h <<\_ACEOF
7820 #define HAVE_DOTTY 1
7821 _ACEOF
7822
7823     if test "$llvm_cv_os_type" = "MingW" ; then
7824     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7825   fi
7826
7827 cat >>confdefs.h <<_ACEOF
7828 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7829 _ACEOF
7830
7831 fi
7832
7833
7834 # Extract the first word of "perl", so it can be a program name with args.
7835 set dummy perl; ac_word=$2
7836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7838 if test "${ac_cv_path_PERL+set}" = set; then
7839   echo $ECHO_N "(cached) $ECHO_C" >&6
7840 else
7841   case $PERL in
7842   [\\/]* | ?:[\\/]*)
7843   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7844   ;;
7845   *)
7846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 for as_dir in $PATH
7848 do
7849   IFS=$as_save_IFS
7850   test -z "$as_dir" && as_dir=.
7851   for ac_exec_ext in '' $ac_executable_extensions; do
7852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7853     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7855     break 2
7856   fi
7857 done
7858 done
7859 IFS=$as_save_IFS
7860
7861   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7862   ;;
7863 esac
7864 fi
7865 PERL=$ac_cv_path_PERL
7866 if test -n "$PERL"; then
7867   { echo "$as_me:$LINENO: result: $PERL" >&5
7868 echo "${ECHO_T}$PERL" >&6; }
7869 else
7870   { echo "$as_me:$LINENO: result: no" >&5
7871 echo "${ECHO_T}no" >&6; }
7872 fi
7873
7874
7875 if test "$PERL" != "none"; then
7876   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7877 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7878   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7879     { echo "$as_me:$LINENO: result: yes" >&5
7880 echo "${ECHO_T}yes" >&6; }
7881   else
7882     PERL=none
7883     { echo "$as_me:$LINENO: result: not found" >&5
7884 echo "${ECHO_T}not found" >&6; }
7885   fi
7886 fi
7887
7888
7889 if test x"$PERL" = xnone; then
7890    HAVE_PERL=0
7891
7892    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7893 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7894    { (exit 1); exit 1; }; }
7895 else
7896    HAVE_PERL=1
7897
7898 fi
7899
7900 # Find a good install program.  We prefer a C program (faster),
7901 # so one script is as good as another.  But avoid the broken or
7902 # incompatible versions:
7903 # SysV /etc/install, /usr/sbin/install
7904 # SunOS /usr/etc/install
7905 # IRIX /sbin/install
7906 # AIX /bin/install
7907 # AmigaOS /C/install, which installs bootblocks on floppy discs
7908 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7909 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7910 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7911 # OS/2's system install, which has a completely different semantic
7912 # ./install, which can be erroneously created by make from ./install.sh.
7913 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7914 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7915 if test -z "$INSTALL"; then
7916 if test "${ac_cv_path_install+set}" = set; then
7917   echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7921 do
7922   IFS=$as_save_IFS
7923   test -z "$as_dir" && as_dir=.
7924   # Account for people who put trailing slashes in PATH elements.
7925 case $as_dir/ in
7926   ./ | .// | /cC/* | \
7927   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7928   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7929   /usr/ucb/* ) ;;
7930   *)
7931     # OSF1 and SCO ODT 3.0 have their own names for install.
7932     # Don't use installbsd from OSF since it installs stuff as root
7933     # by default.
7934     for ac_prog in ginstall scoinst install; do
7935       for ac_exec_ext in '' $ac_executable_extensions; do
7936         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7937           if test $ac_prog = install &&
7938             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7939             # AIX install.  It has an incompatible calling convention.
7940             :
7941           elif test $ac_prog = install &&
7942             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7943             # program-specific install script used by HP pwplus--don't use.
7944             :
7945           else
7946             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7947             break 3
7948           fi
7949         fi
7950       done
7951     done
7952     ;;
7953 esac
7954 done
7955 IFS=$as_save_IFS
7956
7957
7958 fi
7959   if test "${ac_cv_path_install+set}" = set; then
7960     INSTALL=$ac_cv_path_install
7961   else
7962     # As a last resort, use the slow shell script.  Don't cache a
7963     # value for INSTALL within a source directory, because that will
7964     # break other packages using the cache if that directory is
7965     # removed, or if the value is a relative name.
7966     INSTALL=$ac_install_sh
7967   fi
7968 fi
7969 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7970 echo "${ECHO_T}$INSTALL" >&6; }
7971
7972 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7973 # It thinks the first close brace ends the variable substitution.
7974 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7975
7976 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7977
7978 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7979
7980
7981 # Extract the first word of "bzip2", so it can be a program name with args.
7982 set dummy bzip2; ac_word=$2
7983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7985 if test "${ac_cv_path_BZIP2+set}" = set; then
7986   echo $ECHO_N "(cached) $ECHO_C" >&6
7987 else
7988   case $BZIP2 in
7989   [\\/]* | ?:[\\/]*)
7990   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7991   ;;
7992   *)
7993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 for as_dir in $PATH
7995 do
7996   IFS=$as_save_IFS
7997   test -z "$as_dir" && as_dir=.
7998   for ac_exec_ext in '' $ac_executable_extensions; do
7999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8000     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8002     break 2
8003   fi
8004 done
8005 done
8006 IFS=$as_save_IFS
8007
8008   ;;
8009 esac
8010 fi
8011 BZIP2=$ac_cv_path_BZIP2
8012 if test -n "$BZIP2"; then
8013   { echo "$as_me:$LINENO: result: $BZIP2" >&5
8014 echo "${ECHO_T}$BZIP2" >&6; }
8015 else
8016   { echo "$as_me:$LINENO: result: no" >&5
8017 echo "${ECHO_T}no" >&6; }
8018 fi
8019
8020
8021 # Extract the first word of "cat", so it can be a program name with args.
8022 set dummy cat; ac_word=$2
8023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8025 if test "${ac_cv_path_CAT+set}" = set; then
8026   echo $ECHO_N "(cached) $ECHO_C" >&6
8027 else
8028   case $CAT in
8029   [\\/]* | ?:[\\/]*)
8030   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8031   ;;
8032   *)
8033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8035 do
8036   IFS=$as_save_IFS
8037   test -z "$as_dir" && as_dir=.
8038   for ac_exec_ext in '' $ac_executable_extensions; do
8039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8040     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8042     break 2
8043   fi
8044 done
8045 done
8046 IFS=$as_save_IFS
8047
8048   ;;
8049 esac
8050 fi
8051 CAT=$ac_cv_path_CAT
8052 if test -n "$CAT"; then
8053   { echo "$as_me:$LINENO: result: $CAT" >&5
8054 echo "${ECHO_T}$CAT" >&6; }
8055 else
8056   { echo "$as_me:$LINENO: result: no" >&5
8057 echo "${ECHO_T}no" >&6; }
8058 fi
8059
8060
8061 # Extract the first word of "doxygen", so it can be a program name with args.
8062 set dummy doxygen; ac_word=$2
8063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8065 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8066   echo $ECHO_N "(cached) $ECHO_C" >&6
8067 else
8068   case $DOXYGEN in
8069   [\\/]* | ?:[\\/]*)
8070   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8071   ;;
8072   *)
8073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 for as_dir in $PATH
8075 do
8076   IFS=$as_save_IFS
8077   test -z "$as_dir" && as_dir=.
8078   for ac_exec_ext in '' $ac_executable_extensions; do
8079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8080     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8082     break 2
8083   fi
8084 done
8085 done
8086 IFS=$as_save_IFS
8087
8088   ;;
8089 esac
8090 fi
8091 DOXYGEN=$ac_cv_path_DOXYGEN
8092 if test -n "$DOXYGEN"; then
8093   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8094 echo "${ECHO_T}$DOXYGEN" >&6; }
8095 else
8096   { echo "$as_me:$LINENO: result: no" >&5
8097 echo "${ECHO_T}no" >&6; }
8098 fi
8099
8100
8101 # Extract the first word of "groff", so it can be a program name with args.
8102 set dummy groff; ac_word=$2
8103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8105 if test "${ac_cv_path_GROFF+set}" = set; then
8106   echo $ECHO_N "(cached) $ECHO_C" >&6
8107 else
8108   case $GROFF in
8109   [\\/]* | ?:[\\/]*)
8110   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8111   ;;
8112   *)
8113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 for as_dir in $PATH
8115 do
8116   IFS=$as_save_IFS
8117   test -z "$as_dir" && as_dir=.
8118   for ac_exec_ext in '' $ac_executable_extensions; do
8119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8120     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8122     break 2
8123   fi
8124 done
8125 done
8126 IFS=$as_save_IFS
8127
8128   ;;
8129 esac
8130 fi
8131 GROFF=$ac_cv_path_GROFF
8132 if test -n "$GROFF"; then
8133   { echo "$as_me:$LINENO: result: $GROFF" >&5
8134 echo "${ECHO_T}$GROFF" >&6; }
8135 else
8136   { echo "$as_me:$LINENO: result: no" >&5
8137 echo "${ECHO_T}no" >&6; }
8138 fi
8139
8140
8141 # Extract the first word of "gzip", so it can be a program name with args.
8142 set dummy gzip; ac_word=$2
8143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8145 if test "${ac_cv_path_GZIP+set}" = set; then
8146   echo $ECHO_N "(cached) $ECHO_C" >&6
8147 else
8148   case $GZIP in
8149   [\\/]* | ?:[\\/]*)
8150   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8151   ;;
8152   *)
8153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154 for as_dir in $PATH
8155 do
8156   IFS=$as_save_IFS
8157   test -z "$as_dir" && as_dir=.
8158   for ac_exec_ext in '' $ac_executable_extensions; do
8159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8160     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8162     break 2
8163   fi
8164 done
8165 done
8166 IFS=$as_save_IFS
8167
8168   ;;
8169 esac
8170 fi
8171 GZIP=$ac_cv_path_GZIP
8172 if test -n "$GZIP"; then
8173   { echo "$as_me:$LINENO: result: $GZIP" >&5
8174 echo "${ECHO_T}$GZIP" >&6; }
8175 else
8176   { echo "$as_me:$LINENO: result: no" >&5
8177 echo "${ECHO_T}no" >&6; }
8178 fi
8179
8180
8181 # Extract the first word of "pod2html", so it can be a program name with args.
8182 set dummy pod2html; ac_word=$2
8183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8185 if test "${ac_cv_path_POD2HTML+set}" = set; then
8186   echo $ECHO_N "(cached) $ECHO_C" >&6
8187 else
8188   case $POD2HTML in
8189   [\\/]* | ?:[\\/]*)
8190   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8191   ;;
8192   *)
8193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 for as_dir in $PATH
8195 do
8196   IFS=$as_save_IFS
8197   test -z "$as_dir" && as_dir=.
8198   for ac_exec_ext in '' $ac_executable_extensions; do
8199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8200     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8202     break 2
8203   fi
8204 done
8205 done
8206 IFS=$as_save_IFS
8207
8208   ;;
8209 esac
8210 fi
8211 POD2HTML=$ac_cv_path_POD2HTML
8212 if test -n "$POD2HTML"; then
8213   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8214 echo "${ECHO_T}$POD2HTML" >&6; }
8215 else
8216   { echo "$as_me:$LINENO: result: no" >&5
8217 echo "${ECHO_T}no" >&6; }
8218 fi
8219
8220
8221 # Extract the first word of "pod2man", so it can be a program name with args.
8222 set dummy pod2man; ac_word=$2
8223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8225 if test "${ac_cv_path_POD2MAN+set}" = set; then
8226   echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228   case $POD2MAN in
8229   [\\/]* | ?:[\\/]*)
8230   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8231   ;;
8232   *)
8233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 for as_dir in $PATH
8235 do
8236   IFS=$as_save_IFS
8237   test -z "$as_dir" && as_dir=.
8238   for ac_exec_ext in '' $ac_executable_extensions; do
8239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8240     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8242     break 2
8243   fi
8244 done
8245 done
8246 IFS=$as_save_IFS
8247
8248   ;;
8249 esac
8250 fi
8251 POD2MAN=$ac_cv_path_POD2MAN
8252 if test -n "$POD2MAN"; then
8253   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8254 echo "${ECHO_T}$POD2MAN" >&6; }
8255 else
8256   { echo "$as_me:$LINENO: result: no" >&5
8257 echo "${ECHO_T}no" >&6; }
8258 fi
8259
8260
8261 # Extract the first word of "pdfroff", so it can be a program name with args.
8262 set dummy pdfroff; ac_word=$2
8263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8265 if test "${ac_cv_path_PDFROFF+set}" = set; then
8266   echo $ECHO_N "(cached) $ECHO_C" >&6
8267 else
8268   case $PDFROFF in
8269   [\\/]* | ?:[\\/]*)
8270   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8271   ;;
8272   *)
8273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 for as_dir in $PATH
8275 do
8276   IFS=$as_save_IFS
8277   test -z "$as_dir" && as_dir=.
8278   for ac_exec_ext in '' $ac_executable_extensions; do
8279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8280     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8282     break 2
8283   fi
8284 done
8285 done
8286 IFS=$as_save_IFS
8287
8288   ;;
8289 esac
8290 fi
8291 PDFROFF=$ac_cv_path_PDFROFF
8292 if test -n "$PDFROFF"; then
8293   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8294 echo "${ECHO_T}$PDFROFF" >&6; }
8295 else
8296   { echo "$as_me:$LINENO: result: no" >&5
8297 echo "${ECHO_T}no" >&6; }
8298 fi
8299
8300
8301 # Extract the first word of "runtest", so it can be a program name with args.
8302 set dummy runtest; ac_word=$2
8303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8305 if test "${ac_cv_path_RUNTEST+set}" = set; then
8306   echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308   case $RUNTEST in
8309   [\\/]* | ?:[\\/]*)
8310   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8311   ;;
8312   *)
8313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 for as_dir in $PATH
8315 do
8316   IFS=$as_save_IFS
8317   test -z "$as_dir" && as_dir=.
8318   for ac_exec_ext in '' $ac_executable_extensions; do
8319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8320     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8322     break 2
8323   fi
8324 done
8325 done
8326 IFS=$as_save_IFS
8327
8328   ;;
8329 esac
8330 fi
8331 RUNTEST=$ac_cv_path_RUNTEST
8332 if test -n "$RUNTEST"; then
8333   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8334 echo "${ECHO_T}$RUNTEST" >&6; }
8335 else
8336   { echo "$as_me:$LINENO: result: no" >&5
8337 echo "${ECHO_T}no" >&6; }
8338 fi
8339
8340
8341
8342 no_itcl=true
8343 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8344 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8345
8346 # Check whether --with-tclinclude was given.
8347 if test "${with_tclinclude+set}" = set; then
8348   withval=$with_tclinclude; with_tclinclude=${withval}
8349 else
8350   with_tclinclude=''
8351 fi
8352
8353 if test "${ac_cv_path_tclsh+set}" = set; then
8354   echo $ECHO_N "(cached) $ECHO_C" >&6
8355 else
8356
8357 if test x"${with_tclinclude}" != x ; then
8358   if test -f ${with_tclinclude}/tclsh ; then
8359     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8360   elif test -f ${with_tclinclude}/src/tclsh ; then
8361     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8362   else
8363     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8364 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8365    { (exit 1); exit 1; }; }
8366   fi
8367 fi
8368 fi
8369
8370
8371 if test x"${ac_cv_path_tclsh}" = x ; then
8372   { echo "$as_me:$LINENO: result: none" >&5
8373 echo "${ECHO_T}none" >&6; }
8374   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
8375 do
8376   # Extract the first word of "$ac_prog", so it can be a program name with args.
8377 set dummy $ac_prog; ac_word=$2
8378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8380 if test "${ac_cv_path_TCLSH+set}" = set; then
8381   echo $ECHO_N "(cached) $ECHO_C" >&6
8382 else
8383   case $TCLSH in
8384   [\\/]* | ?:[\\/]*)
8385   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8386   ;;
8387   *)
8388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389 for as_dir in $PATH
8390 do
8391   IFS=$as_save_IFS
8392   test -z "$as_dir" && as_dir=.
8393   for ac_exec_ext in '' $ac_executable_extensions; do
8394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8395     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8397     break 2
8398   fi
8399 done
8400 done
8401 IFS=$as_save_IFS
8402
8403   ;;
8404 esac
8405 fi
8406 TCLSH=$ac_cv_path_TCLSH
8407 if test -n "$TCLSH"; then
8408   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8409 echo "${ECHO_T}$TCLSH" >&6; }
8410 else
8411   { echo "$as_me:$LINENO: result: no" >&5
8412 echo "${ECHO_T}no" >&6; }
8413 fi
8414
8415
8416   test -n "$TCLSH" && break
8417 done
8418
8419   if test x"${TCLSH}" = x ; then
8420     ac_cv_path_tclsh='';
8421   else
8422     ac_cv_path_tclsh="${TCLSH}";
8423   fi
8424 else
8425   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8426 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8427   TCLSH="${ac_cv_path_tclsh}"
8428
8429 fi
8430
8431 # Extract the first word of "zip", so it can be a program name with args.
8432 set dummy zip; ac_word=$2
8433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8435 if test "${ac_cv_path_ZIP+set}" = set; then
8436   echo $ECHO_N "(cached) $ECHO_C" >&6
8437 else
8438   case $ZIP in
8439   [\\/]* | ?:[\\/]*)
8440   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8441   ;;
8442   *)
8443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444 for as_dir in $PATH
8445 do
8446   IFS=$as_save_IFS
8447   test -z "$as_dir" && as_dir=.
8448   for ac_exec_ext in '' $ac_executable_extensions; do
8449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8450     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8452     break 2
8453   fi
8454 done
8455 done
8456 IFS=$as_save_IFS
8457
8458   ;;
8459 esac
8460 fi
8461 ZIP=$ac_cv_path_ZIP
8462 if test -n "$ZIP"; then
8463   { echo "$as_me:$LINENO: result: $ZIP" >&5
8464 echo "${ECHO_T}$ZIP" >&6; }
8465 else
8466   { echo "$as_me:$LINENO: result: no" >&5
8467 echo "${ECHO_T}no" >&6; }
8468 fi
8469
8470
8471 for ac_prog in ocamlc
8472 do
8473   # Extract the first word of "$ac_prog", so it can be a program name with args.
8474 set dummy $ac_prog; ac_word=$2
8475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8477 if test "${ac_cv_path_OCAMLC+set}" = set; then
8478   echo $ECHO_N "(cached) $ECHO_C" >&6
8479 else
8480   case $OCAMLC in
8481   [\\/]* | ?:[\\/]*)
8482   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8483   ;;
8484   *)
8485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486 for as_dir in $PATH
8487 do
8488   IFS=$as_save_IFS
8489   test -z "$as_dir" && as_dir=.
8490   for ac_exec_ext in '' $ac_executable_extensions; do
8491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8492     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8494     break 2
8495   fi
8496 done
8497 done
8498 IFS=$as_save_IFS
8499
8500   ;;
8501 esac
8502 fi
8503 OCAMLC=$ac_cv_path_OCAMLC
8504 if test -n "$OCAMLC"; then
8505   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8506 echo "${ECHO_T}$OCAMLC" >&6; }
8507 else
8508   { echo "$as_me:$LINENO: result: no" >&5
8509 echo "${ECHO_T}no" >&6; }
8510 fi
8511
8512
8513   test -n "$OCAMLC" && break
8514 done
8515
8516 for ac_prog in ocamlopt
8517 do
8518   # Extract the first word of "$ac_prog", so it can be a program name with args.
8519 set dummy $ac_prog; ac_word=$2
8520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8522 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8523   echo $ECHO_N "(cached) $ECHO_C" >&6
8524 else
8525   case $OCAMLOPT in
8526   [\\/]* | ?:[\\/]*)
8527   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8528   ;;
8529   *)
8530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 for as_dir in $PATH
8532 do
8533   IFS=$as_save_IFS
8534   test -z "$as_dir" && as_dir=.
8535   for ac_exec_ext in '' $ac_executable_extensions; do
8536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8537     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8539     break 2
8540   fi
8541 done
8542 done
8543 IFS=$as_save_IFS
8544
8545   ;;
8546 esac
8547 fi
8548 OCAMLOPT=$ac_cv_path_OCAMLOPT
8549 if test -n "$OCAMLOPT"; then
8550   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8551 echo "${ECHO_T}$OCAMLOPT" >&6; }
8552 else
8553   { echo "$as_me:$LINENO: result: no" >&5
8554 echo "${ECHO_T}no" >&6; }
8555 fi
8556
8557
8558   test -n "$OCAMLOPT" && break
8559 done
8560
8561 for ac_prog in ocamldep
8562 do
8563   # Extract the first word of "$ac_prog", so it can be a program name with args.
8564 set dummy $ac_prog; ac_word=$2
8565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8567 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8568   echo $ECHO_N "(cached) $ECHO_C" >&6
8569 else
8570   case $OCAMLDEP in
8571   [\\/]* | ?:[\\/]*)
8572   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8573   ;;
8574   *)
8575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8576 for as_dir in $PATH
8577 do
8578   IFS=$as_save_IFS
8579   test -z "$as_dir" && as_dir=.
8580   for ac_exec_ext in '' $ac_executable_extensions; do
8581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8582     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8584     break 2
8585   fi
8586 done
8587 done
8588 IFS=$as_save_IFS
8589
8590   ;;
8591 esac
8592 fi
8593 OCAMLDEP=$ac_cv_path_OCAMLDEP
8594 if test -n "$OCAMLDEP"; then
8595   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8596 echo "${ECHO_T}$OCAMLDEP" >&6; }
8597 else
8598   { echo "$as_me:$LINENO: result: no" >&5
8599 echo "${ECHO_T}no" >&6; }
8600 fi
8601
8602
8603   test -n "$OCAMLDEP" && break
8604 done
8605
8606 for ac_prog in ocamldoc
8607 do
8608   # Extract the first word of "$ac_prog", so it can be a program name with args.
8609 set dummy $ac_prog; ac_word=$2
8610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8612 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8613   echo $ECHO_N "(cached) $ECHO_C" >&6
8614 else
8615   case $OCAMLDOC in
8616   [\\/]* | ?:[\\/]*)
8617   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8618   ;;
8619   *)
8620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621 for as_dir in $PATH
8622 do
8623   IFS=$as_save_IFS
8624   test -z "$as_dir" && as_dir=.
8625   for ac_exec_ext in '' $ac_executable_extensions; do
8626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8627     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8629     break 2
8630   fi
8631 done
8632 done
8633 IFS=$as_save_IFS
8634
8635   ;;
8636 esac
8637 fi
8638 OCAMLDOC=$ac_cv_path_OCAMLDOC
8639 if test -n "$OCAMLDOC"; then
8640   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8641 echo "${ECHO_T}$OCAMLDOC" >&6; }
8642 else
8643   { echo "$as_me:$LINENO: result: no" >&5
8644 echo "${ECHO_T}no" >&6; }
8645 fi
8646
8647
8648   test -n "$OCAMLDOC" && break
8649 done
8650
8651 for ac_prog in gas as
8652 do
8653   # Extract the first word of "$ac_prog", so it can be a program name with args.
8654 set dummy $ac_prog; ac_word=$2
8655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8657 if test "${ac_cv_path_GAS+set}" = set; then
8658   echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660   case $GAS in
8661   [\\/]* | ?:[\\/]*)
8662   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8663   ;;
8664   *)
8665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666 for as_dir in $PATH
8667 do
8668   IFS=$as_save_IFS
8669   test -z "$as_dir" && as_dir=.
8670   for ac_exec_ext in '' $ac_executable_extensions; do
8671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8672     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8674     break 2
8675   fi
8676 done
8677 done
8678 IFS=$as_save_IFS
8679
8680   ;;
8681 esac
8682 fi
8683 GAS=$ac_cv_path_GAS
8684 if test -n "$GAS"; then
8685   { echo "$as_me:$LINENO: result: $GAS" >&5
8686 echo "${ECHO_T}$GAS" >&6; }
8687 else
8688   { echo "$as_me:$LINENO: result: no" >&5
8689 echo "${ECHO_T}no" >&6; }
8690 fi
8691
8692
8693   test -n "$GAS" && break
8694 done
8695
8696
8697 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8698 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8699 if test "${llvm_cv_link_use_r+set}" = set; then
8700   echo $ECHO_N "(cached) $ECHO_C" >&6
8701 else
8702    ac_ext=c
8703 ac_cpp='$CPP $CPPFLAGS'
8704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8707
8708   oldcflags="$CFLAGS"
8709   CFLAGS="$CFLAGS -Wl,-R."
8710   cat >conftest.$ac_ext <<_ACEOF
8711 /* confdefs.h.  */
8712 _ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h.  */
8716
8717 int
8718 main ()
8719 {
8720
8721   ;
8722   return 0;
8723 }
8724 _ACEOF
8725 rm -f conftest.$ac_objext conftest$ac_exeext
8726 if { (ac_try="$ac_link"
8727 case "(($ac_try" in
8728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729   *) ac_try_echo=$ac_try;;
8730 esac
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732   (eval "$ac_link") 2>conftest.er1
8733   ac_status=$?
8734   grep -v '^ *+' conftest.er1 >conftest.err
8735   rm -f conftest.er1
8736   cat conftest.err >&5
8737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738   (exit $ac_status); } &&
8739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8740   { (case "(($ac_try" in
8741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742   *) ac_try_echo=$ac_try;;
8743 esac
8744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745   (eval "$ac_try") 2>&5
8746   ac_status=$?
8747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748   (exit $ac_status); }; } &&
8749          { ac_try='test -s conftest$ac_exeext'
8750   { (case "(($ac_try" in
8751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752   *) ac_try_echo=$ac_try;;
8753 esac
8754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8755   (eval "$ac_try") 2>&5
8756   ac_status=$?
8757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758   (exit $ac_status); }; }; then
8759   llvm_cv_link_use_r=yes
8760 else
8761   echo "$as_me: failed program was:" >&5
8762 sed 's/^/| /' conftest.$ac_ext >&5
8763
8764         llvm_cv_link_use_r=no
8765 fi
8766
8767 rm -f core conftest.err conftest.$ac_objext \
8768       conftest$ac_exeext conftest.$ac_ext
8769   CFLAGS="$oldcflags"
8770   ac_ext=c
8771 ac_cpp='$CPP $CPPFLAGS'
8772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8775
8776
8777 fi
8778 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8779 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8780 if test "$llvm_cv_link_use_r" = yes ; then
8781
8782 cat >>confdefs.h <<\_ACEOF
8783 #define HAVE_LINK_R 1
8784 _ACEOF
8785
8786   fi
8787
8788
8789 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8790 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8791 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8792   echo $ECHO_N "(cached) $ECHO_C" >&6
8793 else
8794    ac_ext=c
8795 ac_cpp='$CPP $CPPFLAGS'
8796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8799
8800   oldcflags="$CFLAGS"
8801   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8802   cat >conftest.$ac_ext <<_ACEOF
8803 /* confdefs.h.  */
8804 _ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h.  */
8808
8809 int
8810 main ()
8811 {
8812
8813   ;
8814   return 0;
8815 }
8816 _ACEOF
8817 rm -f conftest.$ac_objext conftest$ac_exeext
8818 if { (ac_try="$ac_link"
8819 case "(($ac_try" in
8820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8821   *) ac_try_echo=$ac_try;;
8822 esac
8823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8824   (eval "$ac_link") 2>conftest.er1
8825   ac_status=$?
8826   grep -v '^ *+' conftest.er1 >conftest.err
8827   rm -f conftest.er1
8828   cat conftest.err >&5
8829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830   (exit $ac_status); } &&
8831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8832   { (case "(($ac_try" in
8833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8834   *) ac_try_echo=$ac_try;;
8835 esac
8836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8837   (eval "$ac_try") 2>&5
8838   ac_status=$?
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); }; } &&
8841          { ac_try='test -s conftest$ac_exeext'
8842   { (case "(($ac_try" in
8843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8844   *) ac_try_echo=$ac_try;;
8845 esac
8846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8847   (eval "$ac_try") 2>&5
8848   ac_status=$?
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); }; }; then
8851   llvm_cv_link_use_export_dynamic=yes
8852 else
8853   echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8855
8856         llvm_cv_link_use_export_dynamic=no
8857 fi
8858
8859 rm -f core conftest.err conftest.$ac_objext \
8860       conftest$ac_exeext conftest.$ac_ext
8861   CFLAGS="$oldcflags"
8862   ac_ext=c
8863 ac_cpp='$CPP $CPPFLAGS'
8864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8867
8868
8869 fi
8870 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8871 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8872 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8873
8874 cat >>confdefs.h <<\_ACEOF
8875 #define HAVE_LINK_EXPORT_DYNAMIC 1
8876 _ACEOF
8877
8878   fi
8879
8880
8881 { echo "$as_me:$LINENO: checking for compiler -Wl,-retain-symbols-file option" >&5
8882 echo $ECHO_N "checking for compiler -Wl,-retain-symbols-file option... $ECHO_C" >&6; }
8883 if test "${llvm_cv_link_use_retain_symbols_file+set}" = set; then
8884   echo $ECHO_N "(cached) $ECHO_C" >&6
8885 else
8886    ac_ext=c
8887 ac_cpp='$CPP $CPPFLAGS'
8888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8891
8892   oldcflags="$CFLAGS"
8893
8894   # The following code is from the autoconf manual,
8895   # "11.13: Limitations of Usual Tools".
8896   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8897   # Use mktemp if possible; otherwise fall back on mkdir,
8898   # with $RANDOM to make collisions less likely.
8899   : ${TMPDIR=/tmp}
8900   {
8901     tmp=`
8902       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8903     ` &&
8904     test -n "$tmp" && test -d "$tmp"
8905   } || {
8906     tmp=$TMPDIR/foo$$-$RANDOM
8907     (umask 077 && mkdir "$tmp")
8908   } || exit $?
8909
8910   echo "main" > "$tmp/exports"
8911
8912   CFLAGS="$CFLAGS -Wl,-retain-symbols-file=$tmp/exports"
8913   cat >conftest.$ac_ext <<_ACEOF
8914 /* confdefs.h.  */
8915 _ACEOF
8916 cat confdefs.h >>conftest.$ac_ext
8917 cat >>conftest.$ac_ext <<_ACEOF
8918 /* end confdefs.h.  */
8919
8920 int
8921 main ()
8922 {
8923
8924   ;
8925   return 0;
8926 }
8927 _ACEOF
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (ac_try="$ac_link"
8930 case "(($ac_try" in
8931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932   *) ac_try_echo=$ac_try;;
8933 esac
8934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8935   (eval "$ac_link") 2>conftest.er1
8936   ac_status=$?
8937   grep -v '^ *+' conftest.er1 >conftest.err
8938   rm -f conftest.er1
8939   cat conftest.err >&5
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); } &&
8942          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8943   { (case "(($ac_try" in
8944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945   *) ac_try_echo=$ac_try;;
8946 esac
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948   (eval "$ac_try") 2>&5
8949   ac_status=$?
8950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951   (exit $ac_status); }; } &&
8952          { ac_try='test -s conftest$ac_exeext'
8953   { (case "(($ac_try" in
8954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955   *) ac_try_echo=$ac_try;;
8956 esac
8957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8958   (eval "$ac_try") 2>&5
8959   ac_status=$?
8960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961   (exit $ac_status); }; }; then
8962   llvm_cv_link_use_retain_symbols_file=yes
8963 else
8964   echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8966
8967         llvm_cv_link_use_retain_symbols_file=no
8968 fi
8969
8970 rm -f core conftest.err conftest.$ac_objext \
8971       conftest$ac_exeext conftest.$ac_ext
8972   rm "$tmp/exports"
8973   rmdir "$tmp"
8974   CFLAGS="$oldcflags"
8975   ac_ext=c
8976 ac_cpp='$CPP $CPPFLAGS'
8977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8980
8981
8982 fi
8983 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_retain_symbols_file" >&5
8984 echo "${ECHO_T}$llvm_cv_link_use_retain_symbols_file" >&6; }
8985 if test "$llvm_cv_link_use_retain_symbols_file" = yes ; then
8986   HAVE_LINK_RETAIN_SYMBOLS_FILE=1
8987
8988   fi
8989
8990
8991
8992
8993 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8994 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8995 if test "${ac_cv_c_const+set}" = set; then
8996   echo $ECHO_N "(cached) $ECHO_C" >&6
8997 else
8998   cat >conftest.$ac_ext <<_ACEOF
8999 /* confdefs.h.  */
9000 _ACEOF
9001 cat confdefs.h >>conftest.$ac_ext
9002 cat >>conftest.$ac_ext <<_ACEOF
9003 /* end confdefs.h.  */
9004
9005 int
9006 main ()
9007 {
9008 /* FIXME: Include the comments suggested by Paul. */
9009 #ifndef __cplusplus
9010   /* Ultrix mips cc rejects this.  */
9011   typedef int charset[2];
9012   const charset x;
9013   /* SunOS 4.1.1 cc rejects this.  */
9014   char const *const *ccp;
9015   char **p;
9016   /* NEC SVR4.0.2 mips cc rejects this.  */
9017   struct point {int x, y;};
9018   static struct point const zero = {0,0};
9019   /* AIX XL C 1.02.0.0 rejects this.
9020      It does not let you subtract one const X* pointer from another in
9021      an arm of an if-expression whose if-part is not a constant
9022      expression */
9023   const char *g = "string";
9024   ccp = &g + (g ? g-g : 0);
9025   /* HPUX 7.0 cc rejects these. */
9026   ++ccp;
9027   p = (char**) ccp;
9028   ccp = (char const *const *) p;
9029   { /* SCO 3.2v4 cc rejects this.  */
9030     char *t;
9031     char const *s = 0 ? (char *) 0 : (char const *) 0;
9032
9033     *t++ = 0;
9034     if (s) return 0;
9035   }
9036   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9037     int x[] = {25, 17};
9038     const int *foo = &x[0];
9039     ++foo;
9040   }
9041   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9042     typedef const int *iptr;
9043     iptr p = 0;
9044     ++p;
9045   }
9046   { /* AIX XL C 1.02.0.0 rejects this saying
9047        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9048     struct s { int j; const int *ap[3]; };
9049     struct s *b; b->j = 5;
9050   }
9051   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9052     const int foo = 10;
9053     if (!foo) return 0;
9054   }
9055   return !x[0] && !zero.x;
9056 #endif
9057
9058   ;
9059   return 0;
9060 }
9061 _ACEOF
9062 rm -f conftest.$ac_objext
9063 if { (ac_try="$ac_compile"
9064 case "(($ac_try" in
9065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066   *) ac_try_echo=$ac_try;;
9067 esac
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069   (eval "$ac_compile") 2>conftest.er1
9070   ac_status=$?
9071   grep -v '^ *+' conftest.er1 >conftest.err
9072   rm -f conftest.er1
9073   cat conftest.err >&5
9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); } &&
9076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9077   { (case "(($ac_try" in
9078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079   *) ac_try_echo=$ac_try;;
9080 esac
9081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9082   (eval "$ac_try") 2>&5
9083   ac_status=$?
9084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); }; } &&
9086          { ac_try='test -s conftest.$ac_objext'
9087   { (case "(($ac_try" in
9088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089   *) ac_try_echo=$ac_try;;
9090 esac
9091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092   (eval "$ac_try") 2>&5
9093   ac_status=$?
9094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); }; }; then
9096   ac_cv_c_const=yes
9097 else
9098   echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9100
9101         ac_cv_c_const=no
9102 fi
9103
9104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9105 fi
9106 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9107 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9108 if test $ac_cv_c_const = no; then
9109
9110 cat >>confdefs.h <<\_ACEOF
9111 #define const
9112 _ACEOF
9113
9114 fi
9115
9116
9117
9118
9119
9120
9121 ac_header_dirent=no
9122 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9123   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9124 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9125 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9127   echo $ECHO_N "(cached) $ECHO_C" >&6
9128 else
9129   cat >conftest.$ac_ext <<_ACEOF
9130 /* confdefs.h.  */
9131 _ACEOF
9132 cat confdefs.h >>conftest.$ac_ext
9133 cat >>conftest.$ac_ext <<_ACEOF
9134 /* end confdefs.h.  */
9135 #include <sys/types.h>
9136 #include <$ac_hdr>
9137
9138 int
9139 main ()
9140 {
9141 if ((DIR *) 0)
9142 return 0;
9143   ;
9144   return 0;
9145 }
9146 _ACEOF
9147 rm -f conftest.$ac_objext
9148 if { (ac_try="$ac_compile"
9149 case "(($ac_try" in
9150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151   *) ac_try_echo=$ac_try;;
9152 esac
9153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154   (eval "$ac_compile") 2>conftest.er1
9155   ac_status=$?
9156   grep -v '^ *+' conftest.er1 >conftest.err
9157   rm -f conftest.er1
9158   cat conftest.err >&5
9159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160   (exit $ac_status); } &&
9161          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9162   { (case "(($ac_try" in
9163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9164   *) ac_try_echo=$ac_try;;
9165 esac
9166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9167   (eval "$ac_try") 2>&5
9168   ac_status=$?
9169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170   (exit $ac_status); }; } &&
9171          { ac_try='test -s conftest.$ac_objext'
9172   { (case "(($ac_try" in
9173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174   *) ac_try_echo=$ac_try;;
9175 esac
9176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9177   (eval "$ac_try") 2>&5
9178   ac_status=$?
9179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180   (exit $ac_status); }; }; then
9181   eval "$as_ac_Header=yes"
9182 else
9183   echo "$as_me: failed program was:" >&5
9184 sed 's/^/| /' conftest.$ac_ext >&5
9185
9186         eval "$as_ac_Header=no"
9187 fi
9188
9189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9190 fi
9191 ac_res=`eval echo '${'$as_ac_Header'}'`
9192                { echo "$as_me:$LINENO: result: $ac_res" >&5
9193 echo "${ECHO_T}$ac_res" >&6; }
9194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9195   cat >>confdefs.h <<_ACEOF
9196 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9197 _ACEOF
9198
9199 ac_header_dirent=$ac_hdr; break
9200 fi
9201
9202 done
9203 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9204 if test $ac_header_dirent = dirent.h; then
9205   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9206 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9207 if test "${ac_cv_search_opendir+set}" = set; then
9208   echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210   ac_func_search_save_LIBS=$LIBS
9211 cat >conftest.$ac_ext <<_ACEOF
9212 /* confdefs.h.  */
9213 _ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h.  */
9217
9218 /* Override any GCC internal prototype to avoid an error.
9219    Use char because int might match the return type of a GCC
9220    builtin and then its argument prototype would still apply.  */
9221 #ifdef __cplusplus
9222 extern "C"
9223 #endif
9224 char opendir ();
9225 int
9226 main ()
9227 {
9228 return opendir ();
9229   ;
9230   return 0;
9231 }
9232 _ACEOF
9233 for ac_lib in '' dir; do
9234   if test -z "$ac_lib"; then
9235     ac_res="none required"
9236   else
9237     ac_res=-l$ac_lib
9238     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9239   fi
9240   rm -f conftest.$ac_objext conftest$ac_exeext
9241 if { (ac_try="$ac_link"
9242 case "(($ac_try" in
9243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244   *) ac_try_echo=$ac_try;;
9245 esac
9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247   (eval "$ac_link") 2>conftest.er1
9248   ac_status=$?
9249   grep -v '^ *+' conftest.er1 >conftest.err
9250   rm -f conftest.er1
9251   cat conftest.err >&5
9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253   (exit $ac_status); } &&
9254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9255   { (case "(($ac_try" in
9256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9257   *) ac_try_echo=$ac_try;;
9258 esac
9259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9260   (eval "$ac_try") 2>&5
9261   ac_status=$?
9262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263   (exit $ac_status); }; } &&
9264          { ac_try='test -s conftest$ac_exeext'
9265   { (case "(($ac_try" in
9266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267   *) ac_try_echo=$ac_try;;
9268 esac
9269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270   (eval "$ac_try") 2>&5
9271   ac_status=$?
9272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273   (exit $ac_status); }; }; then
9274   ac_cv_search_opendir=$ac_res
9275 else
9276   echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9278
9279
9280 fi
9281
9282 rm -f core conftest.err conftest.$ac_objext \
9283       conftest$ac_exeext
9284   if test "${ac_cv_search_opendir+set}" = set; then
9285   break
9286 fi
9287 done
9288 if test "${ac_cv_search_opendir+set}" = set; then
9289   :
9290 else
9291   ac_cv_search_opendir=no
9292 fi
9293 rm conftest.$ac_ext
9294 LIBS=$ac_func_search_save_LIBS
9295 fi
9296 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9297 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9298 ac_res=$ac_cv_search_opendir
9299 if test "$ac_res" != no; then
9300   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9301
9302 fi
9303
9304 else
9305   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9306 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9307 if test "${ac_cv_search_opendir+set}" = set; then
9308   echo $ECHO_N "(cached) $ECHO_C" >&6
9309 else
9310   ac_func_search_save_LIBS=$LIBS
9311 cat >conftest.$ac_ext <<_ACEOF
9312 /* confdefs.h.  */
9313 _ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h.  */
9317
9318 /* Override any GCC internal prototype to avoid an error.
9319    Use char because int might match the return type of a GCC
9320    builtin and then its argument prototype would still apply.  */
9321 #ifdef __cplusplus
9322 extern "C"
9323 #endif
9324 char opendir ();
9325 int
9326 main ()
9327 {
9328 return opendir ();
9329   ;
9330   return 0;
9331 }
9332 _ACEOF
9333 for ac_lib in '' x; do
9334   if test -z "$ac_lib"; then
9335     ac_res="none required"
9336   else
9337     ac_res=-l$ac_lib
9338     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9339   fi
9340   rm -f conftest.$ac_objext conftest$ac_exeext
9341 if { (ac_try="$ac_link"
9342 case "(($ac_try" in
9343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344   *) ac_try_echo=$ac_try;;
9345 esac
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347   (eval "$ac_link") 2>conftest.er1
9348   ac_status=$?
9349   grep -v '^ *+' conftest.er1 >conftest.err
9350   rm -f conftest.er1
9351   cat conftest.err >&5
9352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353   (exit $ac_status); } &&
9354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9355   { (case "(($ac_try" in
9356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9357   *) ac_try_echo=$ac_try;;
9358 esac
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360   (eval "$ac_try") 2>&5
9361   ac_status=$?
9362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363   (exit $ac_status); }; } &&
9364          { ac_try='test -s conftest$ac_exeext'
9365   { (case "(($ac_try" in
9366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9367   *) ac_try_echo=$ac_try;;
9368 esac
9369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9370   (eval "$ac_try") 2>&5
9371   ac_status=$?
9372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373   (exit $ac_status); }; }; then
9374   ac_cv_search_opendir=$ac_res
9375 else
9376   echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9378
9379
9380 fi
9381
9382 rm -f core conftest.err conftest.$ac_objext \
9383       conftest$ac_exeext
9384   if test "${ac_cv_search_opendir+set}" = set; then
9385   break
9386 fi
9387 done
9388 if test "${ac_cv_search_opendir+set}" = set; then
9389   :
9390 else
9391   ac_cv_search_opendir=no
9392 fi
9393 rm conftest.$ac_ext
9394 LIBS=$ac_func_search_save_LIBS
9395 fi
9396 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9397 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9398 ac_res=$ac_cv_search_opendir
9399 if test "$ac_res" != no; then
9400   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9401
9402 fi
9403
9404 fi
9405
9406
9407 for ac_header in dlfcn.h
9408 do
9409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9411   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9414   echo $ECHO_N "(cached) $ECHO_C" >&6
9415 fi
9416 ac_res=`eval echo '${'$as_ac_Header'}'`
9417                { echo "$as_me:$LINENO: result: $ac_res" >&5
9418 echo "${ECHO_T}$ac_res" >&6; }
9419 else
9420   # Is the header compilable?
9421 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9423 cat >conftest.$ac_ext <<_ACEOF
9424 /* confdefs.h.  */
9425 _ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h.  */
9429 $ac_includes_default
9430 #include <$ac_header>
9431 _ACEOF
9432 rm -f conftest.$ac_objext
9433 if { (ac_try="$ac_compile"
9434 case "(($ac_try" in
9435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9436   *) ac_try_echo=$ac_try;;
9437 esac
9438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9439   (eval "$ac_compile") 2>conftest.er1
9440   ac_status=$?
9441   grep -v '^ *+' conftest.er1 >conftest.err
9442   rm -f conftest.er1
9443   cat conftest.err >&5
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); } &&
9446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9447   { (case "(($ac_try" in
9448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449   *) ac_try_echo=$ac_try;;
9450 esac
9451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452   (eval "$ac_try") 2>&5
9453   ac_status=$?
9454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455   (exit $ac_status); }; } &&
9456          { ac_try='test -s conftest.$ac_objext'
9457   { (case "(($ac_try" in
9458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459   *) ac_try_echo=$ac_try;;
9460 esac
9461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9462   (eval "$ac_try") 2>&5
9463   ac_status=$?
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); }; }; then
9466   ac_header_compiler=yes
9467 else
9468   echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9470
9471         ac_header_compiler=no
9472 fi
9473
9474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9476 echo "${ECHO_T}$ac_header_compiler" >&6; }
9477
9478 # Is the header present?
9479 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9481 cat >conftest.$ac_ext <<_ACEOF
9482 /* confdefs.h.  */
9483 _ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h.  */
9487 #include <$ac_header>
9488 _ACEOF
9489 if { (ac_try="$ac_cpp conftest.$ac_ext"
9490 case "(($ac_try" in
9491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492   *) ac_try_echo=$ac_try;;
9493 esac
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9496   ac_status=$?
9497   grep -v '^ *+' conftest.er1 >conftest.err
9498   rm -f conftest.er1
9499   cat conftest.err >&5
9500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501   (exit $ac_status); } >/dev/null; then
9502   if test -s conftest.err; then
9503     ac_cpp_err=$ac_c_preproc_warn_flag
9504     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9505   else
9506     ac_cpp_err=
9507   fi
9508 else
9509   ac_cpp_err=yes
9510 fi
9511 if test -z "$ac_cpp_err"; then
9512   ac_header_preproc=yes
9513 else
9514   echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9516
9517   ac_header_preproc=no
9518 fi
9519
9520 rm -f conftest.err conftest.$ac_ext
9521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9522 echo "${ECHO_T}$ac_header_preproc" >&6; }
9523
9524 # So?  What about this header?
9525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9526   yes:no: )
9527     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9531     ac_header_preproc=yes
9532     ;;
9533   no:yes:* )
9534     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9536     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9537 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9538     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9540     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9541 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9544     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9546     ( cat <<\_ASBOX
9547 ## ----------------------------------- ##
9548 ## Report this to llvmbugs@cs.uiuc.edu ##
9549 ## ----------------------------------- ##
9550 _ASBOX
9551      ) | sed "s/^/$as_me: WARNING:     /" >&2
9552     ;;
9553 esac
9554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9557   echo $ECHO_N "(cached) $ECHO_C" >&6
9558 else
9559   eval "$as_ac_Header=\$ac_header_preproc"
9560 fi
9561 ac_res=`eval echo '${'$as_ac_Header'}'`
9562                { echo "$as_me:$LINENO: result: $ac_res" >&5
9563 echo "${ECHO_T}$ac_res" >&6; }
9564
9565 fi
9566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9567   cat >>confdefs.h <<_ACEOF
9568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9569 _ACEOF
9570
9571 fi
9572
9573 done
9574
9575 # Check whether --enable-ltdl-install was given.
9576 if test "${enable_ltdl_install+set}" = set; then
9577   enableval=$enable_ltdl_install;
9578 fi
9579
9580
9581
9582
9583 if test x"${enable_ltdl_install-no}" != xno; then
9584   INSTALL_LTDL_TRUE=
9585   INSTALL_LTDL_FALSE='#'
9586 else
9587   INSTALL_LTDL_TRUE='#'
9588   INSTALL_LTDL_FALSE=
9589 fi
9590
9591
9592
9593 if test x"${enable_ltdl_convenience-no}" != xno; then
9594   CONVENIENCE_LTDL_TRUE=
9595   CONVENIENCE_LTDL_FALSE='#'
9596 else
9597   CONVENIENCE_LTDL_TRUE='#'
9598   CONVENIENCE_LTDL_FALSE=
9599 fi
9600
9601
9602 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9603 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9604 library_names_spec=
9605 libname_spec='lib$name'
9606 soname_spec=
9607 shrext_cmds=".so"
9608 postinstall_cmds=
9609 postuninstall_cmds=
9610 finish_cmds=
9611 finish_eval=
9612 shlibpath_var=
9613 shlibpath_overrides_runpath=unknown
9614 version_type=none
9615 dynamic_linker="$host_os ld.so"
9616 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9617 if test "$GCC" = yes; then
9618   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9619   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9620     # if the path contains ";" then we assume it to be the separator
9621     # otherwise default to the standard path separator (i.e. ":") - it is
9622     # assumed that no part of a normal pathname contains ";" but that should
9623     # okay in the real world where ";" in dirpaths is itself problematic.
9624     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9625   else
9626     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9627   fi
9628 else
9629   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9630 fi
9631 need_lib_prefix=unknown
9632 hardcode_into_libs=no
9633
9634 # when you set need_version to no, make sure it does not cause -set_version
9635 # flags to be left without arguments
9636 need_version=unknown
9637
9638 case $host_os in
9639 aix3*)
9640   version_type=linux
9641   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9642   shlibpath_var=LIBPATH
9643
9644   # AIX 3 has no versioning support, so we append a major version to the name.
9645   soname_spec='${libname}${release}${shared_ext}$major'
9646   ;;
9647
9648 aix4* | aix5*)
9649   version_type=linux
9650   need_lib_prefix=no
9651   need_version=no
9652   hardcode_into_libs=yes
9653   if test "$host_cpu" = ia64; then
9654     # AIX 5 supports IA64
9655     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9656     shlibpath_var=LD_LIBRARY_PATH
9657   else
9658     # With GCC up to 2.95.x, collect2 would create an import file
9659     # for dependence libraries.  The import file would start with
9660     # the line `#! .'.  This would cause the generated library to
9661     # depend on `.', always an invalid library.  This was fixed in
9662     # development snapshots of GCC prior to 3.0.
9663     case $host_os in
9664       aix4 | aix4.[01] | aix4.[01].*)
9665       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9666            echo ' yes '
9667            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9668         :
9669       else
9670         can_build_shared=no
9671       fi
9672       ;;
9673     esac
9674     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9675     # soname into executable. Probably we can add versioning support to
9676     # collect2, so additional links can be useful in future.
9677     if test "$aix_use_runtimelinking" = yes; then
9678       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9679       # instead of lib<name>.a to let people know that these are not
9680       # typical AIX shared libraries.
9681       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9682     else
9683       # We preserve .a as extension for shared libraries through AIX4.2
9684       # and later when we are not doing run time linking.
9685       library_names_spec='${libname}${release}.a $libname.a'
9686       soname_spec='${libname}${release}${shared_ext}$major'
9687     fi
9688     shlibpath_var=LIBPATH
9689   fi
9690   ;;
9691
9692 amigaos*)
9693   library_names_spec='$libname.ixlibrary $libname.a'
9694   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9695   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'
9696   ;;
9697
9698 beos*)
9699   library_names_spec='${libname}${shared_ext}'
9700   dynamic_linker="$host_os ld.so"
9701   shlibpath_var=LIBRARY_PATH
9702   ;;
9703
9704 bsdi[45]*)
9705   version_type=linux
9706   need_version=no
9707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708   soname_spec='${libname}${release}${shared_ext}$major'
9709   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9710   shlibpath_var=LD_LIBRARY_PATH
9711   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9712   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9713   # the default ld.so.conf also contains /usr/contrib/lib and
9714   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9715   # libtool to hard-code these into programs
9716   ;;
9717
9718 cygwin* | mingw* | pw32*)
9719   version_type=windows
9720   shrext_cmds=".dll"
9721   need_version=no
9722   need_lib_prefix=no
9723
9724   case $GCC,$host_os in
9725   yes,cygwin* | yes,mingw* | yes,pw32*)
9726     library_names_spec='$libname.dll.a'
9727     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9728     postinstall_cmds='base_file=`basename \${file}`~
9729       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9730       dldir=$destdir/`dirname \$dlpath`~
9731       test -d \$dldir || mkdir -p \$dldir~
9732       $install_prog $dir/$dlname \$dldir/$dlname~
9733       chmod a+x \$dldir/$dlname'
9734     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9735       dlpath=$dir/\$dldll~
9736        $rm \$dlpath'
9737     shlibpath_overrides_runpath=yes
9738
9739     case $host_os in
9740     cygwin*)
9741       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9742       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9743       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9744       ;;
9745     mingw*)
9746       # MinGW DLLs use traditional 'lib' prefix
9747       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9748       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9749       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9750         # It is most probably a Windows format PATH printed by
9751         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9752         # path with ; separators, and with drive letters. We can handle the
9753         # drive letters (cygwin fileutils understands them), so leave them,
9754         # especially as we might pass files found there to a mingw objdump,
9755         # which wouldn't understand a cygwinified path. Ahh.
9756         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9757       else
9758         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9759       fi
9760       ;;
9761     pw32*)
9762       # pw32 DLLs use 'pw' prefix rather than 'lib'
9763       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9764       ;;
9765     esac
9766     ;;
9767
9768   *)
9769     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9770     ;;
9771   esac
9772   dynamic_linker='Win32 ld.exe'
9773   # FIXME: first we should search . and the directory the executable is in
9774   shlibpath_var=PATH
9775   ;;
9776
9777 darwin* | rhapsody*)
9778   dynamic_linker="$host_os dyld"
9779   version_type=darwin
9780   need_lib_prefix=no
9781   need_version=no
9782   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9783   soname_spec='${libname}${release}${major}$shared_ext'
9784   shlibpath_overrides_runpath=yes
9785   shlibpath_var=DYLD_LIBRARY_PATH
9786   shrext_cmds='.dylib'
9787   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9788   if test "$GCC" = yes; then
9789     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"`
9790   else
9791     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9792   fi
9793   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9794   ;;
9795
9796 dgux*)
9797   version_type=linux
9798   need_lib_prefix=no
9799   need_version=no
9800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9801   soname_spec='${libname}${release}${shared_ext}$major'
9802   shlibpath_var=LD_LIBRARY_PATH
9803   ;;
9804
9805 freebsd1*)
9806   dynamic_linker=no
9807   ;;
9808
9809 kfreebsd*-gnu)
9810   version_type=linux
9811   need_lib_prefix=no
9812   need_version=no
9813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9814   soname_spec='${libname}${release}${shared_ext}$major'
9815   shlibpath_var=LD_LIBRARY_PATH
9816   shlibpath_overrides_runpath=no
9817   hardcode_into_libs=yes
9818   dynamic_linker='GNU ld.so'
9819   ;;
9820
9821 freebsd* | dragonfly*)
9822   # DragonFly does not have aout.  When/if they implement a new
9823   # versioning mechanism, adjust this.
9824   if test -x /usr/bin/objformat; then
9825     objformat=`/usr/bin/objformat`
9826   else
9827     case $host_os in
9828     freebsd[123]*) objformat=aout ;;
9829     *) objformat=elf ;;
9830     esac
9831   fi
9832   version_type=freebsd-$objformat
9833   case $version_type in
9834     freebsd-elf*)
9835       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9836       need_version=no
9837       need_lib_prefix=no
9838       ;;
9839     freebsd-*)
9840       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9841       need_version=yes
9842       ;;
9843   esac
9844   shlibpath_var=LD_LIBRARY_PATH
9845   case $host_os in
9846   freebsd2*)
9847     shlibpath_overrides_runpath=yes
9848     ;;
9849   freebsd3.[01]* | freebsdelf3.[01]*)
9850     shlibpath_overrides_runpath=yes
9851     hardcode_into_libs=yes
9852     ;;
9853   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9854   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9855     shlibpath_overrides_runpath=no
9856     hardcode_into_libs=yes
9857     ;;
9858   freebsd*) # from 4.6 on
9859     shlibpath_overrides_runpath=yes
9860     hardcode_into_libs=yes
9861     ;;
9862   esac
9863   ;;
9864
9865 gnu*)
9866   version_type=linux
9867   need_lib_prefix=no
9868   need_version=no
9869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9870   soname_spec='${libname}${release}${shared_ext}$major'
9871   shlibpath_var=LD_LIBRARY_PATH
9872   hardcode_into_libs=yes
9873   ;;
9874
9875 hpux9* | hpux10* | hpux11*)
9876   # Give a soname corresponding to the major version so that dld.sl refuses to
9877   # link against other versions.
9878   version_type=sunos
9879   need_lib_prefix=no
9880   need_version=no
9881   case $host_cpu in
9882   ia64*)
9883     shrext_cmds='.so'
9884     hardcode_into_libs=yes
9885     dynamic_linker="$host_os dld.so"
9886     shlibpath_var=LD_LIBRARY_PATH
9887     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9888     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889     soname_spec='${libname}${release}${shared_ext}$major'
9890     if test "X$HPUX_IA64_MODE" = X32; then
9891       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9892     else
9893       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9894     fi
9895     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9896     ;;
9897    hppa*64*)
9898      shrext_cmds='.sl'
9899      hardcode_into_libs=yes
9900      dynamic_linker="$host_os dld.sl"
9901      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9902      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9903      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904      soname_spec='${libname}${release}${shared_ext}$major'
9905      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9906      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9907      ;;
9908    *)
9909     shrext_cmds='.sl'
9910     dynamic_linker="$host_os dld.sl"
9911     shlibpath_var=SHLIB_PATH
9912     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9913     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914     soname_spec='${libname}${release}${shared_ext}$major'
9915     ;;
9916   esac
9917   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9918   postinstall_cmds='chmod 555 $lib'
9919   ;;
9920
9921 interix3*)
9922   version_type=linux
9923   need_lib_prefix=no
9924   need_version=no
9925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9926   soname_spec='${libname}${release}${shared_ext}$major'
9927   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9928   shlibpath_var=LD_LIBRARY_PATH
9929   shlibpath_overrides_runpath=no
9930   hardcode_into_libs=yes
9931   ;;
9932
9933 irix5* | irix6* | nonstopux*)
9934   case $host_os in
9935     nonstopux*) version_type=nonstopux ;;
9936     *)
9937         if test "$lt_cv_prog_gnu_ld" = yes; then
9938                 version_type=linux
9939         else
9940                 version_type=irix
9941         fi ;;
9942   esac
9943   need_lib_prefix=no
9944   need_version=no
9945   soname_spec='${libname}${release}${shared_ext}$major'
9946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9947   case $host_os in
9948   irix5* | nonstopux*)
9949     libsuff= shlibsuff=
9950     ;;
9951   *)
9952     case $LD in # libtool.m4 will add one of these switches to LD
9953     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9954       libsuff= shlibsuff= libmagic=32-bit;;
9955     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9956       libsuff=32 shlibsuff=N32 libmagic=N32;;
9957     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9958       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9959     *) libsuff= shlibsuff= libmagic=never-match;;
9960     esac
9961     ;;
9962   esac
9963   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9964   shlibpath_overrides_runpath=no
9965   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9966   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9967   hardcode_into_libs=yes
9968   ;;
9969
9970 # No shared lib support for Linux oldld, aout, or coff.
9971 linux*oldld* | linux*aout* | linux*coff*)
9972   dynamic_linker=no
9973   ;;
9974
9975 # This must be Linux ELF.
9976 linux*)
9977   version_type=linux
9978   need_lib_prefix=no
9979   need_version=no
9980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981   soname_spec='${libname}${release}${shared_ext}$major'
9982   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9983   shlibpath_var=LD_LIBRARY_PATH
9984   shlibpath_overrides_runpath=no
9985   # This implies no fast_install, which is unacceptable.
9986   # Some rework will be needed to allow for fast_install
9987   # before this can be enabled.
9988   hardcode_into_libs=yes
9989
9990   # Append ld.so.conf contents to the search path
9991   if test -f /etc/ld.so.conf; then
9992     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' ' '`
9993     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9994   fi
9995
9996   # We used to test for /lib/ld.so.1 and disable shared libraries on
9997   # powerpc, because MkLinux only supported shared libraries with the
9998   # GNU dynamic linker.  Since this was broken with cross compilers,
9999   # most powerpc-linux boxes support dynamic linking these days and
10000   # people can always --disable-shared, the test was removed, and we
10001   # assume the GNU/Linux dynamic linker is in use.
10002   dynamic_linker='GNU/Linux ld.so'
10003   ;;
10004
10005 knetbsd*-gnu)
10006   version_type=linux
10007   need_lib_prefix=no
10008   need_version=no
10009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10010   soname_spec='${libname}${release}${shared_ext}$major'
10011   shlibpath_var=LD_LIBRARY_PATH
10012   shlibpath_overrides_runpath=no
10013   hardcode_into_libs=yes
10014   dynamic_linker='GNU ld.so'
10015   ;;
10016
10017 netbsd*)
10018   version_type=sunos
10019   need_lib_prefix=no
10020   need_version=no
10021   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10023     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10024     dynamic_linker='NetBSD (a.out) ld.so'
10025   else
10026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10027     soname_spec='${libname}${release}${shared_ext}$major'
10028     dynamic_linker='NetBSD ld.elf_so'
10029   fi
10030   shlibpath_var=LD_LIBRARY_PATH
10031   shlibpath_overrides_runpath=yes
10032   hardcode_into_libs=yes
10033   ;;
10034
10035 newsos6)
10036   version_type=linux
10037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10038   shlibpath_var=LD_LIBRARY_PATH
10039   shlibpath_overrides_runpath=yes
10040   ;;
10041
10042 nto-qnx*)
10043   version_type=linux
10044   need_lib_prefix=no
10045   need_version=no
10046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10047   soname_spec='${libname}${release}${shared_ext}$major'
10048   shlibpath_var=LD_LIBRARY_PATH
10049   shlibpath_overrides_runpath=yes
10050   ;;
10051
10052 openbsd*)
10053   version_type=sunos
10054   sys_lib_dlsearch_path_spec="/usr/lib"
10055   need_lib_prefix=no
10056   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10057   case $host_os in
10058     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10059     *)                         need_version=no  ;;
10060   esac
10061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10062   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10063   shlibpath_var=LD_LIBRARY_PATH
10064   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10065     case $host_os in
10066       openbsd2.[89] | openbsd2.[89].*)
10067         shlibpath_overrides_runpath=no
10068         ;;
10069       *)
10070         shlibpath_overrides_runpath=yes
10071         ;;
10072       esac
10073   else
10074     shlibpath_overrides_runpath=yes
10075   fi
10076   ;;
10077
10078 os2*)
10079   libname_spec='$name'
10080   shrext_cmds=".dll"
10081   need_lib_prefix=no
10082   library_names_spec='$libname${shared_ext} $libname.a'
10083   dynamic_linker='OS/2 ld.exe'
10084   shlibpath_var=LIBPATH
10085   ;;
10086
10087 osf3* | osf4* | osf5*)
10088   version_type=osf
10089   need_lib_prefix=no
10090   need_version=no
10091   soname_spec='${libname}${release}${shared_ext}$major'
10092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093   shlibpath_var=LD_LIBRARY_PATH
10094   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10095   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10096   ;;
10097
10098 solaris*)
10099   version_type=linux
10100   need_lib_prefix=no
10101   need_version=no
10102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10103   soname_spec='${libname}${release}${shared_ext}$major'
10104   shlibpath_var=LD_LIBRARY_PATH
10105   shlibpath_overrides_runpath=yes
10106   hardcode_into_libs=yes
10107   # ldd complains unless libraries are executable
10108   postinstall_cmds='chmod +x $lib'
10109   ;;
10110
10111 sunos4*)
10112   version_type=sunos
10113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10114   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10115   shlibpath_var=LD_LIBRARY_PATH
10116   shlibpath_overrides_runpath=yes
10117   if test "$with_gnu_ld" = yes; then
10118     need_lib_prefix=no
10119   fi
10120   need_version=yes
10121   ;;
10122
10123 sysv4 | sysv4.3*)
10124   version_type=linux
10125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126   soname_spec='${libname}${release}${shared_ext}$major'
10127   shlibpath_var=LD_LIBRARY_PATH
10128   case $host_vendor in
10129     sni)
10130       shlibpath_overrides_runpath=no
10131       need_lib_prefix=no
10132       export_dynamic_flag_spec='${wl}-Blargedynsym'
10133       runpath_var=LD_RUN_PATH
10134       ;;
10135     siemens)
10136       need_lib_prefix=no
10137       ;;
10138     motorola)
10139       need_lib_prefix=no
10140       need_version=no
10141       shlibpath_overrides_runpath=no
10142       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10143       ;;
10144   esac
10145   ;;
10146
10147 sysv4*MP*)
10148   if test -d /usr/nec ;then
10149     version_type=linux
10150     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10151     soname_spec='$libname${shared_ext}.$major'
10152     shlibpath_var=LD_LIBRARY_PATH
10153   fi
10154   ;;
10155
10156 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10157   version_type=freebsd-elf
10158   need_lib_prefix=no
10159   need_version=no
10160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10161   soname_spec='${libname}${release}${shared_ext}$major'
10162   shlibpath_var=LD_LIBRARY_PATH
10163   hardcode_into_libs=yes
10164   if test "$with_gnu_ld" = yes; then
10165     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10166     shlibpath_overrides_runpath=no
10167   else
10168     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10169     shlibpath_overrides_runpath=yes
10170     case $host_os in
10171       sco3.2v5*)
10172         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10173         ;;
10174     esac
10175   fi
10176   sys_lib_dlsearch_path_spec='/usr/lib'
10177   ;;
10178
10179 uts4*)
10180   version_type=linux
10181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182   soname_spec='${libname}${release}${shared_ext}$major'
10183   shlibpath_var=LD_LIBRARY_PATH
10184   ;;
10185
10186 *)
10187   dynamic_linker=no
10188   ;;
10189 esac
10190 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10191 echo "${ECHO_T}$dynamic_linker" >&6; }
10192 test "$dynamic_linker" = no && can_build_shared=no
10193
10194 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10195 if test "$GCC" = yes; then
10196   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10197 fi
10198
10199
10200 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10201 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10202 if test "${libltdl_cv_shlibext+set}" = set; then
10203   echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205
10206 module=yes
10207 eval libltdl_cv_shlibext=$shrext_cmds
10208
10209 fi
10210 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10211 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10212 if test -n "$libltdl_cv_shlibext"; then
10213
10214 cat >>confdefs.h <<_ACEOF
10215 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10216 _ACEOF
10217
10218 fi
10219
10220
10221 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10222 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10223 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10224   echo $ECHO_N "(cached) $ECHO_C" >&6
10225 else
10226   libltdl_cv_shlibpath_var="$shlibpath_var"
10227 fi
10228 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10229 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10230 if test -n "$libltdl_cv_shlibpath_var"; then
10231
10232 cat >>confdefs.h <<_ACEOF
10233 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10234 _ACEOF
10235
10236 fi
10237
10238
10239 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10240 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10241 if test "${libltdl_cv_sys_search_path+set}" = set; then
10242   echo $ECHO_N "(cached) $ECHO_C" >&6
10243 else
10244   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10245 fi
10246 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10247 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10248 if test -n "$libltdl_cv_sys_search_path"; then
10249   sys_search_path=
10250   for dir in $libltdl_cv_sys_search_path; do
10251     if test -z "$sys_search_path"; then
10252       sys_search_path="$dir"
10253     else
10254       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10255     fi
10256   done
10257
10258 cat >>confdefs.h <<_ACEOF
10259 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10260 _ACEOF
10261
10262 fi
10263
10264 { echo "$as_me:$LINENO: checking for objdir" >&5
10265 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10266 if test "${libltdl_cv_objdir+set}" = set; then
10267   echo $ECHO_N "(cached) $ECHO_C" >&6
10268 else
10269   libltdl_cv_objdir="$objdir"
10270   if test -n "$objdir"; then
10271     :
10272   else
10273     rm -f .libs 2>/dev/null
10274     mkdir .libs 2>/dev/null
10275     if test -d .libs; then
10276       libltdl_cv_objdir=.libs
10277     else
10278       # MS-DOS does not allow filenames that begin with a dot.
10279       libltdl_cv_objdir=_libs
10280     fi
10281   rmdir .libs 2>/dev/null
10282   fi
10283
10284 fi
10285 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10286 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10287
10288 cat >>confdefs.h <<_ACEOF
10289 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10290 _ACEOF
10291
10292
10293
10294
10295
10296
10297 # Check for command to grab the raw symbol name followed by C symbol from nm.
10298 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10299 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10300 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10301   echo $ECHO_N "(cached) $ECHO_C" >&6
10302 else
10303
10304 # These are sane defaults that work on at least a few old systems.
10305 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10306
10307 # Character class describing NM global symbol codes.
10308 symcode='[BCDEGRST]'
10309
10310 # Regexp to match symbols that can be accessed directly from C.
10311 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10312
10313 # Transform an extracted symbol line into a proper C declaration
10314 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10315
10316 # Transform an extracted symbol line into symbol name and symbol address
10317 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'"
10318
10319 # Define system-specific variables.
10320 case $host_os in
10321 aix*)
10322   symcode='[BCDT]'
10323   ;;
10324 cygwin* | mingw* | pw32*)
10325   symcode='[ABCDGISTW]'
10326   ;;
10327 hpux*) # Its linker distinguishes data from code symbols
10328   if test "$host_cpu" = ia64; then
10329     symcode='[ABCDEGRST]'
10330   fi
10331   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10332   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'"
10333   ;;
10334 linux*)
10335   if test "$host_cpu" = ia64; then
10336     symcode='[ABCDGIRSTW]'
10337     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
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   fi
10340   ;;
10341 irix* | nonstopux*)
10342   symcode='[BCDEGRST]'
10343   ;;
10344 osf*)
10345   symcode='[BCDEGQRST]'
10346   ;;
10347 solaris*)
10348   symcode='[BDRT]'
10349   ;;
10350 sco3.2v5*)
10351   symcode='[DT]'
10352   ;;
10353 sysv4.2uw2*)
10354   symcode='[DT]'
10355   ;;
10356 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10357   symcode='[ABDT]'
10358   ;;
10359 sysv4)
10360   symcode='[DFNSTU]'
10361   ;;
10362 esac
10363
10364 # Handle CRLF in mingw tool chain
10365 opt_cr=
10366 case $build_os in
10367 mingw*)
10368   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10369   ;;
10370 esac
10371
10372 # If we're using GNU nm, then use its standard symbol codes.
10373 case `$NM -V 2>&1` in
10374 *GNU* | *'with BFD'*)
10375   symcode='[ABCDGIRSTW]' ;;
10376 esac
10377
10378 # Try without a prefix undercore, then with it.
10379 for ac_symprfx in "" "_"; do
10380
10381   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10382   symxfrm="\\1 $ac_symprfx\\2 \\2"
10383
10384   # Write the raw and C identifiers.
10385   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10386
10387   # Check to see that the pipe works correctly.
10388   pipe_works=no
10389
10390   rm -f conftest*
10391   cat > conftest.$ac_ext <<EOF
10392 #ifdef __cplusplus
10393 extern "C" {
10394 #endif
10395 char nm_test_var;
10396 void nm_test_func(){}
10397 #ifdef __cplusplus
10398 }
10399 #endif
10400 int main(){nm_test_var='a';nm_test_func();return(0);}
10401 EOF
10402
10403   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10404   (eval $ac_compile) 2>&5
10405   ac_status=$?
10406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407   (exit $ac_status); }; then
10408     # Now try to grab the symbols.
10409     nlist=conftest.nm
10410     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10411   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10412   ac_status=$?
10413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414   (exit $ac_status); } && test -s "$nlist"; then
10415       # Try sorting and uniquifying the output.
10416       if sort "$nlist" | uniq > "$nlist"T; then
10417         mv -f "$nlist"T "$nlist"
10418       else
10419         rm -f "$nlist"T
10420       fi
10421
10422       # Make sure that we snagged all the symbols we need.
10423       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10424         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10425           cat <<EOF > conftest.$ac_ext
10426 #ifdef __cplusplus
10427 extern "C" {
10428 #endif
10429
10430 EOF
10431           # Now generate the symbol file.
10432           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10433
10434           cat <<EOF >> conftest.$ac_ext
10435 #if defined (__STDC__) && __STDC__
10436 # define lt_ptr_t void *
10437 #else
10438 # define lt_ptr_t char *
10439 # define const
10440 #endif
10441
10442 /* The mapping between symbol names and symbols. */
10443 const struct {
10444   const char *name;
10445   lt_ptr_t address;
10446 }
10447 lt_preloaded_symbols[] =
10448 {
10449 EOF
10450           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10451           cat <<\EOF >> conftest.$ac_ext
10452   {0, (lt_ptr_t) 0}
10453 };
10454
10455 #ifdef __cplusplus
10456 }
10457 #endif
10458 EOF
10459           # Now try linking the two files.
10460           mv conftest.$ac_objext conftstm.$ac_objext
10461           lt_save_LIBS="$LIBS"
10462           lt_save_CFLAGS="$CFLAGS"
10463           LIBS="conftstm.$ac_objext"
10464           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10465           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466   (eval $ac_link) 2>&5
10467   ac_status=$?
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10470             pipe_works=yes
10471           fi
10472           LIBS="$lt_save_LIBS"
10473           CFLAGS="$lt_save_CFLAGS"
10474         else
10475           echo "cannot find nm_test_func in $nlist" >&5
10476         fi
10477       else
10478         echo "cannot find nm_test_var in $nlist" >&5
10479       fi
10480     else
10481       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10482     fi
10483   else
10484     echo "$progname: failed program was:" >&5
10485     cat conftest.$ac_ext >&5
10486   fi
10487   rm -f conftest* conftst*
10488
10489   # Do not use the global_symbol_pipe unless it works.
10490   if test "$pipe_works" = yes; then
10491     break
10492   else
10493     lt_cv_sys_global_symbol_pipe=
10494   fi
10495 done
10496
10497 fi
10498
10499 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10500   lt_cv_sys_global_symbol_to_cdecl=
10501 fi
10502 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10503   { echo "$as_me:$LINENO: result: failed" >&5
10504 echo "${ECHO_T}failed" >&6; }
10505 else
10506   { echo "$as_me:$LINENO: result: ok" >&5
10507 echo "${ECHO_T}ok" >&6; }
10508 fi
10509
10510
10511 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10512 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10513 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10514   echo $ECHO_N "(cached) $ECHO_C" >&6
10515 else
10516   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10517     libltdl_cv_preloaded_symbols=yes
10518   else
10519     libltdl_cv_preloaded_symbols=no
10520   fi
10521
10522 fi
10523 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10524 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10525 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10526
10527 cat >>confdefs.h <<\_ACEOF
10528 #define HAVE_PRELOADED_SYMBOLS 1
10529 _ACEOF
10530
10531 fi
10532
10533 LIBADD_DL=
10534
10535 ac_ext=c
10536 ac_cpp='$CPP $CPPFLAGS'
10537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10540
10541
10542 { echo "$as_me:$LINENO: checking for shl_load" >&5
10543 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10544 if test "${ac_cv_func_shl_load+set}" = set; then
10545   echo $ECHO_N "(cached) $ECHO_C" >&6
10546 else
10547   cat >conftest.$ac_ext <<_ACEOF
10548 /* confdefs.h.  */
10549 _ACEOF
10550 cat confdefs.h >>conftest.$ac_ext
10551 cat >>conftest.$ac_ext <<_ACEOF
10552 /* end confdefs.h.  */
10553 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10555 #define shl_load innocuous_shl_load
10556
10557 /* System header to define __stub macros and hopefully few prototypes,
10558     which can conflict with char shl_load (); below.
10559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10560     <limits.h> exists even on freestanding compilers.  */
10561
10562 #ifdef __STDC__
10563 # include <limits.h>
10564 #else
10565 # include <assert.h>
10566 #endif
10567
10568 #undef shl_load
10569
10570 /* Override any GCC internal prototype to avoid an error.
10571    Use char because int might match the return type of a GCC
10572    builtin and then its argument prototype would still apply.  */
10573 #ifdef __cplusplus
10574 extern "C"
10575 #endif
10576 char shl_load ();
10577 /* The GNU C library defines this for functions which it implements
10578     to always fail with ENOSYS.  Some functions are actually named
10579     something starting with __ and the normal name is an alias.  */
10580 #if defined __stub_shl_load || defined __stub___shl_load
10581 choke me
10582 #endif
10583
10584 int
10585 main ()
10586 {
10587 return shl_load ();
10588   ;
10589   return 0;
10590 }
10591 _ACEOF
10592 rm -f conftest.$ac_objext conftest$ac_exeext
10593 if { (ac_try="$ac_link"
10594 case "(($ac_try" in
10595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596   *) ac_try_echo=$ac_try;;
10597 esac
10598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10599   (eval "$ac_link") 2>conftest.er1
10600   ac_status=$?
10601   grep -v '^ *+' conftest.er1 >conftest.err
10602   rm -f conftest.er1
10603   cat conftest.err >&5
10604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605   (exit $ac_status); } &&
10606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10607   { (case "(($ac_try" in
10608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609   *) ac_try_echo=$ac_try;;
10610 esac
10611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612   (eval "$ac_try") 2>&5
10613   ac_status=$?
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); }; } &&
10616          { ac_try='test -s conftest$ac_exeext'
10617   { (case "(($ac_try" in
10618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619   *) ac_try_echo=$ac_try;;
10620 esac
10621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622   (eval "$ac_try") 2>&5
10623   ac_status=$?
10624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); }; }; then
10626   ac_cv_func_shl_load=yes
10627 else
10628   echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10630
10631         ac_cv_func_shl_load=no
10632 fi
10633
10634 rm -f core conftest.err conftest.$ac_objext \
10635       conftest$ac_exeext conftest.$ac_ext
10636 fi
10637 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10638 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10639 if test $ac_cv_func_shl_load = yes; then
10640
10641 cat >>confdefs.h <<\_ACEOF
10642 #define HAVE_SHL_LOAD 1
10643 _ACEOF
10644
10645 else
10646   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10647 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10648 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10649   echo $ECHO_N "(cached) $ECHO_C" >&6
10650 else
10651   ac_check_lib_save_LIBS=$LIBS
10652 LIBS="-ldld  $LIBS"
10653 cat >conftest.$ac_ext <<_ACEOF
10654 /* confdefs.h.  */
10655 _ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h.  */
10659
10660 /* Override any GCC internal prototype to avoid an error.
10661    Use char because int might match the return type of a GCC
10662    builtin and then its argument prototype would still apply.  */
10663 #ifdef __cplusplus
10664 extern "C"
10665 #endif
10666 char shl_load ();
10667 int
10668 main ()
10669 {
10670 return shl_load ();
10671   ;
10672   return 0;
10673 }
10674 _ACEOF
10675 rm -f conftest.$ac_objext conftest$ac_exeext
10676 if { (ac_try="$ac_link"
10677 case "(($ac_try" in
10678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679   *) ac_try_echo=$ac_try;;
10680 esac
10681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10682   (eval "$ac_link") 2>conftest.er1
10683   ac_status=$?
10684   grep -v '^ *+' conftest.er1 >conftest.err
10685   rm -f conftest.er1
10686   cat conftest.err >&5
10687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688   (exit $ac_status); } &&
10689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10690   { (case "(($ac_try" in
10691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692   *) ac_try_echo=$ac_try;;
10693 esac
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695   (eval "$ac_try") 2>&5
10696   ac_status=$?
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); }; } &&
10699          { ac_try='test -s conftest$ac_exeext'
10700   { (case "(($ac_try" in
10701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702   *) ac_try_echo=$ac_try;;
10703 esac
10704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705   (eval "$ac_try") 2>&5
10706   ac_status=$?
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); }; }; then
10709   ac_cv_lib_dld_shl_load=yes
10710 else
10711   echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10713
10714         ac_cv_lib_dld_shl_load=no
10715 fi
10716
10717 rm -f core conftest.err conftest.$ac_objext \
10718       conftest$ac_exeext conftest.$ac_ext
10719 LIBS=$ac_check_lib_save_LIBS
10720 fi
10721 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10722 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10723 if test $ac_cv_lib_dld_shl_load = yes; then
10724
10725 cat >>confdefs.h <<\_ACEOF
10726 #define HAVE_SHL_LOAD 1
10727 _ACEOF
10728
10729         LIBADD_DL="$LIBADD_DL -ldld"
10730 else
10731   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10732 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10733 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10734   echo $ECHO_N "(cached) $ECHO_C" >&6
10735 else
10736   ac_check_lib_save_LIBS=$LIBS
10737 LIBS="-ldl  $LIBS"
10738 cat >conftest.$ac_ext <<_ACEOF
10739 /* confdefs.h.  */
10740 _ACEOF
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h.  */
10744
10745 /* Override any GCC internal prototype to avoid an error.
10746    Use char because int might match the return type of a GCC
10747    builtin and then its argument prototype would still apply.  */
10748 #ifdef __cplusplus
10749 extern "C"
10750 #endif
10751 char dlopen ();
10752 int
10753 main ()
10754 {
10755 return dlopen ();
10756   ;
10757   return 0;
10758 }
10759 _ACEOF
10760 rm -f conftest.$ac_objext conftest$ac_exeext
10761 if { (ac_try="$ac_link"
10762 case "(($ac_try" in
10763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764   *) ac_try_echo=$ac_try;;
10765 esac
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767   (eval "$ac_link") 2>conftest.er1
10768   ac_status=$?
10769   grep -v '^ *+' conftest.er1 >conftest.err
10770   rm -f conftest.er1
10771   cat conftest.err >&5
10772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773   (exit $ac_status); } &&
10774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10775   { (case "(($ac_try" in
10776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777   *) ac_try_echo=$ac_try;;
10778 esac
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780   (eval "$ac_try") 2>&5
10781   ac_status=$?
10782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783   (exit $ac_status); }; } &&
10784          { ac_try='test -s conftest$ac_exeext'
10785   { (case "(($ac_try" in
10786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10787   *) ac_try_echo=$ac_try;;
10788 esac
10789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10790   (eval "$ac_try") 2>&5
10791   ac_status=$?
10792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793   (exit $ac_status); }; }; then
10794   ac_cv_lib_dl_dlopen=yes
10795 else
10796   echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10798
10799         ac_cv_lib_dl_dlopen=no
10800 fi
10801
10802 rm -f core conftest.err conftest.$ac_objext \
10803       conftest$ac_exeext conftest.$ac_ext
10804 LIBS=$ac_check_lib_save_LIBS
10805 fi
10806 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10807 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10808 if test $ac_cv_lib_dl_dlopen = yes; then
10809
10810 cat >>confdefs.h <<\_ACEOF
10811 #define HAVE_LIBDL 1
10812 _ACEOF
10813
10814                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10815 else
10816   cat >conftest.$ac_ext <<_ACEOF
10817 /* confdefs.h.  */
10818 _ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h.  */
10822 #if HAVE_DLFCN_H
10823 #  include <dlfcn.h>
10824 #endif
10825
10826 int
10827 main ()
10828 {
10829 dlopen(0, 0);
10830   ;
10831   return 0;
10832 }
10833 _ACEOF
10834 rm -f conftest.$ac_objext conftest$ac_exeext
10835 if { (ac_try="$ac_link"
10836 case "(($ac_try" in
10837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10838   *) ac_try_echo=$ac_try;;
10839 esac
10840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10841   (eval "$ac_link") 2>conftest.er1
10842   ac_status=$?
10843   grep -v '^ *+' conftest.er1 >conftest.err
10844   rm -f conftest.er1
10845   cat conftest.err >&5
10846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847   (exit $ac_status); } &&
10848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10849   { (case "(($ac_try" in
10850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851   *) ac_try_echo=$ac_try;;
10852 esac
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854   (eval "$ac_try") 2>&5
10855   ac_status=$?
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); }; } &&
10858          { ac_try='test -s conftest$ac_exeext'
10859   { (case "(($ac_try" in
10860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861   *) ac_try_echo=$ac_try;;
10862 esac
10863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864   (eval "$ac_try") 2>&5
10865   ac_status=$?
10866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867   (exit $ac_status); }; }; then
10868
10869 cat >>confdefs.h <<\_ACEOF
10870 #define HAVE_LIBDL 1
10871 _ACEOF
10872  libltdl_cv_func_dlopen="yes"
10873 else
10874   echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10876
10877         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10878 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10879 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10880   echo $ECHO_N "(cached) $ECHO_C" >&6
10881 else
10882   ac_check_lib_save_LIBS=$LIBS
10883 LIBS="-lsvld  $LIBS"
10884 cat >conftest.$ac_ext <<_ACEOF
10885 /* confdefs.h.  */
10886 _ACEOF
10887 cat confdefs.h >>conftest.$ac_ext
10888 cat >>conftest.$ac_ext <<_ACEOF
10889 /* end confdefs.h.  */
10890
10891 /* Override any GCC internal prototype to avoid an error.
10892    Use char because int might match the return type of a GCC
10893    builtin and then its argument prototype would still apply.  */
10894 #ifdef __cplusplus
10895 extern "C"
10896 #endif
10897 char dlopen ();
10898 int
10899 main ()
10900 {
10901 return dlopen ();
10902   ;
10903   return 0;
10904 }
10905 _ACEOF
10906 rm -f conftest.$ac_objext conftest$ac_exeext
10907 if { (ac_try="$ac_link"
10908 case "(($ac_try" in
10909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910   *) ac_try_echo=$ac_try;;
10911 esac
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913   (eval "$ac_link") 2>conftest.er1
10914   ac_status=$?
10915   grep -v '^ *+' conftest.er1 >conftest.err
10916   rm -f conftest.er1
10917   cat conftest.err >&5
10918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919   (exit $ac_status); } &&
10920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10921   { (case "(($ac_try" in
10922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923   *) ac_try_echo=$ac_try;;
10924 esac
10925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926   (eval "$ac_try") 2>&5
10927   ac_status=$?
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); }; } &&
10930          { ac_try='test -s conftest$ac_exeext'
10931   { (case "(($ac_try" in
10932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933   *) ac_try_echo=$ac_try;;
10934 esac
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936   (eval "$ac_try") 2>&5
10937   ac_status=$?
10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); }; }; then
10940   ac_cv_lib_svld_dlopen=yes
10941 else
10942   echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10944
10945         ac_cv_lib_svld_dlopen=no
10946 fi
10947
10948 rm -f core conftest.err conftest.$ac_objext \
10949       conftest$ac_exeext conftest.$ac_ext
10950 LIBS=$ac_check_lib_save_LIBS
10951 fi
10952 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10953 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10954 if test $ac_cv_lib_svld_dlopen = yes; then
10955
10956 cat >>confdefs.h <<\_ACEOF
10957 #define HAVE_LIBDL 1
10958 _ACEOF
10959
10960                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10961 else
10962   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10963 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10964 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10965   echo $ECHO_N "(cached) $ECHO_C" >&6
10966 else
10967   ac_check_lib_save_LIBS=$LIBS
10968 LIBS="-ldld  $LIBS"
10969 cat >conftest.$ac_ext <<_ACEOF
10970 /* confdefs.h.  */
10971 _ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h.  */
10975
10976 /* Override any GCC internal prototype to avoid an error.
10977    Use char because int might match the return type of a GCC
10978    builtin and then its argument prototype would still apply.  */
10979 #ifdef __cplusplus
10980 extern "C"
10981 #endif
10982 char dld_link ();
10983 int
10984 main ()
10985 {
10986 return dld_link ();
10987   ;
10988   return 0;
10989 }
10990 _ACEOF
10991 rm -f conftest.$ac_objext conftest$ac_exeext
10992 if { (ac_try="$ac_link"
10993 case "(($ac_try" in
10994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995   *) ac_try_echo=$ac_try;;
10996 esac
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998   (eval "$ac_link") 2>conftest.er1
10999   ac_status=$?
11000   grep -v '^ *+' conftest.er1 >conftest.err
11001   rm -f conftest.er1
11002   cat conftest.err >&5
11003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004   (exit $ac_status); } &&
11005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11006   { (case "(($ac_try" in
11007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008   *) ac_try_echo=$ac_try;;
11009 esac
11010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011   (eval "$ac_try") 2>&5
11012   ac_status=$?
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); }; } &&
11015          { ac_try='test -s conftest$ac_exeext'
11016   { (case "(($ac_try" in
11017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018   *) ac_try_echo=$ac_try;;
11019 esac
11020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021   (eval "$ac_try") 2>&5
11022   ac_status=$?
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); }; }; then
11025   ac_cv_lib_dld_dld_link=yes
11026 else
11027   echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11029
11030         ac_cv_lib_dld_dld_link=no
11031 fi
11032
11033 rm -f core conftest.err conftest.$ac_objext \
11034       conftest$ac_exeext conftest.$ac_ext
11035 LIBS=$ac_check_lib_save_LIBS
11036 fi
11037 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11038 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11039 if test $ac_cv_lib_dld_dld_link = yes; then
11040
11041 cat >>confdefs.h <<\_ACEOF
11042 #define HAVE_DLD 1
11043 _ACEOF
11044
11045                 LIBADD_DL="$LIBADD_DL -ldld"
11046 else
11047   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11048 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11049 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11050   echo $ECHO_N "(cached) $ECHO_C" >&6
11051 else
11052   cat >conftest.$ac_ext <<_ACEOF
11053 /* confdefs.h.  */
11054 _ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h.  */
11058 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11060 #define _dyld_func_lookup innocuous__dyld_func_lookup
11061
11062 /* System header to define __stub macros and hopefully few prototypes,
11063     which can conflict with char _dyld_func_lookup (); below.
11064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11065     <limits.h> exists even on freestanding compilers.  */
11066
11067 #ifdef __STDC__
11068 # include <limits.h>
11069 #else
11070 # include <assert.h>
11071 #endif
11072
11073 #undef _dyld_func_lookup
11074
11075 /* Override any GCC internal prototype to avoid an error.
11076    Use char because int might match the return type of a GCC
11077    builtin and then its argument prototype would still apply.  */
11078 #ifdef __cplusplus
11079 extern "C"
11080 #endif
11081 char _dyld_func_lookup ();
11082 /* The GNU C library defines this for functions which it implements
11083     to always fail with ENOSYS.  Some functions are actually named
11084     something starting with __ and the normal name is an alias.  */
11085 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11086 choke me
11087 #endif
11088
11089 int
11090 main ()
11091 {
11092 return _dyld_func_lookup ();
11093   ;
11094   return 0;
11095 }
11096 _ACEOF
11097 rm -f conftest.$ac_objext conftest$ac_exeext
11098 if { (ac_try="$ac_link"
11099 case "(($ac_try" in
11100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101   *) ac_try_echo=$ac_try;;
11102 esac
11103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104   (eval "$ac_link") 2>conftest.er1
11105   ac_status=$?
11106   grep -v '^ *+' conftest.er1 >conftest.err
11107   rm -f conftest.er1
11108   cat conftest.err >&5
11109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110   (exit $ac_status); } &&
11111          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11112   { (case "(($ac_try" in
11113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114   *) ac_try_echo=$ac_try;;
11115 esac
11116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117   (eval "$ac_try") 2>&5
11118   ac_status=$?
11119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); }; } &&
11121          { ac_try='test -s conftest$ac_exeext'
11122   { (case "(($ac_try" in
11123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124   *) ac_try_echo=$ac_try;;
11125 esac
11126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11127   (eval "$ac_try") 2>&5
11128   ac_status=$?
11129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130   (exit $ac_status); }; }; then
11131   ac_cv_func__dyld_func_lookup=yes
11132 else
11133   echo "$as_me: failed program was:" >&5
11134 sed 's/^/| /' conftest.$ac_ext >&5
11135
11136         ac_cv_func__dyld_func_lookup=no
11137 fi
11138
11139 rm -f core conftest.err conftest.$ac_objext \
11140       conftest$ac_exeext conftest.$ac_ext
11141 fi
11142 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11143 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11144 if test $ac_cv_func__dyld_func_lookup = yes; then
11145
11146 cat >>confdefs.h <<\_ACEOF
11147 #define HAVE_DYLD 1
11148 _ACEOF
11149
11150 fi
11151
11152
11153 fi
11154
11155
11156 fi
11157
11158
11159 fi
11160
11161 rm -f core conftest.err conftest.$ac_objext \
11162       conftest$ac_exeext conftest.$ac_ext
11163
11164 fi
11165
11166
11167 fi
11168
11169
11170 fi
11171
11172
11173 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11174 then
11175   lt_save_LIBS="$LIBS"
11176   LIBS="$LIBS $LIBADD_DL"
11177
11178 for ac_func in dlerror
11179 do
11180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11184   echo $ECHO_N "(cached) $ECHO_C" >&6
11185 else
11186   cat >conftest.$ac_ext <<_ACEOF
11187 /* confdefs.h.  */
11188 _ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h.  */
11192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11194 #define $ac_func innocuous_$ac_func
11195
11196 /* System header to define __stub macros and hopefully few prototypes,
11197     which can conflict with char $ac_func (); below.
11198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11199     <limits.h> exists even on freestanding compilers.  */
11200
11201 #ifdef __STDC__
11202 # include <limits.h>
11203 #else
11204 # include <assert.h>
11205 #endif
11206
11207 #undef $ac_func
11208
11209 /* Override any GCC internal prototype to avoid an error.
11210    Use char because int might match the return type of a GCC
11211    builtin and then its argument prototype would still apply.  */
11212 #ifdef __cplusplus
11213 extern "C"
11214 #endif
11215 char $ac_func ();
11216 /* The GNU C library defines this for functions which it implements
11217     to always fail with ENOSYS.  Some functions are actually named
11218     something starting with __ and the normal name is an alias.  */
11219 #if defined __stub_$ac_func || defined __stub___$ac_func
11220 choke me
11221 #endif
11222
11223 int
11224 main ()
11225 {
11226 return $ac_func ();
11227   ;
11228   return 0;
11229 }
11230 _ACEOF
11231 rm -f conftest.$ac_objext conftest$ac_exeext
11232 if { (ac_try="$ac_link"
11233 case "(($ac_try" in
11234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235   *) ac_try_echo=$ac_try;;
11236 esac
11237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238   (eval "$ac_link") 2>conftest.er1
11239   ac_status=$?
11240   grep -v '^ *+' conftest.er1 >conftest.err
11241   rm -f conftest.er1
11242   cat conftest.err >&5
11243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244   (exit $ac_status); } &&
11245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11246   { (case "(($ac_try" in
11247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11248   *) ac_try_echo=$ac_try;;
11249 esac
11250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11251   (eval "$ac_try") 2>&5
11252   ac_status=$?
11253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254   (exit $ac_status); }; } &&
11255          { ac_try='test -s conftest$ac_exeext'
11256   { (case "(($ac_try" in
11257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258   *) ac_try_echo=$ac_try;;
11259 esac
11260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261   (eval "$ac_try") 2>&5
11262   ac_status=$?
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); }; }; then
11265   eval "$as_ac_var=yes"
11266 else
11267   echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11269
11270         eval "$as_ac_var=no"
11271 fi
11272
11273 rm -f core conftest.err conftest.$ac_objext \
11274       conftest$ac_exeext conftest.$ac_ext
11275 fi
11276 ac_res=`eval echo '${'$as_ac_var'}'`
11277                { echo "$as_me:$LINENO: result: $ac_res" >&5
11278 echo "${ECHO_T}$ac_res" >&6; }
11279 if test `eval echo '${'$as_ac_var'}'` = yes; then
11280   cat >>confdefs.h <<_ACEOF
11281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11282 _ACEOF
11283
11284 fi
11285 done
11286
11287   LIBS="$lt_save_LIBS"
11288 fi
11289 ac_ext=c
11290 ac_cpp='$CPP $CPPFLAGS'
11291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11294
11295
11296
11297 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11298 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11299 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11300   echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302   ac_cv_sys_symbol_underscore=no
11303   cat > conftest.$ac_ext <<EOF
11304 void nm_test_func(){}
11305 int main(){nm_test_func;return 0;}
11306 EOF
11307   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11308   (eval $ac_compile) 2>&5
11309   ac_status=$?
11310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311   (exit $ac_status); }; then
11312     # Now try to grab the symbols.
11313     ac_nlist=conftest.nm
11314     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11315   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11316   ac_status=$?
11317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318   (exit $ac_status); } && test -s "$ac_nlist"; then
11319       # See whether the symbols have a leading underscore.
11320       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11321         ac_cv_sys_symbol_underscore=yes
11322       else
11323         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11324           :
11325         else
11326           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11327         fi
11328       fi
11329     else
11330       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11331     fi
11332   else
11333     echo "configure: failed program was:" >&5
11334     cat conftest.c >&5
11335   fi
11336   rm -rf conftest*
11337
11338 fi
11339 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11340 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11341
11342
11343 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11344   if test x"$libltdl_cv_func_dlopen" = xyes ||
11345      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11346         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11347 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11348 if test "${libltdl_cv_need_uscore+set}" = set; then
11349   echo $ECHO_N "(cached) $ECHO_C" >&6
11350 else
11351   libltdl_cv_need_uscore=unknown
11352           save_LIBS="$LIBS"
11353           LIBS="$LIBS $LIBADD_DL"
11354           if test "$cross_compiling" = yes; then :
11355   libltdl_cv_need_uscore=cross
11356 else
11357   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11358   lt_status=$lt_dlunknown
11359   cat > conftest.$ac_ext <<EOF
11360 #line 11360 "configure"
11361 #include "confdefs.h"
11362
11363 #if HAVE_DLFCN_H
11364 #include <dlfcn.h>
11365 #endif
11366
11367 #include <stdio.h>
11368
11369 #ifdef RTLD_GLOBAL
11370 #  define LT_DLGLOBAL           RTLD_GLOBAL
11371 #else
11372 #  ifdef DL_GLOBAL
11373 #    define LT_DLGLOBAL         DL_GLOBAL
11374 #  else
11375 #    define LT_DLGLOBAL         0
11376 #  endif
11377 #endif
11378
11379 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11380    find out it does not work in some platform. */
11381 #ifndef LT_DLLAZY_OR_NOW
11382 #  ifdef RTLD_LAZY
11383 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11384 #  else
11385 #    ifdef DL_LAZY
11386 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11387 #    else
11388 #      ifdef RTLD_NOW
11389 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11390 #      else
11391 #        ifdef DL_NOW
11392 #          define LT_DLLAZY_OR_NOW      DL_NOW
11393 #        else
11394 #          define LT_DLLAZY_OR_NOW      0
11395 #        endif
11396 #      endif
11397 #    endif
11398 #  endif
11399 #endif
11400
11401 #ifdef __cplusplus
11402 extern "C" void exit (int);
11403 #endif
11404
11405 void fnord() { int i=42;}
11406 int main ()
11407 {
11408   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11409   int status = $lt_dlunknown;
11410
11411   if (self)
11412     {
11413       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11414       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11415       /* dlclose (self); */
11416     }
11417   else
11418     puts (dlerror ());
11419
11420     exit (status);
11421 }
11422 EOF
11423   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11424   (eval $ac_link) 2>&5
11425   ac_status=$?
11426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11428     (./conftest; exit; ) >&5 2>/dev/null
11429     lt_status=$?
11430     case x$lt_status in
11431       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11432       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11433       x$lt_dlunknown|x*)  ;;
11434     esac
11435   else :
11436     # compilation failed
11437
11438   fi
11439 fi
11440 rm -fr conftest*
11441
11442           LIBS="$save_LIBS"
11443
11444 fi
11445 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11446 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11447   fi
11448 fi
11449
11450 if test x"$libltdl_cv_need_uscore" = xyes; then
11451
11452 cat >>confdefs.h <<\_ACEOF
11453 #define NEED_USCORE 1
11454 _ACEOF
11455
11456 fi
11457
11458
11459 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11460 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11461 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11462   echo $ECHO_N "(cached) $ECHO_C" >&6
11463 else
11464   # PORTME does your system automatically load deplibs for dlopen?
11465   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11466   # For now, we just catch OSes we know something about -- in the
11467   # future, we'll try test this programmatically.
11468   libltdl_cv_sys_dlopen_deplibs=unknown
11469   case "$host_os" in
11470   aix3*|aix4.1.*|aix4.2.*)
11471     # Unknown whether this is true for these versions of AIX, but
11472     # we want this `case' here to explicitly catch those versions.
11473     libltdl_cv_sys_dlopen_deplibs=unknown
11474     ;;
11475   aix[45]*)
11476     libltdl_cv_sys_dlopen_deplibs=yes
11477     ;;
11478   darwin*)
11479     # Assuming the user has installed a libdl from somewhere, this is true
11480     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11481     libltdl_cv_sys_dlopen_deplibs=yes
11482     ;;
11483   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11484     # GNU and its variants, using gnu ld.so (Glibc)
11485     libltdl_cv_sys_dlopen_deplibs=yes
11486     ;;
11487   hpux10*|hpux11*)
11488     libltdl_cv_sys_dlopen_deplibs=yes
11489     ;;
11490   interix*)
11491     libltdl_cv_sys_dlopen_deplibs=yes
11492     ;;
11493   irix[12345]*|irix6.[01]*)
11494     # Catch all versions of IRIX before 6.2, and indicate that we don't
11495     # know how it worked for any of those versions.
11496     libltdl_cv_sys_dlopen_deplibs=unknown
11497     ;;
11498   irix*)
11499     # The case above catches anything before 6.2, and it's known that
11500     # at 6.2 and later dlopen does load deplibs.
11501     libltdl_cv_sys_dlopen_deplibs=yes
11502     ;;
11503   netbsd*)
11504     libltdl_cv_sys_dlopen_deplibs=yes
11505     ;;
11506   openbsd*)
11507     libltdl_cv_sys_dlopen_deplibs=yes
11508     ;;
11509   osf[1234]*)
11510     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11511     # it did *not* use an RPATH in a shared library to find objects the
11512     # library depends on, so we explictly say `no'.
11513     libltdl_cv_sys_dlopen_deplibs=no
11514     ;;
11515   osf5.0|osf5.0a|osf5.1)
11516     # dlopen *does* load deplibs and with the right loader patch applied
11517     # it even uses RPATH in a shared library to search for shared objects
11518     # that the library depends on, but there's no easy way to know if that
11519     # patch is installed.  Since this is the case, all we can really
11520     # say is unknown -- it depends on the patch being installed.  If
11521     # it is, this changes to `yes'.  Without it, it would be `no'.
11522     libltdl_cv_sys_dlopen_deplibs=unknown
11523     ;;
11524   osf*)
11525     # the two cases above should catch all versions of osf <= 5.1.  Read
11526     # the comments above for what we know about them.
11527     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11528     # is used to find them so we can finally say `yes'.
11529     libltdl_cv_sys_dlopen_deplibs=yes
11530     ;;
11531   solaris*)
11532     libltdl_cv_sys_dlopen_deplibs=yes
11533     ;;
11534   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11535     libltdl_cv_sys_dlopen_deplibs=yes
11536     ;;
11537   esac
11538
11539 fi
11540 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11541 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11542 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11543
11544 cat >>confdefs.h <<\_ACEOF
11545 #define LTDL_DLOPEN_DEPLIBS 1
11546 _ACEOF
11547
11548 fi
11549
11550
11551 for ac_header in argz.h
11552 do
11553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11555   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11558   echo $ECHO_N "(cached) $ECHO_C" >&6
11559 fi
11560 ac_res=`eval echo '${'$as_ac_Header'}'`
11561                { echo "$as_me:$LINENO: result: $ac_res" >&5
11562 echo "${ECHO_T}$ac_res" >&6; }
11563 else
11564   # Is the header compilable?
11565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11567 cat >conftest.$ac_ext <<_ACEOF
11568 /* confdefs.h.  */
11569 _ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h.  */
11573 $ac_includes_default
11574 #include <$ac_header>
11575 _ACEOF
11576 rm -f conftest.$ac_objext
11577 if { (ac_try="$ac_compile"
11578 case "(($ac_try" in
11579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580   *) ac_try_echo=$ac_try;;
11581 esac
11582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583   (eval "$ac_compile") 2>conftest.er1
11584   ac_status=$?
11585   grep -v '^ *+' conftest.er1 >conftest.err
11586   rm -f conftest.er1
11587   cat conftest.err >&5
11588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589   (exit $ac_status); } &&
11590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11591   { (case "(($ac_try" in
11592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593   *) ac_try_echo=$ac_try;;
11594 esac
11595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11596   (eval "$ac_try") 2>&5
11597   ac_status=$?
11598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599   (exit $ac_status); }; } &&
11600          { ac_try='test -s conftest.$ac_objext'
11601   { (case "(($ac_try" in
11602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603   *) ac_try_echo=$ac_try;;
11604 esac
11605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11606   (eval "$ac_try") 2>&5
11607   ac_status=$?
11608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609   (exit $ac_status); }; }; then
11610   ac_header_compiler=yes
11611 else
11612   echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11614
11615         ac_header_compiler=no
11616 fi
11617
11618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11620 echo "${ECHO_T}$ac_header_compiler" >&6; }
11621
11622 # Is the header present?
11623 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11625 cat >conftest.$ac_ext <<_ACEOF
11626 /* confdefs.h.  */
11627 _ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h.  */
11631 #include <$ac_header>
11632 _ACEOF
11633 if { (ac_try="$ac_cpp conftest.$ac_ext"
11634 case "(($ac_try" in
11635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11636   *) ac_try_echo=$ac_try;;
11637 esac
11638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11640   ac_status=$?
11641   grep -v '^ *+' conftest.er1 >conftest.err
11642   rm -f conftest.er1
11643   cat conftest.err >&5
11644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645   (exit $ac_status); } >/dev/null; then
11646   if test -s conftest.err; then
11647     ac_cpp_err=$ac_c_preproc_warn_flag
11648     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11649   else
11650     ac_cpp_err=
11651   fi
11652 else
11653   ac_cpp_err=yes
11654 fi
11655 if test -z "$ac_cpp_err"; then
11656   ac_header_preproc=yes
11657 else
11658   echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11660
11661   ac_header_preproc=no
11662 fi
11663
11664 rm -f conftest.err conftest.$ac_ext
11665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11666 echo "${ECHO_T}$ac_header_preproc" >&6; }
11667
11668 # So?  What about this header?
11669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11670   yes:no: )
11671     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11675     ac_header_preproc=yes
11676     ;;
11677   no:yes:* )
11678     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11680     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11681 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11682     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11684     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11685 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11686     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11688     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11690     ( cat <<\_ASBOX
11691 ## ----------------------------------- ##
11692 ## Report this to llvmbugs@cs.uiuc.edu ##
11693 ## ----------------------------------- ##
11694 _ASBOX
11695      ) | sed "s/^/$as_me: WARNING:     /" >&2
11696     ;;
11697 esac
11698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11701   echo $ECHO_N "(cached) $ECHO_C" >&6
11702 else
11703   eval "$as_ac_Header=\$ac_header_preproc"
11704 fi
11705 ac_res=`eval echo '${'$as_ac_Header'}'`
11706                { echo "$as_me:$LINENO: result: $ac_res" >&5
11707 echo "${ECHO_T}$ac_res" >&6; }
11708
11709 fi
11710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11711   cat >>confdefs.h <<_ACEOF
11712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11713 _ACEOF
11714
11715 fi
11716
11717 done
11718
11719
11720 { echo "$as_me:$LINENO: checking for error_t" >&5
11721 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11722 if test "${ac_cv_type_error_t+set}" = set; then
11723   echo $ECHO_N "(cached) $ECHO_C" >&6
11724 else
11725   cat >conftest.$ac_ext <<_ACEOF
11726 /* confdefs.h.  */
11727 _ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h.  */
11731 #if HAVE_ARGZ_H
11732 #  include <argz.h>
11733 #endif
11734
11735 typedef error_t ac__type_new_;
11736 int
11737 main ()
11738 {
11739 if ((ac__type_new_ *) 0)
11740   return 0;
11741 if (sizeof (ac__type_new_))
11742   return 0;
11743   ;
11744   return 0;
11745 }
11746 _ACEOF
11747 rm -f conftest.$ac_objext
11748 if { (ac_try="$ac_compile"
11749 case "(($ac_try" in
11750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751   *) ac_try_echo=$ac_try;;
11752 esac
11753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754   (eval "$ac_compile") 2>conftest.er1
11755   ac_status=$?
11756   grep -v '^ *+' conftest.er1 >conftest.err
11757   rm -f conftest.er1
11758   cat conftest.err >&5
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); } &&
11761          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11762   { (case "(($ac_try" in
11763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764   *) ac_try_echo=$ac_try;;
11765 esac
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767   (eval "$ac_try") 2>&5
11768   ac_status=$?
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); }; } &&
11771          { ac_try='test -s conftest.$ac_objext'
11772   { (case "(($ac_try" in
11773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774   *) ac_try_echo=$ac_try;;
11775 esac
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777   (eval "$ac_try") 2>&5
11778   ac_status=$?
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); }; }; then
11781   ac_cv_type_error_t=yes
11782 else
11783   echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11785
11786         ac_cv_type_error_t=no
11787 fi
11788
11789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11790 fi
11791 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11792 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11793 if test $ac_cv_type_error_t = yes; then
11794
11795 cat >>confdefs.h <<_ACEOF
11796 #define HAVE_ERROR_T 1
11797 _ACEOF
11798
11799
11800 else
11801
11802 cat >>confdefs.h <<\_ACEOF
11803 #define error_t int
11804 _ACEOF
11805
11806 fi
11807
11808
11809
11810
11811
11812
11813
11814 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11815 do
11816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11820   echo $ECHO_N "(cached) $ECHO_C" >&6
11821 else
11822   cat >conftest.$ac_ext <<_ACEOF
11823 /* confdefs.h.  */
11824 _ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h.  */
11828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11830 #define $ac_func innocuous_$ac_func
11831
11832 /* System header to define __stub macros and hopefully few prototypes,
11833     which can conflict with char $ac_func (); below.
11834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11835     <limits.h> exists even on freestanding compilers.  */
11836
11837 #ifdef __STDC__
11838 # include <limits.h>
11839 #else
11840 # include <assert.h>
11841 #endif
11842
11843 #undef $ac_func
11844
11845 /* Override any GCC internal prototype to avoid an error.
11846    Use char because int might match the return type of a GCC
11847    builtin and then its argument prototype would still apply.  */
11848 #ifdef __cplusplus
11849 extern "C"
11850 #endif
11851 char $ac_func ();
11852 /* The GNU C library defines this for functions which it implements
11853     to always fail with ENOSYS.  Some functions are actually named
11854     something starting with __ and the normal name is an alias.  */
11855 #if defined __stub_$ac_func || defined __stub___$ac_func
11856 choke me
11857 #endif
11858
11859 int
11860 main ()
11861 {
11862 return $ac_func ();
11863   ;
11864   return 0;
11865 }
11866 _ACEOF
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (ac_try="$ac_link"
11869 case "(($ac_try" in
11870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871   *) ac_try_echo=$ac_try;;
11872 esac
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874   (eval "$ac_link") 2>conftest.er1
11875   ac_status=$?
11876   grep -v '^ *+' conftest.er1 >conftest.err
11877   rm -f conftest.er1
11878   cat conftest.err >&5
11879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880   (exit $ac_status); } &&
11881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882   { (case "(($ac_try" in
11883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884   *) ac_try_echo=$ac_try;;
11885 esac
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887   (eval "$ac_try") 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); }; } &&
11891          { ac_try='test -s conftest$ac_exeext'
11892   { (case "(($ac_try" in
11893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894   *) ac_try_echo=$ac_try;;
11895 esac
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897   (eval "$ac_try") 2>&5
11898   ac_status=$?
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); }; }; then
11901   eval "$as_ac_var=yes"
11902 else
11903   echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11905
11906         eval "$as_ac_var=no"
11907 fi
11908
11909 rm -f core conftest.err conftest.$ac_objext \
11910       conftest$ac_exeext conftest.$ac_ext
11911 fi
11912 ac_res=`eval echo '${'$as_ac_var'}'`
11913                { echo "$as_me:$LINENO: result: $ac_res" >&5
11914 echo "${ECHO_T}$ac_res" >&6; }
11915 if test `eval echo '${'$as_ac_var'}'` = yes; then
11916   cat >>confdefs.h <<_ACEOF
11917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11918 _ACEOF
11919
11920 fi
11921 done
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11951                   stdio.h unistd.h
11952 do
11953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11955   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11958   echo $ECHO_N "(cached) $ECHO_C" >&6
11959 fi
11960 ac_res=`eval echo '${'$as_ac_Header'}'`
11961                { echo "$as_me:$LINENO: result: $ac_res" >&5
11962 echo "${ECHO_T}$ac_res" >&6; }
11963 else
11964   # Is the header compilable?
11965 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11967 cat >conftest.$ac_ext <<_ACEOF
11968 /* confdefs.h.  */
11969 _ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h.  */
11973 $ac_includes_default
11974 #include <$ac_header>
11975 _ACEOF
11976 rm -f conftest.$ac_objext
11977 if { (ac_try="$ac_compile"
11978 case "(($ac_try" in
11979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980   *) ac_try_echo=$ac_try;;
11981 esac
11982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983   (eval "$ac_compile") 2>conftest.er1
11984   ac_status=$?
11985   grep -v '^ *+' conftest.er1 >conftest.err
11986   rm -f conftest.er1
11987   cat conftest.err >&5
11988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989   (exit $ac_status); } &&
11990          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11991   { (case "(($ac_try" in
11992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993   *) ac_try_echo=$ac_try;;
11994 esac
11995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996   (eval "$ac_try") 2>&5
11997   ac_status=$?
11998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999   (exit $ac_status); }; } &&
12000          { ac_try='test -s conftest.$ac_objext'
12001   { (case "(($ac_try" in
12002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003   *) ac_try_echo=$ac_try;;
12004 esac
12005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006   (eval "$ac_try") 2>&5
12007   ac_status=$?
12008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009   (exit $ac_status); }; }; then
12010   ac_header_compiler=yes
12011 else
12012   echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12014
12015         ac_header_compiler=no
12016 fi
12017
12018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12020 echo "${ECHO_T}$ac_header_compiler" >&6; }
12021
12022 # Is the header present?
12023 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12025 cat >conftest.$ac_ext <<_ACEOF
12026 /* confdefs.h.  */
12027 _ACEOF
12028 cat confdefs.h >>conftest.$ac_ext
12029 cat >>conftest.$ac_ext <<_ACEOF
12030 /* end confdefs.h.  */
12031 #include <$ac_header>
12032 _ACEOF
12033 if { (ac_try="$ac_cpp conftest.$ac_ext"
12034 case "(($ac_try" in
12035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036   *) ac_try_echo=$ac_try;;
12037 esac
12038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12040   ac_status=$?
12041   grep -v '^ *+' conftest.er1 >conftest.err
12042   rm -f conftest.er1
12043   cat conftest.err >&5
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); } >/dev/null; then
12046   if test -s conftest.err; then
12047     ac_cpp_err=$ac_c_preproc_warn_flag
12048     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12049   else
12050     ac_cpp_err=
12051   fi
12052 else
12053   ac_cpp_err=yes
12054 fi
12055 if test -z "$ac_cpp_err"; then
12056   ac_header_preproc=yes
12057 else
12058   echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12060
12061   ac_header_preproc=no
12062 fi
12063
12064 rm -f conftest.err conftest.$ac_ext
12065 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12066 echo "${ECHO_T}$ac_header_preproc" >&6; }
12067
12068 # So?  What about this header?
12069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12070   yes:no: )
12071     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12073     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12074 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12075     ac_header_preproc=yes
12076     ;;
12077   no:yes:* )
12078     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12080     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12081 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12082     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12083 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12084     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12085 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12086     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12088     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12089 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12090     ( cat <<\_ASBOX
12091 ## ----------------------------------- ##
12092 ## Report this to llvmbugs@cs.uiuc.edu ##
12093 ## ----------------------------------- ##
12094 _ASBOX
12095      ) | sed "s/^/$as_me: WARNING:     /" >&2
12096     ;;
12097 esac
12098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12101   echo $ECHO_N "(cached) $ECHO_C" >&6
12102 else
12103   eval "$as_ac_Header=\$ac_header_preproc"
12104 fi
12105 ac_res=`eval echo '${'$as_ac_Header'}'`
12106                { echo "$as_me:$LINENO: result: $ac_res" >&5
12107 echo "${ECHO_T}$ac_res" >&6; }
12108
12109 fi
12110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12111   cat >>confdefs.h <<_ACEOF
12112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12113 _ACEOF
12114
12115 fi
12116
12117 done
12118
12119
12120
12121
12122
12123 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12124 do
12125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12127   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12130   echo $ECHO_N "(cached) $ECHO_C" >&6
12131 fi
12132 ac_res=`eval echo '${'$as_ac_Header'}'`
12133                { echo "$as_me:$LINENO: result: $ac_res" >&5
12134 echo "${ECHO_T}$ac_res" >&6; }
12135 else
12136   # Is the header compilable?
12137 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12139 cat >conftest.$ac_ext <<_ACEOF
12140 /* confdefs.h.  */
12141 _ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h.  */
12145 $ac_includes_default
12146 #include <$ac_header>
12147 _ACEOF
12148 rm -f conftest.$ac_objext
12149 if { (ac_try="$ac_compile"
12150 case "(($ac_try" in
12151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152   *) ac_try_echo=$ac_try;;
12153 esac
12154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155   (eval "$ac_compile") 2>conftest.er1
12156   ac_status=$?
12157   grep -v '^ *+' conftest.er1 >conftest.err
12158   rm -f conftest.er1
12159   cat conftest.err >&5
12160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161   (exit $ac_status); } &&
12162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12163   { (case "(($ac_try" in
12164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165   *) ac_try_echo=$ac_try;;
12166 esac
12167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168   (eval "$ac_try") 2>&5
12169   ac_status=$?
12170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171   (exit $ac_status); }; } &&
12172          { ac_try='test -s conftest.$ac_objext'
12173   { (case "(($ac_try" in
12174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175   *) ac_try_echo=$ac_try;;
12176 esac
12177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178   (eval "$ac_try") 2>&5
12179   ac_status=$?
12180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181   (exit $ac_status); }; }; then
12182   ac_header_compiler=yes
12183 else
12184   echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12186
12187         ac_header_compiler=no
12188 fi
12189
12190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12191 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12192 echo "${ECHO_T}$ac_header_compiler" >&6; }
12193
12194 # Is the header present?
12195 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12197 cat >conftest.$ac_ext <<_ACEOF
12198 /* confdefs.h.  */
12199 _ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h.  */
12203 #include <$ac_header>
12204 _ACEOF
12205 if { (ac_try="$ac_cpp conftest.$ac_ext"
12206 case "(($ac_try" in
12207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208   *) ac_try_echo=$ac_try;;
12209 esac
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12212   ac_status=$?
12213   grep -v '^ *+' conftest.er1 >conftest.err
12214   rm -f conftest.er1
12215   cat conftest.err >&5
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); } >/dev/null; then
12218   if test -s conftest.err; then
12219     ac_cpp_err=$ac_c_preproc_warn_flag
12220     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12221   else
12222     ac_cpp_err=
12223   fi
12224 else
12225   ac_cpp_err=yes
12226 fi
12227 if test -z "$ac_cpp_err"; then
12228   ac_header_preproc=yes
12229 else
12230   echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12232
12233   ac_header_preproc=no
12234 fi
12235
12236 rm -f conftest.err conftest.$ac_ext
12237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12238 echo "${ECHO_T}$ac_header_preproc" >&6; }
12239
12240 # So?  What about this header?
12241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12242   yes:no: )
12243     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12245     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12247     ac_header_preproc=yes
12248     ;;
12249   no:yes:* )
12250     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12252     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12253 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12254     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12256     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12257 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12260     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12262     ( cat <<\_ASBOX
12263 ## ----------------------------------- ##
12264 ## Report this to llvmbugs@cs.uiuc.edu ##
12265 ## ----------------------------------- ##
12266 _ASBOX
12267      ) | sed "s/^/$as_me: WARNING:     /" >&2
12268     ;;
12269 esac
12270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12273   echo $ECHO_N "(cached) $ECHO_C" >&6
12274 else
12275   eval "$as_ac_Header=\$ac_header_preproc"
12276 fi
12277 ac_res=`eval echo '${'$as_ac_Header'}'`
12278                { echo "$as_me:$LINENO: result: $ac_res" >&5
12279 echo "${ECHO_T}$ac_res" >&6; }
12280
12281 fi
12282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12283   cat >>confdefs.h <<_ACEOF
12284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12285 _ACEOF
12286
12287 fi
12288
12289 done
12290
12291
12292
12293 for ac_header in string.h strings.h
12294 do
12295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12297   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12300   echo $ECHO_N "(cached) $ECHO_C" >&6
12301 fi
12302 ac_res=`eval echo '${'$as_ac_Header'}'`
12303                { echo "$as_me:$LINENO: result: $ac_res" >&5
12304 echo "${ECHO_T}$ac_res" >&6; }
12305 else
12306   # Is the header compilable?
12307 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12309 cat >conftest.$ac_ext <<_ACEOF
12310 /* confdefs.h.  */
12311 _ACEOF
12312 cat confdefs.h >>conftest.$ac_ext
12313 cat >>conftest.$ac_ext <<_ACEOF
12314 /* end confdefs.h.  */
12315 $ac_includes_default
12316 #include <$ac_header>
12317 _ACEOF
12318 rm -f conftest.$ac_objext
12319 if { (ac_try="$ac_compile"
12320 case "(($ac_try" in
12321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322   *) ac_try_echo=$ac_try;;
12323 esac
12324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325   (eval "$ac_compile") 2>conftest.er1
12326   ac_status=$?
12327   grep -v '^ *+' conftest.er1 >conftest.err
12328   rm -f conftest.er1
12329   cat conftest.err >&5
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); } &&
12332          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12333   { (case "(($ac_try" in
12334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335   *) ac_try_echo=$ac_try;;
12336 esac
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338   (eval "$ac_try") 2>&5
12339   ac_status=$?
12340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341   (exit $ac_status); }; } &&
12342          { ac_try='test -s conftest.$ac_objext'
12343   { (case "(($ac_try" in
12344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345   *) ac_try_echo=$ac_try;;
12346 esac
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348   (eval "$ac_try") 2>&5
12349   ac_status=$?
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); }; }; then
12352   ac_header_compiler=yes
12353 else
12354   echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12356
12357         ac_header_compiler=no
12358 fi
12359
12360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12362 echo "${ECHO_T}$ac_header_compiler" >&6; }
12363
12364 # Is the header present?
12365 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12367 cat >conftest.$ac_ext <<_ACEOF
12368 /* confdefs.h.  */
12369 _ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h.  */
12373 #include <$ac_header>
12374 _ACEOF
12375 if { (ac_try="$ac_cpp conftest.$ac_ext"
12376 case "(($ac_try" in
12377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378   *) ac_try_echo=$ac_try;;
12379 esac
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12382   ac_status=$?
12383   grep -v '^ *+' conftest.er1 >conftest.err
12384   rm -f conftest.er1
12385   cat conftest.err >&5
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); } >/dev/null; then
12388   if test -s conftest.err; then
12389     ac_cpp_err=$ac_c_preproc_warn_flag
12390     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12391   else
12392     ac_cpp_err=
12393   fi
12394 else
12395   ac_cpp_err=yes
12396 fi
12397 if test -z "$ac_cpp_err"; then
12398   ac_header_preproc=yes
12399 else
12400   echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12402
12403   ac_header_preproc=no
12404 fi
12405
12406 rm -f conftest.err conftest.$ac_ext
12407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12408 echo "${ECHO_T}$ac_header_preproc" >&6; }
12409
12410 # So?  What about this header?
12411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12412   yes:no: )
12413     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12417     ac_header_preproc=yes
12418     ;;
12419   no:yes:* )
12420     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12422     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12423 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12424     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12426     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12427 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12430     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12432     ( cat <<\_ASBOX
12433 ## ----------------------------------- ##
12434 ## Report this to llvmbugs@cs.uiuc.edu ##
12435 ## ----------------------------------- ##
12436 _ASBOX
12437      ) | sed "s/^/$as_me: WARNING:     /" >&2
12438     ;;
12439 esac
12440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12443   echo $ECHO_N "(cached) $ECHO_C" >&6
12444 else
12445   eval "$as_ac_Header=\$ac_header_preproc"
12446 fi
12447 ac_res=`eval echo '${'$as_ac_Header'}'`
12448                { echo "$as_me:$LINENO: result: $ac_res" >&5
12449 echo "${ECHO_T}$ac_res" >&6; }
12450
12451 fi
12452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12453   cat >>confdefs.h <<_ACEOF
12454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12455 _ACEOF
12456  break
12457 fi
12458
12459 done
12460
12461
12462
12463
12464 for ac_func in strchr index
12465 do
12466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12470   echo $ECHO_N "(cached) $ECHO_C" >&6
12471 else
12472   cat >conftest.$ac_ext <<_ACEOF
12473 /* confdefs.h.  */
12474 _ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h.  */
12478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12480 #define $ac_func innocuous_$ac_func
12481
12482 /* System header to define __stub macros and hopefully few prototypes,
12483     which can conflict with char $ac_func (); below.
12484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12485     <limits.h> exists even on freestanding compilers.  */
12486
12487 #ifdef __STDC__
12488 # include <limits.h>
12489 #else
12490 # include <assert.h>
12491 #endif
12492
12493 #undef $ac_func
12494
12495 /* Override any GCC internal prototype to avoid an error.
12496    Use char because int might match the return type of a GCC
12497    builtin and then its argument prototype would still apply.  */
12498 #ifdef __cplusplus
12499 extern "C"
12500 #endif
12501 char $ac_func ();
12502 /* The GNU C library defines this for functions which it implements
12503     to always fail with ENOSYS.  Some functions are actually named
12504     something starting with __ and the normal name is an alias.  */
12505 #if defined __stub_$ac_func || defined __stub___$ac_func
12506 choke me
12507 #endif
12508
12509 int
12510 main ()
12511 {
12512 return $ac_func ();
12513   ;
12514   return 0;
12515 }
12516 _ACEOF
12517 rm -f conftest.$ac_objext conftest$ac_exeext
12518 if { (ac_try="$ac_link"
12519 case "(($ac_try" in
12520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521   *) ac_try_echo=$ac_try;;
12522 esac
12523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524   (eval "$ac_link") 2>conftest.er1
12525   ac_status=$?
12526   grep -v '^ *+' conftest.er1 >conftest.err
12527   rm -f conftest.er1
12528   cat conftest.err >&5
12529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530   (exit $ac_status); } &&
12531          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12532   { (case "(($ac_try" in
12533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534   *) ac_try_echo=$ac_try;;
12535 esac
12536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537   (eval "$ac_try") 2>&5
12538   ac_status=$?
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); }; } &&
12541          { ac_try='test -s conftest$ac_exeext'
12542   { (case "(($ac_try" in
12543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544   *) ac_try_echo=$ac_try;;
12545 esac
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547   (eval "$ac_try") 2>&5
12548   ac_status=$?
12549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550   (exit $ac_status); }; }; then
12551   eval "$as_ac_var=yes"
12552 else
12553   echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12555
12556         eval "$as_ac_var=no"
12557 fi
12558
12559 rm -f core conftest.err conftest.$ac_objext \
12560       conftest$ac_exeext conftest.$ac_ext
12561 fi
12562 ac_res=`eval echo '${'$as_ac_var'}'`
12563                { echo "$as_me:$LINENO: result: $ac_res" >&5
12564 echo "${ECHO_T}$ac_res" >&6; }
12565 if test `eval echo '${'$as_ac_var'}'` = yes; then
12566   cat >>confdefs.h <<_ACEOF
12567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12568 _ACEOF
12569  break
12570 fi
12571 done
12572
12573
12574
12575 for ac_func in strrchr rindex
12576 do
12577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12578 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12580 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12581   echo $ECHO_N "(cached) $ECHO_C" >&6
12582 else
12583   cat >conftest.$ac_ext <<_ACEOF
12584 /* confdefs.h.  */
12585 _ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h.  */
12589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12590    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12591 #define $ac_func innocuous_$ac_func
12592
12593 /* System header to define __stub macros and hopefully few prototypes,
12594     which can conflict with char $ac_func (); below.
12595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12596     <limits.h> exists even on freestanding compilers.  */
12597
12598 #ifdef __STDC__
12599 # include <limits.h>
12600 #else
12601 # include <assert.h>
12602 #endif
12603
12604 #undef $ac_func
12605
12606 /* Override any GCC internal prototype to avoid an error.
12607    Use char because int might match the return type of a GCC
12608    builtin and then its argument prototype would still apply.  */
12609 #ifdef __cplusplus
12610 extern "C"
12611 #endif
12612 char $ac_func ();
12613 /* The GNU C library defines this for functions which it implements
12614     to always fail with ENOSYS.  Some functions are actually named
12615     something starting with __ and the normal name is an alias.  */
12616 #if defined __stub_$ac_func || defined __stub___$ac_func
12617 choke me
12618 #endif
12619
12620 int
12621 main ()
12622 {
12623 return $ac_func ();
12624   ;
12625   return 0;
12626 }
12627 _ACEOF
12628 rm -f conftest.$ac_objext conftest$ac_exeext
12629 if { (ac_try="$ac_link"
12630 case "(($ac_try" in
12631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632   *) ac_try_echo=$ac_try;;
12633 esac
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635   (eval "$ac_link") 2>conftest.er1
12636   ac_status=$?
12637   grep -v '^ *+' conftest.er1 >conftest.err
12638   rm -f conftest.er1
12639   cat conftest.err >&5
12640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641   (exit $ac_status); } &&
12642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12643   { (case "(($ac_try" in
12644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645   *) ac_try_echo=$ac_try;;
12646 esac
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648   (eval "$ac_try") 2>&5
12649   ac_status=$?
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); }; } &&
12652          { ac_try='test -s conftest$ac_exeext'
12653   { (case "(($ac_try" in
12654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655   *) ac_try_echo=$ac_try;;
12656 esac
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658   (eval "$ac_try") 2>&5
12659   ac_status=$?
12660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661   (exit $ac_status); }; }; then
12662   eval "$as_ac_var=yes"
12663 else
12664   echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12666
12667         eval "$as_ac_var=no"
12668 fi
12669
12670 rm -f core conftest.err conftest.$ac_objext \
12671       conftest$ac_exeext conftest.$ac_ext
12672 fi
12673 ac_res=`eval echo '${'$as_ac_var'}'`
12674                { echo "$as_me:$LINENO: result: $ac_res" >&5
12675 echo "${ECHO_T}$ac_res" >&6; }
12676 if test `eval echo '${'$as_ac_var'}'` = yes; then
12677   cat >>confdefs.h <<_ACEOF
12678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12679 _ACEOF
12680  break
12681 fi
12682 done
12683
12684
12685
12686 for ac_func in memcpy bcopy
12687 do
12688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12689 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12691 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12692   echo $ECHO_N "(cached) $ECHO_C" >&6
12693 else
12694   cat >conftest.$ac_ext <<_ACEOF
12695 /* confdefs.h.  */
12696 _ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h.  */
12700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12701    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12702 #define $ac_func innocuous_$ac_func
12703
12704 /* System header to define __stub macros and hopefully few prototypes,
12705     which can conflict with char $ac_func (); below.
12706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12707     <limits.h> exists even on freestanding compilers.  */
12708
12709 #ifdef __STDC__
12710 # include <limits.h>
12711 #else
12712 # include <assert.h>
12713 #endif
12714
12715 #undef $ac_func
12716
12717 /* Override any GCC internal prototype to avoid an error.
12718    Use char because int might match the return type of a GCC
12719    builtin and then its argument prototype would still apply.  */
12720 #ifdef __cplusplus
12721 extern "C"
12722 #endif
12723 char $ac_func ();
12724 /* The GNU C library defines this for functions which it implements
12725     to always fail with ENOSYS.  Some functions are actually named
12726     something starting with __ and the normal name is an alias.  */
12727 #if defined __stub_$ac_func || defined __stub___$ac_func
12728 choke me
12729 #endif
12730
12731 int
12732 main ()
12733 {
12734 return $ac_func ();
12735   ;
12736   return 0;
12737 }
12738 _ACEOF
12739 rm -f conftest.$ac_objext conftest$ac_exeext
12740 if { (ac_try="$ac_link"
12741 case "(($ac_try" in
12742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743   *) ac_try_echo=$ac_try;;
12744 esac
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746   (eval "$ac_link") 2>conftest.er1
12747   ac_status=$?
12748   grep -v '^ *+' conftest.er1 >conftest.err
12749   rm -f conftest.er1
12750   cat conftest.err >&5
12751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752   (exit $ac_status); } &&
12753          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12754   { (case "(($ac_try" in
12755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12756   *) ac_try_echo=$ac_try;;
12757 esac
12758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12759   (eval "$ac_try") 2>&5
12760   ac_status=$?
12761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762   (exit $ac_status); }; } &&
12763          { ac_try='test -s conftest$ac_exeext'
12764   { (case "(($ac_try" in
12765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766   *) ac_try_echo=$ac_try;;
12767 esac
12768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769   (eval "$ac_try") 2>&5
12770   ac_status=$?
12771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772   (exit $ac_status); }; }; then
12773   eval "$as_ac_var=yes"
12774 else
12775   echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12777
12778         eval "$as_ac_var=no"
12779 fi
12780
12781 rm -f core conftest.err conftest.$ac_objext \
12782       conftest$ac_exeext conftest.$ac_ext
12783 fi
12784 ac_res=`eval echo '${'$as_ac_var'}'`
12785                { echo "$as_me:$LINENO: result: $ac_res" >&5
12786 echo "${ECHO_T}$ac_res" >&6; }
12787 if test `eval echo '${'$as_ac_var'}'` = yes; then
12788   cat >>confdefs.h <<_ACEOF
12789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12790 _ACEOF
12791  break
12792 fi
12793 done
12794
12795
12796
12797 for ac_func in memmove strcmp
12798 do
12799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12803   echo $ECHO_N "(cached) $ECHO_C" >&6
12804 else
12805   cat >conftest.$ac_ext <<_ACEOF
12806 /* confdefs.h.  */
12807 _ACEOF
12808 cat confdefs.h >>conftest.$ac_ext
12809 cat >>conftest.$ac_ext <<_ACEOF
12810 /* end confdefs.h.  */
12811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12813 #define $ac_func innocuous_$ac_func
12814
12815 /* System header to define __stub macros and hopefully few prototypes,
12816     which can conflict with char $ac_func (); below.
12817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12818     <limits.h> exists even on freestanding compilers.  */
12819
12820 #ifdef __STDC__
12821 # include <limits.h>
12822 #else
12823 # include <assert.h>
12824 #endif
12825
12826 #undef $ac_func
12827
12828 /* Override any GCC internal prototype to avoid an error.
12829    Use char because int might match the return type of a GCC
12830    builtin and then its argument prototype would still apply.  */
12831 #ifdef __cplusplus
12832 extern "C"
12833 #endif
12834 char $ac_func ();
12835 /* The GNU C library defines this for functions which it implements
12836     to always fail with ENOSYS.  Some functions are actually named
12837     something starting with __ and the normal name is an alias.  */
12838 #if defined __stub_$ac_func || defined __stub___$ac_func
12839 choke me
12840 #endif
12841
12842 int
12843 main ()
12844 {
12845 return $ac_func ();
12846   ;
12847   return 0;
12848 }
12849 _ACEOF
12850 rm -f conftest.$ac_objext conftest$ac_exeext
12851 if { (ac_try="$ac_link"
12852 case "(($ac_try" in
12853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854   *) ac_try_echo=$ac_try;;
12855 esac
12856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857   (eval "$ac_link") 2>conftest.er1
12858   ac_status=$?
12859   grep -v '^ *+' conftest.er1 >conftest.err
12860   rm -f conftest.er1
12861   cat conftest.err >&5
12862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863   (exit $ac_status); } &&
12864          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12865   { (case "(($ac_try" in
12866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12867   *) ac_try_echo=$ac_try;;
12868 esac
12869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12870   (eval "$ac_try") 2>&5
12871   ac_status=$?
12872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873   (exit $ac_status); }; } &&
12874          { ac_try='test -s conftest$ac_exeext'
12875   { (case "(($ac_try" in
12876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877   *) ac_try_echo=$ac_try;;
12878 esac
12879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880   (eval "$ac_try") 2>&5
12881   ac_status=$?
12882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883   (exit $ac_status); }; }; then
12884   eval "$as_ac_var=yes"
12885 else
12886   echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.$ac_ext >&5
12888
12889         eval "$as_ac_var=no"
12890 fi
12891
12892 rm -f core conftest.err conftest.$ac_objext \
12893       conftest$ac_exeext conftest.$ac_ext
12894 fi
12895 ac_res=`eval echo '${'$as_ac_var'}'`
12896                { echo "$as_me:$LINENO: result: $ac_res" >&5
12897 echo "${ECHO_T}$ac_res" >&6; }
12898 if test `eval echo '${'$as_ac_var'}'` = yes; then
12899   cat >>confdefs.h <<_ACEOF
12900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12901 _ACEOF
12902
12903 fi
12904 done
12905
12906
12907
12908
12909 for ac_func in closedir opendir readdir
12910 do
12911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12912 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12914 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12915   echo $ECHO_N "(cached) $ECHO_C" >&6
12916 else
12917   cat >conftest.$ac_ext <<_ACEOF
12918 /* confdefs.h.  */
12919 _ACEOF
12920 cat confdefs.h >>conftest.$ac_ext
12921 cat >>conftest.$ac_ext <<_ACEOF
12922 /* end confdefs.h.  */
12923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12925 #define $ac_func innocuous_$ac_func
12926
12927 /* System header to define __stub macros and hopefully few prototypes,
12928     which can conflict with char $ac_func (); below.
12929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12930     <limits.h> exists even on freestanding compilers.  */
12931
12932 #ifdef __STDC__
12933 # include <limits.h>
12934 #else
12935 # include <assert.h>
12936 #endif
12937
12938 #undef $ac_func
12939
12940 /* Override any GCC internal prototype to avoid an error.
12941    Use char because int might match the return type of a GCC
12942    builtin and then its argument prototype would still apply.  */
12943 #ifdef __cplusplus
12944 extern "C"
12945 #endif
12946 char $ac_func ();
12947 /* The GNU C library defines this for functions which it implements
12948     to always fail with ENOSYS.  Some functions are actually named
12949     something starting with __ and the normal name is an alias.  */
12950 #if defined __stub_$ac_func || defined __stub___$ac_func
12951 choke me
12952 #endif
12953
12954 int
12955 main ()
12956 {
12957 return $ac_func ();
12958   ;
12959   return 0;
12960 }
12961 _ACEOF
12962 rm -f conftest.$ac_objext conftest$ac_exeext
12963 if { (ac_try="$ac_link"
12964 case "(($ac_try" in
12965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966   *) ac_try_echo=$ac_try;;
12967 esac
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969   (eval "$ac_link") 2>conftest.er1
12970   ac_status=$?
12971   grep -v '^ *+' conftest.er1 >conftest.err
12972   rm -f conftest.er1
12973   cat conftest.err >&5
12974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975   (exit $ac_status); } &&
12976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12977   { (case "(($ac_try" in
12978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979   *) ac_try_echo=$ac_try;;
12980 esac
12981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982   (eval "$ac_try") 2>&5
12983   ac_status=$?
12984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985   (exit $ac_status); }; } &&
12986          { ac_try='test -s conftest$ac_exeext'
12987   { (case "(($ac_try" in
12988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989   *) ac_try_echo=$ac_try;;
12990 esac
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992   (eval "$ac_try") 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); }; }; then
12996   eval "$as_ac_var=yes"
12997 else
12998   echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13000
13001         eval "$as_ac_var=no"
13002 fi
13003
13004 rm -f core conftest.err conftest.$ac_objext \
13005       conftest$ac_exeext conftest.$ac_ext
13006 fi
13007 ac_res=`eval echo '${'$as_ac_var'}'`
13008                { echo "$as_me:$LINENO: result: $ac_res" >&5
13009 echo "${ECHO_T}$ac_res" >&6; }
13010 if test `eval echo '${'$as_ac_var'}'` = yes; then
13011   cat >>confdefs.h <<_ACEOF
13012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13013 _ACEOF
13014
13015 fi
13016 done
13017
13018
13019
13020 if test "$WITH_LLVMGCCDIR" = "default" ; then
13021   LLVMGCC="llvm-gcc${EXEEXT}"
13022   LLVMGXX="llvm-g++${EXEEXT}"
13023   LLVMGCCCOMMAND="$LLVMGCC"
13024   LLVMGXXCOMMAND="$LLVMGXX"
13025   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13026
13027   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13028
13029   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13030 set dummy $LLVMGCC; ac_word=$2
13031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13033 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13034   echo $ECHO_N "(cached) $ECHO_C" >&6
13035 else
13036   case $LLVMGCC in
13037   [\\/]* | ?:[\\/]*)
13038   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13039   ;;
13040   *)
13041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13042 for as_dir in $PATH
13043 do
13044   IFS=$as_save_IFS
13045   test -z "$as_dir" && as_dir=.
13046   for ac_exec_ext in '' $ac_executable_extensions; do
13047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13048     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13050     break 2
13051   fi
13052 done
13053 done
13054 IFS=$as_save_IFS
13055
13056   ;;
13057 esac
13058 fi
13059 LLVMGCC=$ac_cv_path_LLVMGCC
13060 if test -n "$LLVMGCC"; then
13061   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13062 echo "${ECHO_T}$LLVMGCC" >&6; }
13063 else
13064   { echo "$as_me:$LINENO: result: no" >&5
13065 echo "${ECHO_T}no" >&6; }
13066 fi
13067
13068
13069   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13070 set dummy $LLVMGXX; ac_word=$2
13071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13073 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13074   echo $ECHO_N "(cached) $ECHO_C" >&6
13075 else
13076   case $LLVMGXX in
13077   [\\/]* | ?:[\\/]*)
13078   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13079   ;;
13080   *)
13081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13082 for as_dir in $PATH
13083 do
13084   IFS=$as_save_IFS
13085   test -z "$as_dir" && as_dir=.
13086   for ac_exec_ext in '' $ac_executable_extensions; do
13087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13088     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13090     break 2
13091   fi
13092 done
13093 done
13094 IFS=$as_save_IFS
13095
13096   ;;
13097 esac
13098 fi
13099 LLVMGXX=$ac_cv_path_LLVMGXX
13100 if test -n "$LLVMGXX"; then
13101   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13102 echo "${ECHO_T}$LLVMGXX" >&6; }
13103 else
13104   { echo "$as_me:$LINENO: result: no" >&5
13105 echo "${ECHO_T}no" >&6; }
13106 fi
13107
13108
13109 else
13110   if test -z "$LLVMGCC"; then
13111     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13112     LLVMGCCCOMMAND="$LLVMGCC"
13113   fi
13114   if test -z "$LLVMGXX"; then
13115     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13116     LLVMGXXCOMMAND="$LLVMGXX"
13117   fi
13118
13119   LLVMGCC=$LLVMGCC
13120
13121   LLVMGXX=$LLVMGXX
13122
13123   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13124
13125   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13126
13127 fi
13128
13129
13130 # Check whether --with-llvmcc was given.
13131 if test "${with_llvmcc+set}" = set; then
13132   withval=$with_llvmcc;
13133 else
13134   with_llvmcc=check
13135 fi
13136
13137 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13138 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13139 if test "$with_llvmcc" != "check"; then
13140    if (test "$with_llvmcc" != "llvm-gcc" &&
13141        test "$with_llvmcc" != "clang" &&
13142        test "$with_llvmcc" != "none"); then
13143       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13144 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13145    { (exit 1); exit 1; }; }
13146    fi
13147    WITH_LLVMCC="$with_llvmcc"
13148 elif test -n "$LLVMGCC"; then
13149    WITH_LLVMCC=llvm-gcc
13150 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13151    WITH_LLVMCC=clang
13152 else
13153    WITH_LLVMCC=none
13154 fi
13155 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13156 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13157 LLVMCC_OPTION=$WITH_LLVMCC
13158
13159
13160 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13161 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13162
13163 ICC=no
13164 IXX=no
13165 case $CC in
13166   icc*|icpc*)
13167     ICC=yes
13168     IXX=yes
13169     ;;
13170    *)
13171     ;;
13172 esac
13173
13174 if test "$GCC" != "yes" && test "$ICC" != "yes"
13175 then
13176   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13177 echo "$as_me: error: gcc|icc required but not found" >&2;}
13178    { (exit 1); exit 1; }; }
13179 fi
13180
13181 if test "$GXX" != "yes" && test "$IXX" != "yes"
13182 then
13183   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13184 echo "$as_me: error: g++|icc required but not found" >&2;}
13185    { (exit 1); exit 1; }; }
13186 fi
13187
13188 if test "$GCC" = "yes"
13189 then
13190   cat >conftest.$ac_ext <<_ACEOF
13191 #if !defined(__GNUC__) || __GNUC__ < 3
13192 #error Unsupported GCC version
13193 #endif
13194
13195 _ACEOF
13196 rm -f conftest.$ac_objext
13197 if { (ac_try="$ac_compile"
13198 case "(($ac_try" in
13199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200   *) ac_try_echo=$ac_try;;
13201 esac
13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203   (eval "$ac_compile") 2>conftest.er1
13204   ac_status=$?
13205   grep -v '^ *+' conftest.er1 >conftest.err
13206   rm -f conftest.er1
13207   cat conftest.err >&5
13208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209   (exit $ac_status); } &&
13210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13211   { (case "(($ac_try" in
13212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213   *) ac_try_echo=$ac_try;;
13214 esac
13215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216   (eval "$ac_try") 2>&5
13217   ac_status=$?
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); }; } &&
13220          { ac_try='test -s conftest.$ac_objext'
13221   { (case "(($ac_try" in
13222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223   *) ac_try_echo=$ac_try;;
13224 esac
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226   (eval "$ac_try") 2>&5
13227   ac_status=$?
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); }; }; then
13230   :
13231 else
13232   echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13234
13235         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13236 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13237    { (exit 1); exit 1; }; }
13238 fi
13239
13240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13241 fi
13242
13243 if test -z "$llvm_cv_gnu_make_command"
13244 then
13245   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13246 echo "$as_me: error: GNU Make required but not found" >&2;}
13247    { (exit 1); exit 1; }; }
13248 fi
13249
13250 { echo "$as_me:$LINENO: result: ok" >&5
13251 echo "${ECHO_T}ok" >&6; }
13252
13253 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13254 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13255 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13256
13257 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13258
13259 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13260 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13261
13262
13263
13264 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13265 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13266 if test "${ac_cv_lib_m_sin+set}" = set; then
13267   echo $ECHO_N "(cached) $ECHO_C" >&6
13268 else
13269   ac_check_lib_save_LIBS=$LIBS
13270 LIBS="-lm  $LIBS"
13271 cat >conftest.$ac_ext <<_ACEOF
13272 /* confdefs.h.  */
13273 _ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h.  */
13277
13278 /* Override any GCC internal prototype to avoid an error.
13279    Use char because int might match the return type of a GCC
13280    builtin and then its argument prototype would still apply.  */
13281 #ifdef __cplusplus
13282 extern "C"
13283 #endif
13284 char sin ();
13285 int
13286 main ()
13287 {
13288 return sin ();
13289   ;
13290   return 0;
13291 }
13292 _ACEOF
13293 rm -f conftest.$ac_objext conftest$ac_exeext
13294 if { (ac_try="$ac_link"
13295 case "(($ac_try" in
13296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297   *) ac_try_echo=$ac_try;;
13298 esac
13299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300   (eval "$ac_link") 2>conftest.er1
13301   ac_status=$?
13302   grep -v '^ *+' conftest.er1 >conftest.err
13303   rm -f conftest.er1
13304   cat conftest.err >&5
13305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306   (exit $ac_status); } &&
13307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13308   { (case "(($ac_try" in
13309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310   *) ac_try_echo=$ac_try;;
13311 esac
13312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313   (eval "$ac_try") 2>&5
13314   ac_status=$?
13315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316   (exit $ac_status); }; } &&
13317          { ac_try='test -s conftest$ac_exeext'
13318   { (case "(($ac_try" in
13319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320   *) ac_try_echo=$ac_try;;
13321 esac
13322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13323   (eval "$ac_try") 2>&5
13324   ac_status=$?
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); }; }; then
13327   ac_cv_lib_m_sin=yes
13328 else
13329   echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13331
13332         ac_cv_lib_m_sin=no
13333 fi
13334
13335 rm -f core conftest.err conftest.$ac_objext \
13336       conftest$ac_exeext conftest.$ac_ext
13337 LIBS=$ac_check_lib_save_LIBS
13338 fi
13339 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13340 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13341 if test $ac_cv_lib_m_sin = yes; then
13342   cat >>confdefs.h <<_ACEOF
13343 #define HAVE_LIBM 1
13344 _ACEOF
13345
13346   LIBS="-lm $LIBS"
13347
13348 fi
13349
13350 if test "$llvm_cv_os_type" = "MingW" ; then
13351
13352 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13353 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13354 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13355   echo $ECHO_N "(cached) $ECHO_C" >&6
13356 else
13357   ac_check_lib_save_LIBS=$LIBS
13358 LIBS="-limagehlp  $LIBS"
13359 cat >conftest.$ac_ext <<_ACEOF
13360 /* confdefs.h.  */
13361 _ACEOF
13362 cat confdefs.h >>conftest.$ac_ext
13363 cat >>conftest.$ac_ext <<_ACEOF
13364 /* end confdefs.h.  */
13365
13366
13367 int
13368 main ()
13369 {
13370 return main ();
13371   ;
13372   return 0;
13373 }
13374 _ACEOF
13375 rm -f conftest.$ac_objext conftest$ac_exeext
13376 if { (ac_try="$ac_link"
13377 case "(($ac_try" in
13378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379   *) ac_try_echo=$ac_try;;
13380 esac
13381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13382   (eval "$ac_link") 2>conftest.er1
13383   ac_status=$?
13384   grep -v '^ *+' conftest.er1 >conftest.err
13385   rm -f conftest.er1
13386   cat conftest.err >&5
13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); } &&
13389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13390   { (case "(($ac_try" in
13391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392   *) ac_try_echo=$ac_try;;
13393 esac
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395   (eval "$ac_try") 2>&5
13396   ac_status=$?
13397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398   (exit $ac_status); }; } &&
13399          { ac_try='test -s conftest$ac_exeext'
13400   { (case "(($ac_try" in
13401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402   *) ac_try_echo=$ac_try;;
13403 esac
13404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405   (eval "$ac_try") 2>&5
13406   ac_status=$?
13407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408   (exit $ac_status); }; }; then
13409   ac_cv_lib_imagehlp_main=yes
13410 else
13411   echo "$as_me: failed program was:" >&5
13412 sed 's/^/| /' conftest.$ac_ext >&5
13413
13414         ac_cv_lib_imagehlp_main=no
13415 fi
13416
13417 rm -f core conftest.err conftest.$ac_objext \
13418       conftest$ac_exeext conftest.$ac_ext
13419 LIBS=$ac_check_lib_save_LIBS
13420 fi
13421 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13422 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13423 if test $ac_cv_lib_imagehlp_main = yes; then
13424   cat >>confdefs.h <<_ACEOF
13425 #define HAVE_LIBIMAGEHLP 1
13426 _ACEOF
13427
13428   LIBS="-limagehlp $LIBS"
13429
13430 fi
13431
13432
13433 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13434 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13435 if test "${ac_cv_lib_psapi_main+set}" = set; then
13436   echo $ECHO_N "(cached) $ECHO_C" >&6
13437 else
13438   ac_check_lib_save_LIBS=$LIBS
13439 LIBS="-lpsapi  $LIBS"
13440 cat >conftest.$ac_ext <<_ACEOF
13441 /* confdefs.h.  */
13442 _ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h.  */
13446
13447
13448 int
13449 main ()
13450 {
13451 return main ();
13452   ;
13453   return 0;
13454 }
13455 _ACEOF
13456 rm -f conftest.$ac_objext conftest$ac_exeext
13457 if { (ac_try="$ac_link"
13458 case "(($ac_try" in
13459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460   *) ac_try_echo=$ac_try;;
13461 esac
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463   (eval "$ac_link") 2>conftest.er1
13464   ac_status=$?
13465   grep -v '^ *+' conftest.er1 >conftest.err
13466   rm -f conftest.er1
13467   cat conftest.err >&5
13468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469   (exit $ac_status); } &&
13470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13471   { (case "(($ac_try" in
13472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473   *) ac_try_echo=$ac_try;;
13474 esac
13475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476   (eval "$ac_try") 2>&5
13477   ac_status=$?
13478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479   (exit $ac_status); }; } &&
13480          { ac_try='test -s conftest$ac_exeext'
13481   { (case "(($ac_try" in
13482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13483   *) ac_try_echo=$ac_try;;
13484 esac
13485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13486   (eval "$ac_try") 2>&5
13487   ac_status=$?
13488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489   (exit $ac_status); }; }; then
13490   ac_cv_lib_psapi_main=yes
13491 else
13492   echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13494
13495         ac_cv_lib_psapi_main=no
13496 fi
13497
13498 rm -f core conftest.err conftest.$ac_objext \
13499       conftest$ac_exeext conftest.$ac_ext
13500 LIBS=$ac_check_lib_save_LIBS
13501 fi
13502 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13503 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13504 if test $ac_cv_lib_psapi_main = yes; then
13505   cat >>confdefs.h <<_ACEOF
13506 #define HAVE_LIBPSAPI 1
13507 _ACEOF
13508
13509   LIBS="-lpsapi $LIBS"
13510
13511 fi
13512
13513 fi
13514
13515 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13516 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13517 if test "${ac_cv_search_dlopen+set}" = set; then
13518   echo $ECHO_N "(cached) $ECHO_C" >&6
13519 else
13520   ac_func_search_save_LIBS=$LIBS
13521 cat >conftest.$ac_ext <<_ACEOF
13522 /* confdefs.h.  */
13523 _ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h.  */
13527
13528 /* Override any GCC internal prototype to avoid an error.
13529    Use char because int might match the return type of a GCC
13530    builtin and then its argument prototype would still apply.  */
13531 #ifdef __cplusplus
13532 extern "C"
13533 #endif
13534 char dlopen ();
13535 int
13536 main ()
13537 {
13538 return dlopen ();
13539   ;
13540   return 0;
13541 }
13542 _ACEOF
13543 for ac_lib in '' dl; do
13544   if test -z "$ac_lib"; then
13545     ac_res="none required"
13546   else
13547     ac_res=-l$ac_lib
13548     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13549   fi
13550   rm -f conftest.$ac_objext conftest$ac_exeext
13551 if { (ac_try="$ac_link"
13552 case "(($ac_try" in
13553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554   *) ac_try_echo=$ac_try;;
13555 esac
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557   (eval "$ac_link") 2>conftest.er1
13558   ac_status=$?
13559   grep -v '^ *+' conftest.er1 >conftest.err
13560   rm -f conftest.er1
13561   cat conftest.err >&5
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); } &&
13564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13565   { (case "(($ac_try" in
13566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567   *) ac_try_echo=$ac_try;;
13568 esac
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570   (eval "$ac_try") 2>&5
13571   ac_status=$?
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); }; } &&
13574          { ac_try='test -s conftest$ac_exeext'
13575   { (case "(($ac_try" in
13576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577   *) ac_try_echo=$ac_try;;
13578 esac
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580   (eval "$ac_try") 2>&5
13581   ac_status=$?
13582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); }; }; then
13584   ac_cv_search_dlopen=$ac_res
13585 else
13586   echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13588
13589
13590 fi
13591
13592 rm -f core conftest.err conftest.$ac_objext \
13593       conftest$ac_exeext
13594   if test "${ac_cv_search_dlopen+set}" = set; then
13595   break
13596 fi
13597 done
13598 if test "${ac_cv_search_dlopen+set}" = set; then
13599   :
13600 else
13601   ac_cv_search_dlopen=no
13602 fi
13603 rm conftest.$ac_ext
13604 LIBS=$ac_func_search_save_LIBS
13605 fi
13606 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13607 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13608 ac_res=$ac_cv_search_dlopen
13609 if test "$ac_res" != no; then
13610   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13611
13612 cat >>confdefs.h <<\_ACEOF
13613 #define HAVE_DLOPEN 1
13614 _ACEOF
13615
13616 else
13617   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13618 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13619 fi
13620
13621
13622 if test "$llvm_cv_enable_libffi" = "yes" ; then
13623   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13624 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13625 if test "${ac_cv_search_ffi_call+set}" = set; then
13626   echo $ECHO_N "(cached) $ECHO_C" >&6
13627 else
13628   ac_func_search_save_LIBS=$LIBS
13629 cat >conftest.$ac_ext <<_ACEOF
13630 /* confdefs.h.  */
13631 _ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h.  */
13635
13636 /* Override any GCC internal prototype to avoid an error.
13637    Use char because int might match the return type of a GCC
13638    builtin and then its argument prototype would still apply.  */
13639 #ifdef __cplusplus
13640 extern "C"
13641 #endif
13642 char ffi_call ();
13643 int
13644 main ()
13645 {
13646 return ffi_call ();
13647   ;
13648   return 0;
13649 }
13650 _ACEOF
13651 for ac_lib in '' ffi; do
13652   if test -z "$ac_lib"; then
13653     ac_res="none required"
13654   else
13655     ac_res=-l$ac_lib
13656     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13657   fi
13658   rm -f conftest.$ac_objext conftest$ac_exeext
13659 if { (ac_try="$ac_link"
13660 case "(($ac_try" in
13661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13662   *) ac_try_echo=$ac_try;;
13663 esac
13664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13665   (eval "$ac_link") 2>conftest.er1
13666   ac_status=$?
13667   grep -v '^ *+' conftest.er1 >conftest.err
13668   rm -f conftest.er1
13669   cat conftest.err >&5
13670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); } &&
13672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13673   { (case "(($ac_try" in
13674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13675   *) ac_try_echo=$ac_try;;
13676 esac
13677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13678   (eval "$ac_try") 2>&5
13679   ac_status=$?
13680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681   (exit $ac_status); }; } &&
13682          { ac_try='test -s conftest$ac_exeext'
13683   { (case "(($ac_try" in
13684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685   *) ac_try_echo=$ac_try;;
13686 esac
13687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13688   (eval "$ac_try") 2>&5
13689   ac_status=$?
13690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691   (exit $ac_status); }; }; then
13692   ac_cv_search_ffi_call=$ac_res
13693 else
13694   echo "$as_me: failed program was:" >&5
13695 sed 's/^/| /' conftest.$ac_ext >&5
13696
13697
13698 fi
13699
13700 rm -f core conftest.err conftest.$ac_objext \
13701       conftest$ac_exeext
13702   if test "${ac_cv_search_ffi_call+set}" = set; then
13703   break
13704 fi
13705 done
13706 if test "${ac_cv_search_ffi_call+set}" = set; then
13707   :
13708 else
13709   ac_cv_search_ffi_call=no
13710 fi
13711 rm conftest.$ac_ext
13712 LIBS=$ac_func_search_save_LIBS
13713 fi
13714 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13715 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13716 ac_res=$ac_cv_search_ffi_call
13717 if test "$ac_res" != no; then
13718   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13719
13720 cat >>confdefs.h <<\_ACEOF
13721 #define HAVE_FFI_CALL 1
13722 _ACEOF
13723
13724 else
13725   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13726 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13727    { (exit 1); exit 1; }; }
13728 fi
13729
13730 fi
13731
13732 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13733 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13734 if test "${ac_cv_search_mallinfo+set}" = set; then
13735   echo $ECHO_N "(cached) $ECHO_C" >&6
13736 else
13737   ac_func_search_save_LIBS=$LIBS
13738 cat >conftest.$ac_ext <<_ACEOF
13739 /* confdefs.h.  */
13740 _ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h.  */
13744
13745 /* Override any GCC internal prototype to avoid an error.
13746    Use char because int might match the return type of a GCC
13747    builtin and then its argument prototype would still apply.  */
13748 #ifdef __cplusplus
13749 extern "C"
13750 #endif
13751 char mallinfo ();
13752 int
13753 main ()
13754 {
13755 return mallinfo ();
13756   ;
13757   return 0;
13758 }
13759 _ACEOF
13760 for ac_lib in '' malloc; do
13761   if test -z "$ac_lib"; then
13762     ac_res="none required"
13763   else
13764     ac_res=-l$ac_lib
13765     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13766   fi
13767   rm -f conftest.$ac_objext conftest$ac_exeext
13768 if { (ac_try="$ac_link"
13769 case "(($ac_try" in
13770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13771   *) ac_try_echo=$ac_try;;
13772 esac
13773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13774   (eval "$ac_link") 2>conftest.er1
13775   ac_status=$?
13776   grep -v '^ *+' conftest.er1 >conftest.err
13777   rm -f conftest.er1
13778   cat conftest.err >&5
13779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780   (exit $ac_status); } &&
13781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13782   { (case "(($ac_try" in
13783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13784   *) ac_try_echo=$ac_try;;
13785 esac
13786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13787   (eval "$ac_try") 2>&5
13788   ac_status=$?
13789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790   (exit $ac_status); }; } &&
13791          { ac_try='test -s conftest$ac_exeext'
13792   { (case "(($ac_try" in
13793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794   *) ac_try_echo=$ac_try;;
13795 esac
13796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797   (eval "$ac_try") 2>&5
13798   ac_status=$?
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); }; }; then
13801   ac_cv_search_mallinfo=$ac_res
13802 else
13803   echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13805
13806
13807 fi
13808
13809 rm -f core conftest.err conftest.$ac_objext \
13810       conftest$ac_exeext
13811   if test "${ac_cv_search_mallinfo+set}" = set; then
13812   break
13813 fi
13814 done
13815 if test "${ac_cv_search_mallinfo+set}" = set; then
13816   :
13817 else
13818   ac_cv_search_mallinfo=no
13819 fi
13820 rm conftest.$ac_ext
13821 LIBS=$ac_func_search_save_LIBS
13822 fi
13823 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13824 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13825 ac_res=$ac_cv_search_mallinfo
13826 if test "$ac_res" != no; then
13827   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13828
13829 cat >>confdefs.h <<\_ACEOF
13830 #define HAVE_MALLINFO 1
13831 _ACEOF
13832
13833 fi
13834
13835
13836 if test "$ENABLE_THREADS" -eq 1 ; then
13837
13838 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13839 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13840 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13841   echo $ECHO_N "(cached) $ECHO_C" >&6
13842 else
13843   ac_check_lib_save_LIBS=$LIBS
13844 LIBS="-lpthread  $LIBS"
13845 cat >conftest.$ac_ext <<_ACEOF
13846 /* confdefs.h.  */
13847 _ACEOF
13848 cat confdefs.h >>conftest.$ac_ext
13849 cat >>conftest.$ac_ext <<_ACEOF
13850 /* end confdefs.h.  */
13851
13852 /* Override any GCC internal prototype to avoid an error.
13853    Use char because int might match the return type of a GCC
13854    builtin and then its argument prototype would still apply.  */
13855 #ifdef __cplusplus
13856 extern "C"
13857 #endif
13858 char pthread_mutex_init ();
13859 int
13860 main ()
13861 {
13862 return pthread_mutex_init ();
13863   ;
13864   return 0;
13865 }
13866 _ACEOF
13867 rm -f conftest.$ac_objext conftest$ac_exeext
13868 if { (ac_try="$ac_link"
13869 case "(($ac_try" in
13870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871   *) ac_try_echo=$ac_try;;
13872 esac
13873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13874   (eval "$ac_link") 2>conftest.er1
13875   ac_status=$?
13876   grep -v '^ *+' conftest.er1 >conftest.err
13877   rm -f conftest.er1
13878   cat conftest.err >&5
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); } &&
13881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13882   { (case "(($ac_try" in
13883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884   *) ac_try_echo=$ac_try;;
13885 esac
13886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887   (eval "$ac_try") 2>&5
13888   ac_status=$?
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); }; } &&
13891          { ac_try='test -s conftest$ac_exeext'
13892   { (case "(($ac_try" in
13893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894   *) ac_try_echo=$ac_try;;
13895 esac
13896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897   (eval "$ac_try") 2>&5
13898   ac_status=$?
13899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); }; }; then
13901   ac_cv_lib_pthread_pthread_mutex_init=yes
13902 else
13903   echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13905
13906         ac_cv_lib_pthread_pthread_mutex_init=no
13907 fi
13908
13909 rm -f core conftest.err conftest.$ac_objext \
13910       conftest$ac_exeext conftest.$ac_ext
13911 LIBS=$ac_check_lib_save_LIBS
13912 fi
13913 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13914 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13915 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13916   cat >>confdefs.h <<_ACEOF
13917 #define HAVE_LIBPTHREAD 1
13918 _ACEOF
13919
13920   LIBS="-lpthread $LIBS"
13921
13922 fi
13923
13924   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13925 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13926 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13927   echo $ECHO_N "(cached) $ECHO_C" >&6
13928 else
13929   ac_func_search_save_LIBS=$LIBS
13930 cat >conftest.$ac_ext <<_ACEOF
13931 /* confdefs.h.  */
13932 _ACEOF
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h.  */
13936
13937 /* Override any GCC internal prototype to avoid an error.
13938    Use char because int might match the return type of a GCC
13939    builtin and then its argument prototype would still apply.  */
13940 #ifdef __cplusplus
13941 extern "C"
13942 #endif
13943 char pthread_mutex_lock ();
13944 int
13945 main ()
13946 {
13947 return pthread_mutex_lock ();
13948   ;
13949   return 0;
13950 }
13951 _ACEOF
13952 for ac_lib in '' pthread; do
13953   if test -z "$ac_lib"; then
13954     ac_res="none required"
13955   else
13956     ac_res=-l$ac_lib
13957     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13958   fi
13959   rm -f conftest.$ac_objext conftest$ac_exeext
13960 if { (ac_try="$ac_link"
13961 case "(($ac_try" in
13962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963   *) ac_try_echo=$ac_try;;
13964 esac
13965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966   (eval "$ac_link") 2>conftest.er1
13967   ac_status=$?
13968   grep -v '^ *+' conftest.er1 >conftest.err
13969   rm -f conftest.er1
13970   cat conftest.err >&5
13971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972   (exit $ac_status); } &&
13973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13974   { (case "(($ac_try" in
13975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976   *) ac_try_echo=$ac_try;;
13977 esac
13978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979   (eval "$ac_try") 2>&5
13980   ac_status=$?
13981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982   (exit $ac_status); }; } &&
13983          { ac_try='test -s conftest$ac_exeext'
13984   { (case "(($ac_try" in
13985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986   *) ac_try_echo=$ac_try;;
13987 esac
13988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13989   (eval "$ac_try") 2>&5
13990   ac_status=$?
13991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992   (exit $ac_status); }; }; then
13993   ac_cv_search_pthread_mutex_lock=$ac_res
13994 else
13995   echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13997
13998
13999 fi
14000
14001 rm -f core conftest.err conftest.$ac_objext \
14002       conftest$ac_exeext
14003   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14004   break
14005 fi
14006 done
14007 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14008   :
14009 else
14010   ac_cv_search_pthread_mutex_lock=no
14011 fi
14012 rm conftest.$ac_ext
14013 LIBS=$ac_func_search_save_LIBS
14014 fi
14015 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14016 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14017 ac_res=$ac_cv_search_pthread_mutex_lock
14018 if test "$ac_res" != no; then
14019   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14020
14021 cat >>confdefs.h <<\_ACEOF
14022 #define HAVE_PTHREAD_MUTEX_LOCK 1
14023 _ACEOF
14024
14025 fi
14026
14027   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14028 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14029 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14030   echo $ECHO_N "(cached) $ECHO_C" >&6
14031 else
14032   ac_func_search_save_LIBS=$LIBS
14033 cat >conftest.$ac_ext <<_ACEOF
14034 /* confdefs.h.  */
14035 _ACEOF
14036 cat confdefs.h >>conftest.$ac_ext
14037 cat >>conftest.$ac_ext <<_ACEOF
14038 /* end confdefs.h.  */
14039
14040 /* Override any GCC internal prototype to avoid an error.
14041    Use char because int might match the return type of a GCC
14042    builtin and then its argument prototype would still apply.  */
14043 #ifdef __cplusplus
14044 extern "C"
14045 #endif
14046 char pthread_rwlock_init ();
14047 int
14048 main ()
14049 {
14050 return pthread_rwlock_init ();
14051   ;
14052   return 0;
14053 }
14054 _ACEOF
14055 for ac_lib in '' pthread; do
14056   if test -z "$ac_lib"; then
14057     ac_res="none required"
14058   else
14059     ac_res=-l$ac_lib
14060     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14061   fi
14062   rm -f conftest.$ac_objext conftest$ac_exeext
14063 if { (ac_try="$ac_link"
14064 case "(($ac_try" in
14065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14066   *) ac_try_echo=$ac_try;;
14067 esac
14068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14069   (eval "$ac_link") 2>conftest.er1
14070   ac_status=$?
14071   grep -v '^ *+' conftest.er1 >conftest.err
14072   rm -f conftest.er1
14073   cat conftest.err >&5
14074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075   (exit $ac_status); } &&
14076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14077   { (case "(($ac_try" in
14078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079   *) ac_try_echo=$ac_try;;
14080 esac
14081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082   (eval "$ac_try") 2>&5
14083   ac_status=$?
14084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085   (exit $ac_status); }; } &&
14086          { ac_try='test -s conftest$ac_exeext'
14087   { (case "(($ac_try" in
14088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14089   *) ac_try_echo=$ac_try;;
14090 esac
14091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14092   (eval "$ac_try") 2>&5
14093   ac_status=$?
14094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095   (exit $ac_status); }; }; then
14096   ac_cv_search_pthread_rwlock_init=$ac_res
14097 else
14098   echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14100
14101
14102 fi
14103
14104 rm -f core conftest.err conftest.$ac_objext \
14105       conftest$ac_exeext
14106   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14107   break
14108 fi
14109 done
14110 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14111   :
14112 else
14113   ac_cv_search_pthread_rwlock_init=no
14114 fi
14115 rm conftest.$ac_ext
14116 LIBS=$ac_func_search_save_LIBS
14117 fi
14118 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14119 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14120 ac_res=$ac_cv_search_pthread_rwlock_init
14121 if test "$ac_res" != no; then
14122   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14123
14124 cat >>confdefs.h <<\_ACEOF
14125 #define HAVE_PTHREAD_RWLOCK_INIT 1
14126 _ACEOF
14127
14128 fi
14129
14130   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14131 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14132 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14133   echo $ECHO_N "(cached) $ECHO_C" >&6
14134 else
14135   ac_func_search_save_LIBS=$LIBS
14136 cat >conftest.$ac_ext <<_ACEOF
14137 /* confdefs.h.  */
14138 _ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h.  */
14142
14143 /* Override any GCC internal prototype to avoid an error.
14144    Use char because int might match the return type of a GCC
14145    builtin and then its argument prototype would still apply.  */
14146 #ifdef __cplusplus
14147 extern "C"
14148 #endif
14149 char pthread_getspecific ();
14150 int
14151 main ()
14152 {
14153 return pthread_getspecific ();
14154   ;
14155   return 0;
14156 }
14157 _ACEOF
14158 for ac_lib in '' pthread; do
14159   if test -z "$ac_lib"; then
14160     ac_res="none required"
14161   else
14162     ac_res=-l$ac_lib
14163     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14164   fi
14165   rm -f conftest.$ac_objext conftest$ac_exeext
14166 if { (ac_try="$ac_link"
14167 case "(($ac_try" in
14168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169   *) ac_try_echo=$ac_try;;
14170 esac
14171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172   (eval "$ac_link") 2>conftest.er1
14173   ac_status=$?
14174   grep -v '^ *+' conftest.er1 >conftest.err
14175   rm -f conftest.er1
14176   cat conftest.err >&5
14177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178   (exit $ac_status); } &&
14179          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14180   { (case "(($ac_try" in
14181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182   *) ac_try_echo=$ac_try;;
14183 esac
14184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185   (eval "$ac_try") 2>&5
14186   ac_status=$?
14187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188   (exit $ac_status); }; } &&
14189          { ac_try='test -s conftest$ac_exeext'
14190   { (case "(($ac_try" in
14191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192   *) ac_try_echo=$ac_try;;
14193 esac
14194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14195   (eval "$ac_try") 2>&5
14196   ac_status=$?
14197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198   (exit $ac_status); }; }; then
14199   ac_cv_search_pthread_getspecific=$ac_res
14200 else
14201   echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14203
14204
14205 fi
14206
14207 rm -f core conftest.err conftest.$ac_objext \
14208       conftest$ac_exeext
14209   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14210   break
14211 fi
14212 done
14213 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14214   :
14215 else
14216   ac_cv_search_pthread_getspecific=no
14217 fi
14218 rm conftest.$ac_ext
14219 LIBS=$ac_func_search_save_LIBS
14220 fi
14221 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14222 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14223 ac_res=$ac_cv_search_pthread_getspecific
14224 if test "$ac_res" != no; then
14225   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14226
14227 cat >>confdefs.h <<\_ACEOF
14228 #define HAVE_PTHREAD_GETSPECIFIC 1
14229 _ACEOF
14230
14231 fi
14232
14233 fi
14234
14235
14236 # Check whether --with-udis86 was given.
14237 if test "${with_udis86+set}" = set; then
14238   withval=$with_udis86;
14239       USE_UDIS86=1
14240
14241       case "$withval" in
14242         /usr/lib|yes) ;;
14243         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14244       esac
14245
14246 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14247 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14248 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14249   echo $ECHO_N "(cached) $ECHO_C" >&6
14250 else
14251   ac_check_lib_save_LIBS=$LIBS
14252 LIBS="-ludis86  $LIBS"
14253 cat >conftest.$ac_ext <<_ACEOF
14254 /* confdefs.h.  */
14255 _ACEOF
14256 cat confdefs.h >>conftest.$ac_ext
14257 cat >>conftest.$ac_ext <<_ACEOF
14258 /* end confdefs.h.  */
14259
14260 /* Override any GCC internal prototype to avoid an error.
14261    Use char because int might match the return type of a GCC
14262    builtin and then its argument prototype would still apply.  */
14263 #ifdef __cplusplus
14264 extern "C"
14265 #endif
14266 char ud_init ();
14267 int
14268 main ()
14269 {
14270 return ud_init ();
14271   ;
14272   return 0;
14273 }
14274 _ACEOF
14275 rm -f conftest.$ac_objext conftest$ac_exeext
14276 if { (ac_try="$ac_link"
14277 case "(($ac_try" in
14278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279   *) ac_try_echo=$ac_try;;
14280 esac
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282   (eval "$ac_link") 2>conftest.er1
14283   ac_status=$?
14284   grep -v '^ *+' conftest.er1 >conftest.err
14285   rm -f conftest.er1
14286   cat conftest.err >&5
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); } &&
14289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14290   { (case "(($ac_try" in
14291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292   *) ac_try_echo=$ac_try;;
14293 esac
14294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295   (eval "$ac_try") 2>&5
14296   ac_status=$?
14297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298   (exit $ac_status); }; } &&
14299          { ac_try='test -s conftest$ac_exeext'
14300   { (case "(($ac_try" in
14301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302   *) ac_try_echo=$ac_try;;
14303 esac
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305   (eval "$ac_try") 2>&5
14306   ac_status=$?
14307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308   (exit $ac_status); }; }; then
14309   ac_cv_lib_udis86_ud_init=yes
14310 else
14311   echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14313
14314         ac_cv_lib_udis86_ud_init=no
14315 fi
14316
14317 rm -f core conftest.err conftest.$ac_objext \
14318       conftest$ac_exeext conftest.$ac_ext
14319 LIBS=$ac_check_lib_save_LIBS
14320 fi
14321 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14322 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14323 if test $ac_cv_lib_udis86_ud_init = yes; then
14324   cat >>confdefs.h <<_ACEOF
14325 #define HAVE_LIBUDIS86 1
14326 _ACEOF
14327
14328   LIBS="-ludis86 $LIBS"
14329
14330 else
14331
14332         echo "Error! You need to have libudis86 around."
14333         exit -1
14334
14335 fi
14336
14337
14338 else
14339   USE_UDIS86=0
14340
14341 fi
14342
14343
14344 cat >>confdefs.h <<_ACEOF
14345 #define USE_UDIS86 $USE_UDIS86
14346 _ACEOF
14347
14348
14349
14350 # Check whether --with-oprofile was given.
14351 if test "${with_oprofile+set}" = set; then
14352   withval=$with_oprofile;
14353       USE_OPROFILE=1
14354
14355       case "$withval" in
14356         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14357         no) llvm_cv_oppath=
14358             USE_OPROFILE=0
14359  ;;
14360         *) llvm_cv_oppath="${withval}/lib/oprofile"
14361            CPPFLAGS="-I${withval}/include";;
14362       esac
14363       if test -n "$llvm_cv_oppath" ; then
14364         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14365                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14366 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14367 if test "${ac_cv_search_bfd_init+set}" = set; then
14368   echo $ECHO_N "(cached) $ECHO_C" >&6
14369 else
14370   ac_func_search_save_LIBS=$LIBS
14371 cat >conftest.$ac_ext <<_ACEOF
14372 /* confdefs.h.  */
14373 _ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h.  */
14377
14378 /* Override any GCC internal prototype to avoid an error.
14379    Use char because int might match the return type of a GCC
14380    builtin and then its argument prototype would still apply.  */
14381 #ifdef __cplusplus
14382 extern "C"
14383 #endif
14384 char bfd_init ();
14385 int
14386 main ()
14387 {
14388 return bfd_init ();
14389   ;
14390   return 0;
14391 }
14392 _ACEOF
14393 for ac_lib in '' bfd; do
14394   if test -z "$ac_lib"; then
14395     ac_res="none required"
14396   else
14397     ac_res=-l$ac_lib
14398     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14399   fi
14400   rm -f conftest.$ac_objext conftest$ac_exeext
14401 if { (ac_try="$ac_link"
14402 case "(($ac_try" in
14403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404   *) ac_try_echo=$ac_try;;
14405 esac
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407   (eval "$ac_link") 2>conftest.er1
14408   ac_status=$?
14409   grep -v '^ *+' conftest.er1 >conftest.err
14410   rm -f conftest.er1
14411   cat conftest.err >&5
14412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413   (exit $ac_status); } &&
14414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14415   { (case "(($ac_try" in
14416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14417   *) ac_try_echo=$ac_try;;
14418 esac
14419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14420   (eval "$ac_try") 2>&5
14421   ac_status=$?
14422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423   (exit $ac_status); }; } &&
14424          { ac_try='test -s conftest$ac_exeext'
14425   { (case "(($ac_try" in
14426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427   *) ac_try_echo=$ac_try;;
14428 esac
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430   (eval "$ac_try") 2>&5
14431   ac_status=$?
14432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433   (exit $ac_status); }; }; then
14434   ac_cv_search_bfd_init=$ac_res
14435 else
14436   echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14438
14439
14440 fi
14441
14442 rm -f core conftest.err conftest.$ac_objext \
14443       conftest$ac_exeext
14444   if test "${ac_cv_search_bfd_init+set}" = set; then
14445   break
14446 fi
14447 done
14448 if test "${ac_cv_search_bfd_init+set}" = set; then
14449   :
14450 else
14451   ac_cv_search_bfd_init=no
14452 fi
14453 rm conftest.$ac_ext
14454 LIBS=$ac_func_search_save_LIBS
14455 fi
14456 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14457 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14458 ac_res=$ac_cv_search_bfd_init
14459 if test "$ac_res" != no; then
14460   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14461
14462 fi
14463
14464         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14465 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14466 if test "${ac_cv_search_op_open_agent+set}" = set; then
14467   echo $ECHO_N "(cached) $ECHO_C" >&6
14468 else
14469   ac_func_search_save_LIBS=$LIBS
14470 cat >conftest.$ac_ext <<_ACEOF
14471 /* confdefs.h.  */
14472 _ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h.  */
14476
14477 /* Override any GCC internal prototype to avoid an error.
14478    Use char because int might match the return type of a GCC
14479    builtin and then its argument prototype would still apply.  */
14480 #ifdef __cplusplus
14481 extern "C"
14482 #endif
14483 char op_open_agent ();
14484 int
14485 main ()
14486 {
14487 return op_open_agent ();
14488   ;
14489   return 0;
14490 }
14491 _ACEOF
14492 for ac_lib in '' opagent; do
14493   if test -z "$ac_lib"; then
14494     ac_res="none required"
14495   else
14496     ac_res=-l$ac_lib
14497     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14498   fi
14499   rm -f conftest.$ac_objext conftest$ac_exeext
14500 if { (ac_try="$ac_link"
14501 case "(($ac_try" in
14502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503   *) ac_try_echo=$ac_try;;
14504 esac
14505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14506   (eval "$ac_link") 2>conftest.er1
14507   ac_status=$?
14508   grep -v '^ *+' conftest.er1 >conftest.err
14509   rm -f conftest.er1
14510   cat conftest.err >&5
14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); } &&
14513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14514   { (case "(($ac_try" in
14515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516   *) ac_try_echo=$ac_try;;
14517 esac
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519   (eval "$ac_try") 2>&5
14520   ac_status=$?
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); }; } &&
14523          { ac_try='test -s conftest$ac_exeext'
14524   { (case "(($ac_try" in
14525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526   *) ac_try_echo=$ac_try;;
14527 esac
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529   (eval "$ac_try") 2>&5
14530   ac_status=$?
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); }; }; then
14533   ac_cv_search_op_open_agent=$ac_res
14534 else
14535   echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14537
14538
14539 fi
14540
14541 rm -f core conftest.err conftest.$ac_objext \
14542       conftest$ac_exeext
14543   if test "${ac_cv_search_op_open_agent+set}" = set; then
14544   break
14545 fi
14546 done
14547 if test "${ac_cv_search_op_open_agent+set}" = set; then
14548   :
14549 else
14550   ac_cv_search_op_open_agent=no
14551 fi
14552 rm conftest.$ac_ext
14553 LIBS=$ac_func_search_save_LIBS
14554 fi
14555 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14556 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14557 ac_res=$ac_cv_search_op_open_agent
14558 if test "$ac_res" != no; then
14559   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14560
14561 else
14562
14563           echo "Error! You need to have libopagent around."
14564           exit -1
14565
14566 fi
14567
14568         if test "${ac_cv_header_opagent_h+set}" = set; then
14569   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14570 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14571 if test "${ac_cv_header_opagent_h+set}" = set; then
14572   echo $ECHO_N "(cached) $ECHO_C" >&6
14573 fi
14574 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14575 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14576 else
14577   # Is the header compilable?
14578 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14579 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14580 cat >conftest.$ac_ext <<_ACEOF
14581 /* confdefs.h.  */
14582 _ACEOF
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h.  */
14586 $ac_includes_default
14587 #include <opagent.h>
14588 _ACEOF
14589 rm -f conftest.$ac_objext
14590 if { (ac_try="$ac_compile"
14591 case "(($ac_try" in
14592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593   *) ac_try_echo=$ac_try;;
14594 esac
14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596   (eval "$ac_compile") 2>conftest.er1
14597   ac_status=$?
14598   grep -v '^ *+' conftest.er1 >conftest.err
14599   rm -f conftest.er1
14600   cat conftest.err >&5
14601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602   (exit $ac_status); } &&
14603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14604   { (case "(($ac_try" in
14605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14606   *) ac_try_echo=$ac_try;;
14607 esac
14608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14609   (eval "$ac_try") 2>&5
14610   ac_status=$?
14611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612   (exit $ac_status); }; } &&
14613          { ac_try='test -s conftest.$ac_objext'
14614   { (case "(($ac_try" in
14615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14616   *) ac_try_echo=$ac_try;;
14617 esac
14618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14619   (eval "$ac_try") 2>&5
14620   ac_status=$?
14621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622   (exit $ac_status); }; }; then
14623   ac_header_compiler=yes
14624 else
14625   echo "$as_me: failed program was:" >&5
14626 sed 's/^/| /' conftest.$ac_ext >&5
14627
14628         ac_header_compiler=no
14629 fi
14630
14631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14633 echo "${ECHO_T}$ac_header_compiler" >&6; }
14634
14635 # Is the header present?
14636 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14637 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14638 cat >conftest.$ac_ext <<_ACEOF
14639 /* confdefs.h.  */
14640 _ACEOF
14641 cat confdefs.h >>conftest.$ac_ext
14642 cat >>conftest.$ac_ext <<_ACEOF
14643 /* end confdefs.h.  */
14644 #include <opagent.h>
14645 _ACEOF
14646 if { (ac_try="$ac_cpp conftest.$ac_ext"
14647 case "(($ac_try" in
14648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649   *) ac_try_echo=$ac_try;;
14650 esac
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14653   ac_status=$?
14654   grep -v '^ *+' conftest.er1 >conftest.err
14655   rm -f conftest.er1
14656   cat conftest.err >&5
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); } >/dev/null; then
14659   if test -s conftest.err; then
14660     ac_cpp_err=$ac_c_preproc_warn_flag
14661     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14662   else
14663     ac_cpp_err=
14664   fi
14665 else
14666   ac_cpp_err=yes
14667 fi
14668 if test -z "$ac_cpp_err"; then
14669   ac_header_preproc=yes
14670 else
14671   echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14673
14674   ac_header_preproc=no
14675 fi
14676
14677 rm -f conftest.err conftest.$ac_ext
14678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14679 echo "${ECHO_T}$ac_header_preproc" >&6; }
14680
14681 # So?  What about this header?
14682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14683   yes:no: )
14684     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14685 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14686     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14687 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14688     ac_header_preproc=yes
14689     ;;
14690   no:yes:* )
14691     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14692 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14693     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14694 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14695     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14696 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14697     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14698 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14699     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14700 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14701     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14702 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14703     ( cat <<\_ASBOX
14704 ## ----------------------------------- ##
14705 ## Report this to llvmbugs@cs.uiuc.edu ##
14706 ## ----------------------------------- ##
14707 _ASBOX
14708      ) | sed "s/^/$as_me: WARNING:     /" >&2
14709     ;;
14710 esac
14711 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14712 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14713 if test "${ac_cv_header_opagent_h+set}" = set; then
14714   echo $ECHO_N "(cached) $ECHO_C" >&6
14715 else
14716   ac_cv_header_opagent_h=$ac_header_preproc
14717 fi
14718 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14719 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14720
14721 fi
14722 if test $ac_cv_header_opagent_h = yes; then
14723   :
14724 else
14725
14726           echo "Error! You need to have opagent.h around."
14727           exit -1
14728
14729 fi
14730
14731
14732       fi
14733
14734 else
14735
14736       USE_OPROFILE=0
14737
14738
14739 fi
14740
14741
14742 cat >>confdefs.h <<_ACEOF
14743 #define USE_OPROFILE $USE_OPROFILE
14744 _ACEOF
14745
14746
14747
14748
14749
14750
14751
14752
14753 ac_header_dirent=no
14754 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14755   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14756 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14757 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14759   echo $ECHO_N "(cached) $ECHO_C" >&6
14760 else
14761   cat >conftest.$ac_ext <<_ACEOF
14762 /* confdefs.h.  */
14763 _ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h.  */
14767 #include <sys/types.h>
14768 #include <$ac_hdr>
14769
14770 int
14771 main ()
14772 {
14773 if ((DIR *) 0)
14774 return 0;
14775   ;
14776   return 0;
14777 }
14778 _ACEOF
14779 rm -f conftest.$ac_objext
14780 if { (ac_try="$ac_compile"
14781 case "(($ac_try" in
14782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783   *) ac_try_echo=$ac_try;;
14784 esac
14785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786   (eval "$ac_compile") 2>conftest.er1
14787   ac_status=$?
14788   grep -v '^ *+' conftest.er1 >conftest.err
14789   rm -f conftest.er1
14790   cat conftest.err >&5
14791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792   (exit $ac_status); } &&
14793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14794   { (case "(($ac_try" in
14795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14796   *) ac_try_echo=$ac_try;;
14797 esac
14798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14799   (eval "$ac_try") 2>&5
14800   ac_status=$?
14801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802   (exit $ac_status); }; } &&
14803          { ac_try='test -s conftest.$ac_objext'
14804   { (case "(($ac_try" in
14805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806   *) ac_try_echo=$ac_try;;
14807 esac
14808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809   (eval "$ac_try") 2>&5
14810   ac_status=$?
14811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812   (exit $ac_status); }; }; then
14813   eval "$as_ac_Header=yes"
14814 else
14815   echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14817
14818         eval "$as_ac_Header=no"
14819 fi
14820
14821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14822 fi
14823 ac_res=`eval echo '${'$as_ac_Header'}'`
14824                { echo "$as_me:$LINENO: result: $ac_res" >&5
14825 echo "${ECHO_T}$ac_res" >&6; }
14826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14827   cat >>confdefs.h <<_ACEOF
14828 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14829 _ACEOF
14830
14831 ac_header_dirent=$ac_hdr; break
14832 fi
14833
14834 done
14835 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14836 if test $ac_header_dirent = dirent.h; then
14837   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14838 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14839 if test "${ac_cv_search_opendir+set}" = set; then
14840   echo $ECHO_N "(cached) $ECHO_C" >&6
14841 else
14842   ac_func_search_save_LIBS=$LIBS
14843 cat >conftest.$ac_ext <<_ACEOF
14844 /* confdefs.h.  */
14845 _ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h.  */
14849
14850 /* Override any GCC internal prototype to avoid an error.
14851    Use char because int might match the return type of a GCC
14852    builtin and then its argument prototype would still apply.  */
14853 #ifdef __cplusplus
14854 extern "C"
14855 #endif
14856 char opendir ();
14857 int
14858 main ()
14859 {
14860 return opendir ();
14861   ;
14862   return 0;
14863 }
14864 _ACEOF
14865 for ac_lib in '' dir; do
14866   if test -z "$ac_lib"; then
14867     ac_res="none required"
14868   else
14869     ac_res=-l$ac_lib
14870     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14871   fi
14872   rm -f conftest.$ac_objext conftest$ac_exeext
14873 if { (ac_try="$ac_link"
14874 case "(($ac_try" in
14875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876   *) ac_try_echo=$ac_try;;
14877 esac
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879   (eval "$ac_link") 2>conftest.er1
14880   ac_status=$?
14881   grep -v '^ *+' conftest.er1 >conftest.err
14882   rm -f conftest.er1
14883   cat conftest.err >&5
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); } &&
14886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14887   { (case "(($ac_try" in
14888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889   *) ac_try_echo=$ac_try;;
14890 esac
14891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892   (eval "$ac_try") 2>&5
14893   ac_status=$?
14894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895   (exit $ac_status); }; } &&
14896          { ac_try='test -s conftest$ac_exeext'
14897   { (case "(($ac_try" in
14898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899   *) ac_try_echo=$ac_try;;
14900 esac
14901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902   (eval "$ac_try") 2>&5
14903   ac_status=$?
14904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905   (exit $ac_status); }; }; then
14906   ac_cv_search_opendir=$ac_res
14907 else
14908   echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14910
14911
14912 fi
14913
14914 rm -f core conftest.err conftest.$ac_objext \
14915       conftest$ac_exeext
14916   if test "${ac_cv_search_opendir+set}" = set; then
14917   break
14918 fi
14919 done
14920 if test "${ac_cv_search_opendir+set}" = set; then
14921   :
14922 else
14923   ac_cv_search_opendir=no
14924 fi
14925 rm conftest.$ac_ext
14926 LIBS=$ac_func_search_save_LIBS
14927 fi
14928 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14929 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14930 ac_res=$ac_cv_search_opendir
14931 if test "$ac_res" != no; then
14932   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14933
14934 fi
14935
14936 else
14937   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14938 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14939 if test "${ac_cv_search_opendir+set}" = set; then
14940   echo $ECHO_N "(cached) $ECHO_C" >&6
14941 else
14942   ac_func_search_save_LIBS=$LIBS
14943 cat >conftest.$ac_ext <<_ACEOF
14944 /* confdefs.h.  */
14945 _ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h.  */
14949
14950 /* Override any GCC internal prototype to avoid an error.
14951    Use char because int might match the return type of a GCC
14952    builtin and then its argument prototype would still apply.  */
14953 #ifdef __cplusplus
14954 extern "C"
14955 #endif
14956 char opendir ();
14957 int
14958 main ()
14959 {
14960 return opendir ();
14961   ;
14962   return 0;
14963 }
14964 _ACEOF
14965 for ac_lib in '' x; do
14966   if test -z "$ac_lib"; then
14967     ac_res="none required"
14968   else
14969     ac_res=-l$ac_lib
14970     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14971   fi
14972   rm -f conftest.$ac_objext conftest$ac_exeext
14973 if { (ac_try="$ac_link"
14974 case "(($ac_try" in
14975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976   *) ac_try_echo=$ac_try;;
14977 esac
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979   (eval "$ac_link") 2>conftest.er1
14980   ac_status=$?
14981   grep -v '^ *+' conftest.er1 >conftest.err
14982   rm -f conftest.er1
14983   cat conftest.err >&5
14984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); } &&
14986          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14987   { (case "(($ac_try" in
14988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989   *) ac_try_echo=$ac_try;;
14990 esac
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992   (eval "$ac_try") 2>&5
14993   ac_status=$?
14994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995   (exit $ac_status); }; } &&
14996          { ac_try='test -s conftest$ac_exeext'
14997   { (case "(($ac_try" in
14998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999   *) ac_try_echo=$ac_try;;
15000 esac
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002   (eval "$ac_try") 2>&5
15003   ac_status=$?
15004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005   (exit $ac_status); }; }; then
15006   ac_cv_search_opendir=$ac_res
15007 else
15008   echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15010
15011
15012 fi
15013
15014 rm -f core conftest.err conftest.$ac_objext \
15015       conftest$ac_exeext
15016   if test "${ac_cv_search_opendir+set}" = set; then
15017   break
15018 fi
15019 done
15020 if test "${ac_cv_search_opendir+set}" = set; then
15021   :
15022 else
15023   ac_cv_search_opendir=no
15024 fi
15025 rm conftest.$ac_ext
15026 LIBS=$ac_func_search_save_LIBS
15027 fi
15028 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15029 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15030 ac_res=$ac_cv_search_opendir
15031 if test "$ac_res" != no; then
15032   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15033
15034 fi
15035
15036 fi
15037
15038 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15039 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15040 if test "${ac_cv_header_mmap_anon+set}" = set; then
15041   echo $ECHO_N "(cached) $ECHO_C" >&6
15042 else
15043    ac_ext=c
15044 ac_cpp='$CPP $CPPFLAGS'
15045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15048
15049   cat >conftest.$ac_ext <<_ACEOF
15050 /* confdefs.h.  */
15051 _ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h.  */
15055 #include <sys/mman.h>
15056 #include <unistd.h>
15057 #include <fcntl.h>
15058 int
15059 main ()
15060 {
15061 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15062   ;
15063   return 0;
15064 }
15065 _ACEOF
15066 rm -f conftest.$ac_objext
15067 if { (ac_try="$ac_compile"
15068 case "(($ac_try" in
15069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070   *) ac_try_echo=$ac_try;;
15071 esac
15072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073   (eval "$ac_compile") 2>conftest.er1
15074   ac_status=$?
15075   grep -v '^ *+' conftest.er1 >conftest.err
15076   rm -f conftest.er1
15077   cat conftest.err >&5
15078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079   (exit $ac_status); } &&
15080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15081   { (case "(($ac_try" in
15082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083   *) ac_try_echo=$ac_try;;
15084 esac
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086   (eval "$ac_try") 2>&5
15087   ac_status=$?
15088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089   (exit $ac_status); }; } &&
15090          { ac_try='test -s conftest.$ac_objext'
15091   { (case "(($ac_try" in
15092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093   *) ac_try_echo=$ac_try;;
15094 esac
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096   (eval "$ac_try") 2>&5
15097   ac_status=$?
15098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099   (exit $ac_status); }; }; then
15100   ac_cv_header_mmap_anon=yes
15101 else
15102   echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15104
15105         ac_cv_header_mmap_anon=no
15106 fi
15107
15108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15109   ac_ext=c
15110 ac_cpp='$CPP $CPPFLAGS'
15111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15114
15115
15116 fi
15117 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15118 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15119 if test "$ac_cv_header_mmap_anon" = yes; then
15120
15121 cat >>confdefs.h <<\_ACEOF
15122 #define HAVE_MMAP_ANONYMOUS 1
15123 _ACEOF
15124
15125 fi
15126
15127 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15128 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15129 if test "${ac_cv_header_stat_broken+set}" = set; then
15130   echo $ECHO_N "(cached) $ECHO_C" >&6
15131 else
15132   cat >conftest.$ac_ext <<_ACEOF
15133 /* confdefs.h.  */
15134 _ACEOF
15135 cat confdefs.h >>conftest.$ac_ext
15136 cat >>conftest.$ac_ext <<_ACEOF
15137 /* end confdefs.h.  */
15138 #include <sys/types.h>
15139 #include <sys/stat.h>
15140
15141 #if defined S_ISBLK && defined S_IFDIR
15142 # if S_ISBLK (S_IFDIR)
15143 You lose.
15144 # endif
15145 #endif
15146
15147 #if defined S_ISBLK && defined S_IFCHR
15148 # if S_ISBLK (S_IFCHR)
15149 You lose.
15150 # endif
15151 #endif
15152
15153 #if defined S_ISLNK && defined S_IFREG
15154 # if S_ISLNK (S_IFREG)
15155 You lose.
15156 # endif
15157 #endif
15158
15159 #if defined S_ISSOCK && defined S_IFREG
15160 # if S_ISSOCK (S_IFREG)
15161 You lose.
15162 # endif
15163 #endif
15164
15165 _ACEOF
15166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15167   $EGREP "You lose" >/dev/null 2>&1; then
15168   ac_cv_header_stat_broken=yes
15169 else
15170   ac_cv_header_stat_broken=no
15171 fi
15172 rm -f conftest*
15173
15174 fi
15175 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15176 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15177 if test $ac_cv_header_stat_broken = yes; then
15178
15179 cat >>confdefs.h <<\_ACEOF
15180 #define STAT_MACROS_BROKEN 1
15181 _ACEOF
15182
15183 fi
15184
15185 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15186 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15187 if test "${ac_cv_header_stdc+set}" = set; then
15188   echo $ECHO_N "(cached) $ECHO_C" >&6
15189 else
15190   cat >conftest.$ac_ext <<_ACEOF
15191 /* confdefs.h.  */
15192 _ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h.  */
15196 #include <stdlib.h>
15197 #include <stdarg.h>
15198 #include <string.h>
15199 #include <float.h>
15200
15201 int
15202 main ()
15203 {
15204
15205   ;
15206   return 0;
15207 }
15208 _ACEOF
15209 rm -f conftest.$ac_objext
15210 if { (ac_try="$ac_compile"
15211 case "(($ac_try" in
15212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213   *) ac_try_echo=$ac_try;;
15214 esac
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216   (eval "$ac_compile") 2>conftest.er1
15217   ac_status=$?
15218   grep -v '^ *+' conftest.er1 >conftest.err
15219   rm -f conftest.er1
15220   cat conftest.err >&5
15221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222   (exit $ac_status); } &&
15223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15224   { (case "(($ac_try" in
15225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15226   *) ac_try_echo=$ac_try;;
15227 esac
15228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15229   (eval "$ac_try") 2>&5
15230   ac_status=$?
15231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232   (exit $ac_status); }; } &&
15233          { ac_try='test -s conftest.$ac_objext'
15234   { (case "(($ac_try" in
15235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236   *) ac_try_echo=$ac_try;;
15237 esac
15238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15239   (eval "$ac_try") 2>&5
15240   ac_status=$?
15241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242   (exit $ac_status); }; }; then
15243   ac_cv_header_stdc=yes
15244 else
15245   echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15247
15248         ac_cv_header_stdc=no
15249 fi
15250
15251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15252
15253 if test $ac_cv_header_stdc = yes; then
15254   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15255   cat >conftest.$ac_ext <<_ACEOF
15256 /* confdefs.h.  */
15257 _ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h.  */
15261 #include <string.h>
15262
15263 _ACEOF
15264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15265   $EGREP "memchr" >/dev/null 2>&1; then
15266   :
15267 else
15268   ac_cv_header_stdc=no
15269 fi
15270 rm -f conftest*
15271
15272 fi
15273
15274 if test $ac_cv_header_stdc = yes; then
15275   # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h>
15283
15284 _ACEOF
15285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15286   $EGREP "free" >/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   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15297   if test "$cross_compiling" = yes; then
15298   :
15299 else
15300   cat >conftest.$ac_ext <<_ACEOF
15301 /* confdefs.h.  */
15302 _ACEOF
15303 cat confdefs.h >>conftest.$ac_ext
15304 cat >>conftest.$ac_ext <<_ACEOF
15305 /* end confdefs.h.  */
15306 #include <ctype.h>
15307 #include <stdlib.h>
15308 #if ((' ' & 0x0FF) == 0x020)
15309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15311 #else
15312 # define ISLOWER(c) \
15313                    (('a' <= (c) && (c) <= 'i') \
15314                      || ('j' <= (c) && (c) <= 'r') \
15315                      || ('s' <= (c) && (c) <= 'z'))
15316 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15317 #endif
15318
15319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15320 int
15321 main ()
15322 {
15323   int i;
15324   for (i = 0; i < 256; i++)
15325     if (XOR (islower (i), ISLOWER (i))
15326         || toupper (i) != TOUPPER (i))
15327       return 2;
15328   return 0;
15329 }
15330 _ACEOF
15331 rm -f conftest$ac_exeext
15332 if { (ac_try="$ac_link"
15333 case "(($ac_try" in
15334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335   *) ac_try_echo=$ac_try;;
15336 esac
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338   (eval "$ac_link") 2>&5
15339   ac_status=$?
15340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15342   { (case "(($ac_try" in
15343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344   *) ac_try_echo=$ac_try;;
15345 esac
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347   (eval "$ac_try") 2>&5
15348   ac_status=$?
15349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350   (exit $ac_status); }; }; then
15351   :
15352 else
15353   echo "$as_me: program exited with status $ac_status" >&5
15354 echo "$as_me: failed program was:" >&5
15355 sed 's/^/| /' conftest.$ac_ext >&5
15356
15357 ( exit $ac_status )
15358 ac_cv_header_stdc=no
15359 fi
15360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15361 fi
15362
15363
15364 fi
15365 fi
15366 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15367 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15368 if test $ac_cv_header_stdc = yes; then
15369
15370 cat >>confdefs.h <<\_ACEOF
15371 #define STDC_HEADERS 1
15372 _ACEOF
15373
15374 fi
15375
15376 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15377 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15378 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15379   echo $ECHO_N "(cached) $ECHO_C" >&6
15380 else
15381   cat >conftest.$ac_ext <<_ACEOF
15382 /* confdefs.h.  */
15383 _ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h.  */
15387 #include <sys/types.h>
15388 #include <sys/wait.h>
15389 #ifndef WEXITSTATUS
15390 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15391 #endif
15392 #ifndef WIFEXITED
15393 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15394 #endif
15395
15396 int
15397 main ()
15398 {
15399   int s;
15400   wait (&s);
15401   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15402   ;
15403   return 0;
15404 }
15405 _ACEOF
15406 rm -f conftest.$ac_objext
15407 if { (ac_try="$ac_compile"
15408 case "(($ac_try" in
15409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410   *) ac_try_echo=$ac_try;;
15411 esac
15412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413   (eval "$ac_compile") 2>conftest.er1
15414   ac_status=$?
15415   grep -v '^ *+' conftest.er1 >conftest.err
15416   rm -f conftest.er1
15417   cat conftest.err >&5
15418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419   (exit $ac_status); } &&
15420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15421   { (case "(($ac_try" in
15422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423   *) ac_try_echo=$ac_try;;
15424 esac
15425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426   (eval "$ac_try") 2>&5
15427   ac_status=$?
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); }; } &&
15430          { ac_try='test -s conftest.$ac_objext'
15431   { (case "(($ac_try" in
15432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433   *) ac_try_echo=$ac_try;;
15434 esac
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436   (eval "$ac_try") 2>&5
15437   ac_status=$?
15438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439   (exit $ac_status); }; }; then
15440   ac_cv_header_sys_wait_h=yes
15441 else
15442   echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15444
15445         ac_cv_header_sys_wait_h=no
15446 fi
15447
15448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15449 fi
15450 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15451 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15452 if test $ac_cv_header_sys_wait_h = yes; then
15453
15454 cat >>confdefs.h <<\_ACEOF
15455 #define HAVE_SYS_WAIT_H 1
15456 _ACEOF
15457
15458 fi
15459
15460 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15461 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15462 if test "${ac_cv_header_time+set}" = set; then
15463   echo $ECHO_N "(cached) $ECHO_C" >&6
15464 else
15465   cat >conftest.$ac_ext <<_ACEOF
15466 /* confdefs.h.  */
15467 _ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h.  */
15471 #include <sys/types.h>
15472 #include <sys/time.h>
15473 #include <time.h>
15474
15475 int
15476 main ()
15477 {
15478 if ((struct tm *) 0)
15479 return 0;
15480   ;
15481   return 0;
15482 }
15483 _ACEOF
15484 rm -f conftest.$ac_objext
15485 if { (ac_try="$ac_compile"
15486 case "(($ac_try" in
15487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488   *) ac_try_echo=$ac_try;;
15489 esac
15490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491   (eval "$ac_compile") 2>conftest.er1
15492   ac_status=$?
15493   grep -v '^ *+' conftest.er1 >conftest.err
15494   rm -f conftest.er1
15495   cat conftest.err >&5
15496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497   (exit $ac_status); } &&
15498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15499   { (case "(($ac_try" in
15500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501   *) ac_try_echo=$ac_try;;
15502 esac
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504   (eval "$ac_try") 2>&5
15505   ac_status=$?
15506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   (exit $ac_status); }; } &&
15508          { ac_try='test -s conftest.$ac_objext'
15509   { (case "(($ac_try" in
15510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511   *) ac_try_echo=$ac_try;;
15512 esac
15513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514   (eval "$ac_try") 2>&5
15515   ac_status=$?
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); }; }; then
15518   ac_cv_header_time=yes
15519 else
15520   echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15522
15523         ac_cv_header_time=no
15524 fi
15525
15526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15527 fi
15528 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15529 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15530 if test $ac_cv_header_time = yes; then
15531
15532 cat >>confdefs.h <<\_ACEOF
15533 #define TIME_WITH_SYS_TIME 1
15534 _ACEOF
15535
15536 fi
15537
15538
15539
15540
15541
15542
15543
15544
15545 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15546 do
15547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15549   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15552   echo $ECHO_N "(cached) $ECHO_C" >&6
15553 fi
15554 ac_res=`eval echo '${'$as_ac_Header'}'`
15555                { echo "$as_me:$LINENO: result: $ac_res" >&5
15556 echo "${ECHO_T}$ac_res" >&6; }
15557 else
15558   # Is the header compilable?
15559 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15561 cat >conftest.$ac_ext <<_ACEOF
15562 /* confdefs.h.  */
15563 _ACEOF
15564 cat confdefs.h >>conftest.$ac_ext
15565 cat >>conftest.$ac_ext <<_ACEOF
15566 /* end confdefs.h.  */
15567 $ac_includes_default
15568 #include <$ac_header>
15569 _ACEOF
15570 rm -f conftest.$ac_objext
15571 if { (ac_try="$ac_compile"
15572 case "(($ac_try" in
15573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574   *) ac_try_echo=$ac_try;;
15575 esac
15576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577   (eval "$ac_compile") 2>conftest.er1
15578   ac_status=$?
15579   grep -v '^ *+' conftest.er1 >conftest.err
15580   rm -f conftest.er1
15581   cat conftest.err >&5
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); } &&
15584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15585   { (case "(($ac_try" in
15586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587   *) ac_try_echo=$ac_try;;
15588 esac
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590   (eval "$ac_try") 2>&5
15591   ac_status=$?
15592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593   (exit $ac_status); }; } &&
15594          { ac_try='test -s conftest.$ac_objext'
15595   { (case "(($ac_try" in
15596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15597   *) ac_try_echo=$ac_try;;
15598 esac
15599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15600   (eval "$ac_try") 2>&5
15601   ac_status=$?
15602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603   (exit $ac_status); }; }; then
15604   ac_header_compiler=yes
15605 else
15606   echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15608
15609         ac_header_compiler=no
15610 fi
15611
15612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15613 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15614 echo "${ECHO_T}$ac_header_compiler" >&6; }
15615
15616 # Is the header present?
15617 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15619 cat >conftest.$ac_ext <<_ACEOF
15620 /* confdefs.h.  */
15621 _ACEOF
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h.  */
15625 #include <$ac_header>
15626 _ACEOF
15627 if { (ac_try="$ac_cpp conftest.$ac_ext"
15628 case "(($ac_try" in
15629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630   *) ac_try_echo=$ac_try;;
15631 esac
15632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15633   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15634   ac_status=$?
15635   grep -v '^ *+' conftest.er1 >conftest.err
15636   rm -f conftest.er1
15637   cat conftest.err >&5
15638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639   (exit $ac_status); } >/dev/null; then
15640   if test -s conftest.err; then
15641     ac_cpp_err=$ac_c_preproc_warn_flag
15642     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15643   else
15644     ac_cpp_err=
15645   fi
15646 else
15647   ac_cpp_err=yes
15648 fi
15649 if test -z "$ac_cpp_err"; then
15650   ac_header_preproc=yes
15651 else
15652   echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15654
15655   ac_header_preproc=no
15656 fi
15657
15658 rm -f conftest.err conftest.$ac_ext
15659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15660 echo "${ECHO_T}$ac_header_preproc" >&6; }
15661
15662 # So?  What about this header?
15663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15664   yes:no: )
15665     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15667     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15669     ac_header_preproc=yes
15670     ;;
15671   no:yes:* )
15672     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15674     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15675 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15676     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15678     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15679 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15682     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15684     ( cat <<\_ASBOX
15685 ## ----------------------------------- ##
15686 ## Report this to llvmbugs@cs.uiuc.edu ##
15687 ## ----------------------------------- ##
15688 _ASBOX
15689      ) | sed "s/^/$as_me: WARNING:     /" >&2
15690     ;;
15691 esac
15692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15695   echo $ECHO_N "(cached) $ECHO_C" >&6
15696 else
15697   eval "$as_ac_Header=\$ac_header_preproc"
15698 fi
15699 ac_res=`eval echo '${'$as_ac_Header'}'`
15700                { echo "$as_me:$LINENO: result: $ac_res" >&5
15701 echo "${ECHO_T}$ac_res" >&6; }
15702
15703 fi
15704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15705   cat >>confdefs.h <<_ACEOF
15706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15707 _ACEOF
15708
15709 fi
15710
15711 done
15712
15713
15714
15715
15716
15717
15718
15719 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15720 do
15721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15723   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15726   echo $ECHO_N "(cached) $ECHO_C" >&6
15727 fi
15728 ac_res=`eval echo '${'$as_ac_Header'}'`
15729                { echo "$as_me:$LINENO: result: $ac_res" >&5
15730 echo "${ECHO_T}$ac_res" >&6; }
15731 else
15732   # Is the header compilable?
15733 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15735 cat >conftest.$ac_ext <<_ACEOF
15736 /* confdefs.h.  */
15737 _ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h.  */
15741 $ac_includes_default
15742 #include <$ac_header>
15743 _ACEOF
15744 rm -f conftest.$ac_objext
15745 if { (ac_try="$ac_compile"
15746 case "(($ac_try" in
15747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748   *) ac_try_echo=$ac_try;;
15749 esac
15750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751   (eval "$ac_compile") 2>conftest.er1
15752   ac_status=$?
15753   grep -v '^ *+' conftest.er1 >conftest.err
15754   rm -f conftest.er1
15755   cat conftest.err >&5
15756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757   (exit $ac_status); } &&
15758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15759   { (case "(($ac_try" in
15760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761   *) ac_try_echo=$ac_try;;
15762 esac
15763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15764   (eval "$ac_try") 2>&5
15765   ac_status=$?
15766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767   (exit $ac_status); }; } &&
15768          { ac_try='test -s conftest.$ac_objext'
15769   { (case "(($ac_try" in
15770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771   *) ac_try_echo=$ac_try;;
15772 esac
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774   (eval "$ac_try") 2>&5
15775   ac_status=$?
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); }; }; then
15778   ac_header_compiler=yes
15779 else
15780   echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15782
15783         ac_header_compiler=no
15784 fi
15785
15786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15788 echo "${ECHO_T}$ac_header_compiler" >&6; }
15789
15790 # Is the header present?
15791 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15793 cat >conftest.$ac_ext <<_ACEOF
15794 /* confdefs.h.  */
15795 _ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h.  */
15799 #include <$ac_header>
15800 _ACEOF
15801 if { (ac_try="$ac_cpp conftest.$ac_ext"
15802 case "(($ac_try" in
15803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804   *) ac_try_echo=$ac_try;;
15805 esac
15806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15808   ac_status=$?
15809   grep -v '^ *+' conftest.er1 >conftest.err
15810   rm -f conftest.er1
15811   cat conftest.err >&5
15812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813   (exit $ac_status); } >/dev/null; then
15814   if test -s conftest.err; then
15815     ac_cpp_err=$ac_c_preproc_warn_flag
15816     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15817   else
15818     ac_cpp_err=
15819   fi
15820 else
15821   ac_cpp_err=yes
15822 fi
15823 if test -z "$ac_cpp_err"; then
15824   ac_header_preproc=yes
15825 else
15826   echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15828
15829   ac_header_preproc=no
15830 fi
15831
15832 rm -f conftest.err conftest.$ac_ext
15833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15834 echo "${ECHO_T}$ac_header_preproc" >&6; }
15835
15836 # So?  What about this header?
15837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15838   yes:no: )
15839     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15843     ac_header_preproc=yes
15844     ;;
15845   no:yes:* )
15846     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15848     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15849 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15850     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15852     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15853 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15854     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15856     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15858     ( cat <<\_ASBOX
15859 ## ----------------------------------- ##
15860 ## Report this to llvmbugs@cs.uiuc.edu ##
15861 ## ----------------------------------- ##
15862 _ASBOX
15863      ) | sed "s/^/$as_me: WARNING:     /" >&2
15864     ;;
15865 esac
15866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15869   echo $ECHO_N "(cached) $ECHO_C" >&6
15870 else
15871   eval "$as_ac_Header=\$ac_header_preproc"
15872 fi
15873 ac_res=`eval echo '${'$as_ac_Header'}'`
15874                { echo "$as_me:$LINENO: result: $ac_res" >&5
15875 echo "${ECHO_T}$ac_res" >&6; }
15876
15877 fi
15878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15879   cat >>confdefs.h <<_ACEOF
15880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15881 _ACEOF
15882
15883 fi
15884
15885 done
15886
15887
15888
15889 for ac_header in utime.h windows.h
15890 do
15891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15893   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15896   echo $ECHO_N "(cached) $ECHO_C" >&6
15897 fi
15898 ac_res=`eval echo '${'$as_ac_Header'}'`
15899                { echo "$as_me:$LINENO: result: $ac_res" >&5
15900 echo "${ECHO_T}$ac_res" >&6; }
15901 else
15902   # Is the header compilable?
15903 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15905 cat >conftest.$ac_ext <<_ACEOF
15906 /* confdefs.h.  */
15907 _ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h.  */
15911 $ac_includes_default
15912 #include <$ac_header>
15913 _ACEOF
15914 rm -f conftest.$ac_objext
15915 if { (ac_try="$ac_compile"
15916 case "(($ac_try" in
15917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918   *) ac_try_echo=$ac_try;;
15919 esac
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921   (eval "$ac_compile") 2>conftest.er1
15922   ac_status=$?
15923   grep -v '^ *+' conftest.er1 >conftest.err
15924   rm -f conftest.er1
15925   cat conftest.err >&5
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   (exit $ac_status); } &&
15928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15929   { (case "(($ac_try" in
15930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931   *) ac_try_echo=$ac_try;;
15932 esac
15933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934   (eval "$ac_try") 2>&5
15935   ac_status=$?
15936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937   (exit $ac_status); }; } &&
15938          { ac_try='test -s conftest.$ac_objext'
15939   { (case "(($ac_try" in
15940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941   *) ac_try_echo=$ac_try;;
15942 esac
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944   (eval "$ac_try") 2>&5
15945   ac_status=$?
15946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947   (exit $ac_status); }; }; then
15948   ac_header_compiler=yes
15949 else
15950   echo "$as_me: failed program was:" >&5
15951 sed 's/^/| /' conftest.$ac_ext >&5
15952
15953         ac_header_compiler=no
15954 fi
15955
15956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15957 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15958 echo "${ECHO_T}$ac_header_compiler" >&6; }
15959
15960 # Is the header present?
15961 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15963 cat >conftest.$ac_ext <<_ACEOF
15964 /* confdefs.h.  */
15965 _ACEOF
15966 cat confdefs.h >>conftest.$ac_ext
15967 cat >>conftest.$ac_ext <<_ACEOF
15968 /* end confdefs.h.  */
15969 #include <$ac_header>
15970 _ACEOF
15971 if { (ac_try="$ac_cpp conftest.$ac_ext"
15972 case "(($ac_try" in
15973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15974   *) ac_try_echo=$ac_try;;
15975 esac
15976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15977   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15978   ac_status=$?
15979   grep -v '^ *+' conftest.er1 >conftest.err
15980   rm -f conftest.er1
15981   cat conftest.err >&5
15982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983   (exit $ac_status); } >/dev/null; then
15984   if test -s conftest.err; then
15985     ac_cpp_err=$ac_c_preproc_warn_flag
15986     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15987   else
15988     ac_cpp_err=
15989   fi
15990 else
15991   ac_cpp_err=yes
15992 fi
15993 if test -z "$ac_cpp_err"; then
15994   ac_header_preproc=yes
15995 else
15996   echo "$as_me: failed program was:" >&5
15997 sed 's/^/| /' conftest.$ac_ext >&5
15998
15999   ac_header_preproc=no
16000 fi
16001
16002 rm -f conftest.err conftest.$ac_ext
16003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16004 echo "${ECHO_T}$ac_header_preproc" >&6; }
16005
16006 # So?  What about this header?
16007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16008   yes:no: )
16009     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16013     ac_header_preproc=yes
16014     ;;
16015   no:yes:* )
16016     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16018     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16019 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16020     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16022     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16023 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16026     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16028     ( cat <<\_ASBOX
16029 ## ----------------------------------- ##
16030 ## Report this to llvmbugs@cs.uiuc.edu ##
16031 ## ----------------------------------- ##
16032 _ASBOX
16033      ) | sed "s/^/$as_me: WARNING:     /" >&2
16034     ;;
16035 esac
16036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16039   echo $ECHO_N "(cached) $ECHO_C" >&6
16040 else
16041   eval "$as_ac_Header=\$ac_header_preproc"
16042 fi
16043 ac_res=`eval echo '${'$as_ac_Header'}'`
16044                { echo "$as_me:$LINENO: result: $ac_res" >&5
16045 echo "${ECHO_T}$ac_res" >&6; }
16046
16047 fi
16048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16049   cat >>confdefs.h <<_ACEOF
16050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16051 _ACEOF
16052
16053 fi
16054
16055 done
16056
16057
16058
16059
16060
16061 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16062 do
16063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16065   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16068   echo $ECHO_N "(cached) $ECHO_C" >&6
16069 fi
16070 ac_res=`eval echo '${'$as_ac_Header'}'`
16071                { echo "$as_me:$LINENO: result: $ac_res" >&5
16072 echo "${ECHO_T}$ac_res" >&6; }
16073 else
16074   # Is the header compilable?
16075 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16077 cat >conftest.$ac_ext <<_ACEOF
16078 /* confdefs.h.  */
16079 _ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h.  */
16083 $ac_includes_default
16084 #include <$ac_header>
16085 _ACEOF
16086 rm -f conftest.$ac_objext
16087 if { (ac_try="$ac_compile"
16088 case "(($ac_try" in
16089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090   *) ac_try_echo=$ac_try;;
16091 esac
16092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093   (eval "$ac_compile") 2>conftest.er1
16094   ac_status=$?
16095   grep -v '^ *+' conftest.er1 >conftest.err
16096   rm -f conftest.er1
16097   cat conftest.err >&5
16098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099   (exit $ac_status); } &&
16100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16101   { (case "(($ac_try" in
16102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103   *) ac_try_echo=$ac_try;;
16104 esac
16105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106   (eval "$ac_try") 2>&5
16107   ac_status=$?
16108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109   (exit $ac_status); }; } &&
16110          { ac_try='test -s conftest.$ac_objext'
16111   { (case "(($ac_try" in
16112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113   *) ac_try_echo=$ac_try;;
16114 esac
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116   (eval "$ac_try") 2>&5
16117   ac_status=$?
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); }; }; then
16120   ac_header_compiler=yes
16121 else
16122   echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16124
16125         ac_header_compiler=no
16126 fi
16127
16128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16130 echo "${ECHO_T}$ac_header_compiler" >&6; }
16131
16132 # Is the header present?
16133 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16135 cat >conftest.$ac_ext <<_ACEOF
16136 /* confdefs.h.  */
16137 _ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h.  */
16141 #include <$ac_header>
16142 _ACEOF
16143 if { (ac_try="$ac_cpp conftest.$ac_ext"
16144 case "(($ac_try" in
16145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146   *) ac_try_echo=$ac_try;;
16147 esac
16148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16149   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16150   ac_status=$?
16151   grep -v '^ *+' conftest.er1 >conftest.err
16152   rm -f conftest.er1
16153   cat conftest.err >&5
16154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155   (exit $ac_status); } >/dev/null; then
16156   if test -s conftest.err; then
16157     ac_cpp_err=$ac_c_preproc_warn_flag
16158     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16159   else
16160     ac_cpp_err=
16161   fi
16162 else
16163   ac_cpp_err=yes
16164 fi
16165 if test -z "$ac_cpp_err"; then
16166   ac_header_preproc=yes
16167 else
16168   echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.$ac_ext >&5
16170
16171   ac_header_preproc=no
16172 fi
16173
16174 rm -f conftest.err conftest.$ac_ext
16175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16176 echo "${ECHO_T}$ac_header_preproc" >&6; }
16177
16178 # So?  What about this header?
16179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16180   yes:no: )
16181     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16185     ac_header_preproc=yes
16186     ;;
16187   no:yes:* )
16188     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16190     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16191 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16192     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16194     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16195 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16198     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16200     ( cat <<\_ASBOX
16201 ## ----------------------------------- ##
16202 ## Report this to llvmbugs@cs.uiuc.edu ##
16203 ## ----------------------------------- ##
16204 _ASBOX
16205      ) | sed "s/^/$as_me: WARNING:     /" >&2
16206     ;;
16207 esac
16208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16211   echo $ECHO_N "(cached) $ECHO_C" >&6
16212 else
16213   eval "$as_ac_Header=\$ac_header_preproc"
16214 fi
16215 ac_res=`eval echo '${'$as_ac_Header'}'`
16216                { echo "$as_me:$LINENO: result: $ac_res" >&5
16217 echo "${ECHO_T}$ac_res" >&6; }
16218
16219 fi
16220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16221   cat >>confdefs.h <<_ACEOF
16222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16223 _ACEOF
16224
16225 fi
16226
16227 done
16228
16229
16230
16231
16232
16233 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16234 do
16235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16237   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16240   echo $ECHO_N "(cached) $ECHO_C" >&6
16241 fi
16242 ac_res=`eval echo '${'$as_ac_Header'}'`
16243                { echo "$as_me:$LINENO: result: $ac_res" >&5
16244 echo "${ECHO_T}$ac_res" >&6; }
16245 else
16246   # Is the header compilable?
16247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16249 cat >conftest.$ac_ext <<_ACEOF
16250 /* confdefs.h.  */
16251 _ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h.  */
16255 $ac_includes_default
16256 #include <$ac_header>
16257 _ACEOF
16258 rm -f conftest.$ac_objext
16259 if { (ac_try="$ac_compile"
16260 case "(($ac_try" in
16261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262   *) ac_try_echo=$ac_try;;
16263 esac
16264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265   (eval "$ac_compile") 2>conftest.er1
16266   ac_status=$?
16267   grep -v '^ *+' conftest.er1 >conftest.err
16268   rm -f conftest.er1
16269   cat conftest.err >&5
16270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271   (exit $ac_status); } &&
16272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16273   { (case "(($ac_try" in
16274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16275   *) ac_try_echo=$ac_try;;
16276 esac
16277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16278   (eval "$ac_try") 2>&5
16279   ac_status=$?
16280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281   (exit $ac_status); }; } &&
16282          { ac_try='test -s conftest.$ac_objext'
16283   { (case "(($ac_try" in
16284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16285   *) ac_try_echo=$ac_try;;
16286 esac
16287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16288   (eval "$ac_try") 2>&5
16289   ac_status=$?
16290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291   (exit $ac_status); }; }; then
16292   ac_header_compiler=yes
16293 else
16294   echo "$as_me: failed program was:" >&5
16295 sed 's/^/| /' conftest.$ac_ext >&5
16296
16297         ac_header_compiler=no
16298 fi
16299
16300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16302 echo "${ECHO_T}$ac_header_compiler" >&6; }
16303
16304 # Is the header present?
16305 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16307 cat >conftest.$ac_ext <<_ACEOF
16308 /* confdefs.h.  */
16309 _ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h.  */
16313 #include <$ac_header>
16314 _ACEOF
16315 if { (ac_try="$ac_cpp conftest.$ac_ext"
16316 case "(($ac_try" in
16317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318   *) ac_try_echo=$ac_try;;
16319 esac
16320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16322   ac_status=$?
16323   grep -v '^ *+' conftest.er1 >conftest.err
16324   rm -f conftest.er1
16325   cat conftest.err >&5
16326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327   (exit $ac_status); } >/dev/null; then
16328   if test -s conftest.err; then
16329     ac_cpp_err=$ac_c_preproc_warn_flag
16330     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16331   else
16332     ac_cpp_err=
16333   fi
16334 else
16335   ac_cpp_err=yes
16336 fi
16337 if test -z "$ac_cpp_err"; then
16338   ac_header_preproc=yes
16339 else
16340   echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16342
16343   ac_header_preproc=no
16344 fi
16345
16346 rm -f conftest.err conftest.$ac_ext
16347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16348 echo "${ECHO_T}$ac_header_preproc" >&6; }
16349
16350 # So?  What about this header?
16351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16352   yes:no: )
16353     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16357     ac_header_preproc=yes
16358     ;;
16359   no:yes:* )
16360     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16362     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16363 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16364     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16366     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16367 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16370     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16372     ( cat <<\_ASBOX
16373 ## ----------------------------------- ##
16374 ## Report this to llvmbugs@cs.uiuc.edu ##
16375 ## ----------------------------------- ##
16376 _ASBOX
16377      ) | sed "s/^/$as_me: WARNING:     /" >&2
16378     ;;
16379 esac
16380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16383   echo $ECHO_N "(cached) $ECHO_C" >&6
16384 else
16385   eval "$as_ac_Header=\$ac_header_preproc"
16386 fi
16387 ac_res=`eval echo '${'$as_ac_Header'}'`
16388                { echo "$as_me:$LINENO: result: $ac_res" >&5
16389 echo "${ECHO_T}$ac_res" >&6; }
16390
16391 fi
16392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16393   cat >>confdefs.h <<_ACEOF
16394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16395 _ACEOF
16396
16397 fi
16398
16399 done
16400
16401
16402 for ac_header in valgrind/valgrind.h
16403 do
16404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16406   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16409   echo $ECHO_N "(cached) $ECHO_C" >&6
16410 fi
16411 ac_res=`eval echo '${'$as_ac_Header'}'`
16412                { echo "$as_me:$LINENO: result: $ac_res" >&5
16413 echo "${ECHO_T}$ac_res" >&6; }
16414 else
16415   # Is the header compilable?
16416 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16418 cat >conftest.$ac_ext <<_ACEOF
16419 /* confdefs.h.  */
16420 _ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h.  */
16424 $ac_includes_default
16425 #include <$ac_header>
16426 _ACEOF
16427 rm -f conftest.$ac_objext
16428 if { (ac_try="$ac_compile"
16429 case "(($ac_try" in
16430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431   *) ac_try_echo=$ac_try;;
16432 esac
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434   (eval "$ac_compile") 2>conftest.er1
16435   ac_status=$?
16436   grep -v '^ *+' conftest.er1 >conftest.err
16437   rm -f conftest.er1
16438   cat conftest.err >&5
16439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440   (exit $ac_status); } &&
16441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16442   { (case "(($ac_try" in
16443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444   *) ac_try_echo=$ac_try;;
16445 esac
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447   (eval "$ac_try") 2>&5
16448   ac_status=$?
16449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450   (exit $ac_status); }; } &&
16451          { ac_try='test -s conftest.$ac_objext'
16452   { (case "(($ac_try" in
16453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16454   *) ac_try_echo=$ac_try;;
16455 esac
16456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16457   (eval "$ac_try") 2>&5
16458   ac_status=$?
16459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460   (exit $ac_status); }; }; then
16461   ac_header_compiler=yes
16462 else
16463   echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16465
16466         ac_header_compiler=no
16467 fi
16468
16469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16470 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16471 echo "${ECHO_T}$ac_header_compiler" >&6; }
16472
16473 # Is the header present?
16474 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16476 cat >conftest.$ac_ext <<_ACEOF
16477 /* confdefs.h.  */
16478 _ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h.  */
16482 #include <$ac_header>
16483 _ACEOF
16484 if { (ac_try="$ac_cpp conftest.$ac_ext"
16485 case "(($ac_try" in
16486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487   *) ac_try_echo=$ac_try;;
16488 esac
16489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16490   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16491   ac_status=$?
16492   grep -v '^ *+' conftest.er1 >conftest.err
16493   rm -f conftest.er1
16494   cat conftest.err >&5
16495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496   (exit $ac_status); } >/dev/null; then
16497   if test -s conftest.err; then
16498     ac_cpp_err=$ac_c_preproc_warn_flag
16499     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16500   else
16501     ac_cpp_err=
16502   fi
16503 else
16504   ac_cpp_err=yes
16505 fi
16506 if test -z "$ac_cpp_err"; then
16507   ac_header_preproc=yes
16508 else
16509   echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16511
16512   ac_header_preproc=no
16513 fi
16514
16515 rm -f conftest.err conftest.$ac_ext
16516 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16517 echo "${ECHO_T}$ac_header_preproc" >&6; }
16518
16519 # So?  What about this header?
16520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16521   yes:no: )
16522     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16525 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16526     ac_header_preproc=yes
16527     ;;
16528   no:yes:* )
16529     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16531     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16532 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16533     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16534 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16535     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16536 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16537     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16539     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16540 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16541     ( cat <<\_ASBOX
16542 ## ----------------------------------- ##
16543 ## Report this to llvmbugs@cs.uiuc.edu ##
16544 ## ----------------------------------- ##
16545 _ASBOX
16546      ) | sed "s/^/$as_me: WARNING:     /" >&2
16547     ;;
16548 esac
16549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16552   echo $ECHO_N "(cached) $ECHO_C" >&6
16553 else
16554   eval "$as_ac_Header=\$ac_header_preproc"
16555 fi
16556 ac_res=`eval echo '${'$as_ac_Header'}'`
16557                { echo "$as_me:$LINENO: result: $ac_res" >&5
16558 echo "${ECHO_T}$ac_res" >&6; }
16559
16560 fi
16561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16562   cat >>confdefs.h <<_ACEOF
16563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16564 _ACEOF
16565
16566 fi
16567
16568 done
16569
16570 if test "$ENABLE_THREADS" -eq 1 ; then
16571
16572 for ac_header in pthread.h
16573 do
16574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16576   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16579   echo $ECHO_N "(cached) $ECHO_C" >&6
16580 fi
16581 ac_res=`eval echo '${'$as_ac_Header'}'`
16582                { echo "$as_me:$LINENO: result: $ac_res" >&5
16583 echo "${ECHO_T}$ac_res" >&6; }
16584 else
16585   # Is the header compilable?
16586 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16588 cat >conftest.$ac_ext <<_ACEOF
16589 /* confdefs.h.  */
16590 _ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h.  */
16594 $ac_includes_default
16595 #include <$ac_header>
16596 _ACEOF
16597 rm -f conftest.$ac_objext
16598 if { (ac_try="$ac_compile"
16599 case "(($ac_try" in
16600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601   *) ac_try_echo=$ac_try;;
16602 esac
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604   (eval "$ac_compile") 2>conftest.er1
16605   ac_status=$?
16606   grep -v '^ *+' conftest.er1 >conftest.err
16607   rm -f conftest.er1
16608   cat conftest.err >&5
16609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610   (exit $ac_status); } &&
16611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16612   { (case "(($ac_try" in
16613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614   *) ac_try_echo=$ac_try;;
16615 esac
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617   (eval "$ac_try") 2>&5
16618   ac_status=$?
16619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620   (exit $ac_status); }; } &&
16621          { ac_try='test -s conftest.$ac_objext'
16622   { (case "(($ac_try" in
16623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624   *) ac_try_echo=$ac_try;;
16625 esac
16626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627   (eval "$ac_try") 2>&5
16628   ac_status=$?
16629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630   (exit $ac_status); }; }; then
16631   ac_header_compiler=yes
16632 else
16633   echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.$ac_ext >&5
16635
16636         ac_header_compiler=no
16637 fi
16638
16639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16641 echo "${ECHO_T}$ac_header_compiler" >&6; }
16642
16643 # Is the header present?
16644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16646 cat >conftest.$ac_ext <<_ACEOF
16647 /* confdefs.h.  */
16648 _ACEOF
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h.  */
16652 #include <$ac_header>
16653 _ACEOF
16654 if { (ac_try="$ac_cpp conftest.$ac_ext"
16655 case "(($ac_try" in
16656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657   *) ac_try_echo=$ac_try;;
16658 esac
16659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16661   ac_status=$?
16662   grep -v '^ *+' conftest.er1 >conftest.err
16663   rm -f conftest.er1
16664   cat conftest.err >&5
16665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666   (exit $ac_status); } >/dev/null; then
16667   if test -s conftest.err; then
16668     ac_cpp_err=$ac_c_preproc_warn_flag
16669     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16670   else
16671     ac_cpp_err=
16672   fi
16673 else
16674   ac_cpp_err=yes
16675 fi
16676 if test -z "$ac_cpp_err"; then
16677   ac_header_preproc=yes
16678 else
16679   echo "$as_me: failed program was:" >&5
16680 sed 's/^/| /' conftest.$ac_ext >&5
16681
16682   ac_header_preproc=no
16683 fi
16684
16685 rm -f conftest.err conftest.$ac_ext
16686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16687 echo "${ECHO_T}$ac_header_preproc" >&6; }
16688
16689 # So?  What about this header?
16690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16691   yes:no: )
16692     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16696     ac_header_preproc=yes
16697     ;;
16698   no:yes:* )
16699     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16701     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16702 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16703     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16705     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16706 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16709     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16711     ( cat <<\_ASBOX
16712 ## ----------------------------------- ##
16713 ## Report this to llvmbugs@cs.uiuc.edu ##
16714 ## ----------------------------------- ##
16715 _ASBOX
16716      ) | sed "s/^/$as_me: WARNING:     /" >&2
16717     ;;
16718 esac
16719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16722   echo $ECHO_N "(cached) $ECHO_C" >&6
16723 else
16724   eval "$as_ac_Header=\$ac_header_preproc"
16725 fi
16726 ac_res=`eval echo '${'$as_ac_Header'}'`
16727                { echo "$as_me:$LINENO: result: $ac_res" >&5
16728 echo "${ECHO_T}$ac_res" >&6; }
16729
16730 fi
16731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16732   cat >>confdefs.h <<_ACEOF
16733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16734 _ACEOF
16735  HAVE_PTHREAD=1
16736
16737 else
16738   HAVE_PTHREAD=0
16739
16740 fi
16741
16742 done
16743
16744 else
16745   HAVE_PTHREAD=0
16746
16747 fi
16748
16749 if test "$llvm_cv_enable_libffi" = "yes" ; then
16750
16751
16752 for ac_header in ffi.h ffi/ffi.h
16753 do
16754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16756   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16759   echo $ECHO_N "(cached) $ECHO_C" >&6
16760 fi
16761 ac_res=`eval echo '${'$as_ac_Header'}'`
16762                { echo "$as_me:$LINENO: result: $ac_res" >&5
16763 echo "${ECHO_T}$ac_res" >&6; }
16764 else
16765   # Is the header compilable?
16766 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16768 cat >conftest.$ac_ext <<_ACEOF
16769 /* confdefs.h.  */
16770 _ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h.  */
16774 $ac_includes_default
16775 #include <$ac_header>
16776 _ACEOF
16777 rm -f conftest.$ac_objext
16778 if { (ac_try="$ac_compile"
16779 case "(($ac_try" in
16780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781   *) ac_try_echo=$ac_try;;
16782 esac
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784   (eval "$ac_compile") 2>conftest.er1
16785   ac_status=$?
16786   grep -v '^ *+' conftest.er1 >conftest.err
16787   rm -f conftest.er1
16788   cat conftest.err >&5
16789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790   (exit $ac_status); } &&
16791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16792   { (case "(($ac_try" in
16793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794   *) ac_try_echo=$ac_try;;
16795 esac
16796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797   (eval "$ac_try") 2>&5
16798   ac_status=$?
16799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800   (exit $ac_status); }; } &&
16801          { ac_try='test -s conftest.$ac_objext'
16802   { (case "(($ac_try" in
16803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804   *) ac_try_echo=$ac_try;;
16805 esac
16806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807   (eval "$ac_try") 2>&5
16808   ac_status=$?
16809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810   (exit $ac_status); }; }; then
16811   ac_header_compiler=yes
16812 else
16813   echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16815
16816         ac_header_compiler=no
16817 fi
16818
16819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16821 echo "${ECHO_T}$ac_header_compiler" >&6; }
16822
16823 # Is the header present?
16824 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16826 cat >conftest.$ac_ext <<_ACEOF
16827 /* confdefs.h.  */
16828 _ACEOF
16829 cat confdefs.h >>conftest.$ac_ext
16830 cat >>conftest.$ac_ext <<_ACEOF
16831 /* end confdefs.h.  */
16832 #include <$ac_header>
16833 _ACEOF
16834 if { (ac_try="$ac_cpp conftest.$ac_ext"
16835 case "(($ac_try" in
16836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837   *) ac_try_echo=$ac_try;;
16838 esac
16839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16841   ac_status=$?
16842   grep -v '^ *+' conftest.er1 >conftest.err
16843   rm -f conftest.er1
16844   cat conftest.err >&5
16845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846   (exit $ac_status); } >/dev/null; then
16847   if test -s conftest.err; then
16848     ac_cpp_err=$ac_c_preproc_warn_flag
16849     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16850   else
16851     ac_cpp_err=
16852   fi
16853 else
16854   ac_cpp_err=yes
16855 fi
16856 if test -z "$ac_cpp_err"; then
16857   ac_header_preproc=yes
16858 else
16859   echo "$as_me: failed program was:" >&5
16860 sed 's/^/| /' conftest.$ac_ext >&5
16861
16862   ac_header_preproc=no
16863 fi
16864
16865 rm -f conftest.err conftest.$ac_ext
16866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16867 echo "${ECHO_T}$ac_header_preproc" >&6; }
16868
16869 # So?  What about this header?
16870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16871   yes:no: )
16872     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16874     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16876     ac_header_preproc=yes
16877     ;;
16878   no:yes:* )
16879     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16881     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16882 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16883     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16885     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16886 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16887     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16889     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16891     ( cat <<\_ASBOX
16892 ## ----------------------------------- ##
16893 ## Report this to llvmbugs@cs.uiuc.edu ##
16894 ## ----------------------------------- ##
16895 _ASBOX
16896      ) | sed "s/^/$as_me: WARNING:     /" >&2
16897     ;;
16898 esac
16899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16902   echo $ECHO_N "(cached) $ECHO_C" >&6
16903 else
16904   eval "$as_ac_Header=\$ac_header_preproc"
16905 fi
16906 ac_res=`eval echo '${'$as_ac_Header'}'`
16907                { echo "$as_me:$LINENO: result: $ac_res" >&5
16908 echo "${ECHO_T}$ac_res" >&6; }
16909
16910 fi
16911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16912   cat >>confdefs.h <<_ACEOF
16913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16914 _ACEOF
16915
16916 fi
16917
16918 done
16919
16920 fi
16921
16922
16923
16924
16925   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16926 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16927 if test "${ac_cv_huge_val_sanity+set}" = set; then
16928   echo $ECHO_N "(cached) $ECHO_C" >&6
16929 else
16930
16931     ac_ext=cpp
16932 ac_cpp='$CXXCPP $CPPFLAGS'
16933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16936
16937     ac_save_CXXFLAGS=$CXXFLAGS
16938     CXXFLAGS=-pedantic
16939     if test "$cross_compiling" = yes; then
16940   ac_cv_huge_val_sanity=yes
16941 else
16942   cat >conftest.$ac_ext <<_ACEOF
16943 /* confdefs.h.  */
16944 _ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h.  */
16948 #include <math.h>
16949 int
16950 main ()
16951 {
16952 double x = HUGE_VAL; return x != x;
16953   ;
16954   return 0;
16955 }
16956 _ACEOF
16957 rm -f conftest$ac_exeext
16958 if { (ac_try="$ac_link"
16959 case "(($ac_try" in
16960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961   *) ac_try_echo=$ac_try;;
16962 esac
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964   (eval "$ac_link") 2>&5
16965   ac_status=$?
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16968   { (case "(($ac_try" in
16969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970   *) ac_try_echo=$ac_try;;
16971 esac
16972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16973   (eval "$ac_try") 2>&5
16974   ac_status=$?
16975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976   (exit $ac_status); }; }; then
16977   ac_cv_huge_val_sanity=yes
16978 else
16979   echo "$as_me: program exited with status $ac_status" >&5
16980 echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16982
16983 ( exit $ac_status )
16984 ac_cv_huge_val_sanity=no
16985 fi
16986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16987 fi
16988
16989
16990     CXXFLAGS=$ac_save_CXXFLAGS
16991     ac_ext=c
16992 ac_cpp='$CPP $CPPFLAGS'
16993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16996
16997
16998 fi
16999 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17000 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17001   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17002
17003
17004 { echo "$as_me:$LINENO: checking for pid_t" >&5
17005 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17006 if test "${ac_cv_type_pid_t+set}" = set; then
17007   echo $ECHO_N "(cached) $ECHO_C" >&6
17008 else
17009   cat >conftest.$ac_ext <<_ACEOF
17010 /* confdefs.h.  */
17011 _ACEOF
17012 cat confdefs.h >>conftest.$ac_ext
17013 cat >>conftest.$ac_ext <<_ACEOF
17014 /* end confdefs.h.  */
17015 $ac_includes_default
17016 typedef pid_t ac__type_new_;
17017 int
17018 main ()
17019 {
17020 if ((ac__type_new_ *) 0)
17021   return 0;
17022 if (sizeof (ac__type_new_))
17023   return 0;
17024   ;
17025   return 0;
17026 }
17027 _ACEOF
17028 rm -f conftest.$ac_objext
17029 if { (ac_try="$ac_compile"
17030 case "(($ac_try" in
17031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032   *) ac_try_echo=$ac_try;;
17033 esac
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035   (eval "$ac_compile") 2>conftest.er1
17036   ac_status=$?
17037   grep -v '^ *+' conftest.er1 >conftest.err
17038   rm -f conftest.er1
17039   cat conftest.err >&5
17040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041   (exit $ac_status); } &&
17042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17043   { (case "(($ac_try" in
17044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045   *) ac_try_echo=$ac_try;;
17046 esac
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048   (eval "$ac_try") 2>&5
17049   ac_status=$?
17050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051   (exit $ac_status); }; } &&
17052          { ac_try='test -s conftest.$ac_objext'
17053   { (case "(($ac_try" in
17054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055   *) ac_try_echo=$ac_try;;
17056 esac
17057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058   (eval "$ac_try") 2>&5
17059   ac_status=$?
17060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061   (exit $ac_status); }; }; then
17062   ac_cv_type_pid_t=yes
17063 else
17064   echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17066
17067         ac_cv_type_pid_t=no
17068 fi
17069
17070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17071 fi
17072 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17073 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17074 if test $ac_cv_type_pid_t = yes; then
17075   :
17076 else
17077
17078 cat >>confdefs.h <<_ACEOF
17079 #define pid_t int
17080 _ACEOF
17081
17082 fi
17083
17084 { echo "$as_me:$LINENO: checking for size_t" >&5
17085 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17086 if test "${ac_cv_type_size_t+set}" = set; then
17087   echo $ECHO_N "(cached) $ECHO_C" >&6
17088 else
17089   cat >conftest.$ac_ext <<_ACEOF
17090 /* confdefs.h.  */
17091 _ACEOF
17092 cat confdefs.h >>conftest.$ac_ext
17093 cat >>conftest.$ac_ext <<_ACEOF
17094 /* end confdefs.h.  */
17095 $ac_includes_default
17096 typedef size_t ac__type_new_;
17097 int
17098 main ()
17099 {
17100 if ((ac__type_new_ *) 0)
17101   return 0;
17102 if (sizeof (ac__type_new_))
17103   return 0;
17104   ;
17105   return 0;
17106 }
17107 _ACEOF
17108 rm -f conftest.$ac_objext
17109 if { (ac_try="$ac_compile"
17110 case "(($ac_try" in
17111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112   *) ac_try_echo=$ac_try;;
17113 esac
17114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115   (eval "$ac_compile") 2>conftest.er1
17116   ac_status=$?
17117   grep -v '^ *+' conftest.er1 >conftest.err
17118   rm -f conftest.er1
17119   cat conftest.err >&5
17120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121   (exit $ac_status); } &&
17122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17123   { (case "(($ac_try" in
17124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125   *) ac_try_echo=$ac_try;;
17126 esac
17127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128   (eval "$ac_try") 2>&5
17129   ac_status=$?
17130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131   (exit $ac_status); }; } &&
17132          { ac_try='test -s conftest.$ac_objext'
17133   { (case "(($ac_try" in
17134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17135   *) ac_try_echo=$ac_try;;
17136 esac
17137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17138   (eval "$ac_try") 2>&5
17139   ac_status=$?
17140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141   (exit $ac_status); }; }; then
17142   ac_cv_type_size_t=yes
17143 else
17144   echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17146
17147         ac_cv_type_size_t=no
17148 fi
17149
17150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17151 fi
17152 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17153 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17154 if test $ac_cv_type_size_t = yes; then
17155   :
17156 else
17157
17158 cat >>confdefs.h <<_ACEOF
17159 #define size_t unsigned int
17160 _ACEOF
17161
17162 fi
17163
17164
17165 cat >>confdefs.h <<_ACEOF
17166 #define RETSIGTYPE void
17167 _ACEOF
17168
17169 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17170 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17171 if test "${ac_cv_struct_tm+set}" = set; then
17172   echo $ECHO_N "(cached) $ECHO_C" >&6
17173 else
17174   cat >conftest.$ac_ext <<_ACEOF
17175 /* confdefs.h.  */
17176 _ACEOF
17177 cat confdefs.h >>conftest.$ac_ext
17178 cat >>conftest.$ac_ext <<_ACEOF
17179 /* end confdefs.h.  */
17180 #include <sys/types.h>
17181 #include <time.h>
17182
17183 int
17184 main ()
17185 {
17186 struct tm *tp; tp->tm_sec;
17187   ;
17188   return 0;
17189 }
17190 _ACEOF
17191 rm -f conftest.$ac_objext
17192 if { (ac_try="$ac_compile"
17193 case "(($ac_try" in
17194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195   *) ac_try_echo=$ac_try;;
17196 esac
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198   (eval "$ac_compile") 2>conftest.er1
17199   ac_status=$?
17200   grep -v '^ *+' conftest.er1 >conftest.err
17201   rm -f conftest.er1
17202   cat conftest.err >&5
17203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204   (exit $ac_status); } &&
17205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17206   { (case "(($ac_try" in
17207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208   *) ac_try_echo=$ac_try;;
17209 esac
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211   (eval "$ac_try") 2>&5
17212   ac_status=$?
17213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214   (exit $ac_status); }; } &&
17215          { ac_try='test -s conftest.$ac_objext'
17216   { (case "(($ac_try" in
17217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218   *) ac_try_echo=$ac_try;;
17219 esac
17220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17221   (eval "$ac_try") 2>&5
17222   ac_status=$?
17223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224   (exit $ac_status); }; }; then
17225   ac_cv_struct_tm=time.h
17226 else
17227   echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17229
17230         ac_cv_struct_tm=sys/time.h
17231 fi
17232
17233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17234 fi
17235 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17236 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17237 if test $ac_cv_struct_tm = sys/time.h; then
17238
17239 cat >>confdefs.h <<\_ACEOF
17240 #define TM_IN_SYS_TIME 1
17241 _ACEOF
17242
17243 fi
17244
17245 { echo "$as_me:$LINENO: checking for int64_t" >&5
17246 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17247 if test "${ac_cv_type_int64_t+set}" = set; then
17248   echo $ECHO_N "(cached) $ECHO_C" >&6
17249 else
17250   cat >conftest.$ac_ext <<_ACEOF
17251 /* confdefs.h.  */
17252 _ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h.  */
17256 $ac_includes_default
17257 typedef int64_t ac__type_new_;
17258 int
17259 main ()
17260 {
17261 if ((ac__type_new_ *) 0)
17262   return 0;
17263 if (sizeof (ac__type_new_))
17264   return 0;
17265   ;
17266   return 0;
17267 }
17268 _ACEOF
17269 rm -f conftest.$ac_objext
17270 if { (ac_try="$ac_compile"
17271 case "(($ac_try" in
17272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273   *) ac_try_echo=$ac_try;;
17274 esac
17275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17276   (eval "$ac_compile") 2>conftest.er1
17277   ac_status=$?
17278   grep -v '^ *+' conftest.er1 >conftest.err
17279   rm -f conftest.er1
17280   cat conftest.err >&5
17281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282   (exit $ac_status); } &&
17283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17284   { (case "(($ac_try" in
17285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286   *) ac_try_echo=$ac_try;;
17287 esac
17288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289   (eval "$ac_try") 2>&5
17290   ac_status=$?
17291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292   (exit $ac_status); }; } &&
17293          { ac_try='test -s conftest.$ac_objext'
17294   { (case "(($ac_try" in
17295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296   *) ac_try_echo=$ac_try;;
17297 esac
17298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299   (eval "$ac_try") 2>&5
17300   ac_status=$?
17301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302   (exit $ac_status); }; }; then
17303   ac_cv_type_int64_t=yes
17304 else
17305   echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.$ac_ext >&5
17307
17308         ac_cv_type_int64_t=no
17309 fi
17310
17311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17312 fi
17313 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17314 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17315 if test $ac_cv_type_int64_t = yes; then
17316
17317 cat >>confdefs.h <<_ACEOF
17318 #define HAVE_INT64_T 1
17319 _ACEOF
17320
17321
17322 else
17323   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17324 echo "$as_me: error: Type int64_t required but not found" >&2;}
17325    { (exit 1); exit 1; }; }
17326 fi
17327
17328 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17329 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17330 if test "${ac_cv_type_uint64_t+set}" = set; then
17331   echo $ECHO_N "(cached) $ECHO_C" >&6
17332 else
17333   cat >conftest.$ac_ext <<_ACEOF
17334 /* confdefs.h.  */
17335 _ACEOF
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h.  */
17339 $ac_includes_default
17340 typedef uint64_t ac__type_new_;
17341 int
17342 main ()
17343 {
17344 if ((ac__type_new_ *) 0)
17345   return 0;
17346 if (sizeof (ac__type_new_))
17347   return 0;
17348   ;
17349   return 0;
17350 }
17351 _ACEOF
17352 rm -f conftest.$ac_objext
17353 if { (ac_try="$ac_compile"
17354 case "(($ac_try" in
17355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356   *) ac_try_echo=$ac_try;;
17357 esac
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359   (eval "$ac_compile") 2>conftest.er1
17360   ac_status=$?
17361   grep -v '^ *+' conftest.er1 >conftest.err
17362   rm -f conftest.er1
17363   cat conftest.err >&5
17364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365   (exit $ac_status); } &&
17366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17367   { (case "(($ac_try" in
17368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369   *) ac_try_echo=$ac_try;;
17370 esac
17371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17372   (eval "$ac_try") 2>&5
17373   ac_status=$?
17374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375   (exit $ac_status); }; } &&
17376          { ac_try='test -s conftest.$ac_objext'
17377   { (case "(($ac_try" in
17378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379   *) ac_try_echo=$ac_try;;
17380 esac
17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382   (eval "$ac_try") 2>&5
17383   ac_status=$?
17384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385   (exit $ac_status); }; }; then
17386   ac_cv_type_uint64_t=yes
17387 else
17388   echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17390
17391         ac_cv_type_uint64_t=no
17392 fi
17393
17394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17395 fi
17396 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17397 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17398 if test $ac_cv_type_uint64_t = yes; then
17399
17400 cat >>confdefs.h <<_ACEOF
17401 #define HAVE_UINT64_T 1
17402 _ACEOF
17403
17404
17405 else
17406   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17407 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17408 if test "${ac_cv_type_u_int64_t+set}" = set; then
17409   echo $ECHO_N "(cached) $ECHO_C" >&6
17410 else
17411   cat >conftest.$ac_ext <<_ACEOF
17412 /* confdefs.h.  */
17413 _ACEOF
17414 cat confdefs.h >>conftest.$ac_ext
17415 cat >>conftest.$ac_ext <<_ACEOF
17416 /* end confdefs.h.  */
17417 $ac_includes_default
17418 typedef u_int64_t ac__type_new_;
17419 int
17420 main ()
17421 {
17422 if ((ac__type_new_ *) 0)
17423   return 0;
17424 if (sizeof (ac__type_new_))
17425   return 0;
17426   ;
17427   return 0;
17428 }
17429 _ACEOF
17430 rm -f conftest.$ac_objext
17431 if { (ac_try="$ac_compile"
17432 case "(($ac_try" in
17433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434   *) ac_try_echo=$ac_try;;
17435 esac
17436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437   (eval "$ac_compile") 2>conftest.er1
17438   ac_status=$?
17439   grep -v '^ *+' conftest.er1 >conftest.err
17440   rm -f conftest.er1
17441   cat conftest.err >&5
17442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443   (exit $ac_status); } &&
17444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17445   { (case "(($ac_try" in
17446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447   *) ac_try_echo=$ac_try;;
17448 esac
17449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450   (eval "$ac_try") 2>&5
17451   ac_status=$?
17452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453   (exit $ac_status); }; } &&
17454          { ac_try='test -s conftest.$ac_objext'
17455   { (case "(($ac_try" in
17456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457   *) ac_try_echo=$ac_try;;
17458 esac
17459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460   (eval "$ac_try") 2>&5
17461   ac_status=$?
17462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463   (exit $ac_status); }; }; then
17464   ac_cv_type_u_int64_t=yes
17465 else
17466   echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17468
17469         ac_cv_type_u_int64_t=no
17470 fi
17471
17472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17473 fi
17474 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17475 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17476 if test $ac_cv_type_u_int64_t = yes; then
17477
17478 cat >>confdefs.h <<_ACEOF
17479 #define HAVE_U_INT64_T 1
17480 _ACEOF
17481
17482
17483 else
17484   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17485 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17486    { (exit 1); exit 1; }; }
17487 fi
17488
17489 fi
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17501 do
17502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17506   echo $ECHO_N "(cached) $ECHO_C" >&6
17507 else
17508   cat >conftest.$ac_ext <<_ACEOF
17509 /* confdefs.h.  */
17510 _ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h.  */
17514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17516 #define $ac_func innocuous_$ac_func
17517
17518 /* System header to define __stub macros and hopefully few prototypes,
17519     which can conflict with char $ac_func (); below.
17520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17521     <limits.h> exists even on freestanding compilers.  */
17522
17523 #ifdef __STDC__
17524 # include <limits.h>
17525 #else
17526 # include <assert.h>
17527 #endif
17528
17529 #undef $ac_func
17530
17531 /* Override any GCC internal prototype to avoid an error.
17532    Use char because int might match the return type of a GCC
17533    builtin and then its argument prototype would still apply.  */
17534 #ifdef __cplusplus
17535 extern "C"
17536 #endif
17537 char $ac_func ();
17538 /* The GNU C library defines this for functions which it implements
17539     to always fail with ENOSYS.  Some functions are actually named
17540     something starting with __ and the normal name is an alias.  */
17541 #if defined __stub_$ac_func || defined __stub___$ac_func
17542 choke me
17543 #endif
17544
17545 int
17546 main ()
17547 {
17548 return $ac_func ();
17549   ;
17550   return 0;
17551 }
17552 _ACEOF
17553 rm -f conftest.$ac_objext conftest$ac_exeext
17554 if { (ac_try="$ac_link"
17555 case "(($ac_try" in
17556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557   *) ac_try_echo=$ac_try;;
17558 esac
17559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17560   (eval "$ac_link") 2>conftest.er1
17561   ac_status=$?
17562   grep -v '^ *+' conftest.er1 >conftest.err
17563   rm -f conftest.er1
17564   cat conftest.err >&5
17565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566   (exit $ac_status); } &&
17567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17568   { (case "(($ac_try" in
17569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570   *) ac_try_echo=$ac_try;;
17571 esac
17572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573   (eval "$ac_try") 2>&5
17574   ac_status=$?
17575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576   (exit $ac_status); }; } &&
17577          { ac_try='test -s conftest$ac_exeext'
17578   { (case "(($ac_try" in
17579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580   *) ac_try_echo=$ac_try;;
17581 esac
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583   (eval "$ac_try") 2>&5
17584   ac_status=$?
17585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586   (exit $ac_status); }; }; then
17587   eval "$as_ac_var=yes"
17588 else
17589   echo "$as_me: failed program was:" >&5
17590 sed 's/^/| /' conftest.$ac_ext >&5
17591
17592         eval "$as_ac_var=no"
17593 fi
17594
17595 rm -f core conftest.err conftest.$ac_objext \
17596       conftest$ac_exeext conftest.$ac_ext
17597 fi
17598 ac_res=`eval echo '${'$as_ac_var'}'`
17599                { echo "$as_me:$LINENO: result: $ac_res" >&5
17600 echo "${ECHO_T}$ac_res" >&6; }
17601 if test `eval echo '${'$as_ac_var'}'` = yes; then
17602   cat >>confdefs.h <<_ACEOF
17603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17604 _ACEOF
17605
17606 fi
17607 done
17608
17609
17610
17611
17612
17613 for ac_func in powf fmodf strtof round
17614 do
17615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17619   echo $ECHO_N "(cached) $ECHO_C" >&6
17620 else
17621   cat >conftest.$ac_ext <<_ACEOF
17622 /* confdefs.h.  */
17623 _ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h.  */
17627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17629 #define $ac_func innocuous_$ac_func
17630
17631 /* System header to define __stub macros and hopefully few prototypes,
17632     which can conflict with char $ac_func (); below.
17633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17634     <limits.h> exists even on freestanding compilers.  */
17635
17636 #ifdef __STDC__
17637 # include <limits.h>
17638 #else
17639 # include <assert.h>
17640 #endif
17641
17642 #undef $ac_func
17643
17644 /* Override any GCC internal prototype to avoid an error.
17645    Use char because int might match the return type of a GCC
17646    builtin and then its argument prototype would still apply.  */
17647 #ifdef __cplusplus
17648 extern "C"
17649 #endif
17650 char $ac_func ();
17651 /* The GNU C library defines this for functions which it implements
17652     to always fail with ENOSYS.  Some functions are actually named
17653     something starting with __ and the normal name is an alias.  */
17654 #if defined __stub_$ac_func || defined __stub___$ac_func
17655 choke me
17656 #endif
17657
17658 int
17659 main ()
17660 {
17661 return $ac_func ();
17662   ;
17663   return 0;
17664 }
17665 _ACEOF
17666 rm -f conftest.$ac_objext conftest$ac_exeext
17667 if { (ac_try="$ac_link"
17668 case "(($ac_try" in
17669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670   *) ac_try_echo=$ac_try;;
17671 esac
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673   (eval "$ac_link") 2>conftest.er1
17674   ac_status=$?
17675   grep -v '^ *+' conftest.er1 >conftest.err
17676   rm -f conftest.er1
17677   cat conftest.err >&5
17678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679   (exit $ac_status); } &&
17680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17681   { (case "(($ac_try" in
17682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683   *) ac_try_echo=$ac_try;;
17684 esac
17685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686   (eval "$ac_try") 2>&5
17687   ac_status=$?
17688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); }; } &&
17690          { ac_try='test -s conftest$ac_exeext'
17691   { (case "(($ac_try" in
17692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17693   *) ac_try_echo=$ac_try;;
17694 esac
17695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17696   (eval "$ac_try") 2>&5
17697   ac_status=$?
17698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699   (exit $ac_status); }; }; then
17700   eval "$as_ac_var=yes"
17701 else
17702   echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17704
17705         eval "$as_ac_var=no"
17706 fi
17707
17708 rm -f core conftest.err conftest.$ac_objext \
17709       conftest$ac_exeext conftest.$ac_ext
17710 fi
17711 ac_res=`eval echo '${'$as_ac_var'}'`
17712                { echo "$as_me:$LINENO: result: $ac_res" >&5
17713 echo "${ECHO_T}$ac_res" >&6; }
17714 if test `eval echo '${'$as_ac_var'}'` = yes; then
17715   cat >>confdefs.h <<_ACEOF
17716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17717 _ACEOF
17718
17719 fi
17720 done
17721
17722
17723
17724
17725
17726
17727 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17728 do
17729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17733   echo $ECHO_N "(cached) $ECHO_C" >&6
17734 else
17735   cat >conftest.$ac_ext <<_ACEOF
17736 /* confdefs.h.  */
17737 _ACEOF
17738 cat confdefs.h >>conftest.$ac_ext
17739 cat >>conftest.$ac_ext <<_ACEOF
17740 /* end confdefs.h.  */
17741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17743 #define $ac_func innocuous_$ac_func
17744
17745 /* System header to define __stub macros and hopefully few prototypes,
17746     which can conflict with char $ac_func (); below.
17747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17748     <limits.h> exists even on freestanding compilers.  */
17749
17750 #ifdef __STDC__
17751 # include <limits.h>
17752 #else
17753 # include <assert.h>
17754 #endif
17755
17756 #undef $ac_func
17757
17758 /* Override any GCC internal prototype to avoid an error.
17759    Use char because int might match the return type of a GCC
17760    builtin and then its argument prototype would still apply.  */
17761 #ifdef __cplusplus
17762 extern "C"
17763 #endif
17764 char $ac_func ();
17765 /* The GNU C library defines this for functions which it implements
17766     to always fail with ENOSYS.  Some functions are actually named
17767     something starting with __ and the normal name is an alias.  */
17768 #if defined __stub_$ac_func || defined __stub___$ac_func
17769 choke me
17770 #endif
17771
17772 int
17773 main ()
17774 {
17775 return $ac_func ();
17776   ;
17777   return 0;
17778 }
17779 _ACEOF
17780 rm -f conftest.$ac_objext conftest$ac_exeext
17781 if { (ac_try="$ac_link"
17782 case "(($ac_try" in
17783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17784   *) ac_try_echo=$ac_try;;
17785 esac
17786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17787   (eval "$ac_link") 2>conftest.er1
17788   ac_status=$?
17789   grep -v '^ *+' conftest.er1 >conftest.err
17790   rm -f conftest.er1
17791   cat conftest.err >&5
17792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); } &&
17794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17795   { (case "(($ac_try" in
17796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797   *) ac_try_echo=$ac_try;;
17798 esac
17799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17800   (eval "$ac_try") 2>&5
17801   ac_status=$?
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); }; } &&
17804          { ac_try='test -s conftest$ac_exeext'
17805   { (case "(($ac_try" in
17806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807   *) ac_try_echo=$ac_try;;
17808 esac
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810   (eval "$ac_try") 2>&5
17811   ac_status=$?
17812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813   (exit $ac_status); }; }; then
17814   eval "$as_ac_var=yes"
17815 else
17816   echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.$ac_ext >&5
17818
17819         eval "$as_ac_var=no"
17820 fi
17821
17822 rm -f core conftest.err conftest.$ac_objext \
17823       conftest$ac_exeext conftest.$ac_ext
17824 fi
17825 ac_res=`eval echo '${'$as_ac_var'}'`
17826                { echo "$as_me:$LINENO: result: $ac_res" >&5
17827 echo "${ECHO_T}$ac_res" >&6; }
17828 if test `eval echo '${'$as_ac_var'}'` = yes; then
17829   cat >>confdefs.h <<_ACEOF
17830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17831 _ACEOF
17832
17833 fi
17834 done
17835
17836
17837
17838
17839 for ac_func in isatty mkdtemp mkstemp
17840 do
17841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17845   echo $ECHO_N "(cached) $ECHO_C" >&6
17846 else
17847   cat >conftest.$ac_ext <<_ACEOF
17848 /* confdefs.h.  */
17849 _ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h.  */
17853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17855 #define $ac_func innocuous_$ac_func
17856
17857 /* System header to define __stub macros and hopefully few prototypes,
17858     which can conflict with char $ac_func (); below.
17859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17860     <limits.h> exists even on freestanding compilers.  */
17861
17862 #ifdef __STDC__
17863 # include <limits.h>
17864 #else
17865 # include <assert.h>
17866 #endif
17867
17868 #undef $ac_func
17869
17870 /* Override any GCC internal prototype to avoid an error.
17871    Use char because int might match the return type of a GCC
17872    builtin and then its argument prototype would still apply.  */
17873 #ifdef __cplusplus
17874 extern "C"
17875 #endif
17876 char $ac_func ();
17877 /* The GNU C library defines this for functions which it implements
17878     to always fail with ENOSYS.  Some functions are actually named
17879     something starting with __ and the normal name is an alias.  */
17880 #if defined __stub_$ac_func || defined __stub___$ac_func
17881 choke me
17882 #endif
17883
17884 int
17885 main ()
17886 {
17887 return $ac_func ();
17888   ;
17889   return 0;
17890 }
17891 _ACEOF
17892 rm -f conftest.$ac_objext conftest$ac_exeext
17893 if { (ac_try="$ac_link"
17894 case "(($ac_try" in
17895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896   *) ac_try_echo=$ac_try;;
17897 esac
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899   (eval "$ac_link") 2>conftest.er1
17900   ac_status=$?
17901   grep -v '^ *+' conftest.er1 >conftest.err
17902   rm -f conftest.er1
17903   cat conftest.err >&5
17904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905   (exit $ac_status); } &&
17906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17907   { (case "(($ac_try" in
17908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909   *) ac_try_echo=$ac_try;;
17910 esac
17911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912   (eval "$ac_try") 2>&5
17913   ac_status=$?
17914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); }; } &&
17916          { ac_try='test -s conftest$ac_exeext'
17917   { (case "(($ac_try" in
17918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919   *) ac_try_echo=$ac_try;;
17920 esac
17921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17922   (eval "$ac_try") 2>&5
17923   ac_status=$?
17924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); }; }; then
17926   eval "$as_ac_var=yes"
17927 else
17928   echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17930
17931         eval "$as_ac_var=no"
17932 fi
17933
17934 rm -f core conftest.err conftest.$ac_objext \
17935       conftest$ac_exeext conftest.$ac_ext
17936 fi
17937 ac_res=`eval echo '${'$as_ac_var'}'`
17938                { echo "$as_me:$LINENO: result: $ac_res" >&5
17939 echo "${ECHO_T}$ac_res" >&6; }
17940 if test `eval echo '${'$as_ac_var'}'` = yes; then
17941   cat >>confdefs.h <<_ACEOF
17942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17943 _ACEOF
17944
17945 fi
17946 done
17947
17948
17949
17950
17951
17952
17953
17954 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17955 do
17956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17960   echo $ECHO_N "(cached) $ECHO_C" >&6
17961 else
17962   cat >conftest.$ac_ext <<_ACEOF
17963 /* confdefs.h.  */
17964 _ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h.  */
17968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17970 #define $ac_func innocuous_$ac_func
17971
17972 /* System header to define __stub macros and hopefully few prototypes,
17973     which can conflict with char $ac_func (); below.
17974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17975     <limits.h> exists even on freestanding compilers.  */
17976
17977 #ifdef __STDC__
17978 # include <limits.h>
17979 #else
17980 # include <assert.h>
17981 #endif
17982
17983 #undef $ac_func
17984
17985 /* Override any GCC internal prototype to avoid an error.
17986    Use char because int might match the return type of a GCC
17987    builtin and then its argument prototype would still apply.  */
17988 #ifdef __cplusplus
17989 extern "C"
17990 #endif
17991 char $ac_func ();
17992 /* The GNU C library defines this for functions which it implements
17993     to always fail with ENOSYS.  Some functions are actually named
17994     something starting with __ and the normal name is an alias.  */
17995 #if defined __stub_$ac_func || defined __stub___$ac_func
17996 choke me
17997 #endif
17998
17999 int
18000 main ()
18001 {
18002 return $ac_func ();
18003   ;
18004   return 0;
18005 }
18006 _ACEOF
18007 rm -f conftest.$ac_objext conftest$ac_exeext
18008 if { (ac_try="$ac_link"
18009 case "(($ac_try" in
18010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011   *) ac_try_echo=$ac_try;;
18012 esac
18013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18014   (eval "$ac_link") 2>conftest.er1
18015   ac_status=$?
18016   grep -v '^ *+' conftest.er1 >conftest.err
18017   rm -f conftest.er1
18018   cat conftest.err >&5
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); } &&
18021          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18022   { (case "(($ac_try" in
18023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024   *) ac_try_echo=$ac_try;;
18025 esac
18026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027   (eval "$ac_try") 2>&5
18028   ac_status=$?
18029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030   (exit $ac_status); }; } &&
18031          { ac_try='test -s conftest$ac_exeext'
18032   { (case "(($ac_try" in
18033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18034   *) ac_try_echo=$ac_try;;
18035 esac
18036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18037   (eval "$ac_try") 2>&5
18038   ac_status=$?
18039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040   (exit $ac_status); }; }; then
18041   eval "$as_ac_var=yes"
18042 else
18043   echo "$as_me: failed program was:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18045
18046         eval "$as_ac_var=no"
18047 fi
18048
18049 rm -f core conftest.err conftest.$ac_objext \
18050       conftest$ac_exeext conftest.$ac_ext
18051 fi
18052 ac_res=`eval echo '${'$as_ac_var'}'`
18053                { echo "$as_me:$LINENO: result: $ac_res" >&5
18054 echo "${ECHO_T}$ac_res" >&6; }
18055 if test `eval echo '${'$as_ac_var'}'` = yes; then
18056   cat >>confdefs.h <<_ACEOF
18057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18058 _ACEOF
18059
18060 fi
18061 done
18062
18063
18064
18065
18066
18067 for ac_func in strerror strerror_r strerror_s setenv
18068 do
18069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18070 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18073   echo $ECHO_N "(cached) $ECHO_C" >&6
18074 else
18075   cat >conftest.$ac_ext <<_ACEOF
18076 /* confdefs.h.  */
18077 _ACEOF
18078 cat confdefs.h >>conftest.$ac_ext
18079 cat >>conftest.$ac_ext <<_ACEOF
18080 /* end confdefs.h.  */
18081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18083 #define $ac_func innocuous_$ac_func
18084
18085 /* System header to define __stub macros and hopefully few prototypes,
18086     which can conflict with char $ac_func (); below.
18087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18088     <limits.h> exists even on freestanding compilers.  */
18089
18090 #ifdef __STDC__
18091 # include <limits.h>
18092 #else
18093 # include <assert.h>
18094 #endif
18095
18096 #undef $ac_func
18097
18098 /* Override any GCC internal prototype to avoid an error.
18099    Use char because int might match the return type of a GCC
18100    builtin and then its argument prototype would still apply.  */
18101 #ifdef __cplusplus
18102 extern "C"
18103 #endif
18104 char $ac_func ();
18105 /* The GNU C library defines this for functions which it implements
18106     to always fail with ENOSYS.  Some functions are actually named
18107     something starting with __ and the normal name is an alias.  */
18108 #if defined __stub_$ac_func || defined __stub___$ac_func
18109 choke me
18110 #endif
18111
18112 int
18113 main ()
18114 {
18115 return $ac_func ();
18116   ;
18117   return 0;
18118 }
18119 _ACEOF
18120 rm -f conftest.$ac_objext conftest$ac_exeext
18121 if { (ac_try="$ac_link"
18122 case "(($ac_try" in
18123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124   *) ac_try_echo=$ac_try;;
18125 esac
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127   (eval "$ac_link") 2>conftest.er1
18128   ac_status=$?
18129   grep -v '^ *+' conftest.er1 >conftest.err
18130   rm -f conftest.er1
18131   cat conftest.err >&5
18132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133   (exit $ac_status); } &&
18134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18135   { (case "(($ac_try" in
18136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18137   *) ac_try_echo=$ac_try;;
18138 esac
18139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18140   (eval "$ac_try") 2>&5
18141   ac_status=$?
18142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143   (exit $ac_status); }; } &&
18144          { ac_try='test -s conftest$ac_exeext'
18145   { (case "(($ac_try" in
18146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18147   *) ac_try_echo=$ac_try;;
18148 esac
18149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18150   (eval "$ac_try") 2>&5
18151   ac_status=$?
18152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153   (exit $ac_status); }; }; then
18154   eval "$as_ac_var=yes"
18155 else
18156   echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18158
18159         eval "$as_ac_var=no"
18160 fi
18161
18162 rm -f core conftest.err conftest.$ac_objext \
18163       conftest$ac_exeext conftest.$ac_ext
18164 fi
18165 ac_res=`eval echo '${'$as_ac_var'}'`
18166                { echo "$as_me:$LINENO: result: $ac_res" >&5
18167 echo "${ECHO_T}$ac_res" >&6; }
18168 if test `eval echo '${'$as_ac_var'}'` = yes; then
18169   cat >>confdefs.h <<_ACEOF
18170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18171 _ACEOF
18172
18173 fi
18174 done
18175
18176
18177
18178
18179
18180 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18181 do
18182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18186   echo $ECHO_N "(cached) $ECHO_C" >&6
18187 else
18188   cat >conftest.$ac_ext <<_ACEOF
18189 /* confdefs.h.  */
18190 _ACEOF
18191 cat confdefs.h >>conftest.$ac_ext
18192 cat >>conftest.$ac_ext <<_ACEOF
18193 /* end confdefs.h.  */
18194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18196 #define $ac_func innocuous_$ac_func
18197
18198 /* System header to define __stub macros and hopefully few prototypes,
18199     which can conflict with char $ac_func (); below.
18200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18201     <limits.h> exists even on freestanding compilers.  */
18202
18203 #ifdef __STDC__
18204 # include <limits.h>
18205 #else
18206 # include <assert.h>
18207 #endif
18208
18209 #undef $ac_func
18210
18211 /* Override any GCC internal prototype to avoid an error.
18212    Use char because int might match the return type of a GCC
18213    builtin and then its argument prototype would still apply.  */
18214 #ifdef __cplusplus
18215 extern "C"
18216 #endif
18217 char $ac_func ();
18218 /* The GNU C library defines this for functions which it implements
18219     to always fail with ENOSYS.  Some functions are actually named
18220     something starting with __ and the normal name is an alias.  */
18221 #if defined __stub_$ac_func || defined __stub___$ac_func
18222 choke me
18223 #endif
18224
18225 int
18226 main ()
18227 {
18228 return $ac_func ();
18229   ;
18230   return 0;
18231 }
18232 _ACEOF
18233 rm -f conftest.$ac_objext conftest$ac_exeext
18234 if { (ac_try="$ac_link"
18235 case "(($ac_try" in
18236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237   *) ac_try_echo=$ac_try;;
18238 esac
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240   (eval "$ac_link") 2>conftest.er1
18241   ac_status=$?
18242   grep -v '^ *+' conftest.er1 >conftest.err
18243   rm -f conftest.er1
18244   cat conftest.err >&5
18245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246   (exit $ac_status); } &&
18247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18248   { (case "(($ac_try" in
18249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18250   *) ac_try_echo=$ac_try;;
18251 esac
18252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18253   (eval "$ac_try") 2>&5
18254   ac_status=$?
18255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256   (exit $ac_status); }; } &&
18257          { ac_try='test -s conftest$ac_exeext'
18258   { (case "(($ac_try" in
18259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260   *) ac_try_echo=$ac_try;;
18261 esac
18262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18263   (eval "$ac_try") 2>&5
18264   ac_status=$?
18265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266   (exit $ac_status); }; }; then
18267   eval "$as_ac_var=yes"
18268 else
18269   echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18271
18272         eval "$as_ac_var=no"
18273 fi
18274
18275 rm -f core conftest.err conftest.$ac_objext \
18276       conftest$ac_exeext conftest.$ac_ext
18277 fi
18278 ac_res=`eval echo '${'$as_ac_var'}'`
18279                { echo "$as_me:$LINENO: result: $ac_res" >&5
18280 echo "${ECHO_T}$ac_res" >&6; }
18281 if test `eval echo '${'$as_ac_var'}'` = yes; then
18282   cat >>confdefs.h <<_ACEOF
18283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18284 _ACEOF
18285
18286 fi
18287 done
18288
18289
18290
18291
18292
18293 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18294 do
18295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18296 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18299   echo $ECHO_N "(cached) $ECHO_C" >&6
18300 else
18301   cat >conftest.$ac_ext <<_ACEOF
18302 /* confdefs.h.  */
18303 _ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h.  */
18307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18309 #define $ac_func innocuous_$ac_func
18310
18311 /* System header to define __stub macros and hopefully few prototypes,
18312     which can conflict with char $ac_func (); below.
18313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18314     <limits.h> exists even on freestanding compilers.  */
18315
18316 #ifdef __STDC__
18317 # include <limits.h>
18318 #else
18319 # include <assert.h>
18320 #endif
18321
18322 #undef $ac_func
18323
18324 /* Override any GCC internal prototype to avoid an error.
18325    Use char because int might match the return type of a GCC
18326    builtin and then its argument prototype would still apply.  */
18327 #ifdef __cplusplus
18328 extern "C"
18329 #endif
18330 char $ac_func ();
18331 /* The GNU C library defines this for functions which it implements
18332     to always fail with ENOSYS.  Some functions are actually named
18333     something starting with __ and the normal name is an alias.  */
18334 #if defined __stub_$ac_func || defined __stub___$ac_func
18335 choke me
18336 #endif
18337
18338 int
18339 main ()
18340 {
18341 return $ac_func ();
18342   ;
18343   return 0;
18344 }
18345 _ACEOF
18346 rm -f conftest.$ac_objext conftest$ac_exeext
18347 if { (ac_try="$ac_link"
18348 case "(($ac_try" in
18349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350   *) ac_try_echo=$ac_try;;
18351 esac
18352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353   (eval "$ac_link") 2>conftest.er1
18354   ac_status=$?
18355   grep -v '^ *+' conftest.er1 >conftest.err
18356   rm -f conftest.er1
18357   cat conftest.err >&5
18358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359   (exit $ac_status); } &&
18360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18361   { (case "(($ac_try" in
18362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18363   *) ac_try_echo=$ac_try;;
18364 esac
18365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18366   (eval "$ac_try") 2>&5
18367   ac_status=$?
18368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369   (exit $ac_status); }; } &&
18370          { ac_try='test -s conftest$ac_exeext'
18371   { (case "(($ac_try" in
18372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18373   *) ac_try_echo=$ac_try;;
18374 esac
18375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18376   (eval "$ac_try") 2>&5
18377   ac_status=$?
18378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379   (exit $ac_status); }; }; then
18380   eval "$as_ac_var=yes"
18381 else
18382   echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18384
18385         eval "$as_ac_var=no"
18386 fi
18387
18388 rm -f core conftest.err conftest.$ac_objext \
18389       conftest$ac_exeext conftest.$ac_ext
18390 fi
18391 ac_res=`eval echo '${'$as_ac_var'}'`
18392                { echo "$as_me:$LINENO: result: $ac_res" >&5
18393 echo "${ECHO_T}$ac_res" >&6; }
18394 if test `eval echo '${'$as_ac_var'}'` = yes; then
18395   cat >>confdefs.h <<_ACEOF
18396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18397 _ACEOF
18398
18399 fi
18400 done
18401
18402 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18403 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18404 if test "${llvm_cv_c_printf_a+set}" = set; then
18405   echo $ECHO_N "(cached) $ECHO_C" >&6
18406 else
18407   ac_ext=c
18408 ac_cpp='$CPP $CPPFLAGS'
18409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18412
18413  if test "$cross_compiling" = yes; then
18414   llvmac_cv_c_printf_a=no
18415 else
18416   cat >conftest.$ac_ext <<_ACEOF
18417
18418   /* confdefs.h.  */
18419 _ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h.  */
18423
18424 #include <stdio.h>
18425 #include <stdlib.h>
18426
18427 int
18428 main ()
18429 {
18430
18431 volatile double A, B;
18432 char Buffer[100];
18433 A = 1;
18434 A /= 10.0;
18435 sprintf(Buffer, "%a", A);
18436 B = atof(Buffer);
18437 if (A != B)
18438   return (1);
18439 if (A != 0x1.999999999999ap-4)
18440   return (1);
18441 return (0);
18442   ;
18443   return 0;
18444 }
18445 _ACEOF
18446 rm -f conftest$ac_exeext
18447 if { (ac_try="$ac_link"
18448 case "(($ac_try" in
18449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450   *) ac_try_echo=$ac_try;;
18451 esac
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453   (eval "$ac_link") 2>&5
18454   ac_status=$?
18455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18457   { (case "(($ac_try" in
18458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459   *) ac_try_echo=$ac_try;;
18460 esac
18461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462   (eval "$ac_try") 2>&5
18463   ac_status=$?
18464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465   (exit $ac_status); }; }; then
18466   llvm_cv_c_printf_a=yes
18467 else
18468   echo "$as_me: program exited with status $ac_status" >&5
18469 echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18471
18472 ( exit $ac_status )
18473 llvmac_cv_c_printf_a=no
18474 fi
18475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18476 fi
18477
18478
18479  ac_ext=c
18480 ac_cpp='$CPP $CPPFLAGS'
18481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18484
18485 fi
18486 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18487 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18488  if test "$llvm_cv_c_printf_a" = "yes"; then
18489
18490 cat >>confdefs.h <<\_ACEOF
18491 #define HAVE_PRINTF_A 1
18492 _ACEOF
18493
18494  fi
18495
18496
18497 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18498 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18499 if test "${ac_cv_func_rand48+set}" = set; then
18500   echo $ECHO_N "(cached) $ECHO_C" >&6
18501 else
18502   ac_ext=cpp
18503 ac_cpp='$CXXCPP $CPPFLAGS'
18504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18507
18508    cat >conftest.$ac_ext <<_ACEOF
18509 /* confdefs.h.  */
18510 _ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h.  */
18514 #include <stdlib.h>
18515 int
18516 main ()
18517 {
18518 srand48(0);lrand48();drand48();
18519   ;
18520   return 0;
18521 }
18522 _ACEOF
18523 rm -f conftest.$ac_objext
18524 if { (ac_try="$ac_compile"
18525 case "(($ac_try" in
18526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527   *) ac_try_echo=$ac_try;;
18528 esac
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530   (eval "$ac_compile") 2>conftest.er1
18531   ac_status=$?
18532   grep -v '^ *+' conftest.er1 >conftest.err
18533   rm -f conftest.er1
18534   cat conftest.err >&5
18535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536   (exit $ac_status); } &&
18537          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18538   { (case "(($ac_try" in
18539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540   *) ac_try_echo=$ac_try;;
18541 esac
18542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543   (eval "$ac_try") 2>&5
18544   ac_status=$?
18545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546   (exit $ac_status); }; } &&
18547          { ac_try='test -s conftest.$ac_objext'
18548   { (case "(($ac_try" in
18549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550   *) ac_try_echo=$ac_try;;
18551 esac
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553   (eval "$ac_try") 2>&5
18554   ac_status=$?
18555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556   (exit $ac_status); }; }; then
18557   ac_cv_func_rand48=yes
18558 else
18559   echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.$ac_ext >&5
18561
18562         ac_cv_func_rand48=no
18563 fi
18564
18565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18566   ac_ext=c
18567 ac_cpp='$CPP $CPPFLAGS'
18568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18571
18572 fi
18573 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18574 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18575
18576 if test "$ac_cv_func_rand48" = "yes" ; then
18577
18578 cat >>confdefs.h <<\_ACEOF
18579 #define HAVE_RAND48 1
18580 _ACEOF
18581
18582 fi
18583
18584
18585
18586 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18587 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18588 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18589   echo $ECHO_N "(cached) $ECHO_C" >&6
18590 else
18591   ac_ext=cpp
18592 ac_cpp='$CXXCPP $CPPFLAGS'
18593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18596
18597    cat >conftest.$ac_ext <<_ACEOF
18598 /* confdefs.h.  */
18599 _ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h.  */
18603 #include <math.h>
18604 int
18605 main ()
18606 {
18607 float f; isnan(f);
18608   ;
18609   return 0;
18610 }
18611 _ACEOF
18612 rm -f conftest.$ac_objext
18613 if { (ac_try="$ac_compile"
18614 case "(($ac_try" in
18615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616   *) ac_try_echo=$ac_try;;
18617 esac
18618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619   (eval "$ac_compile") 2>conftest.er1
18620   ac_status=$?
18621   grep -v '^ *+' conftest.er1 >conftest.err
18622   rm -f conftest.er1
18623   cat conftest.err >&5
18624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625   (exit $ac_status); } &&
18626          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18627   { (case "(($ac_try" in
18628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629   *) ac_try_echo=$ac_try;;
18630 esac
18631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632   (eval "$ac_try") 2>&5
18633   ac_status=$?
18634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635   (exit $ac_status); }; } &&
18636          { ac_try='test -s conftest.$ac_objext'
18637   { (case "(($ac_try" in
18638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639   *) ac_try_echo=$ac_try;;
18640 esac
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642   (eval "$ac_try") 2>&5
18643   ac_status=$?
18644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645   (exit $ac_status); }; }; then
18646   ac_cv_func_isnan_in_math_h=yes
18647 else
18648   echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18650
18651         ac_cv_func_isnan_in_math_h=no
18652 fi
18653
18654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18655   ac_ext=c
18656 ac_cpp='$CPP $CPPFLAGS'
18657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18660
18661 fi
18662 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18663 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18664
18665
18666 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18667
18668 cat >>confdefs.h <<\_ACEOF
18669 #define HAVE_ISNAN_IN_MATH_H 1
18670 _ACEOF
18671
18672 fi
18673
18674 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18675 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18676 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18677   echo $ECHO_N "(cached) $ECHO_C" >&6
18678 else
18679   ac_ext=cpp
18680 ac_cpp='$CXXCPP $CPPFLAGS'
18681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18684
18685    cat >conftest.$ac_ext <<_ACEOF
18686 /* confdefs.h.  */
18687 _ACEOF
18688 cat confdefs.h >>conftest.$ac_ext
18689 cat >>conftest.$ac_ext <<_ACEOF
18690 /* end confdefs.h.  */
18691 #include <cmath>
18692 int
18693 main ()
18694 {
18695 float f; isnan(f);
18696   ;
18697   return 0;
18698 }
18699 _ACEOF
18700 rm -f conftest.$ac_objext
18701 if { (ac_try="$ac_compile"
18702 case "(($ac_try" in
18703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704   *) ac_try_echo=$ac_try;;
18705 esac
18706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18707   (eval "$ac_compile") 2>conftest.er1
18708   ac_status=$?
18709   grep -v '^ *+' conftest.er1 >conftest.err
18710   rm -f conftest.er1
18711   cat conftest.err >&5
18712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713   (exit $ac_status); } &&
18714          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18715   { (case "(($ac_try" in
18716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717   *) ac_try_echo=$ac_try;;
18718 esac
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720   (eval "$ac_try") 2>&5
18721   ac_status=$?
18722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723   (exit $ac_status); }; } &&
18724          { ac_try='test -s conftest.$ac_objext'
18725   { (case "(($ac_try" in
18726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727   *) ac_try_echo=$ac_try;;
18728 esac
18729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730   (eval "$ac_try") 2>&5
18731   ac_status=$?
18732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733   (exit $ac_status); }; }; then
18734   ac_cv_func_isnan_in_cmath=yes
18735 else
18736   echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18738
18739         ac_cv_func_isnan_in_cmath=no
18740 fi
18741
18742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18743   ac_ext=c
18744 ac_cpp='$CPP $CPPFLAGS'
18745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18748
18749 fi
18750 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18751 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18752
18753 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18754
18755 cat >>confdefs.h <<\_ACEOF
18756 #define HAVE_ISNAN_IN_CMATH 1
18757 _ACEOF
18758
18759 fi
18760
18761 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18762 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18763 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18764   echo $ECHO_N "(cached) $ECHO_C" >&6
18765 else
18766   ac_ext=cpp
18767 ac_cpp='$CXXCPP $CPPFLAGS'
18768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18771
18772    cat >conftest.$ac_ext <<_ACEOF
18773 /* confdefs.h.  */
18774 _ACEOF
18775 cat confdefs.h >>conftest.$ac_ext
18776 cat >>conftest.$ac_ext <<_ACEOF
18777 /* end confdefs.h.  */
18778 #include <cmath>
18779 int
18780 main ()
18781 {
18782 float f; std::isnan(f);
18783   ;
18784   return 0;
18785 }
18786 _ACEOF
18787 rm -f conftest.$ac_objext
18788 if { (ac_try="$ac_compile"
18789 case "(($ac_try" in
18790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18791   *) ac_try_echo=$ac_try;;
18792 esac
18793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18794   (eval "$ac_compile") 2>conftest.er1
18795   ac_status=$?
18796   grep -v '^ *+' conftest.er1 >conftest.err
18797   rm -f conftest.er1
18798   cat conftest.err >&5
18799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800   (exit $ac_status); } &&
18801          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18802   { (case "(($ac_try" in
18803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804   *) ac_try_echo=$ac_try;;
18805 esac
18806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807   (eval "$ac_try") 2>&5
18808   ac_status=$?
18809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810   (exit $ac_status); }; } &&
18811          { ac_try='test -s conftest.$ac_objext'
18812   { (case "(($ac_try" in
18813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814   *) ac_try_echo=$ac_try;;
18815 esac
18816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817   (eval "$ac_try") 2>&5
18818   ac_status=$?
18819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820   (exit $ac_status); }; }; then
18821   ac_cv_func_std_isnan_in_cmath=yes
18822 else
18823   echo "$as_me: failed program was:" >&5
18824 sed 's/^/| /' conftest.$ac_ext >&5
18825
18826         ac_cv_func_std_isnan_in_cmath=no
18827 fi
18828
18829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18830   ac_ext=c
18831 ac_cpp='$CPP $CPPFLAGS'
18832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18835
18836 fi
18837 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18838 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18839
18840 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18841
18842 cat >>confdefs.h <<\_ACEOF
18843 #define HAVE_STD_ISNAN_IN_CMATH 1
18844 _ACEOF
18845
18846 fi
18847
18848
18849 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18850 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18851 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18852   echo $ECHO_N "(cached) $ECHO_C" >&6
18853 else
18854   ac_ext=cpp
18855 ac_cpp='$CXXCPP $CPPFLAGS'
18856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18859
18860    cat >conftest.$ac_ext <<_ACEOF
18861 /* confdefs.h.  */
18862 _ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h.  */
18866 #include <math.h>
18867 int
18868 main ()
18869 {
18870 float f; isinf(f);
18871   ;
18872   return 0;
18873 }
18874 _ACEOF
18875 rm -f conftest.$ac_objext
18876 if { (ac_try="$ac_compile"
18877 case "(($ac_try" in
18878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879   *) ac_try_echo=$ac_try;;
18880 esac
18881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882   (eval "$ac_compile") 2>conftest.er1
18883   ac_status=$?
18884   grep -v '^ *+' conftest.er1 >conftest.err
18885   rm -f conftest.er1
18886   cat conftest.err >&5
18887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888   (exit $ac_status); } &&
18889          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18890   { (case "(($ac_try" in
18891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892   *) ac_try_echo=$ac_try;;
18893 esac
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895   (eval "$ac_try") 2>&5
18896   ac_status=$?
18897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898   (exit $ac_status); }; } &&
18899          { ac_try='test -s conftest.$ac_objext'
18900   { (case "(($ac_try" in
18901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902   *) ac_try_echo=$ac_try;;
18903 esac
18904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905   (eval "$ac_try") 2>&5
18906   ac_status=$?
18907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908   (exit $ac_status); }; }; then
18909   ac_cv_func_isinf_in_math_h=yes
18910 else
18911   echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18913
18914         ac_cv_func_isinf_in_math_h=no
18915 fi
18916
18917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18918   ac_ext=c
18919 ac_cpp='$CPP $CPPFLAGS'
18920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18923
18924 fi
18925 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18926 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18927
18928 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18929
18930 cat >>confdefs.h <<\_ACEOF
18931 #define HAVE_ISINF_IN_MATH_H 1
18932 _ACEOF
18933
18934 fi
18935
18936 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18937 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18938 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18939   echo $ECHO_N "(cached) $ECHO_C" >&6
18940 else
18941   ac_ext=cpp
18942 ac_cpp='$CXXCPP $CPPFLAGS'
18943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18946
18947    cat >conftest.$ac_ext <<_ACEOF
18948 /* confdefs.h.  */
18949 _ACEOF
18950 cat confdefs.h >>conftest.$ac_ext
18951 cat >>conftest.$ac_ext <<_ACEOF
18952 /* end confdefs.h.  */
18953 #include <cmath>
18954 int
18955 main ()
18956 {
18957 float f; isinf(f);
18958   ;
18959   return 0;
18960 }
18961 _ACEOF
18962 rm -f conftest.$ac_objext
18963 if { (ac_try="$ac_compile"
18964 case "(($ac_try" in
18965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966   *) ac_try_echo=$ac_try;;
18967 esac
18968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969   (eval "$ac_compile") 2>conftest.er1
18970   ac_status=$?
18971   grep -v '^ *+' conftest.er1 >conftest.err
18972   rm -f conftest.er1
18973   cat conftest.err >&5
18974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975   (exit $ac_status); } &&
18976          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18977   { (case "(($ac_try" in
18978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18979   *) ac_try_echo=$ac_try;;
18980 esac
18981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18982   (eval "$ac_try") 2>&5
18983   ac_status=$?
18984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985   (exit $ac_status); }; } &&
18986          { ac_try='test -s conftest.$ac_objext'
18987   { (case "(($ac_try" in
18988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989   *) ac_try_echo=$ac_try;;
18990 esac
18991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18992   (eval "$ac_try") 2>&5
18993   ac_status=$?
18994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995   (exit $ac_status); }; }; then
18996   ac_cv_func_isinf_in_cmath=yes
18997 else
18998   echo "$as_me: failed program was:" >&5
18999 sed 's/^/| /' conftest.$ac_ext >&5
19000
19001         ac_cv_func_isinf_in_cmath=no
19002 fi
19003
19004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19005   ac_ext=c
19006 ac_cpp='$CPP $CPPFLAGS'
19007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19010
19011 fi
19012 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19013 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19014
19015 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19016
19017 cat >>confdefs.h <<\_ACEOF
19018 #define HAVE_ISINF_IN_CMATH 1
19019 _ACEOF
19020
19021 fi
19022
19023 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19024 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19025 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19026   echo $ECHO_N "(cached) $ECHO_C" >&6
19027 else
19028   ac_ext=cpp
19029 ac_cpp='$CXXCPP $CPPFLAGS'
19030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19033
19034    cat >conftest.$ac_ext <<_ACEOF
19035 /* confdefs.h.  */
19036 _ACEOF
19037 cat confdefs.h >>conftest.$ac_ext
19038 cat >>conftest.$ac_ext <<_ACEOF
19039 /* end confdefs.h.  */
19040 #include <cmath>
19041 int
19042 main ()
19043 {
19044 float f; std::isinf(f)}
19045   ;
19046   return 0;
19047 }
19048 _ACEOF
19049 rm -f conftest.$ac_objext
19050 if { (ac_try="$ac_compile"
19051 case "(($ac_try" in
19052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053   *) ac_try_echo=$ac_try;;
19054 esac
19055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19056   (eval "$ac_compile") 2>conftest.er1
19057   ac_status=$?
19058   grep -v '^ *+' conftest.er1 >conftest.err
19059   rm -f conftest.er1
19060   cat conftest.err >&5
19061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062   (exit $ac_status); } &&
19063          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19064   { (case "(($ac_try" in
19065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066   *) ac_try_echo=$ac_try;;
19067 esac
19068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19069   (eval "$ac_try") 2>&5
19070   ac_status=$?
19071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072   (exit $ac_status); }; } &&
19073          { ac_try='test -s conftest.$ac_objext'
19074   { (case "(($ac_try" in
19075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076   *) ac_try_echo=$ac_try;;
19077 esac
19078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079   (eval "$ac_try") 2>&5
19080   ac_status=$?
19081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082   (exit $ac_status); }; }; then
19083   ac_cv_func_std_isinf_in_cmath=yes
19084 else
19085   echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19087
19088         ac_cv_func_std_isinf_in_cmath=no
19089 fi
19090
19091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19092   ac_ext=c
19093 ac_cpp='$CPP $CPPFLAGS'
19094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19097
19098 fi
19099 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19100 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19101
19102 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19103
19104 cat >>confdefs.h <<\_ACEOF
19105 #define HAVE_STD_ISINF_IN_CMATH 1
19106 _ACEOF
19107
19108 fi
19109
19110 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19111 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19112 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19113   echo $ECHO_N "(cached) $ECHO_C" >&6
19114 else
19115   ac_ext=cpp
19116 ac_cpp='$CXXCPP $CPPFLAGS'
19117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19120
19121    cat >conftest.$ac_ext <<_ACEOF
19122 /* confdefs.h.  */
19123 _ACEOF
19124 cat confdefs.h >>conftest.$ac_ext
19125 cat >>conftest.$ac_ext <<_ACEOF
19126 /* end confdefs.h.  */
19127 #include <ieeefp.h>
19128 int
19129 main ()
19130 {
19131 float f; finite(f);
19132   ;
19133   return 0;
19134 }
19135 _ACEOF
19136 rm -f conftest.$ac_objext
19137 if { (ac_try="$ac_compile"
19138 case "(($ac_try" in
19139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140   *) ac_try_echo=$ac_try;;
19141 esac
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143   (eval "$ac_compile") 2>conftest.er1
19144   ac_status=$?
19145   grep -v '^ *+' conftest.er1 >conftest.err
19146   rm -f conftest.er1
19147   cat conftest.err >&5
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); } &&
19150          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19151   { (case "(($ac_try" in
19152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153   *) ac_try_echo=$ac_try;;
19154 esac
19155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156   (eval "$ac_try") 2>&5
19157   ac_status=$?
19158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159   (exit $ac_status); }; } &&
19160          { ac_try='test -s conftest.$ac_objext'
19161   { (case "(($ac_try" in
19162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163   *) ac_try_echo=$ac_try;;
19164 esac
19165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166   (eval "$ac_try") 2>&5
19167   ac_status=$?
19168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169   (exit $ac_status); }; }; then
19170   ac_cv_func_finite_in_ieeefp_h=yes
19171 else
19172   echo "$as_me: failed program was:" >&5
19173 sed 's/^/| /' conftest.$ac_ext >&5
19174
19175         ac_cv_func_finite_in_ieeefp_h=no
19176 fi
19177
19178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19179   ac_ext=c
19180 ac_cpp='$CPP $CPPFLAGS'
19181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19184
19185 fi
19186 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19187 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19188
19189 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19190
19191 cat >>confdefs.h <<\_ACEOF
19192 #define HAVE_FINITE_IN_IEEEFP_H 1
19193 _ACEOF
19194
19195 fi
19196
19197
19198
19199 if test "$llvm_cv_platform_type" = "Unix" ; then
19200
19201
19202 for ac_header in stdlib.h unistd.h
19203 do
19204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19206   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19209   echo $ECHO_N "(cached) $ECHO_C" >&6
19210 fi
19211 ac_res=`eval echo '${'$as_ac_Header'}'`
19212                { echo "$as_me:$LINENO: result: $ac_res" >&5
19213 echo "${ECHO_T}$ac_res" >&6; }
19214 else
19215   # Is the header compilable?
19216 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19218 cat >conftest.$ac_ext <<_ACEOF
19219 /* confdefs.h.  */
19220 _ACEOF
19221 cat confdefs.h >>conftest.$ac_ext
19222 cat >>conftest.$ac_ext <<_ACEOF
19223 /* end confdefs.h.  */
19224 $ac_includes_default
19225 #include <$ac_header>
19226 _ACEOF
19227 rm -f conftest.$ac_objext
19228 if { (ac_try="$ac_compile"
19229 case "(($ac_try" in
19230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231   *) ac_try_echo=$ac_try;;
19232 esac
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234   (eval "$ac_compile") 2>conftest.er1
19235   ac_status=$?
19236   grep -v '^ *+' conftest.er1 >conftest.err
19237   rm -f conftest.er1
19238   cat conftest.err >&5
19239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240   (exit $ac_status); } &&
19241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19242   { (case "(($ac_try" in
19243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19244   *) ac_try_echo=$ac_try;;
19245 esac
19246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19247   (eval "$ac_try") 2>&5
19248   ac_status=$?
19249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250   (exit $ac_status); }; } &&
19251          { ac_try='test -s conftest.$ac_objext'
19252   { (case "(($ac_try" in
19253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254   *) ac_try_echo=$ac_try;;
19255 esac
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257   (eval "$ac_try") 2>&5
19258   ac_status=$?
19259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260   (exit $ac_status); }; }; then
19261   ac_header_compiler=yes
19262 else
19263   echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19265
19266         ac_header_compiler=no
19267 fi
19268
19269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19271 echo "${ECHO_T}$ac_header_compiler" >&6; }
19272
19273 # Is the header present?
19274 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19276 cat >conftest.$ac_ext <<_ACEOF
19277 /* confdefs.h.  */
19278 _ACEOF
19279 cat confdefs.h >>conftest.$ac_ext
19280 cat >>conftest.$ac_ext <<_ACEOF
19281 /* end confdefs.h.  */
19282 #include <$ac_header>
19283 _ACEOF
19284 if { (ac_try="$ac_cpp conftest.$ac_ext"
19285 case "(($ac_try" in
19286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287   *) ac_try_echo=$ac_try;;
19288 esac
19289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19291   ac_status=$?
19292   grep -v '^ *+' conftest.er1 >conftest.err
19293   rm -f conftest.er1
19294   cat conftest.err >&5
19295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296   (exit $ac_status); } >/dev/null; then
19297   if test -s conftest.err; then
19298     ac_cpp_err=$ac_c_preproc_warn_flag
19299     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19300   else
19301     ac_cpp_err=
19302   fi
19303 else
19304   ac_cpp_err=yes
19305 fi
19306 if test -z "$ac_cpp_err"; then
19307   ac_header_preproc=yes
19308 else
19309   echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19311
19312   ac_header_preproc=no
19313 fi
19314
19315 rm -f conftest.err conftest.$ac_ext
19316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19317 echo "${ECHO_T}$ac_header_preproc" >&6; }
19318
19319 # So?  What about this header?
19320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19321   yes:no: )
19322     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19326     ac_header_preproc=yes
19327     ;;
19328   no:yes:* )
19329     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19331     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19332 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19333     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19335     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19336 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19339     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19341     ( cat <<\_ASBOX
19342 ## ----------------------------------- ##
19343 ## Report this to llvmbugs@cs.uiuc.edu ##
19344 ## ----------------------------------- ##
19345 _ASBOX
19346      ) | sed "s/^/$as_me: WARNING:     /" >&2
19347     ;;
19348 esac
19349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19352   echo $ECHO_N "(cached) $ECHO_C" >&6
19353 else
19354   eval "$as_ac_Header=\$ac_header_preproc"
19355 fi
19356 ac_res=`eval echo '${'$as_ac_Header'}'`
19357                { echo "$as_me:$LINENO: result: $ac_res" >&5
19358 echo "${ECHO_T}$ac_res" >&6; }
19359
19360 fi
19361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19362   cat >>confdefs.h <<_ACEOF
19363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19364 _ACEOF
19365
19366 fi
19367
19368 done
19369
19370
19371 for ac_func in getpagesize
19372 do
19373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19374 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19377   echo $ECHO_N "(cached) $ECHO_C" >&6
19378 else
19379   cat >conftest.$ac_ext <<_ACEOF
19380 /* confdefs.h.  */
19381 _ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h.  */
19385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19386    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19387 #define $ac_func innocuous_$ac_func
19388
19389 /* System header to define __stub macros and hopefully few prototypes,
19390     which can conflict with char $ac_func (); below.
19391     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19392     <limits.h> exists even on freestanding compilers.  */
19393
19394 #ifdef __STDC__
19395 # include <limits.h>
19396 #else
19397 # include <assert.h>
19398 #endif
19399
19400 #undef $ac_func
19401
19402 /* Override any GCC internal prototype to avoid an error.
19403    Use char because int might match the return type of a GCC
19404    builtin and then its argument prototype would still apply.  */
19405 #ifdef __cplusplus
19406 extern "C"
19407 #endif
19408 char $ac_func ();
19409 /* The GNU C library defines this for functions which it implements
19410     to always fail with ENOSYS.  Some functions are actually named
19411     something starting with __ and the normal name is an alias.  */
19412 #if defined __stub_$ac_func || defined __stub___$ac_func
19413 choke me
19414 #endif
19415
19416 int
19417 main ()
19418 {
19419 return $ac_func ();
19420   ;
19421   return 0;
19422 }
19423 _ACEOF
19424 rm -f conftest.$ac_objext conftest$ac_exeext
19425 if { (ac_try="$ac_link"
19426 case "(($ac_try" in
19427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19428   *) ac_try_echo=$ac_try;;
19429 esac
19430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19431   (eval "$ac_link") 2>conftest.er1
19432   ac_status=$?
19433   grep -v '^ *+' conftest.er1 >conftest.err
19434   rm -f conftest.er1
19435   cat conftest.err >&5
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); } &&
19438          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19439   { (case "(($ac_try" in
19440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441   *) ac_try_echo=$ac_try;;
19442 esac
19443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444   (eval "$ac_try") 2>&5
19445   ac_status=$?
19446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447   (exit $ac_status); }; } &&
19448          { ac_try='test -s conftest$ac_exeext'
19449   { (case "(($ac_try" in
19450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451   *) ac_try_echo=$ac_try;;
19452 esac
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454   (eval "$ac_try") 2>&5
19455   ac_status=$?
19456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457   (exit $ac_status); }; }; then
19458   eval "$as_ac_var=yes"
19459 else
19460   echo "$as_me: failed program was:" >&5
19461 sed 's/^/| /' conftest.$ac_ext >&5
19462
19463         eval "$as_ac_var=no"
19464 fi
19465
19466 rm -f core conftest.err conftest.$ac_objext \
19467       conftest$ac_exeext conftest.$ac_ext
19468 fi
19469 ac_res=`eval echo '${'$as_ac_var'}'`
19470                { echo "$as_me:$LINENO: result: $ac_res" >&5
19471 echo "${ECHO_T}$ac_res" >&6; }
19472 if test `eval echo '${'$as_ac_var'}'` = yes; then
19473   cat >>confdefs.h <<_ACEOF
19474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19475 _ACEOF
19476
19477 fi
19478 done
19479
19480 { echo "$as_me:$LINENO: checking for working mmap" >&5
19481 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19482 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19483   echo $ECHO_N "(cached) $ECHO_C" >&6
19484 else
19485   if test "$cross_compiling" = yes; then
19486   ac_cv_func_mmap_fixed_mapped=no
19487 else
19488   cat >conftest.$ac_ext <<_ACEOF
19489 /* confdefs.h.  */
19490 _ACEOF
19491 cat confdefs.h >>conftest.$ac_ext
19492 cat >>conftest.$ac_ext <<_ACEOF
19493 /* end confdefs.h.  */
19494 $ac_includes_default
19495 /* malloc might have been renamed as rpl_malloc. */
19496 #undef malloc
19497
19498 /* Thanks to Mike Haertel and Jim Avera for this test.
19499    Here is a matrix of mmap possibilities:
19500         mmap private not fixed
19501         mmap private fixed at somewhere currently unmapped
19502         mmap private fixed at somewhere already mapped
19503         mmap shared not fixed
19504         mmap shared fixed at somewhere currently unmapped
19505         mmap shared fixed at somewhere already mapped
19506    For private mappings, we should verify that changes cannot be read()
19507    back from the file, nor mmap's back from the file at a different
19508    address.  (There have been systems where private was not correctly
19509    implemented like the infamous i386 svr4.0, and systems where the
19510    VM page cache was not coherent with the file system buffer cache
19511    like early versions of FreeBSD and possibly contemporary NetBSD.)
19512    For shared mappings, we should conversely verify that changes get
19513    propagated back to all the places they're supposed to be.
19514
19515    Grep wants private fixed already mapped.
19516    The main things grep needs to know about mmap are:
19517    * does it exist and is it safe to write into the mmap'd area
19518    * how to use it (BSD variants)  */
19519
19520 #include <fcntl.h>
19521 #include <sys/mman.h>
19522
19523 #if !STDC_HEADERS && !HAVE_STDLIB_H
19524 char *malloc ();
19525 #endif
19526
19527 /* This mess was copied from the GNU getpagesize.h.  */
19528 #if !HAVE_GETPAGESIZE
19529 /* Assume that all systems that can run configure have sys/param.h.  */
19530 # if !HAVE_SYS_PARAM_H
19531 #  define HAVE_SYS_PARAM_H 1
19532 # endif
19533
19534 # ifdef _SC_PAGESIZE
19535 #  define getpagesize() sysconf(_SC_PAGESIZE)
19536 # else /* no _SC_PAGESIZE */
19537 #  if HAVE_SYS_PARAM_H
19538 #   include <sys/param.h>
19539 #   ifdef EXEC_PAGESIZE
19540 #    define getpagesize() EXEC_PAGESIZE
19541 #   else /* no EXEC_PAGESIZE */
19542 #    ifdef NBPG
19543 #     define getpagesize() NBPG * CLSIZE
19544 #     ifndef CLSIZE
19545 #      define CLSIZE 1
19546 #     endif /* no CLSIZE */
19547 #    else /* no NBPG */
19548 #     ifdef NBPC
19549 #      define getpagesize() NBPC
19550 #     else /* no NBPC */
19551 #      ifdef PAGESIZE
19552 #       define getpagesize() PAGESIZE
19553 #      endif /* PAGESIZE */
19554 #     endif /* no NBPC */
19555 #    endif /* no NBPG */
19556 #   endif /* no EXEC_PAGESIZE */
19557 #  else /* no HAVE_SYS_PARAM_H */
19558 #   define getpagesize() 8192   /* punt totally */
19559 #  endif /* no HAVE_SYS_PARAM_H */
19560 # endif /* no _SC_PAGESIZE */
19561
19562 #endif /* no HAVE_GETPAGESIZE */
19563
19564 int
19565 main ()
19566 {
19567   char *data, *data2, *data3;
19568   int i, pagesize;
19569   int fd;
19570
19571   pagesize = getpagesize ();
19572
19573   /* First, make a file with some known garbage in it. */
19574   data = (char *) malloc (pagesize);
19575   if (!data)
19576     return 1;
19577   for (i = 0; i < pagesize; ++i)
19578     *(data + i) = rand ();
19579   umask (0);
19580   fd = creat ("conftest.mmap", 0600);
19581   if (fd < 0)
19582     return 1;
19583   if (write (fd, data, pagesize) != pagesize)
19584     return 1;
19585   close (fd);
19586
19587   /* Next, try to mmap the file at a fixed address which already has
19588      something else allocated at it.  If we can, also make sure that
19589      we see the same garbage.  */
19590   fd = open ("conftest.mmap", O_RDWR);
19591   if (fd < 0)
19592     return 1;
19593   data2 = (char *) malloc (2 * pagesize);
19594   if (!data2)
19595     return 1;
19596   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19597   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19598                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19599     return 1;
19600   for (i = 0; i < pagesize; ++i)
19601     if (*(data + i) != *(data2 + i))
19602       return 1;
19603
19604   /* Finally, make sure that changes to the mapped area do not
19605      percolate back to the file as seen by read().  (This is a bug on
19606      some variants of i386 svr4.0.)  */
19607   for (i = 0; i < pagesize; ++i)
19608     *(data2 + i) = *(data2 + i) + 1;
19609   data3 = (char *) malloc (pagesize);
19610   if (!data3)
19611     return 1;
19612   if (read (fd, data3, pagesize) != pagesize)
19613     return 1;
19614   for (i = 0; i < pagesize; ++i)
19615     if (*(data + i) != *(data3 + i))
19616       return 1;
19617   close (fd);
19618   return 0;
19619 }
19620 _ACEOF
19621 rm -f conftest$ac_exeext
19622 if { (ac_try="$ac_link"
19623 case "(($ac_try" in
19624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625   *) ac_try_echo=$ac_try;;
19626 esac
19627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628   (eval "$ac_link") 2>&5
19629   ac_status=$?
19630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19632   { (case "(($ac_try" in
19633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634   *) ac_try_echo=$ac_try;;
19635 esac
19636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637   (eval "$ac_try") 2>&5
19638   ac_status=$?
19639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640   (exit $ac_status); }; }; then
19641   ac_cv_func_mmap_fixed_mapped=yes
19642 else
19643   echo "$as_me: program exited with status $ac_status" >&5
19644 echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.$ac_ext >&5
19646
19647 ( exit $ac_status )
19648 ac_cv_func_mmap_fixed_mapped=no
19649 fi
19650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19651 fi
19652
19653
19654 fi
19655 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19656 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19657 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19658
19659 cat >>confdefs.h <<\_ACEOF
19660 #define HAVE_MMAP 1
19661 _ACEOF
19662
19663 fi
19664 rm -f conftest.mmap
19665
19666   { echo "$as_me:$LINENO: checking for mmap of files" >&5
19667 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19668 if test "${ac_cv_func_mmap_file+set}" = set; then
19669   echo $ECHO_N "(cached) $ECHO_C" >&6
19670 else
19671    ac_ext=c
19672 ac_cpp='$CPP $CPPFLAGS'
19673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19676
19677   if test "$cross_compiling" = yes; then
19678   ac_cv_func_mmap_file=no
19679 else
19680   cat >conftest.$ac_ext <<_ACEOF
19681
19682     /* confdefs.h.  */
19683 _ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h.  */
19687
19688 #include <sys/types.h>
19689 #include <sys/mman.h>
19690 #include <fcntl.h>
19691
19692 int
19693 main ()
19694 {
19695
19696   int fd;
19697   fd = creat ("foo",0777);
19698   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19699   unlink ("foo");
19700   return (fd != (int) MAP_FAILED);
19701   ;
19702   return 0;
19703 }
19704 _ACEOF
19705 rm -f conftest$ac_exeext
19706 if { (ac_try="$ac_link"
19707 case "(($ac_try" in
19708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709   *) ac_try_echo=$ac_try;;
19710 esac
19711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712   (eval "$ac_link") 2>&5
19713   ac_status=$?
19714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19716   { (case "(($ac_try" in
19717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718   *) ac_try_echo=$ac_try;;
19719 esac
19720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721   (eval "$ac_try") 2>&5
19722   ac_status=$?
19723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724   (exit $ac_status); }; }; then
19725   ac_cv_func_mmap_file=yes
19726 else
19727   echo "$as_me: program exited with status $ac_status" >&5
19728 echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19730
19731 ( exit $ac_status )
19732 ac_cv_func_mmap_file=no
19733 fi
19734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19735 fi
19736
19737
19738   ac_ext=c
19739 ac_cpp='$CPP $CPPFLAGS'
19740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19743
19744
19745 fi
19746 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19747 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19748 if test "$ac_cv_func_mmap_file" = yes; then
19749
19750 cat >>confdefs.h <<\_ACEOF
19751 #define HAVE_MMAP_FILE
19752 _ACEOF
19753
19754    MMAP_FILE=yes
19755
19756 fi
19757
19758   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19759 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19760 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19761   echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763   if test "$llvm_cv_os_type" = "Interix" ; then
19764    ac_cv_need_dev_zero_for_mmap=yes
19765  else
19766    ac_cv_need_dev_zero_for_mmap=no
19767  fi
19768
19769 fi
19770 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19771 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19772 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19773
19774 cat >>confdefs.h <<\_ACEOF
19775 #define NEED_DEV_ZERO_FOR_MMAP 1
19776 _ACEOF
19777
19778 fi
19779
19780   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19781   then
19782     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19783 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19784   fi
19785   if test "$ac_cv_func_mmap_file" = "no"
19786   then
19787     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19788 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19789   fi
19790 fi
19791
19792 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19793 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19794 cat >conftest.$ac_ext <<_ACEOF
19795 /* confdefs.h.  */
19796 _ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h.  */
19800 int main() {
19801         volatile unsigned long val = 1;
19802         __sync_synchronize();
19803         __sync_val_compare_and_swap(&val, 1, 0);
19804         __sync_add_and_fetch(&val, 1);
19805         __sync_sub_and_fetch(&val, 1);
19806         return 0;
19807       }
19808
19809 _ACEOF
19810 rm -f conftest.$ac_objext conftest$ac_exeext
19811 if { (ac_try="$ac_link"
19812 case "(($ac_try" in
19813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814   *) ac_try_echo=$ac_try;;
19815 esac
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817   (eval "$ac_link") 2>conftest.er1
19818   ac_status=$?
19819   grep -v '^ *+' conftest.er1 >conftest.err
19820   rm -f conftest.er1
19821   cat conftest.err >&5
19822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823   (exit $ac_status); } &&
19824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19825   { (case "(($ac_try" in
19826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19827   *) ac_try_echo=$ac_try;;
19828 esac
19829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19830   (eval "$ac_try") 2>&5
19831   ac_status=$?
19832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833   (exit $ac_status); }; } &&
19834          { ac_try='test -s conftest$ac_exeext'
19835   { (case "(($ac_try" in
19836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837   *) ac_try_echo=$ac_try;;
19838 esac
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840   (eval "$ac_try") 2>&5
19841   ac_status=$?
19842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843   (exit $ac_status); }; }; then
19844   { echo "$as_me:$LINENO: result: yes" >&5
19845 echo "${ECHO_T}yes" >&6; }
19846
19847 cat >>confdefs.h <<\_ACEOF
19848 #define LLVM_MULTITHREADED 1
19849 _ACEOF
19850
19851 else
19852   echo "$as_me: failed program was:" >&5
19853 sed 's/^/| /' conftest.$ac_ext >&5
19854
19855         { echo "$as_me:$LINENO: result: no" >&5
19856 echo "${ECHO_T}no" >&6; }
19857
19858 cat >>confdefs.h <<\_ACEOF
19859 #define LLVM_MULTITHREADED 0
19860 _ACEOF
19861
19862   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19863 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19864 fi
19865
19866 rm -f core conftest.err conftest.$ac_objext \
19867       conftest$ac_exeext conftest.$ac_ext
19868
19869
19870
19871 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19872   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19873 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19874 if test "${llvm_cv_linux_mixed+set}" = set; then
19875   echo $ECHO_N "(cached) $ECHO_C" >&6
19876 else
19877    ac_ext=c
19878 ac_cpp='$CPP $CPPFLAGS'
19879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19882
19883   cat >conftest.$ac_ext <<_ACEOF
19884 /* confdefs.h.  */
19885 _ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h.  */
19889 #ifndef __x86_64__
19890        error: Not x86-64 even if uname says so!
19891       #endif
19892
19893 int
19894 main ()
19895 {
19896
19897   ;
19898   return 0;
19899 }
19900 _ACEOF
19901 rm -f conftest.$ac_objext
19902 if { (ac_try="$ac_compile"
19903 case "(($ac_try" in
19904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905   *) ac_try_echo=$ac_try;;
19906 esac
19907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908   (eval "$ac_compile") 2>conftest.er1
19909   ac_status=$?
19910   grep -v '^ *+' conftest.er1 >conftest.err
19911   rm -f conftest.er1
19912   cat conftest.err >&5
19913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914   (exit $ac_status); } &&
19915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19916   { (case "(($ac_try" in
19917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19918   *) ac_try_echo=$ac_try;;
19919 esac
19920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19921   (eval "$ac_try") 2>&5
19922   ac_status=$?
19923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924   (exit $ac_status); }; } &&
19925          { ac_try='test -s conftest.$ac_objext'
19926   { (case "(($ac_try" in
19927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928   *) ac_try_echo=$ac_try;;
19929 esac
19930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931   (eval "$ac_try") 2>&5
19932   ac_status=$?
19933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934   (exit $ac_status); }; }; then
19935   llvm_cv_linux_mixed=no
19936 else
19937   echo "$as_me: failed program was:" >&5
19938 sed 's/^/| /' conftest.$ac_ext >&5
19939
19940         llvm_cv_linux_mixed=yes
19941 fi
19942
19943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19944   ac_ext=c
19945 ac_cpp='$CPP $CPPFLAGS'
19946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19949
19950
19951 fi
19952 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19953 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19954
19955   if test "$llvm_cv_linux_mixed" = "yes"; then
19956     llvm_cv_target_arch="x86"
19957     ARCH="x86"
19958   fi
19959 fi
19960
19961
19962 for ac_func in __dso_handle
19963 do
19964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19965 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19968   echo $ECHO_N "(cached) $ECHO_C" >&6
19969 else
19970   cat >conftest.$ac_ext <<_ACEOF
19971 /* confdefs.h.  */
19972 _ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h.  */
19976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19978 #define $ac_func innocuous_$ac_func
19979
19980 /* System header to define __stub macros and hopefully few prototypes,
19981     which can conflict with char $ac_func (); below.
19982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19983     <limits.h> exists even on freestanding compilers.  */
19984
19985 #ifdef __STDC__
19986 # include <limits.h>
19987 #else
19988 # include <assert.h>
19989 #endif
19990
19991 #undef $ac_func
19992
19993 /* Override any GCC internal prototype to avoid an error.
19994    Use char because int might match the return type of a GCC
19995    builtin and then its argument prototype would still apply.  */
19996 #ifdef __cplusplus
19997 extern "C"
19998 #endif
19999 char $ac_func ();
20000 /* The GNU C library defines this for functions which it implements
20001     to always fail with ENOSYS.  Some functions are actually named
20002     something starting with __ and the normal name is an alias.  */
20003 #if defined __stub_$ac_func || defined __stub___$ac_func
20004 choke me
20005 #endif
20006
20007 int
20008 main ()
20009 {
20010 return $ac_func ();
20011   ;
20012   return 0;
20013 }
20014 _ACEOF
20015 rm -f conftest.$ac_objext conftest$ac_exeext
20016 if { (ac_try="$ac_link"
20017 case "(($ac_try" in
20018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20019   *) ac_try_echo=$ac_try;;
20020 esac
20021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20022   (eval "$ac_link") 2>conftest.er1
20023   ac_status=$?
20024   grep -v '^ *+' conftest.er1 >conftest.err
20025   rm -f conftest.er1
20026   cat conftest.err >&5
20027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028   (exit $ac_status); } &&
20029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20030   { (case "(($ac_try" in
20031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032   *) ac_try_echo=$ac_try;;
20033 esac
20034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035   (eval "$ac_try") 2>&5
20036   ac_status=$?
20037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038   (exit $ac_status); }; } &&
20039          { ac_try='test -s conftest$ac_exeext'
20040   { (case "(($ac_try" in
20041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042   *) ac_try_echo=$ac_try;;
20043 esac
20044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20045   (eval "$ac_try") 2>&5
20046   ac_status=$?
20047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048   (exit $ac_status); }; }; then
20049   eval "$as_ac_var=yes"
20050 else
20051   echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20053
20054         eval "$as_ac_var=no"
20055 fi
20056
20057 rm -f core conftest.err conftest.$ac_objext \
20058       conftest$ac_exeext conftest.$ac_ext
20059 fi
20060 ac_res=`eval echo '${'$as_ac_var'}'`
20061                { echo "$as_me:$LINENO: result: $ac_res" >&5
20062 echo "${ECHO_T}$ac_res" >&6; }
20063 if test `eval echo '${'$as_ac_var'}'` = yes; then
20064   cat >>confdefs.h <<_ACEOF
20065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20066 _ACEOF
20067
20068 fi
20069 done
20070
20071
20072 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20073 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20074 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20075   echo $ECHO_N "(cached) $ECHO_C" >&6
20076 else
20077   llvm_cv_llvmgcc_sanity="no"
20078 if test -x "$LLVMGCC" ; then
20079   cp /dev/null conftest.c
20080   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20081       grep 'target datalayout =' > /dev/null 2>&1
20082   if test $? -eq 0 ; then
20083     llvm_cv_llvmgcc_sanity="yes"
20084   fi
20085   rm conftest.c
20086 fi
20087 fi
20088 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20089 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20090
20091 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20092   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20093 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20094   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20095   LLVMCC1=$llvmcc1path
20096
20097   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20098   LLVMCC1PLUS=$llvmcc1pluspath
20099
20100   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20101   LLVMGCCDIR=$llvmgccdir
20102
20103   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20104   LLVMGCC_LANGS=$llvmgcclangs
20105
20106   { echo "$as_me:$LINENO: result: ok" >&5
20107 echo "${ECHO_T}ok" >&6; }
20108 fi
20109
20110 SHLIBEXT=$libltdl_cv_shlibext
20111
20112
20113 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20114
20115
20116 # Translate the various configuration directories and other basic
20117 # information into substitutions that will end up in Makefile.config.in
20118 # that these configured values can be used by the makefiles
20119 if test "${prefix}" = "NONE" ; then
20120   prefix="/usr/local"
20121 fi
20122 eval LLVM_PREFIX="${prefix}";
20123 eval LLVM_BINDIR="${prefix}/bin";
20124 eval LLVM_LIBDIR="${prefix}/lib";
20125 eval LLVM_DATADIR="${prefix}/share/llvm";
20126 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20127 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20128 eval LLVM_INCLUDEDIR="${prefix}/include";
20129 eval LLVM_INFODIR="${prefix}/info";
20130 eval LLVM_MANDIR="${prefix}/man";
20131 LLVM_CONFIGTIME=`date`
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143 # Place the various directores into the config.h file as #defines so that we
20144 # can know about the installation paths within LLVM.
20145
20146 cat >>confdefs.h <<_ACEOF
20147 #define LLVM_PREFIX "$LLVM_PREFIX"
20148 _ACEOF
20149
20150
20151 cat >>confdefs.h <<_ACEOF
20152 #define LLVM_BINDIR "$LLVM_BINDIR"
20153 _ACEOF
20154
20155
20156 cat >>confdefs.h <<_ACEOF
20157 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20158 _ACEOF
20159
20160
20161 cat >>confdefs.h <<_ACEOF
20162 #define LLVM_DATADIR "$LLVM_DATADIR"
20163 _ACEOF
20164
20165
20166 cat >>confdefs.h <<_ACEOF
20167 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20168 _ACEOF
20169
20170
20171 cat >>confdefs.h <<_ACEOF
20172 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20173 _ACEOF
20174
20175
20176 cat >>confdefs.h <<_ACEOF
20177 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20178 _ACEOF
20179
20180
20181 cat >>confdefs.h <<_ACEOF
20182 #define LLVM_INFODIR "$LLVM_INFODIR"
20183 _ACEOF
20184
20185
20186 cat >>confdefs.h <<_ACEOF
20187 #define LLVM_MANDIR "$LLVM_MANDIR"
20188 _ACEOF
20189
20190
20191 cat >>confdefs.h <<_ACEOF
20192 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20193 _ACEOF
20194
20195
20196 cat >>confdefs.h <<_ACEOF
20197 #define LLVM_HOSTTRIPLE "$host"
20198 _ACEOF
20199
20200
20201 # Determine which bindings to build.
20202 if test "$BINDINGS_TO_BUILD" = auto ; then
20203   BINDINGS_TO_BUILD=""
20204   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20205     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20206   fi
20207 fi
20208 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20209
20210
20211 # This isn't really configurey, but it avoids having to repeat the list in
20212 # other files.
20213 ALL_BINDINGS=ocaml
20214
20215
20216 # Do any work necessary to ensure that bindings have what they need.
20217 binding_prereqs_failed=0
20218 for a_binding in $BINDINGS_TO_BUILD ; do
20219   case "$a_binding" in
20220   ocaml)
20221     if test "x$OCAMLC" = x ; then
20222       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20223 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20224       binding_prereqs_failed=1
20225     fi
20226     if test "x$OCAMLDEP" = x ; then
20227       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20228 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20229       binding_prereqs_failed=1
20230     fi
20231     if test "x$OCAMLOPT" = x ; then
20232       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20233 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20234           fi
20235     if test "x$with_ocaml_libdir" != xauto ; then
20236       OCAML_LIBDIR=$with_ocaml_libdir
20237
20238     else
20239       ocaml_stdlib="`"$OCAMLC" -where`"
20240       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20241       then
20242         # ocaml stdlib is beneath our prefix; use stdlib
20243         OCAML_LIBDIR=$ocaml_stdlib
20244
20245       else
20246         # ocaml stdlib is outside our prefix; use libdir/ocaml
20247         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20248
20249       fi
20250     fi
20251     ;;
20252   esac
20253 done
20254 if test "$binding_prereqs_failed" = 1 ; then
20255   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20256 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20257    { (exit 1); exit 1; }; }
20258 fi
20259
20260 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20261 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20262 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20263   echo $ECHO_N "(cached) $ECHO_C" >&6
20264 else
20265    ac_ext=cpp
20266 ac_cpp='$CXXCPP $CPPFLAGS'
20267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20270
20271   oldcxxflags="$CXXFLAGS"
20272   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20273   cat >conftest.$ac_ext <<_ACEOF
20274 /* confdefs.h.  */
20275 _ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h.  */
20279
20280 int
20281 main ()
20282 {
20283
20284   ;
20285   return 0;
20286 }
20287 _ACEOF
20288 rm -f conftest.$ac_objext
20289 if { (ac_try="$ac_compile"
20290 case "(($ac_try" in
20291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292   *) ac_try_echo=$ac_try;;
20293 esac
20294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295   (eval "$ac_compile") 2>conftest.er1
20296   ac_status=$?
20297   grep -v '^ *+' conftest.er1 >conftest.err
20298   rm -f conftest.er1
20299   cat conftest.err >&5
20300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301   (exit $ac_status); } &&
20302          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20303   { (case "(($ac_try" in
20304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305   *) ac_try_echo=$ac_try;;
20306 esac
20307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20308   (eval "$ac_try") 2>&5
20309   ac_status=$?
20310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311   (exit $ac_status); }; } &&
20312          { ac_try='test -s conftest.$ac_objext'
20313   { (case "(($ac_try" in
20314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315   *) ac_try_echo=$ac_try;;
20316 esac
20317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318   (eval "$ac_try") 2>&5
20319   ac_status=$?
20320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321   (exit $ac_status); }; }; then
20322   llvm_cv_cxx_visibility_inlines_hidden=yes
20323 else
20324   echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20326
20327         llvm_cv_cxx_visibility_inlines_hidden=no
20328 fi
20329
20330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20331   CXXFLAGS="$oldcxxflags"
20332   ac_ext=c
20333 ac_cpp='$CPP $CPPFLAGS'
20334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20337
20338
20339 fi
20340 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20341 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20342 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20343   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20344
20345 else
20346   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20347
20348 fi
20349
20350
20351 if test "$llvm_cv_link_use_r" = "yes" ; then
20352   RPATH="-Wl,-R"
20353 else
20354   RPATH="-Wl,-rpath"
20355 fi
20356
20357
20358 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20359   RDYNAMIC="-Wl,-export-dynamic"
20360 else
20361   RDYNAMIC=""
20362 fi
20363
20364
20365
20366 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
20367
20368 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20369
20370 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20371
20372 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20373
20374 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20375
20376 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20377
20378
20379 ac_config_files="$ac_config_files Makefile.config"
20380
20381
20382 ac_config_files="$ac_config_files llvm.spec"
20383
20384
20385 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20386
20387
20388 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20389
20390
20391 ac_config_commands="$ac_config_commands setup"
20392
20393 ac_config_commands="$ac_config_commands Makefile"
20394
20395
20396 ac_config_commands="$ac_config_commands Makefile.common"
20397
20398
20399 ac_config_commands="$ac_config_commands examples/Makefile"
20400
20401
20402 ac_config_commands="$ac_config_commands lib/Makefile"
20403
20404
20405 ac_config_commands="$ac_config_commands runtime/Makefile"
20406
20407
20408 ac_config_commands="$ac_config_commands test/Makefile"
20409
20410
20411 ac_config_commands="$ac_config_commands test/Makefile.tests"
20412
20413
20414 ac_config_commands="$ac_config_commands unittests/Makefile"
20415
20416
20417 ac_config_commands="$ac_config_commands tools/Makefile"
20418
20419
20420 ac_config_commands="$ac_config_commands utils/Makefile"
20421
20422
20423 ac_config_commands="$ac_config_commands projects/Makefile"
20424
20425
20426 ac_config_commands="$ac_config_commands bindings/Makefile"
20427
20428
20429 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20430
20431
20432
20433 cat >confcache <<\_ACEOF
20434 # This file is a shell script that caches the results of configure
20435 # tests run on this system so they can be shared between configure
20436 # scripts and configure runs, see configure's option --config-cache.
20437 # It is not useful on other systems.  If it contains results you don't
20438 # want to keep, you may remove or edit it.
20439 #
20440 # config.status only pays attention to the cache file if you give it
20441 # the --recheck option to rerun configure.
20442 #
20443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20445 # following values.
20446
20447 _ACEOF
20448
20449 # The following way of writing the cache mishandles newlines in values,
20450 # but we know of no workaround that is simple, portable, and efficient.
20451 # So, we kill variables containing newlines.
20452 # Ultrix sh set writes to stderr and can't be redirected directly,
20453 # and sets the high bit in the cache file unless we assign to the vars.
20454 (
20455   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20456     eval ac_val=\$$ac_var
20457     case $ac_val in #(
20458     *${as_nl}*)
20459       case $ac_var in #(
20460       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20461 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20462       esac
20463       case $ac_var in #(
20464       _ | IFS | as_nl) ;; #(
20465       *) $as_unset $ac_var ;;
20466       esac ;;
20467     esac
20468   done
20469
20470   (set) 2>&1 |
20471     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20472     *${as_nl}ac_space=\ *)
20473       # `set' does not quote correctly, so add quotes (double-quote
20474       # substitution turns \\\\ into \\, and sed turns \\ into \).
20475       sed -n \
20476         "s/'/'\\\\''/g;
20477           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20478       ;; #(
20479     *)
20480       # `set' quotes correctly as required by POSIX, so do not add quotes.
20481       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20482       ;;
20483     esac |
20484     sort
20485 ) |
20486   sed '
20487      /^ac_cv_env_/b end
20488      t clear
20489      :clear
20490      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20491      t end
20492      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20493      :end' >>confcache
20494 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20495   if test -w "$cache_file"; then
20496     test "x$cache_file" != "x/dev/null" &&
20497       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20498 echo "$as_me: updating cache $cache_file" >&6;}
20499     cat confcache >$cache_file
20500   else
20501     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20502 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20503   fi
20504 fi
20505 rm -f confcache
20506
20507 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20508 # Let make expand exec_prefix.
20509 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20510
20511 DEFS=-DHAVE_CONFIG_H
20512
20513 ac_libobjs=
20514 ac_ltlibobjs=
20515 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20516   # 1. Remove the extension, and $U if already installed.
20517   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20518   ac_i=`echo "$ac_i" | sed "$ac_script"`
20519   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20520   #    will be set to the directory where LIBOBJS objects are built.
20521   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20522   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20523 done
20524 LIBOBJS=$ac_libobjs
20525
20526 LTLIBOBJS=$ac_ltlibobjs
20527
20528
20529 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20530   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20531 Usually this means the macro was only invoked conditionally." >&5
20532 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20533 Usually this means the macro was only invoked conditionally." >&2;}
20534    { (exit 1); exit 1; }; }
20535 fi
20536 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20537   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20538 Usually this means the macro was only invoked conditionally." >&5
20539 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20540 Usually this means the macro was only invoked conditionally." >&2;}
20541    { (exit 1); exit 1; }; }
20542 fi
20543
20544 : ${CONFIG_STATUS=./config.status}
20545 ac_clean_files_save=$ac_clean_files
20546 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20547 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20548 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20549 cat >$CONFIG_STATUS <<_ACEOF
20550 #! $SHELL
20551 # Generated by $as_me.
20552 # Run this file to recreate the current configuration.
20553 # Compiler output produced by configure, useful for debugging
20554 # configure, is in config.log if it exists.
20555
20556 debug=false
20557 ac_cs_recheck=false
20558 ac_cs_silent=false
20559 SHELL=\${CONFIG_SHELL-$SHELL}
20560 _ACEOF
20561
20562 cat >>$CONFIG_STATUS <<\_ACEOF
20563 ## --------------------- ##
20564 ## M4sh Initialization.  ##
20565 ## --------------------- ##
20566
20567 # Be Bourne compatible
20568 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20569   emulate sh
20570   NULLCMD=:
20571   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20572   # is contrary to our usage.  Disable this feature.
20573   alias -g '${1+"$@"}'='"$@"'
20574   setopt NO_GLOB_SUBST
20575 else
20576   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20577 fi
20578 BIN_SH=xpg4; export BIN_SH # for Tru64
20579 DUALCASE=1; export DUALCASE # for MKS sh
20580
20581
20582 # PATH needs CR
20583 # Avoid depending upon Character Ranges.
20584 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20585 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20586 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20587 as_cr_digits='0123456789'
20588 as_cr_alnum=$as_cr_Letters$as_cr_digits
20589
20590 # The user is always right.
20591 if test "${PATH_SEPARATOR+set}" != set; then
20592   echo "#! /bin/sh" >conf$$.sh
20593   echo  "exit 0"   >>conf$$.sh
20594   chmod +x conf$$.sh
20595   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20596     PATH_SEPARATOR=';'
20597   else
20598     PATH_SEPARATOR=:
20599   fi
20600   rm -f conf$$.sh
20601 fi
20602
20603 # Support unset when possible.
20604 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20605   as_unset=unset
20606 else
20607   as_unset=false
20608 fi
20609
20610
20611 # IFS
20612 # We need space, tab and new line, in precisely that order.  Quoting is
20613 # there to prevent editors from complaining about space-tab.
20614 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20615 # splitting by setting IFS to empty value.)
20616 as_nl='
20617 '
20618 IFS=" ""        $as_nl"
20619
20620 # Find who we are.  Look in the path if we contain no directory separator.
20621 case $0 in
20622   *[\\/]* ) as_myself=$0 ;;
20623   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20624 for as_dir in $PATH
20625 do
20626   IFS=$as_save_IFS
20627   test -z "$as_dir" && as_dir=.
20628   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20629 done
20630 IFS=$as_save_IFS
20631
20632      ;;
20633 esac
20634 # We did not find ourselves, most probably we were run as `sh COMMAND'
20635 # in which case we are not to be found in the path.
20636 if test "x$as_myself" = x; then
20637   as_myself=$0
20638 fi
20639 if test ! -f "$as_myself"; then
20640   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20641   { (exit 1); exit 1; }
20642 fi
20643
20644 # Work around bugs in pre-3.0 UWIN ksh.
20645 for as_var in ENV MAIL MAILPATH
20646 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20647 done
20648 PS1='$ '
20649 PS2='> '
20650 PS4='+ '
20651
20652 # NLS nuisances.
20653 for as_var in \
20654   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20655   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20656   LC_TELEPHONE LC_TIME
20657 do
20658   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20659     eval $as_var=C; export $as_var
20660   else
20661     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20662   fi
20663 done
20664
20665 # Required to use basename.
20666 if expr a : '\(a\)' >/dev/null 2>&1 &&
20667    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20668   as_expr=expr
20669 else
20670   as_expr=false
20671 fi
20672
20673 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20674   as_basename=basename
20675 else
20676   as_basename=false
20677 fi
20678
20679
20680 # Name of the executable.
20681 as_me=`$as_basename -- "$0" ||
20682 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20683          X"$0" : 'X\(//\)$' \| \
20684          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20685 echo X/"$0" |
20686     sed '/^.*\/\([^/][^/]*\)\/*$/{
20687             s//\1/
20688             q
20689           }
20690           /^X\/\(\/\/\)$/{
20691             s//\1/
20692             q
20693           }
20694           /^X\/\(\/\).*/{
20695             s//\1/
20696             q
20697           }
20698           s/.*/./; q'`
20699
20700 # CDPATH.
20701 $as_unset CDPATH
20702
20703
20704
20705   as_lineno_1=$LINENO
20706   as_lineno_2=$LINENO
20707   test "x$as_lineno_1" != "x$as_lineno_2" &&
20708   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20709
20710   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20711   # uniformly replaced by the line number.  The first 'sed' inserts a
20712   # line-number line after each line using $LINENO; the second 'sed'
20713   # does the real work.  The second script uses 'N' to pair each
20714   # line-number line with the line containing $LINENO, and appends
20715   # trailing '-' during substitution so that $LINENO is not a special
20716   # case at line end.
20717   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20718   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20719   # E. McMahon (1931-1989) for sed's syntax.  :-)
20720   sed -n '
20721     p
20722     /[$]LINENO/=
20723   ' <$as_myself |
20724     sed '
20725       s/[$]LINENO.*/&-/
20726       t lineno
20727       b
20728       :lineno
20729       N
20730       :loop
20731       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20732       t loop
20733       s/-\n.*//
20734     ' >$as_me.lineno &&
20735   chmod +x "$as_me.lineno" ||
20736     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20737    { (exit 1); exit 1; }; }
20738
20739   # Don't try to exec as it changes $[0], causing all sort of problems
20740   # (the dirname of $[0] is not the place where we might find the
20741   # original and so on.  Autoconf is especially sensitive to this).
20742   . "./$as_me.lineno"
20743   # Exit status is that of the last command.
20744   exit
20745 }
20746
20747
20748 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20749   as_dirname=dirname
20750 else
20751   as_dirname=false
20752 fi
20753
20754 ECHO_C= ECHO_N= ECHO_T=
20755 case `echo -n x` in
20756 -n*)
20757   case `echo 'x\c'` in
20758   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20759   *)   ECHO_C='\c';;
20760   esac;;
20761 *)
20762   ECHO_N='-n';;
20763 esac
20764
20765 if expr a : '\(a\)' >/dev/null 2>&1 &&
20766    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20767   as_expr=expr
20768 else
20769   as_expr=false
20770 fi
20771
20772 rm -f conf$$ conf$$.exe conf$$.file
20773 if test -d conf$$.dir; then
20774   rm -f conf$$.dir/conf$$.file
20775 else
20776   rm -f conf$$.dir
20777   mkdir conf$$.dir
20778 fi
20779 echo >conf$$.file
20780 if ln -s conf$$.file conf$$ 2>/dev/null; then
20781   as_ln_s='ln -s'
20782   # ... but there are two gotchas:
20783   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20784   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20785   # In both cases, we have to default to `cp -p'.
20786   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20787     as_ln_s='cp -p'
20788 elif ln conf$$.file conf$$ 2>/dev/null; then
20789   as_ln_s=ln
20790 else
20791   as_ln_s='cp -p'
20792 fi
20793 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20794 rmdir conf$$.dir 2>/dev/null
20795
20796 if mkdir -p . 2>/dev/null; then
20797   as_mkdir_p=:
20798 else
20799   test -d ./-p && rmdir ./-p
20800   as_mkdir_p=false
20801 fi
20802
20803 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
20804 # systems may use methods other than mode bits to determine executability.
20805 cat >conf$$.file <<_ASEOF
20806 #! /bin/sh
20807 exit 0
20808 _ASEOF
20809 chmod +x conf$$.file
20810 if test -x conf$$.file >/dev/null 2>&1; then
20811   as_executable_p="test -x"
20812 else
20813   as_executable_p=:
20814 fi
20815 rm -f conf$$.file
20816
20817 # Sed expression to map a string onto a valid CPP name.
20818 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20819
20820 # Sed expression to map a string onto a valid variable name.
20821 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20822
20823
20824 exec 6>&1
20825
20826 # Save the log message, to keep $[0] and so on meaningful, and to
20827 # report actual input values of CONFIG_FILES etc. instead of their
20828 # values after options handling.
20829 ac_log="
20830 This file was extended by llvm $as_me 2.8svn, which was
20831 generated by GNU Autoconf 2.60.  Invocation command line was
20832
20833   CONFIG_FILES    = $CONFIG_FILES
20834   CONFIG_HEADERS  = $CONFIG_HEADERS
20835   CONFIG_LINKS    = $CONFIG_LINKS
20836   CONFIG_COMMANDS = $CONFIG_COMMANDS
20837   $ $0 $@
20838
20839 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20840 "
20841
20842 _ACEOF
20843
20844 cat >>$CONFIG_STATUS <<_ACEOF
20845 # Files that config.status was made for.
20846 config_files="$ac_config_files"
20847 config_headers="$ac_config_headers"
20848 config_commands="$ac_config_commands"
20849
20850 _ACEOF
20851
20852 cat >>$CONFIG_STATUS <<\_ACEOF
20853 ac_cs_usage="\
20854 \`$as_me' instantiates files from templates according to the
20855 current configuration.
20856
20857 Usage: $0 [OPTIONS] [FILE]...
20858
20859   -h, --help       print this help, then exit
20860   -V, --version    print version number, then exit
20861   -q, --quiet      do not print progress messages
20862   -d, --debug      don't remove temporary files
20863       --recheck    update $as_me by reconfiguring in the same conditions
20864   --file=FILE[:TEMPLATE]
20865                    instantiate the configuration file FILE
20866   --header=FILE[:TEMPLATE]
20867                    instantiate the configuration header FILE
20868
20869 Configuration files:
20870 $config_files
20871
20872 Configuration headers:
20873 $config_headers
20874
20875 Configuration commands:
20876 $config_commands
20877
20878 Report bugs to <bug-autoconf@gnu.org>."
20879
20880 _ACEOF
20881 cat >>$CONFIG_STATUS <<_ACEOF
20882 ac_cs_version="\\
20883 llvm config.status 2.8svn
20884 configured by $0, generated by GNU Autoconf 2.60,
20885   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20886
20887 Copyright (C) 2006 Free Software Foundation, Inc.
20888 This config.status script is free software; the Free Software Foundation
20889 gives unlimited permission to copy, distribute and modify it."
20890
20891 ac_pwd='$ac_pwd'
20892 srcdir='$srcdir'
20893 INSTALL='$INSTALL'
20894 _ACEOF
20895
20896 cat >>$CONFIG_STATUS <<\_ACEOF
20897 # If no file are specified by the user, then we need to provide default
20898 # value.  By we need to know if files were specified by the user.
20899 ac_need_defaults=:
20900 while test $# != 0
20901 do
20902   case $1 in
20903   --*=*)
20904     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20905     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20906     ac_shift=:
20907     ;;
20908   *)
20909     ac_option=$1
20910     ac_optarg=$2
20911     ac_shift=shift
20912     ;;
20913   esac
20914
20915   case $ac_option in
20916   # Handling of the options.
20917   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20918     ac_cs_recheck=: ;;
20919   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20920     echo "$ac_cs_version"; exit ;;
20921   --debug | --debu | --deb | --de | --d | -d )
20922     debug=: ;;
20923   --file | --fil | --fi | --f )
20924     $ac_shift
20925     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20926     ac_need_defaults=false;;
20927   --header | --heade | --head | --hea )
20928     $ac_shift
20929     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20930     ac_need_defaults=false;;
20931   --he | --h)
20932     # Conflict between --help and --header
20933     { echo "$as_me: error: ambiguous option: $1
20934 Try \`$0 --help' for more information." >&2
20935    { (exit 1); exit 1; }; };;
20936   --help | --hel | -h )
20937     echo "$ac_cs_usage"; exit ;;
20938   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20939   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20940     ac_cs_silent=: ;;
20941
20942   # This is an error.
20943   -*) { echo "$as_me: error: unrecognized option: $1
20944 Try \`$0 --help' for more information." >&2
20945    { (exit 1); exit 1; }; } ;;
20946
20947   *) ac_config_targets="$ac_config_targets $1"
20948      ac_need_defaults=false ;;
20949
20950   esac
20951   shift
20952 done
20953
20954 ac_configure_extra_args=
20955
20956 if $ac_cs_silent; then
20957   exec 6>/dev/null
20958   ac_configure_extra_args="$ac_configure_extra_args --silent"
20959 fi
20960
20961 _ACEOF
20962 cat >>$CONFIG_STATUS <<_ACEOF
20963 if \$ac_cs_recheck; then
20964   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20965   CONFIG_SHELL=$SHELL
20966   export CONFIG_SHELL
20967   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20968 fi
20969
20970 _ACEOF
20971 cat >>$CONFIG_STATUS <<\_ACEOF
20972 exec 5>>config.log
20973 {
20974   echo
20975   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20976 ## Running $as_me. ##
20977 _ASBOX
20978   echo "$ac_log"
20979 } >&5
20980
20981 _ACEOF
20982 cat >>$CONFIG_STATUS <<_ACEOF
20983 #
20984 # INIT-COMMANDS
20985 #
20986 llvm_src="${srcdir}"
20987
20988 _ACEOF
20989
20990 cat >>$CONFIG_STATUS <<\_ACEOF
20991
20992 # Handling of arguments.
20993 for ac_config_target in $ac_config_targets
20994 do
20995   case $ac_config_target in
20996     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20997     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20998     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20999     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21000     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21001     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21002     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21003     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21004     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
21005     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21006     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21007     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21008     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21009     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21010     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21011     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21012     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21013     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21014     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21015     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21016     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21017     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21018     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21019     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21020
21021   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21022 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21023    { (exit 1); exit 1; }; };;
21024   esac
21025 done
21026
21027
21028 # If the user did not use the arguments to specify the items to instantiate,
21029 # then the envvar interface is used.  Set only those that are not.
21030 # We use the long form for the default assignment because of an extremely
21031 # bizarre bug on SunOS 4.1.3.
21032 if $ac_need_defaults; then
21033   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21034   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21035   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21036 fi
21037
21038 # Have a temporary directory for convenience.  Make it in the build tree
21039 # simply because there is no reason against having it here, and in addition,
21040 # creating and moving files from /tmp can sometimes cause problems.
21041 # Hook for its removal unless debugging.
21042 # Note that there is a small window in which the directory will not be cleaned:
21043 # after its creation but before its name has been assigned to `$tmp'.
21044 $debug ||
21045 {
21046   tmp=
21047   trap 'exit_status=$?
21048   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21049 ' 0
21050   trap '{ (exit 1); exit 1; }' 1 2 13 15
21051 }
21052 # Create a (secure) tmp directory for tmp files.
21053
21054 {
21055   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21056   test -n "$tmp" && test -d "$tmp"
21057 }  ||
21058 {
21059   tmp=./conf$$-$RANDOM
21060   (umask 077 && mkdir "$tmp")
21061 } ||
21062 {
21063    echo "$me: cannot create a temporary directory in ." >&2
21064    { (exit 1); exit 1; }
21065 }
21066
21067 #
21068 # Set up the sed scripts for CONFIG_FILES section.
21069 #
21070
21071 # No need to generate the scripts if there are no CONFIG_FILES.
21072 # This happens for instance when ./config.status config.h
21073 if test -n "$CONFIG_FILES"; then
21074
21075 _ACEOF
21076
21077
21078
21079 ac_delim='%!_!# '
21080 for ac_last_try in false false false false false :; do
21081   cat >conf$$subs.sed <<_ACEOF
21082 SHELL!$SHELL$ac_delim
21083 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21084 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21085 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21086 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21087 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21088 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21089 exec_prefix!$exec_prefix$ac_delim
21090 prefix!$prefix$ac_delim
21091 program_transform_name!$program_transform_name$ac_delim
21092 bindir!$bindir$ac_delim
21093 sbindir!$sbindir$ac_delim
21094 libexecdir!$libexecdir$ac_delim
21095 datarootdir!$datarootdir$ac_delim
21096 datadir!$datadir$ac_delim
21097 sysconfdir!$sysconfdir$ac_delim
21098 sharedstatedir!$sharedstatedir$ac_delim
21099 localstatedir!$localstatedir$ac_delim
21100 includedir!$includedir$ac_delim
21101 oldincludedir!$oldincludedir$ac_delim
21102 docdir!$docdir$ac_delim
21103 infodir!$infodir$ac_delim
21104 htmldir!$htmldir$ac_delim
21105 dvidir!$dvidir$ac_delim
21106 pdfdir!$pdfdir$ac_delim
21107 psdir!$psdir$ac_delim
21108 libdir!$libdir$ac_delim
21109 localedir!$localedir$ac_delim
21110 mandir!$mandir$ac_delim
21111 DEFS!$DEFS$ac_delim
21112 ECHO_C!$ECHO_C$ac_delim
21113 ECHO_N!$ECHO_N$ac_delim
21114 ECHO_T!$ECHO_T$ac_delim
21115 LIBS!$LIBS$ac_delim
21116 build_alias!$build_alias$ac_delim
21117 host_alias!$host_alias$ac_delim
21118 target_alias!$target_alias$ac_delim
21119 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21120 subdirs!$subdirs$ac_delim
21121 build!$build$ac_delim
21122 build_cpu!$build_cpu$ac_delim
21123 build_vendor!$build_vendor$ac_delim
21124 build_os!$build_os$ac_delim
21125 host!$host$ac_delim
21126 host_cpu!$host_cpu$ac_delim
21127 host_vendor!$host_vendor$ac_delim
21128 host_os!$host_os$ac_delim
21129 target!$target$ac_delim
21130 target_cpu!$target_cpu$ac_delim
21131 target_vendor!$target_vendor$ac_delim
21132 target_os!$target_os$ac_delim
21133 OS!$OS$ac_delim
21134 HOST_OS!$HOST_OS$ac_delim
21135 TARGET_OS!$TARGET_OS$ac_delim
21136 LINKALL!$LINKALL$ac_delim
21137 NOLINKALL!$NOLINKALL$ac_delim
21138 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21139 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21140 ARCH!$ARCH$ac_delim
21141 ENDIAN!$ENDIAN$ac_delim
21142 CC!$CC$ac_delim
21143 CFLAGS!$CFLAGS$ac_delim
21144 LDFLAGS!$LDFLAGS$ac_delim
21145 CPPFLAGS!$CPPFLAGS$ac_delim
21146 ac_ct_CC!$ac_ct_CC$ac_delim
21147 EXEEXT!$EXEEXT$ac_delim
21148 OBJEXT!$OBJEXT$ac_delim
21149 CPP!$CPP$ac_delim
21150 GREP!$GREP$ac_delim
21151 EGREP!$EGREP$ac_delim
21152 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21153 BUILD_CC!$BUILD_CC$ac_delim
21154 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21155 BUILD_CXX!$BUILD_CXX$ac_delim
21156 CVSBUILD!$CVSBUILD$ac_delim
21157 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21158 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21159 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21160 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21161 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21162 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21163 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21164 JIT!$JIT$ac_delim
21165 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21166 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21167 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21168 ENABLE_PIC!$ENABLE_PIC$ac_delim
21169 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21170 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21171 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21172 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21173 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21174 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21175 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21176 CLANGPATH!$CLANGPATH$ac_delim
21177 CLANGXXPATH!$CLANGXXPATH$ac_delim
21178 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21179 _ACEOF
21180
21181   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21182     break
21183   elif $ac_last_try; then
21184     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21185 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21186    { (exit 1); exit 1; }; }
21187   else
21188     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21189   fi
21190 done
21191
21192 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21193 if test -n "$ac_eof"; then
21194   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21195   ac_eof=`expr $ac_eof + 1`
21196 fi
21197
21198 cat >>$CONFIG_STATUS <<_ACEOF
21199 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21201 _ACEOF
21202 sed '
21203 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21204 s/^/s,@/; s/!/@,|#_!!_#|/
21205 :n
21206 t n
21207 s/'"$ac_delim"'$/,g/; t
21208 s/$/\\/; p
21209 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21210 ' >>$CONFIG_STATUS <conf$$subs.sed
21211 rm -f conf$$subs.sed
21212 cat >>$CONFIG_STATUS <<_ACEOF
21213 CEOF$ac_eof
21214 _ACEOF
21215
21216
21217 ac_delim='%!_!# '
21218 for ac_last_try in false false false false false :; do
21219   cat >conf$$subs.sed <<_ACEOF
21220 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21221 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21222 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21223 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
21224 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21225 CXX!$CXX$ac_delim
21226 CXXFLAGS!$CXXFLAGS$ac_delim
21227 ac_ct_CXX!$ac_ct_CXX$ac_delim
21228 NM!$NM$ac_delim
21229 ifGNUmake!$ifGNUmake$ac_delim
21230 LN_S!$LN_S$ac_delim
21231 CMP!$CMP$ac_delim
21232 CP!$CP$ac_delim
21233 DATE!$DATE$ac_delim
21234 FIND!$FIND$ac_delim
21235 MKDIR!$MKDIR$ac_delim
21236 MV!$MV$ac_delim
21237 RANLIB!$RANLIB$ac_delim
21238 AR!$AR$ac_delim
21239 RM!$RM$ac_delim
21240 SED!$SED$ac_delim
21241 TAR!$TAR$ac_delim
21242 BINPWD!$BINPWD$ac_delim
21243 GRAPHVIZ!$GRAPHVIZ$ac_delim
21244 DOT!$DOT$ac_delim
21245 FDP!$FDP$ac_delim
21246 NEATO!$NEATO$ac_delim
21247 TWOPI!$TWOPI$ac_delim
21248 CIRCO!$CIRCO$ac_delim
21249 GV!$GV$ac_delim
21250 DOTTY!$DOTTY$ac_delim
21251 PERL!$PERL$ac_delim
21252 HAVE_PERL!$HAVE_PERL$ac_delim
21253 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21254 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21255 INSTALL_DATA!$INSTALL_DATA$ac_delim
21256 BZIP2!$BZIP2$ac_delim
21257 CAT!$CAT$ac_delim
21258 DOXYGEN!$DOXYGEN$ac_delim
21259 GROFF!$GROFF$ac_delim
21260 GZIP!$GZIP$ac_delim
21261 POD2HTML!$POD2HTML$ac_delim
21262 POD2MAN!$POD2MAN$ac_delim
21263 PDFROFF!$PDFROFF$ac_delim
21264 RUNTEST!$RUNTEST$ac_delim
21265 TCLSH!$TCLSH$ac_delim
21266 ZIP!$ZIP$ac_delim
21267 OCAMLC!$OCAMLC$ac_delim
21268 OCAMLOPT!$OCAMLOPT$ac_delim
21269 OCAMLDEP!$OCAMLDEP$ac_delim
21270 OCAMLDOC!$OCAMLDOC$ac_delim
21271 GAS!$GAS$ac_delim
21272 HAVE_LINK_RETAIN_SYMBOLS_FILE!$HAVE_LINK_RETAIN_SYMBOLS_FILE$ac_delim
21273 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21274 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21275 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21276 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21277 LIBADD_DL!$LIBADD_DL$ac_delim
21278 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21279 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21280 LLVMGCC!$LLVMGCC$ac_delim
21281 LLVMGXX!$LLVMGXX$ac_delim
21282 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21283 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21284 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21285 USE_UDIS86!$USE_UDIS86$ac_delim
21286 USE_OPROFILE!$USE_OPROFILE$ac_delim
21287 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21288 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21289 MMAP_FILE!$MMAP_FILE$ac_delim
21290 LLVMCC1!$LLVMCC1$ac_delim
21291 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21292 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21293 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21294 SHLIBEXT!$SHLIBEXT$ac_delim
21295 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21296 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21297 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21298 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21299 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21300 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21301 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21302 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21303 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21304 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21305 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21306 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21307 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21308 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21309 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21310 RPATH!$RPATH$ac_delim
21311 RDYNAMIC!$RDYNAMIC$ac_delim
21312 LIBOBJS!$LIBOBJS$ac_delim
21313 LTLIBOBJS!$LTLIBOBJS$ac_delim
21314 _ACEOF
21315
21316   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
21317     break
21318   elif $ac_last_try; then
21319     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21320 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21321    { (exit 1); exit 1; }; }
21322   else
21323     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21324   fi
21325 done
21326
21327 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21328 if test -n "$ac_eof"; then
21329   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21330   ac_eof=`expr $ac_eof + 1`
21331 fi
21332
21333 cat >>$CONFIG_STATUS <<_ACEOF
21334 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21335 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21336 _ACEOF
21337 sed '
21338 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21339 s/^/s,@/; s/!/@,|#_!!_#|/
21340 :n
21341 t n
21342 s/'"$ac_delim"'$/,g/; t
21343 s/$/\\/; p
21344 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21345 ' >>$CONFIG_STATUS <conf$$subs.sed
21346 rm -f conf$$subs.sed
21347 cat >>$CONFIG_STATUS <<_ACEOF
21348 :end
21349 s/|#_!!_#|//g
21350 CEOF$ac_eof
21351 _ACEOF
21352
21353
21354 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21355 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21356 # trailing colons and then remove the whole line if VPATH becomes empty
21357 # (actually we leave an empty line to preserve line numbers).
21358 if test "x$srcdir" = x.; then
21359   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21360 s/:*\$(srcdir):*/:/
21361 s/:*\${srcdir}:*/:/
21362 s/:*@srcdir@:*/:/
21363 s/^\([^=]*=[     ]*\):*/\1/
21364 s/:*$//
21365 s/^[^=]*=[       ]*$//
21366 }'
21367 fi
21368
21369 cat >>$CONFIG_STATUS <<\_ACEOF
21370 fi # test -n "$CONFIG_FILES"
21371
21372
21373 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21374 do
21375   case $ac_tag in
21376   :[FHLC]) ac_mode=$ac_tag; continue;;
21377   esac
21378   case $ac_mode$ac_tag in
21379   :[FHL]*:*);;
21380   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21381 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21382    { (exit 1); exit 1; }; };;
21383   :[FH]-) ac_tag=-:-;;
21384   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21385   esac
21386   ac_save_IFS=$IFS
21387   IFS=:
21388   set x $ac_tag
21389   IFS=$ac_save_IFS
21390   shift
21391   ac_file=$1
21392   shift
21393
21394   case $ac_mode in
21395   :L) ac_source=$1;;
21396   :[FH])
21397     ac_file_inputs=
21398     for ac_f
21399     do
21400       case $ac_f in
21401       -) ac_f="$tmp/stdin";;
21402       *) # Look for the file first in the build tree, then in the source tree
21403          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21404          # because $ac_f cannot contain `:'.
21405          test -f "$ac_f" ||
21406            case $ac_f in
21407            [\\/$]*) false;;
21408            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21409            esac ||
21410            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21411 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21412    { (exit 1); exit 1; }; };;
21413       esac
21414       ac_file_inputs="$ac_file_inputs $ac_f"
21415     done
21416
21417     # Let's still pretend it is `configure' which instantiates (i.e., don't
21418     # use $as_me), people would be surprised to read:
21419     #    /* config.h.  Generated by config.status.  */
21420     configure_input="Generated from "`IFS=:
21421           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21422     if test x"$ac_file" != x-; then
21423       configure_input="$ac_file.  $configure_input"
21424       { echo "$as_me:$LINENO: creating $ac_file" >&5
21425 echo "$as_me: creating $ac_file" >&6;}
21426     fi
21427
21428     case $ac_tag in
21429     *:-:* | *:-) cat >"$tmp/stdin";;
21430     esac
21431     ;;
21432   esac
21433
21434   ac_dir=`$as_dirname -- "$ac_file" ||
21435 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21436          X"$ac_file" : 'X\(//\)[^/]' \| \
21437          X"$ac_file" : 'X\(//\)$' \| \
21438          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21439 echo X"$ac_file" |
21440     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21441             s//\1/
21442             q
21443           }
21444           /^X\(\/\/\)[^/].*/{
21445             s//\1/
21446             q
21447           }
21448           /^X\(\/\/\)$/{
21449             s//\1/
21450             q
21451           }
21452           /^X\(\/\).*/{
21453             s//\1/
21454             q
21455           }
21456           s/.*/./; q'`
21457   { as_dir="$ac_dir"
21458   case $as_dir in #(
21459   -*) as_dir=./$as_dir;;
21460   esac
21461   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21462     as_dirs=
21463     while :; do
21464       case $as_dir in #(
21465       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21466       *) as_qdir=$as_dir;;
21467       esac
21468       as_dirs="'$as_qdir' $as_dirs"
21469       as_dir=`$as_dirname -- "$as_dir" ||
21470 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21471          X"$as_dir" : 'X\(//\)[^/]' \| \
21472          X"$as_dir" : 'X\(//\)$' \| \
21473          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21474 echo X"$as_dir" |
21475     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21476             s//\1/
21477             q
21478           }
21479           /^X\(\/\/\)[^/].*/{
21480             s//\1/
21481             q
21482           }
21483           /^X\(\/\/\)$/{
21484             s//\1/
21485             q
21486           }
21487           /^X\(\/\).*/{
21488             s//\1/
21489             q
21490           }
21491           s/.*/./; q'`
21492       test -d "$as_dir" && break
21493     done
21494     test -z "$as_dirs" || eval "mkdir $as_dirs"
21495   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21496 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21497    { (exit 1); exit 1; }; }; }
21498   ac_builddir=.
21499
21500 case "$ac_dir" in
21501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21502 *)
21503   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21504   # A ".." for each directory in $ac_dir_suffix.
21505   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21506   case $ac_top_builddir_sub in
21507   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21508   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21509   esac ;;
21510 esac
21511 ac_abs_top_builddir=$ac_pwd
21512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21513 # for backward compatibility:
21514 ac_top_builddir=$ac_top_build_prefix
21515
21516 case $srcdir in
21517   .)  # We are building in place.
21518     ac_srcdir=.
21519     ac_top_srcdir=$ac_top_builddir_sub
21520     ac_abs_top_srcdir=$ac_pwd ;;
21521   [\\/]* | ?:[\\/]* )  # Absolute name.
21522     ac_srcdir=$srcdir$ac_dir_suffix;
21523     ac_top_srcdir=$srcdir
21524     ac_abs_top_srcdir=$srcdir ;;
21525   *) # Relative name.
21526     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21527     ac_top_srcdir=$ac_top_build_prefix$srcdir
21528     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21529 esac
21530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21531
21532
21533   case $ac_mode in
21534   :F)
21535   #
21536   # CONFIG_FILE
21537   #
21538
21539   case $INSTALL in
21540   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21541   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21542   esac
21543 _ACEOF
21544
21545 cat >>$CONFIG_STATUS <<\_ACEOF
21546 # If the template does not know about datarootdir, expand it.
21547 # FIXME: This hack should be removed a few years after 2.60.
21548 ac_datarootdir_hack=; ac_datarootdir_seen=
21549
21550 case `sed -n '/datarootdir/ {
21551   p
21552   q
21553 }
21554 /@datadir@/p
21555 /@docdir@/p
21556 /@infodir@/p
21557 /@localedir@/p
21558 /@mandir@/p
21559 ' $ac_file_inputs` in
21560 *datarootdir*) ac_datarootdir_seen=yes;;
21561 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21562   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21563 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21564 _ACEOF
21565 cat >>$CONFIG_STATUS <<_ACEOF
21566   ac_datarootdir_hack='
21567   s&@datadir@&$datadir&g
21568   s&@docdir@&$docdir&g
21569   s&@infodir@&$infodir&g
21570   s&@localedir@&$localedir&g
21571   s&@mandir@&$mandir&g
21572     s&\\\${datarootdir}&$datarootdir&g' ;;
21573 esac
21574 _ACEOF
21575
21576 # Neutralize VPATH when `$srcdir' = `.'.
21577 # Shell code in configure.ac might set extrasub.
21578 # FIXME: do we really want to maintain this feature?
21579 cat >>$CONFIG_STATUS <<_ACEOF
21580   sed "$ac_vpsub
21581 $extrasub
21582 _ACEOF
21583 cat >>$CONFIG_STATUS <<\_ACEOF
21584 :t
21585 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21586 s&@configure_input@&$configure_input&;t t
21587 s&@top_builddir@&$ac_top_builddir_sub&;t t
21588 s&@srcdir@&$ac_srcdir&;t t
21589 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21590 s&@top_srcdir@&$ac_top_srcdir&;t t
21591 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21592 s&@builddir@&$ac_builddir&;t t
21593 s&@abs_builddir@&$ac_abs_builddir&;t t
21594 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21595 s&@INSTALL@&$ac_INSTALL&;t t
21596 $ac_datarootdir_hack
21597 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21598
21599 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21600   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21601   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21602   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21603 which seems to be undefined.  Please make sure it is defined." >&5
21604 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21605 which seems to be undefined.  Please make sure it is defined." >&2;}
21606
21607   rm -f "$tmp/stdin"
21608   case $ac_file in
21609   -) cat "$tmp/out"; rm -f "$tmp/out";;
21610   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21611   esac
21612  ;;
21613   :H)
21614   #
21615   # CONFIG_HEADER
21616   #
21617 _ACEOF
21618
21619 # Transform confdefs.h into a sed script `conftest.defines', that
21620 # substitutes the proper values into config.h.in to produce config.h.
21621 rm -f conftest.defines conftest.tail
21622 # First, append a space to every undef/define line, to ease matching.
21623 echo 's/$/ /' >conftest.defines
21624 # Then, protect against being on the right side of a sed subst, or in
21625 # an unquoted here document, in config.status.  If some macros were
21626 # called several times there might be several #defines for the same
21627 # symbol, which is useless.  But do not sort them, since the last
21628 # AC_DEFINE must be honored.
21629 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21630 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21631 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21632 # PARAMS is the parameter list in the macro definition--in most cases, it's
21633 # just an empty string.
21634 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21635 ac_dB='\\)[      (].*,\\1define\\2'
21636 ac_dC=' '
21637 ac_dD=' ,'
21638
21639 uniq confdefs.h |
21640   sed -n '
21641         t rset
21642         :rset
21643         s/^[     ]*#[    ]*define[       ][      ]*//
21644         t ok
21645         d
21646         :ok
21647         s/[\\&,]/\\&/g
21648         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21649         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21650   ' >>conftest.defines
21651
21652 # Remove the space that was appended to ease matching.
21653 # Then replace #undef with comments.  This is necessary, for
21654 # example, in the case of _POSIX_SOURCE, which is predefined and required
21655 # on some systems where configure will not decide to define it.
21656 # (The regexp can be short, since the line contains either #define or #undef.)
21657 echo 's/ $//
21658 s,^[     #]*u.*,/* & */,' >>conftest.defines
21659
21660 # Break up conftest.defines:
21661 ac_max_sed_lines=50
21662
21663 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21664 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21665 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21666 # et cetera.
21667 ac_in='$ac_file_inputs'
21668 ac_out='"$tmp/out1"'
21669 ac_nxt='"$tmp/out2"'
21670
21671 while :
21672 do
21673   # Write a here document:
21674     cat >>$CONFIG_STATUS <<_ACEOF
21675     # First, check the format of the line:
21676     cat >"\$tmp/defines.sed" <<\\CEOF
21677 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21678 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21679 b
21680 :def
21681 _ACEOF
21682   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21683   echo 'CEOF
21684     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21685   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21686   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21687   grep . conftest.tail >/dev/null || break
21688   rm -f conftest.defines
21689   mv conftest.tail conftest.defines
21690 done
21691 rm -f conftest.defines conftest.tail
21692
21693 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21694 cat >>$CONFIG_STATUS <<\_ACEOF
21695   if test x"$ac_file" != x-; then
21696     echo "/* $configure_input  */" >"$tmp/config.h"
21697     cat "$ac_result" >>"$tmp/config.h"
21698     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21699       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21700 echo "$as_me: $ac_file is unchanged" >&6;}
21701     else
21702       rm -f $ac_file
21703       mv "$tmp/config.h" $ac_file
21704     fi
21705   else
21706     echo "/* $configure_input  */"
21707     cat "$ac_result"
21708   fi
21709   rm -f "$tmp/out12"
21710  ;;
21711
21712   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21713 echo "$as_me: executing $ac_file commands" >&6;}
21714  ;;
21715   esac
21716
21717
21718   case $ac_file$ac_mode in
21719     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21720    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21721     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21722    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21723     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21724    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21725     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21726    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21727     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21728    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21729     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21730    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21731     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21732    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21733     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21734    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21735     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21736    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21737     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21738    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21739     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21740    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21741     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21742    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21743     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21744    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21745
21746   esac
21747 done # for ac_tag
21748
21749
21750 { (exit 0); exit 0; }
21751 _ACEOF
21752 chmod +x $CONFIG_STATUS
21753 ac_clean_files=$ac_clean_files_save
21754
21755
21756 # configure is writing to config.log, and then calls config.status.
21757 # config.status does its own redirection, appending to config.log.
21758 # Unfortunately, on DOS this fails, as config.log is still kept open
21759 # by configure, so config.status won't be able to write to it; its
21760 # output is simply discarded.  So we exec the FD to /dev/null,
21761 # effectively closing config.log, so it can be properly (re)opened and
21762 # appended to by config.status.  When coming back to configure, we
21763 # need to make the FD available again.
21764 if test "$no_create" != yes; then
21765   ac_cs_success=:
21766   ac_config_status_args=
21767   test "$silent" = yes &&
21768     ac_config_status_args="$ac_config_status_args --quiet"
21769   exec 5>/dev/null
21770   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21771   exec 5>>config.log
21772   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21773   # would make configure fail if this is the last instruction.
21774   $ac_cs_success || { (exit 1); exit 1; }
21775 fi
21776
21777 #
21778 # CONFIG_SUBDIRS section.
21779 #
21780 if test "$no_recursion" != yes; then
21781
21782   # Remove --cache-file and --srcdir arguments so they do not pile up.
21783   ac_sub_configure_args=
21784   ac_prev=
21785   eval "set x $ac_configure_args"
21786   shift
21787   for ac_arg
21788   do
21789     if test -n "$ac_prev"; then
21790       ac_prev=
21791       continue
21792     fi
21793     case $ac_arg in
21794     -cache-file | --cache-file | --cache-fil | --cache-fi \
21795     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21796       ac_prev=cache_file ;;
21797     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21798     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21799     | --c=*)
21800       ;;
21801     --config-cache | -C)
21802       ;;
21803     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21804       ac_prev=srcdir ;;
21805     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21806       ;;
21807     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21808       ac_prev=prefix ;;
21809     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21810       ;;
21811     *)
21812       case $ac_arg in
21813       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21814       esac
21815       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21816     esac
21817   done
21818
21819   # Always prepend --prefix to ensure using the same prefix
21820   # in subdir configurations.
21821   ac_arg="--prefix=$prefix"
21822   case $ac_arg in
21823   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21824   esac
21825   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21826
21827   ac_popdir=`pwd`
21828   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21829
21830     # Do not complain, so a configure script can configure whichever
21831     # parts of a large source tree are present.
21832     test -d "$srcdir/$ac_dir" || continue
21833
21834     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21835     echo "$as_me:$LINENO: $ac_msg" >&5
21836     echo "$ac_msg" >&6
21837     { as_dir="$ac_dir"
21838   case $as_dir in #(
21839   -*) as_dir=./$as_dir;;
21840   esac
21841   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21842     as_dirs=
21843     while :; do
21844       case $as_dir in #(
21845       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21846       *) as_qdir=$as_dir;;
21847       esac
21848       as_dirs="'$as_qdir' $as_dirs"
21849       as_dir=`$as_dirname -- "$as_dir" ||
21850 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21851          X"$as_dir" : 'X\(//\)[^/]' \| \
21852          X"$as_dir" : 'X\(//\)$' \| \
21853          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21854 echo X"$as_dir" |
21855     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21856             s//\1/
21857             q
21858           }
21859           /^X\(\/\/\)[^/].*/{
21860             s//\1/
21861             q
21862           }
21863           /^X\(\/\/\)$/{
21864             s//\1/
21865             q
21866           }
21867           /^X\(\/\).*/{
21868             s//\1/
21869             q
21870           }
21871           s/.*/./; q'`
21872       test -d "$as_dir" && break
21873     done
21874     test -z "$as_dirs" || eval "mkdir $as_dirs"
21875   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21876 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21877    { (exit 1); exit 1; }; }; }
21878     ac_builddir=.
21879
21880 case "$ac_dir" in
21881 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21882 *)
21883   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21884   # A ".." for each directory in $ac_dir_suffix.
21885   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21886   case $ac_top_builddir_sub in
21887   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21888   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21889   esac ;;
21890 esac
21891 ac_abs_top_builddir=$ac_pwd
21892 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21893 # for backward compatibility:
21894 ac_top_builddir=$ac_top_build_prefix
21895
21896 case $srcdir in
21897   .)  # We are building in place.
21898     ac_srcdir=.
21899     ac_top_srcdir=$ac_top_builddir_sub
21900     ac_abs_top_srcdir=$ac_pwd ;;
21901   [\\/]* | ?:[\\/]* )  # Absolute name.
21902     ac_srcdir=$srcdir$ac_dir_suffix;
21903     ac_top_srcdir=$srcdir
21904     ac_abs_top_srcdir=$srcdir ;;
21905   *) # Relative name.
21906     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21907     ac_top_srcdir=$ac_top_build_prefix$srcdir
21908     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21909 esac
21910 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21911
21912
21913     cd "$ac_dir"
21914
21915     # Check for guested configure; otherwise get Cygnus style configure.
21916     if test -f "$ac_srcdir/configure.gnu"; then
21917       ac_sub_configure=$ac_srcdir/configure.gnu
21918     elif test -f "$ac_srcdir/configure"; then
21919       ac_sub_configure=$ac_srcdir/configure
21920     elif test -f "$ac_srcdir/configure.in"; then
21921       # This should be Cygnus configure.
21922       ac_sub_configure=$ac_aux_dir/configure
21923     else
21924       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21926       ac_sub_configure=
21927     fi
21928
21929     # The recursion is here.
21930     if test -n "$ac_sub_configure"; then
21931       # Make the cache file name correct relative to the subdirectory.
21932       case $cache_file in
21933       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21934       *) # Relative name.
21935         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21936       esac
21937
21938       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21939 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21940       # The eval makes quoting arguments work.
21941       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21942            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21943         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21944 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21945    { (exit 1); exit 1; }; }
21946     fi
21947
21948     cd "$ac_popdir"
21949   done
21950 fi
21951