Regenerate.
[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 DOXYGEN
740 GROFF
741 GZIP
742 POD2HTML
743 POD2MAN
744 RUNTEST
745 TCLSH
746 ZIP
747 OCAMLC
748 OCAMLOPT
749 OCAMLDEP
750 OCAMLDOC
751 GAS
752 HAVE_LINK_RETAIN_SYMBOLS_FILE
753 INSTALL_LTDL_TRUE
754 INSTALL_LTDL_FALSE
755 CONVENIENCE_LTDL_TRUE
756 CONVENIENCE_LTDL_FALSE
757 LIBADD_DL
758 LLVMGCCCOMMAND
759 LLVMGXXCOMMAND
760 LLVMGCC
761 LLVMGXX
762 LLVMCC_OPTION
763 NO_VARIADIC_MACROS
764 NO_MISSING_FIELD_INITIALIZERS
765 USE_UDIS86
766 USE_OPROFILE
767 HAVE_PTHREAD
768 HUGE_VAL_SANITY
769 MMAP_FILE
770 LLVMCC1
771 LLVMCC1PLUS
772 LLVMGCCDIR
773 LLVMGCC_LANGS
774 SHLIBEXT
775 SHLIBPATH_VAR
776 LLVM_PREFIX
777 LLVM_BINDIR
778 LLVM_LIBDIR
779 LLVM_DATADIR
780 LLVM_DOCSDIR
781 LLVM_ETCDIR
782 LLVM_INCLUDEDIR
783 LLVM_INFODIR
784 LLVM_MANDIR
785 LLVM_CONFIGTIME
786 BINDINGS_TO_BUILD
787 ALL_BINDINGS
788 OCAML_LIBDIR
789 ENABLE_VISIBILITY_INLINES_HIDDEN
790 RPATH
791 RDYNAMIC
792 LIBOBJS
793 LTLIBOBJS'
794 ac_subst_files=''
795       ac_precious_vars='build_alias
796 host_alias
797 target_alias
798 CC
799 CFLAGS
800 LDFLAGS
801 CPPFLAGS
802 CPP
803 CXX
804 CXXFLAGS
805 CCC'
806 ac_subdirs_all='projects/llvm-gcc
807 projects/test-suite
808 projects/llvm-test
809 projects/poolalloc
810 projects/llvm-poolalloc
811 projects/sample
812 projects/privbracket
813 projects/llvm-stacker
814 projects/llvm-reopt
815 projects/llvm-java
816 projects/llvm-tv
817 projects/safecode
818 projects/llvm-kernel'
819
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
839
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
858 htmldir='${docdir}'
859 dvidir='${docdir}'
860 pdfdir='${docdir}'
861 psdir='${docdir}'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
865
866 ac_prev=
867 ac_dashdash=
868 for ac_option
869 do
870   # If the previous option needs an argument, assign it.
871   if test -n "$ac_prev"; then
872     eval $ac_prev=\$ac_option
873     ac_prev=
874     continue
875   fi
876
877   case $ac_option in
878   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879   *)    ac_optarg=yes ;;
880   esac
881
882   # Accept the important Cygnus configure options, so we can diagnose typos.
883
884   case $ac_dashdash$ac_option in
885   --)
886     ac_dashdash=yes ;;
887
888   -bindir | --bindir | --bindi | --bind | --bin | --bi)
889     ac_prev=bindir ;;
890   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891     bindir=$ac_optarg ;;
892
893   -build | --build | --buil | --bui | --bu)
894     ac_prev=build_alias ;;
895   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896     build_alias=$ac_optarg ;;
897
898   -cache-file | --cache-file | --cache-fil | --cache-fi \
899   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900     ac_prev=cache_file ;;
901   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903     cache_file=$ac_optarg ;;
904
905   --config-cache | -C)
906     cache_file=config.cache ;;
907
908   -datadir | --datadir | --datadi | --datad)
909     ac_prev=datadir ;;
910   -datadir=* | --datadir=* | --datadi=* | --datad=*)
911     datadir=$ac_optarg ;;
912
913   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914   | --dataroo | --dataro | --datar)
915     ac_prev=datarootdir ;;
916   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918     datarootdir=$ac_optarg ;;
919
920   -disable-* | --disable-*)
921     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922     # Reject names that are not valid shell variable names.
923     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925    { (exit 1); exit 1; }; }
926     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927     eval enable_$ac_feature=no ;;
928
929   -docdir | --docdir | --docdi | --doc | --do)
930     ac_prev=docdir ;;
931   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932     docdir=$ac_optarg ;;
933
934   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935     ac_prev=dvidir ;;
936   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937     dvidir=$ac_optarg ;;
938
939   -enable-* | --enable-*)
940     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944    { (exit 1); exit 1; }; }
945     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946     eval enable_$ac_feature=\$ac_optarg ;;
947
948   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950   | --exec | --exe | --ex)
951     ac_prev=exec_prefix ;;
952   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954   | --exec=* | --exe=* | --ex=*)
955     exec_prefix=$ac_optarg ;;
956
957   -gas | --gas | --ga | --g)
958     # Obsolete; use --with-gas.
959     with_gas=yes ;;
960
961   -help | --help | --hel | --he | -h)
962     ac_init_help=long ;;
963   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964     ac_init_help=recursive ;;
965   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966     ac_init_help=short ;;
967
968   -host | --host | --hos | --ho)
969     ac_prev=host_alias ;;
970   -host=* | --host=* | --hos=* | --ho=*)
971     host_alias=$ac_optarg ;;
972
973   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974     ac_prev=htmldir ;;
975   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976   | --ht=*)
977     htmldir=$ac_optarg ;;
978
979   -includedir | --includedir | --includedi | --included | --include \
980   | --includ | --inclu | --incl | --inc)
981     ac_prev=includedir ;;
982   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983   | --includ=* | --inclu=* | --incl=* | --inc=*)
984     includedir=$ac_optarg ;;
985
986   -infodir | --infodir | --infodi | --infod | --info | --inf)
987     ac_prev=infodir ;;
988   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989     infodir=$ac_optarg ;;
990
991   -libdir | --libdir | --libdi | --libd)
992     ac_prev=libdir ;;
993   -libdir=* | --libdir=* | --libdi=* | --libd=*)
994     libdir=$ac_optarg ;;
995
996   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997   | --libexe | --libex | --libe)
998     ac_prev=libexecdir ;;
999   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000   | --libexe=* | --libex=* | --libe=*)
1001     libexecdir=$ac_optarg ;;
1002
1003   -localedir | --localedir | --localedi | --localed | --locale)
1004     ac_prev=localedir ;;
1005   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006     localedir=$ac_optarg ;;
1007
1008   -localstatedir | --localstatedir | --localstatedi | --localstated \
1009   | --localstate | --localstat | --localsta | --localst | --locals)
1010     ac_prev=localstatedir ;;
1011   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013     localstatedir=$ac_optarg ;;
1014
1015   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016     ac_prev=mandir ;;
1017   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018     mandir=$ac_optarg ;;
1019
1020   -nfp | --nfp | --nf)
1021     # Obsolete; use --without-fp.
1022     with_fp=no ;;
1023
1024   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025   | --no-cr | --no-c | -n)
1026     no_create=yes ;;
1027
1028   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030     no_recursion=yes ;;
1031
1032   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034   | --oldin | --oldi | --old | --ol | --o)
1035     ac_prev=oldincludedir ;;
1036   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039     oldincludedir=$ac_optarg ;;
1040
1041   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042     ac_prev=prefix ;;
1043   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044     prefix=$ac_optarg ;;
1045
1046   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047   | --program-pre | --program-pr | --program-p)
1048     ac_prev=program_prefix ;;
1049   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051     program_prefix=$ac_optarg ;;
1052
1053   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054   | --program-suf | --program-su | --program-s)
1055     ac_prev=program_suffix ;;
1056   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058     program_suffix=$ac_optarg ;;
1059
1060   -program-transform-name | --program-transform-name \
1061   | --program-transform-nam | --program-transform-na \
1062   | --program-transform-n | --program-transform- \
1063   | --program-transform | --program-transfor \
1064   | --program-transfo | --program-transf \
1065   | --program-trans | --program-tran \
1066   | --progr-tra | --program-tr | --program-t)
1067     ac_prev=program_transform_name ;;
1068   -program-transform-name=* | --program-transform-name=* \
1069   | --program-transform-nam=* | --program-transform-na=* \
1070   | --program-transform-n=* | --program-transform-=* \
1071   | --program-transform=* | --program-transfor=* \
1072   | --program-transfo=* | --program-transf=* \
1073   | --program-trans=* | --program-tran=* \
1074   | --progr-tra=* | --program-tr=* | --program-t=*)
1075     program_transform_name=$ac_optarg ;;
1076
1077   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078     ac_prev=pdfdir ;;
1079   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080     pdfdir=$ac_optarg ;;
1081
1082   -psdir | --psdir | --psdi | --psd | --ps)
1083     ac_prev=psdir ;;
1084   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085     psdir=$ac_optarg ;;
1086
1087   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088   | -silent | --silent | --silen | --sile | --sil)
1089     silent=yes ;;
1090
1091   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092     ac_prev=sbindir ;;
1093   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094   | --sbi=* | --sb=*)
1095     sbindir=$ac_optarg ;;
1096
1097   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099   | --sharedst | --shareds | --shared | --share | --shar \
1100   | --sha | --sh)
1101     ac_prev=sharedstatedir ;;
1102   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105   | --sha=* | --sh=*)
1106     sharedstatedir=$ac_optarg ;;
1107
1108   -site | --site | --sit)
1109     ac_prev=site ;;
1110   -site=* | --site=* | --sit=*)
1111     site=$ac_optarg ;;
1112
1113   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114     ac_prev=srcdir ;;
1115   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116     srcdir=$ac_optarg ;;
1117
1118   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119   | --syscon | --sysco | --sysc | --sys | --sy)
1120     ac_prev=sysconfdir ;;
1121   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123     sysconfdir=$ac_optarg ;;
1124
1125   -target | --target | --targe | --targ | --tar | --ta | --t)
1126     ac_prev=target_alias ;;
1127   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128     target_alias=$ac_optarg ;;
1129
1130   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131     verbose=yes ;;
1132
1133   -version | --version | --versio | --versi | --vers | -V)
1134     ac_init_version=: ;;
1135
1136   -with-* | --with-*)
1137     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138     # Reject names that are not valid shell variable names.
1139     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140       { echo "$as_me: error: invalid package name: $ac_package" >&2
1141    { (exit 1); exit 1; }; }
1142     ac_package=`echo $ac_package| sed 's/-/_/g'`
1143     eval with_$ac_package=\$ac_optarg ;;
1144
1145   -without-* | --without-*)
1146     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149       { echo "$as_me: error: invalid package name: $ac_package" >&2
1150    { (exit 1); exit 1; }; }
1151     ac_package=`echo $ac_package | sed 's/-/_/g'`
1152     eval with_$ac_package=no ;;
1153
1154   --x)
1155     # Obsolete; use --with-x.
1156     with_x=yes ;;
1157
1158   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159   | --x-incl | --x-inc | --x-in | --x-i)
1160     ac_prev=x_includes ;;
1161   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163     x_includes=$ac_optarg ;;
1164
1165   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167     ac_prev=x_libraries ;;
1168   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170     x_libraries=$ac_optarg ;;
1171
1172   -*) { echo "$as_me: error: unrecognized option: $ac_option
1173 Try \`$0 --help' for more information." >&2
1174    { (exit 1); exit 1; }; }
1175     ;;
1176
1177   *=*)
1178     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179     # Reject names that are not valid shell variable names.
1180     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182    { (exit 1); exit 1; }; }
1183     eval $ac_envvar=\$ac_optarg
1184     export $ac_envvar ;;
1185
1186   *)
1187     # FIXME: should be removed in autoconf 3.0.
1188     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192     ;;
1193
1194   esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199   { echo "$as_me: error: missing argument to $ac_option" >&2
1200    { (exit 1); exit 1; }; }
1201 fi
1202
1203 # Be sure to have absolute directory names.
1204 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205                 datadir sysconfdir sharedstatedir localstatedir includedir \
1206                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207                 libdir localedir mandir
1208 do
1209   eval ac_val=\$$ac_var
1210   case $ac_val in
1211     [\\/$]* | ?:[\\/]* )  continue;;
1212     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213   esac
1214   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215    { (exit 1); exit 1; }; }
1216 done
1217
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1221 build=$build_alias
1222 host=$host_alias
1223 target=$target_alias
1224
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227   if test "x$build_alias" = x; then
1228     cross_compiling=maybe
1229     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1230     If a cross compiler is detected then cross compile mode will be used." >&2
1231   elif test "x$build_alias" != "x$host_alias"; then
1232     cross_compiling=yes
1233   fi
1234 fi
1235
1236 ac_tool_prefix=
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239 test "$silent" = yes && exec 6>/dev/null
1240
1241
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245   { echo "$as_me: error: Working directory cannot be determined" >&2
1246    { (exit 1); exit 1; }; }
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248   { echo "$as_me: error: pwd does not report name of working directory" >&2
1249    { (exit 1); exit 1; }; }
1250
1251
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254   ac_srcdir_defaulted=yes
1255   # Try the directory containing this script, then the parent directory.
1256   ac_confdir=`$as_dirname -- "$0" ||
1257 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258          X"$0" : 'X\(//\)[^/]' \| \
1259          X"$0" : 'X\(//\)$' \| \
1260          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261 echo X"$0" |
1262     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263             s//\1/
1264             q
1265           }
1266           /^X\(\/\/\)[^/].*/{
1267             s//\1/
1268             q
1269           }
1270           /^X\(\/\/\)$/{
1271             s//\1/
1272             q
1273           }
1274           /^X\(\/\).*/{
1275             s//\1/
1276             q
1277           }
1278           s/.*/./; q'`
1279   srcdir=$ac_confdir
1280   if test ! -r "$srcdir/$ac_unique_file"; then
1281     srcdir=..
1282   fi
1283 else
1284   ac_srcdir_defaulted=no
1285 fi
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289    { (exit 1); exit 1; }; }
1290 fi
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 ac_abs_confdir=`(
1293         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294    { (exit 1); exit 1; }; }
1295         pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298   srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_env_${ac_var}_value=\$${ac_var}
1309   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317   # Omit some internal or obsolete options to make the list less imposing.
1318   # This message is too long to be a string in the A/UX 3.1 sh.
1319   cat <<_ACEOF
1320 \`configure' configures llvm 2.8svn to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE.  See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330   -h, --help              display this help and exit
1331       --help=short        display options specific to this package
1332       --help=recursive    display the short help of all the included packages
1333   -V, --version           display version information and exit
1334   -q, --quiet, --silent   do not print \`checking...' messages
1335       --cache-file=FILE   cache test results in FILE [disabled]
1336   -C, --config-cache      alias for \`--cache-file=config.cache'
1337   -n, --no-create         do not create output files
1338       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341   --prefix=PREFIX         install architecture-independent files in PREFIX
1342                           [$ac_default_prefix]
1343   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1344                           [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354   --bindir=DIR           user executables [EPREFIX/bin]
1355   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1356   --libexecdir=DIR       program executables [EPREFIX/libexec]
1357   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1358   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1359   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1360   --libdir=DIR           object code libraries [EPREFIX/lib]
1361   --includedir=DIR       C header files [PREFIX/include]
1362   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1363   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1364   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1365   --infodir=DIR          info documentation [DATAROOTDIR/info]
1366   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1367   --mandir=DIR           man documentation [DATAROOTDIR/man]
1368   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1369   --htmldir=DIR          html documentation [DOCDIR]
1370   --dvidir=DIR           dvi documentation [DOCDIR]
1371   --pdfdir=DIR           pdf documentation [DOCDIR]
1372   --psdir=DIR            ps documentation [DOCDIR]
1373 _ACEOF
1374
1375   cat <<\_ACEOF
1376
1377 System types:
1378   --build=BUILD     configure for building on BUILD [guessed]
1379   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1380   --target=TARGET   configure for building compilers for TARGET [HOST]
1381 _ACEOF
1382 fi
1383
1384 if test -n "$ac_init_help"; then
1385   case $ac_init_help in
1386      short | recursive ) echo "Configuration of llvm 2.8svn:";;
1387    esac
1388   cat <<\_ACEOF
1389
1390 Optional Features:
1391   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1392   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1393   --enable-optimized      Compile with optimizations enabled (default is NO)
1394   --enable-profiling      Compile with profiling enabled (default is NO)
1395   --enable-assertions     Compile with assertion checks enabled (default is
1396                           YES)
1397   --enable-expensive-checks
1398                           Compile with expensive debug checks enabled (default
1399                           is NO)
1400   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1401                           NO)
1402   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1403                           optimization is on and YES if it's off)
1404   --enable-jit            Enable Just In Time Compiling (default is YES)
1405   --enable-doxygen        Build doxygen documentation (default is NO)
1406   --enable-threads        Use threads if available (default is YES)
1407   --enable-pic            Build LLVM with Position Independent Code (default
1408                           is YES)
1409   --enable-shared         Build a shared library and link tools against it
1410                           (default is NO)
1411   --enable-targets        Build specific host targets: all or
1412                           target1,target2,... Valid targets are: host, x86,
1413                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1414                           pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1415                           and cpp (default=all)
1416   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1417                           %a (default is YES)
1418   --enable-bindings       Build specific language bindings:
1419                           all,auto,none,{binding-name} (default=auto)
1420   --enable-libffi         Check for the presence of libffi (default is NO)
1421   --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1422                           Win32)
1423   --enable-llvmc-dynamic-plugins
1424                           Enable dynamic LLVMC plugins (default is YES)
1425   --enable-ltdl-install   install libltdl
1426
1427 Optional Packages:
1428   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1431                           searches PATH)
1432   --with-llvmgcc          Specify location of llvm-gcc driver (default
1433                           searches PATH)
1434   --with-llvmgxx          Specify location of llvm-g++ driver (default
1435                           searches PATH)
1436   --with-clang            Specify location of clang compiler (default is
1437                           --with-built-clang)
1438   --with-built-clang      Use the compiled Clang as the LLVM compiler
1439                           (default=check)
1440   --with-optimize-option  Select the compiler options to use for optimized
1441                           builds
1442   --with-extra-options    Specify additional options to compile LLVM with
1443   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1444                           is stdlib)
1445   --with-c-include-dirs   Colon separated list of directories clang will
1446                           search for headers
1447   --with-cxx-include-root Directory with the libstdc++ headers.
1448   --with-cxx-include-arch Architecture of the libstdc++ headers.
1449   --with-cxx-include-32bit-dir
1450                           32 bit multilib dir.
1451   --with-cxx-include-64bit-dir
1452                           64 bit multilib directory.
1453   --with-binutils-include Specify path to binutils/include/ containing
1454                           plugin-api.h file for gold plugin.
1455   --with-tclinclude       directory where tcl headers are
1456   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1457                           clang, or none; default=check)
1458   --with-udis86=<path>    Use udis86 external x86 disassembler library
1459   --with-oprofile=<prefix>
1460                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1461
1462 Some influential environment variables:
1463   CC          C compiler command
1464   CFLAGS      C compiler flags
1465   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1466               nonstandard directory <lib dir>
1467   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1468               you have headers in a nonstandard directory <include dir>
1469   CPP         C preprocessor
1470   CXX         C++ compiler command
1471   CXXFLAGS    C++ compiler flags
1472
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1475
1476 Report bugs to <llvmbugs@cs.uiuc.edu>.
1477 _ACEOF
1478 ac_status=$?
1479 fi
1480
1481 if test "$ac_init_help" = "recursive"; then
1482   # If there are subdirs, report their specific --help.
1483   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1484     test -d "$ac_dir" || continue
1485     ac_builddir=.
1486
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *)
1490   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1491   # A ".." for each directory in $ac_dir_suffix.
1492   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1493   case $ac_top_builddir_sub in
1494   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496   esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1502
1503 case $srcdir in
1504   .)  # We are building in place.
1505     ac_srcdir=.
1506     ac_top_srcdir=$ac_top_builddir_sub
1507     ac_abs_top_srcdir=$ac_pwd ;;
1508   [\\/]* | ?:[\\/]* )  # Absolute name.
1509     ac_srcdir=$srcdir$ac_dir_suffix;
1510     ac_top_srcdir=$srcdir
1511     ac_abs_top_srcdir=$srcdir ;;
1512   *) # Relative name.
1513     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514     ac_top_srcdir=$ac_top_build_prefix$srcdir
1515     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519     cd "$ac_dir" || { ac_status=$?; continue; }
1520     # Check for guested configure.
1521     if test -f "$ac_srcdir/configure.gnu"; then
1522       echo &&
1523       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524     elif test -f "$ac_srcdir/configure"; then
1525       echo &&
1526       $SHELL "$ac_srcdir/configure" --help=recursive
1527     else
1528       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529     fi || ac_status=$?
1530     cd "$ac_pwd" || { ac_status=$?; break; }
1531   done
1532 fi
1533
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536   cat <<\_ACEOF
1537 llvm configure 2.8svn
1538 generated by GNU Autoconf 2.60
1539
1540 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1541 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544
1545 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1546 _ACEOF
1547   exit
1548 fi
1549 cat >config.log <<_ACEOF
1550 This file contains any messages produced by compilers while
1551 running configure, to aid debugging if configure makes a mistake.
1552
1553 It was created by llvm $as_me 2.8svn, which was
1554 generated by GNU Autoconf 2.60.  Invocation command line was
1555
1556   $ $0 $@
1557
1558 _ACEOF
1559 exec 5>>config.log
1560 {
1561 cat <<_ASUNAME
1562 ## --------- ##
1563 ## Platform. ##
1564 ## --------- ##
1565
1566 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1567 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1568 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1569 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1570 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571
1572 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1573 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1574
1575 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1576 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1577 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1578 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1579 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1580 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1581 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1582
1583 _ASUNAME
1584
1585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 for as_dir in $PATH
1587 do
1588   IFS=$as_save_IFS
1589   test -z "$as_dir" && as_dir=.
1590   echo "PATH: $as_dir"
1591 done
1592 IFS=$as_save_IFS
1593
1594 } >&5
1595
1596 cat >&5 <<_ACEOF
1597
1598
1599 ## ----------- ##
1600 ## Core tests. ##
1601 ## ----------- ##
1602
1603 _ACEOF
1604
1605
1606 # Keep a trace of the command line.
1607 # Strip out --no-create and --no-recursion so they do not pile up.
1608 # Strip out --silent because we don't want to record it for future runs.
1609 # Also quote any args containing shell meta-characters.
1610 # Make two passes to allow for proper duplicate-argument suppression.
1611 ac_configure_args=
1612 ac_configure_args0=
1613 ac_configure_args1=
1614 ac_must_keep_next=false
1615 for ac_pass in 1 2
1616 do
1617   for ac_arg
1618   do
1619     case $ac_arg in
1620     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1621     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1622     | -silent | --silent | --silen | --sile | --sil)
1623       continue ;;
1624     *\'*)
1625       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1626     esac
1627     case $ac_pass in
1628     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1629     2)
1630       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1631       if test $ac_must_keep_next = true; then
1632         ac_must_keep_next=false # Got value, back to normal.
1633       else
1634         case $ac_arg in
1635           *=* | --config-cache | -C | -disable-* | --disable-* \
1636           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1637           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1638           | -with-* | --with-* | -without-* | --without-* | --x)
1639             case "$ac_configure_args0 " in
1640               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1641             esac
1642             ;;
1643           -* ) ac_must_keep_next=true ;;
1644         esac
1645       fi
1646       ac_configure_args="$ac_configure_args '$ac_arg'"
1647       ;;
1648     esac
1649   done
1650 done
1651 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1652 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1653
1654 # When interrupted or exit'd, cleanup temporary files, and complete
1655 # config.log.  We remove comments because anyway the quotes in there
1656 # would cause problems or look ugly.
1657 # WARNING: Use '\'' to represent an apostrophe within the trap.
1658 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1659 trap 'exit_status=$?
1660   # Save into config.log some information that might help in debugging.
1661   {
1662     echo
1663
1664     cat <<\_ASBOX
1665 ## ---------------- ##
1666 ## Cache variables. ##
1667 ## ---------------- ##
1668 _ASBOX
1669     echo
1670     # The following way of writing the cache mishandles newlines in values,
1671 (
1672   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1673     eval ac_val=\$$ac_var
1674     case $ac_val in #(
1675     *${as_nl}*)
1676       case $ac_var in #(
1677       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1678 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1679       esac
1680       case $ac_var in #(
1681       _ | IFS | as_nl) ;; #(
1682       *) $as_unset $ac_var ;;
1683       esac ;;
1684     esac
1685   done
1686   (set) 2>&1 |
1687     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688     *${as_nl}ac_space=\ *)
1689       sed -n \
1690         "s/'\''/'\''\\\\'\'''\''/g;
1691           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692       ;; #(
1693     *)
1694       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1695       ;;
1696     esac |
1697     sort
1698 )
1699     echo
1700
1701     cat <<\_ASBOX
1702 ## ----------------- ##
1703 ## Output variables. ##
1704 ## ----------------- ##
1705 _ASBOX
1706     echo
1707     for ac_var in $ac_subst_vars
1708     do
1709       eval ac_val=\$$ac_var
1710       case $ac_val in
1711       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712       esac
1713       echo "$ac_var='\''$ac_val'\''"
1714     done | sort
1715     echo
1716
1717     if test -n "$ac_subst_files"; then
1718       cat <<\_ASBOX
1719 ## ------------------- ##
1720 ## File substitutions. ##
1721 ## ------------------- ##
1722 _ASBOX
1723       echo
1724       for ac_var in $ac_subst_files
1725       do
1726         eval ac_val=\$$ac_var
1727         case $ac_val in
1728         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729         esac
1730         echo "$ac_var='\''$ac_val'\''"
1731       done | sort
1732       echo
1733     fi
1734
1735     if test -s confdefs.h; then
1736       cat <<\_ASBOX
1737 ## ----------- ##
1738 ## confdefs.h. ##
1739 ## ----------- ##
1740 _ASBOX
1741       echo
1742       cat confdefs.h
1743       echo
1744     fi
1745     test "$ac_signal" != 0 &&
1746       echo "$as_me: caught signal $ac_signal"
1747     echo "$as_me: exit $exit_status"
1748   } >&5
1749   rm -f core *.core core.conftest.* &&
1750     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1751     exit $exit_status
1752 ' 0
1753 for ac_signal in 1 2 13 15; do
1754   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1755 done
1756 ac_signal=0
1757
1758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1759 rm -f -r conftest* confdefs.h
1760
1761 # Predefined preprocessor variables.
1762
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_NAME "$PACKAGE_NAME"
1765 _ACEOF
1766
1767
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1770 _ACEOF
1771
1772
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1775 _ACEOF
1776
1777
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_STRING "$PACKAGE_STRING"
1780 _ACEOF
1781
1782
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785 _ACEOF
1786
1787
1788 # Let the site file select an alternate cache file if it wants to.
1789 # Prefer explicitly selected file to automatically selected ones.
1790 if test -n "$CONFIG_SITE"; then
1791   set x "$CONFIG_SITE"
1792 elif test "x$prefix" != xNONE; then
1793   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1794 else
1795   set x "$ac_default_prefix/share/config.site" \
1796         "$ac_default_prefix/etc/config.site"
1797 fi
1798 shift
1799 for ac_site_file
1800 do
1801   if test -r "$ac_site_file"; then
1802     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1803 echo "$as_me: loading site script $ac_site_file" >&6;}
1804     sed 's/^/| /' "$ac_site_file" >&5
1805     . "$ac_site_file"
1806   fi
1807 done
1808
1809 if test -r "$cache_file"; then
1810   # Some versions of bash will fail to source /dev/null (special
1811   # files actually), so we avoid doing that.
1812   if test -f "$cache_file"; then
1813     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1814 echo "$as_me: loading cache $cache_file" >&6;}
1815     case $cache_file in
1816       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1817       *)                      . "./$cache_file";;
1818     esac
1819   fi
1820 else
1821   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1822 echo "$as_me: creating cache $cache_file" >&6;}
1823   >$cache_file
1824 fi
1825
1826 # Check that the precious variables saved in the cache have kept the same
1827 # value.
1828 ac_cache_corrupted=false
1829 for ac_var in $ac_precious_vars; do
1830   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1831   eval ac_new_set=\$ac_env_${ac_var}_set
1832   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1833   eval ac_new_val=\$ac_env_${ac_var}_value
1834   case $ac_old_set,$ac_new_set in
1835     set,)
1836       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1838       ac_cache_corrupted=: ;;
1839     ,set)
1840       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1841 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1842       ac_cache_corrupted=: ;;
1843     ,);;
1844     *)
1845       if test "x$ac_old_val" != "x$ac_new_val"; then
1846         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1847 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1848         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1849 echo "$as_me:   former value:  $ac_old_val" >&2;}
1850         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1851 echo "$as_me:   current value: $ac_new_val" >&2;}
1852         ac_cache_corrupted=:
1853       fi;;
1854   esac
1855   # Pass precious variables to config.status.
1856   if test "$ac_new_set" = set; then
1857     case $ac_new_val in
1858     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1859     *) ac_arg=$ac_var=$ac_new_val ;;
1860     esac
1861     case " $ac_configure_args " in
1862       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1863       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1864     esac
1865   fi
1866 done
1867 if $ac_cache_corrupted; then
1868   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1869 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1870   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1871 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1872    { (exit 1); exit 1; }; }
1873 fi
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899 ac_ext=c
1900 ac_cpp='$CPP $CPPFLAGS'
1901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904
1905
1906
1907 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1908
1909
1910
1911
1912
1913
1914
1915 ac_aux_dir=
1916 for ac_dir in autoconf "$srcdir"/autoconf; do
1917   if test -f "$ac_dir/install-sh"; then
1918     ac_aux_dir=$ac_dir
1919     ac_install_sh="$ac_aux_dir/install-sh -c"
1920     break
1921   elif test -f "$ac_dir/install.sh"; then
1922     ac_aux_dir=$ac_dir
1923     ac_install_sh="$ac_aux_dir/install.sh -c"
1924     break
1925   elif test -f "$ac_dir/shtool"; then
1926     ac_aux_dir=$ac_dir
1927     ac_install_sh="$ac_aux_dir/shtool install -c"
1928     break
1929   fi
1930 done
1931 if test -z "$ac_aux_dir"; then
1932   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1933 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1934    { (exit 1); exit 1; }; }
1935 fi
1936
1937 # These three variables are undocumented and unsupported,
1938 # and are intended to be withdrawn in a future Autoconf release.
1939 # They can cause serious problems if a builder's source tree is in a directory
1940 # whose full name contains unusual characters.
1941 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1942 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1943 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1944
1945
1946
1947 if test ${srcdir} != "." ; then
1948   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1949     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1950 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1951    { (exit 1); exit 1; }; }
1952   fi
1953 fi
1954
1955
1956
1957 if test -d ${srcdir}/projects/llvm-gcc ; then
1958   subdirs="$subdirs projects/llvm-gcc"
1959
1960 fi
1961
1962 if test -d ${srcdir}/projects/test-suite ; then
1963   subdirs="$subdirs projects/test-suite"
1964
1965 fi
1966
1967 if test -d ${srcdir}/projects/llvm-test ; then
1968   subdirs="$subdirs projects/llvm-test"
1969
1970 fi
1971
1972 if test -d ${srcdir}/projects/poolalloc ; then
1973   subdirs="$subdirs projects/poolalloc"
1974
1975 fi
1976
1977 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1978   subdirs="$subdirs projects/llvm-poolalloc"
1979
1980 fi
1981
1982 for i in `ls ${srcdir}/projects`
1983 do
1984   if test -d ${srcdir}/projects/${i} ; then
1985     case ${i} in
1986       CVS) ;;
1987       sample)       subdirs="$subdirs projects/sample"
1988     ;;
1989       privbracket)  subdirs="$subdirs projects/privbracket"
1990  ;;
1991       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1992  ;;
1993       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
1994 ;;
1995       llvm-java)    subdirs="$subdirs projects/llvm-java"
1996  ;;
1997       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
1998    ;;
1999       safecode)     subdirs="$subdirs projects/safecode"
2000  ;;
2001       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2002  ;;
2003       llvm-gcc)       ;;
2004       test-suite)     ;;
2005       llvm-test)      ;;
2006       poolalloc)      ;;
2007       llvm-poolalloc) ;;
2008       *)
2009         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2010 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2011         ;;
2012     esac
2013   fi
2014 done
2015
2016
2017 # Make sure we can run config.sub.
2018 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2019   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2020 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2021    { (exit 1); exit 1; }; }
2022
2023 { echo "$as_me:$LINENO: checking build system type" >&5
2024 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2025 if test "${ac_cv_build+set}" = set; then
2026   echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028   ac_build_alias=$build_alias
2029 test "x$ac_build_alias" = x &&
2030   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2031 test "x$ac_build_alias" = x &&
2032   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2033 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2034    { (exit 1); exit 1; }; }
2035 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2036   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2037 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2038    { (exit 1); exit 1; }; }
2039
2040 fi
2041 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2042 echo "${ECHO_T}$ac_cv_build" >&6; }
2043 case $ac_cv_build in
2044 *-*-*) ;;
2045 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2046 echo "$as_me: error: invalid value of canonical build" >&2;}
2047    { (exit 1); exit 1; }; };;
2048 esac
2049 build=$ac_cv_build
2050 ac_save_IFS=$IFS; IFS='-'
2051 set x $ac_cv_build
2052 shift
2053 build_cpu=$1
2054 build_vendor=$2
2055 shift; shift
2056 # Remember, the first character of IFS is used to create $*,
2057 # except with old shells:
2058 build_os=$*
2059 IFS=$ac_save_IFS
2060 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2061
2062
2063 { echo "$as_me:$LINENO: checking host system type" >&5
2064 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2065 if test "${ac_cv_host+set}" = set; then
2066   echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068   if test "x$host_alias" = x; then
2069   ac_cv_host=$ac_cv_build
2070 else
2071   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2072     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2073 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2074    { (exit 1); exit 1; }; }
2075 fi
2076
2077 fi
2078 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2079 echo "${ECHO_T}$ac_cv_host" >&6; }
2080 case $ac_cv_host in
2081 *-*-*) ;;
2082 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2083 echo "$as_me: error: invalid value of canonical host" >&2;}
2084    { (exit 1); exit 1; }; };;
2085 esac
2086 host=$ac_cv_host
2087 ac_save_IFS=$IFS; IFS='-'
2088 set x $ac_cv_host
2089 shift
2090 host_cpu=$1
2091 host_vendor=$2
2092 shift; shift
2093 # Remember, the first character of IFS is used to create $*,
2094 # except with old shells:
2095 host_os=$*
2096 IFS=$ac_save_IFS
2097 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2098
2099
2100 { echo "$as_me:$LINENO: checking target system type" >&5
2101 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2102 if test "${ac_cv_target+set}" = set; then
2103   echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105   if test "x$target_alias" = x; then
2106   ac_cv_target=$ac_cv_host
2107 else
2108   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2109     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2110 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2111    { (exit 1); exit 1; }; }
2112 fi
2113
2114 fi
2115 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2116 echo "${ECHO_T}$ac_cv_target" >&6; }
2117 case $ac_cv_target in
2118 *-*-*) ;;
2119 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2120 echo "$as_me: error: invalid value of canonical target" >&2;}
2121    { (exit 1); exit 1; }; };;
2122 esac
2123 target=$ac_cv_target
2124 ac_save_IFS=$IFS; IFS='-'
2125 set x $ac_cv_target
2126 shift
2127 target_cpu=$1
2128 target_vendor=$2
2129 shift; shift
2130 # Remember, the first character of IFS is used to create $*,
2131 # except with old shells:
2132 target_os=$*
2133 IFS=$ac_save_IFS
2134 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2135
2136
2137 # The aliases save the names the user supplied, while $host etc.
2138 # will get canonicalized.
2139 test -n "$target_alias" &&
2140   test "$program_prefix$program_suffix$program_transform_name" = \
2141     NONENONEs,x,x, &&
2142   program_prefix=${target_alias}-
2143
2144 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2145 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2146 if test "${llvm_cv_os_type+set}" = set; then
2147   echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149   case $host in
2150   *-*-aix*)
2151     llvm_cv_link_all_option="-Wl,--whole-archive"
2152     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2153     llvm_cv_os_type="AIX"
2154     llvm_cv_platform_type="Unix" ;;
2155   *-*-irix*)
2156     llvm_cv_link_all_option="-Wl,--whole-archive"
2157     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2158     llvm_cv_os_type="IRIX"
2159     llvm_cv_platform_type="Unix" ;;
2160   *-*-cygwin*)
2161     llvm_cv_link_all_option="-Wl,--whole-archive"
2162     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2163     llvm_cv_os_type="Cygwin"
2164     llvm_cv_platform_type="Unix" ;;
2165   *-*-darwin*)
2166     llvm_cv_link_all_option="-Wl,-all_load"
2167     llvm_cv_no_link_all_option="-Wl,-noall_load"
2168     llvm_cv_os_type="Darwin"
2169     llvm_cv_platform_type="Unix" ;;
2170   *-*-minix*)
2171     llvm_cv_link_all_option="-Wl,-all_load"
2172     llvm_cv_no_link_all_option="-Wl,-noall_load"
2173     llvm_cv_os_type="Minix"
2174     llvm_cv_platform_type="Unix" ;;
2175   *-*-freebsd*)
2176     llvm_cv_link_all_option="-Wl,--whole-archive"
2177     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2178     llvm_cv_os_type="FreeBSD"
2179     llvm_cv_platform_type="Unix" ;;
2180   *-*-openbsd*)
2181     llvm_cv_link_all_option="-Wl,--whole-archive"
2182     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2183     llvm_cv_os_type="OpenBSD"
2184     llvm_cv_platform_type="Unix" ;;
2185   *-*-netbsd*)
2186     llvm_cv_link_all_option="-Wl,--whole-archive"
2187     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2188     llvm_cv_os_type="NetBSD"
2189     llvm_cv_platform_type="Unix" ;;
2190   *-*-dragonfly*)
2191     llvm_cv_link_all_option="-Wl,--whole-archive"
2192     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2193     llvm_cv_os_type="DragonFly"
2194     llvm_cv_platform_type="Unix" ;;
2195   *-*-hpux*)
2196     llvm_cv_link_all_option="-Wl,--whole-archive"
2197     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198     llvm_cv_os_type="HP-UX"
2199     llvm_cv_platform_type="Unix" ;;
2200   *-*-interix*)
2201     llvm_cv_link_all_option="-Wl,--whole-archive"
2202     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203     llvm_cv_os_type="Interix"
2204     llvm_cv_platform_type="Unix" ;;
2205   *-*-linux*)
2206     llvm_cv_link_all_option="-Wl,--whole-archive"
2207     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2208     llvm_cv_os_type="Linux"
2209     llvm_cv_platform_type="Unix" ;;
2210   *-*-solaris*)
2211     llvm_cv_link_all_option="-Wl,-z,allextract"
2212     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2213     llvm_cv_os_type="SunOS"
2214     llvm_cv_platform_type="Unix" ;;
2215   *-*-auroraux*)
2216     llvm_cv_link_all_option="-Wl,-z,allextract"
2217     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2218     llvm_cv_os_type="AuroraUX"
2219     llvm_cv_platform_type="Unix" ;;
2220   *-*-win32*)
2221     llvm_cv_link_all_option="-Wl,--whole-archive"
2222     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2223     llvm_cv_os_type="Win32"
2224     llvm_cv_platform_type="Win32" ;;
2225   *-*-mingw*)
2226     llvm_cv_link_all_option="-Wl,--whole-archive"
2227     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2228     llvm_cv_os_type="MingW"
2229     llvm_cv_platform_type="Win32" ;;
2230   *-*-haiku*)
2231     llvm_cv_link_all_option="-Wl,--whole-archive"
2232     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233     llvm_cv_os_type="Haiku"
2234     llvm_cv_platform_type="Unix" ;;
2235   *-unknown-eabi*)
2236     llvm_cv_link_all_option="-Wl,--whole-archive"
2237     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238     llvm_cv_os_type="Freestanding"
2239     llvm_cv_platform_type="Unix" ;;
2240   *-unknown-elf*)
2241     llvm_cv_link_all_option="-Wl,--whole-archive"
2242     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2243     llvm_cv_os_type="Freestanding"
2244     llvm_cv_platform_type="Unix" ;;
2245   *)
2246     llvm_cv_link_all_option=""
2247     llvm_cv_no_link_all_option=""
2248     llvm_cv_os_type="Unknown"
2249     llvm_cv_platform_type="Unknown" ;;
2250 esac
2251 fi
2252 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2253 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2254
2255 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2256 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2257 if test "${llvm_cv_target_os_type+set}" = set; then
2258   echo $ECHO_N "(cached) $ECHO_C" >&6
2259 else
2260   case $target in
2261   *-*-aix*)
2262     llvm_cv_target_os_type="AIX" ;;
2263   *-*-irix*)
2264     llvm_cv_target_os_type="IRIX" ;;
2265   *-*-cygwin*)
2266     llvm_cv_target_os_type="Cygwin" ;;
2267   *-*-darwin*)
2268     llvm_cv_target_os_type="Darwin" ;;
2269   *-*-minix*)
2270     llvm_cv_target_os_type="Minix" ;;
2271   *-*-freebsd*)
2272     llvm_cv_target_os_type="FreeBSD" ;;
2273   *-*-openbsd*)
2274     llvm_cv_target_os_type="OpenBSD" ;;
2275   *-*-netbsd*)
2276     llvm_cv_target_os_type="NetBSD" ;;
2277   *-*-dragonfly*)
2278     llvm_cv_target_os_type="DragonFly" ;;
2279   *-*-hpux*)
2280     llvm_cv_target_os_type="HP-UX" ;;
2281   *-*-interix*)
2282     llvm_cv_target_os_type="Interix" ;;
2283   *-*-linux*)
2284     llvm_cv_target_os_type="Linux" ;;
2285   *-*-solaris*)
2286     llvm_cv_target_os_type="SunOS" ;;
2287   *-*-auroraux*)
2288     llvm_cv_target_os_type="AuroraUX" ;;
2289   *-*-win32*)
2290     llvm_cv_target_os_type="Win32" ;;
2291   *-*-mingw*)
2292     llvm_cv_target_os_type="MingW" ;;
2293   *-*-haiku*)
2294     llvm_cv_target_os_type="Haiku" ;;
2295   *-unknown-eabi*)
2296     llvm_cv_target_os_type="Freestanding" ;;
2297   *)
2298     llvm_cv_target_os_type="Unknown" ;;
2299 esac
2300 fi
2301 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2302 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2303
2304 if test "$llvm_cv_os_type" = "Unknown" ; then
2305   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2306 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2307    { (exit 1); exit 1; }; }
2308 fi
2309
2310 OS=$llvm_cv_os_type
2311
2312 HOST_OS=$llvm_cv_os_type
2313
2314 TARGET_OS=$llvm_cv_target_os_type
2315
2316
2317 LINKALL=$llvm_cv_link_all_option
2318
2319 NOLINKALL=$llvm_cv_no_link_all_option
2320
2321
2322 case $llvm_cv_platform_type in
2323   Unix)
2324
2325 cat >>confdefs.h <<\_ACEOF
2326 #define LLVM_ON_UNIX 1
2327 _ACEOF
2328
2329     LLVM_ON_UNIX=1
2330
2331     LLVM_ON_WIN32=0
2332
2333     ;;
2334   Win32)
2335
2336 cat >>confdefs.h <<\_ACEOF
2337 #define LLVM_ON_WIN32 1
2338 _ACEOF
2339
2340     LLVM_ON_UNIX=0
2341
2342     LLVM_ON_WIN32=1
2343
2344     ;;
2345 esac
2346
2347 { echo "$as_me:$LINENO: checking target architecture" >&5
2348 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2349 if test "${llvm_cv_target_arch+set}" = set; then
2350   echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352   case $target in
2353   i?86-*)                 llvm_cv_target_arch="x86" ;;
2354   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2355   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2356   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2357   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2358   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2359   mips-*)                 llvm_cv_target_arch="Mips" ;;
2360   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2361   xcore-*)                llvm_cv_target_arch="XCore" ;;
2362   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2363   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2364   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2365   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2366   *)                      llvm_cv_target_arch="Unknown" ;;
2367 esac
2368 fi
2369 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2370 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2371
2372 if test "$llvm_cv_target_arch" = "Unknown" ; then
2373   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2374 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2375 fi
2376
2377 # Determine the LLVM native architecture for the target
2378 case "$llvm_cv_target_arch" in
2379     x86)     LLVM_NATIVE_ARCH="X86" ;;
2380     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2381     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2382 esac
2383
2384 ARCH=$llvm_cv_target_arch
2385
2386
2387 ac_ext=c
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392 if test -n "$ac_tool_prefix"; then
2393   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2394 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_CC+set}" = set; then
2398   echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400   if test -n "$CC"; then
2401   ac_cv_prog_CC="$CC" # Let the user override the test.
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406   IFS=$as_save_IFS
2407   test -z "$as_dir" && as_dir=.
2408   for ac_exec_ext in '' $ac_executable_extensions; do
2409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2410     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412     break 2
2413   fi
2414 done
2415 done
2416 IFS=$as_save_IFS
2417
2418 fi
2419 fi
2420 CC=$ac_cv_prog_CC
2421 if test -n "$CC"; then
2422   { echo "$as_me:$LINENO: result: $CC" >&5
2423 echo "${ECHO_T}$CC" >&6; }
2424 else
2425   { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2427 fi
2428
2429
2430 fi
2431 if test -z "$ac_cv_prog_CC"; then
2432   ac_ct_CC=$CC
2433   # Extract the first word of "gcc", so it can be a program name with args.
2434 set dummy gcc; ac_word=$2
2435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438   echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
2440   if test -n "$ac_ct_CC"; then
2441   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2445 do
2446   IFS=$as_save_IFS
2447   test -z "$as_dir" && as_dir=.
2448   for ac_exec_ext in '' $ac_executable_extensions; do
2449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2450     ac_cv_prog_ac_ct_CC="gcc"
2451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452     break 2
2453   fi
2454 done
2455 done
2456 IFS=$as_save_IFS
2457
2458 fi
2459 fi
2460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461 if test -n "$ac_ct_CC"; then
2462   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463 echo "${ECHO_T}$ac_ct_CC" >&6; }
2464 else
2465   { echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6; }
2467 fi
2468
2469   if test "x$ac_ct_CC" = x; then
2470     CC=""
2471   else
2472     case $cross_compiling:$ac_tool_warned in
2473 yes:)
2474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475 whose name does not start with the host triplet.  If you think this
2476 configuration is useful to you, please write to autoconf@gnu.org." >&5
2477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478 whose name does not start with the host triplet.  If you think this
2479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2480 ac_tool_warned=yes ;;
2481 esac
2482     CC=$ac_ct_CC
2483   fi
2484 else
2485   CC="$ac_cv_prog_CC"
2486 fi
2487
2488 if test -z "$CC"; then
2489           if test -n "$ac_tool_prefix"; then
2490     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2491 set dummy ${ac_tool_prefix}cc; ac_word=$2
2492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494 if test "${ac_cv_prog_CC+set}" = set; then
2495   echo $ECHO_N "(cached) $ECHO_C" >&6
2496 else
2497   if test -n "$CC"; then
2498   ac_cv_prog_CC="$CC" # Let the user override the test.
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2502 do
2503   IFS=$as_save_IFS
2504   test -z "$as_dir" && as_dir=.
2505   for ac_exec_ext in '' $ac_executable_extensions; do
2506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2507     ac_cv_prog_CC="${ac_tool_prefix}cc"
2508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509     break 2
2510   fi
2511 done
2512 done
2513 IFS=$as_save_IFS
2514
2515 fi
2516 fi
2517 CC=$ac_cv_prog_CC
2518 if test -n "$CC"; then
2519   { echo "$as_me:$LINENO: result: $CC" >&5
2520 echo "${ECHO_T}$CC" >&6; }
2521 else
2522   { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2524 fi
2525
2526
2527   fi
2528 fi
2529 if test -z "$CC"; then
2530   # Extract the first word of "cc", so it can be a program name with args.
2531 set dummy cc; ac_word=$2
2532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534 if test "${ac_cv_prog_CC+set}" = set; then
2535   echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537   if test -n "$CC"; then
2538   ac_cv_prog_CC="$CC" # Let the user override the test.
2539 else
2540   ac_prog_rejected=no
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
2543 do
2544   IFS=$as_save_IFS
2545   test -z "$as_dir" && as_dir=.
2546   for ac_exec_ext in '' $ac_executable_extensions; do
2547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2548     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2549        ac_prog_rejected=yes
2550        continue
2551      fi
2552     ac_cv_prog_CC="cc"
2553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554     break 2
2555   fi
2556 done
2557 done
2558 IFS=$as_save_IFS
2559
2560 if test $ac_prog_rejected = yes; then
2561   # We found a bogon in the path, so make sure we never use it.
2562   set dummy $ac_cv_prog_CC
2563   shift
2564   if test $# != 0; then
2565     # We chose a different compiler from the bogus one.
2566     # However, it has the same basename, so the bogon will be chosen
2567     # first if we set CC to just the basename; use the full file name.
2568     shift
2569     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2570   fi
2571 fi
2572 fi
2573 fi
2574 CC=$ac_cv_prog_CC
2575 if test -n "$CC"; then
2576   { echo "$as_me:$LINENO: result: $CC" >&5
2577 echo "${ECHO_T}$CC" >&6; }
2578 else
2579   { echo "$as_me:$LINENO: result: no" >&5
2580 echo "${ECHO_T}no" >&6; }
2581 fi
2582
2583
2584 fi
2585 if test -z "$CC"; then
2586   if test -n "$ac_tool_prefix"; then
2587   for ac_prog in cl.exe
2588   do
2589     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593 if test "${ac_cv_prog_CC+set}" = set; then
2594   echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596   if test -n "$CC"; then
2597   ac_cv_prog_CC="$CC" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2601 do
2602   IFS=$as_save_IFS
2603   test -z "$as_dir" && as_dir=.
2604   for ac_exec_ext in '' $ac_executable_extensions; do
2605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2606     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608     break 2
2609   fi
2610 done
2611 done
2612 IFS=$as_save_IFS
2613
2614 fi
2615 fi
2616 CC=$ac_cv_prog_CC
2617 if test -n "$CC"; then
2618   { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2620 else
2621   { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2623 fi
2624
2625
2626     test -n "$CC" && break
2627   done
2628 fi
2629 if test -z "$CC"; then
2630   ac_ct_CC=$CC
2631   for ac_prog in cl.exe
2632 do
2633   # Extract the first word of "$ac_prog", so it can be a program name with args.
2634 set dummy $ac_prog; ac_word=$2
2635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638   echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640   if test -n "$ac_ct_CC"; then
2641   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2645 do
2646   IFS=$as_save_IFS
2647   test -z "$as_dir" && as_dir=.
2648   for ac_exec_ext in '' $ac_executable_extensions; do
2649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2650     ac_cv_prog_ac_ct_CC="$ac_prog"
2651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652     break 2
2653   fi
2654 done
2655 done
2656 IFS=$as_save_IFS
2657
2658 fi
2659 fi
2660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661 if test -n "$ac_ct_CC"; then
2662   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663 echo "${ECHO_T}$ac_ct_CC" >&6; }
2664 else
2665   { echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6; }
2667 fi
2668
2669
2670   test -n "$ac_ct_CC" && break
2671 done
2672
2673   if test "x$ac_ct_CC" = x; then
2674     CC=""
2675   else
2676     case $cross_compiling:$ac_tool_warned in
2677 yes:)
2678 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679 whose name does not start with the host triplet.  If you think this
2680 configuration is useful to you, please write to autoconf@gnu.org." >&5
2681 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682 whose name does not start with the host triplet.  If you think this
2683 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2684 ac_tool_warned=yes ;;
2685 esac
2686     CC=$ac_ct_CC
2687   fi
2688 fi
2689
2690 fi
2691
2692
2693 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details." >&5
2695 echo "$as_me: error: no acceptable C compiler found in \$PATH
2696 See \`config.log' for more details." >&2;}
2697    { (exit 1); exit 1; }; }
2698
2699 # Provide some information about the compiler.
2700 echo "$as_me:$LINENO: checking for C compiler version" >&5
2701 ac_compiler=`set X $ac_compile; echo $2`
2702 { (ac_try="$ac_compiler --version >&5"
2703 case "(($ac_try" in
2704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705   *) ac_try_echo=$ac_try;;
2706 esac
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708   (eval "$ac_compiler --version >&5") 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }
2712 { (ac_try="$ac_compiler -v >&5"
2713 case "(($ac_try" in
2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715   *) ac_try_echo=$ac_try;;
2716 esac
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718   (eval "$ac_compiler -v >&5") 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }
2722 { (ac_try="$ac_compiler -V >&5"
2723 case "(($ac_try" in
2724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725   *) ac_try_echo=$ac_try;;
2726 esac
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728   (eval "$ac_compiler -V >&5") 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }
2732
2733 cat >conftest.$ac_ext <<_ACEOF
2734 /* confdefs.h.  */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h.  */
2739
2740 int
2741 main ()
2742 {
2743
2744   ;
2745   return 0;
2746 }
2747 _ACEOF
2748 ac_clean_files_save=$ac_clean_files
2749 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2750 # Try to create an executable without -o first, disregard a.out.
2751 # It will help us diagnose broken compilers, and finding out an intuition
2752 # of exeext.
2753 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2754 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2755 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2756 #
2757 # List of possible output files, starting from the most likely.
2758 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2759 # only as a last resort.  b.out is created by i960 compilers.
2760 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2761 #
2762 # The IRIX 6 linker writes into existing files which may not be
2763 # executable, retaining their permissions.  Remove them first so a
2764 # subsequent execution test works.
2765 ac_rmfiles=
2766 for ac_file in $ac_files
2767 do
2768   case $ac_file in
2769     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2770     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2771   esac
2772 done
2773 rm -f $ac_rmfiles
2774
2775 if { (ac_try="$ac_link_default"
2776 case "(($ac_try" in
2777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778   *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781   (eval "$ac_link_default") 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); }; then
2785   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2786 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2787 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2788 # so that the user can short-circuit this test for compilers unknown to
2789 # Autoconf.
2790 for ac_file in $ac_files
2791 do
2792   test -f "$ac_file" || continue
2793   case $ac_file in
2794     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2795         ;;
2796     [ab].out )
2797         # We found the default executable, but exeext='' is most
2798         # certainly right.
2799         break;;
2800     *.* )
2801         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2802         then :; else
2803            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2804         fi
2805         # We set ac_cv_exeext here because the later test for it is not
2806         # safe: cross compilers may not add the suffix if given an `-o'
2807         # argument, so we may need to know it at that point already.
2808         # Even if this section looks crufty: it has the advantage of
2809         # actually working.
2810         break;;
2811     * )
2812         break;;
2813   esac
2814 done
2815 test "$ac_cv_exeext" = no && ac_cv_exeext=
2816
2817 else
2818   echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2820
2821 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2822 See \`config.log' for more details." >&5
2823 echo "$as_me: error: C compiler cannot create executables
2824 See \`config.log' for more details." >&2;}
2825    { (exit 77); exit 77; }; }
2826 fi
2827
2828 ac_exeext=$ac_cv_exeext
2829 { echo "$as_me:$LINENO: result: $ac_file" >&5
2830 echo "${ECHO_T}$ac_file" >&6; }
2831
2832 # Check that the compiler produces executables we can run.  If not, either
2833 # the compiler is broken, or we cross compile.
2834 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2835 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2836 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2837 # If not cross compiling, check that we can run a simple program.
2838 if test "$cross_compiling" != yes; then
2839   if { ac_try='./$ac_file'
2840   { (case "(($ac_try" in
2841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842   *) ac_try_echo=$ac_try;;
2843 esac
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845   (eval "$ac_try") 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); }; }; then
2849     cross_compiling=no
2850   else
2851     if test "$cross_compiling" = maybe; then
2852         cross_compiling=yes
2853     else
2854         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2855 If you meant to cross compile, use \`--host'.
2856 See \`config.log' for more details." >&5
2857 echo "$as_me: error: cannot run C compiled programs.
2858 If you meant to cross compile, use \`--host'.
2859 See \`config.log' for more details." >&2;}
2860    { (exit 1); exit 1; }; }
2861     fi
2862   fi
2863 fi
2864 { echo "$as_me:$LINENO: result: yes" >&5
2865 echo "${ECHO_T}yes" >&6; }
2866
2867 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2868 ac_clean_files=$ac_clean_files_save
2869 # Check that the compiler produces executables we can run.  If not, either
2870 # the compiler is broken, or we cross compile.
2871 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2872 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2873 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2874 echo "${ECHO_T}$cross_compiling" >&6; }
2875
2876 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2877 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2878 if { (ac_try="$ac_link"
2879 case "(($ac_try" in
2880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881   *) ac_try_echo=$ac_try;;
2882 esac
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884   (eval "$ac_link") 2>&5
2885   ac_status=$?
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); }; then
2888   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2889 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2890 # work properly (i.e., refer to `conftest.exe'), while it won't with
2891 # `rm'.
2892 for ac_file in conftest.exe conftest conftest.*; do
2893   test -f "$ac_file" || continue
2894   case $ac_file in
2895     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2896     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2897           break;;
2898     * ) break;;
2899   esac
2900 done
2901 else
2902   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2903 See \`config.log' for more details." >&5
2904 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2905 See \`config.log' for more details." >&2;}
2906    { (exit 1); exit 1; }; }
2907 fi
2908
2909 rm -f conftest$ac_cv_exeext
2910 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2911 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2912
2913 rm -f conftest.$ac_ext
2914 EXEEXT=$ac_cv_exeext
2915 ac_exeext=$EXEEXT
2916 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2917 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2918 if test "${ac_cv_objext+set}" = set; then
2919   echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921   cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h.  */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h.  */
2927
2928 int
2929 main ()
2930 {
2931
2932   ;
2933   return 0;
2934 }
2935 _ACEOF
2936 rm -f conftest.o conftest.obj
2937 if { (ac_try="$ac_compile"
2938 case "(($ac_try" in
2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940   *) ac_try_echo=$ac_try;;
2941 esac
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943   (eval "$ac_compile") 2>&5
2944   ac_status=$?
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); }; then
2947   for ac_file in conftest.o conftest.obj conftest.*; do
2948   test -f "$ac_file" || continue;
2949   case $ac_file in
2950     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2951     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2952        break;;
2953   esac
2954 done
2955 else
2956   echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2960 See \`config.log' for more details." >&5
2961 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2962 See \`config.log' for more details." >&2;}
2963    { (exit 1); exit 1; }; }
2964 fi
2965
2966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967 fi
2968 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2969 echo "${ECHO_T}$ac_cv_objext" >&6; }
2970 OBJEXT=$ac_cv_objext
2971 ac_objext=$OBJEXT
2972 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2973 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2974 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2975   echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977   cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h.  */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h.  */
2983
2984 int
2985 main ()
2986 {
2987 #ifndef __GNUC__
2988        choke me
2989 #endif
2990
2991   ;
2992   return 0;
2993 }
2994 _ACEOF
2995 rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
2997 case "(($ac_try" in
2998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999   *) ac_try_echo=$ac_try;;
3000 esac
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002   (eval "$ac_compile") 2>conftest.er1
3003   ac_status=$?
3004   grep -v '^ *+' conftest.er1 >conftest.err
3005   rm -f conftest.er1
3006   cat conftest.err >&5
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); } &&
3009          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3010   { (case "(($ac_try" in
3011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012   *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015   (eval "$ac_try") 2>&5
3016   ac_status=$?
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); }; } &&
3019          { ac_try='test -s conftest.$ac_objext'
3020   { (case "(($ac_try" in
3021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022   *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025   (eval "$ac_try") 2>&5
3026   ac_status=$?
3027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028   (exit $ac_status); }; }; then
3029   ac_compiler_gnu=yes
3030 else
3031   echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3033
3034         ac_compiler_gnu=no
3035 fi
3036
3037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3039
3040 fi
3041 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3042 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3043 GCC=`test $ac_compiler_gnu = yes && echo yes`
3044 ac_test_CFLAGS=${CFLAGS+set}
3045 ac_save_CFLAGS=$CFLAGS
3046 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3047 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3048 if test "${ac_cv_prog_cc_g+set}" = set; then
3049   echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051   ac_save_c_werror_flag=$ac_c_werror_flag
3052    ac_c_werror_flag=yes
3053    ac_cv_prog_cc_g=no
3054    CFLAGS="-g"
3055    cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h.  */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h.  */
3061
3062 int
3063 main ()
3064 {
3065
3066   ;
3067   return 0;
3068 }
3069 _ACEOF
3070 rm -f conftest.$ac_objext
3071 if { (ac_try="$ac_compile"
3072 case "(($ac_try" in
3073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074   *) ac_try_echo=$ac_try;;
3075 esac
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077   (eval "$ac_compile") 2>conftest.er1
3078   ac_status=$?
3079   grep -v '^ *+' conftest.er1 >conftest.err
3080   rm -f conftest.er1
3081   cat conftest.err >&5
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); } &&
3084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3085   { (case "(($ac_try" in
3086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087   *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090   (eval "$ac_try") 2>&5
3091   ac_status=$?
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); }; } &&
3094          { ac_try='test -s conftest.$ac_objext'
3095   { (case "(($ac_try" in
3096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097   *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100   (eval "$ac_try") 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }; }; then
3104   ac_cv_prog_cc_g=yes
3105 else
3106   echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109         CFLAGS=""
3110       cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h.  */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h.  */
3116
3117 int
3118 main ()
3119 {
3120
3121   ;
3122   return 0;
3123 }
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129   *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132   (eval "$ac_compile") 2>conftest.er1
3133   ac_status=$?
3134   grep -v '^ *+' conftest.er1 >conftest.err
3135   rm -f conftest.er1
3136   cat conftest.err >&5
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); } &&
3139          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140   { (case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145   (eval "$ac_try") 2>&5
3146   ac_status=$?
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); }; } &&
3149          { ac_try='test -s conftest.$ac_objext'
3150   { (case "(($ac_try" in
3151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152   *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155   (eval "$ac_try") 2>&5
3156   ac_status=$?
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); }; }; then
3159   :
3160 else
3161   echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3163
3164         ac_c_werror_flag=$ac_save_c_werror_flag
3165          CFLAGS="-g"
3166          cat >conftest.$ac_ext <<_ACEOF
3167 /* confdefs.h.  */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h.  */
3172
3173 int
3174 main ()
3175 {
3176
3177   ;
3178   return 0;
3179 }
3180 _ACEOF
3181 rm -f conftest.$ac_objext
3182 if { (ac_try="$ac_compile"
3183 case "(($ac_try" in
3184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185   *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188   (eval "$ac_compile") 2>conftest.er1
3189   ac_status=$?
3190   grep -v '^ *+' conftest.er1 >conftest.err
3191   rm -f conftest.er1
3192   cat conftest.err >&5
3193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194   (exit $ac_status); } &&
3195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3196   { (case "(($ac_try" in
3197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198   *) ac_try_echo=$ac_try;;
3199 esac
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201   (eval "$ac_try") 2>&5
3202   ac_status=$?
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); }; } &&
3205          { ac_try='test -s conftest.$ac_objext'
3206   { (case "(($ac_try" in
3207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208   *) ac_try_echo=$ac_try;;
3209 esac
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211   (eval "$ac_try") 2>&5
3212   ac_status=$?
3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214   (exit $ac_status); }; }; then
3215   ac_cv_prog_cc_g=yes
3216 else
3217   echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3219
3220
3221 fi
3222
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 fi
3225
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 fi
3228
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230    ac_c_werror_flag=$ac_save_c_werror_flag
3231 fi
3232 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3233 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3234 if test "$ac_test_CFLAGS" = set; then
3235   CFLAGS=$ac_save_CFLAGS
3236 elif test $ac_cv_prog_cc_g = yes; then
3237   if test "$GCC" = yes; then
3238     CFLAGS="-g -O2"
3239   else
3240     CFLAGS="-g"
3241   fi
3242 else
3243   if test "$GCC" = yes; then
3244     CFLAGS="-O2"
3245   else
3246     CFLAGS=
3247   fi
3248 fi
3249 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3250 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3251 if test "${ac_cv_prog_cc_c89+set}" = set; then
3252   echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254   ac_cv_prog_cc_c89=no
3255 ac_save_CC=$CC
3256 cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h.  */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h.  */
3262 #include <stdarg.h>
3263 #include <stdio.h>
3264 #include <sys/types.h>
3265 #include <sys/stat.h>
3266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3267 struct buf { int x; };
3268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269 static char *e (p, i)
3270      char **p;
3271      int i;
3272 {
3273   return p[i];
3274 }
3275 static char *f (char * (*g) (char **, int), char **p, ...)
3276 {
3277   char *s;
3278   va_list v;
3279   va_start (v,p);
3280   s = g (p, va_arg (v,int));
3281   va_end (v);
3282   return s;
3283 }
3284
3285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3286    function prototypes and stuff, but not '\xHH' hex character constants.
3287    These don't provoke an error unfortunately, instead are silently treated
3288    as 'x'.  The following induces an error, until -std is added to get
3289    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3290    array size at least.  It's necessary to write '\x00'==0 to get something
3291    that's true only with -std.  */
3292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3293
3294 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295    inside strings and character constants.  */
3296 #define FOO(x) 'x'
3297 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3298
3299 int test (int i, double x);
3300 struct s1 {int (*f) (int a);};
3301 struct s2 {int (*f) (double a);};
3302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303 int argc;
3304 char **argv;
3305 int
3306 main ()
3307 {
3308 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3309   ;
3310   return 0;
3311 }
3312 _ACEOF
3313 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3315 do
3316   CC="$ac_save_CC $ac_arg"
3317   rm -f conftest.$ac_objext
3318 if { (ac_try="$ac_compile"
3319 case "(($ac_try" in
3320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321   *) ac_try_echo=$ac_try;;
3322 esac
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324   (eval "$ac_compile") 2>conftest.er1
3325   ac_status=$?
3326   grep -v '^ *+' conftest.er1 >conftest.err
3327   rm -f conftest.er1
3328   cat conftest.err >&5
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); } &&
3331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332   { (case "(($ac_try" in
3333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334   *) ac_try_echo=$ac_try;;
3335 esac
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337   (eval "$ac_try") 2>&5
3338   ac_status=$?
3339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); }; } &&
3341          { ac_try='test -s conftest.$ac_objext'
3342   { (case "(($ac_try" in
3343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344   *) ac_try_echo=$ac_try;;
3345 esac
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347   (eval "$ac_try") 2>&5
3348   ac_status=$?
3349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350   (exit $ac_status); }; }; then
3351   ac_cv_prog_cc_c89=$ac_arg
3352 else
3353   echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3355
3356
3357 fi
3358
3359 rm -f core conftest.err conftest.$ac_objext
3360   test "x$ac_cv_prog_cc_c89" != "xno" && break
3361 done
3362 rm -f conftest.$ac_ext
3363 CC=$ac_save_CC
3364
3365 fi
3366 # AC_CACHE_VAL
3367 case "x$ac_cv_prog_cc_c89" in
3368   x)
3369     { echo "$as_me:$LINENO: result: none needed" >&5
3370 echo "${ECHO_T}none needed" >&6; } ;;
3371   xno)
3372     { echo "$as_me:$LINENO: result: unsupported" >&5
3373 echo "${ECHO_T}unsupported" >&6; } ;;
3374   *)
3375     CC="$CC $ac_cv_prog_cc_c89"
3376     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3377 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3378 esac
3379
3380
3381 ac_ext=c
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386
3387
3388 ac_ext=c
3389 ac_cpp='$CPP $CPPFLAGS'
3390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3394 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3395 # On Suns, sometimes $CPP names a directory.
3396 if test -n "$CPP" && test -d "$CPP"; then
3397   CPP=
3398 fi
3399 if test -z "$CPP"; then
3400   if test "${ac_cv_prog_CPP+set}" = set; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403       # Double quotes because CPP needs to be expanded
3404     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3405     do
3406       ac_preproc_ok=false
3407 for ac_c_preproc_warn_flag in '' yes
3408 do
3409   # Use a header file that comes with gcc, so configuring glibc
3410   # with a fresh cross-compiler works.
3411   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3412   # <limits.h> exists even on freestanding compilers.
3413   # On the NeXT, cc -E runs the code through the compiler's parser,
3414   # not just through cpp. "Syntax error" is here to catch this case.
3415   cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h.  */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h.  */
3421 #ifdef __STDC__
3422 # include <limits.h>
3423 #else
3424 # include <assert.h>
3425 #endif
3426                      Syntax error
3427 _ACEOF
3428 if { (ac_try="$ac_cpp conftest.$ac_ext"
3429 case "(($ac_try" in
3430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431   *) ac_try_echo=$ac_try;;
3432 esac
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3435   ac_status=$?
3436   grep -v '^ *+' conftest.er1 >conftest.err
3437   rm -f conftest.er1
3438   cat conftest.err >&5
3439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440   (exit $ac_status); } >/dev/null; then
3441   if test -s conftest.err; then
3442     ac_cpp_err=$ac_c_preproc_warn_flag
3443     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3444   else
3445     ac_cpp_err=
3446   fi
3447 else
3448   ac_cpp_err=yes
3449 fi
3450 if test -z "$ac_cpp_err"; then
3451   :
3452 else
3453   echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3455
3456   # Broken: fails on valid input.
3457 continue
3458 fi
3459
3460 rm -f conftest.err conftest.$ac_ext
3461
3462   # OK, works on sane cases.  Now check whether nonexistent headers
3463   # can be detected and how.
3464   cat >conftest.$ac_ext <<_ACEOF
3465 /* confdefs.h.  */
3466 _ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h.  */
3470 #include <ac_nonexistent.h>
3471 _ACEOF
3472 if { (ac_try="$ac_cpp conftest.$ac_ext"
3473 case "(($ac_try" in
3474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475   *) ac_try_echo=$ac_try;;
3476 esac
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479   ac_status=$?
3480   grep -v '^ *+' conftest.er1 >conftest.err
3481   rm -f conftest.er1
3482   cat conftest.err >&5
3483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484   (exit $ac_status); } >/dev/null; then
3485   if test -s conftest.err; then
3486     ac_cpp_err=$ac_c_preproc_warn_flag
3487     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3488   else
3489     ac_cpp_err=
3490   fi
3491 else
3492   ac_cpp_err=yes
3493 fi
3494 if test -z "$ac_cpp_err"; then
3495   # Broken: success on invalid input.
3496 continue
3497 else
3498   echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501   # Passes both tests.
3502 ac_preproc_ok=:
3503 break
3504 fi
3505
3506 rm -f conftest.err conftest.$ac_ext
3507
3508 done
3509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510 rm -f conftest.err conftest.$ac_ext
3511 if $ac_preproc_ok; then
3512   break
3513 fi
3514
3515     done
3516     ac_cv_prog_CPP=$CPP
3517
3518 fi
3519   CPP=$ac_cv_prog_CPP
3520 else
3521   ac_cv_prog_CPP=$CPP
3522 fi
3523 { echo "$as_me:$LINENO: result: $CPP" >&5
3524 echo "${ECHO_T}$CPP" >&6; }
3525 ac_preproc_ok=false
3526 for ac_c_preproc_warn_flag in '' yes
3527 do
3528   # Use a header file that comes with gcc, so configuring glibc
3529   # with a fresh cross-compiler works.
3530   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531   # <limits.h> exists even on freestanding compilers.
3532   # On the NeXT, cc -E runs the code through the compiler's parser,
3533   # not just through cpp. "Syntax error" is here to catch this case.
3534   cat >conftest.$ac_ext <<_ACEOF
3535 /* confdefs.h.  */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h.  */
3540 #ifdef __STDC__
3541 # include <limits.h>
3542 #else
3543 # include <assert.h>
3544 #endif
3545                      Syntax error
3546 _ACEOF
3547 if { (ac_try="$ac_cpp conftest.$ac_ext"
3548 case "(($ac_try" in
3549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550   *) ac_try_echo=$ac_try;;
3551 esac
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3554   ac_status=$?
3555   grep -v '^ *+' conftest.er1 >conftest.err
3556   rm -f conftest.er1
3557   cat conftest.err >&5
3558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559   (exit $ac_status); } >/dev/null; then
3560   if test -s conftest.err; then
3561     ac_cpp_err=$ac_c_preproc_warn_flag
3562     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3563   else
3564     ac_cpp_err=
3565   fi
3566 else
3567   ac_cpp_err=yes
3568 fi
3569 if test -z "$ac_cpp_err"; then
3570   :
3571 else
3572   echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3574
3575   # Broken: fails on valid input.
3576 continue
3577 fi
3578
3579 rm -f conftest.err conftest.$ac_ext
3580
3581   # OK, works on sane cases.  Now check whether nonexistent headers
3582   # can be detected and how.
3583   cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h.  */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h.  */
3589 #include <ac_nonexistent.h>
3590 _ACEOF
3591 if { (ac_try="$ac_cpp conftest.$ac_ext"
3592 case "(($ac_try" in
3593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594   *) ac_try_echo=$ac_try;;
3595 esac
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598   ac_status=$?
3599   grep -v '^ *+' conftest.er1 >conftest.err
3600   rm -f conftest.er1
3601   cat conftest.err >&5
3602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603   (exit $ac_status); } >/dev/null; then
3604   if test -s conftest.err; then
3605     ac_cpp_err=$ac_c_preproc_warn_flag
3606     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3607   else
3608     ac_cpp_err=
3609   fi
3610 else
3611   ac_cpp_err=yes
3612 fi
3613 if test -z "$ac_cpp_err"; then
3614   # Broken: success on invalid input.
3615 continue
3616 else
3617   echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3619
3620   # Passes both tests.
3621 ac_preproc_ok=:
3622 break
3623 fi
3624
3625 rm -f conftest.err conftest.$ac_ext
3626
3627 done
3628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3629 rm -f conftest.err conftest.$ac_ext
3630 if $ac_preproc_ok; then
3631   :
3632 else
3633   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3634 See \`config.log' for more details." >&5
3635 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3636 See \`config.log' for more details." >&2;}
3637    { (exit 1); exit 1; }; }
3638 fi
3639
3640 ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645
3646
3647 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3648 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3649 if test "${ac_cv_path_GREP+set}" = set; then
3650   echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652   # Extract the first word of "grep ggrep" to use in msg output
3653 if test -z "$GREP"; then
3654 set dummy grep ggrep; ac_prog_name=$2
3655 if test "${ac_cv_path_GREP+set}" = set; then
3656   echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658   ac_path_GREP_found=false
3659 # Loop through the user's path and test for each of PROGNAME-LIST
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3662 do
3663   IFS=$as_save_IFS
3664   test -z "$as_dir" && as_dir=.
3665   for ac_prog in grep ggrep; do
3666   for ac_exec_ext in '' $ac_executable_extensions; do
3667     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3668     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3669     # Check for GNU ac_path_GREP and select it if it is found.
3670   # Check for GNU $ac_path_GREP
3671 case `"$ac_path_GREP" --version 2>&1` in
3672 *GNU*)
3673   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3674 *)
3675   ac_count=0
3676   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3677   while :
3678   do
3679     cat "conftest.in" "conftest.in" >"conftest.tmp"
3680     mv "conftest.tmp" "conftest.in"
3681     cp "conftest.in" "conftest.nl"
3682     echo 'GREP' >> "conftest.nl"
3683     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3684     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3685     ac_count=`expr $ac_count + 1`
3686     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3687       # Best one so far, save it but keep looking for a better one
3688       ac_cv_path_GREP="$ac_path_GREP"
3689       ac_path_GREP_max=$ac_count
3690     fi
3691     # 10*(2^10) chars as input seems more than enough
3692     test $ac_count -gt 10 && break
3693   done
3694   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3695 esac
3696
3697
3698     $ac_path_GREP_found && break 3
3699   done
3700 done
3701
3702 done
3703 IFS=$as_save_IFS
3704
3705
3706 fi
3707
3708 GREP="$ac_cv_path_GREP"
3709 if test -z "$GREP"; then
3710   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3711 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3712    { (exit 1); exit 1; }; }
3713 fi
3714
3715 else
3716   ac_cv_path_GREP=$GREP
3717 fi
3718
3719
3720 fi
3721 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3722 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3723  GREP="$ac_cv_path_GREP"
3724
3725
3726 { echo "$as_me:$LINENO: checking for egrep" >&5
3727 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3728 if test "${ac_cv_path_EGREP+set}" = set; then
3729   echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3732    then ac_cv_path_EGREP="$GREP -E"
3733    else
3734      # Extract the first word of "egrep" to use in msg output
3735 if test -z "$EGREP"; then
3736 set dummy egrep; ac_prog_name=$2
3737 if test "${ac_cv_path_EGREP+set}" = set; then
3738   echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740   ac_path_EGREP_found=false
3741 # Loop through the user's path and test for each of PROGNAME-LIST
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3744 do
3745   IFS=$as_save_IFS
3746   test -z "$as_dir" && as_dir=.
3747   for ac_prog in egrep; do
3748   for ac_exec_ext in '' $ac_executable_extensions; do
3749     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3750     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3751     # Check for GNU ac_path_EGREP and select it if it is found.
3752   # Check for GNU $ac_path_EGREP
3753 case `"$ac_path_EGREP" --version 2>&1` in
3754 *GNU*)
3755   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3756 *)
3757   ac_count=0
3758   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3759   while :
3760   do
3761     cat "conftest.in" "conftest.in" >"conftest.tmp"
3762     mv "conftest.tmp" "conftest.in"
3763     cp "conftest.in" "conftest.nl"
3764     echo 'EGREP' >> "conftest.nl"
3765     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3766     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3767     ac_count=`expr $ac_count + 1`
3768     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3769       # Best one so far, save it but keep looking for a better one
3770       ac_cv_path_EGREP="$ac_path_EGREP"
3771       ac_path_EGREP_max=$ac_count
3772     fi
3773     # 10*(2^10) chars as input seems more than enough
3774     test $ac_count -gt 10 && break
3775   done
3776   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3777 esac
3778
3779
3780     $ac_path_EGREP_found && break 3
3781   done
3782 done
3783
3784 done
3785 IFS=$as_save_IFS
3786
3787
3788 fi
3789
3790 EGREP="$ac_cv_path_EGREP"
3791 if test -z "$EGREP"; then
3792   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3793 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3794    { (exit 1); exit 1; }; }
3795 fi
3796
3797 else
3798   ac_cv_path_EGREP=$EGREP
3799 fi
3800
3801
3802    fi
3803 fi
3804 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3805 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3806  EGREP="$ac_cv_path_EGREP"
3807
3808
3809 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3810 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3811 if test "${ac_cv_header_stdc+set}" = set; then
3812   echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814   cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h.  */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h.  */
3820 #include <stdlib.h>
3821 #include <stdarg.h>
3822 #include <string.h>
3823 #include <float.h>
3824
3825 int
3826 main ()
3827 {
3828
3829   ;
3830   return 0;
3831 }
3832 _ACEOF
3833 rm -f conftest.$ac_objext
3834 if { (ac_try="$ac_compile"
3835 case "(($ac_try" in
3836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837   *) ac_try_echo=$ac_try;;
3838 esac
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840   (eval "$ac_compile") 2>conftest.er1
3841   ac_status=$?
3842   grep -v '^ *+' conftest.er1 >conftest.err
3843   rm -f conftest.er1
3844   cat conftest.err >&5
3845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846   (exit $ac_status); } &&
3847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3848   { (case "(($ac_try" in
3849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850   *) ac_try_echo=$ac_try;;
3851 esac
3852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853   (eval "$ac_try") 2>&5
3854   ac_status=$?
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); }; } &&
3857          { ac_try='test -s conftest.$ac_objext'
3858   { (case "(($ac_try" in
3859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860   *) ac_try_echo=$ac_try;;
3861 esac
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863   (eval "$ac_try") 2>&5
3864   ac_status=$?
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); }; }; then
3867   ac_cv_header_stdc=yes
3868 else
3869   echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872         ac_cv_header_stdc=no
3873 fi
3874
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876
3877 if test $ac_cv_header_stdc = yes; then
3878   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3879   cat >conftest.$ac_ext <<_ACEOF
3880 /* confdefs.h.  */
3881 _ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h.  */
3885 #include <string.h>
3886
3887 _ACEOF
3888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3889   $EGREP "memchr" >/dev/null 2>&1; then
3890   :
3891 else
3892   ac_cv_header_stdc=no
3893 fi
3894 rm -f conftest*
3895
3896 fi
3897
3898 if test $ac_cv_header_stdc = yes; then
3899   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3900   cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h.  */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h.  */
3906 #include <stdlib.h>
3907
3908 _ACEOF
3909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3910   $EGREP "free" >/dev/null 2>&1; then
3911   :
3912 else
3913   ac_cv_header_stdc=no
3914 fi
3915 rm -f conftest*
3916
3917 fi
3918
3919 if test $ac_cv_header_stdc = yes; then
3920   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3921   if test "$cross_compiling" = yes; then
3922   :
3923 else
3924   cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h.  */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h.  */
3930 #include <ctype.h>
3931 #include <stdlib.h>
3932 #if ((' ' & 0x0FF) == 0x020)
3933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3935 #else
3936 # define ISLOWER(c) \
3937                    (('a' <= (c) && (c) <= 'i') \
3938                      || ('j' <= (c) && (c) <= 'r') \
3939                      || ('s' <= (c) && (c) <= 'z'))
3940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3941 #endif
3942
3943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3944 int
3945 main ()
3946 {
3947   int i;
3948   for (i = 0; i < 256; i++)
3949     if (XOR (islower (i), ISLOWER (i))
3950         || toupper (i) != TOUPPER (i))
3951       return 2;
3952   return 0;
3953 }
3954 _ACEOF
3955 rm -f conftest$ac_exeext
3956 if { (ac_try="$ac_link"
3957 case "(($ac_try" in
3958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959   *) ac_try_echo=$ac_try;;
3960 esac
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962   (eval "$ac_link") 2>&5
3963   ac_status=$?
3964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3966   { (case "(($ac_try" in
3967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968   *) ac_try_echo=$ac_try;;
3969 esac
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971   (eval "$ac_try") 2>&5
3972   ac_status=$?
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); }; }; then
3975   :
3976 else
3977   echo "$as_me: program exited with status $ac_status" >&5
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981 ( exit $ac_status )
3982 ac_cv_header_stdc=no
3983 fi
3984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3985 fi
3986
3987
3988 fi
3989 fi
3990 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3991 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3992 if test $ac_cv_header_stdc = yes; then
3993
3994 cat >>confdefs.h <<\_ACEOF
3995 #define STDC_HEADERS 1
3996 _ACEOF
3997
3998 fi
3999
4000 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4011                   inttypes.h stdint.h unistd.h
4012 do
4013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4017   echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019   cat >conftest.$ac_ext <<_ACEOF
4020 /* confdefs.h.  */
4021 _ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h.  */
4025 $ac_includes_default
4026
4027 #include <$ac_header>
4028 _ACEOF
4029 rm -f conftest.$ac_objext
4030 if { (ac_try="$ac_compile"
4031 case "(($ac_try" in
4032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033   *) ac_try_echo=$ac_try;;
4034 esac
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036   (eval "$ac_compile") 2>conftest.er1
4037   ac_status=$?
4038   grep -v '^ *+' conftest.er1 >conftest.err
4039   rm -f conftest.er1
4040   cat conftest.err >&5
4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); } &&
4043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4044   { (case "(($ac_try" in
4045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046   *) ac_try_echo=$ac_try;;
4047 esac
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049   (eval "$ac_try") 2>&5
4050   ac_status=$?
4051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052   (exit $ac_status); }; } &&
4053          { ac_try='test -s conftest.$ac_objext'
4054   { (case "(($ac_try" in
4055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056   *) ac_try_echo=$ac_try;;
4057 esac
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059   (eval "$ac_try") 2>&5
4060   ac_status=$?
4061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062   (exit $ac_status); }; }; then
4063   eval "$as_ac_Header=yes"
4064 else
4065   echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4067
4068         eval "$as_ac_Header=no"
4069 fi
4070
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 fi
4073 ac_res=`eval echo '${'$as_ac_Header'}'`
4074                { echo "$as_me:$LINENO: result: $ac_res" >&5
4075 echo "${ECHO_T}$ac_res" >&6; }
4076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4077   cat >>confdefs.h <<_ACEOF
4078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4079 _ACEOF
4080
4081 fi
4082
4083 done
4084
4085
4086 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4087 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4088 if test "${ac_cv_c_bigendian+set}" = set; then
4089   echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091   # See if sys/param.h defines the BYTE_ORDER macro.
4092 cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h.  */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h.  */
4098 #include <sys/types.h>
4099 #include <sys/param.h>
4100
4101 int
4102 main ()
4103 {
4104 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4105  bogus endian macros
4106 #endif
4107
4108   ;
4109   return 0;
4110 }
4111 _ACEOF
4112 rm -f conftest.$ac_objext
4113 if { (ac_try="$ac_compile"
4114 case "(($ac_try" in
4115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116   *) ac_try_echo=$ac_try;;
4117 esac
4118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119   (eval "$ac_compile") 2>conftest.er1
4120   ac_status=$?
4121   grep -v '^ *+' conftest.er1 >conftest.err
4122   rm -f conftest.er1
4123   cat conftest.err >&5
4124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125   (exit $ac_status); } &&
4126          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4127   { (case "(($ac_try" in
4128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129   *) ac_try_echo=$ac_try;;
4130 esac
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132   (eval "$ac_try") 2>&5
4133   ac_status=$?
4134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); }; } &&
4136          { ac_try='test -s conftest.$ac_objext'
4137   { (case "(($ac_try" in
4138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139   *) ac_try_echo=$ac_try;;
4140 esac
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142   (eval "$ac_try") 2>&5
4143   ac_status=$?
4144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145   (exit $ac_status); }; }; then
4146   # It does; now see whether it defined to BIG_ENDIAN or not.
4147 cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h.  */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h.  */
4153 #include <sys/types.h>
4154 #include <sys/param.h>
4155
4156 int
4157 main ()
4158 {
4159 #if BYTE_ORDER != BIG_ENDIAN
4160  not big endian
4161 #endif
4162
4163   ;
4164   return 0;
4165 }
4166 _ACEOF
4167 rm -f conftest.$ac_objext
4168 if { (ac_try="$ac_compile"
4169 case "(($ac_try" in
4170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171   *) ac_try_echo=$ac_try;;
4172 esac
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174   (eval "$ac_compile") 2>conftest.er1
4175   ac_status=$?
4176   grep -v '^ *+' conftest.er1 >conftest.err
4177   rm -f conftest.er1
4178   cat conftest.err >&5
4179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180   (exit $ac_status); } &&
4181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4182   { (case "(($ac_try" in
4183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184   *) ac_try_echo=$ac_try;;
4185 esac
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187   (eval "$ac_try") 2>&5
4188   ac_status=$?
4189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190   (exit $ac_status); }; } &&
4191          { ac_try='test -s conftest.$ac_objext'
4192   { (case "(($ac_try" in
4193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194   *) ac_try_echo=$ac_try;;
4195 esac
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197   (eval "$ac_try") 2>&5
4198   ac_status=$?
4199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200   (exit $ac_status); }; }; then
4201   ac_cv_c_bigendian=yes
4202 else
4203   echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4205
4206         ac_cv_c_bigendian=no
4207 fi
4208
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 else
4211   echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4213
4214         # It does not; compile a test program.
4215 if test "$cross_compiling" = yes; then
4216   # try to guess the endianness by grepping values into an object file
4217   ac_cv_c_bigendian=unknown
4218   cat >conftest.$ac_ext <<_ACEOF
4219 /* confdefs.h.  */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h.  */
4224 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4225 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4226 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4227 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4228 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4229 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4230 int
4231 main ()
4232 {
4233  _ascii (); _ebcdic ();
4234   ;
4235   return 0;
4236 }
4237 _ACEOF
4238 rm -f conftest.$ac_objext
4239 if { (ac_try="$ac_compile"
4240 case "(($ac_try" in
4241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242   *) ac_try_echo=$ac_try;;
4243 esac
4244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245   (eval "$ac_compile") 2>conftest.er1
4246   ac_status=$?
4247   grep -v '^ *+' conftest.er1 >conftest.err
4248   rm -f conftest.er1
4249   cat conftest.err >&5
4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); } &&
4252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4253   { (case "(($ac_try" in
4254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255   *) ac_try_echo=$ac_try;;
4256 esac
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258   (eval "$ac_try") 2>&5
4259   ac_status=$?
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); }; } &&
4262          { ac_try='test -s conftest.$ac_objext'
4263   { (case "(($ac_try" in
4264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265   *) ac_try_echo=$ac_try;;
4266 esac
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268   (eval "$ac_try") 2>&5
4269   ac_status=$?
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); }; }; then
4272   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4273   ac_cv_c_bigendian=yes
4274 fi
4275 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4276   if test "$ac_cv_c_bigendian" = unknown; then
4277     ac_cv_c_bigendian=no
4278   else
4279     # finding both strings is unlikely to happen, but who knows?
4280     ac_cv_c_bigendian=unknown
4281   fi
4282 fi
4283 else
4284   echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4286
4287
4288 fi
4289
4290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 else
4292   cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h.  */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h.  */
4298 $ac_includes_default
4299 int
4300 main ()
4301 {
4302
4303   /* Are we little or big endian?  From Harbison&Steele.  */
4304   union
4305   {
4306     long int l;
4307     char c[sizeof (long int)];
4308   } u;
4309   u.l = 1;
4310   return u.c[sizeof (long int) - 1] == 1;
4311
4312   ;
4313   return 0;
4314 }
4315 _ACEOF
4316 rm -f conftest$ac_exeext
4317 if { (ac_try="$ac_link"
4318 case "(($ac_try" in
4319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320   *) ac_try_echo=$ac_try;;
4321 esac
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323   (eval "$ac_link") 2>&5
4324   ac_status=$?
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4327   { (case "(($ac_try" in
4328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329   *) ac_try_echo=$ac_try;;
4330 esac
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332   (eval "$ac_try") 2>&5
4333   ac_status=$?
4334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335   (exit $ac_status); }; }; then
4336   ac_cv_c_bigendian=no
4337 else
4338   echo "$as_me: program exited with status $ac_status" >&5
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4341
4342 ( exit $ac_status )
4343 ac_cv_c_bigendian=yes
4344 fi
4345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4346 fi
4347
4348
4349 fi
4350
4351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352 fi
4353 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4354 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4355 case $ac_cv_c_bigendian in
4356   yes)
4357     ENDIAN=big
4358  ;;
4359   no)
4360     ENDIAN=little
4361  ;;
4362   *)
4363     { { echo "$as_me:$LINENO: error: unknown endianness
4364 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4365 echo "$as_me: error: unknown endianness
4366 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4367    { (exit 1); exit 1; }; } ;;
4368 esac
4369
4370
4371 if test "$cross_compiling" = yes; then
4372   LLVM_CROSS_COMPILING=1
4373
4374
4375 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4376 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4377 if test "${ac_cv_build_exeext+set}" = set; then
4378   echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4381   ac_cv_build_exeext=.exe
4382 else
4383   ac_build_prefix=${build_alias}-
4384
4385   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4386 set dummy ${ac_build_prefix}gcc; ac_word=$2
4387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4390   echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392   if test -n "$BUILD_CC"; then
4393   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4397 do
4398   IFS=$as_save_IFS
4399   test -z "$as_dir" && as_dir=.
4400   for ac_exec_ext in '' $ac_executable_extensions; do
4401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4402     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404     break 2
4405   fi
4406 done
4407 done
4408 IFS=$as_save_IFS
4409
4410 fi
4411 fi
4412 BUILD_CC=$ac_cv_prog_BUILD_CC
4413 if test -n "$BUILD_CC"; then
4414   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4415 echo "${ECHO_T}$BUILD_CC" >&6; }
4416 else
4417   { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4419 fi
4420
4421
4422   if test -z "$BUILD_CC"; then
4423      # Extract the first word of "gcc", so it can be a program name with args.
4424 set dummy gcc; ac_word=$2
4425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4428   echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430   if test -n "$BUILD_CC"; then
4431   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436   IFS=$as_save_IFS
4437   test -z "$as_dir" && as_dir=.
4438   for ac_exec_ext in '' $ac_executable_extensions; do
4439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4440     ac_cv_prog_BUILD_CC="gcc"
4441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442     break 2
4443   fi
4444 done
4445 done
4446 IFS=$as_save_IFS
4447
4448 fi
4449 fi
4450 BUILD_CC=$ac_cv_prog_BUILD_CC
4451 if test -n "$BUILD_CC"; then
4452   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4453 echo "${ECHO_T}$BUILD_CC" >&6; }
4454 else
4455   { echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6; }
4457 fi
4458
4459
4460      if test -z "$BUILD_CC"; then
4461        # Extract the first word of "cc", so it can be a program name with args.
4462 set dummy cc; ac_word=$2
4463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4466   echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468   if test -n "$BUILD_CC"; then
4469   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4470 else
4471   ac_prog_rejected=no
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4474 do
4475   IFS=$as_save_IFS
4476   test -z "$as_dir" && as_dir=.
4477   for ac_exec_ext in '' $ac_executable_extensions; do
4478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4479     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4480        ac_prog_rejected=yes
4481        continue
4482      fi
4483     ac_cv_prog_BUILD_CC="cc"
4484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485     break 2
4486   fi
4487 done
4488 done
4489 IFS=$as_save_IFS
4490
4491 if test $ac_prog_rejected = yes; then
4492   # We found a bogon in the path, so make sure we never use it.
4493   set dummy $ac_cv_prog_BUILD_CC
4494   shift
4495   if test $# != 0; then
4496     # We chose a different compiler from the bogus one.
4497     # However, it has the same basename, so the bogon will be chosen
4498     # first if we set BUILD_CC to just the basename; use the full file name.
4499     shift
4500     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4501   fi
4502 fi
4503 fi
4504 fi
4505 BUILD_CC=$ac_cv_prog_BUILD_CC
4506 if test -n "$BUILD_CC"; then
4507   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4508 echo "${ECHO_T}$BUILD_CC" >&6; }
4509 else
4510   { echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6; }
4512 fi
4513
4514
4515      fi
4516   fi
4517   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4518 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4519    { (exit 1); exit 1; }; }
4520   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4521   rm -f conftest*
4522   echo 'int main () { return 0; }' > conftest.$ac_ext
4523   ac_cv_build_exeext=
4524   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4525   (eval $ac_build_link) 2>&5
4526   ac_status=$?
4527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528   (exit $ac_status); }; then
4529     for file in conftest.*; do
4530       case $file in
4531       *.c | *.o | *.obj | *.dSYM) ;;
4532       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4533       esac
4534     done
4535   else
4536     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4537 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4538    { (exit 1); exit 1; }; }
4539   fi
4540   rm -f conftest*
4541   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4542 fi
4543 fi
4544
4545 BUILD_EXEEXT=""
4546 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4547 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4548 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4549 ac_build_exeext=$BUILD_EXEEXT
4550
4551   ac_build_prefix=${build_alias}-
4552   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4553 set dummy ${ac_build_prefix}g++; ac_word=$2
4554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4556 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   if test -n "$BUILD_CXX"; then
4560   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4561 else
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565   IFS=$as_save_IFS
4566   test -z "$as_dir" && as_dir=.
4567   for ac_exec_ext in '' $ac_executable_extensions; do
4568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4569     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571     break 2
4572   fi
4573 done
4574 done
4575 IFS=$as_save_IFS
4576
4577 fi
4578 fi
4579 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4580 if test -n "$BUILD_CXX"; then
4581   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4582 echo "${ECHO_T}$BUILD_CXX" >&6; }
4583 else
4584   { echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6; }
4586 fi
4587
4588
4589   if test -z "$BUILD_CXX"; then
4590      # Extract the first word of "g++", so it can be a program name with args.
4591 set dummy g++; ac_word=$2
4592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4595   echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597   if test -n "$BUILD_CXX"; then
4598   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603   IFS=$as_save_IFS
4604   test -z "$as_dir" && as_dir=.
4605   for ac_exec_ext in '' $ac_executable_extensions; do
4606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4607     ac_cv_prog_BUILD_CXX="g++"
4608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609     break 2
4610   fi
4611 done
4612 done
4613 IFS=$as_save_IFS
4614
4615 fi
4616 fi
4617 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4618 if test -n "$BUILD_CXX"; then
4619   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4620 echo "${ECHO_T}$BUILD_CXX" >&6; }
4621 else
4622   { echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6; }
4624 fi
4625
4626
4627      if test -z "$BUILD_CXX"; then
4628        # Extract the first word of "c++", so it can be a program name with args.
4629 set dummy c++; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4633   echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635   if test -n "$BUILD_CXX"; then
4636   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4637 else
4638   ac_prog_rejected=no
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4641 do
4642   IFS=$as_save_IFS
4643   test -z "$as_dir" && as_dir=.
4644   for ac_exec_ext in '' $ac_executable_extensions; do
4645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4646     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4647        ac_prog_rejected=yes
4648        continue
4649      fi
4650     ac_cv_prog_BUILD_CXX="c++"
4651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652     break 2
4653   fi
4654 done
4655 done
4656 IFS=$as_save_IFS
4657
4658 if test $ac_prog_rejected = yes; then
4659   # We found a bogon in the path, so make sure we never use it.
4660   set dummy $ac_cv_prog_BUILD_CXX
4661   shift
4662   if test $# != 0; then
4663     # We chose a different compiler from the bogus one.
4664     # However, it has the same basename, so the bogon will be chosen
4665     # first if we set BUILD_CXX to just the basename; use the full file name.
4666     shift
4667     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4668   fi
4669 fi
4670 fi
4671 fi
4672 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4673 if test -n "$BUILD_CXX"; then
4674   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4675 echo "${ECHO_T}$BUILD_CXX" >&6; }
4676 else
4677   { echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6; }
4679 fi
4680
4681
4682      fi
4683   fi
4684 else
4685   LLVM_CROSS_COMPILING=0
4686
4687 fi
4688
4689 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4690   cvsbuild="yes"
4691   optimize="no"
4692   CVSBUILD=CVSBUILD=1
4693
4694 else
4695   cvsbuild="no"
4696   optimize="yes"
4697 fi
4698
4699
4700 # Check whether --enable-optimized was given.
4701 if test "${enable_optimized+set}" = set; then
4702   enableval=$enable_optimized;
4703 else
4704   enableval=$optimize
4705 fi
4706
4707 if test ${enableval} = "no" ; then
4708   ENABLE_OPTIMIZED=
4709
4710 else
4711   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4712
4713 fi
4714
4715 # Check whether --enable-profiling was given.
4716 if test "${enable_profiling+set}" = set; then
4717   enableval=$enable_profiling;
4718 else
4719   enableval="no"
4720 fi
4721
4722 if test ${enableval} = "no" ; then
4723   ENABLE_PROFILING=
4724
4725 else
4726   ENABLE_PROFILING=ENABLE_PROFILING=1
4727
4728 fi
4729
4730 # Check whether --enable-assertions was given.
4731 if test "${enable_assertions+set}" = set; then
4732   enableval=$enable_assertions;
4733 else
4734   enableval="yes"
4735 fi
4736
4737 if test ${enableval} = "yes" ; then
4738   DISABLE_ASSERTIONS=
4739
4740 else
4741   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4742
4743 fi
4744
4745 # Check whether --enable-expensive-checks was given.
4746 if test "${enable_expensive_checks+set}" = set; then
4747   enableval=$enable_expensive_checks;
4748 else
4749   enableval="no"
4750 fi
4751
4752 if test ${enableval} = "yes" ; then
4753   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4754
4755   EXPENSIVE_CHECKS=yes
4756
4757 else
4758   ENABLE_EXPENSIVE_CHECKS=
4759
4760   EXPENSIVE_CHECKS=no
4761
4762 fi
4763
4764 # Check whether --enable-debug-runtime was given.
4765 if test "${enable_debug_runtime+set}" = set; then
4766   enableval=$enable_debug_runtime;
4767 else
4768   enableval=no
4769 fi
4770
4771 if test ${enableval} = "no" ; then
4772   DEBUG_RUNTIME=
4773
4774 else
4775   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4776
4777 fi
4778
4779 # Check whether --enable-debug-symbols was given.
4780 if test "${enable_debug_symbols+set}" = set; then
4781   enableval=$enable_debug_symbols;
4782 else
4783   enableval=no
4784 fi
4785
4786 if test ${enableval} = "no" ; then
4787   DEBUG_SYMBOLS=
4788
4789 else
4790   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4791
4792 fi
4793
4794 # Check whether --enable-jit was given.
4795 if test "${enable_jit+set}" = set; then
4796   enableval=$enable_jit;
4797 else
4798   enableval=default
4799 fi
4800
4801 if test ${enableval} = "no"
4802 then
4803   JIT=
4804
4805 else
4806   case "$llvm_cv_target_arch" in
4807     x86)         TARGET_HAS_JIT=1
4808  ;;
4809     Sparc)       TARGET_HAS_JIT=0
4810  ;;
4811     PowerPC)     TARGET_HAS_JIT=1
4812  ;;
4813     x86_64)      TARGET_HAS_JIT=1
4814  ;;
4815     Alpha)       TARGET_HAS_JIT=1
4816  ;;
4817     ARM)         TARGET_HAS_JIT=1
4818  ;;
4819     Mips)        TARGET_HAS_JIT=0
4820  ;;
4821     PIC16)       TARGET_HAS_JIT=0
4822  ;;
4823     XCore)       TARGET_HAS_JIT=0
4824  ;;
4825     MSP430)      TARGET_HAS_JIT=0
4826  ;;
4827     SystemZ)     TARGET_HAS_JIT=0
4828  ;;
4829     Blackfin)    TARGET_HAS_JIT=0
4830  ;;
4831     MBlaze)      TARGET_HAS_JIT=0
4832  ;;
4833     *)           TARGET_HAS_JIT=0
4834  ;;
4835   esac
4836 fi
4837
4838 # Check whether --enable-doxygen was given.
4839 if test "${enable_doxygen+set}" = set; then
4840   enableval=$enable_doxygen;
4841 else
4842   enableval=default
4843 fi
4844
4845 case "$enableval" in
4846   yes) ENABLE_DOXYGEN=1
4847  ;;
4848   no)  ENABLE_DOXYGEN=0
4849  ;;
4850   default) ENABLE_DOXYGEN=0
4851  ;;
4852   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4853 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4854    { (exit 1); exit 1; }; } ;;
4855 esac
4856
4857 # Check whether --enable-threads was given.
4858 if test "${enable_threads+set}" = set; then
4859   enableval=$enable_threads;
4860 else
4861   enableval=default
4862 fi
4863
4864 case "$enableval" in
4865   yes) ENABLE_THREADS=1
4866  ;;
4867   no)  ENABLE_THREADS=0
4868  ;;
4869   default) ENABLE_THREADS=1
4870  ;;
4871   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4872 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4873    { (exit 1); exit 1; }; } ;;
4874 esac
4875
4876 cat >>confdefs.h <<_ACEOF
4877 #define ENABLE_THREADS $ENABLE_THREADS
4878 _ACEOF
4879
4880
4881 # Check whether --enable-pic was given.
4882 if test "${enable_pic+set}" = set; then
4883   enableval=$enable_pic;
4884 else
4885   enableval=default
4886 fi
4887
4888 case "$enableval" in
4889   yes) ENABLE_PIC=1
4890  ;;
4891   no)  ENABLE_PIC=0
4892  ;;
4893   default) ENABLE_PIC=1
4894  ;;
4895   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4896 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4897    { (exit 1); exit 1; }; } ;;
4898 esac
4899
4900 cat >>confdefs.h <<_ACEOF
4901 #define ENABLE_PIC $ENABLE_PIC
4902 _ACEOF
4903
4904
4905 # Check whether --enable-shared was given.
4906 if test "${enable_shared+set}" = set; then
4907   enableval=$enable_shared;
4908 else
4909   enableval=default
4910 fi
4911
4912 case "$enableval" in
4913   yes) ENABLE_SHARED=1
4914  ;;
4915   no)  ENABLE_SHARED=0
4916  ;;
4917   default) ENABLE_SHARED=0
4918  ;;
4919   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4920 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4921    { (exit 1); exit 1; }; } ;;
4922 esac
4923
4924 TARGETS_TO_BUILD=""
4925 # Check whether --enable-targets was given.
4926 if test "${enable_targets+set}" = set; then
4927   enableval=$enable_targets;
4928 else
4929   enableval=all
4930 fi
4931
4932 if test "$enableval" = host-only ; then
4933   enableval=host
4934 fi
4935 case "$enableval" in
4936   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4937   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4938       case "$a_target" in
4939         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4940         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4941         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4942         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4943         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4944         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4945         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4946         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4947         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4948         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4949         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4950         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4951         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4952         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4953         msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4954         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4955         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4956         host) case "$llvm_cv_target_arch" in
4957             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4958             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4959             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4960             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4961             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4962             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4963             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4964             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4965             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4966             PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4967             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4968             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4969             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4970             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4971             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4972 echo "$as_me: error: Can not set target to build" >&2;}
4973    { (exit 1); exit 1; }; } ;;
4974           esac ;;
4975         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4976 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4977    { (exit 1); exit 1; }; } ;;
4978       esac
4979   done
4980   ;;
4981 esac
4982 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4983
4984
4985 # Determine whether we are building LLVM support for the native architecture.
4986 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4987 for a_target in $TARGETS_TO_BUILD; do
4988   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4989     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4990
4991 cat >>confdefs.h <<_ACEOF
4992 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4993 _ACEOF
4994
4995   fi
4996 done
4997
4998 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4999 # target feature def files.
5000 LLVM_ENUM_TARGETS=""
5001 LLVM_ENUM_ASM_PRINTERS=""
5002 LLVM_ENUM_ASM_PARSERS=""
5003 LLVM_ENUM_DISASSEMBLERS=""
5004 for target_to_build in $TARGETS_TO_BUILD; do
5005   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5006   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5007     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5008   fi
5009   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5010     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5011   fi
5012   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5013     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5014   fi
5015 done
5016
5017
5018
5019
5020
5021 # Check whether --enable-cbe-printf-a was given.
5022 if test "${enable_cbe_printf_a+set}" = set; then
5023   enableval=$enable_cbe_printf_a;
5024 else
5025   enableval=default
5026 fi
5027
5028 case "$enableval" in
5029   yes) ENABLE_CBE_PRINTF_A=1
5030  ;;
5031   no)  ENABLE_CBE_PRINTF_A=0
5032  ;;
5033   default)  ENABLE_CBE_PRINTF_A=1
5034  ;;
5035   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5036 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5037    { (exit 1); exit 1; }; } ;;
5038 esac
5039
5040 cat >>confdefs.h <<_ACEOF
5041 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5042 _ACEOF
5043
5044
5045
5046 # Check whether --with-llvmgccdir was given.
5047 if test "${with_llvmgccdir+set}" = set; then
5048   withval=$with_llvmgccdir;
5049 else
5050   withval=default
5051 fi
5052
5053 case "$withval" in
5054   default) WITH_LLVMGCCDIR=default ;;
5055   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5056   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5057 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5058    { (exit 1); exit 1; }; } ;;
5059 esac
5060
5061
5062 # Check whether --with-llvmgcc was given.
5063 if test "${with_llvmgcc+set}" = set; then
5064   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5065       WITH_LLVMGCCDIR=""
5066 fi
5067
5068
5069
5070 # Check whether --with-llvmgxx was given.
5071 if test "${with_llvmgxx+set}" = set; then
5072   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5073     WITH_LLVMGCCDIR=""
5074 fi
5075
5076
5077 if test -n "$LLVMGCC"; then
5078    LLVMGCCCOMMAND="$LLVMGCC"
5079 fi
5080
5081 if test -n "$LLVMGXX"; then
5082    LLVMGXXCOMMAND="$LLVMGXX"
5083 fi
5084
5085 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5086    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5087 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5088    { (exit 1); exit 1; }; };
5089 fi
5090
5091 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5092    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5093 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5094    { (exit 1); exit 1; }; };
5095 fi
5096
5097
5098 # Check whether --with-clang was given.
5099 if test "${with_clang+set}" = set; then
5100   withval=$with_clang;
5101 else
5102   with_clang=default
5103 fi
5104
5105
5106
5107 # Check whether --with-built-clang was given.
5108 if test "${with_built_clang+set}" = set; then
5109   withval=$with_built_clang;
5110 else
5111   with_built_clang=check
5112 fi
5113
5114
5115 { echo "$as_me:$LINENO: checking clang compiler" >&5
5116 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5117 WITH_CLANGPATH=""
5118 WITH_BUILT_CLANG=0
5119 if test "$with_clang" != "default"; then
5120    WITH_CLANGPATH="$with_clang"
5121    if ! test -x "$WITH_CLANGPATH"; then
5122      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5123 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5124    { (exit 1); exit 1; }; }
5125    fi
5126 elif test "$with_built_clang" = "yes"; then
5127    WITH_BUILT_CLANG=1
5128 elif test "$with_built_clang" = "no"; then
5129    WITH_BUILT_CLANG=0
5130 else
5131    if test "$with_built_clang" != "check"; then
5132       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5133 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5134    { (exit 1); exit 1; }; }
5135    fi
5136
5137    if test -f ${srcdir}/tools/clang/README.txt; then
5138      WITH_BUILT_CLANG=1
5139    fi
5140 fi
5141
5142 if ! test -z "$WITH_CLANGPATH"; then
5143    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5144 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5145    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5146 elif test "$WITH_BUILT_CLANG" = "1"; then
5147    { echo "$as_me:$LINENO: result: built" >&5
5148 echo "${ECHO_T}built" >&6; }
5149 else
5150    { echo "$as_me:$LINENO: result: none" >&5
5151 echo "${ECHO_T}none" >&6; }
5152 fi
5153 CLANGPATH=$WITH_CLANGPATH
5154
5155 CLANGXXPATH=$WITH_CLANGXXPATH
5156
5157 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5158
5159
5160
5161 # Check whether --with-optimize-option was given.
5162 if test "${with_optimize_option+set}" = set; then
5163   withval=$with_optimize_option;
5164 else
5165   withval=default
5166 fi
5167
5168 { echo "$as_me:$LINENO: checking optimization flags" >&5
5169 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5170 case "$withval" in
5171   default)
5172     case "$llvm_cv_os_type" in
5173     FreeBSD) optimize_option=-O2 ;;
5174     MingW) optimize_option=-O2 ;;
5175     *)     optimize_option=-O3 ;;
5176     esac ;;
5177   *) optimize_option="$withval" ;;
5178 esac
5179 OPTIMIZE_OPTION=$optimize_option
5180
5181 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5182 echo "${ECHO_T}$optimize_option" >&6; }
5183
5184
5185 # Check whether --with-extra-options was given.
5186 if test "${with_extra_options+set}" = set; then
5187   withval=$with_extra_options;
5188 else
5189   withval=default
5190 fi
5191
5192 case "$withval" in
5193   default) EXTRA_OPTIONS= ;;
5194   *) EXTRA_OPTIONS=$withval ;;
5195 esac
5196 EXTRA_OPTIONS=$EXTRA_OPTIONS
5197
5198
5199 # Check whether --enable-bindings was given.
5200 if test "${enable_bindings+set}" = set; then
5201   enableval=$enable_bindings;
5202 else
5203   enableval=default
5204 fi
5205
5206 BINDINGS_TO_BUILD=""
5207 case "$enableval" in
5208   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5209   all ) BINDINGS_TO_BUILD="ocaml" ;;
5210   none | no) BINDINGS_TO_BUILD="" ;;
5211   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5212       case "$a_binding" in
5213         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5214         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5215 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5216    { (exit 1); exit 1; }; } ;;
5217       esac
5218   done
5219   ;;
5220 esac
5221
5222
5223 # Check whether --with-ocaml-libdir was given.
5224 if test "${with_ocaml_libdir+set}" = set; then
5225   withval=$with_ocaml_libdir;
5226 else
5227   withval=auto
5228 fi
5229
5230 case "$withval" in
5231   auto) with_ocaml_libdir="$withval" ;;
5232   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5233   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5234 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5235    { (exit 1); exit 1; }; } ;;
5236 esac
5237
5238
5239 # Check whether --with-c-include-dirs was given.
5240 if test "${with_c_include_dirs+set}" = set; then
5241   withval=$with_c_include_dirs;
5242 else
5243   withval=""
5244 fi
5245
5246
5247 cat >>confdefs.h <<_ACEOF
5248 #define C_INCLUDE_DIRS "$withval"
5249 _ACEOF
5250
5251
5252
5253 # Check whether --with-cxx-include-root was given.
5254 if test "${with_cxx_include_root+set}" = set; then
5255   withval=$with_cxx_include_root;
5256 else
5257   withval=""
5258 fi
5259
5260
5261 cat >>confdefs.h <<_ACEOF
5262 #define CXX_INCLUDE_ROOT "$withval"
5263 _ACEOF
5264
5265
5266
5267 # Check whether --with-cxx-include-arch was given.
5268 if test "${with_cxx_include_arch+set}" = set; then
5269   withval=$with_cxx_include_arch;
5270 else
5271   withval=""
5272 fi
5273
5274
5275 cat >>confdefs.h <<_ACEOF
5276 #define CXX_INCLUDE_ARCH "$withval"
5277 _ACEOF
5278
5279
5280
5281 # Check whether --with-cxx-include-32bit-dir was given.
5282 if test "${with_cxx_include_32bit_dir+set}" = set; then
5283   withval=$with_cxx_include_32bit_dir;
5284 else
5285   withval=""
5286 fi
5287
5288
5289 cat >>confdefs.h <<_ACEOF
5290 #define CXX_INCLUDE_32BIT_DIR "$withval"
5291 _ACEOF
5292
5293
5294
5295 # Check whether --with-cxx-include-64bit-dir was given.
5296 if test "${with_cxx_include_64bit_dir+set}" = set; then
5297   withval=$with_cxx_include_64bit_dir;
5298 else
5299   withval=""
5300 fi
5301
5302
5303 cat >>confdefs.h <<_ACEOF
5304 #define CXX_INCLUDE_64BIT_DIR "$withval"
5305 _ACEOF
5306
5307
5308
5309 # Check whether --with-binutils-include was given.
5310 if test "${with_binutils_include+set}" = set; then
5311   withval=$with_binutils_include;
5312 else
5313   withval=default
5314 fi
5315
5316 case "$withval" in
5317   default) WITH_BINUTILS_INCDIR=default ;;
5318   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5319   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5320 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5321    { (exit 1); exit 1; }; } ;;
5322 esac
5323 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5324   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5325
5326   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5327      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5328      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5329 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5330    { (exit 1); exit 1; }; };
5331   fi
5332 fi
5333
5334 # Check whether --enable-libffi was given.
5335 if test "${enable_libffi+set}" = set; then
5336   enableval=$enable_libffi; case "$enableval" in
5337     yes) llvm_cv_enable_libffi="yes" ;;
5338     no)  llvm_cv_enable_libffi="no"  ;;
5339     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5340 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5341    { (exit 1); exit 1; }; } ;;
5342   esac
5343 else
5344   llvm_cv_enable_libffi=no
5345 fi
5346
5347
5348 if test "$llvm_cv_os_type" = "Win32" ; then
5349    llvmc_dynamic="yes"
5350 else
5351    llvmc_dynamic="no"
5352 fi
5353
5354 # Check whether --enable-llvmc-dynamic was given.
5355 if test "${enable_llvmc_dynamic+set}" = set; then
5356   enableval=$enable_llvmc_dynamic;
5357 else
5358   enableval=$llvmc_dynamic
5359 fi
5360
5361 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5362    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5363
5364 else
5365    ENABLE_LLVMC_DYNAMIC=
5366
5367 fi
5368
5369 # Check whether --enable-llvmc-dynamic-plugins was given.
5370 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5371   enableval=$enable_llvmc_dynamic_plugins;
5372 else
5373   enableval=yes
5374 fi
5375
5376 if test ${enableval} = "yes" ; then
5377    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5378
5379 else
5380    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5381
5382 fi
5383
5384
5385 ac_ext=c
5386 ac_cpp='$CPP $CPPFLAGS'
5387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5390 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5391 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5392 # On Suns, sometimes $CPP names a directory.
5393 if test -n "$CPP" && test -d "$CPP"; then
5394   CPP=
5395 fi
5396 if test -z "$CPP"; then
5397   if test "${ac_cv_prog_CPP+set}" = set; then
5398   echo $ECHO_N "(cached) $ECHO_C" >&6
5399 else
5400       # Double quotes because CPP needs to be expanded
5401     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5402     do
5403       ac_preproc_ok=false
5404 for ac_c_preproc_warn_flag in '' yes
5405 do
5406   # Use a header file that comes with gcc, so configuring glibc
5407   # with a fresh cross-compiler works.
5408   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5409   # <limits.h> exists even on freestanding compilers.
5410   # On the NeXT, cc -E runs the code through the compiler's parser,
5411   # not just through cpp. "Syntax error" is here to catch this case.
5412   cat >conftest.$ac_ext <<_ACEOF
5413 /* confdefs.h.  */
5414 _ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h.  */
5418 #ifdef __STDC__
5419 # include <limits.h>
5420 #else
5421 # include <assert.h>
5422 #endif
5423                      Syntax error
5424 _ACEOF
5425 if { (ac_try="$ac_cpp conftest.$ac_ext"
5426 case "(($ac_try" in
5427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428   *) ac_try_echo=$ac_try;;
5429 esac
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5432   ac_status=$?
5433   grep -v '^ *+' conftest.er1 >conftest.err
5434   rm -f conftest.er1
5435   cat conftest.err >&5
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); } >/dev/null; then
5438   if test -s conftest.err; then
5439     ac_cpp_err=$ac_c_preproc_warn_flag
5440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5441   else
5442     ac_cpp_err=
5443   fi
5444 else
5445   ac_cpp_err=yes
5446 fi
5447 if test -z "$ac_cpp_err"; then
5448   :
5449 else
5450   echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5452
5453   # Broken: fails on valid input.
5454 continue
5455 fi
5456
5457 rm -f conftest.err conftest.$ac_ext
5458
5459   # OK, works on sane cases.  Now check whether nonexistent headers
5460   # can be detected and how.
5461   cat >conftest.$ac_ext <<_ACEOF
5462 /* confdefs.h.  */
5463 _ACEOF
5464 cat confdefs.h >>conftest.$ac_ext
5465 cat >>conftest.$ac_ext <<_ACEOF
5466 /* end confdefs.h.  */
5467 #include <ac_nonexistent.h>
5468 _ACEOF
5469 if { (ac_try="$ac_cpp conftest.$ac_ext"
5470 case "(($ac_try" in
5471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472   *) ac_try_echo=$ac_try;;
5473 esac
5474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5476   ac_status=$?
5477   grep -v '^ *+' conftest.er1 >conftest.err
5478   rm -f conftest.er1
5479   cat conftest.err >&5
5480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481   (exit $ac_status); } >/dev/null; then
5482   if test -s conftest.err; then
5483     ac_cpp_err=$ac_c_preproc_warn_flag
5484     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5485   else
5486     ac_cpp_err=
5487   fi
5488 else
5489   ac_cpp_err=yes
5490 fi
5491 if test -z "$ac_cpp_err"; then
5492   # Broken: success on invalid input.
5493 continue
5494 else
5495   echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5497
5498   # Passes both tests.
5499 ac_preproc_ok=:
5500 break
5501 fi
5502
5503 rm -f conftest.err conftest.$ac_ext
5504
5505 done
5506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5507 rm -f conftest.err conftest.$ac_ext
5508 if $ac_preproc_ok; then
5509   break
5510 fi
5511
5512     done
5513     ac_cv_prog_CPP=$CPP
5514
5515 fi
5516   CPP=$ac_cv_prog_CPP
5517 else
5518   ac_cv_prog_CPP=$CPP
5519 fi
5520 { echo "$as_me:$LINENO: result: $CPP" >&5
5521 echo "${ECHO_T}$CPP" >&6; }
5522 ac_preproc_ok=false
5523 for ac_c_preproc_warn_flag in '' yes
5524 do
5525   # Use a header file that comes with gcc, so configuring glibc
5526   # with a fresh cross-compiler works.
5527   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5528   # <limits.h> exists even on freestanding compilers.
5529   # On the NeXT, cc -E runs the code through the compiler's parser,
5530   # not just through cpp. "Syntax error" is here to catch this case.
5531   cat >conftest.$ac_ext <<_ACEOF
5532 /* confdefs.h.  */
5533 _ACEOF
5534 cat confdefs.h >>conftest.$ac_ext
5535 cat >>conftest.$ac_ext <<_ACEOF
5536 /* end confdefs.h.  */
5537 #ifdef __STDC__
5538 # include <limits.h>
5539 #else
5540 # include <assert.h>
5541 #endif
5542                      Syntax error
5543 _ACEOF
5544 if { (ac_try="$ac_cpp conftest.$ac_ext"
5545 case "(($ac_try" in
5546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5547   *) ac_try_echo=$ac_try;;
5548 esac
5549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5550   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5551   ac_status=$?
5552   grep -v '^ *+' conftest.er1 >conftest.err
5553   rm -f conftest.er1
5554   cat conftest.err >&5
5555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556   (exit $ac_status); } >/dev/null; then
5557   if test -s conftest.err; then
5558     ac_cpp_err=$ac_c_preproc_warn_flag
5559     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5560   else
5561     ac_cpp_err=
5562   fi
5563 else
5564   ac_cpp_err=yes
5565 fi
5566 if test -z "$ac_cpp_err"; then
5567   :
5568 else
5569   echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5571
5572   # Broken: fails on valid input.
5573 continue
5574 fi
5575
5576 rm -f conftest.err conftest.$ac_ext
5577
5578   # OK, works on sane cases.  Now check whether nonexistent headers
5579   # can be detected and how.
5580   cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h.  */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h.  */
5586 #include <ac_nonexistent.h>
5587 _ACEOF
5588 if { (ac_try="$ac_cpp conftest.$ac_ext"
5589 case "(($ac_try" in
5590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591   *) ac_try_echo=$ac_try;;
5592 esac
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5595   ac_status=$?
5596   grep -v '^ *+' conftest.er1 >conftest.err
5597   rm -f conftest.er1
5598   cat conftest.err >&5
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); } >/dev/null; then
5601   if test -s conftest.err; then
5602     ac_cpp_err=$ac_c_preproc_warn_flag
5603     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5604   else
5605     ac_cpp_err=
5606   fi
5607 else
5608   ac_cpp_err=yes
5609 fi
5610 if test -z "$ac_cpp_err"; then
5611   # Broken: success on invalid input.
5612 continue
5613 else
5614   echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5616
5617   # Passes both tests.
5618 ac_preproc_ok=:
5619 break
5620 fi
5621
5622 rm -f conftest.err conftest.$ac_ext
5623
5624 done
5625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5626 rm -f conftest.err conftest.$ac_ext
5627 if $ac_preproc_ok; then
5628   :
5629 else
5630   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5631 See \`config.log' for more details." >&5
5632 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5633 See \`config.log' for more details." >&2;}
5634    { (exit 1); exit 1; }; }
5635 fi
5636
5637 ac_ext=c
5638 ac_cpp='$CPP $CPPFLAGS'
5639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5642
5643 ac_ext=c
5644 ac_cpp='$CPP $CPPFLAGS'
5645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5648 if test -n "$ac_tool_prefix"; then
5649   for ac_prog in gcc
5650   do
5651     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5655 if test "${ac_cv_prog_CC+set}" = set; then
5656   echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658   if test -n "$CC"; then
5659   ac_cv_prog_CC="$CC" # Let the user override the test.
5660 else
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5663 do
5664   IFS=$as_save_IFS
5665   test -z "$as_dir" && as_dir=.
5666   for ac_exec_ext in '' $ac_executable_extensions; do
5667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5668     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5670     break 2
5671   fi
5672 done
5673 done
5674 IFS=$as_save_IFS
5675
5676 fi
5677 fi
5678 CC=$ac_cv_prog_CC
5679 if test -n "$CC"; then
5680   { echo "$as_me:$LINENO: result: $CC" >&5
5681 echo "${ECHO_T}$CC" >&6; }
5682 else
5683   { echo "$as_me:$LINENO: result: no" >&5
5684 echo "${ECHO_T}no" >&6; }
5685 fi
5686
5687
5688     test -n "$CC" && break
5689   done
5690 fi
5691 if test -z "$CC"; then
5692   ac_ct_CC=$CC
5693   for ac_prog in gcc
5694 do
5695   # Extract the first word of "$ac_prog", so it can be a program name with args.
5696 set dummy $ac_prog; ac_word=$2
5697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5700   echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702   if test -n "$ac_ct_CC"; then
5703   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5707 do
5708   IFS=$as_save_IFS
5709   test -z "$as_dir" && as_dir=.
5710   for ac_exec_ext in '' $ac_executable_extensions; do
5711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5712     ac_cv_prog_ac_ct_CC="$ac_prog"
5713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5714     break 2
5715   fi
5716 done
5717 done
5718 IFS=$as_save_IFS
5719
5720 fi
5721 fi
5722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5723 if test -n "$ac_ct_CC"; then
5724   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5725 echo "${ECHO_T}$ac_ct_CC" >&6; }
5726 else
5727   { echo "$as_me:$LINENO: result: no" >&5
5728 echo "${ECHO_T}no" >&6; }
5729 fi
5730
5731
5732   test -n "$ac_ct_CC" && break
5733 done
5734
5735   if test "x$ac_ct_CC" = x; then
5736     CC=""
5737   else
5738     case $cross_compiling:$ac_tool_warned in
5739 yes:)
5740 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5741 whose name does not start with the host triplet.  If you think this
5742 configuration is useful to you, please write to autoconf@gnu.org." >&5
5743 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5744 whose name does not start with the host triplet.  If you think this
5745 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5746 ac_tool_warned=yes ;;
5747 esac
5748     CC=$ac_ct_CC
5749   fi
5750 fi
5751
5752
5753 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5754 See \`config.log' for more details." >&5
5755 echo "$as_me: error: no acceptable C compiler found in \$PATH
5756 See \`config.log' for more details." >&2;}
5757    { (exit 1); exit 1; }; }
5758
5759 # Provide some information about the compiler.
5760 echo "$as_me:$LINENO: checking for C compiler version" >&5
5761 ac_compiler=`set X $ac_compile; echo $2`
5762 { (ac_try="$ac_compiler --version >&5"
5763 case "(($ac_try" in
5764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765   *) ac_try_echo=$ac_try;;
5766 esac
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768   (eval "$ac_compiler --version >&5") 2>&5
5769   ac_status=$?
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); }
5772 { (ac_try="$ac_compiler -v >&5"
5773 case "(($ac_try" in
5774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775   *) ac_try_echo=$ac_try;;
5776 esac
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778   (eval "$ac_compiler -v >&5") 2>&5
5779   ac_status=$?
5780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781   (exit $ac_status); }
5782 { (ac_try="$ac_compiler -V >&5"
5783 case "(($ac_try" in
5784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785   *) ac_try_echo=$ac_try;;
5786 esac
5787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788   (eval "$ac_compiler -V >&5") 2>&5
5789   ac_status=$?
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); }
5792
5793 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5794 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5795 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5796   echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798   cat >conftest.$ac_ext <<_ACEOF
5799 /* confdefs.h.  */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h.  */
5804
5805 int
5806 main ()
5807 {
5808 #ifndef __GNUC__
5809        choke me
5810 #endif
5811
5812   ;
5813   return 0;
5814 }
5815 _ACEOF
5816 rm -f conftest.$ac_objext
5817 if { (ac_try="$ac_compile"
5818 case "(($ac_try" in
5819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820   *) ac_try_echo=$ac_try;;
5821 esac
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823   (eval "$ac_compile") 2>conftest.er1
5824   ac_status=$?
5825   grep -v '^ *+' conftest.er1 >conftest.err
5826   rm -f conftest.er1
5827   cat conftest.err >&5
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); } &&
5830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5831   { (case "(($ac_try" in
5832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833   *) ac_try_echo=$ac_try;;
5834 esac
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836   (eval "$ac_try") 2>&5
5837   ac_status=$?
5838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839   (exit $ac_status); }; } &&
5840          { ac_try='test -s conftest.$ac_objext'
5841   { (case "(($ac_try" in
5842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843   *) ac_try_echo=$ac_try;;
5844 esac
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846   (eval "$ac_try") 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); }; }; then
5850   ac_compiler_gnu=yes
5851 else
5852   echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5854
5855         ac_compiler_gnu=no
5856 fi
5857
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5860
5861 fi
5862 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5863 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5864 GCC=`test $ac_compiler_gnu = yes && echo yes`
5865 ac_test_CFLAGS=${CFLAGS+set}
5866 ac_save_CFLAGS=$CFLAGS
5867 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5868 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5869 if test "${ac_cv_prog_cc_g+set}" = set; then
5870   echo $ECHO_N "(cached) $ECHO_C" >&6
5871 else
5872   ac_save_c_werror_flag=$ac_c_werror_flag
5873    ac_c_werror_flag=yes
5874    ac_cv_prog_cc_g=no
5875    CFLAGS="-g"
5876    cat >conftest.$ac_ext <<_ACEOF
5877 /* confdefs.h.  */
5878 _ACEOF
5879 cat confdefs.h >>conftest.$ac_ext
5880 cat >>conftest.$ac_ext <<_ACEOF
5881 /* end confdefs.h.  */
5882
5883 int
5884 main ()
5885 {
5886
5887   ;
5888   return 0;
5889 }
5890 _ACEOF
5891 rm -f conftest.$ac_objext
5892 if { (ac_try="$ac_compile"
5893 case "(($ac_try" in
5894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895   *) ac_try_echo=$ac_try;;
5896 esac
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898   (eval "$ac_compile") 2>conftest.er1
5899   ac_status=$?
5900   grep -v '^ *+' conftest.er1 >conftest.err
5901   rm -f conftest.er1
5902   cat conftest.err >&5
5903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904   (exit $ac_status); } &&
5905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5906   { (case "(($ac_try" in
5907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908   *) ac_try_echo=$ac_try;;
5909 esac
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911   (eval "$ac_try") 2>&5
5912   ac_status=$?
5913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914   (exit $ac_status); }; } &&
5915          { ac_try='test -s conftest.$ac_objext'
5916   { (case "(($ac_try" in
5917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918   *) ac_try_echo=$ac_try;;
5919 esac
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921   (eval "$ac_try") 2>&5
5922   ac_status=$?
5923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924   (exit $ac_status); }; }; then
5925   ac_cv_prog_cc_g=yes
5926 else
5927   echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5929
5930         CFLAGS=""
5931       cat >conftest.$ac_ext <<_ACEOF
5932 /* confdefs.h.  */
5933 _ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h.  */
5937
5938 int
5939 main ()
5940 {
5941
5942   ;
5943   return 0;
5944 }
5945 _ACEOF
5946 rm -f conftest.$ac_objext
5947 if { (ac_try="$ac_compile"
5948 case "(($ac_try" in
5949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950   *) ac_try_echo=$ac_try;;
5951 esac
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953   (eval "$ac_compile") 2>conftest.er1
5954   ac_status=$?
5955   grep -v '^ *+' conftest.er1 >conftest.err
5956   rm -f conftest.er1
5957   cat conftest.err >&5
5958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959   (exit $ac_status); } &&
5960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5961   { (case "(($ac_try" in
5962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963   *) ac_try_echo=$ac_try;;
5964 esac
5965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966   (eval "$ac_try") 2>&5
5967   ac_status=$?
5968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969   (exit $ac_status); }; } &&
5970          { ac_try='test -s conftest.$ac_objext'
5971   { (case "(($ac_try" in
5972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973   *) ac_try_echo=$ac_try;;
5974 esac
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976   (eval "$ac_try") 2>&5
5977   ac_status=$?
5978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979   (exit $ac_status); }; }; then
5980   :
5981 else
5982   echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.$ac_ext >&5
5984
5985         ac_c_werror_flag=$ac_save_c_werror_flag
5986          CFLAGS="-g"
5987          cat >conftest.$ac_ext <<_ACEOF
5988 /* confdefs.h.  */
5989 _ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h.  */
5993
5994 int
5995 main ()
5996 {
5997
5998   ;
5999   return 0;
6000 }
6001 _ACEOF
6002 rm -f conftest.$ac_objext
6003 if { (ac_try="$ac_compile"
6004 case "(($ac_try" in
6005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006   *) ac_try_echo=$ac_try;;
6007 esac
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009   (eval "$ac_compile") 2>conftest.er1
6010   ac_status=$?
6011   grep -v '^ *+' conftest.er1 >conftest.err
6012   rm -f conftest.er1
6013   cat conftest.err >&5
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); } &&
6016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6017   { (case "(($ac_try" in
6018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019   *) ac_try_echo=$ac_try;;
6020 esac
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022   (eval "$ac_try") 2>&5
6023   ac_status=$?
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); }; } &&
6026          { ac_try='test -s conftest.$ac_objext'
6027   { (case "(($ac_try" in
6028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029   *) ac_try_echo=$ac_try;;
6030 esac
6031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032   (eval "$ac_try") 2>&5
6033   ac_status=$?
6034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035   (exit $ac_status); }; }; then
6036   ac_cv_prog_cc_g=yes
6037 else
6038   echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6040
6041
6042 fi
6043
6044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045 fi
6046
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048 fi
6049
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051    ac_c_werror_flag=$ac_save_c_werror_flag
6052 fi
6053 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6054 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6055 if test "$ac_test_CFLAGS" = set; then
6056   CFLAGS=$ac_save_CFLAGS
6057 elif test $ac_cv_prog_cc_g = yes; then
6058   if test "$GCC" = yes; then
6059     CFLAGS="-g -O2"
6060   else
6061     CFLAGS="-g"
6062   fi
6063 else
6064   if test "$GCC" = yes; then
6065     CFLAGS="-O2"
6066   else
6067     CFLAGS=
6068   fi
6069 fi
6070 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6071 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6072 if test "${ac_cv_prog_cc_c89+set}" = set; then
6073   echo $ECHO_N "(cached) $ECHO_C" >&6
6074 else
6075   ac_cv_prog_cc_c89=no
6076 ac_save_CC=$CC
6077 cat >conftest.$ac_ext <<_ACEOF
6078 /* confdefs.h.  */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h.  */
6083 #include <stdarg.h>
6084 #include <stdio.h>
6085 #include <sys/types.h>
6086 #include <sys/stat.h>
6087 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6088 struct buf { int x; };
6089 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6090 static char *e (p, i)
6091      char **p;
6092      int i;
6093 {
6094   return p[i];
6095 }
6096 static char *f (char * (*g) (char **, int), char **p, ...)
6097 {
6098   char *s;
6099   va_list v;
6100   va_start (v,p);
6101   s = g (p, va_arg (v,int));
6102   va_end (v);
6103   return s;
6104 }
6105
6106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6107    function prototypes and stuff, but not '\xHH' hex character constants.
6108    These don't provoke an error unfortunately, instead are silently treated
6109    as 'x'.  The following induces an error, until -std is added to get
6110    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6111    array size at least.  It's necessary to write '\x00'==0 to get something
6112    that's true only with -std.  */
6113 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6114
6115 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6116    inside strings and character constants.  */
6117 #define FOO(x) 'x'
6118 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6119
6120 int test (int i, double x);
6121 struct s1 {int (*f) (int a);};
6122 struct s2 {int (*f) (double a);};
6123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6124 int argc;
6125 char **argv;
6126 int
6127 main ()
6128 {
6129 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6130   ;
6131   return 0;
6132 }
6133 _ACEOF
6134 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6135         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6136 do
6137   CC="$ac_save_CC $ac_arg"
6138   rm -f conftest.$ac_objext
6139 if { (ac_try="$ac_compile"
6140 case "(($ac_try" in
6141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142   *) ac_try_echo=$ac_try;;
6143 esac
6144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145   (eval "$ac_compile") 2>conftest.er1
6146   ac_status=$?
6147   grep -v '^ *+' conftest.er1 >conftest.err
6148   rm -f conftest.er1
6149   cat conftest.err >&5
6150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151   (exit $ac_status); } &&
6152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6153   { (case "(($ac_try" in
6154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155   *) ac_try_echo=$ac_try;;
6156 esac
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158   (eval "$ac_try") 2>&5
6159   ac_status=$?
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); }; } &&
6162          { ac_try='test -s conftest.$ac_objext'
6163   { (case "(($ac_try" in
6164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165   *) ac_try_echo=$ac_try;;
6166 esac
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168   (eval "$ac_try") 2>&5
6169   ac_status=$?
6170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171   (exit $ac_status); }; }; then
6172   ac_cv_prog_cc_c89=$ac_arg
6173 else
6174   echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6176
6177
6178 fi
6179
6180 rm -f core conftest.err conftest.$ac_objext
6181   test "x$ac_cv_prog_cc_c89" != "xno" && break
6182 done
6183 rm -f conftest.$ac_ext
6184 CC=$ac_save_CC
6185
6186 fi
6187 # AC_CACHE_VAL
6188 case "x$ac_cv_prog_cc_c89" in
6189   x)
6190     { echo "$as_me:$LINENO: result: none needed" >&5
6191 echo "${ECHO_T}none needed" >&6; } ;;
6192   xno)
6193     { echo "$as_me:$LINENO: result: unsupported" >&5
6194 echo "${ECHO_T}unsupported" >&6; } ;;
6195   *)
6196     CC="$CC $ac_cv_prog_cc_c89"
6197     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6198 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6199 esac
6200
6201
6202 ac_ext=c
6203 ac_cpp='$CPP $CPPFLAGS'
6204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6207
6208 ac_ext=cpp
6209 ac_cpp='$CXXCPP $CPPFLAGS'
6210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6213 if test -z "$CXX"; then
6214   if test -n "$CCC"; then
6215     CXX=$CCC
6216   else
6217     if test -n "$ac_tool_prefix"; then
6218   for ac_prog in g++
6219   do
6220     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6224 if test "${ac_cv_prog_CXX+set}" = set; then
6225   echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227   if test -n "$CXX"; then
6228   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6229 else
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6232 do
6233   IFS=$as_save_IFS
6234   test -z "$as_dir" && as_dir=.
6235   for ac_exec_ext in '' $ac_executable_extensions; do
6236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6237     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6239     break 2
6240   fi
6241 done
6242 done
6243 IFS=$as_save_IFS
6244
6245 fi
6246 fi
6247 CXX=$ac_cv_prog_CXX
6248 if test -n "$CXX"; then
6249   { echo "$as_me:$LINENO: result: $CXX" >&5
6250 echo "${ECHO_T}$CXX" >&6; }
6251 else
6252   { echo "$as_me:$LINENO: result: no" >&5
6253 echo "${ECHO_T}no" >&6; }
6254 fi
6255
6256
6257     test -n "$CXX" && break
6258   done
6259 fi
6260 if test -z "$CXX"; then
6261   ac_ct_CXX=$CXX
6262   for ac_prog in g++
6263 do
6264   # Extract the first word of "$ac_prog", so it can be a program name with args.
6265 set dummy $ac_prog; ac_word=$2
6266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6268 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6269   echo $ECHO_N "(cached) $ECHO_C" >&6
6270 else
6271   if test -n "$ac_ct_CXX"; then
6272   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6273 else
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 for as_dir in $PATH
6276 do
6277   IFS=$as_save_IFS
6278   test -z "$as_dir" && as_dir=.
6279   for ac_exec_ext in '' $ac_executable_extensions; do
6280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6281     ac_cv_prog_ac_ct_CXX="$ac_prog"
6282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283     break 2
6284   fi
6285 done
6286 done
6287 IFS=$as_save_IFS
6288
6289 fi
6290 fi
6291 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6292 if test -n "$ac_ct_CXX"; then
6293   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6294 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6295 else
6296   { echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6; }
6298 fi
6299
6300
6301   test -n "$ac_ct_CXX" && break
6302 done
6303
6304   if test "x$ac_ct_CXX" = x; then
6305     CXX="g++"
6306   else
6307     case $cross_compiling:$ac_tool_warned in
6308 yes:)
6309 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6310 whose name does not start with the host triplet.  If you think this
6311 configuration is useful to you, please write to autoconf@gnu.org." >&5
6312 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6313 whose name does not start with the host triplet.  If you think this
6314 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6315 ac_tool_warned=yes ;;
6316 esac
6317     CXX=$ac_ct_CXX
6318   fi
6319 fi
6320
6321   fi
6322 fi
6323 # Provide some information about the compiler.
6324 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6325 ac_compiler=`set X $ac_compile; echo $2`
6326 { (ac_try="$ac_compiler --version >&5"
6327 case "(($ac_try" in
6328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329   *) ac_try_echo=$ac_try;;
6330 esac
6331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332   (eval "$ac_compiler --version >&5") 2>&5
6333   ac_status=$?
6334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335   (exit $ac_status); }
6336 { (ac_try="$ac_compiler -v >&5"
6337 case "(($ac_try" in
6338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339   *) ac_try_echo=$ac_try;;
6340 esac
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342   (eval "$ac_compiler -v >&5") 2>&5
6343   ac_status=$?
6344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345   (exit $ac_status); }
6346 { (ac_try="$ac_compiler -V >&5"
6347 case "(($ac_try" in
6348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349   *) ac_try_echo=$ac_try;;
6350 esac
6351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352   (eval "$ac_compiler -V >&5") 2>&5
6353   ac_status=$?
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); }
6356
6357 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6358 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6359 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6360   echo $ECHO_N "(cached) $ECHO_C" >&6
6361 else
6362   cat >conftest.$ac_ext <<_ACEOF
6363 /* confdefs.h.  */
6364 _ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h.  */
6368
6369 int
6370 main ()
6371 {
6372 #ifndef __GNUC__
6373        choke me
6374 #endif
6375
6376   ;
6377   return 0;
6378 }
6379 _ACEOF
6380 rm -f conftest.$ac_objext
6381 if { (ac_try="$ac_compile"
6382 case "(($ac_try" in
6383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384   *) ac_try_echo=$ac_try;;
6385 esac
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387   (eval "$ac_compile") 2>conftest.er1
6388   ac_status=$?
6389   grep -v '^ *+' conftest.er1 >conftest.err
6390   rm -f conftest.er1
6391   cat conftest.err >&5
6392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393   (exit $ac_status); } &&
6394          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6395   { (case "(($ac_try" in
6396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397   *) ac_try_echo=$ac_try;;
6398 esac
6399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400   (eval "$ac_try") 2>&5
6401   ac_status=$?
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); }; } &&
6404          { ac_try='test -s conftest.$ac_objext'
6405   { (case "(($ac_try" in
6406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407   *) ac_try_echo=$ac_try;;
6408 esac
6409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410   (eval "$ac_try") 2>&5
6411   ac_status=$?
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); }; }; then
6414   ac_compiler_gnu=yes
6415 else
6416   echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6418
6419         ac_compiler_gnu=no
6420 fi
6421
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6424
6425 fi
6426 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6427 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6428 GXX=`test $ac_compiler_gnu = yes && echo yes`
6429 ac_test_CXXFLAGS=${CXXFLAGS+set}
6430 ac_save_CXXFLAGS=$CXXFLAGS
6431 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6432 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6433 if test "${ac_cv_prog_cxx_g+set}" = set; then
6434   echo $ECHO_N "(cached) $ECHO_C" >&6
6435 else
6436   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6437    ac_cxx_werror_flag=yes
6438    ac_cv_prog_cxx_g=no
6439    CXXFLAGS="-g"
6440    cat >conftest.$ac_ext <<_ACEOF
6441 /* confdefs.h.  */
6442 _ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h.  */
6446
6447 int
6448 main ()
6449 {
6450
6451   ;
6452   return 0;
6453 }
6454 _ACEOF
6455 rm -f conftest.$ac_objext
6456 if { (ac_try="$ac_compile"
6457 case "(($ac_try" in
6458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459   *) ac_try_echo=$ac_try;;
6460 esac
6461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462   (eval "$ac_compile") 2>conftest.er1
6463   ac_status=$?
6464   grep -v '^ *+' conftest.er1 >conftest.err
6465   rm -f conftest.er1
6466   cat conftest.err >&5
6467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468   (exit $ac_status); } &&
6469          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6470   { (case "(($ac_try" in
6471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6472   *) ac_try_echo=$ac_try;;
6473 esac
6474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6475   (eval "$ac_try") 2>&5
6476   ac_status=$?
6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478   (exit $ac_status); }; } &&
6479          { ac_try='test -s conftest.$ac_objext'
6480   { (case "(($ac_try" in
6481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482   *) ac_try_echo=$ac_try;;
6483 esac
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485   (eval "$ac_try") 2>&5
6486   ac_status=$?
6487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488   (exit $ac_status); }; }; then
6489   ac_cv_prog_cxx_g=yes
6490 else
6491   echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6493
6494         CXXFLAGS=""
6495       cat >conftest.$ac_ext <<_ACEOF
6496 /* confdefs.h.  */
6497 _ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h.  */
6501
6502 int
6503 main ()
6504 {
6505
6506   ;
6507   return 0;
6508 }
6509 _ACEOF
6510 rm -f conftest.$ac_objext
6511 if { (ac_try="$ac_compile"
6512 case "(($ac_try" in
6513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514   *) ac_try_echo=$ac_try;;
6515 esac
6516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517   (eval "$ac_compile") 2>conftest.er1
6518   ac_status=$?
6519   grep -v '^ *+' conftest.er1 >conftest.err
6520   rm -f conftest.er1
6521   cat conftest.err >&5
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); } &&
6524          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6525   { (case "(($ac_try" in
6526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527   *) ac_try_echo=$ac_try;;
6528 esac
6529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530   (eval "$ac_try") 2>&5
6531   ac_status=$?
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); }; } &&
6534          { ac_try='test -s conftest.$ac_objext'
6535   { (case "(($ac_try" in
6536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537   *) ac_try_echo=$ac_try;;
6538 esac
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540   (eval "$ac_try") 2>&5
6541   ac_status=$?
6542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543   (exit $ac_status); }; }; then
6544   :
6545 else
6546   echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6548
6549         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6550          CXXFLAGS="-g"
6551          cat >conftest.$ac_ext <<_ACEOF
6552 /* confdefs.h.  */
6553 _ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h.  */
6557
6558 int
6559 main ()
6560 {
6561
6562   ;
6563   return 0;
6564 }
6565 _ACEOF
6566 rm -f conftest.$ac_objext
6567 if { (ac_try="$ac_compile"
6568 case "(($ac_try" in
6569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570   *) ac_try_echo=$ac_try;;
6571 esac
6572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6573   (eval "$ac_compile") 2>conftest.er1
6574   ac_status=$?
6575   grep -v '^ *+' conftest.er1 >conftest.err
6576   rm -f conftest.er1
6577   cat conftest.err >&5
6578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579   (exit $ac_status); } &&
6580          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6581   { (case "(($ac_try" in
6582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6583   *) ac_try_echo=$ac_try;;
6584 esac
6585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6586   (eval "$ac_try") 2>&5
6587   ac_status=$?
6588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589   (exit $ac_status); }; } &&
6590          { ac_try='test -s conftest.$ac_objext'
6591   { (case "(($ac_try" in
6592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6593   *) ac_try_echo=$ac_try;;
6594 esac
6595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6596   (eval "$ac_try") 2>&5
6597   ac_status=$?
6598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); }; }; then
6600   ac_cv_prog_cxx_g=yes
6601 else
6602   echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6604
6605
6606 fi
6607
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609 fi
6610
6611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 fi
6613
6614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6616 fi
6617 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6618 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6619 if test "$ac_test_CXXFLAGS" = set; then
6620   CXXFLAGS=$ac_save_CXXFLAGS
6621 elif test $ac_cv_prog_cxx_g = yes; then
6622   if test "$GXX" = yes; then
6623     CXXFLAGS="-g -O2"
6624   else
6625     CXXFLAGS="-g"
6626   fi
6627 else
6628   if test "$GXX" = yes; then
6629     CXXFLAGS="-O2"
6630   else
6631     CXXFLAGS=
6632   fi
6633 fi
6634 ac_ext=c
6635 ac_cpp='$CPP $CPPFLAGS'
6636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6639
6640
6641 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6642 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6643 if test "${lt_cv_path_NM+set}" = set; then
6644   echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646   if test -n "$NM"; then
6647   # Let the user override the test.
6648   lt_cv_path_NM="$NM"
6649 else
6650   lt_nm_to_check="${ac_tool_prefix}nm"
6651   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6652     lt_nm_to_check="$lt_nm_to_check nm"
6653   fi
6654   for lt_tmp_nm in $lt_nm_to_check; do
6655     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6656     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6657       IFS="$lt_save_ifs"
6658       test -z "$ac_dir" && ac_dir=.
6659       tmp_nm="$ac_dir/$lt_tmp_nm"
6660       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6661         # Check to see if the nm accepts a BSD-compat flag.
6662         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6663         #   nm: unknown option "B" ignored
6664         # Tru64's nm complains that /dev/null is an invalid object file
6665         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6666         */dev/null* | *'Invalid file or object type'*)
6667           lt_cv_path_NM="$tmp_nm -B"
6668           break
6669           ;;
6670         *)
6671           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6672           */dev/null*)
6673             lt_cv_path_NM="$tmp_nm -p"
6674             break
6675             ;;
6676           *)
6677             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6678             continue # so that we can try to find one that supports BSD flags
6679             ;;
6680           esac
6681           ;;
6682         esac
6683       fi
6684     done
6685     IFS="$lt_save_ifs"
6686   done
6687   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6688 fi
6689 fi
6690 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6691 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6692 NM="$lt_cv_path_NM"
6693
6694
6695
6696 { echo "$as_me:$LINENO: checking for GNU make" >&5
6697 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6698 if test "${llvm_cv_gnu_make_command+set}" = set; then
6699   echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701   llvm_cv_gnu_make_command=''
6702  for a in "$MAKE" make gmake gnumake ; do
6703   if test -z "$a" ; then continue ; fi ;
6704   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6705   then
6706    llvm_cv_gnu_make_command=$a ;
6707    break;
6708   fi
6709  done
6710 fi
6711 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6712 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6713  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6714    ifGNUmake='' ;
6715  else
6716    ifGNUmake='#' ;
6717    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6718 echo "${ECHO_T}\"Not found\"" >&6; };
6719  fi
6720
6721
6722 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6723 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6724 LN_S=$as_ln_s
6725 if test "$LN_S" = "ln -s"; then
6726   { echo "$as_me:$LINENO: result: yes" >&5
6727 echo "${ECHO_T}yes" >&6; }
6728 else
6729   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6730 echo "${ECHO_T}no, using $LN_S" >&6; }
6731 fi
6732
6733 # Extract the first word of "cmp", so it can be a program name with args.
6734 set dummy cmp; ac_word=$2
6735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6737 if test "${ac_cv_path_CMP+set}" = set; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   case $CMP in
6741   [\\/]* | ?:[\\/]*)
6742   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6743   ;;
6744   *)
6745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748   IFS=$as_save_IFS
6749   test -z "$as_dir" && as_dir=.
6750   for ac_exec_ext in '' $ac_executable_extensions; do
6751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6752     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754     break 2
6755   fi
6756 done
6757 done
6758 IFS=$as_save_IFS
6759
6760   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6761   ;;
6762 esac
6763 fi
6764 CMP=$ac_cv_path_CMP
6765 if test -n "$CMP"; then
6766   { echo "$as_me:$LINENO: result: $CMP" >&5
6767 echo "${ECHO_T}$CMP" >&6; }
6768 else
6769   { echo "$as_me:$LINENO: result: no" >&5
6770 echo "${ECHO_T}no" >&6; }
6771 fi
6772
6773
6774 # Extract the first word of "cp", so it can be a program name with args.
6775 set dummy cp; ac_word=$2
6776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6778 if test "${ac_cv_path_CP+set}" = set; then
6779   echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781   case $CP in
6782   [\\/]* | ?:[\\/]*)
6783   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6784   ;;
6785   *)
6786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH
6788 do
6789   IFS=$as_save_IFS
6790   test -z "$as_dir" && as_dir=.
6791   for ac_exec_ext in '' $ac_executable_extensions; do
6792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6793     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795     break 2
6796   fi
6797 done
6798 done
6799 IFS=$as_save_IFS
6800
6801   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6802   ;;
6803 esac
6804 fi
6805 CP=$ac_cv_path_CP
6806 if test -n "$CP"; then
6807   { echo "$as_me:$LINENO: result: $CP" >&5
6808 echo "${ECHO_T}$CP" >&6; }
6809 else
6810   { echo "$as_me:$LINENO: result: no" >&5
6811 echo "${ECHO_T}no" >&6; }
6812 fi
6813
6814
6815 # Extract the first word of "date", so it can be a program name with args.
6816 set dummy date; ac_word=$2
6817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6819 if test "${ac_cv_path_DATE+set}" = set; then
6820   echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822   case $DATE in
6823   [\\/]* | ?:[\\/]*)
6824   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6825   ;;
6826   *)
6827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830   IFS=$as_save_IFS
6831   test -z "$as_dir" && as_dir=.
6832   for ac_exec_ext in '' $ac_executable_extensions; do
6833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6834     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836     break 2
6837   fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6841
6842   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6843   ;;
6844 esac
6845 fi
6846 DATE=$ac_cv_path_DATE
6847 if test -n "$DATE"; then
6848   { echo "$as_me:$LINENO: result: $DATE" >&5
6849 echo "${ECHO_T}$DATE" >&6; }
6850 else
6851   { echo "$as_me:$LINENO: result: no" >&5
6852 echo "${ECHO_T}no" >&6; }
6853 fi
6854
6855
6856 # Extract the first word of "find", so it can be a program name with args.
6857 set dummy find; ac_word=$2
6858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6860 if test "${ac_cv_path_FIND+set}" = set; then
6861   echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863   case $FIND in
6864   [\\/]* | ?:[\\/]*)
6865   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6866   ;;
6867   *)
6868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6870 do
6871   IFS=$as_save_IFS
6872   test -z "$as_dir" && as_dir=.
6873   for ac_exec_ext in '' $ac_executable_extensions; do
6874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6875     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6877     break 2
6878   fi
6879 done
6880 done
6881 IFS=$as_save_IFS
6882
6883   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6884   ;;
6885 esac
6886 fi
6887 FIND=$ac_cv_path_FIND
6888 if test -n "$FIND"; then
6889   { echo "$as_me:$LINENO: result: $FIND" >&5
6890 echo "${ECHO_T}$FIND" >&6; }
6891 else
6892   { echo "$as_me:$LINENO: result: no" >&5
6893 echo "${ECHO_T}no" >&6; }
6894 fi
6895
6896
6897 # Extract the first word of "grep", so it can be a program name with args.
6898 set dummy grep; ac_word=$2
6899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6901 if test "${ac_cv_path_GREP+set}" = set; then
6902   echo $ECHO_N "(cached) $ECHO_C" >&6
6903 else
6904   case $GREP in
6905   [\\/]* | ?:[\\/]*)
6906   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6907   ;;
6908   *)
6909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6911 do
6912   IFS=$as_save_IFS
6913   test -z "$as_dir" && as_dir=.
6914   for ac_exec_ext in '' $ac_executable_extensions; do
6915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6916     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918     break 2
6919   fi
6920 done
6921 done
6922 IFS=$as_save_IFS
6923
6924   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6925   ;;
6926 esac
6927 fi
6928 GREP=$ac_cv_path_GREP
6929 if test -n "$GREP"; then
6930   { echo "$as_me:$LINENO: result: $GREP" >&5
6931 echo "${ECHO_T}$GREP" >&6; }
6932 else
6933   { echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6; }
6935 fi
6936
6937
6938 # Extract the first word of "mkdir", so it can be a program name with args.
6939 set dummy mkdir; ac_word=$2
6940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6942 if test "${ac_cv_path_MKDIR+set}" = set; then
6943   echo $ECHO_N "(cached) $ECHO_C" >&6
6944 else
6945   case $MKDIR in
6946   [\\/]* | ?:[\\/]*)
6947   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6948   ;;
6949   *)
6950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6952 do
6953   IFS=$as_save_IFS
6954   test -z "$as_dir" && as_dir=.
6955   for ac_exec_ext in '' $ac_executable_extensions; do
6956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6957     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6959     break 2
6960   fi
6961 done
6962 done
6963 IFS=$as_save_IFS
6964
6965   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6966   ;;
6967 esac
6968 fi
6969 MKDIR=$ac_cv_path_MKDIR
6970 if test -n "$MKDIR"; then
6971   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6972 echo "${ECHO_T}$MKDIR" >&6; }
6973 else
6974   { echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6; }
6976 fi
6977
6978
6979 # Extract the first word of "mv", so it can be a program name with args.
6980 set dummy mv; ac_word=$2
6981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6983 if test "${ac_cv_path_MV+set}" = set; then
6984   echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986   case $MV in
6987   [\\/]* | ?:[\\/]*)
6988   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6989   ;;
6990   *)
6991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH
6993 do
6994   IFS=$as_save_IFS
6995   test -z "$as_dir" && as_dir=.
6996   for ac_exec_ext in '' $ac_executable_extensions; do
6997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6998     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7000     break 2
7001   fi
7002 done
7003 done
7004 IFS=$as_save_IFS
7005
7006   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7007   ;;
7008 esac
7009 fi
7010 MV=$ac_cv_path_MV
7011 if test -n "$MV"; then
7012   { echo "$as_me:$LINENO: result: $MV" >&5
7013 echo "${ECHO_T}$MV" >&6; }
7014 else
7015   { echo "$as_me:$LINENO: result: no" >&5
7016 echo "${ECHO_T}no" >&6; }
7017 fi
7018
7019
7020 if test -n "$ac_tool_prefix"; then
7021   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7022 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7025 if test "${ac_cv_prog_RANLIB+set}" = set; then
7026   echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028   if test -n "$RANLIB"; then
7029   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7030 else
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7033 do
7034   IFS=$as_save_IFS
7035   test -z "$as_dir" && as_dir=.
7036   for ac_exec_ext in '' $ac_executable_extensions; do
7037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7038     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7040     break 2
7041   fi
7042 done
7043 done
7044 IFS=$as_save_IFS
7045
7046 fi
7047 fi
7048 RANLIB=$ac_cv_prog_RANLIB
7049 if test -n "$RANLIB"; then
7050   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7051 echo "${ECHO_T}$RANLIB" >&6; }
7052 else
7053   { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7055 fi
7056
7057
7058 fi
7059 if test -z "$ac_cv_prog_RANLIB"; then
7060   ac_ct_RANLIB=$RANLIB
7061   # Extract the first word of "ranlib", so it can be a program name with args.
7062 set dummy ranlib; ac_word=$2
7063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7065 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7066   echo $ECHO_N "(cached) $ECHO_C" >&6
7067 else
7068   if test -n "$ac_ct_RANLIB"; then
7069   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7070 else
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7073 do
7074   IFS=$as_save_IFS
7075   test -z "$as_dir" && as_dir=.
7076   for ac_exec_ext in '' $ac_executable_extensions; do
7077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7078     ac_cv_prog_ac_ct_RANLIB="ranlib"
7079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080     break 2
7081   fi
7082 done
7083 done
7084 IFS=$as_save_IFS
7085
7086 fi
7087 fi
7088 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7089 if test -n "$ac_ct_RANLIB"; then
7090   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7091 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7092 else
7093   { echo "$as_me:$LINENO: result: no" >&5
7094 echo "${ECHO_T}no" >&6; }
7095 fi
7096
7097   if test "x$ac_ct_RANLIB" = x; then
7098     RANLIB=":"
7099   else
7100     case $cross_compiling:$ac_tool_warned in
7101 yes:)
7102 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7103 whose name does not start with the host triplet.  If you think this
7104 configuration is useful to you, please write to autoconf@gnu.org." >&5
7105 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7106 whose name does not start with the host triplet.  If you think this
7107 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7108 ac_tool_warned=yes ;;
7109 esac
7110     RANLIB=$ac_ct_RANLIB
7111   fi
7112 else
7113   RANLIB="$ac_cv_prog_RANLIB"
7114 fi
7115
7116 if test -n "$ac_tool_prefix"; then
7117   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7118 set dummy ${ac_tool_prefix}ar; ac_word=$2
7119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121 if test "${ac_cv_prog_AR+set}" = set; then
7122   echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124   if test -n "$AR"; then
7125   ac_cv_prog_AR="$AR" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130   IFS=$as_save_IFS
7131   test -z "$as_dir" && as_dir=.
7132   for ac_exec_ext in '' $ac_executable_extensions; do
7133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7134     ac_cv_prog_AR="${ac_tool_prefix}ar"
7135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136     break 2
7137   fi
7138 done
7139 done
7140 IFS=$as_save_IFS
7141
7142 fi
7143 fi
7144 AR=$ac_cv_prog_AR
7145 if test -n "$AR"; then
7146   { echo "$as_me:$LINENO: result: $AR" >&5
7147 echo "${ECHO_T}$AR" >&6; }
7148 else
7149   { echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6; }
7151 fi
7152
7153
7154 fi
7155 if test -z "$ac_cv_prog_AR"; then
7156   ac_ct_AR=$AR
7157   # Extract the first word of "ar", so it can be a program name with args.
7158 set dummy ar; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7162   echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164   if test -n "$ac_ct_AR"; then
7165   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7169 do
7170   IFS=$as_save_IFS
7171   test -z "$as_dir" && as_dir=.
7172   for ac_exec_ext in '' $ac_executable_extensions; do
7173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7174     ac_cv_prog_ac_ct_AR="ar"
7175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7176     break 2
7177   fi
7178 done
7179 done
7180 IFS=$as_save_IFS
7181
7182 fi
7183 fi
7184 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7185 if test -n "$ac_ct_AR"; then
7186   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7187 echo "${ECHO_T}$ac_ct_AR" >&6; }
7188 else
7189   { echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6; }
7191 fi
7192
7193   if test "x$ac_ct_AR" = x; then
7194     AR="false"
7195   else
7196     case $cross_compiling:$ac_tool_warned in
7197 yes:)
7198 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7199 whose name does not start with the host triplet.  If you think this
7200 configuration is useful to you, please write to autoconf@gnu.org." >&5
7201 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7202 whose name does not start with the host triplet.  If you think this
7203 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7204 ac_tool_warned=yes ;;
7205 esac
7206     AR=$ac_ct_AR
7207   fi
7208 else
7209   AR="$ac_cv_prog_AR"
7210 fi
7211
7212 # Extract the first word of "rm", so it can be a program name with args.
7213 set dummy rm; ac_word=$2
7214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7216 if test "${ac_cv_path_RM+set}" = set; then
7217   echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219   case $RM in
7220   [\\/]* | ?:[\\/]*)
7221   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7222   ;;
7223   *)
7224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 for as_dir in $PATH
7226 do
7227   IFS=$as_save_IFS
7228   test -z "$as_dir" && as_dir=.
7229   for ac_exec_ext in '' $ac_executable_extensions; do
7230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7231     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233     break 2
7234   fi
7235 done
7236 done
7237 IFS=$as_save_IFS
7238
7239   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7240   ;;
7241 esac
7242 fi
7243 RM=$ac_cv_path_RM
7244 if test -n "$RM"; then
7245   { echo "$as_me:$LINENO: result: $RM" >&5
7246 echo "${ECHO_T}$RM" >&6; }
7247 else
7248   { echo "$as_me:$LINENO: result: no" >&5
7249 echo "${ECHO_T}no" >&6; }
7250 fi
7251
7252
7253 # Extract the first word of "sed", so it can be a program name with args.
7254 set dummy sed; ac_word=$2
7255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7257 if test "${ac_cv_path_SED+set}" = set; then
7258   echo $ECHO_N "(cached) $ECHO_C" >&6
7259 else
7260   case $SED in
7261   [\\/]* | ?:[\\/]*)
7262   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7263   ;;
7264   *)
7265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7267 do
7268   IFS=$as_save_IFS
7269   test -z "$as_dir" && as_dir=.
7270   for ac_exec_ext in '' $ac_executable_extensions; do
7271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7272     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274     break 2
7275   fi
7276 done
7277 done
7278 IFS=$as_save_IFS
7279
7280   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7281   ;;
7282 esac
7283 fi
7284 SED=$ac_cv_path_SED
7285 if test -n "$SED"; then
7286   { echo "$as_me:$LINENO: result: $SED" >&5
7287 echo "${ECHO_T}$SED" >&6; }
7288 else
7289   { echo "$as_me:$LINENO: result: no" >&5
7290 echo "${ECHO_T}no" >&6; }
7291 fi
7292
7293
7294 # Extract the first word of "tar", so it can be a program name with args.
7295 set dummy tar; ac_word=$2
7296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7298 if test "${ac_cv_path_TAR+set}" = set; then
7299   echo $ECHO_N "(cached) $ECHO_C" >&6
7300 else
7301   case $TAR in
7302   [\\/]* | ?:[\\/]*)
7303   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7304   ;;
7305   *)
7306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 for as_dir in $PATH
7308 do
7309   IFS=$as_save_IFS
7310   test -z "$as_dir" && as_dir=.
7311   for ac_exec_ext in '' $ac_executable_extensions; do
7312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7313     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315     break 2
7316   fi
7317 done
7318 done
7319 IFS=$as_save_IFS
7320
7321   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7322   ;;
7323 esac
7324 fi
7325 TAR=$ac_cv_path_TAR
7326 if test -n "$TAR"; then
7327   { echo "$as_me:$LINENO: result: $TAR" >&5
7328 echo "${ECHO_T}$TAR" >&6; }
7329 else
7330   { echo "$as_me:$LINENO: result: no" >&5
7331 echo "${ECHO_T}no" >&6; }
7332 fi
7333
7334
7335 # Extract the first word of "pwd", so it can be a program name with args.
7336 set dummy pwd; ac_word=$2
7337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7339 if test "${ac_cv_path_BINPWD+set}" = set; then
7340   echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342   case $BINPWD in
7343   [\\/]* | ?:[\\/]*)
7344   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7345   ;;
7346   *)
7347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH
7349 do
7350   IFS=$as_save_IFS
7351   test -z "$as_dir" && as_dir=.
7352   for ac_exec_ext in '' $ac_executable_extensions; do
7353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7354     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356     break 2
7357   fi
7358 done
7359 done
7360 IFS=$as_save_IFS
7361
7362   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7363   ;;
7364 esac
7365 fi
7366 BINPWD=$ac_cv_path_BINPWD
7367 if test -n "$BINPWD"; then
7368   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7369 echo "${ECHO_T}$BINPWD" >&6; }
7370 else
7371   { echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6; }
7373 fi
7374
7375
7376
7377 # Extract the first word of "Graphviz", so it can be a program name with args.
7378 set dummy Graphviz; ac_word=$2
7379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7382   echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384   case $GRAPHVIZ in
7385   [\\/]* | ?:[\\/]*)
7386   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7387   ;;
7388   *)
7389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $PATH
7391 do
7392   IFS=$as_save_IFS
7393   test -z "$as_dir" && as_dir=.
7394   for ac_exec_ext in '' $ac_executable_extensions; do
7395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7396     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398     break 2
7399   fi
7400 done
7401 done
7402 IFS=$as_save_IFS
7403
7404   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7405   ;;
7406 esac
7407 fi
7408 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7409 if test -n "$GRAPHVIZ"; then
7410   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7411 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7412 else
7413   { echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6; }
7415 fi
7416
7417
7418 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7419
7420 cat >>confdefs.h <<\_ACEOF
7421 #define HAVE_GRAPHVIZ 1
7422 _ACEOF
7423
7424     if test "$llvm_cv_os_type" = "MingW" ; then
7425     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7426   fi
7427
7428 cat >>confdefs.h <<_ACEOF
7429 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7430 _ACEOF
7431
7432 fi
7433 # Extract the first word of "dot", so it can be a program name with args.
7434 set dummy dot; ac_word=$2
7435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437 if test "${ac_cv_path_DOT+set}" = set; then
7438   echo $ECHO_N "(cached) $ECHO_C" >&6
7439 else
7440   case $DOT in
7441   [\\/]* | ?:[\\/]*)
7442   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7443   ;;
7444   *)
7445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH
7447 do
7448   IFS=$as_save_IFS
7449   test -z "$as_dir" && as_dir=.
7450   for ac_exec_ext in '' $ac_executable_extensions; do
7451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7452     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7454     break 2
7455   fi
7456 done
7457 done
7458 IFS=$as_save_IFS
7459
7460   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7461   ;;
7462 esac
7463 fi
7464 DOT=$ac_cv_path_DOT
7465 if test -n "$DOT"; then
7466   { echo "$as_me:$LINENO: result: $DOT" >&5
7467 echo "${ECHO_T}$DOT" >&6; }
7468 else
7469   { echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6; }
7471 fi
7472
7473
7474 if test "$DOT" != "echo dot" ; then
7475
7476 cat >>confdefs.h <<\_ACEOF
7477 #define HAVE_DOT 1
7478 _ACEOF
7479
7480     if test "$llvm_cv_os_type" = "MingW" ; then
7481     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7482   fi
7483
7484 cat >>confdefs.h <<_ACEOF
7485 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7486 _ACEOF
7487
7488 fi
7489 # Extract the first word of "fdp", so it can be a program name with args.
7490 set dummy fdp; ac_word=$2
7491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7493 if test "${ac_cv_path_FDP+set}" = set; then
7494   echo $ECHO_N "(cached) $ECHO_C" >&6
7495 else
7496   case $FDP in
7497   [\\/]* | ?:[\\/]*)
7498   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7499   ;;
7500   *)
7501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7503 do
7504   IFS=$as_save_IFS
7505   test -z "$as_dir" && as_dir=.
7506   for ac_exec_ext in '' $ac_executable_extensions; do
7507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7508     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7510     break 2
7511   fi
7512 done
7513 done
7514 IFS=$as_save_IFS
7515
7516   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7517   ;;
7518 esac
7519 fi
7520 FDP=$ac_cv_path_FDP
7521 if test -n "$FDP"; then
7522   { echo "$as_me:$LINENO: result: $FDP" >&5
7523 echo "${ECHO_T}$FDP" >&6; }
7524 else
7525   { echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6; }
7527 fi
7528
7529
7530 if test "$FDP" != "echo fdp" ; then
7531
7532 cat >>confdefs.h <<\_ACEOF
7533 #define HAVE_FDP 1
7534 _ACEOF
7535
7536     if test "$llvm_cv_os_type" = "MingW" ; then
7537     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7538   fi
7539
7540 cat >>confdefs.h <<_ACEOF
7541 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7542 _ACEOF
7543
7544 fi
7545 # Extract the first word of "neato", so it can be a program name with args.
7546 set dummy neato; ac_word=$2
7547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549 if test "${ac_cv_path_NEATO+set}" = set; then
7550   echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552   case $NEATO in
7553   [\\/]* | ?:[\\/]*)
7554   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7555   ;;
7556   *)
7557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7559 do
7560   IFS=$as_save_IFS
7561   test -z "$as_dir" && as_dir=.
7562   for ac_exec_ext in '' $ac_executable_extensions; do
7563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7564     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566     break 2
7567   fi
7568 done
7569 done
7570 IFS=$as_save_IFS
7571
7572   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7573   ;;
7574 esac
7575 fi
7576 NEATO=$ac_cv_path_NEATO
7577 if test -n "$NEATO"; then
7578   { echo "$as_me:$LINENO: result: $NEATO" >&5
7579 echo "${ECHO_T}$NEATO" >&6; }
7580 else
7581   { echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6; }
7583 fi
7584
7585
7586 if test "$NEATO" != "echo neato" ; then
7587
7588 cat >>confdefs.h <<\_ACEOF
7589 #define HAVE_NEATO 1
7590 _ACEOF
7591
7592     if test "$llvm_cv_os_type" = "MingW" ; then
7593     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7594   fi
7595
7596 cat >>confdefs.h <<_ACEOF
7597 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7598 _ACEOF
7599
7600 fi
7601 # Extract the first word of "twopi", so it can be a program name with args.
7602 set dummy twopi; ac_word=$2
7603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7605 if test "${ac_cv_path_TWOPI+set}" = set; then
7606   echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608   case $TWOPI in
7609   [\\/]* | ?:[\\/]*)
7610   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7611   ;;
7612   *)
7613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7615 do
7616   IFS=$as_save_IFS
7617   test -z "$as_dir" && as_dir=.
7618   for ac_exec_ext in '' $ac_executable_extensions; do
7619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7620     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7622     break 2
7623   fi
7624 done
7625 done
7626 IFS=$as_save_IFS
7627
7628   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7629   ;;
7630 esac
7631 fi
7632 TWOPI=$ac_cv_path_TWOPI
7633 if test -n "$TWOPI"; then
7634   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7635 echo "${ECHO_T}$TWOPI" >&6; }
7636 else
7637   { echo "$as_me:$LINENO: result: no" >&5
7638 echo "${ECHO_T}no" >&6; }
7639 fi
7640
7641
7642 if test "$TWOPI" != "echo twopi" ; then
7643
7644 cat >>confdefs.h <<\_ACEOF
7645 #define HAVE_TWOPI 1
7646 _ACEOF
7647
7648     if test "$llvm_cv_os_type" = "MingW" ; then
7649     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7650   fi
7651
7652 cat >>confdefs.h <<_ACEOF
7653 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7654 _ACEOF
7655
7656 fi
7657 # Extract the first word of "circo", so it can be a program name with args.
7658 set dummy circo; ac_word=$2
7659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7661 if test "${ac_cv_path_CIRCO+set}" = set; then
7662   echo $ECHO_N "(cached) $ECHO_C" >&6
7663 else
7664   case $CIRCO in
7665   [\\/]* | ?:[\\/]*)
7666   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7667   ;;
7668   *)
7669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 for as_dir in $PATH
7671 do
7672   IFS=$as_save_IFS
7673   test -z "$as_dir" && as_dir=.
7674   for ac_exec_ext in '' $ac_executable_extensions; do
7675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7676     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7678     break 2
7679   fi
7680 done
7681 done
7682 IFS=$as_save_IFS
7683
7684   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7685   ;;
7686 esac
7687 fi
7688 CIRCO=$ac_cv_path_CIRCO
7689 if test -n "$CIRCO"; then
7690   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7691 echo "${ECHO_T}$CIRCO" >&6; }
7692 else
7693   { echo "$as_me:$LINENO: result: no" >&5
7694 echo "${ECHO_T}no" >&6; }
7695 fi
7696
7697
7698 if test "$CIRCO" != "echo circo" ; then
7699
7700 cat >>confdefs.h <<\_ACEOF
7701 #define HAVE_CIRCO 1
7702 _ACEOF
7703
7704     if test "$llvm_cv_os_type" = "MingW" ; then
7705     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7706   fi
7707
7708 cat >>confdefs.h <<_ACEOF
7709 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7710 _ACEOF
7711
7712 fi
7713 for ac_prog in gv gsview32
7714 do
7715   # Extract the first word of "$ac_prog", so it can be a program name with args.
7716 set dummy $ac_prog; ac_word=$2
7717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7719 if test "${ac_cv_path_GV+set}" = set; then
7720   echo $ECHO_N "(cached) $ECHO_C" >&6
7721 else
7722   case $GV in
7723   [\\/]* | ?:[\\/]*)
7724   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7725   ;;
7726   *)
7727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730   IFS=$as_save_IFS
7731   test -z "$as_dir" && as_dir=.
7732   for ac_exec_ext in '' $ac_executable_extensions; do
7733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7734     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7736     break 2
7737   fi
7738 done
7739 done
7740 IFS=$as_save_IFS
7741
7742   ;;
7743 esac
7744 fi
7745 GV=$ac_cv_path_GV
7746 if test -n "$GV"; then
7747   { echo "$as_me:$LINENO: result: $GV" >&5
7748 echo "${ECHO_T}$GV" >&6; }
7749 else
7750   { echo "$as_me:$LINENO: result: no" >&5
7751 echo "${ECHO_T}no" >&6; }
7752 fi
7753
7754
7755   test -n "$GV" && break
7756 done
7757 test -n "$GV" || GV="echo gv"
7758
7759 if test "$GV" != "echo gv" ; then
7760
7761 cat >>confdefs.h <<\_ACEOF
7762 #define HAVE_GV 1
7763 _ACEOF
7764
7765     if test "$llvm_cv_os_type" = "MingW" ; then
7766     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7767   fi
7768
7769 cat >>confdefs.h <<_ACEOF
7770 #define LLVM_PATH_GV "$GV${EXEEXT}"
7771 _ACEOF
7772
7773 fi
7774 # Extract the first word of "dotty", so it can be a program name with args.
7775 set dummy dotty; ac_word=$2
7776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7778 if test "${ac_cv_path_DOTTY+set}" = set; then
7779   echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781   case $DOTTY in
7782   [\\/]* | ?:[\\/]*)
7783   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7784   ;;
7785   *)
7786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787 for as_dir in $PATH
7788 do
7789   IFS=$as_save_IFS
7790   test -z "$as_dir" && as_dir=.
7791   for ac_exec_ext in '' $ac_executable_extensions; do
7792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7793     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7795     break 2
7796   fi
7797 done
7798 done
7799 IFS=$as_save_IFS
7800
7801   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7802   ;;
7803 esac
7804 fi
7805 DOTTY=$ac_cv_path_DOTTY
7806 if test -n "$DOTTY"; then
7807   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7808 echo "${ECHO_T}$DOTTY" >&6; }
7809 else
7810   { echo "$as_me:$LINENO: result: no" >&5
7811 echo "${ECHO_T}no" >&6; }
7812 fi
7813
7814
7815 if test "$DOTTY" != "echo dotty" ; then
7816
7817 cat >>confdefs.h <<\_ACEOF
7818 #define HAVE_DOTTY 1
7819 _ACEOF
7820
7821     if test "$llvm_cv_os_type" = "MingW" ; then
7822     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7823   fi
7824
7825 cat >>confdefs.h <<_ACEOF
7826 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7827 _ACEOF
7828
7829 fi
7830
7831
7832 # Extract the first word of "perl", so it can be a program name with args.
7833 set dummy perl; ac_word=$2
7834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7836 if test "${ac_cv_path_PERL+set}" = set; then
7837   echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839   case $PERL in
7840   [\\/]* | ?:[\\/]*)
7841   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7842   ;;
7843   *)
7844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 for as_dir in $PATH
7846 do
7847   IFS=$as_save_IFS
7848   test -z "$as_dir" && as_dir=.
7849   for ac_exec_ext in '' $ac_executable_extensions; do
7850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7851     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853     break 2
7854   fi
7855 done
7856 done
7857 IFS=$as_save_IFS
7858
7859   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7860   ;;
7861 esac
7862 fi
7863 PERL=$ac_cv_path_PERL
7864 if test -n "$PERL"; then
7865   { echo "$as_me:$LINENO: result: $PERL" >&5
7866 echo "${ECHO_T}$PERL" >&6; }
7867 else
7868   { echo "$as_me:$LINENO: result: no" >&5
7869 echo "${ECHO_T}no" >&6; }
7870 fi
7871
7872
7873 if test "$PERL" != "none"; then
7874   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7875 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7876   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7877     { echo "$as_me:$LINENO: result: yes" >&5
7878 echo "${ECHO_T}yes" >&6; }
7879   else
7880     PERL=none
7881     { echo "$as_me:$LINENO: result: not found" >&5
7882 echo "${ECHO_T}not found" >&6; }
7883   fi
7884 fi
7885
7886
7887 if test x"$PERL" = xnone; then
7888    HAVE_PERL=0
7889
7890    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7891 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7892    { (exit 1); exit 1; }; }
7893 else
7894    HAVE_PERL=1
7895
7896 fi
7897
7898 # Find a good install program.  We prefer a C program (faster),
7899 # so one script is as good as another.  But avoid the broken or
7900 # incompatible versions:
7901 # SysV /etc/install, /usr/sbin/install
7902 # SunOS /usr/etc/install
7903 # IRIX /sbin/install
7904 # AIX /bin/install
7905 # AmigaOS /C/install, which installs bootblocks on floppy discs
7906 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7907 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7908 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7909 # OS/2's system install, which has a completely different semantic
7910 # ./install, which can be erroneously created by make from ./install.sh.
7911 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7912 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7913 if test -z "$INSTALL"; then
7914 if test "${ac_cv_path_install+set}" = set; then
7915   echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 for as_dir in $PATH
7919 do
7920   IFS=$as_save_IFS
7921   test -z "$as_dir" && as_dir=.
7922   # Account for people who put trailing slashes in PATH elements.
7923 case $as_dir/ in
7924   ./ | .// | /cC/* | \
7925   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7926   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7927   /usr/ucb/* ) ;;
7928   *)
7929     # OSF1 and SCO ODT 3.0 have their own names for install.
7930     # Don't use installbsd from OSF since it installs stuff as root
7931     # by default.
7932     for ac_prog in ginstall scoinst install; do
7933       for ac_exec_ext in '' $ac_executable_extensions; do
7934         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7935           if test $ac_prog = install &&
7936             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7937             # AIX install.  It has an incompatible calling convention.
7938             :
7939           elif test $ac_prog = install &&
7940             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7941             # program-specific install script used by HP pwplus--don't use.
7942             :
7943           else
7944             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7945             break 3
7946           fi
7947         fi
7948       done
7949     done
7950     ;;
7951 esac
7952 done
7953 IFS=$as_save_IFS
7954
7955
7956 fi
7957   if test "${ac_cv_path_install+set}" = set; then
7958     INSTALL=$ac_cv_path_install
7959   else
7960     # As a last resort, use the slow shell script.  Don't cache a
7961     # value for INSTALL within a source directory, because that will
7962     # break other packages using the cache if that directory is
7963     # removed, or if the value is a relative name.
7964     INSTALL=$ac_install_sh
7965   fi
7966 fi
7967 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7968 echo "${ECHO_T}$INSTALL" >&6; }
7969
7970 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7971 # It thinks the first close brace ends the variable substitution.
7972 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7973
7974 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7975
7976 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7977
7978
7979 # Extract the first word of "bzip2", so it can be a program name with args.
7980 set dummy bzip2; ac_word=$2
7981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7983 if test "${ac_cv_path_BZIP2+set}" = set; then
7984   echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986   case $BZIP2 in
7987   [\\/]* | ?:[\\/]*)
7988   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7989   ;;
7990   *)
7991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7993 do
7994   IFS=$as_save_IFS
7995   test -z "$as_dir" && as_dir=.
7996   for ac_exec_ext in '' $ac_executable_extensions; do
7997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7998     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8000     break 2
8001   fi
8002 done
8003 done
8004 IFS=$as_save_IFS
8005
8006   ;;
8007 esac
8008 fi
8009 BZIP2=$ac_cv_path_BZIP2
8010 if test -n "$BZIP2"; then
8011   { echo "$as_me:$LINENO: result: $BZIP2" >&5
8012 echo "${ECHO_T}$BZIP2" >&6; }
8013 else
8014   { echo "$as_me:$LINENO: result: no" >&5
8015 echo "${ECHO_T}no" >&6; }
8016 fi
8017
8018
8019 # Extract the first word of "doxygen", so it can be a program name with args.
8020 set dummy doxygen; ac_word=$2
8021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8023 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8024   echo $ECHO_N "(cached) $ECHO_C" >&6
8025 else
8026   case $DOXYGEN in
8027   [\\/]* | ?:[\\/]*)
8028   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8029   ;;
8030   *)
8031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 for as_dir in $PATH
8033 do
8034   IFS=$as_save_IFS
8035   test -z "$as_dir" && as_dir=.
8036   for ac_exec_ext in '' $ac_executable_extensions; do
8037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8038     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8040     break 2
8041   fi
8042 done
8043 done
8044 IFS=$as_save_IFS
8045
8046   ;;
8047 esac
8048 fi
8049 DOXYGEN=$ac_cv_path_DOXYGEN
8050 if test -n "$DOXYGEN"; then
8051   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8052 echo "${ECHO_T}$DOXYGEN" >&6; }
8053 else
8054   { echo "$as_me:$LINENO: result: no" >&5
8055 echo "${ECHO_T}no" >&6; }
8056 fi
8057
8058
8059 # Extract the first word of "groff", so it can be a program name with args.
8060 set dummy groff; ac_word=$2
8061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8063 if test "${ac_cv_path_GROFF+set}" = set; then
8064   echo $ECHO_N "(cached) $ECHO_C" >&6
8065 else
8066   case $GROFF in
8067   [\\/]* | ?:[\\/]*)
8068   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8069   ;;
8070   *)
8071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072 for as_dir in $PATH
8073 do
8074   IFS=$as_save_IFS
8075   test -z "$as_dir" && as_dir=.
8076   for ac_exec_ext in '' $ac_executable_extensions; do
8077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8078     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8080     break 2
8081   fi
8082 done
8083 done
8084 IFS=$as_save_IFS
8085
8086   ;;
8087 esac
8088 fi
8089 GROFF=$ac_cv_path_GROFF
8090 if test -n "$GROFF"; then
8091   { echo "$as_me:$LINENO: result: $GROFF" >&5
8092 echo "${ECHO_T}$GROFF" >&6; }
8093 else
8094   { echo "$as_me:$LINENO: result: no" >&5
8095 echo "${ECHO_T}no" >&6; }
8096 fi
8097
8098
8099 # Extract the first word of "gzip", so it can be a program name with args.
8100 set dummy gzip; ac_word=$2
8101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8103 if test "${ac_cv_path_GZIP+set}" = set; then
8104   echo $ECHO_N "(cached) $ECHO_C" >&6
8105 else
8106   case $GZIP in
8107   [\\/]* | ?:[\\/]*)
8108   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8109   ;;
8110   *)
8111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112 for as_dir in $PATH
8113 do
8114   IFS=$as_save_IFS
8115   test -z "$as_dir" && as_dir=.
8116   for ac_exec_ext in '' $ac_executable_extensions; do
8117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8118     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8120     break 2
8121   fi
8122 done
8123 done
8124 IFS=$as_save_IFS
8125
8126   ;;
8127 esac
8128 fi
8129 GZIP=$ac_cv_path_GZIP
8130 if test -n "$GZIP"; then
8131   { echo "$as_me:$LINENO: result: $GZIP" >&5
8132 echo "${ECHO_T}$GZIP" >&6; }
8133 else
8134   { echo "$as_me:$LINENO: result: no" >&5
8135 echo "${ECHO_T}no" >&6; }
8136 fi
8137
8138
8139 # Extract the first word of "pod2html", so it can be a program name with args.
8140 set dummy pod2html; ac_word=$2
8141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8143 if test "${ac_cv_path_POD2HTML+set}" = set; then
8144   echo $ECHO_N "(cached) $ECHO_C" >&6
8145 else
8146   case $POD2HTML in
8147   [\\/]* | ?:[\\/]*)
8148   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8149   ;;
8150   *)
8151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 for as_dir in $PATH
8153 do
8154   IFS=$as_save_IFS
8155   test -z "$as_dir" && as_dir=.
8156   for ac_exec_ext in '' $ac_executable_extensions; do
8157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8158     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8160     break 2
8161   fi
8162 done
8163 done
8164 IFS=$as_save_IFS
8165
8166   ;;
8167 esac
8168 fi
8169 POD2HTML=$ac_cv_path_POD2HTML
8170 if test -n "$POD2HTML"; then
8171   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8172 echo "${ECHO_T}$POD2HTML" >&6; }
8173 else
8174   { echo "$as_me:$LINENO: result: no" >&5
8175 echo "${ECHO_T}no" >&6; }
8176 fi
8177
8178
8179 # Extract the first word of "pod2man", so it can be a program name with args.
8180 set dummy pod2man; ac_word=$2
8181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8183 if test "${ac_cv_path_POD2MAN+set}" = set; then
8184   echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186   case $POD2MAN in
8187   [\\/]* | ?:[\\/]*)
8188   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8189   ;;
8190   *)
8191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192 for as_dir in $PATH
8193 do
8194   IFS=$as_save_IFS
8195   test -z "$as_dir" && as_dir=.
8196   for ac_exec_ext in '' $ac_executable_extensions; do
8197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8198     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8200     break 2
8201   fi
8202 done
8203 done
8204 IFS=$as_save_IFS
8205
8206   ;;
8207 esac
8208 fi
8209 POD2MAN=$ac_cv_path_POD2MAN
8210 if test -n "$POD2MAN"; then
8211   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8212 echo "${ECHO_T}$POD2MAN" >&6; }
8213 else
8214   { echo "$as_me:$LINENO: result: no" >&5
8215 echo "${ECHO_T}no" >&6; }
8216 fi
8217
8218
8219 # Extract the first word of "runtest", so it can be a program name with args.
8220 set dummy runtest; ac_word=$2
8221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8223 if test "${ac_cv_path_RUNTEST+set}" = set; then
8224   echo $ECHO_N "(cached) $ECHO_C" >&6
8225 else
8226   case $RUNTEST in
8227   [\\/]* | ?:[\\/]*)
8228   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8229   ;;
8230   *)
8231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232 for as_dir in $PATH
8233 do
8234   IFS=$as_save_IFS
8235   test -z "$as_dir" && as_dir=.
8236   for ac_exec_ext in '' $ac_executable_extensions; do
8237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8238     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8240     break 2
8241   fi
8242 done
8243 done
8244 IFS=$as_save_IFS
8245
8246   ;;
8247 esac
8248 fi
8249 RUNTEST=$ac_cv_path_RUNTEST
8250 if test -n "$RUNTEST"; then
8251   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8252 echo "${ECHO_T}$RUNTEST" >&6; }
8253 else
8254   { echo "$as_me:$LINENO: result: no" >&5
8255 echo "${ECHO_T}no" >&6; }
8256 fi
8257
8258
8259
8260 no_itcl=true
8261 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8262 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8263
8264 # Check whether --with-tclinclude was given.
8265 if test "${with_tclinclude+set}" = set; then
8266   withval=$with_tclinclude; with_tclinclude=${withval}
8267 else
8268   with_tclinclude=''
8269 fi
8270
8271 if test "${ac_cv_path_tclsh+set}" = set; then
8272   echo $ECHO_N "(cached) $ECHO_C" >&6
8273 else
8274
8275 if test x"${with_tclinclude}" != x ; then
8276   if test -f ${with_tclinclude}/tclsh ; then
8277     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8278   elif test -f ${with_tclinclude}/src/tclsh ; then
8279     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8280   else
8281     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8282 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8283    { (exit 1); exit 1; }; }
8284   fi
8285 fi
8286 fi
8287
8288
8289 if test x"${ac_cv_path_tclsh}" = x ; then
8290   { echo "$as_me:$LINENO: result: none" >&5
8291 echo "${ECHO_T}none" >&6; }
8292   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
8293 do
8294   # Extract the first word of "$ac_prog", so it can be a program name with args.
8295 set dummy $ac_prog; ac_word=$2
8296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8298 if test "${ac_cv_path_TCLSH+set}" = set; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301   case $TCLSH in
8302   [\\/]* | ?:[\\/]*)
8303   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8304   ;;
8305   *)
8306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 for as_dir in $PATH
8308 do
8309   IFS=$as_save_IFS
8310   test -z "$as_dir" && as_dir=.
8311   for ac_exec_ext in '' $ac_executable_extensions; do
8312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8313     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8315     break 2
8316   fi
8317 done
8318 done
8319 IFS=$as_save_IFS
8320
8321   ;;
8322 esac
8323 fi
8324 TCLSH=$ac_cv_path_TCLSH
8325 if test -n "$TCLSH"; then
8326   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8327 echo "${ECHO_T}$TCLSH" >&6; }
8328 else
8329   { echo "$as_me:$LINENO: result: no" >&5
8330 echo "${ECHO_T}no" >&6; }
8331 fi
8332
8333
8334   test -n "$TCLSH" && break
8335 done
8336
8337   if test x"${TCLSH}" = x ; then
8338     ac_cv_path_tclsh='';
8339   else
8340     ac_cv_path_tclsh="${TCLSH}";
8341   fi
8342 else
8343   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8344 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8345   TCLSH="${ac_cv_path_tclsh}"
8346
8347 fi
8348
8349 # Extract the first word of "zip", so it can be a program name with args.
8350 set dummy zip; ac_word=$2
8351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8353 if test "${ac_cv_path_ZIP+set}" = set; then
8354   echo $ECHO_N "(cached) $ECHO_C" >&6
8355 else
8356   case $ZIP in
8357   [\\/]* | ?:[\\/]*)
8358   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8359   ;;
8360   *)
8361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 for as_dir in $PATH
8363 do
8364   IFS=$as_save_IFS
8365   test -z "$as_dir" && as_dir=.
8366   for ac_exec_ext in '' $ac_executable_extensions; do
8367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8368     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8370     break 2
8371   fi
8372 done
8373 done
8374 IFS=$as_save_IFS
8375
8376   ;;
8377 esac
8378 fi
8379 ZIP=$ac_cv_path_ZIP
8380 if test -n "$ZIP"; then
8381   { echo "$as_me:$LINENO: result: $ZIP" >&5
8382 echo "${ECHO_T}$ZIP" >&6; }
8383 else
8384   { echo "$as_me:$LINENO: result: no" >&5
8385 echo "${ECHO_T}no" >&6; }
8386 fi
8387
8388
8389 for ac_prog in ocamlc
8390 do
8391   # Extract the first word of "$ac_prog", so it can be a program name with args.
8392 set dummy $ac_prog; ac_word=$2
8393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8395 if test "${ac_cv_path_OCAMLC+set}" = set; then
8396   echo $ECHO_N "(cached) $ECHO_C" >&6
8397 else
8398   case $OCAMLC in
8399   [\\/]* | ?:[\\/]*)
8400   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8401   ;;
8402   *)
8403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404 for as_dir in $PATH
8405 do
8406   IFS=$as_save_IFS
8407   test -z "$as_dir" && as_dir=.
8408   for ac_exec_ext in '' $ac_executable_extensions; do
8409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8410     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8412     break 2
8413   fi
8414 done
8415 done
8416 IFS=$as_save_IFS
8417
8418   ;;
8419 esac
8420 fi
8421 OCAMLC=$ac_cv_path_OCAMLC
8422 if test -n "$OCAMLC"; then
8423   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8424 echo "${ECHO_T}$OCAMLC" >&6; }
8425 else
8426   { echo "$as_me:$LINENO: result: no" >&5
8427 echo "${ECHO_T}no" >&6; }
8428 fi
8429
8430
8431   test -n "$OCAMLC" && break
8432 done
8433
8434 for ac_prog in ocamlopt
8435 do
8436   # Extract the first word of "$ac_prog", so it can be a program name with args.
8437 set dummy $ac_prog; ac_word=$2
8438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8440 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8441   echo $ECHO_N "(cached) $ECHO_C" >&6
8442 else
8443   case $OCAMLOPT in
8444   [\\/]* | ?:[\\/]*)
8445   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8446   ;;
8447   *)
8448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449 for as_dir in $PATH
8450 do
8451   IFS=$as_save_IFS
8452   test -z "$as_dir" && as_dir=.
8453   for ac_exec_ext in '' $ac_executable_extensions; do
8454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8455     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8457     break 2
8458   fi
8459 done
8460 done
8461 IFS=$as_save_IFS
8462
8463   ;;
8464 esac
8465 fi
8466 OCAMLOPT=$ac_cv_path_OCAMLOPT
8467 if test -n "$OCAMLOPT"; then
8468   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8469 echo "${ECHO_T}$OCAMLOPT" >&6; }
8470 else
8471   { echo "$as_me:$LINENO: result: no" >&5
8472 echo "${ECHO_T}no" >&6; }
8473 fi
8474
8475
8476   test -n "$OCAMLOPT" && break
8477 done
8478
8479 for ac_prog in ocamldep
8480 do
8481   # Extract the first word of "$ac_prog", so it can be a program name with args.
8482 set dummy $ac_prog; ac_word=$2
8483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8485 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8486   echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488   case $OCAMLDEP in
8489   [\\/]* | ?:[\\/]*)
8490   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8491   ;;
8492   *)
8493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH
8495 do
8496   IFS=$as_save_IFS
8497   test -z "$as_dir" && as_dir=.
8498   for ac_exec_ext in '' $ac_executable_extensions; do
8499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8500     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8502     break 2
8503   fi
8504 done
8505 done
8506 IFS=$as_save_IFS
8507
8508   ;;
8509 esac
8510 fi
8511 OCAMLDEP=$ac_cv_path_OCAMLDEP
8512 if test -n "$OCAMLDEP"; then
8513   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8514 echo "${ECHO_T}$OCAMLDEP" >&6; }
8515 else
8516   { echo "$as_me:$LINENO: result: no" >&5
8517 echo "${ECHO_T}no" >&6; }
8518 fi
8519
8520
8521   test -n "$OCAMLDEP" && break
8522 done
8523
8524 for ac_prog in ocamldoc
8525 do
8526   # Extract the first word of "$ac_prog", so it can be a program name with args.
8527 set dummy $ac_prog; ac_word=$2
8528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8530 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8531   echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533   case $OCAMLDOC in
8534   [\\/]* | ?:[\\/]*)
8535   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8536   ;;
8537   *)
8538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8539 for as_dir in $PATH
8540 do
8541   IFS=$as_save_IFS
8542   test -z "$as_dir" && as_dir=.
8543   for ac_exec_ext in '' $ac_executable_extensions; do
8544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8545     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8547     break 2
8548   fi
8549 done
8550 done
8551 IFS=$as_save_IFS
8552
8553   ;;
8554 esac
8555 fi
8556 OCAMLDOC=$ac_cv_path_OCAMLDOC
8557 if test -n "$OCAMLDOC"; then
8558   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8559 echo "${ECHO_T}$OCAMLDOC" >&6; }
8560 else
8561   { echo "$as_me:$LINENO: result: no" >&5
8562 echo "${ECHO_T}no" >&6; }
8563 fi
8564
8565
8566   test -n "$OCAMLDOC" && break
8567 done
8568
8569 for ac_prog in gas as
8570 do
8571   # Extract the first word of "$ac_prog", so it can be a program name with args.
8572 set dummy $ac_prog; ac_word=$2
8573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8575 if test "${ac_cv_path_GAS+set}" = set; then
8576   echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578   case $GAS in
8579   [\\/]* | ?:[\\/]*)
8580   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8581   ;;
8582   *)
8583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584 for as_dir in $PATH
8585 do
8586   IFS=$as_save_IFS
8587   test -z "$as_dir" && as_dir=.
8588   for ac_exec_ext in '' $ac_executable_extensions; do
8589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8590     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8592     break 2
8593   fi
8594 done
8595 done
8596 IFS=$as_save_IFS
8597
8598   ;;
8599 esac
8600 fi
8601 GAS=$ac_cv_path_GAS
8602 if test -n "$GAS"; then
8603   { echo "$as_me:$LINENO: result: $GAS" >&5
8604 echo "${ECHO_T}$GAS" >&6; }
8605 else
8606   { echo "$as_me:$LINENO: result: no" >&5
8607 echo "${ECHO_T}no" >&6; }
8608 fi
8609
8610
8611   test -n "$GAS" && break
8612 done
8613
8614
8615 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8616 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8617 if test "${llvm_cv_link_use_r+set}" = set; then
8618   echo $ECHO_N "(cached) $ECHO_C" >&6
8619 else
8620    ac_ext=c
8621 ac_cpp='$CPP $CPPFLAGS'
8622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8625
8626   oldcflags="$CFLAGS"
8627   CFLAGS="$CFLAGS -Wl,-R."
8628   cat >conftest.$ac_ext <<_ACEOF
8629 /* confdefs.h.  */
8630 _ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h.  */
8634
8635 int
8636 main ()
8637 {
8638
8639   ;
8640   return 0;
8641 }
8642 _ACEOF
8643 rm -f conftest.$ac_objext conftest$ac_exeext
8644 if { (ac_try="$ac_link"
8645 case "(($ac_try" in
8646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647   *) ac_try_echo=$ac_try;;
8648 esac
8649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8650   (eval "$ac_link") 2>conftest.er1
8651   ac_status=$?
8652   grep -v '^ *+' conftest.er1 >conftest.err
8653   rm -f conftest.er1
8654   cat conftest.err >&5
8655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656   (exit $ac_status); } &&
8657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8658   { (case "(($ac_try" in
8659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8660   *) ac_try_echo=$ac_try;;
8661 esac
8662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8663   (eval "$ac_try") 2>&5
8664   ac_status=$?
8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666   (exit $ac_status); }; } &&
8667          { ac_try='test -s conftest$ac_exeext'
8668   { (case "(($ac_try" in
8669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670   *) ac_try_echo=$ac_try;;
8671 esac
8672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8673   (eval "$ac_try") 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); }; }; then
8677   llvm_cv_link_use_r=yes
8678 else
8679   echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8681
8682         llvm_cv_link_use_r=no
8683 fi
8684
8685 rm -f core conftest.err conftest.$ac_objext \
8686       conftest$ac_exeext conftest.$ac_ext
8687   CFLAGS="$oldcflags"
8688   ac_ext=c
8689 ac_cpp='$CPP $CPPFLAGS'
8690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8693
8694
8695 fi
8696 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8697 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8698 if test "$llvm_cv_link_use_r" = yes ; then
8699
8700 cat >>confdefs.h <<\_ACEOF
8701 #define HAVE_LINK_R 1
8702 _ACEOF
8703
8704   fi
8705
8706
8707 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8708 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8709 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8710   echo $ECHO_N "(cached) $ECHO_C" >&6
8711 else
8712    ac_ext=c
8713 ac_cpp='$CPP $CPPFLAGS'
8714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8717
8718   oldcflags="$CFLAGS"
8719   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8720   cat >conftest.$ac_ext <<_ACEOF
8721 /* confdefs.h.  */
8722 _ACEOF
8723 cat confdefs.h >>conftest.$ac_ext
8724 cat >>conftest.$ac_ext <<_ACEOF
8725 /* end confdefs.h.  */
8726
8727 int
8728 main ()
8729 {
8730
8731   ;
8732   return 0;
8733 }
8734 _ACEOF
8735 rm -f conftest.$ac_objext conftest$ac_exeext
8736 if { (ac_try="$ac_link"
8737 case "(($ac_try" in
8738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739   *) ac_try_echo=$ac_try;;
8740 esac
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742   (eval "$ac_link") 2>conftest.er1
8743   ac_status=$?
8744   grep -v '^ *+' conftest.er1 >conftest.err
8745   rm -f conftest.er1
8746   cat conftest.err >&5
8747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748   (exit $ac_status); } &&
8749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8759          { ac_try='test -s conftest$ac_exeext'
8760   { (case "(($ac_try" in
8761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762   *) ac_try_echo=$ac_try;;
8763 esac
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765   (eval "$ac_try") 2>&5
8766   ac_status=$?
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); }; }; then
8769   llvm_cv_link_use_export_dynamic=yes
8770 else
8771   echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8773
8774         llvm_cv_link_use_export_dynamic=no
8775 fi
8776
8777 rm -f core conftest.err conftest.$ac_objext \
8778       conftest$ac_exeext conftest.$ac_ext
8779   CFLAGS="$oldcflags"
8780   ac_ext=c
8781 ac_cpp='$CPP $CPPFLAGS'
8782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8785
8786
8787 fi
8788 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8789 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8790 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8791
8792 cat >>confdefs.h <<\_ACEOF
8793 #define HAVE_LINK_EXPORT_DYNAMIC 1
8794 _ACEOF
8795
8796   fi
8797
8798
8799 { echo "$as_me:$LINENO: checking for compiler -Wl,-retain-symbols-file option" >&5
8800 echo $ECHO_N "checking for compiler -Wl,-retain-symbols-file option... $ECHO_C" >&6; }
8801 if test "${llvm_cv_link_use_retain_symbols_file+set}" = set; then
8802   echo $ECHO_N "(cached) $ECHO_C" >&6
8803 else
8804    ac_ext=c
8805 ac_cpp='$CPP $CPPFLAGS'
8806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8809
8810   oldcflags="$CFLAGS"
8811
8812   # The following code is from the autoconf manual,
8813   # "11.13: Limitations of Usual Tools".
8814   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8815   # Use mktemp if possible; otherwise fall back on mkdir,
8816   # with $RANDOM to make collisions less likely.
8817   : ${TMPDIR=/tmp}
8818   {
8819     tmp=`
8820       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8821     ` &&
8822     test -n "$tmp" && test -d "$tmp"
8823   } || {
8824     tmp=$TMPDIR/foo$$-$RANDOM
8825     (umask 077 && mkdir "$tmp")
8826   } || exit $?
8827
8828   echo "main" > "$tmp/exports"
8829
8830   CFLAGS="$CFLAGS -Wl,-retain-symbols-file=$tmp/exports"
8831   cat >conftest.$ac_ext <<_ACEOF
8832 /* confdefs.h.  */
8833 _ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h.  */
8837
8838 int
8839 main ()
8840 {
8841
8842   ;
8843   return 0;
8844 }
8845 _ACEOF
8846 rm -f conftest.$ac_objext conftest$ac_exeext
8847 if { (ac_try="$ac_link"
8848 case "(($ac_try" in
8849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850   *) ac_try_echo=$ac_try;;
8851 esac
8852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853   (eval "$ac_link") 2>conftest.er1
8854   ac_status=$?
8855   grep -v '^ *+' conftest.er1 >conftest.err
8856   rm -f conftest.er1
8857   cat conftest.err >&5
8858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859   (exit $ac_status); } &&
8860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8861   { (case "(($ac_try" in
8862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863   *) ac_try_echo=$ac_try;;
8864 esac
8865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866   (eval "$ac_try") 2>&5
8867   ac_status=$?
8868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869   (exit $ac_status); }; } &&
8870          { ac_try='test -s conftest$ac_exeext'
8871   { (case "(($ac_try" in
8872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873   *) ac_try_echo=$ac_try;;
8874 esac
8875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8876   (eval "$ac_try") 2>&5
8877   ac_status=$?
8878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879   (exit $ac_status); }; }; then
8880   llvm_cv_link_use_retain_symbols_file=yes
8881 else
8882   echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8884
8885         llvm_cv_link_use_retain_symbols_file=no
8886 fi
8887
8888 rm -f core conftest.err conftest.$ac_objext \
8889       conftest$ac_exeext conftest.$ac_ext
8890   rm "$tmp/exports"
8891   rmdir "$tmp"
8892   CFLAGS="$oldcflags"
8893   ac_ext=c
8894 ac_cpp='$CPP $CPPFLAGS'
8895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8898
8899
8900 fi
8901 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_retain_symbols_file" >&5
8902 echo "${ECHO_T}$llvm_cv_link_use_retain_symbols_file" >&6; }
8903 if test "$llvm_cv_link_use_retain_symbols_file" = yes ; then
8904   HAVE_LINK_RETAIN_SYMBOLS_FILE=1
8905
8906   fi
8907
8908
8909
8910
8911 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8912 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8913 if test "${ac_cv_c_const+set}" = set; then
8914   echo $ECHO_N "(cached) $ECHO_C" >&6
8915 else
8916   cat >conftest.$ac_ext <<_ACEOF
8917 /* confdefs.h.  */
8918 _ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h.  */
8922
8923 int
8924 main ()
8925 {
8926 /* FIXME: Include the comments suggested by Paul. */
8927 #ifndef __cplusplus
8928   /* Ultrix mips cc rejects this.  */
8929   typedef int charset[2];
8930   const charset x;
8931   /* SunOS 4.1.1 cc rejects this.  */
8932   char const *const *ccp;
8933   char **p;
8934   /* NEC SVR4.0.2 mips cc rejects this.  */
8935   struct point {int x, y;};
8936   static struct point const zero = {0,0};
8937   /* AIX XL C 1.02.0.0 rejects this.
8938      It does not let you subtract one const X* pointer from another in
8939      an arm of an if-expression whose if-part is not a constant
8940      expression */
8941   const char *g = "string";
8942   ccp = &g + (g ? g-g : 0);
8943   /* HPUX 7.0 cc rejects these. */
8944   ++ccp;
8945   p = (char**) ccp;
8946   ccp = (char const *const *) p;
8947   { /* SCO 3.2v4 cc rejects this.  */
8948     char *t;
8949     char const *s = 0 ? (char *) 0 : (char const *) 0;
8950
8951     *t++ = 0;
8952     if (s) return 0;
8953   }
8954   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8955     int x[] = {25, 17};
8956     const int *foo = &x[0];
8957     ++foo;
8958   }
8959   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8960     typedef const int *iptr;
8961     iptr p = 0;
8962     ++p;
8963   }
8964   { /* AIX XL C 1.02.0.0 rejects this saying
8965        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8966     struct s { int j; const int *ap[3]; };
8967     struct s *b; b->j = 5;
8968   }
8969   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8970     const int foo = 10;
8971     if (!foo) return 0;
8972   }
8973   return !x[0] && !zero.x;
8974 #endif
8975
8976   ;
8977   return 0;
8978 }
8979 _ACEOF
8980 rm -f conftest.$ac_objext
8981 if { (ac_try="$ac_compile"
8982 case "(($ac_try" in
8983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8984   *) ac_try_echo=$ac_try;;
8985 esac
8986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8987   (eval "$ac_compile") 2>conftest.er1
8988   ac_status=$?
8989   grep -v '^ *+' conftest.er1 >conftest.err
8990   rm -f conftest.er1
8991   cat conftest.err >&5
8992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993   (exit $ac_status); } &&
8994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8995   { (case "(($ac_try" in
8996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997   *) ac_try_echo=$ac_try;;
8998 esac
8999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9000   (eval "$ac_try") 2>&5
9001   ac_status=$?
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); }; } &&
9004          { ac_try='test -s conftest.$ac_objext'
9005   { (case "(($ac_try" in
9006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9007   *) ac_try_echo=$ac_try;;
9008 esac
9009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9010   (eval "$ac_try") 2>&5
9011   ac_status=$?
9012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013   (exit $ac_status); }; }; then
9014   ac_cv_c_const=yes
9015 else
9016   echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9018
9019         ac_cv_c_const=no
9020 fi
9021
9022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9023 fi
9024 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9025 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9026 if test $ac_cv_c_const = no; then
9027
9028 cat >>confdefs.h <<\_ACEOF
9029 #define const
9030 _ACEOF
9031
9032 fi
9033
9034
9035
9036
9037
9038
9039 ac_header_dirent=no
9040 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9041   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9042 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9043 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9045   echo $ECHO_N "(cached) $ECHO_C" >&6
9046 else
9047   cat >conftest.$ac_ext <<_ACEOF
9048 /* confdefs.h.  */
9049 _ACEOF
9050 cat confdefs.h >>conftest.$ac_ext
9051 cat >>conftest.$ac_ext <<_ACEOF
9052 /* end confdefs.h.  */
9053 #include <sys/types.h>
9054 #include <$ac_hdr>
9055
9056 int
9057 main ()
9058 {
9059 if ((DIR *) 0)
9060 return 0;
9061   ;
9062   return 0;
9063 }
9064 _ACEOF
9065 rm -f conftest.$ac_objext
9066 if { (ac_try="$ac_compile"
9067 case "(($ac_try" in
9068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9069   *) ac_try_echo=$ac_try;;
9070 esac
9071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9072   (eval "$ac_compile") 2>conftest.er1
9073   ac_status=$?
9074   grep -v '^ *+' conftest.er1 >conftest.err
9075   rm -f conftest.er1
9076   cat conftest.err >&5
9077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078   (exit $ac_status); } &&
9079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9080   { (case "(($ac_try" in
9081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9082   *) ac_try_echo=$ac_try;;
9083 esac
9084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9085   (eval "$ac_try") 2>&5
9086   ac_status=$?
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); }; } &&
9089          { ac_try='test -s conftest.$ac_objext'
9090   { (case "(($ac_try" in
9091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9092   *) ac_try_echo=$ac_try;;
9093 esac
9094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9095   (eval "$ac_try") 2>&5
9096   ac_status=$?
9097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098   (exit $ac_status); }; }; then
9099   eval "$as_ac_Header=yes"
9100 else
9101   echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9103
9104         eval "$as_ac_Header=no"
9105 fi
9106
9107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9108 fi
9109 ac_res=`eval echo '${'$as_ac_Header'}'`
9110                { echo "$as_me:$LINENO: result: $ac_res" >&5
9111 echo "${ECHO_T}$ac_res" >&6; }
9112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9113   cat >>confdefs.h <<_ACEOF
9114 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9115 _ACEOF
9116
9117 ac_header_dirent=$ac_hdr; break
9118 fi
9119
9120 done
9121 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9122 if test $ac_header_dirent = dirent.h; then
9123   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9124 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9125 if test "${ac_cv_search_opendir+set}" = set; then
9126   echo $ECHO_N "(cached) $ECHO_C" >&6
9127 else
9128   ac_func_search_save_LIBS=$LIBS
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
9136 /* Override any GCC internal prototype to avoid an error.
9137    Use char because int might match the return type of a GCC
9138    builtin and then its argument prototype would still apply.  */
9139 #ifdef __cplusplus
9140 extern "C"
9141 #endif
9142 char opendir ();
9143 int
9144 main ()
9145 {
9146 return opendir ();
9147   ;
9148   return 0;
9149 }
9150 _ACEOF
9151 for ac_lib in '' dir; do
9152   if test -z "$ac_lib"; then
9153     ac_res="none required"
9154   else
9155     ac_res=-l$ac_lib
9156     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9157   fi
9158   rm -f conftest.$ac_objext conftest$ac_exeext
9159 if { (ac_try="$ac_link"
9160 case "(($ac_try" in
9161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162   *) ac_try_echo=$ac_try;;
9163 esac
9164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9165   (eval "$ac_link") 2>conftest.er1
9166   ac_status=$?
9167   grep -v '^ *+' conftest.er1 >conftest.err
9168   rm -f conftest.er1
9169   cat conftest.err >&5
9170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171   (exit $ac_status); } &&
9172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9173   { (case "(($ac_try" in
9174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9175   *) ac_try_echo=$ac_try;;
9176 esac
9177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9178   (eval "$ac_try") 2>&5
9179   ac_status=$?
9180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181   (exit $ac_status); }; } &&
9182          { ac_try='test -s conftest$ac_exeext'
9183   { (case "(($ac_try" in
9184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185   *) ac_try_echo=$ac_try;;
9186 esac
9187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9188   (eval "$ac_try") 2>&5
9189   ac_status=$?
9190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191   (exit $ac_status); }; }; then
9192   ac_cv_search_opendir=$ac_res
9193 else
9194   echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9196
9197
9198 fi
9199
9200 rm -f core conftest.err conftest.$ac_objext \
9201       conftest$ac_exeext
9202   if test "${ac_cv_search_opendir+set}" = set; then
9203   break
9204 fi
9205 done
9206 if test "${ac_cv_search_opendir+set}" = set; then
9207   :
9208 else
9209   ac_cv_search_opendir=no
9210 fi
9211 rm conftest.$ac_ext
9212 LIBS=$ac_func_search_save_LIBS
9213 fi
9214 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9215 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9216 ac_res=$ac_cv_search_opendir
9217 if test "$ac_res" != no; then
9218   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9219
9220 fi
9221
9222 else
9223   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9224 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9225 if test "${ac_cv_search_opendir+set}" = set; then
9226   echo $ECHO_N "(cached) $ECHO_C" >&6
9227 else
9228   ac_func_search_save_LIBS=$LIBS
9229 cat >conftest.$ac_ext <<_ACEOF
9230 /* confdefs.h.  */
9231 _ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h.  */
9235
9236 /* Override any GCC internal prototype to avoid an error.
9237    Use char because int might match the return type of a GCC
9238    builtin and then its argument prototype would still apply.  */
9239 #ifdef __cplusplus
9240 extern "C"
9241 #endif
9242 char opendir ();
9243 int
9244 main ()
9245 {
9246 return opendir ();
9247   ;
9248   return 0;
9249 }
9250 _ACEOF
9251 for ac_lib in '' x; do
9252   if test -z "$ac_lib"; then
9253     ac_res="none required"
9254   else
9255     ac_res=-l$ac_lib
9256     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9257   fi
9258   rm -f conftest.$ac_objext conftest$ac_exeext
9259 if { (ac_try="$ac_link"
9260 case "(($ac_try" in
9261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262   *) ac_try_echo=$ac_try;;
9263 esac
9264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265   (eval "$ac_link") 2>conftest.er1
9266   ac_status=$?
9267   grep -v '^ *+' conftest.er1 >conftest.err
9268   rm -f conftest.er1
9269   cat conftest.err >&5
9270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271   (exit $ac_status); } &&
9272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273   { (case "(($ac_try" in
9274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9275   *) ac_try_echo=$ac_try;;
9276 esac
9277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9278   (eval "$ac_try") 2>&5
9279   ac_status=$?
9280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281   (exit $ac_status); }; } &&
9282          { ac_try='test -s conftest$ac_exeext'
9283   { (case "(($ac_try" in
9284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9285   *) ac_try_echo=$ac_try;;
9286 esac
9287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9288   (eval "$ac_try") 2>&5
9289   ac_status=$?
9290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291   (exit $ac_status); }; }; then
9292   ac_cv_search_opendir=$ac_res
9293 else
9294   echo "$as_me: failed program was:" >&5
9295 sed 's/^/| /' conftest.$ac_ext >&5
9296
9297
9298 fi
9299
9300 rm -f core conftest.err conftest.$ac_objext \
9301       conftest$ac_exeext
9302   if test "${ac_cv_search_opendir+set}" = set; then
9303   break
9304 fi
9305 done
9306 if test "${ac_cv_search_opendir+set}" = set; then
9307   :
9308 else
9309   ac_cv_search_opendir=no
9310 fi
9311 rm conftest.$ac_ext
9312 LIBS=$ac_func_search_save_LIBS
9313 fi
9314 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9315 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9316 ac_res=$ac_cv_search_opendir
9317 if test "$ac_res" != no; then
9318   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9319
9320 fi
9321
9322 fi
9323
9324
9325 for ac_header in dlfcn.h
9326 do
9327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9329   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9332   echo $ECHO_N "(cached) $ECHO_C" >&6
9333 fi
9334 ac_res=`eval echo '${'$as_ac_Header'}'`
9335                { echo "$as_me:$LINENO: result: $ac_res" >&5
9336 echo "${ECHO_T}$ac_res" >&6; }
9337 else
9338   # Is the header compilable?
9339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9341 cat >conftest.$ac_ext <<_ACEOF
9342 /* confdefs.h.  */
9343 _ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h.  */
9347 $ac_includes_default
9348 #include <$ac_header>
9349 _ACEOF
9350 rm -f conftest.$ac_objext
9351 if { (ac_try="$ac_compile"
9352 case "(($ac_try" in
9353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354   *) ac_try_echo=$ac_try;;
9355 esac
9356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9357   (eval "$ac_compile") 2>conftest.er1
9358   ac_status=$?
9359   grep -v '^ *+' conftest.er1 >conftest.err
9360   rm -f conftest.er1
9361   cat conftest.err >&5
9362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363   (exit $ac_status); } &&
9364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9374          { ac_try='test -s conftest.$ac_objext'
9375   { (case "(($ac_try" in
9376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377   *) ac_try_echo=$ac_try;;
9378 esac
9379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380   (eval "$ac_try") 2>&5
9381   ac_status=$?
9382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383   (exit $ac_status); }; }; then
9384   ac_header_compiler=yes
9385 else
9386   echo "$as_me: failed program was:" >&5
9387 sed 's/^/| /' conftest.$ac_ext >&5
9388
9389         ac_header_compiler=no
9390 fi
9391
9392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9394 echo "${ECHO_T}$ac_header_compiler" >&6; }
9395
9396 # Is the header present?
9397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9399 cat >conftest.$ac_ext <<_ACEOF
9400 /* confdefs.h.  */
9401 _ACEOF
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h.  */
9405 #include <$ac_header>
9406 _ACEOF
9407 if { (ac_try="$ac_cpp conftest.$ac_ext"
9408 case "(($ac_try" in
9409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9410   *) ac_try_echo=$ac_try;;
9411 esac
9412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9413   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9414   ac_status=$?
9415   grep -v '^ *+' conftest.er1 >conftest.err
9416   rm -f conftest.er1
9417   cat conftest.err >&5
9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); } >/dev/null; then
9420   if test -s conftest.err; then
9421     ac_cpp_err=$ac_c_preproc_warn_flag
9422     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9423   else
9424     ac_cpp_err=
9425   fi
9426 else
9427   ac_cpp_err=yes
9428 fi
9429 if test -z "$ac_cpp_err"; then
9430   ac_header_preproc=yes
9431 else
9432   echo "$as_me: failed program was:" >&5
9433 sed 's/^/| /' conftest.$ac_ext >&5
9434
9435   ac_header_preproc=no
9436 fi
9437
9438 rm -f conftest.err conftest.$ac_ext
9439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9440 echo "${ECHO_T}$ac_header_preproc" >&6; }
9441
9442 # So?  What about this header?
9443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9444   yes:no: )
9445     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9449     ac_header_preproc=yes
9450     ;;
9451   no:yes:* )
9452     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9454     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9455 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9456     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9458     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9459 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9462     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9464     ( cat <<\_ASBOX
9465 ## ----------------------------------- ##
9466 ## Report this to llvmbugs@cs.uiuc.edu ##
9467 ## ----------------------------------- ##
9468 _ASBOX
9469      ) | sed "s/^/$as_me: WARNING:     /" >&2
9470     ;;
9471 esac
9472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9475   echo $ECHO_N "(cached) $ECHO_C" >&6
9476 else
9477   eval "$as_ac_Header=\$ac_header_preproc"
9478 fi
9479 ac_res=`eval echo '${'$as_ac_Header'}'`
9480                { echo "$as_me:$LINENO: result: $ac_res" >&5
9481 echo "${ECHO_T}$ac_res" >&6; }
9482
9483 fi
9484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9485   cat >>confdefs.h <<_ACEOF
9486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9487 _ACEOF
9488
9489 fi
9490
9491 done
9492
9493 # Check whether --enable-ltdl-install was given.
9494 if test "${enable_ltdl_install+set}" = set; then
9495   enableval=$enable_ltdl_install;
9496 fi
9497
9498
9499
9500
9501 if test x"${enable_ltdl_install-no}" != xno; then
9502   INSTALL_LTDL_TRUE=
9503   INSTALL_LTDL_FALSE='#'
9504 else
9505   INSTALL_LTDL_TRUE='#'
9506   INSTALL_LTDL_FALSE=
9507 fi
9508
9509
9510
9511 if test x"${enable_ltdl_convenience-no}" != xno; then
9512   CONVENIENCE_LTDL_TRUE=
9513   CONVENIENCE_LTDL_FALSE='#'
9514 else
9515   CONVENIENCE_LTDL_TRUE='#'
9516   CONVENIENCE_LTDL_FALSE=
9517 fi
9518
9519
9520 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9521 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9522 library_names_spec=
9523 libname_spec='lib$name'
9524 soname_spec=
9525 shrext_cmds=".so"
9526 postinstall_cmds=
9527 postuninstall_cmds=
9528 finish_cmds=
9529 finish_eval=
9530 shlibpath_var=
9531 shlibpath_overrides_runpath=unknown
9532 version_type=none
9533 dynamic_linker="$host_os ld.so"
9534 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9535 if test "$GCC" = yes; then
9536   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9537   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9538     # if the path contains ";" then we assume it to be the separator
9539     # otherwise default to the standard path separator (i.e. ":") - it is
9540     # assumed that no part of a normal pathname contains ";" but that should
9541     # okay in the real world where ";" in dirpaths is itself problematic.
9542     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9543   else
9544     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9545   fi
9546 else
9547   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9548 fi
9549 need_lib_prefix=unknown
9550 hardcode_into_libs=no
9551
9552 # when you set need_version to no, make sure it does not cause -set_version
9553 # flags to be left without arguments
9554 need_version=unknown
9555
9556 case $host_os in
9557 aix3*)
9558   version_type=linux
9559   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9560   shlibpath_var=LIBPATH
9561
9562   # AIX 3 has no versioning support, so we append a major version to the name.
9563   soname_spec='${libname}${release}${shared_ext}$major'
9564   ;;
9565
9566 aix4* | aix5*)
9567   version_type=linux
9568   need_lib_prefix=no
9569   need_version=no
9570   hardcode_into_libs=yes
9571   if test "$host_cpu" = ia64; then
9572     # AIX 5 supports IA64
9573     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9574     shlibpath_var=LD_LIBRARY_PATH
9575   else
9576     # With GCC up to 2.95.x, collect2 would create an import file
9577     # for dependence libraries.  The import file would start with
9578     # the line `#! .'.  This would cause the generated library to
9579     # depend on `.', always an invalid library.  This was fixed in
9580     # development snapshots of GCC prior to 3.0.
9581     case $host_os in
9582       aix4 | aix4.[01] | aix4.[01].*)
9583       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9584            echo ' yes '
9585            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9586         :
9587       else
9588         can_build_shared=no
9589       fi
9590       ;;
9591     esac
9592     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9593     # soname into executable. Probably we can add versioning support to
9594     # collect2, so additional links can be useful in future.
9595     if test "$aix_use_runtimelinking" = yes; then
9596       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9597       # instead of lib<name>.a to let people know that these are not
9598       # typical AIX shared libraries.
9599       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9600     else
9601       # We preserve .a as extension for shared libraries through AIX4.2
9602       # and later when we are not doing run time linking.
9603       library_names_spec='${libname}${release}.a $libname.a'
9604       soname_spec='${libname}${release}${shared_ext}$major'
9605     fi
9606     shlibpath_var=LIBPATH
9607   fi
9608   ;;
9609
9610 amigaos*)
9611   library_names_spec='$libname.ixlibrary $libname.a'
9612   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9613   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'
9614   ;;
9615
9616 beos*)
9617   library_names_spec='${libname}${shared_ext}'
9618   dynamic_linker="$host_os ld.so"
9619   shlibpath_var=LIBRARY_PATH
9620   ;;
9621
9622 bsdi[45]*)
9623   version_type=linux
9624   need_version=no
9625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9626   soname_spec='${libname}${release}${shared_ext}$major'
9627   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9628   shlibpath_var=LD_LIBRARY_PATH
9629   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9630   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9631   # the default ld.so.conf also contains /usr/contrib/lib and
9632   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9633   # libtool to hard-code these into programs
9634   ;;
9635
9636 cygwin* | mingw* | pw32*)
9637   version_type=windows
9638   shrext_cmds=".dll"
9639   need_version=no
9640   need_lib_prefix=no
9641
9642   case $GCC,$host_os in
9643   yes,cygwin* | yes,mingw* | yes,pw32*)
9644     library_names_spec='$libname.dll.a'
9645     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9646     postinstall_cmds='base_file=`basename \${file}`~
9647       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9648       dldir=$destdir/`dirname \$dlpath`~
9649       test -d \$dldir || mkdir -p \$dldir~
9650       $install_prog $dir/$dlname \$dldir/$dlname~
9651       chmod a+x \$dldir/$dlname'
9652     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9653       dlpath=$dir/\$dldll~
9654        $rm \$dlpath'
9655     shlibpath_overrides_runpath=yes
9656
9657     case $host_os in
9658     cygwin*)
9659       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9660       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9661       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9662       ;;
9663     mingw*)
9664       # MinGW DLLs use traditional 'lib' prefix
9665       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9666       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9667       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9668         # It is most probably a Windows format PATH printed by
9669         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9670         # path with ; separators, and with drive letters. We can handle the
9671         # drive letters (cygwin fileutils understands them), so leave them,
9672         # especially as we might pass files found there to a mingw objdump,
9673         # which wouldn't understand a cygwinified path. Ahh.
9674         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9675       else
9676         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9677       fi
9678       ;;
9679     pw32*)
9680       # pw32 DLLs use 'pw' prefix rather than 'lib'
9681       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9682       ;;
9683     esac
9684     ;;
9685
9686   *)
9687     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9688     ;;
9689   esac
9690   dynamic_linker='Win32 ld.exe'
9691   # FIXME: first we should search . and the directory the executable is in
9692   shlibpath_var=PATH
9693   ;;
9694
9695 darwin* | rhapsody*)
9696   dynamic_linker="$host_os dyld"
9697   version_type=darwin
9698   need_lib_prefix=no
9699   need_version=no
9700   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9701   soname_spec='${libname}${release}${major}$shared_ext'
9702   shlibpath_overrides_runpath=yes
9703   shlibpath_var=DYLD_LIBRARY_PATH
9704   shrext_cmds='.dylib'
9705   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9706   if test "$GCC" = yes; then
9707     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"`
9708   else
9709     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9710   fi
9711   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9712   ;;
9713
9714 dgux*)
9715   version_type=linux
9716   need_lib_prefix=no
9717   need_version=no
9718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9719   soname_spec='${libname}${release}${shared_ext}$major'
9720   shlibpath_var=LD_LIBRARY_PATH
9721   ;;
9722
9723 freebsd1*)
9724   dynamic_linker=no
9725   ;;
9726
9727 kfreebsd*-gnu)
9728   version_type=linux
9729   need_lib_prefix=no
9730   need_version=no
9731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9732   soname_spec='${libname}${release}${shared_ext}$major'
9733   shlibpath_var=LD_LIBRARY_PATH
9734   shlibpath_overrides_runpath=no
9735   hardcode_into_libs=yes
9736   dynamic_linker='GNU ld.so'
9737   ;;
9738
9739 freebsd* | dragonfly*)
9740   # DragonFly does not have aout.  When/if they implement a new
9741   # versioning mechanism, adjust this.
9742   if test -x /usr/bin/objformat; then
9743     objformat=`/usr/bin/objformat`
9744   else
9745     case $host_os in
9746     freebsd[123]*) objformat=aout ;;
9747     *) objformat=elf ;;
9748     esac
9749   fi
9750   version_type=freebsd-$objformat
9751   case $version_type in
9752     freebsd-elf*)
9753       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9754       need_version=no
9755       need_lib_prefix=no
9756       ;;
9757     freebsd-*)
9758       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9759       need_version=yes
9760       ;;
9761   esac
9762   shlibpath_var=LD_LIBRARY_PATH
9763   case $host_os in
9764   freebsd2*)
9765     shlibpath_overrides_runpath=yes
9766     ;;
9767   freebsd3.[01]* | freebsdelf3.[01]*)
9768     shlibpath_overrides_runpath=yes
9769     hardcode_into_libs=yes
9770     ;;
9771   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9772   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9773     shlibpath_overrides_runpath=no
9774     hardcode_into_libs=yes
9775     ;;
9776   freebsd*) # from 4.6 on
9777     shlibpath_overrides_runpath=yes
9778     hardcode_into_libs=yes
9779     ;;
9780   esac
9781   ;;
9782
9783 gnu*)
9784   version_type=linux
9785   need_lib_prefix=no
9786   need_version=no
9787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9788   soname_spec='${libname}${release}${shared_ext}$major'
9789   shlibpath_var=LD_LIBRARY_PATH
9790   hardcode_into_libs=yes
9791   ;;
9792
9793 hpux9* | hpux10* | hpux11*)
9794   # Give a soname corresponding to the major version so that dld.sl refuses to
9795   # link against other versions.
9796   version_type=sunos
9797   need_lib_prefix=no
9798   need_version=no
9799   case $host_cpu in
9800   ia64*)
9801     shrext_cmds='.so'
9802     hardcode_into_libs=yes
9803     dynamic_linker="$host_os dld.so"
9804     shlibpath_var=LD_LIBRARY_PATH
9805     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9806     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9807     soname_spec='${libname}${release}${shared_ext}$major'
9808     if test "X$HPUX_IA64_MODE" = X32; then
9809       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9810     else
9811       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9812     fi
9813     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9814     ;;
9815    hppa*64*)
9816      shrext_cmds='.sl'
9817      hardcode_into_libs=yes
9818      dynamic_linker="$host_os dld.sl"
9819      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9820      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9821      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822      soname_spec='${libname}${release}${shared_ext}$major'
9823      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9824      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9825      ;;
9826    *)
9827     shrext_cmds='.sl'
9828     dynamic_linker="$host_os dld.sl"
9829     shlibpath_var=SHLIB_PATH
9830     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9831     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9832     soname_spec='${libname}${release}${shared_ext}$major'
9833     ;;
9834   esac
9835   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9836   postinstall_cmds='chmod 555 $lib'
9837   ;;
9838
9839 interix3*)
9840   version_type=linux
9841   need_lib_prefix=no
9842   need_version=no
9843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9844   soname_spec='${libname}${release}${shared_ext}$major'
9845   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9846   shlibpath_var=LD_LIBRARY_PATH
9847   shlibpath_overrides_runpath=no
9848   hardcode_into_libs=yes
9849   ;;
9850
9851 irix5* | irix6* | nonstopux*)
9852   case $host_os in
9853     nonstopux*) version_type=nonstopux ;;
9854     *)
9855         if test "$lt_cv_prog_gnu_ld" = yes; then
9856                 version_type=linux
9857         else
9858                 version_type=irix
9859         fi ;;
9860   esac
9861   need_lib_prefix=no
9862   need_version=no
9863   soname_spec='${libname}${release}${shared_ext}$major'
9864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9865   case $host_os in
9866   irix5* | nonstopux*)
9867     libsuff= shlibsuff=
9868     ;;
9869   *)
9870     case $LD in # libtool.m4 will add one of these switches to LD
9871     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9872       libsuff= shlibsuff= libmagic=32-bit;;
9873     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9874       libsuff=32 shlibsuff=N32 libmagic=N32;;
9875     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9876       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9877     *) libsuff= shlibsuff= libmagic=never-match;;
9878     esac
9879     ;;
9880   esac
9881   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9882   shlibpath_overrides_runpath=no
9883   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9884   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9885   hardcode_into_libs=yes
9886   ;;
9887
9888 # No shared lib support for Linux oldld, aout, or coff.
9889 linux*oldld* | linux*aout* | linux*coff*)
9890   dynamic_linker=no
9891   ;;
9892
9893 # This must be Linux ELF.
9894 linux*)
9895   version_type=linux
9896   need_lib_prefix=no
9897   need_version=no
9898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899   soname_spec='${libname}${release}${shared_ext}$major'
9900   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9901   shlibpath_var=LD_LIBRARY_PATH
9902   shlibpath_overrides_runpath=no
9903   # This implies no fast_install, which is unacceptable.
9904   # Some rework will be needed to allow for fast_install
9905   # before this can be enabled.
9906   hardcode_into_libs=yes
9907
9908   # Append ld.so.conf contents to the search path
9909   if test -f /etc/ld.so.conf; then
9910     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' ' '`
9911     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9912   fi
9913
9914   # We used to test for /lib/ld.so.1 and disable shared libraries on
9915   # powerpc, because MkLinux only supported shared libraries with the
9916   # GNU dynamic linker.  Since this was broken with cross compilers,
9917   # most powerpc-linux boxes support dynamic linking these days and
9918   # people can always --disable-shared, the test was removed, and we
9919   # assume the GNU/Linux dynamic linker is in use.
9920   dynamic_linker='GNU/Linux ld.so'
9921   ;;
9922
9923 knetbsd*-gnu)
9924   version_type=linux
9925   need_lib_prefix=no
9926   need_version=no
9927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9928   soname_spec='${libname}${release}${shared_ext}$major'
9929   shlibpath_var=LD_LIBRARY_PATH
9930   shlibpath_overrides_runpath=no
9931   hardcode_into_libs=yes
9932   dynamic_linker='GNU ld.so'
9933   ;;
9934
9935 netbsd*)
9936   version_type=sunos
9937   need_lib_prefix=no
9938   need_version=no
9939   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9940     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9941     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9942     dynamic_linker='NetBSD (a.out) ld.so'
9943   else
9944     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9945     soname_spec='${libname}${release}${shared_ext}$major'
9946     dynamic_linker='NetBSD ld.elf_so'
9947   fi
9948   shlibpath_var=LD_LIBRARY_PATH
9949   shlibpath_overrides_runpath=yes
9950   hardcode_into_libs=yes
9951   ;;
9952
9953 newsos6)
9954   version_type=linux
9955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956   shlibpath_var=LD_LIBRARY_PATH
9957   shlibpath_overrides_runpath=yes
9958   ;;
9959
9960 nto-qnx*)
9961   version_type=linux
9962   need_lib_prefix=no
9963   need_version=no
9964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965   soname_spec='${libname}${release}${shared_ext}$major'
9966   shlibpath_var=LD_LIBRARY_PATH
9967   shlibpath_overrides_runpath=yes
9968   ;;
9969
9970 openbsd*)
9971   version_type=sunos
9972   sys_lib_dlsearch_path_spec="/usr/lib"
9973   need_lib_prefix=no
9974   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9975   case $host_os in
9976     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9977     *)                         need_version=no  ;;
9978   esac
9979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9980   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9981   shlibpath_var=LD_LIBRARY_PATH
9982   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9983     case $host_os in
9984       openbsd2.[89] | openbsd2.[89].*)
9985         shlibpath_overrides_runpath=no
9986         ;;
9987       *)
9988         shlibpath_overrides_runpath=yes
9989         ;;
9990       esac
9991   else
9992     shlibpath_overrides_runpath=yes
9993   fi
9994   ;;
9995
9996 os2*)
9997   libname_spec='$name'
9998   shrext_cmds=".dll"
9999   need_lib_prefix=no
10000   library_names_spec='$libname${shared_ext} $libname.a'
10001   dynamic_linker='OS/2 ld.exe'
10002   shlibpath_var=LIBPATH
10003   ;;
10004
10005 osf3* | osf4* | osf5*)
10006   version_type=osf
10007   need_lib_prefix=no
10008   need_version=no
10009   soname_spec='${libname}${release}${shared_ext}$major'
10010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10011   shlibpath_var=LD_LIBRARY_PATH
10012   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10013   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10014   ;;
10015
10016 solaris*)
10017   version_type=linux
10018   need_lib_prefix=no
10019   need_version=no
10020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10021   soname_spec='${libname}${release}${shared_ext}$major'
10022   shlibpath_var=LD_LIBRARY_PATH
10023   shlibpath_overrides_runpath=yes
10024   hardcode_into_libs=yes
10025   # ldd complains unless libraries are executable
10026   postinstall_cmds='chmod +x $lib'
10027   ;;
10028
10029 sunos4*)
10030   version_type=sunos
10031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10032   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10033   shlibpath_var=LD_LIBRARY_PATH
10034   shlibpath_overrides_runpath=yes
10035   if test "$with_gnu_ld" = yes; then
10036     need_lib_prefix=no
10037   fi
10038   need_version=yes
10039   ;;
10040
10041 sysv4 | sysv4.3*)
10042   version_type=linux
10043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044   soname_spec='${libname}${release}${shared_ext}$major'
10045   shlibpath_var=LD_LIBRARY_PATH
10046   case $host_vendor in
10047     sni)
10048       shlibpath_overrides_runpath=no
10049       need_lib_prefix=no
10050       export_dynamic_flag_spec='${wl}-Blargedynsym'
10051       runpath_var=LD_RUN_PATH
10052       ;;
10053     siemens)
10054       need_lib_prefix=no
10055       ;;
10056     motorola)
10057       need_lib_prefix=no
10058       need_version=no
10059       shlibpath_overrides_runpath=no
10060       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10061       ;;
10062   esac
10063   ;;
10064
10065 sysv4*MP*)
10066   if test -d /usr/nec ;then
10067     version_type=linux
10068     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10069     soname_spec='$libname${shared_ext}.$major'
10070     shlibpath_var=LD_LIBRARY_PATH
10071   fi
10072   ;;
10073
10074 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10075   version_type=freebsd-elf
10076   need_lib_prefix=no
10077   need_version=no
10078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10079   soname_spec='${libname}${release}${shared_ext}$major'
10080   shlibpath_var=LD_LIBRARY_PATH
10081   hardcode_into_libs=yes
10082   if test "$with_gnu_ld" = yes; then
10083     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10084     shlibpath_overrides_runpath=no
10085   else
10086     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10087     shlibpath_overrides_runpath=yes
10088     case $host_os in
10089       sco3.2v5*)
10090         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10091         ;;
10092     esac
10093   fi
10094   sys_lib_dlsearch_path_spec='/usr/lib'
10095   ;;
10096
10097 uts4*)
10098   version_type=linux
10099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10100   soname_spec='${libname}${release}${shared_ext}$major'
10101   shlibpath_var=LD_LIBRARY_PATH
10102   ;;
10103
10104 *)
10105   dynamic_linker=no
10106   ;;
10107 esac
10108 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10109 echo "${ECHO_T}$dynamic_linker" >&6; }
10110 test "$dynamic_linker" = no && can_build_shared=no
10111
10112 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10113 if test "$GCC" = yes; then
10114   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10115 fi
10116
10117
10118 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10119 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10120 if test "${libltdl_cv_shlibext+set}" = set; then
10121   echo $ECHO_N "(cached) $ECHO_C" >&6
10122 else
10123
10124 module=yes
10125 eval libltdl_cv_shlibext=$shrext_cmds
10126
10127 fi
10128 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10129 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10130 if test -n "$libltdl_cv_shlibext"; then
10131
10132 cat >>confdefs.h <<_ACEOF
10133 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10134 _ACEOF
10135
10136 fi
10137
10138
10139 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10140 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10141 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10142   echo $ECHO_N "(cached) $ECHO_C" >&6
10143 else
10144   libltdl_cv_shlibpath_var="$shlibpath_var"
10145 fi
10146 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10147 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10148 if test -n "$libltdl_cv_shlibpath_var"; then
10149
10150 cat >>confdefs.h <<_ACEOF
10151 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10152 _ACEOF
10153
10154 fi
10155
10156
10157 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10158 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10159 if test "${libltdl_cv_sys_search_path+set}" = set; then
10160   echo $ECHO_N "(cached) $ECHO_C" >&6
10161 else
10162   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10163 fi
10164 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10165 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10166 if test -n "$libltdl_cv_sys_search_path"; then
10167   sys_search_path=
10168   for dir in $libltdl_cv_sys_search_path; do
10169     if test -z "$sys_search_path"; then
10170       sys_search_path="$dir"
10171     else
10172       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10173     fi
10174   done
10175
10176 cat >>confdefs.h <<_ACEOF
10177 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10178 _ACEOF
10179
10180 fi
10181
10182 { echo "$as_me:$LINENO: checking for objdir" >&5
10183 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10184 if test "${libltdl_cv_objdir+set}" = set; then
10185   echo $ECHO_N "(cached) $ECHO_C" >&6
10186 else
10187   libltdl_cv_objdir="$objdir"
10188   if test -n "$objdir"; then
10189     :
10190   else
10191     rm -f .libs 2>/dev/null
10192     mkdir .libs 2>/dev/null
10193     if test -d .libs; then
10194       libltdl_cv_objdir=.libs
10195     else
10196       # MS-DOS does not allow filenames that begin with a dot.
10197       libltdl_cv_objdir=_libs
10198     fi
10199   rmdir .libs 2>/dev/null
10200   fi
10201
10202 fi
10203 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10204 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10205
10206 cat >>confdefs.h <<_ACEOF
10207 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10208 _ACEOF
10209
10210
10211
10212
10213
10214
10215 # Check for command to grab the raw symbol name followed by C symbol from nm.
10216 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10217 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10218 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10219   echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221
10222 # These are sane defaults that work on at least a few old systems.
10223 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10224
10225 # Character class describing NM global symbol codes.
10226 symcode='[BCDEGRST]'
10227
10228 # Regexp to match symbols that can be accessed directly from C.
10229 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10230
10231 # Transform an extracted symbol line into a proper C declaration
10232 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10233
10234 # Transform an extracted symbol line into symbol name and symbol address
10235 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'"
10236
10237 # Define system-specific variables.
10238 case $host_os in
10239 aix*)
10240   symcode='[BCDT]'
10241   ;;
10242 cygwin* | mingw* | pw32*)
10243   symcode='[ABCDGISTW]'
10244   ;;
10245 hpux*) # Its linker distinguishes data from code symbols
10246   if test "$host_cpu" = ia64; then
10247     symcode='[ABCDEGRST]'
10248   fi
10249   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10250   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'"
10251   ;;
10252 linux*)
10253   if test "$host_cpu" = ia64; then
10254     symcode='[ABCDGIRSTW]'
10255     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10256     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'"
10257   fi
10258   ;;
10259 irix* | nonstopux*)
10260   symcode='[BCDEGRST]'
10261   ;;
10262 osf*)
10263   symcode='[BCDEGQRST]'
10264   ;;
10265 solaris*)
10266   symcode='[BDRT]'
10267   ;;
10268 sco3.2v5*)
10269   symcode='[DT]'
10270   ;;
10271 sysv4.2uw2*)
10272   symcode='[DT]'
10273   ;;
10274 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10275   symcode='[ABDT]'
10276   ;;
10277 sysv4)
10278   symcode='[DFNSTU]'
10279   ;;
10280 esac
10281
10282 # Handle CRLF in mingw tool chain
10283 opt_cr=
10284 case $build_os in
10285 mingw*)
10286   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10287   ;;
10288 esac
10289
10290 # If we're using GNU nm, then use its standard symbol codes.
10291 case `$NM -V 2>&1` in
10292 *GNU* | *'with BFD'*)
10293   symcode='[ABCDGIRSTW]' ;;
10294 esac
10295
10296 # Try without a prefix undercore, then with it.
10297 for ac_symprfx in "" "_"; do
10298
10299   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10300   symxfrm="\\1 $ac_symprfx\\2 \\2"
10301
10302   # Write the raw and C identifiers.
10303   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10304
10305   # Check to see that the pipe works correctly.
10306   pipe_works=no
10307
10308   rm -f conftest*
10309   cat > conftest.$ac_ext <<EOF
10310 #ifdef __cplusplus
10311 extern "C" {
10312 #endif
10313 char nm_test_var;
10314 void nm_test_func(){}
10315 #ifdef __cplusplus
10316 }
10317 #endif
10318 int main(){nm_test_var='a';nm_test_func();return(0);}
10319 EOF
10320
10321   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10322   (eval $ac_compile) 2>&5
10323   ac_status=$?
10324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325   (exit $ac_status); }; then
10326     # Now try to grab the symbols.
10327     nlist=conftest.nm
10328     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10329   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10330   ac_status=$?
10331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332   (exit $ac_status); } && test -s "$nlist"; then
10333       # Try sorting and uniquifying the output.
10334       if sort "$nlist" | uniq > "$nlist"T; then
10335         mv -f "$nlist"T "$nlist"
10336       else
10337         rm -f "$nlist"T
10338       fi
10339
10340       # Make sure that we snagged all the symbols we need.
10341       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10342         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10343           cat <<EOF > conftest.$ac_ext
10344 #ifdef __cplusplus
10345 extern "C" {
10346 #endif
10347
10348 EOF
10349           # Now generate the symbol file.
10350           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10351
10352           cat <<EOF >> conftest.$ac_ext
10353 #if defined (__STDC__) && __STDC__
10354 # define lt_ptr_t void *
10355 #else
10356 # define lt_ptr_t char *
10357 # define const
10358 #endif
10359
10360 /* The mapping between symbol names and symbols. */
10361 const struct {
10362   const char *name;
10363   lt_ptr_t address;
10364 }
10365 lt_preloaded_symbols[] =
10366 {
10367 EOF
10368           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10369           cat <<\EOF >> conftest.$ac_ext
10370   {0, (lt_ptr_t) 0}
10371 };
10372
10373 #ifdef __cplusplus
10374 }
10375 #endif
10376 EOF
10377           # Now try linking the two files.
10378           mv conftest.$ac_objext conftstm.$ac_objext
10379           lt_save_LIBS="$LIBS"
10380           lt_save_CFLAGS="$CFLAGS"
10381           LIBS="conftstm.$ac_objext"
10382           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10383           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10384   (eval $ac_link) 2>&5
10385   ac_status=$?
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10388             pipe_works=yes
10389           fi
10390           LIBS="$lt_save_LIBS"
10391           CFLAGS="$lt_save_CFLAGS"
10392         else
10393           echo "cannot find nm_test_func in $nlist" >&5
10394         fi
10395       else
10396         echo "cannot find nm_test_var in $nlist" >&5
10397       fi
10398     else
10399       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10400     fi
10401   else
10402     echo "$progname: failed program was:" >&5
10403     cat conftest.$ac_ext >&5
10404   fi
10405   rm -f conftest* conftst*
10406
10407   # Do not use the global_symbol_pipe unless it works.
10408   if test "$pipe_works" = yes; then
10409     break
10410   else
10411     lt_cv_sys_global_symbol_pipe=
10412   fi
10413 done
10414
10415 fi
10416
10417 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10418   lt_cv_sys_global_symbol_to_cdecl=
10419 fi
10420 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10421   { echo "$as_me:$LINENO: result: failed" >&5
10422 echo "${ECHO_T}failed" >&6; }
10423 else
10424   { echo "$as_me:$LINENO: result: ok" >&5
10425 echo "${ECHO_T}ok" >&6; }
10426 fi
10427
10428
10429 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10430 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10431 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10432   echo $ECHO_N "(cached) $ECHO_C" >&6
10433 else
10434   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10435     libltdl_cv_preloaded_symbols=yes
10436   else
10437     libltdl_cv_preloaded_symbols=no
10438   fi
10439
10440 fi
10441 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10442 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10443 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10444
10445 cat >>confdefs.h <<\_ACEOF
10446 #define HAVE_PRELOADED_SYMBOLS 1
10447 _ACEOF
10448
10449 fi
10450
10451 LIBADD_DL=
10452
10453 ac_ext=c
10454 ac_cpp='$CPP $CPPFLAGS'
10455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10458
10459
10460 { echo "$as_me:$LINENO: checking for shl_load" >&5
10461 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10462 if test "${ac_cv_func_shl_load+set}" = set; then
10463   echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465   cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h.  */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h.  */
10471 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10472    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10473 #define shl_load innocuous_shl_load
10474
10475 /* System header to define __stub macros and hopefully few prototypes,
10476     which can conflict with char shl_load (); below.
10477     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10478     <limits.h> exists even on freestanding compilers.  */
10479
10480 #ifdef __STDC__
10481 # include <limits.h>
10482 #else
10483 # include <assert.h>
10484 #endif
10485
10486 #undef shl_load
10487
10488 /* Override any GCC internal prototype to avoid an error.
10489    Use char because int might match the return type of a GCC
10490    builtin and then its argument prototype would still apply.  */
10491 #ifdef __cplusplus
10492 extern "C"
10493 #endif
10494 char shl_load ();
10495 /* The GNU C library defines this for functions which it implements
10496     to always fail with ENOSYS.  Some functions are actually named
10497     something starting with __ and the normal name is an alias.  */
10498 #if defined __stub_shl_load || defined __stub___shl_load
10499 choke me
10500 #endif
10501
10502 int
10503 main ()
10504 {
10505 return shl_load ();
10506   ;
10507   return 0;
10508 }
10509 _ACEOF
10510 rm -f conftest.$ac_objext conftest$ac_exeext
10511 if { (ac_try="$ac_link"
10512 case "(($ac_try" in
10513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514   *) ac_try_echo=$ac_try;;
10515 esac
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517   (eval "$ac_link") 2>conftest.er1
10518   ac_status=$?
10519   grep -v '^ *+' conftest.er1 >conftest.err
10520   rm -f conftest.er1
10521   cat conftest.err >&5
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); } &&
10524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10525   { (case "(($ac_try" in
10526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527   *) ac_try_echo=$ac_try;;
10528 esac
10529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530   (eval "$ac_try") 2>&5
10531   ac_status=$?
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); }; } &&
10534          { ac_try='test -s conftest$ac_exeext'
10535   { (case "(($ac_try" in
10536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537   *) ac_try_echo=$ac_try;;
10538 esac
10539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540   (eval "$ac_try") 2>&5
10541   ac_status=$?
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); }; }; then
10544   ac_cv_func_shl_load=yes
10545 else
10546   echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10548
10549         ac_cv_func_shl_load=no
10550 fi
10551
10552 rm -f core conftest.err conftest.$ac_objext \
10553       conftest$ac_exeext conftest.$ac_ext
10554 fi
10555 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10556 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10557 if test $ac_cv_func_shl_load = yes; then
10558
10559 cat >>confdefs.h <<\_ACEOF
10560 #define HAVE_SHL_LOAD 1
10561 _ACEOF
10562
10563 else
10564   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10565 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10566 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10567   echo $ECHO_N "(cached) $ECHO_C" >&6
10568 else
10569   ac_check_lib_save_LIBS=$LIBS
10570 LIBS="-ldld  $LIBS"
10571 cat >conftest.$ac_ext <<_ACEOF
10572 /* confdefs.h.  */
10573 _ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h.  */
10577
10578 /* Override any GCC internal prototype to avoid an error.
10579    Use char because int might match the return type of a GCC
10580    builtin and then its argument prototype would still apply.  */
10581 #ifdef __cplusplus
10582 extern "C"
10583 #endif
10584 char shl_load ();
10585 int
10586 main ()
10587 {
10588 return shl_load ();
10589   ;
10590   return 0;
10591 }
10592 _ACEOF
10593 rm -f conftest.$ac_objext conftest$ac_exeext
10594 if { (ac_try="$ac_link"
10595 case "(($ac_try" in
10596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597   *) ac_try_echo=$ac_try;;
10598 esac
10599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600   (eval "$ac_link") 2>conftest.er1
10601   ac_status=$?
10602   grep -v '^ *+' conftest.er1 >conftest.err
10603   rm -f conftest.er1
10604   cat conftest.err >&5
10605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606   (exit $ac_status); } &&
10607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10608   { (case "(($ac_try" in
10609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610   *) ac_try_echo=$ac_try;;
10611 esac
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613   (eval "$ac_try") 2>&5
10614   ac_status=$?
10615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616   (exit $ac_status); }; } &&
10617          { ac_try='test -s conftest$ac_exeext'
10618   { (case "(($ac_try" in
10619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620   *) ac_try_echo=$ac_try;;
10621 esac
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623   (eval "$ac_try") 2>&5
10624   ac_status=$?
10625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626   (exit $ac_status); }; }; then
10627   ac_cv_lib_dld_shl_load=yes
10628 else
10629   echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10631
10632         ac_cv_lib_dld_shl_load=no
10633 fi
10634
10635 rm -f core conftest.err conftest.$ac_objext \
10636       conftest$ac_exeext conftest.$ac_ext
10637 LIBS=$ac_check_lib_save_LIBS
10638 fi
10639 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10640 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10641 if test $ac_cv_lib_dld_shl_load = yes; then
10642
10643 cat >>confdefs.h <<\_ACEOF
10644 #define HAVE_SHL_LOAD 1
10645 _ACEOF
10646
10647         LIBADD_DL="$LIBADD_DL -ldld"
10648 else
10649   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10650 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10651 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10652   echo $ECHO_N "(cached) $ECHO_C" >&6
10653 else
10654   ac_check_lib_save_LIBS=$LIBS
10655 LIBS="-ldl  $LIBS"
10656 cat >conftest.$ac_ext <<_ACEOF
10657 /* confdefs.h.  */
10658 _ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h.  */
10662
10663 /* Override any GCC internal prototype to avoid an error.
10664    Use char because int might match the return type of a GCC
10665    builtin and then its argument prototype would still apply.  */
10666 #ifdef __cplusplus
10667 extern "C"
10668 #endif
10669 char dlopen ();
10670 int
10671 main ()
10672 {
10673 return dlopen ();
10674   ;
10675   return 0;
10676 }
10677 _ACEOF
10678 rm -f conftest.$ac_objext conftest$ac_exeext
10679 if { (ac_try="$ac_link"
10680 case "(($ac_try" in
10681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682   *) ac_try_echo=$ac_try;;
10683 esac
10684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685   (eval "$ac_link") 2>conftest.er1
10686   ac_status=$?
10687   grep -v '^ *+' conftest.er1 >conftest.err
10688   rm -f conftest.er1
10689   cat conftest.err >&5
10690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691   (exit $ac_status); } &&
10692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10693   { (case "(($ac_try" in
10694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695   *) ac_try_echo=$ac_try;;
10696 esac
10697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698   (eval "$ac_try") 2>&5
10699   ac_status=$?
10700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701   (exit $ac_status); }; } &&
10702          { ac_try='test -s conftest$ac_exeext'
10703   { (case "(($ac_try" in
10704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705   *) ac_try_echo=$ac_try;;
10706 esac
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708   (eval "$ac_try") 2>&5
10709   ac_status=$?
10710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711   (exit $ac_status); }; }; then
10712   ac_cv_lib_dl_dlopen=yes
10713 else
10714   echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10716
10717         ac_cv_lib_dl_dlopen=no
10718 fi
10719
10720 rm -f core conftest.err conftest.$ac_objext \
10721       conftest$ac_exeext conftest.$ac_ext
10722 LIBS=$ac_check_lib_save_LIBS
10723 fi
10724 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10725 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10726 if test $ac_cv_lib_dl_dlopen = yes; then
10727
10728 cat >>confdefs.h <<\_ACEOF
10729 #define HAVE_LIBDL 1
10730 _ACEOF
10731
10732                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10733 else
10734   cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h.  */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h.  */
10740 #if HAVE_DLFCN_H
10741 #  include <dlfcn.h>
10742 #endif
10743
10744 int
10745 main ()
10746 {
10747 dlopen(0, 0);
10748   ;
10749   return 0;
10750 }
10751 _ACEOF
10752 rm -f conftest.$ac_objext conftest$ac_exeext
10753 if { (ac_try="$ac_link"
10754 case "(($ac_try" in
10755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756   *) ac_try_echo=$ac_try;;
10757 esac
10758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759   (eval "$ac_link") 2>conftest.er1
10760   ac_status=$?
10761   grep -v '^ *+' conftest.er1 >conftest.err
10762   rm -f conftest.er1
10763   cat conftest.err >&5
10764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765   (exit $ac_status); } &&
10766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10767   { (case "(($ac_try" in
10768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769   *) ac_try_echo=$ac_try;;
10770 esac
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772   (eval "$ac_try") 2>&5
10773   ac_status=$?
10774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); }; } &&
10776          { ac_try='test -s conftest$ac_exeext'
10777   { (case "(($ac_try" in
10778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779   *) ac_try_echo=$ac_try;;
10780 esac
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782   (eval "$ac_try") 2>&5
10783   ac_status=$?
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); }; }; then
10786
10787 cat >>confdefs.h <<\_ACEOF
10788 #define HAVE_LIBDL 1
10789 _ACEOF
10790  libltdl_cv_func_dlopen="yes"
10791 else
10792   echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10794
10795         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10796 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10797 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10798   echo $ECHO_N "(cached) $ECHO_C" >&6
10799 else
10800   ac_check_lib_save_LIBS=$LIBS
10801 LIBS="-lsvld  $LIBS"
10802 cat >conftest.$ac_ext <<_ACEOF
10803 /* confdefs.h.  */
10804 _ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h.  */
10808
10809 /* Override any GCC internal prototype to avoid an error.
10810    Use char because int might match the return type of a GCC
10811    builtin and then its argument prototype would still apply.  */
10812 #ifdef __cplusplus
10813 extern "C"
10814 #endif
10815 char dlopen ();
10816 int
10817 main ()
10818 {
10819 return dlopen ();
10820   ;
10821   return 0;
10822 }
10823 _ACEOF
10824 rm -f conftest.$ac_objext conftest$ac_exeext
10825 if { (ac_try="$ac_link"
10826 case "(($ac_try" in
10827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828   *) ac_try_echo=$ac_try;;
10829 esac
10830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831   (eval "$ac_link") 2>conftest.er1
10832   ac_status=$?
10833   grep -v '^ *+' conftest.er1 >conftest.err
10834   rm -f conftest.er1
10835   cat conftest.err >&5
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); } &&
10838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10839   { (case "(($ac_try" in
10840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841   *) ac_try_echo=$ac_try;;
10842 esac
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844   (eval "$ac_try") 2>&5
10845   ac_status=$?
10846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847   (exit $ac_status); }; } &&
10848          { ac_try='test -s conftest$ac_exeext'
10849   { (case "(($ac_try" in
10850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851   *) ac_try_echo=$ac_try;;
10852 esac
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854   (eval "$ac_try") 2>&5
10855   ac_status=$?
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); }; }; then
10858   ac_cv_lib_svld_dlopen=yes
10859 else
10860   echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10862
10863         ac_cv_lib_svld_dlopen=no
10864 fi
10865
10866 rm -f core conftest.err conftest.$ac_objext \
10867       conftest$ac_exeext conftest.$ac_ext
10868 LIBS=$ac_check_lib_save_LIBS
10869 fi
10870 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10871 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10872 if test $ac_cv_lib_svld_dlopen = yes; then
10873
10874 cat >>confdefs.h <<\_ACEOF
10875 #define HAVE_LIBDL 1
10876 _ACEOF
10877
10878                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10879 else
10880   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10881 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10882 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10883   echo $ECHO_N "(cached) $ECHO_C" >&6
10884 else
10885   ac_check_lib_save_LIBS=$LIBS
10886 LIBS="-ldld  $LIBS"
10887 cat >conftest.$ac_ext <<_ACEOF
10888 /* confdefs.h.  */
10889 _ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h.  */
10893
10894 /* Override any GCC internal prototype to avoid an error.
10895    Use char because int might match the return type of a GCC
10896    builtin and then its argument prototype would still apply.  */
10897 #ifdef __cplusplus
10898 extern "C"
10899 #endif
10900 char dld_link ();
10901 int
10902 main ()
10903 {
10904 return dld_link ();
10905   ;
10906   return 0;
10907 }
10908 _ACEOF
10909 rm -f conftest.$ac_objext conftest$ac_exeext
10910 if { (ac_try="$ac_link"
10911 case "(($ac_try" in
10912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913   *) ac_try_echo=$ac_try;;
10914 esac
10915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916   (eval "$ac_link") 2>conftest.er1
10917   ac_status=$?
10918   grep -v '^ *+' conftest.er1 >conftest.err
10919   rm -f conftest.er1
10920   cat conftest.err >&5
10921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922   (exit $ac_status); } &&
10923          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10924   { (case "(($ac_try" in
10925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926   *) ac_try_echo=$ac_try;;
10927 esac
10928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929   (eval "$ac_try") 2>&5
10930   ac_status=$?
10931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932   (exit $ac_status); }; } &&
10933          { ac_try='test -s conftest$ac_exeext'
10934   { (case "(($ac_try" in
10935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936   *) ac_try_echo=$ac_try;;
10937 esac
10938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939   (eval "$ac_try") 2>&5
10940   ac_status=$?
10941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942   (exit $ac_status); }; }; then
10943   ac_cv_lib_dld_dld_link=yes
10944 else
10945   echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10947
10948         ac_cv_lib_dld_dld_link=no
10949 fi
10950
10951 rm -f core conftest.err conftest.$ac_objext \
10952       conftest$ac_exeext conftest.$ac_ext
10953 LIBS=$ac_check_lib_save_LIBS
10954 fi
10955 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10956 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10957 if test $ac_cv_lib_dld_dld_link = yes; then
10958
10959 cat >>confdefs.h <<\_ACEOF
10960 #define HAVE_DLD 1
10961 _ACEOF
10962
10963                 LIBADD_DL="$LIBADD_DL -ldld"
10964 else
10965   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10966 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10967 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10968   echo $ECHO_N "(cached) $ECHO_C" >&6
10969 else
10970   cat >conftest.$ac_ext <<_ACEOF
10971 /* confdefs.h.  */
10972 _ACEOF
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h.  */
10976 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10978 #define _dyld_func_lookup innocuous__dyld_func_lookup
10979
10980 /* System header to define __stub macros and hopefully few prototypes,
10981     which can conflict with char _dyld_func_lookup (); below.
10982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10983     <limits.h> exists even on freestanding compilers.  */
10984
10985 #ifdef __STDC__
10986 # include <limits.h>
10987 #else
10988 # include <assert.h>
10989 #endif
10990
10991 #undef _dyld_func_lookup
10992
10993 /* Override any GCC internal prototype to avoid an error.
10994    Use char because int might match the return type of a GCC
10995    builtin and then its argument prototype would still apply.  */
10996 #ifdef __cplusplus
10997 extern "C"
10998 #endif
10999 char _dyld_func_lookup ();
11000 /* The GNU C library defines this for functions which it implements
11001     to always fail with ENOSYS.  Some functions are actually named
11002     something starting with __ and the normal name is an alias.  */
11003 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11004 choke me
11005 #endif
11006
11007 int
11008 main ()
11009 {
11010 return _dyld_func_lookup ();
11011   ;
11012   return 0;
11013 }
11014 _ACEOF
11015 rm -f conftest.$ac_objext conftest$ac_exeext
11016 if { (ac_try="$ac_link"
11017 case "(($ac_try" in
11018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019   *) ac_try_echo=$ac_try;;
11020 esac
11021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022   (eval "$ac_link") 2>conftest.er1
11023   ac_status=$?
11024   grep -v '^ *+' conftest.er1 >conftest.err
11025   rm -f conftest.er1
11026   cat conftest.err >&5
11027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028   (exit $ac_status); } &&
11029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11030   { (case "(($ac_try" in
11031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032   *) ac_try_echo=$ac_try;;
11033 esac
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035   (eval "$ac_try") 2>&5
11036   ac_status=$?
11037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); }; } &&
11039          { ac_try='test -s conftest$ac_exeext'
11040   { (case "(($ac_try" in
11041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042   *) ac_try_echo=$ac_try;;
11043 esac
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045   (eval "$ac_try") 2>&5
11046   ac_status=$?
11047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048   (exit $ac_status); }; }; then
11049   ac_cv_func__dyld_func_lookup=yes
11050 else
11051   echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11053
11054         ac_cv_func__dyld_func_lookup=no
11055 fi
11056
11057 rm -f core conftest.err conftest.$ac_objext \
11058       conftest$ac_exeext conftest.$ac_ext
11059 fi
11060 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11061 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11062 if test $ac_cv_func__dyld_func_lookup = yes; then
11063
11064 cat >>confdefs.h <<\_ACEOF
11065 #define HAVE_DYLD 1
11066 _ACEOF
11067
11068 fi
11069
11070
11071 fi
11072
11073
11074 fi
11075
11076
11077 fi
11078
11079 rm -f core conftest.err conftest.$ac_objext \
11080       conftest$ac_exeext conftest.$ac_ext
11081
11082 fi
11083
11084
11085 fi
11086
11087
11088 fi
11089
11090
11091 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11092 then
11093   lt_save_LIBS="$LIBS"
11094   LIBS="$LIBS $LIBADD_DL"
11095
11096 for ac_func in dlerror
11097 do
11098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11102   echo $ECHO_N "(cached) $ECHO_C" >&6
11103 else
11104   cat >conftest.$ac_ext <<_ACEOF
11105 /* confdefs.h.  */
11106 _ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h.  */
11110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11111    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11112 #define $ac_func innocuous_$ac_func
11113
11114 /* System header to define __stub macros and hopefully few prototypes,
11115     which can conflict with char $ac_func (); below.
11116     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11117     <limits.h> exists even on freestanding compilers.  */
11118
11119 #ifdef __STDC__
11120 # include <limits.h>
11121 #else
11122 # include <assert.h>
11123 #endif
11124
11125 #undef $ac_func
11126
11127 /* Override any GCC internal prototype to avoid an error.
11128    Use char because int might match the return type of a GCC
11129    builtin and then its argument prototype would still apply.  */
11130 #ifdef __cplusplus
11131 extern "C"
11132 #endif
11133 char $ac_func ();
11134 /* The GNU C library defines this for functions which it implements
11135     to always fail with ENOSYS.  Some functions are actually named
11136     something starting with __ and the normal name is an alias.  */
11137 #if defined __stub_$ac_func || defined __stub___$ac_func
11138 choke me
11139 #endif
11140
11141 int
11142 main ()
11143 {
11144 return $ac_func ();
11145   ;
11146   return 0;
11147 }
11148 _ACEOF
11149 rm -f conftest.$ac_objext conftest$ac_exeext
11150 if { (ac_try="$ac_link"
11151 case "(($ac_try" in
11152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153   *) ac_try_echo=$ac_try;;
11154 esac
11155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156   (eval "$ac_link") 2>conftest.er1
11157   ac_status=$?
11158   grep -v '^ *+' conftest.er1 >conftest.err
11159   rm -f conftest.er1
11160   cat conftest.err >&5
11161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162   (exit $ac_status); } &&
11163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11164   { (case "(($ac_try" in
11165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166   *) ac_try_echo=$ac_try;;
11167 esac
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169   (eval "$ac_try") 2>&5
11170   ac_status=$?
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); }; } &&
11173          { ac_try='test -s conftest$ac_exeext'
11174   { (case "(($ac_try" in
11175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176   *) ac_try_echo=$ac_try;;
11177 esac
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179   (eval "$ac_try") 2>&5
11180   ac_status=$?
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); }; }; then
11183   eval "$as_ac_var=yes"
11184 else
11185   echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11187
11188         eval "$as_ac_var=no"
11189 fi
11190
11191 rm -f core conftest.err conftest.$ac_objext \
11192       conftest$ac_exeext conftest.$ac_ext
11193 fi
11194 ac_res=`eval echo '${'$as_ac_var'}'`
11195                { echo "$as_me:$LINENO: result: $ac_res" >&5
11196 echo "${ECHO_T}$ac_res" >&6; }
11197 if test `eval echo '${'$as_ac_var'}'` = yes; then
11198   cat >>confdefs.h <<_ACEOF
11199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11200 _ACEOF
11201
11202 fi
11203 done
11204
11205   LIBS="$lt_save_LIBS"
11206 fi
11207 ac_ext=c
11208 ac_cpp='$CPP $CPPFLAGS'
11209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11212
11213
11214
11215 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11216 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11217 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11218   echo $ECHO_N "(cached) $ECHO_C" >&6
11219 else
11220   ac_cv_sys_symbol_underscore=no
11221   cat > conftest.$ac_ext <<EOF
11222 void nm_test_func(){}
11223 int main(){nm_test_func;return 0;}
11224 EOF
11225   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11226   (eval $ac_compile) 2>&5
11227   ac_status=$?
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); }; then
11230     # Now try to grab the symbols.
11231     ac_nlist=conftest.nm
11232     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11233   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11234   ac_status=$?
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); } && test -s "$ac_nlist"; then
11237       # See whether the symbols have a leading underscore.
11238       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11239         ac_cv_sys_symbol_underscore=yes
11240       else
11241         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11242           :
11243         else
11244           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11245         fi
11246       fi
11247     else
11248       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11249     fi
11250   else
11251     echo "configure: failed program was:" >&5
11252     cat conftest.c >&5
11253   fi
11254   rm -rf conftest*
11255
11256 fi
11257 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11258 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11259
11260
11261 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11262   if test x"$libltdl_cv_func_dlopen" = xyes ||
11263      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11264         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11265 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11266 if test "${libltdl_cv_need_uscore+set}" = set; then
11267   echo $ECHO_N "(cached) $ECHO_C" >&6
11268 else
11269   libltdl_cv_need_uscore=unknown
11270           save_LIBS="$LIBS"
11271           LIBS="$LIBS $LIBADD_DL"
11272           if test "$cross_compiling" = yes; then :
11273   libltdl_cv_need_uscore=cross
11274 else
11275   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11276   lt_status=$lt_dlunknown
11277   cat > conftest.$ac_ext <<EOF
11278 #line 11278 "configure"
11279 #include "confdefs.h"
11280
11281 #if HAVE_DLFCN_H
11282 #include <dlfcn.h>
11283 #endif
11284
11285 #include <stdio.h>
11286
11287 #ifdef RTLD_GLOBAL
11288 #  define LT_DLGLOBAL           RTLD_GLOBAL
11289 #else
11290 #  ifdef DL_GLOBAL
11291 #    define LT_DLGLOBAL         DL_GLOBAL
11292 #  else
11293 #    define LT_DLGLOBAL         0
11294 #  endif
11295 #endif
11296
11297 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11298    find out it does not work in some platform. */
11299 #ifndef LT_DLLAZY_OR_NOW
11300 #  ifdef RTLD_LAZY
11301 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11302 #  else
11303 #    ifdef DL_LAZY
11304 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11305 #    else
11306 #      ifdef RTLD_NOW
11307 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11308 #      else
11309 #        ifdef DL_NOW
11310 #          define LT_DLLAZY_OR_NOW      DL_NOW
11311 #        else
11312 #          define LT_DLLAZY_OR_NOW      0
11313 #        endif
11314 #      endif
11315 #    endif
11316 #  endif
11317 #endif
11318
11319 #ifdef __cplusplus
11320 extern "C" void exit (int);
11321 #endif
11322
11323 void fnord() { int i=42;}
11324 int main ()
11325 {
11326   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11327   int status = $lt_dlunknown;
11328
11329   if (self)
11330     {
11331       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11332       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11333       /* dlclose (self); */
11334     }
11335   else
11336     puts (dlerror ());
11337
11338     exit (status);
11339 }
11340 EOF
11341   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11342   (eval $ac_link) 2>&5
11343   ac_status=$?
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11346     (./conftest; exit; ) >&5 2>/dev/null
11347     lt_status=$?
11348     case x$lt_status in
11349       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11350       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11351       x$lt_dlunknown|x*)  ;;
11352     esac
11353   else :
11354     # compilation failed
11355
11356   fi
11357 fi
11358 rm -fr conftest*
11359
11360           LIBS="$save_LIBS"
11361
11362 fi
11363 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11364 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11365   fi
11366 fi
11367
11368 if test x"$libltdl_cv_need_uscore" = xyes; then
11369
11370 cat >>confdefs.h <<\_ACEOF
11371 #define NEED_USCORE 1
11372 _ACEOF
11373
11374 fi
11375
11376
11377 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11378 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11379 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11380   echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382   # PORTME does your system automatically load deplibs for dlopen?
11383   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11384   # For now, we just catch OSes we know something about -- in the
11385   # future, we'll try test this programmatically.
11386   libltdl_cv_sys_dlopen_deplibs=unknown
11387   case "$host_os" in
11388   aix3*|aix4.1.*|aix4.2.*)
11389     # Unknown whether this is true for these versions of AIX, but
11390     # we want this `case' here to explicitly catch those versions.
11391     libltdl_cv_sys_dlopen_deplibs=unknown
11392     ;;
11393   aix[45]*)
11394     libltdl_cv_sys_dlopen_deplibs=yes
11395     ;;
11396   darwin*)
11397     # Assuming the user has installed a libdl from somewhere, this is true
11398     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11399     libltdl_cv_sys_dlopen_deplibs=yes
11400     ;;
11401   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11402     # GNU and its variants, using gnu ld.so (Glibc)
11403     libltdl_cv_sys_dlopen_deplibs=yes
11404     ;;
11405   hpux10*|hpux11*)
11406     libltdl_cv_sys_dlopen_deplibs=yes
11407     ;;
11408   interix*)
11409     libltdl_cv_sys_dlopen_deplibs=yes
11410     ;;
11411   irix[12345]*|irix6.[01]*)
11412     # Catch all versions of IRIX before 6.2, and indicate that we don't
11413     # know how it worked for any of those versions.
11414     libltdl_cv_sys_dlopen_deplibs=unknown
11415     ;;
11416   irix*)
11417     # The case above catches anything before 6.2, and it's known that
11418     # at 6.2 and later dlopen does load deplibs.
11419     libltdl_cv_sys_dlopen_deplibs=yes
11420     ;;
11421   netbsd*)
11422     libltdl_cv_sys_dlopen_deplibs=yes
11423     ;;
11424   openbsd*)
11425     libltdl_cv_sys_dlopen_deplibs=yes
11426     ;;
11427   osf[1234]*)
11428     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11429     # it did *not* use an RPATH in a shared library to find objects the
11430     # library depends on, so we explictly say `no'.
11431     libltdl_cv_sys_dlopen_deplibs=no
11432     ;;
11433   osf5.0|osf5.0a|osf5.1)
11434     # dlopen *does* load deplibs and with the right loader patch applied
11435     # it even uses RPATH in a shared library to search for shared objects
11436     # that the library depends on, but there's no easy way to know if that
11437     # patch is installed.  Since this is the case, all we can really
11438     # say is unknown -- it depends on the patch being installed.  If
11439     # it is, this changes to `yes'.  Without it, it would be `no'.
11440     libltdl_cv_sys_dlopen_deplibs=unknown
11441     ;;
11442   osf*)
11443     # the two cases above should catch all versions of osf <= 5.1.  Read
11444     # the comments above for what we know about them.
11445     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11446     # is used to find them so we can finally say `yes'.
11447     libltdl_cv_sys_dlopen_deplibs=yes
11448     ;;
11449   solaris*)
11450     libltdl_cv_sys_dlopen_deplibs=yes
11451     ;;
11452   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11453     libltdl_cv_sys_dlopen_deplibs=yes
11454     ;;
11455   esac
11456
11457 fi
11458 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11459 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11460 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11461
11462 cat >>confdefs.h <<\_ACEOF
11463 #define LTDL_DLOPEN_DEPLIBS 1
11464 _ACEOF
11465
11466 fi
11467
11468
11469 for ac_header in argz.h
11470 do
11471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11473   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11476   echo $ECHO_N "(cached) $ECHO_C" >&6
11477 fi
11478 ac_res=`eval echo '${'$as_ac_Header'}'`
11479                { echo "$as_me:$LINENO: result: $ac_res" >&5
11480 echo "${ECHO_T}$ac_res" >&6; }
11481 else
11482   # Is the header compilable?
11483 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11485 cat >conftest.$ac_ext <<_ACEOF
11486 /* confdefs.h.  */
11487 _ACEOF
11488 cat confdefs.h >>conftest.$ac_ext
11489 cat >>conftest.$ac_ext <<_ACEOF
11490 /* end confdefs.h.  */
11491 $ac_includes_default
11492 #include <$ac_header>
11493 _ACEOF
11494 rm -f conftest.$ac_objext
11495 if { (ac_try="$ac_compile"
11496 case "(($ac_try" in
11497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498   *) ac_try_echo=$ac_try;;
11499 esac
11500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501   (eval "$ac_compile") 2>conftest.er1
11502   ac_status=$?
11503   grep -v '^ *+' conftest.er1 >conftest.err
11504   rm -f conftest.er1
11505   cat conftest.err >&5
11506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507   (exit $ac_status); } &&
11508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11509   { (case "(($ac_try" in
11510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511   *) ac_try_echo=$ac_try;;
11512 esac
11513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514   (eval "$ac_try") 2>&5
11515   ac_status=$?
11516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517   (exit $ac_status); }; } &&
11518          { ac_try='test -s conftest.$ac_objext'
11519   { (case "(($ac_try" in
11520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521   *) ac_try_echo=$ac_try;;
11522 esac
11523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524   (eval "$ac_try") 2>&5
11525   ac_status=$?
11526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527   (exit $ac_status); }; }; then
11528   ac_header_compiler=yes
11529 else
11530   echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11532
11533         ac_header_compiler=no
11534 fi
11535
11536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11538 echo "${ECHO_T}$ac_header_compiler" >&6; }
11539
11540 # Is the header present?
11541 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11543 cat >conftest.$ac_ext <<_ACEOF
11544 /* confdefs.h.  */
11545 _ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h.  */
11549 #include <$ac_header>
11550 _ACEOF
11551 if { (ac_try="$ac_cpp conftest.$ac_ext"
11552 case "(($ac_try" in
11553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554   *) ac_try_echo=$ac_try;;
11555 esac
11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11558   ac_status=$?
11559   grep -v '^ *+' conftest.er1 >conftest.err
11560   rm -f conftest.er1
11561   cat conftest.err >&5
11562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563   (exit $ac_status); } >/dev/null; then
11564   if test -s conftest.err; then
11565     ac_cpp_err=$ac_c_preproc_warn_flag
11566     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11567   else
11568     ac_cpp_err=
11569   fi
11570 else
11571   ac_cpp_err=yes
11572 fi
11573 if test -z "$ac_cpp_err"; then
11574   ac_header_preproc=yes
11575 else
11576   echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11578
11579   ac_header_preproc=no
11580 fi
11581
11582 rm -f conftest.err conftest.$ac_ext
11583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11584 echo "${ECHO_T}$ac_header_preproc" >&6; }
11585
11586 # So?  What about this header?
11587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11588   yes:no: )
11589     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11593     ac_header_preproc=yes
11594     ;;
11595   no:yes:* )
11596     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11598     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11599 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11600     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11602     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11603 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11604     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11606     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11608     ( cat <<\_ASBOX
11609 ## ----------------------------------- ##
11610 ## Report this to llvmbugs@cs.uiuc.edu ##
11611 ## ----------------------------------- ##
11612 _ASBOX
11613      ) | sed "s/^/$as_me: WARNING:     /" >&2
11614     ;;
11615 esac
11616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11619   echo $ECHO_N "(cached) $ECHO_C" >&6
11620 else
11621   eval "$as_ac_Header=\$ac_header_preproc"
11622 fi
11623 ac_res=`eval echo '${'$as_ac_Header'}'`
11624                { echo "$as_me:$LINENO: result: $ac_res" >&5
11625 echo "${ECHO_T}$ac_res" >&6; }
11626
11627 fi
11628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11629   cat >>confdefs.h <<_ACEOF
11630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11631 _ACEOF
11632
11633 fi
11634
11635 done
11636
11637
11638 { echo "$as_me:$LINENO: checking for error_t" >&5
11639 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11640 if test "${ac_cv_type_error_t+set}" = set; then
11641   echo $ECHO_N "(cached) $ECHO_C" >&6
11642 else
11643   cat >conftest.$ac_ext <<_ACEOF
11644 /* confdefs.h.  */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h.  */
11649 #if HAVE_ARGZ_H
11650 #  include <argz.h>
11651 #endif
11652
11653 typedef error_t ac__type_new_;
11654 int
11655 main ()
11656 {
11657 if ((ac__type_new_ *) 0)
11658   return 0;
11659 if (sizeof (ac__type_new_))
11660   return 0;
11661   ;
11662   return 0;
11663 }
11664 _ACEOF
11665 rm -f conftest.$ac_objext
11666 if { (ac_try="$ac_compile"
11667 case "(($ac_try" in
11668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669   *) ac_try_echo=$ac_try;;
11670 esac
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672   (eval "$ac_compile") 2>conftest.er1
11673   ac_status=$?
11674   grep -v '^ *+' conftest.er1 >conftest.err
11675   rm -f conftest.er1
11676   cat conftest.err >&5
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); } &&
11679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11680   { (case "(($ac_try" in
11681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682   *) ac_try_echo=$ac_try;;
11683 esac
11684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11685   (eval "$ac_try") 2>&5
11686   ac_status=$?
11687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); }; } &&
11689          { ac_try='test -s conftest.$ac_objext'
11690   { (case "(($ac_try" in
11691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692   *) ac_try_echo=$ac_try;;
11693 esac
11694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695   (eval "$ac_try") 2>&5
11696   ac_status=$?
11697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698   (exit $ac_status); }; }; then
11699   ac_cv_type_error_t=yes
11700 else
11701   echo "$as_me: failed program was:" >&5
11702 sed 's/^/| /' conftest.$ac_ext >&5
11703
11704         ac_cv_type_error_t=no
11705 fi
11706
11707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11708 fi
11709 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11710 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11711 if test $ac_cv_type_error_t = yes; then
11712
11713 cat >>confdefs.h <<_ACEOF
11714 #define HAVE_ERROR_T 1
11715 _ACEOF
11716
11717
11718 else
11719
11720 cat >>confdefs.h <<\_ACEOF
11721 #define error_t int
11722 _ACEOF
11723
11724 fi
11725
11726
11727
11728
11729
11730
11731
11732 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11733 do
11734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11738   echo $ECHO_N "(cached) $ECHO_C" >&6
11739 else
11740   cat >conftest.$ac_ext <<_ACEOF
11741 /* confdefs.h.  */
11742 _ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h.  */
11746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11748 #define $ac_func innocuous_$ac_func
11749
11750 /* System header to define __stub macros and hopefully few prototypes,
11751     which can conflict with char $ac_func (); below.
11752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11753     <limits.h> exists even on freestanding compilers.  */
11754
11755 #ifdef __STDC__
11756 # include <limits.h>
11757 #else
11758 # include <assert.h>
11759 #endif
11760
11761 #undef $ac_func
11762
11763 /* Override any GCC internal prototype to avoid an error.
11764    Use char because int might match the return type of a GCC
11765    builtin and then its argument prototype would still apply.  */
11766 #ifdef __cplusplus
11767 extern "C"
11768 #endif
11769 char $ac_func ();
11770 /* The GNU C library defines this for functions which it implements
11771     to always fail with ENOSYS.  Some functions are actually named
11772     something starting with __ and the normal name is an alias.  */
11773 #if defined __stub_$ac_func || defined __stub___$ac_func
11774 choke me
11775 #endif
11776
11777 int
11778 main ()
11779 {
11780 return $ac_func ();
11781   ;
11782   return 0;
11783 }
11784 _ACEOF
11785 rm -f conftest.$ac_objext conftest$ac_exeext
11786 if { (ac_try="$ac_link"
11787 case "(($ac_try" in
11788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789   *) ac_try_echo=$ac_try;;
11790 esac
11791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792   (eval "$ac_link") 2>conftest.er1
11793   ac_status=$?
11794   grep -v '^ *+' conftest.er1 >conftest.err
11795   rm -f conftest.er1
11796   cat conftest.err >&5
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); } &&
11799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11800   { (case "(($ac_try" in
11801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802   *) ac_try_echo=$ac_try;;
11803 esac
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805   (eval "$ac_try") 2>&5
11806   ac_status=$?
11807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808   (exit $ac_status); }; } &&
11809          { ac_try='test -s conftest$ac_exeext'
11810   { (case "(($ac_try" in
11811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812   *) ac_try_echo=$ac_try;;
11813 esac
11814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815   (eval "$ac_try") 2>&5
11816   ac_status=$?
11817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818   (exit $ac_status); }; }; then
11819   eval "$as_ac_var=yes"
11820 else
11821   echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11823
11824         eval "$as_ac_var=no"
11825 fi
11826
11827 rm -f core conftest.err conftest.$ac_objext \
11828       conftest$ac_exeext conftest.$ac_ext
11829 fi
11830 ac_res=`eval echo '${'$as_ac_var'}'`
11831                { echo "$as_me:$LINENO: result: $ac_res" >&5
11832 echo "${ECHO_T}$ac_res" >&6; }
11833 if test `eval echo '${'$as_ac_var'}'` = yes; then
11834   cat >>confdefs.h <<_ACEOF
11835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11836 _ACEOF
11837
11838 fi
11839 done
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11869                   stdio.h unistd.h
11870 do
11871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11873   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11876   echo $ECHO_N "(cached) $ECHO_C" >&6
11877 fi
11878 ac_res=`eval echo '${'$as_ac_Header'}'`
11879                { echo "$as_me:$LINENO: result: $ac_res" >&5
11880 echo "${ECHO_T}$ac_res" >&6; }
11881 else
11882   # Is the header compilable?
11883 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11885 cat >conftest.$ac_ext <<_ACEOF
11886 /* confdefs.h.  */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h.  */
11891 $ac_includes_default
11892 #include <$ac_header>
11893 _ACEOF
11894 rm -f conftest.$ac_objext
11895 if { (ac_try="$ac_compile"
11896 case "(($ac_try" in
11897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898   *) ac_try_echo=$ac_try;;
11899 esac
11900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11901   (eval "$ac_compile") 2>conftest.er1
11902   ac_status=$?
11903   grep -v '^ *+' conftest.er1 >conftest.err
11904   rm -f conftest.er1
11905   cat conftest.err >&5
11906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907   (exit $ac_status); } &&
11908          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11909   { (case "(($ac_try" in
11910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911   *) ac_try_echo=$ac_try;;
11912 esac
11913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914   (eval "$ac_try") 2>&5
11915   ac_status=$?
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); }; } &&
11918          { ac_try='test -s conftest.$ac_objext'
11919   { (case "(($ac_try" in
11920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921   *) ac_try_echo=$ac_try;;
11922 esac
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924   (eval "$ac_try") 2>&5
11925   ac_status=$?
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); }; }; then
11928   ac_header_compiler=yes
11929 else
11930   echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11932
11933         ac_header_compiler=no
11934 fi
11935
11936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11938 echo "${ECHO_T}$ac_header_compiler" >&6; }
11939
11940 # Is the header present?
11941 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11943 cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h.  */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h.  */
11949 #include <$ac_header>
11950 _ACEOF
11951 if { (ac_try="$ac_cpp conftest.$ac_ext"
11952 case "(($ac_try" in
11953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954   *) ac_try_echo=$ac_try;;
11955 esac
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11958   ac_status=$?
11959   grep -v '^ *+' conftest.er1 >conftest.err
11960   rm -f conftest.er1
11961   cat conftest.err >&5
11962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963   (exit $ac_status); } >/dev/null; then
11964   if test -s conftest.err; then
11965     ac_cpp_err=$ac_c_preproc_warn_flag
11966     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11967   else
11968     ac_cpp_err=
11969   fi
11970 else
11971   ac_cpp_err=yes
11972 fi
11973 if test -z "$ac_cpp_err"; then
11974   ac_header_preproc=yes
11975 else
11976   echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.$ac_ext >&5
11978
11979   ac_header_preproc=no
11980 fi
11981
11982 rm -f conftest.err conftest.$ac_ext
11983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11984 echo "${ECHO_T}$ac_header_preproc" >&6; }
11985
11986 # So?  What about this header?
11987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11988   yes:no: )
11989     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11993     ac_header_preproc=yes
11994     ;;
11995   no:yes:* )
11996     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11998     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11999 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12000     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12002     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12003 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12006     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12008     ( cat <<\_ASBOX
12009 ## ----------------------------------- ##
12010 ## Report this to llvmbugs@cs.uiuc.edu ##
12011 ## ----------------------------------- ##
12012 _ASBOX
12013      ) | sed "s/^/$as_me: WARNING:     /" >&2
12014     ;;
12015 esac
12016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12019   echo $ECHO_N "(cached) $ECHO_C" >&6
12020 else
12021   eval "$as_ac_Header=\$ac_header_preproc"
12022 fi
12023 ac_res=`eval echo '${'$as_ac_Header'}'`
12024                { echo "$as_me:$LINENO: result: $ac_res" >&5
12025 echo "${ECHO_T}$ac_res" >&6; }
12026
12027 fi
12028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12029   cat >>confdefs.h <<_ACEOF
12030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12031 _ACEOF
12032
12033 fi
12034
12035 done
12036
12037
12038
12039
12040
12041 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12042 do
12043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12045   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12048   echo $ECHO_N "(cached) $ECHO_C" >&6
12049 fi
12050 ac_res=`eval echo '${'$as_ac_Header'}'`
12051                { echo "$as_me:$LINENO: result: $ac_res" >&5
12052 echo "${ECHO_T}$ac_res" >&6; }
12053 else
12054   # Is the header compilable?
12055 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12057 cat >conftest.$ac_ext <<_ACEOF
12058 /* confdefs.h.  */
12059 _ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h.  */
12063 $ac_includes_default
12064 #include <$ac_header>
12065 _ACEOF
12066 rm -f conftest.$ac_objext
12067 if { (ac_try="$ac_compile"
12068 case "(($ac_try" in
12069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070   *) ac_try_echo=$ac_try;;
12071 esac
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073   (eval "$ac_compile") 2>conftest.er1
12074   ac_status=$?
12075   grep -v '^ *+' conftest.er1 >conftest.err
12076   rm -f conftest.er1
12077   cat conftest.err >&5
12078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079   (exit $ac_status); } &&
12080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12081   { (case "(($ac_try" in
12082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083   *) ac_try_echo=$ac_try;;
12084 esac
12085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12086   (eval "$ac_try") 2>&5
12087   ac_status=$?
12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089   (exit $ac_status); }; } &&
12090          { ac_try='test -s conftest.$ac_objext'
12091   { (case "(($ac_try" in
12092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093   *) ac_try_echo=$ac_try;;
12094 esac
12095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12096   (eval "$ac_try") 2>&5
12097   ac_status=$?
12098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099   (exit $ac_status); }; }; then
12100   ac_header_compiler=yes
12101 else
12102   echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12104
12105         ac_header_compiler=no
12106 fi
12107
12108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12110 echo "${ECHO_T}$ac_header_compiler" >&6; }
12111
12112 # Is the header present?
12113 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12115 cat >conftest.$ac_ext <<_ACEOF
12116 /* confdefs.h.  */
12117 _ACEOF
12118 cat confdefs.h >>conftest.$ac_ext
12119 cat >>conftest.$ac_ext <<_ACEOF
12120 /* end confdefs.h.  */
12121 #include <$ac_header>
12122 _ACEOF
12123 if { (ac_try="$ac_cpp conftest.$ac_ext"
12124 case "(($ac_try" in
12125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126   *) ac_try_echo=$ac_try;;
12127 esac
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12130   ac_status=$?
12131   grep -v '^ *+' conftest.er1 >conftest.err
12132   rm -f conftest.er1
12133   cat conftest.err >&5
12134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135   (exit $ac_status); } >/dev/null; then
12136   if test -s conftest.err; then
12137     ac_cpp_err=$ac_c_preproc_warn_flag
12138     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12139   else
12140     ac_cpp_err=
12141   fi
12142 else
12143   ac_cpp_err=yes
12144 fi
12145 if test -z "$ac_cpp_err"; then
12146   ac_header_preproc=yes
12147 else
12148   echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12150
12151   ac_header_preproc=no
12152 fi
12153
12154 rm -f conftest.err conftest.$ac_ext
12155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12156 echo "${ECHO_T}$ac_header_preproc" >&6; }
12157
12158 # So?  What about this header?
12159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12160   yes:no: )
12161     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12165     ac_header_preproc=yes
12166     ;;
12167   no:yes:* )
12168     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12170     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12171 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12172     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12174     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12175 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12178     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12180     ( cat <<\_ASBOX
12181 ## ----------------------------------- ##
12182 ## Report this to llvmbugs@cs.uiuc.edu ##
12183 ## ----------------------------------- ##
12184 _ASBOX
12185      ) | sed "s/^/$as_me: WARNING:     /" >&2
12186     ;;
12187 esac
12188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12191   echo $ECHO_N "(cached) $ECHO_C" >&6
12192 else
12193   eval "$as_ac_Header=\$ac_header_preproc"
12194 fi
12195 ac_res=`eval echo '${'$as_ac_Header'}'`
12196                { echo "$as_me:$LINENO: result: $ac_res" >&5
12197 echo "${ECHO_T}$ac_res" >&6; }
12198
12199 fi
12200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12201   cat >>confdefs.h <<_ACEOF
12202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12203 _ACEOF
12204
12205 fi
12206
12207 done
12208
12209
12210
12211 for ac_header in string.h strings.h
12212 do
12213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12215   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12218   echo $ECHO_N "(cached) $ECHO_C" >&6
12219 fi
12220 ac_res=`eval echo '${'$as_ac_Header'}'`
12221                { echo "$as_me:$LINENO: result: $ac_res" >&5
12222 echo "${ECHO_T}$ac_res" >&6; }
12223 else
12224   # Is the header compilable?
12225 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12226 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12227 cat >conftest.$ac_ext <<_ACEOF
12228 /* confdefs.h.  */
12229 _ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h.  */
12233 $ac_includes_default
12234 #include <$ac_header>
12235 _ACEOF
12236 rm -f conftest.$ac_objext
12237 if { (ac_try="$ac_compile"
12238 case "(($ac_try" in
12239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240   *) ac_try_echo=$ac_try;;
12241 esac
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243   (eval "$ac_compile") 2>conftest.er1
12244   ac_status=$?
12245   grep -v '^ *+' conftest.er1 >conftest.err
12246   rm -f conftest.er1
12247   cat conftest.err >&5
12248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249   (exit $ac_status); } &&
12250          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12251   { (case "(($ac_try" in
12252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253   *) ac_try_echo=$ac_try;;
12254 esac
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256   (eval "$ac_try") 2>&5
12257   ac_status=$?
12258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259   (exit $ac_status); }; } &&
12260          { ac_try='test -s conftest.$ac_objext'
12261   { (case "(($ac_try" in
12262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263   *) ac_try_echo=$ac_try;;
12264 esac
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266   (eval "$ac_try") 2>&5
12267   ac_status=$?
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); }; }; then
12270   ac_header_compiler=yes
12271 else
12272   echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12274
12275         ac_header_compiler=no
12276 fi
12277
12278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12280 echo "${ECHO_T}$ac_header_compiler" >&6; }
12281
12282 # Is the header present?
12283 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12285 cat >conftest.$ac_ext <<_ACEOF
12286 /* confdefs.h.  */
12287 _ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h.  */
12291 #include <$ac_header>
12292 _ACEOF
12293 if { (ac_try="$ac_cpp conftest.$ac_ext"
12294 case "(($ac_try" in
12295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296   *) ac_try_echo=$ac_try;;
12297 esac
12298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12300   ac_status=$?
12301   grep -v '^ *+' conftest.er1 >conftest.err
12302   rm -f conftest.er1
12303   cat conftest.err >&5
12304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305   (exit $ac_status); } >/dev/null; then
12306   if test -s conftest.err; then
12307     ac_cpp_err=$ac_c_preproc_warn_flag
12308     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12309   else
12310     ac_cpp_err=
12311   fi
12312 else
12313   ac_cpp_err=yes
12314 fi
12315 if test -z "$ac_cpp_err"; then
12316   ac_header_preproc=yes
12317 else
12318   echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12320
12321   ac_header_preproc=no
12322 fi
12323
12324 rm -f conftest.err conftest.$ac_ext
12325 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12326 echo "${ECHO_T}$ac_header_preproc" >&6; }
12327
12328 # So?  What about this header?
12329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12330   yes:no: )
12331     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12335     ac_header_preproc=yes
12336     ;;
12337   no:yes:* )
12338     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12340     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12341 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12342     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12344     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12345 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12348     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12350     ( cat <<\_ASBOX
12351 ## ----------------------------------- ##
12352 ## Report this to llvmbugs@cs.uiuc.edu ##
12353 ## ----------------------------------- ##
12354 _ASBOX
12355      ) | sed "s/^/$as_me: WARNING:     /" >&2
12356     ;;
12357 esac
12358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12361   echo $ECHO_N "(cached) $ECHO_C" >&6
12362 else
12363   eval "$as_ac_Header=\$ac_header_preproc"
12364 fi
12365 ac_res=`eval echo '${'$as_ac_Header'}'`
12366                { echo "$as_me:$LINENO: result: $ac_res" >&5
12367 echo "${ECHO_T}$ac_res" >&6; }
12368
12369 fi
12370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12371   cat >>confdefs.h <<_ACEOF
12372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12373 _ACEOF
12374  break
12375 fi
12376
12377 done
12378
12379
12380
12381
12382 for ac_func in strchr index
12383 do
12384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12388   echo $ECHO_N "(cached) $ECHO_C" >&6
12389 else
12390   cat >conftest.$ac_ext <<_ACEOF
12391 /* confdefs.h.  */
12392 _ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h.  */
12396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12398 #define $ac_func innocuous_$ac_func
12399
12400 /* System header to define __stub macros and hopefully few prototypes,
12401     which can conflict with char $ac_func (); below.
12402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12403     <limits.h> exists even on freestanding compilers.  */
12404
12405 #ifdef __STDC__
12406 # include <limits.h>
12407 #else
12408 # include <assert.h>
12409 #endif
12410
12411 #undef $ac_func
12412
12413 /* Override any GCC internal prototype to avoid an error.
12414    Use char because int might match the return type of a GCC
12415    builtin and then its argument prototype would still apply.  */
12416 #ifdef __cplusplus
12417 extern "C"
12418 #endif
12419 char $ac_func ();
12420 /* The GNU C library defines this for functions which it implements
12421     to always fail with ENOSYS.  Some functions are actually named
12422     something starting with __ and the normal name is an alias.  */
12423 #if defined __stub_$ac_func || defined __stub___$ac_func
12424 choke me
12425 #endif
12426
12427 int
12428 main ()
12429 {
12430 return $ac_func ();
12431   ;
12432   return 0;
12433 }
12434 _ACEOF
12435 rm -f conftest.$ac_objext conftest$ac_exeext
12436 if { (ac_try="$ac_link"
12437 case "(($ac_try" in
12438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439   *) ac_try_echo=$ac_try;;
12440 esac
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442   (eval "$ac_link") 2>conftest.er1
12443   ac_status=$?
12444   grep -v '^ *+' conftest.er1 >conftest.err
12445   rm -f conftest.er1
12446   cat conftest.err >&5
12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); } &&
12449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12450   { (case "(($ac_try" in
12451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452   *) ac_try_echo=$ac_try;;
12453 esac
12454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455   (eval "$ac_try") 2>&5
12456   ac_status=$?
12457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458   (exit $ac_status); }; } &&
12459          { ac_try='test -s conftest$ac_exeext'
12460   { (case "(($ac_try" in
12461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462   *) ac_try_echo=$ac_try;;
12463 esac
12464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465   (eval "$ac_try") 2>&5
12466   ac_status=$?
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); }; }; then
12469   eval "$as_ac_var=yes"
12470 else
12471   echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12473
12474         eval "$as_ac_var=no"
12475 fi
12476
12477 rm -f core conftest.err conftest.$ac_objext \
12478       conftest$ac_exeext conftest.$ac_ext
12479 fi
12480 ac_res=`eval echo '${'$as_ac_var'}'`
12481                { echo "$as_me:$LINENO: result: $ac_res" >&5
12482 echo "${ECHO_T}$ac_res" >&6; }
12483 if test `eval echo '${'$as_ac_var'}'` = yes; then
12484   cat >>confdefs.h <<_ACEOF
12485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12486 _ACEOF
12487  break
12488 fi
12489 done
12490
12491
12492
12493 for ac_func in strrchr rindex
12494 do
12495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12499   echo $ECHO_N "(cached) $ECHO_C" >&6
12500 else
12501   cat >conftest.$ac_ext <<_ACEOF
12502 /* confdefs.h.  */
12503 _ACEOF
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h.  */
12507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12509 #define $ac_func innocuous_$ac_func
12510
12511 /* System header to define __stub macros and hopefully few prototypes,
12512     which can conflict with char $ac_func (); below.
12513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12514     <limits.h> exists even on freestanding compilers.  */
12515
12516 #ifdef __STDC__
12517 # include <limits.h>
12518 #else
12519 # include <assert.h>
12520 #endif
12521
12522 #undef $ac_func
12523
12524 /* Override any GCC internal prototype to avoid an error.
12525    Use char because int might match the return type of a GCC
12526    builtin and then its argument prototype would still apply.  */
12527 #ifdef __cplusplus
12528 extern "C"
12529 #endif
12530 char $ac_func ();
12531 /* The GNU C library defines this for functions which it implements
12532     to always fail with ENOSYS.  Some functions are actually named
12533     something starting with __ and the normal name is an alias.  */
12534 #if defined __stub_$ac_func || defined __stub___$ac_func
12535 choke me
12536 #endif
12537
12538 int
12539 main ()
12540 {
12541 return $ac_func ();
12542   ;
12543   return 0;
12544 }
12545 _ACEOF
12546 rm -f conftest.$ac_objext conftest$ac_exeext
12547 if { (ac_try="$ac_link"
12548 case "(($ac_try" in
12549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550   *) ac_try_echo=$ac_try;;
12551 esac
12552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12553   (eval "$ac_link") 2>conftest.er1
12554   ac_status=$?
12555   grep -v '^ *+' conftest.er1 >conftest.err
12556   rm -f conftest.er1
12557   cat conftest.err >&5
12558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559   (exit $ac_status); } &&
12560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12561   { (case "(($ac_try" in
12562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12563   *) ac_try_echo=$ac_try;;
12564 esac
12565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12566   (eval "$ac_try") 2>&5
12567   ac_status=$?
12568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569   (exit $ac_status); }; } &&
12570          { ac_try='test -s conftest$ac_exeext'
12571   { (case "(($ac_try" in
12572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573   *) ac_try_echo=$ac_try;;
12574 esac
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576   (eval "$ac_try") 2>&5
12577   ac_status=$?
12578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579   (exit $ac_status); }; }; then
12580   eval "$as_ac_var=yes"
12581 else
12582   echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12584
12585         eval "$as_ac_var=no"
12586 fi
12587
12588 rm -f core conftest.err conftest.$ac_objext \
12589       conftest$ac_exeext conftest.$ac_ext
12590 fi
12591 ac_res=`eval echo '${'$as_ac_var'}'`
12592                { echo "$as_me:$LINENO: result: $ac_res" >&5
12593 echo "${ECHO_T}$ac_res" >&6; }
12594 if test `eval echo '${'$as_ac_var'}'` = yes; then
12595   cat >>confdefs.h <<_ACEOF
12596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12597 _ACEOF
12598  break
12599 fi
12600 done
12601
12602
12603
12604 for ac_func in memcpy bcopy
12605 do
12606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12610   echo $ECHO_N "(cached) $ECHO_C" >&6
12611 else
12612   cat >conftest.$ac_ext <<_ACEOF
12613 /* confdefs.h.  */
12614 _ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h.  */
12618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12620 #define $ac_func innocuous_$ac_func
12621
12622 /* System header to define __stub macros and hopefully few prototypes,
12623     which can conflict with char $ac_func (); below.
12624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12625     <limits.h> exists even on freestanding compilers.  */
12626
12627 #ifdef __STDC__
12628 # include <limits.h>
12629 #else
12630 # include <assert.h>
12631 #endif
12632
12633 #undef $ac_func
12634
12635 /* Override any GCC internal prototype to avoid an error.
12636    Use char because int might match the return type of a GCC
12637    builtin and then its argument prototype would still apply.  */
12638 #ifdef __cplusplus
12639 extern "C"
12640 #endif
12641 char $ac_func ();
12642 /* The GNU C library defines this for functions which it implements
12643     to always fail with ENOSYS.  Some functions are actually named
12644     something starting with __ and the normal name is an alias.  */
12645 #if defined __stub_$ac_func || defined __stub___$ac_func
12646 choke me
12647 #endif
12648
12649 int
12650 main ()
12651 {
12652 return $ac_func ();
12653   ;
12654   return 0;
12655 }
12656 _ACEOF
12657 rm -f conftest.$ac_objext conftest$ac_exeext
12658 if { (ac_try="$ac_link"
12659 case "(($ac_try" in
12660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661   *) ac_try_echo=$ac_try;;
12662 esac
12663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12664   (eval "$ac_link") 2>conftest.er1
12665   ac_status=$?
12666   grep -v '^ *+' conftest.er1 >conftest.err
12667   rm -f conftest.er1
12668   cat conftest.err >&5
12669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670   (exit $ac_status); } &&
12671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12672   { (case "(($ac_try" in
12673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674   *) ac_try_echo=$ac_try;;
12675 esac
12676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677   (eval "$ac_try") 2>&5
12678   ac_status=$?
12679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680   (exit $ac_status); }; } &&
12681          { ac_try='test -s conftest$ac_exeext'
12682   { (case "(($ac_try" in
12683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684   *) ac_try_echo=$ac_try;;
12685 esac
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687   (eval "$ac_try") 2>&5
12688   ac_status=$?
12689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690   (exit $ac_status); }; }; then
12691   eval "$as_ac_var=yes"
12692 else
12693   echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12695
12696         eval "$as_ac_var=no"
12697 fi
12698
12699 rm -f core conftest.err conftest.$ac_objext \
12700       conftest$ac_exeext conftest.$ac_ext
12701 fi
12702 ac_res=`eval echo '${'$as_ac_var'}'`
12703                { echo "$as_me:$LINENO: result: $ac_res" >&5
12704 echo "${ECHO_T}$ac_res" >&6; }
12705 if test `eval echo '${'$as_ac_var'}'` = yes; then
12706   cat >>confdefs.h <<_ACEOF
12707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12708 _ACEOF
12709  break
12710 fi
12711 done
12712
12713
12714
12715 for ac_func in memmove strcmp
12716 do
12717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12721   echo $ECHO_N "(cached) $ECHO_C" >&6
12722 else
12723   cat >conftest.$ac_ext <<_ACEOF
12724 /* confdefs.h.  */
12725 _ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h.  */
12729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12731 #define $ac_func innocuous_$ac_func
12732
12733 /* System header to define __stub macros and hopefully few prototypes,
12734     which can conflict with char $ac_func (); below.
12735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12736     <limits.h> exists even on freestanding compilers.  */
12737
12738 #ifdef __STDC__
12739 # include <limits.h>
12740 #else
12741 # include <assert.h>
12742 #endif
12743
12744 #undef $ac_func
12745
12746 /* Override any GCC internal prototype to avoid an error.
12747    Use char because int might match the return type of a GCC
12748    builtin and then its argument prototype would still apply.  */
12749 #ifdef __cplusplus
12750 extern "C"
12751 #endif
12752 char $ac_func ();
12753 /* The GNU C library defines this for functions which it implements
12754     to always fail with ENOSYS.  Some functions are actually named
12755     something starting with __ and the normal name is an alias.  */
12756 #if defined __stub_$ac_func || defined __stub___$ac_func
12757 choke me
12758 #endif
12759
12760 int
12761 main ()
12762 {
12763 return $ac_func ();
12764   ;
12765   return 0;
12766 }
12767 _ACEOF
12768 rm -f conftest.$ac_objext conftest$ac_exeext
12769 if { (ac_try="$ac_link"
12770 case "(($ac_try" in
12771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772   *) ac_try_echo=$ac_try;;
12773 esac
12774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12775   (eval "$ac_link") 2>conftest.er1
12776   ac_status=$?
12777   grep -v '^ *+' conftest.er1 >conftest.err
12778   rm -f conftest.er1
12779   cat conftest.err >&5
12780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781   (exit $ac_status); } &&
12782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12783   { (case "(($ac_try" in
12784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785   *) ac_try_echo=$ac_try;;
12786 esac
12787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788   (eval "$ac_try") 2>&5
12789   ac_status=$?
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); }; } &&
12792          { ac_try='test -s conftest$ac_exeext'
12793   { (case "(($ac_try" in
12794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795   *) ac_try_echo=$ac_try;;
12796 esac
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798   (eval "$ac_try") 2>&5
12799   ac_status=$?
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); }; }; then
12802   eval "$as_ac_var=yes"
12803 else
12804   echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12806
12807         eval "$as_ac_var=no"
12808 fi
12809
12810 rm -f core conftest.err conftest.$ac_objext \
12811       conftest$ac_exeext conftest.$ac_ext
12812 fi
12813 ac_res=`eval echo '${'$as_ac_var'}'`
12814                { echo "$as_me:$LINENO: result: $ac_res" >&5
12815 echo "${ECHO_T}$ac_res" >&6; }
12816 if test `eval echo '${'$as_ac_var'}'` = yes; then
12817   cat >>confdefs.h <<_ACEOF
12818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12819 _ACEOF
12820
12821 fi
12822 done
12823
12824
12825
12826
12827 for ac_func in closedir opendir readdir
12828 do
12829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12833   echo $ECHO_N "(cached) $ECHO_C" >&6
12834 else
12835   cat >conftest.$ac_ext <<_ACEOF
12836 /* confdefs.h.  */
12837 _ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h.  */
12841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12843 #define $ac_func innocuous_$ac_func
12844
12845 /* System header to define __stub macros and hopefully few prototypes,
12846     which can conflict with char $ac_func (); below.
12847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12848     <limits.h> exists even on freestanding compilers.  */
12849
12850 #ifdef __STDC__
12851 # include <limits.h>
12852 #else
12853 # include <assert.h>
12854 #endif
12855
12856 #undef $ac_func
12857
12858 /* Override any GCC internal prototype to avoid an error.
12859    Use char because int might match the return type of a GCC
12860    builtin and then its argument prototype would still apply.  */
12861 #ifdef __cplusplus
12862 extern "C"
12863 #endif
12864 char $ac_func ();
12865 /* The GNU C library defines this for functions which it implements
12866     to always fail with ENOSYS.  Some functions are actually named
12867     something starting with __ and the normal name is an alias.  */
12868 #if defined __stub_$ac_func || defined __stub___$ac_func
12869 choke me
12870 #endif
12871
12872 int
12873 main ()
12874 {
12875 return $ac_func ();
12876   ;
12877   return 0;
12878 }
12879 _ACEOF
12880 rm -f conftest.$ac_objext conftest$ac_exeext
12881 if { (ac_try="$ac_link"
12882 case "(($ac_try" in
12883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884   *) ac_try_echo=$ac_try;;
12885 esac
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887   (eval "$ac_link") 2>conftest.er1
12888   ac_status=$?
12889   grep -v '^ *+' conftest.er1 >conftest.err
12890   rm -f conftest.er1
12891   cat conftest.err >&5
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); } &&
12894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12895   { (case "(($ac_try" in
12896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897   *) ac_try_echo=$ac_try;;
12898 esac
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900   (eval "$ac_try") 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); }; } &&
12904          { ac_try='test -s conftest$ac_exeext'
12905   { (case "(($ac_try" in
12906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907   *) ac_try_echo=$ac_try;;
12908 esac
12909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910   (eval "$ac_try") 2>&5
12911   ac_status=$?
12912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913   (exit $ac_status); }; }; then
12914   eval "$as_ac_var=yes"
12915 else
12916   echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12918
12919         eval "$as_ac_var=no"
12920 fi
12921
12922 rm -f core conftest.err conftest.$ac_objext \
12923       conftest$ac_exeext conftest.$ac_ext
12924 fi
12925 ac_res=`eval echo '${'$as_ac_var'}'`
12926                { echo "$as_me:$LINENO: result: $ac_res" >&5
12927 echo "${ECHO_T}$ac_res" >&6; }
12928 if test `eval echo '${'$as_ac_var'}'` = yes; then
12929   cat >>confdefs.h <<_ACEOF
12930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12931 _ACEOF
12932
12933 fi
12934 done
12935
12936
12937
12938 if test "$WITH_LLVMGCCDIR" = "default" ; then
12939   LLVMGCC="llvm-gcc${EXEEXT}"
12940   LLVMGXX="llvm-g++${EXEEXT}"
12941   LLVMGCCCOMMAND="$LLVMGCC"
12942   LLVMGXXCOMMAND="$LLVMGXX"
12943   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12944
12945   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12946
12947   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12948 set dummy $LLVMGCC; ac_word=$2
12949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12951 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12952   echo $ECHO_N "(cached) $ECHO_C" >&6
12953 else
12954   case $LLVMGCC in
12955   [\\/]* | ?:[\\/]*)
12956   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12957   ;;
12958   *)
12959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960 for as_dir in $PATH
12961 do
12962   IFS=$as_save_IFS
12963   test -z "$as_dir" && as_dir=.
12964   for ac_exec_ext in '' $ac_executable_extensions; do
12965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12966     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12968     break 2
12969   fi
12970 done
12971 done
12972 IFS=$as_save_IFS
12973
12974   ;;
12975 esac
12976 fi
12977 LLVMGCC=$ac_cv_path_LLVMGCC
12978 if test -n "$LLVMGCC"; then
12979   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12980 echo "${ECHO_T}$LLVMGCC" >&6; }
12981 else
12982   { echo "$as_me:$LINENO: result: no" >&5
12983 echo "${ECHO_T}no" >&6; }
12984 fi
12985
12986
12987   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12988 set dummy $LLVMGXX; ac_word=$2
12989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12991 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12992   echo $ECHO_N "(cached) $ECHO_C" >&6
12993 else
12994   case $LLVMGXX in
12995   [\\/]* | ?:[\\/]*)
12996   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12997   ;;
12998   *)
12999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13000 for as_dir in $PATH
13001 do
13002   IFS=$as_save_IFS
13003   test -z "$as_dir" && as_dir=.
13004   for ac_exec_ext in '' $ac_executable_extensions; do
13005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13006     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13008     break 2
13009   fi
13010 done
13011 done
13012 IFS=$as_save_IFS
13013
13014   ;;
13015 esac
13016 fi
13017 LLVMGXX=$ac_cv_path_LLVMGXX
13018 if test -n "$LLVMGXX"; then
13019   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13020 echo "${ECHO_T}$LLVMGXX" >&6; }
13021 else
13022   { echo "$as_me:$LINENO: result: no" >&5
13023 echo "${ECHO_T}no" >&6; }
13024 fi
13025
13026
13027 else
13028   if test -z "$LLVMGCC"; then
13029     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13030     LLVMGCCCOMMAND="$LLVMGCC"
13031   fi
13032   if test -z "$LLVMGXX"; then
13033     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13034     LLVMGXXCOMMAND="$LLVMGXX"
13035   fi
13036
13037   LLVMGCC=$LLVMGCC
13038
13039   LLVMGXX=$LLVMGXX
13040
13041   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13042
13043   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13044
13045 fi
13046
13047
13048 # Check whether --with-llvmcc was given.
13049 if test "${with_llvmcc+set}" = set; then
13050   withval=$with_llvmcc;
13051 else
13052   with_llvmcc=check
13053 fi
13054
13055 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13056 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13057 if test "$with_llvmcc" != "check"; then
13058    if (test "$with_llvmcc" != "llvm-gcc" &&
13059        test "$with_llvmcc" != "clang" &&
13060        test "$with_llvmcc" != "none"); then
13061       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13062 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13063    { (exit 1); exit 1; }; }
13064    fi
13065    WITH_LLVMCC="$with_llvmcc"
13066 elif test -n "$LLVMGCC"; then
13067    WITH_LLVMCC=llvm-gcc
13068 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13069    WITH_LLVMCC=clang
13070 else
13071    WITH_LLVMCC=none
13072 fi
13073 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13074 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13075 LLVMCC_OPTION=$WITH_LLVMCC
13076
13077
13078 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13079 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13080
13081 ICC=no
13082 IXX=no
13083 case $CC in
13084   icc*|icpc*)
13085     ICC=yes
13086     IXX=yes
13087     ;;
13088    *)
13089     ;;
13090 esac
13091
13092 if test "$GCC" != "yes" && test "$ICC" != "yes"
13093 then
13094   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13095 echo "$as_me: error: gcc|icc required but not found" >&2;}
13096    { (exit 1); exit 1; }; }
13097 fi
13098
13099 if test "$GXX" != "yes" && test "$IXX" != "yes"
13100 then
13101   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13102 echo "$as_me: error: g++|icc required but not found" >&2;}
13103    { (exit 1); exit 1; }; }
13104 fi
13105
13106 if test "$GCC" = "yes"
13107 then
13108   cat >conftest.$ac_ext <<_ACEOF
13109 #if !defined(__GNUC__) || __GNUC__ < 3
13110 #error Unsupported GCC version
13111 #endif
13112
13113 _ACEOF
13114 rm -f conftest.$ac_objext
13115 if { (ac_try="$ac_compile"
13116 case "(($ac_try" in
13117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118   *) ac_try_echo=$ac_try;;
13119 esac
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121   (eval "$ac_compile") 2>conftest.er1
13122   ac_status=$?
13123   grep -v '^ *+' conftest.er1 >conftest.err
13124   rm -f conftest.er1
13125   cat conftest.err >&5
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); } &&
13128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13129   { (case "(($ac_try" in
13130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131   *) ac_try_echo=$ac_try;;
13132 esac
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134   (eval "$ac_try") 2>&5
13135   ac_status=$?
13136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137   (exit $ac_status); }; } &&
13138          { ac_try='test -s conftest.$ac_objext'
13139   { (case "(($ac_try" in
13140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141   *) ac_try_echo=$ac_try;;
13142 esac
13143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13144   (eval "$ac_try") 2>&5
13145   ac_status=$?
13146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147   (exit $ac_status); }; }; then
13148   :
13149 else
13150   echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13152
13153         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13154 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13155    { (exit 1); exit 1; }; }
13156 fi
13157
13158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13159 fi
13160
13161 if test -z "$llvm_cv_gnu_make_command"
13162 then
13163   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13164 echo "$as_me: error: GNU Make required but not found" >&2;}
13165    { (exit 1); exit 1; }; }
13166 fi
13167
13168 { echo "$as_me:$LINENO: result: ok" >&5
13169 echo "${ECHO_T}ok" >&6; }
13170
13171 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13172 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13173 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13174
13175 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13176
13177 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13178 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13179
13180
13181
13182 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13183 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13184 if test "${ac_cv_lib_m_sin+set}" = set; then
13185   echo $ECHO_N "(cached) $ECHO_C" >&6
13186 else
13187   ac_check_lib_save_LIBS=$LIBS
13188 LIBS="-lm  $LIBS"
13189 cat >conftest.$ac_ext <<_ACEOF
13190 /* confdefs.h.  */
13191 _ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h.  */
13195
13196 /* Override any GCC internal prototype to avoid an error.
13197    Use char because int might match the return type of a GCC
13198    builtin and then its argument prototype would still apply.  */
13199 #ifdef __cplusplus
13200 extern "C"
13201 #endif
13202 char sin ();
13203 int
13204 main ()
13205 {
13206 return sin ();
13207   ;
13208   return 0;
13209 }
13210 _ACEOF
13211 rm -f conftest.$ac_objext conftest$ac_exeext
13212 if { (ac_try="$ac_link"
13213 case "(($ac_try" in
13214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215   *) ac_try_echo=$ac_try;;
13216 esac
13217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218   (eval "$ac_link") 2>conftest.er1
13219   ac_status=$?
13220   grep -v '^ *+' conftest.er1 >conftest.err
13221   rm -f conftest.er1
13222   cat conftest.err >&5
13223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224   (exit $ac_status); } &&
13225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13226   { (case "(($ac_try" in
13227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228   *) ac_try_echo=$ac_try;;
13229 esac
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231   (eval "$ac_try") 2>&5
13232   ac_status=$?
13233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234   (exit $ac_status); }; } &&
13235          { ac_try='test -s conftest$ac_exeext'
13236   { (case "(($ac_try" in
13237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238   *) ac_try_echo=$ac_try;;
13239 esac
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241   (eval "$ac_try") 2>&5
13242   ac_status=$?
13243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244   (exit $ac_status); }; }; then
13245   ac_cv_lib_m_sin=yes
13246 else
13247   echo "$as_me: failed program was:" >&5
13248 sed 's/^/| /' conftest.$ac_ext >&5
13249
13250         ac_cv_lib_m_sin=no
13251 fi
13252
13253 rm -f core conftest.err conftest.$ac_objext \
13254       conftest$ac_exeext conftest.$ac_ext
13255 LIBS=$ac_check_lib_save_LIBS
13256 fi
13257 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13258 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13259 if test $ac_cv_lib_m_sin = yes; then
13260   cat >>confdefs.h <<_ACEOF
13261 #define HAVE_LIBM 1
13262 _ACEOF
13263
13264   LIBS="-lm $LIBS"
13265
13266 fi
13267
13268 if test "$llvm_cv_os_type" = "MingW" ; then
13269
13270 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13271 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13272 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13273   echo $ECHO_N "(cached) $ECHO_C" >&6
13274 else
13275   ac_check_lib_save_LIBS=$LIBS
13276 LIBS="-limagehlp  $LIBS"
13277 cat >conftest.$ac_ext <<_ACEOF
13278 /* confdefs.h.  */
13279 _ACEOF
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h.  */
13283
13284
13285 int
13286 main ()
13287 {
13288 return main ();
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_imagehlp_main=yes
13328 else
13329   echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13331
13332         ac_cv_lib_imagehlp_main=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_imagehlp_main" >&5
13340 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13341 if test $ac_cv_lib_imagehlp_main = yes; then
13342   cat >>confdefs.h <<_ACEOF
13343 #define HAVE_LIBIMAGEHLP 1
13344 _ACEOF
13345
13346   LIBS="-limagehlp $LIBS"
13347
13348 fi
13349
13350
13351 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13352 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13353 if test "${ac_cv_lib_psapi_main+set}" = set; then
13354   echo $ECHO_N "(cached) $ECHO_C" >&6
13355 else
13356   ac_check_lib_save_LIBS=$LIBS
13357 LIBS="-lpsapi  $LIBS"
13358 cat >conftest.$ac_ext <<_ACEOF
13359 /* confdefs.h.  */
13360 _ACEOF
13361 cat confdefs.h >>conftest.$ac_ext
13362 cat >>conftest.$ac_ext <<_ACEOF
13363 /* end confdefs.h.  */
13364
13365
13366 int
13367 main ()
13368 {
13369 return main ();
13370   ;
13371   return 0;
13372 }
13373 _ACEOF
13374 rm -f conftest.$ac_objext conftest$ac_exeext
13375 if { (ac_try="$ac_link"
13376 case "(($ac_try" in
13377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378   *) ac_try_echo=$ac_try;;
13379 esac
13380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13381   (eval "$ac_link") 2>conftest.er1
13382   ac_status=$?
13383   grep -v '^ *+' conftest.er1 >conftest.err
13384   rm -f conftest.er1
13385   cat conftest.err >&5
13386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387   (exit $ac_status); } &&
13388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13389   { (case "(($ac_try" in
13390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391   *) ac_try_echo=$ac_try;;
13392 esac
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394   (eval "$ac_try") 2>&5
13395   ac_status=$?
13396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397   (exit $ac_status); }; } &&
13398          { ac_try='test -s conftest$ac_exeext'
13399   { (case "(($ac_try" in
13400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401   *) ac_try_echo=$ac_try;;
13402 esac
13403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404   (eval "$ac_try") 2>&5
13405   ac_status=$?
13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407   (exit $ac_status); }; }; then
13408   ac_cv_lib_psapi_main=yes
13409 else
13410   echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13412
13413         ac_cv_lib_psapi_main=no
13414 fi
13415
13416 rm -f core conftest.err conftest.$ac_objext \
13417       conftest$ac_exeext conftest.$ac_ext
13418 LIBS=$ac_check_lib_save_LIBS
13419 fi
13420 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13421 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13422 if test $ac_cv_lib_psapi_main = yes; then
13423   cat >>confdefs.h <<_ACEOF
13424 #define HAVE_LIBPSAPI 1
13425 _ACEOF
13426
13427   LIBS="-lpsapi $LIBS"
13428
13429 fi
13430
13431 fi
13432
13433 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13434 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13435 if test "${ac_cv_search_dlopen+set}" = set; then
13436   echo $ECHO_N "(cached) $ECHO_C" >&6
13437 else
13438   ac_func_search_save_LIBS=$LIBS
13439 cat >conftest.$ac_ext <<_ACEOF
13440 /* confdefs.h.  */
13441 _ACEOF
13442 cat confdefs.h >>conftest.$ac_ext
13443 cat >>conftest.$ac_ext <<_ACEOF
13444 /* end confdefs.h.  */
13445
13446 /* Override any GCC internal prototype to avoid an error.
13447    Use char because int might match the return type of a GCC
13448    builtin and then its argument prototype would still apply.  */
13449 #ifdef __cplusplus
13450 extern "C"
13451 #endif
13452 char dlopen ();
13453 int
13454 main ()
13455 {
13456 return dlopen ();
13457   ;
13458   return 0;
13459 }
13460 _ACEOF
13461 for ac_lib in '' dl; do
13462   if test -z "$ac_lib"; then
13463     ac_res="none required"
13464   else
13465     ac_res=-l$ac_lib
13466     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13467   fi
13468   rm -f conftest.$ac_objext conftest$ac_exeext
13469 if { (ac_try="$ac_link"
13470 case "(($ac_try" in
13471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472   *) ac_try_echo=$ac_try;;
13473 esac
13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475   (eval "$ac_link") 2>conftest.er1
13476   ac_status=$?
13477   grep -v '^ *+' conftest.er1 >conftest.err
13478   rm -f conftest.er1
13479   cat conftest.err >&5
13480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481   (exit $ac_status); } &&
13482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13483   { (case "(($ac_try" in
13484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485   *) ac_try_echo=$ac_try;;
13486 esac
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488   (eval "$ac_try") 2>&5
13489   ac_status=$?
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); }; } &&
13492          { ac_try='test -s conftest$ac_exeext'
13493   { (case "(($ac_try" in
13494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495   *) ac_try_echo=$ac_try;;
13496 esac
13497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498   (eval "$ac_try") 2>&5
13499   ac_status=$?
13500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501   (exit $ac_status); }; }; then
13502   ac_cv_search_dlopen=$ac_res
13503 else
13504   echo "$as_me: failed program was:" >&5
13505 sed 's/^/| /' conftest.$ac_ext >&5
13506
13507
13508 fi
13509
13510 rm -f core conftest.err conftest.$ac_objext \
13511       conftest$ac_exeext
13512   if test "${ac_cv_search_dlopen+set}" = set; then
13513   break
13514 fi
13515 done
13516 if test "${ac_cv_search_dlopen+set}" = set; then
13517   :
13518 else
13519   ac_cv_search_dlopen=no
13520 fi
13521 rm conftest.$ac_ext
13522 LIBS=$ac_func_search_save_LIBS
13523 fi
13524 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13525 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13526 ac_res=$ac_cv_search_dlopen
13527 if test "$ac_res" != no; then
13528   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13529
13530 cat >>confdefs.h <<\_ACEOF
13531 #define HAVE_DLOPEN 1
13532 _ACEOF
13533
13534 else
13535   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13536 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13537 fi
13538
13539
13540 if test "$llvm_cv_enable_libffi" = "yes" ; then
13541   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13542 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13543 if test "${ac_cv_search_ffi_call+set}" = set; then
13544   echo $ECHO_N "(cached) $ECHO_C" >&6
13545 else
13546   ac_func_search_save_LIBS=$LIBS
13547 cat >conftest.$ac_ext <<_ACEOF
13548 /* confdefs.h.  */
13549 _ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h.  */
13553
13554 /* Override any GCC internal prototype to avoid an error.
13555    Use char because int might match the return type of a GCC
13556    builtin and then its argument prototype would still apply.  */
13557 #ifdef __cplusplus
13558 extern "C"
13559 #endif
13560 char ffi_call ();
13561 int
13562 main ()
13563 {
13564 return ffi_call ();
13565   ;
13566   return 0;
13567 }
13568 _ACEOF
13569 for ac_lib in '' ffi; do
13570   if test -z "$ac_lib"; then
13571     ac_res="none required"
13572   else
13573     ac_res=-l$ac_lib
13574     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13575   fi
13576   rm -f conftest.$ac_objext conftest$ac_exeext
13577 if { (ac_try="$ac_link"
13578 case "(($ac_try" in
13579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580   *) ac_try_echo=$ac_try;;
13581 esac
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583   (eval "$ac_link") 2>conftest.er1
13584   ac_status=$?
13585   grep -v '^ *+' conftest.er1 >conftest.err
13586   rm -f conftest.er1
13587   cat conftest.err >&5
13588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589   (exit $ac_status); } &&
13590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13591   { (case "(($ac_try" in
13592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593   *) ac_try_echo=$ac_try;;
13594 esac
13595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596   (eval "$ac_try") 2>&5
13597   ac_status=$?
13598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599   (exit $ac_status); }; } &&
13600          { ac_try='test -s conftest$ac_exeext'
13601   { (case "(($ac_try" in
13602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603   *) ac_try_echo=$ac_try;;
13604 esac
13605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606   (eval "$ac_try") 2>&5
13607   ac_status=$?
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); }; }; then
13610   ac_cv_search_ffi_call=$ac_res
13611 else
13612   echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.$ac_ext >&5
13614
13615
13616 fi
13617
13618 rm -f core conftest.err conftest.$ac_objext \
13619       conftest$ac_exeext
13620   if test "${ac_cv_search_ffi_call+set}" = set; then
13621   break
13622 fi
13623 done
13624 if test "${ac_cv_search_ffi_call+set}" = set; then
13625   :
13626 else
13627   ac_cv_search_ffi_call=no
13628 fi
13629 rm conftest.$ac_ext
13630 LIBS=$ac_func_search_save_LIBS
13631 fi
13632 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13633 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13634 ac_res=$ac_cv_search_ffi_call
13635 if test "$ac_res" != no; then
13636   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13637
13638 cat >>confdefs.h <<\_ACEOF
13639 #define HAVE_FFI_CALL 1
13640 _ACEOF
13641
13642 else
13643   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13644 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13645    { (exit 1); exit 1; }; }
13646 fi
13647
13648 fi
13649
13650 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13651 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13652 if test "${ac_cv_search_mallinfo+set}" = set; then
13653   echo $ECHO_N "(cached) $ECHO_C" >&6
13654 else
13655   ac_func_search_save_LIBS=$LIBS
13656 cat >conftest.$ac_ext <<_ACEOF
13657 /* confdefs.h.  */
13658 _ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h.  */
13662
13663 /* Override any GCC internal prototype to avoid an error.
13664    Use char because int might match the return type of a GCC
13665    builtin and then its argument prototype would still apply.  */
13666 #ifdef __cplusplus
13667 extern "C"
13668 #endif
13669 char mallinfo ();
13670 int
13671 main ()
13672 {
13673 return mallinfo ();
13674   ;
13675   return 0;
13676 }
13677 _ACEOF
13678 for ac_lib in '' malloc; do
13679   if test -z "$ac_lib"; then
13680     ac_res="none required"
13681   else
13682     ac_res=-l$ac_lib
13683     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13684   fi
13685   rm -f conftest.$ac_objext conftest$ac_exeext
13686 if { (ac_try="$ac_link"
13687 case "(($ac_try" in
13688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689   *) ac_try_echo=$ac_try;;
13690 esac
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692   (eval "$ac_link") 2>conftest.er1
13693   ac_status=$?
13694   grep -v '^ *+' conftest.er1 >conftest.err
13695   rm -f conftest.er1
13696   cat conftest.err >&5
13697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698   (exit $ac_status); } &&
13699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13700   { (case "(($ac_try" in
13701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702   *) ac_try_echo=$ac_try;;
13703 esac
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705   (eval "$ac_try") 2>&5
13706   ac_status=$?
13707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708   (exit $ac_status); }; } &&
13709          { ac_try='test -s conftest$ac_exeext'
13710   { (case "(($ac_try" in
13711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712   *) ac_try_echo=$ac_try;;
13713 esac
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715   (eval "$ac_try") 2>&5
13716   ac_status=$?
13717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718   (exit $ac_status); }; }; then
13719   ac_cv_search_mallinfo=$ac_res
13720 else
13721   echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13723
13724
13725 fi
13726
13727 rm -f core conftest.err conftest.$ac_objext \
13728       conftest$ac_exeext
13729   if test "${ac_cv_search_mallinfo+set}" = set; then
13730   break
13731 fi
13732 done
13733 if test "${ac_cv_search_mallinfo+set}" = set; then
13734   :
13735 else
13736   ac_cv_search_mallinfo=no
13737 fi
13738 rm conftest.$ac_ext
13739 LIBS=$ac_func_search_save_LIBS
13740 fi
13741 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13742 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13743 ac_res=$ac_cv_search_mallinfo
13744 if test "$ac_res" != no; then
13745   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13746
13747 cat >>confdefs.h <<\_ACEOF
13748 #define HAVE_MALLINFO 1
13749 _ACEOF
13750
13751 fi
13752
13753
13754 if test "$ENABLE_THREADS" -eq 1 ; then
13755
13756 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13757 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13758 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13759   echo $ECHO_N "(cached) $ECHO_C" >&6
13760 else
13761   ac_check_lib_save_LIBS=$LIBS
13762 LIBS="-lpthread  $LIBS"
13763 cat >conftest.$ac_ext <<_ACEOF
13764 /* confdefs.h.  */
13765 _ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h.  */
13769
13770 /* Override any GCC internal prototype to avoid an error.
13771    Use char because int might match the return type of a GCC
13772    builtin and then its argument prototype would still apply.  */
13773 #ifdef __cplusplus
13774 extern "C"
13775 #endif
13776 char pthread_mutex_init ();
13777 int
13778 main ()
13779 {
13780 return pthread_mutex_init ();
13781   ;
13782   return 0;
13783 }
13784 _ACEOF
13785 rm -f conftest.$ac_objext conftest$ac_exeext
13786 if { (ac_try="$ac_link"
13787 case "(($ac_try" in
13788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789   *) ac_try_echo=$ac_try;;
13790 esac
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792   (eval "$ac_link") 2>conftest.er1
13793   ac_status=$?
13794   grep -v '^ *+' conftest.er1 >conftest.err
13795   rm -f conftest.er1
13796   cat conftest.err >&5
13797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   (exit $ac_status); } &&
13799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13800   { (case "(($ac_try" in
13801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802   *) ac_try_echo=$ac_try;;
13803 esac
13804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805   (eval "$ac_try") 2>&5
13806   ac_status=$?
13807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808   (exit $ac_status); }; } &&
13809          { ac_try='test -s conftest$ac_exeext'
13810   { (case "(($ac_try" in
13811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812   *) ac_try_echo=$ac_try;;
13813 esac
13814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815   (eval "$ac_try") 2>&5
13816   ac_status=$?
13817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818   (exit $ac_status); }; }; then
13819   ac_cv_lib_pthread_pthread_mutex_init=yes
13820 else
13821   echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13823
13824         ac_cv_lib_pthread_pthread_mutex_init=no
13825 fi
13826
13827 rm -f core conftest.err conftest.$ac_objext \
13828       conftest$ac_exeext conftest.$ac_ext
13829 LIBS=$ac_check_lib_save_LIBS
13830 fi
13831 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13832 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13833 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13834   cat >>confdefs.h <<_ACEOF
13835 #define HAVE_LIBPTHREAD 1
13836 _ACEOF
13837
13838   LIBS="-lpthread $LIBS"
13839
13840 fi
13841
13842   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13843 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13844 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13845   echo $ECHO_N "(cached) $ECHO_C" >&6
13846 else
13847   ac_func_search_save_LIBS=$LIBS
13848 cat >conftest.$ac_ext <<_ACEOF
13849 /* confdefs.h.  */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h.  */
13854
13855 /* Override any GCC internal prototype to avoid an error.
13856    Use char because int might match the return type of a GCC
13857    builtin and then its argument prototype would still apply.  */
13858 #ifdef __cplusplus
13859 extern "C"
13860 #endif
13861 char pthread_mutex_lock ();
13862 int
13863 main ()
13864 {
13865 return pthread_mutex_lock ();
13866   ;
13867   return 0;
13868 }
13869 _ACEOF
13870 for ac_lib in '' pthread; do
13871   if test -z "$ac_lib"; then
13872     ac_res="none required"
13873   else
13874     ac_res=-l$ac_lib
13875     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13876   fi
13877   rm -f conftest.$ac_objext conftest$ac_exeext
13878 if { (ac_try="$ac_link"
13879 case "(($ac_try" in
13880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881   *) ac_try_echo=$ac_try;;
13882 esac
13883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884   (eval "$ac_link") 2>conftest.er1
13885   ac_status=$?
13886   grep -v '^ *+' conftest.er1 >conftest.err
13887   rm -f conftest.er1
13888   cat conftest.err >&5
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); } &&
13891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13901          { ac_try='test -s conftest$ac_exeext'
13902   { (case "(($ac_try" in
13903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904   *) ac_try_echo=$ac_try;;
13905 esac
13906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907   (eval "$ac_try") 2>&5
13908   ac_status=$?
13909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910   (exit $ac_status); }; }; then
13911   ac_cv_search_pthread_mutex_lock=$ac_res
13912 else
13913   echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13915
13916
13917 fi
13918
13919 rm -f core conftest.err conftest.$ac_objext \
13920       conftest$ac_exeext
13921   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13922   break
13923 fi
13924 done
13925 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13926   :
13927 else
13928   ac_cv_search_pthread_mutex_lock=no
13929 fi
13930 rm conftest.$ac_ext
13931 LIBS=$ac_func_search_save_LIBS
13932 fi
13933 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13934 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13935 ac_res=$ac_cv_search_pthread_mutex_lock
13936 if test "$ac_res" != no; then
13937   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13938
13939 cat >>confdefs.h <<\_ACEOF
13940 #define HAVE_PTHREAD_MUTEX_LOCK 1
13941 _ACEOF
13942
13943 fi
13944
13945   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13946 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13947 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13948   echo $ECHO_N "(cached) $ECHO_C" >&6
13949 else
13950   ac_func_search_save_LIBS=$LIBS
13951 cat >conftest.$ac_ext <<_ACEOF
13952 /* confdefs.h.  */
13953 _ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h.  */
13957
13958 /* Override any GCC internal prototype to avoid an error.
13959    Use char because int might match the return type of a GCC
13960    builtin and then its argument prototype would still apply.  */
13961 #ifdef __cplusplus
13962 extern "C"
13963 #endif
13964 char pthread_rwlock_init ();
13965 int
13966 main ()
13967 {
13968 return pthread_rwlock_init ();
13969   ;
13970   return 0;
13971 }
13972 _ACEOF
13973 for ac_lib in '' pthread; do
13974   if test -z "$ac_lib"; then
13975     ac_res="none required"
13976   else
13977     ac_res=-l$ac_lib
13978     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13979   fi
13980   rm -f conftest.$ac_objext conftest$ac_exeext
13981 if { (ac_try="$ac_link"
13982 case "(($ac_try" in
13983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13984   *) ac_try_echo=$ac_try;;
13985 esac
13986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13987   (eval "$ac_link") 2>conftest.er1
13988   ac_status=$?
13989   grep -v '^ *+' conftest.er1 >conftest.err
13990   rm -f conftest.er1
13991   cat conftest.err >&5
13992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993   (exit $ac_status); } &&
13994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13995   { (case "(($ac_try" in
13996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997   *) ac_try_echo=$ac_try;;
13998 esac
13999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000   (eval "$ac_try") 2>&5
14001   ac_status=$?
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); }; } &&
14004          { ac_try='test -s conftest$ac_exeext'
14005   { (case "(($ac_try" in
14006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007   *) ac_try_echo=$ac_try;;
14008 esac
14009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14010   (eval "$ac_try") 2>&5
14011   ac_status=$?
14012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013   (exit $ac_status); }; }; then
14014   ac_cv_search_pthread_rwlock_init=$ac_res
14015 else
14016   echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14018
14019
14020 fi
14021
14022 rm -f core conftest.err conftest.$ac_objext \
14023       conftest$ac_exeext
14024   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14025   break
14026 fi
14027 done
14028 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14029   :
14030 else
14031   ac_cv_search_pthread_rwlock_init=no
14032 fi
14033 rm conftest.$ac_ext
14034 LIBS=$ac_func_search_save_LIBS
14035 fi
14036 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14037 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14038 ac_res=$ac_cv_search_pthread_rwlock_init
14039 if test "$ac_res" != no; then
14040   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14041
14042 cat >>confdefs.h <<\_ACEOF
14043 #define HAVE_PTHREAD_RWLOCK_INIT 1
14044 _ACEOF
14045
14046 fi
14047
14048   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14049 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14050 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14051   echo $ECHO_N "(cached) $ECHO_C" >&6
14052 else
14053   ac_func_search_save_LIBS=$LIBS
14054 cat >conftest.$ac_ext <<_ACEOF
14055 /* confdefs.h.  */
14056 _ACEOF
14057 cat confdefs.h >>conftest.$ac_ext
14058 cat >>conftest.$ac_ext <<_ACEOF
14059 /* end confdefs.h.  */
14060
14061 /* Override any GCC internal prototype to avoid an error.
14062    Use char because int might match the return type of a GCC
14063    builtin and then its argument prototype would still apply.  */
14064 #ifdef __cplusplus
14065 extern "C"
14066 #endif
14067 char pthread_getspecific ();
14068 int
14069 main ()
14070 {
14071 return pthread_getspecific ();
14072   ;
14073   return 0;
14074 }
14075 _ACEOF
14076 for ac_lib in '' pthread; do
14077   if test -z "$ac_lib"; then
14078     ac_res="none required"
14079   else
14080     ac_res=-l$ac_lib
14081     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14082   fi
14083   rm -f conftest.$ac_objext conftest$ac_exeext
14084 if { (ac_try="$ac_link"
14085 case "(($ac_try" in
14086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087   *) ac_try_echo=$ac_try;;
14088 esac
14089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090   (eval "$ac_link") 2>conftest.er1
14091   ac_status=$?
14092   grep -v '^ *+' conftest.er1 >conftest.err
14093   rm -f conftest.er1
14094   cat conftest.err >&5
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); } &&
14097          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14098   { (case "(($ac_try" in
14099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100   *) ac_try_echo=$ac_try;;
14101 esac
14102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103   (eval "$ac_try") 2>&5
14104   ac_status=$?
14105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106   (exit $ac_status); }; } &&
14107          { ac_try='test -s conftest$ac_exeext'
14108   { (case "(($ac_try" in
14109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110   *) ac_try_echo=$ac_try;;
14111 esac
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113   (eval "$ac_try") 2>&5
14114   ac_status=$?
14115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116   (exit $ac_status); }; }; then
14117   ac_cv_search_pthread_getspecific=$ac_res
14118 else
14119   echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14121
14122
14123 fi
14124
14125 rm -f core conftest.err conftest.$ac_objext \
14126       conftest$ac_exeext
14127   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14128   break
14129 fi
14130 done
14131 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14132   :
14133 else
14134   ac_cv_search_pthread_getspecific=no
14135 fi
14136 rm conftest.$ac_ext
14137 LIBS=$ac_func_search_save_LIBS
14138 fi
14139 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14140 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14141 ac_res=$ac_cv_search_pthread_getspecific
14142 if test "$ac_res" != no; then
14143   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14144
14145 cat >>confdefs.h <<\_ACEOF
14146 #define HAVE_PTHREAD_GETSPECIFIC 1
14147 _ACEOF
14148
14149 fi
14150
14151 fi
14152
14153
14154 # Check whether --with-udis86 was given.
14155 if test "${with_udis86+set}" = set; then
14156   withval=$with_udis86;
14157       USE_UDIS86=1
14158
14159       case "$withval" in
14160         /usr/lib|yes) ;;
14161         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14162       esac
14163
14164 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14165 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14166 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14167   echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169   ac_check_lib_save_LIBS=$LIBS
14170 LIBS="-ludis86  $LIBS"
14171 cat >conftest.$ac_ext <<_ACEOF
14172 /* confdefs.h.  */
14173 _ACEOF
14174 cat confdefs.h >>conftest.$ac_ext
14175 cat >>conftest.$ac_ext <<_ACEOF
14176 /* end confdefs.h.  */
14177
14178 /* Override any GCC internal prototype to avoid an error.
14179    Use char because int might match the return type of a GCC
14180    builtin and then its argument prototype would still apply.  */
14181 #ifdef __cplusplus
14182 extern "C"
14183 #endif
14184 char ud_init ();
14185 int
14186 main ()
14187 {
14188 return ud_init ();
14189   ;
14190   return 0;
14191 }
14192 _ACEOF
14193 rm -f conftest.$ac_objext conftest$ac_exeext
14194 if { (ac_try="$ac_link"
14195 case "(($ac_try" in
14196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197   *) ac_try_echo=$ac_try;;
14198 esac
14199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200   (eval "$ac_link") 2>conftest.er1
14201   ac_status=$?
14202   grep -v '^ *+' conftest.er1 >conftest.err
14203   rm -f conftest.er1
14204   cat conftest.err >&5
14205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206   (exit $ac_status); } &&
14207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14208   { (case "(($ac_try" in
14209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210   *) ac_try_echo=$ac_try;;
14211 esac
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213   (eval "$ac_try") 2>&5
14214   ac_status=$?
14215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); }; } &&
14217          { ac_try='test -s conftest$ac_exeext'
14218   { (case "(($ac_try" in
14219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220   *) ac_try_echo=$ac_try;;
14221 esac
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223   (eval "$ac_try") 2>&5
14224   ac_status=$?
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); }; }; then
14227   ac_cv_lib_udis86_ud_init=yes
14228 else
14229   echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14231
14232         ac_cv_lib_udis86_ud_init=no
14233 fi
14234
14235 rm -f core conftest.err conftest.$ac_objext \
14236       conftest$ac_exeext conftest.$ac_ext
14237 LIBS=$ac_check_lib_save_LIBS
14238 fi
14239 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14240 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14241 if test $ac_cv_lib_udis86_ud_init = yes; then
14242   cat >>confdefs.h <<_ACEOF
14243 #define HAVE_LIBUDIS86 1
14244 _ACEOF
14245
14246   LIBS="-ludis86 $LIBS"
14247
14248 else
14249
14250         echo "Error! You need to have libudis86 around."
14251         exit -1
14252
14253 fi
14254
14255
14256 else
14257   USE_UDIS86=0
14258
14259 fi
14260
14261
14262 cat >>confdefs.h <<_ACEOF
14263 #define USE_UDIS86 $USE_UDIS86
14264 _ACEOF
14265
14266
14267
14268 # Check whether --with-oprofile was given.
14269 if test "${with_oprofile+set}" = set; then
14270   withval=$with_oprofile;
14271       USE_OPROFILE=1
14272
14273       case "$withval" in
14274         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14275         no) llvm_cv_oppath=
14276             USE_OPROFILE=0
14277  ;;
14278         *) llvm_cv_oppath="${withval}/lib/oprofile"
14279            CPPFLAGS="-I${withval}/include";;
14280       esac
14281       if test -n "$llvm_cv_oppath" ; then
14282         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14283                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14284 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14285 if test "${ac_cv_search_bfd_init+set}" = set; then
14286   echo $ECHO_N "(cached) $ECHO_C" >&6
14287 else
14288   ac_func_search_save_LIBS=$LIBS
14289 cat >conftest.$ac_ext <<_ACEOF
14290 /* confdefs.h.  */
14291 _ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h.  */
14295
14296 /* Override any GCC internal prototype to avoid an error.
14297    Use char because int might match the return type of a GCC
14298    builtin and then its argument prototype would still apply.  */
14299 #ifdef __cplusplus
14300 extern "C"
14301 #endif
14302 char bfd_init ();
14303 int
14304 main ()
14305 {
14306 return bfd_init ();
14307   ;
14308   return 0;
14309 }
14310 _ACEOF
14311 for ac_lib in '' bfd; do
14312   if test -z "$ac_lib"; then
14313     ac_res="none required"
14314   else
14315     ac_res=-l$ac_lib
14316     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14317   fi
14318   rm -f conftest.$ac_objext conftest$ac_exeext
14319 if { (ac_try="$ac_link"
14320 case "(($ac_try" in
14321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322   *) ac_try_echo=$ac_try;;
14323 esac
14324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325   (eval "$ac_link") 2>conftest.er1
14326   ac_status=$?
14327   grep -v '^ *+' conftest.er1 >conftest.err
14328   rm -f conftest.er1
14329   cat conftest.err >&5
14330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331   (exit $ac_status); } &&
14332          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14333   { (case "(($ac_try" in
14334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14335   *) ac_try_echo=$ac_try;;
14336 esac
14337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14338   (eval "$ac_try") 2>&5
14339   ac_status=$?
14340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341   (exit $ac_status); }; } &&
14342          { ac_try='test -s conftest$ac_exeext'
14343   { (case "(($ac_try" in
14344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345   *) ac_try_echo=$ac_try;;
14346 esac
14347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348   (eval "$ac_try") 2>&5
14349   ac_status=$?
14350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351   (exit $ac_status); }; }; then
14352   ac_cv_search_bfd_init=$ac_res
14353 else
14354   echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.$ac_ext >&5
14356
14357
14358 fi
14359
14360 rm -f core conftest.err conftest.$ac_objext \
14361       conftest$ac_exeext
14362   if test "${ac_cv_search_bfd_init+set}" = set; then
14363   break
14364 fi
14365 done
14366 if test "${ac_cv_search_bfd_init+set}" = set; then
14367   :
14368 else
14369   ac_cv_search_bfd_init=no
14370 fi
14371 rm conftest.$ac_ext
14372 LIBS=$ac_func_search_save_LIBS
14373 fi
14374 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14375 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14376 ac_res=$ac_cv_search_bfd_init
14377 if test "$ac_res" != no; then
14378   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14379
14380 fi
14381
14382         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14383 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14384 if test "${ac_cv_search_op_open_agent+set}" = set; then
14385   echo $ECHO_N "(cached) $ECHO_C" >&6
14386 else
14387   ac_func_search_save_LIBS=$LIBS
14388 cat >conftest.$ac_ext <<_ACEOF
14389 /* confdefs.h.  */
14390 _ACEOF
14391 cat confdefs.h >>conftest.$ac_ext
14392 cat >>conftest.$ac_ext <<_ACEOF
14393 /* end confdefs.h.  */
14394
14395 /* Override any GCC internal prototype to avoid an error.
14396    Use char because int might match the return type of a GCC
14397    builtin and then its argument prototype would still apply.  */
14398 #ifdef __cplusplus
14399 extern "C"
14400 #endif
14401 char op_open_agent ();
14402 int
14403 main ()
14404 {
14405 return op_open_agent ();
14406   ;
14407   return 0;
14408 }
14409 _ACEOF
14410 for ac_lib in '' opagent; do
14411   if test -z "$ac_lib"; then
14412     ac_res="none required"
14413   else
14414     ac_res=-l$ac_lib
14415     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14416   fi
14417   rm -f conftest.$ac_objext conftest$ac_exeext
14418 if { (ac_try="$ac_link"
14419 case "(($ac_try" in
14420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421   *) ac_try_echo=$ac_try;;
14422 esac
14423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14424   (eval "$ac_link") 2>conftest.er1
14425   ac_status=$?
14426   grep -v '^ *+' conftest.er1 >conftest.err
14427   rm -f conftest.er1
14428   cat conftest.err >&5
14429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430   (exit $ac_status); } &&
14431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14432   { (case "(($ac_try" in
14433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434   *) ac_try_echo=$ac_try;;
14435 esac
14436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437   (eval "$ac_try") 2>&5
14438   ac_status=$?
14439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440   (exit $ac_status); }; } &&
14441          { ac_try='test -s conftest$ac_exeext'
14442   { (case "(($ac_try" in
14443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444   *) ac_try_echo=$ac_try;;
14445 esac
14446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447   (eval "$ac_try") 2>&5
14448   ac_status=$?
14449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450   (exit $ac_status); }; }; then
14451   ac_cv_search_op_open_agent=$ac_res
14452 else
14453   echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14455
14456
14457 fi
14458
14459 rm -f core conftest.err conftest.$ac_objext \
14460       conftest$ac_exeext
14461   if test "${ac_cv_search_op_open_agent+set}" = set; then
14462   break
14463 fi
14464 done
14465 if test "${ac_cv_search_op_open_agent+set}" = set; then
14466   :
14467 else
14468   ac_cv_search_op_open_agent=no
14469 fi
14470 rm conftest.$ac_ext
14471 LIBS=$ac_func_search_save_LIBS
14472 fi
14473 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14474 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14475 ac_res=$ac_cv_search_op_open_agent
14476 if test "$ac_res" != no; then
14477   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14478
14479 else
14480
14481           echo "Error! You need to have libopagent around."
14482           exit -1
14483
14484 fi
14485
14486         if test "${ac_cv_header_opagent_h+set}" = set; then
14487   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14488 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14489 if test "${ac_cv_header_opagent_h+set}" = set; then
14490   echo $ECHO_N "(cached) $ECHO_C" >&6
14491 fi
14492 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14493 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14494 else
14495   # Is the header compilable?
14496 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14497 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14498 cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h.  */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h.  */
14504 $ac_includes_default
14505 #include <opagent.h>
14506 _ACEOF
14507 rm -f conftest.$ac_objext
14508 if { (ac_try="$ac_compile"
14509 case "(($ac_try" in
14510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14511   *) ac_try_echo=$ac_try;;
14512 esac
14513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14514   (eval "$ac_compile") 2>conftest.er1
14515   ac_status=$?
14516   grep -v '^ *+' conftest.er1 >conftest.err
14517   rm -f conftest.er1
14518   cat conftest.err >&5
14519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520   (exit $ac_status); } &&
14521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14522   { (case "(($ac_try" in
14523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524   *) ac_try_echo=$ac_try;;
14525 esac
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527   (eval "$ac_try") 2>&5
14528   ac_status=$?
14529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530   (exit $ac_status); }; } &&
14531          { ac_try='test -s conftest.$ac_objext'
14532   { (case "(($ac_try" in
14533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534   *) ac_try_echo=$ac_try;;
14535 esac
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537   (eval "$ac_try") 2>&5
14538   ac_status=$?
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); }; }; then
14541   ac_header_compiler=yes
14542 else
14543   echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14545
14546         ac_header_compiler=no
14547 fi
14548
14549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14551 echo "${ECHO_T}$ac_header_compiler" >&6; }
14552
14553 # Is the header present?
14554 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14555 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14556 cat >conftest.$ac_ext <<_ACEOF
14557 /* confdefs.h.  */
14558 _ACEOF
14559 cat confdefs.h >>conftest.$ac_ext
14560 cat >>conftest.$ac_ext <<_ACEOF
14561 /* end confdefs.h.  */
14562 #include <opagent.h>
14563 _ACEOF
14564 if { (ac_try="$ac_cpp conftest.$ac_ext"
14565 case "(($ac_try" in
14566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14567   *) ac_try_echo=$ac_try;;
14568 esac
14569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14570   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14571   ac_status=$?
14572   grep -v '^ *+' conftest.er1 >conftest.err
14573   rm -f conftest.er1
14574   cat conftest.err >&5
14575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576   (exit $ac_status); } >/dev/null; then
14577   if test -s conftest.err; then
14578     ac_cpp_err=$ac_c_preproc_warn_flag
14579     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14580   else
14581     ac_cpp_err=
14582   fi
14583 else
14584   ac_cpp_err=yes
14585 fi
14586 if test -z "$ac_cpp_err"; then
14587   ac_header_preproc=yes
14588 else
14589   echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14591
14592   ac_header_preproc=no
14593 fi
14594
14595 rm -f conftest.err conftest.$ac_ext
14596 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14597 echo "${ECHO_T}$ac_header_preproc" >&6; }
14598
14599 # So?  What about this header?
14600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14601   yes:no: )
14602     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14603 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14604     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14605 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14606     ac_header_preproc=yes
14607     ;;
14608   no:yes:* )
14609     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14610 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14611     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14612 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14613     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14614 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14615     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14616 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14617     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14618 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14619     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14620 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14621     ( cat <<\_ASBOX
14622 ## ----------------------------------- ##
14623 ## Report this to llvmbugs@cs.uiuc.edu ##
14624 ## ----------------------------------- ##
14625 _ASBOX
14626      ) | sed "s/^/$as_me: WARNING:     /" >&2
14627     ;;
14628 esac
14629 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14630 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14631 if test "${ac_cv_header_opagent_h+set}" = set; then
14632   echo $ECHO_N "(cached) $ECHO_C" >&6
14633 else
14634   ac_cv_header_opagent_h=$ac_header_preproc
14635 fi
14636 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14637 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14638
14639 fi
14640 if test $ac_cv_header_opagent_h = yes; then
14641   :
14642 else
14643
14644           echo "Error! You need to have opagent.h around."
14645           exit -1
14646
14647 fi
14648
14649
14650       fi
14651
14652 else
14653
14654       USE_OPROFILE=0
14655
14656
14657 fi
14658
14659
14660 cat >>confdefs.h <<_ACEOF
14661 #define USE_OPROFILE $USE_OPROFILE
14662 _ACEOF
14663
14664
14665
14666
14667
14668
14669
14670
14671 ac_header_dirent=no
14672 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14673   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14674 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14675 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14677   echo $ECHO_N "(cached) $ECHO_C" >&6
14678 else
14679   cat >conftest.$ac_ext <<_ACEOF
14680 /* confdefs.h.  */
14681 _ACEOF
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h.  */
14685 #include <sys/types.h>
14686 #include <$ac_hdr>
14687
14688 int
14689 main ()
14690 {
14691 if ((DIR *) 0)
14692 return 0;
14693   ;
14694   return 0;
14695 }
14696 _ACEOF
14697 rm -f conftest.$ac_objext
14698 if { (ac_try="$ac_compile"
14699 case "(($ac_try" in
14700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701   *) ac_try_echo=$ac_try;;
14702 esac
14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704   (eval "$ac_compile") 2>conftest.er1
14705   ac_status=$?
14706   grep -v '^ *+' conftest.er1 >conftest.err
14707   rm -f conftest.er1
14708   cat conftest.err >&5
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); } &&
14711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14712   { (case "(($ac_try" in
14713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714   *) ac_try_echo=$ac_try;;
14715 esac
14716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717   (eval "$ac_try") 2>&5
14718   ac_status=$?
14719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720   (exit $ac_status); }; } &&
14721          { ac_try='test -s conftest.$ac_objext'
14722   { (case "(($ac_try" in
14723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724   *) ac_try_echo=$ac_try;;
14725 esac
14726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14727   (eval "$ac_try") 2>&5
14728   ac_status=$?
14729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730   (exit $ac_status); }; }; then
14731   eval "$as_ac_Header=yes"
14732 else
14733   echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14735
14736         eval "$as_ac_Header=no"
14737 fi
14738
14739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14740 fi
14741 ac_res=`eval echo '${'$as_ac_Header'}'`
14742                { echo "$as_me:$LINENO: result: $ac_res" >&5
14743 echo "${ECHO_T}$ac_res" >&6; }
14744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14745   cat >>confdefs.h <<_ACEOF
14746 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14747 _ACEOF
14748
14749 ac_header_dirent=$ac_hdr; break
14750 fi
14751
14752 done
14753 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14754 if test $ac_header_dirent = dirent.h; then
14755   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14756 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14757 if test "${ac_cv_search_opendir+set}" = set; then
14758   echo $ECHO_N "(cached) $ECHO_C" >&6
14759 else
14760   ac_func_search_save_LIBS=$LIBS
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
14768 /* Override any GCC internal prototype to avoid an error.
14769    Use char because int might match the return type of a GCC
14770    builtin and then its argument prototype would still apply.  */
14771 #ifdef __cplusplus
14772 extern "C"
14773 #endif
14774 char opendir ();
14775 int
14776 main ()
14777 {
14778 return opendir ();
14779   ;
14780   return 0;
14781 }
14782 _ACEOF
14783 for ac_lib in '' dir; do
14784   if test -z "$ac_lib"; then
14785     ac_res="none required"
14786   else
14787     ac_res=-l$ac_lib
14788     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14789   fi
14790   rm -f conftest.$ac_objext conftest$ac_exeext
14791 if { (ac_try="$ac_link"
14792 case "(($ac_try" in
14793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794   *) ac_try_echo=$ac_try;;
14795 esac
14796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797   (eval "$ac_link") 2>conftest.er1
14798   ac_status=$?
14799   grep -v '^ *+' conftest.er1 >conftest.err
14800   rm -f conftest.er1
14801   cat conftest.err >&5
14802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803   (exit $ac_status); } &&
14804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14805   { (case "(($ac_try" in
14806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14807   *) ac_try_echo=$ac_try;;
14808 esac
14809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14810   (eval "$ac_try") 2>&5
14811   ac_status=$?
14812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813   (exit $ac_status); }; } &&
14814          { ac_try='test -s conftest$ac_exeext'
14815   { (case "(($ac_try" in
14816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817   *) ac_try_echo=$ac_try;;
14818 esac
14819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820   (eval "$ac_try") 2>&5
14821   ac_status=$?
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); }; }; then
14824   ac_cv_search_opendir=$ac_res
14825 else
14826   echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14828
14829
14830 fi
14831
14832 rm -f core conftest.err conftest.$ac_objext \
14833       conftest$ac_exeext
14834   if test "${ac_cv_search_opendir+set}" = set; then
14835   break
14836 fi
14837 done
14838 if test "${ac_cv_search_opendir+set}" = set; then
14839   :
14840 else
14841   ac_cv_search_opendir=no
14842 fi
14843 rm conftest.$ac_ext
14844 LIBS=$ac_func_search_save_LIBS
14845 fi
14846 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14847 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14848 ac_res=$ac_cv_search_opendir
14849 if test "$ac_res" != no; then
14850   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14851
14852 fi
14853
14854 else
14855   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14856 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14857 if test "${ac_cv_search_opendir+set}" = set; then
14858   echo $ECHO_N "(cached) $ECHO_C" >&6
14859 else
14860   ac_func_search_save_LIBS=$LIBS
14861 cat >conftest.$ac_ext <<_ACEOF
14862 /* confdefs.h.  */
14863 _ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h.  */
14867
14868 /* Override any GCC internal prototype to avoid an error.
14869    Use char because int might match the return type of a GCC
14870    builtin and then its argument prototype would still apply.  */
14871 #ifdef __cplusplus
14872 extern "C"
14873 #endif
14874 char opendir ();
14875 int
14876 main ()
14877 {
14878 return opendir ();
14879   ;
14880   return 0;
14881 }
14882 _ACEOF
14883 for ac_lib in '' x; do
14884   if test -z "$ac_lib"; then
14885     ac_res="none required"
14886   else
14887     ac_res=-l$ac_lib
14888     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14889   fi
14890   rm -f conftest.$ac_objext conftest$ac_exeext
14891 if { (ac_try="$ac_link"
14892 case "(($ac_try" in
14893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14894   *) ac_try_echo=$ac_try;;
14895 esac
14896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14897   (eval "$ac_link") 2>conftest.er1
14898   ac_status=$?
14899   grep -v '^ *+' conftest.er1 >conftest.err
14900   rm -f conftest.er1
14901   cat conftest.err >&5
14902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   (exit $ac_status); } &&
14904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14905   { (case "(($ac_try" in
14906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907   *) ac_try_echo=$ac_try;;
14908 esac
14909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910   (eval "$ac_try") 2>&5
14911   ac_status=$?
14912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913   (exit $ac_status); }; } &&
14914          { ac_try='test -s conftest$ac_exeext'
14915   { (case "(($ac_try" in
14916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14917   *) ac_try_echo=$ac_try;;
14918 esac
14919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14920   (eval "$ac_try") 2>&5
14921   ac_status=$?
14922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923   (exit $ac_status); }; }; then
14924   ac_cv_search_opendir=$ac_res
14925 else
14926   echo "$as_me: failed program was:" >&5
14927 sed 's/^/| /' conftest.$ac_ext >&5
14928
14929
14930 fi
14931
14932 rm -f core conftest.err conftest.$ac_objext \
14933       conftest$ac_exeext
14934   if test "${ac_cv_search_opendir+set}" = set; then
14935   break
14936 fi
14937 done
14938 if test "${ac_cv_search_opendir+set}" = set; then
14939   :
14940 else
14941   ac_cv_search_opendir=no
14942 fi
14943 rm conftest.$ac_ext
14944 LIBS=$ac_func_search_save_LIBS
14945 fi
14946 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14947 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14948 ac_res=$ac_cv_search_opendir
14949 if test "$ac_res" != no; then
14950   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14951
14952 fi
14953
14954 fi
14955
14956 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14957 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14958 if test "${ac_cv_header_mmap_anon+set}" = set; then
14959   echo $ECHO_N "(cached) $ECHO_C" >&6
14960 else
14961    ac_ext=c
14962 ac_cpp='$CPP $CPPFLAGS'
14963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14966
14967   cat >conftest.$ac_ext <<_ACEOF
14968 /* confdefs.h.  */
14969 _ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h.  */
14973 #include <sys/mman.h>
14974 #include <unistd.h>
14975 #include <fcntl.h>
14976 int
14977 main ()
14978 {
14979 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14980   ;
14981   return 0;
14982 }
14983 _ACEOF
14984 rm -f conftest.$ac_objext
14985 if { (ac_try="$ac_compile"
14986 case "(($ac_try" in
14987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988   *) ac_try_echo=$ac_try;;
14989 esac
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991   (eval "$ac_compile") 2>conftest.er1
14992   ac_status=$?
14993   grep -v '^ *+' conftest.er1 >conftest.err
14994   rm -f conftest.er1
14995   cat conftest.err >&5
14996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997   (exit $ac_status); } &&
14998          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14999   { (case "(($ac_try" in
15000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15001   *) ac_try_echo=$ac_try;;
15002 esac
15003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15004   (eval "$ac_try") 2>&5
15005   ac_status=$?
15006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007   (exit $ac_status); }; } &&
15008          { ac_try='test -s conftest.$ac_objext'
15009   { (case "(($ac_try" in
15010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011   *) ac_try_echo=$ac_try;;
15012 esac
15013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15014   (eval "$ac_try") 2>&5
15015   ac_status=$?
15016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017   (exit $ac_status); }; }; then
15018   ac_cv_header_mmap_anon=yes
15019 else
15020   echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15022
15023         ac_cv_header_mmap_anon=no
15024 fi
15025
15026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15027   ac_ext=c
15028 ac_cpp='$CPP $CPPFLAGS'
15029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15032
15033
15034 fi
15035 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15036 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15037 if test "$ac_cv_header_mmap_anon" = yes; then
15038
15039 cat >>confdefs.h <<\_ACEOF
15040 #define HAVE_MMAP_ANONYMOUS 1
15041 _ACEOF
15042
15043 fi
15044
15045 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15046 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15047 if test "${ac_cv_header_stat_broken+set}" = set; then
15048   echo $ECHO_N "(cached) $ECHO_C" >&6
15049 else
15050   cat >conftest.$ac_ext <<_ACEOF
15051 /* confdefs.h.  */
15052 _ACEOF
15053 cat confdefs.h >>conftest.$ac_ext
15054 cat >>conftest.$ac_ext <<_ACEOF
15055 /* end confdefs.h.  */
15056 #include <sys/types.h>
15057 #include <sys/stat.h>
15058
15059 #if defined S_ISBLK && defined S_IFDIR
15060 # if S_ISBLK (S_IFDIR)
15061 You lose.
15062 # endif
15063 #endif
15064
15065 #if defined S_ISBLK && defined S_IFCHR
15066 # if S_ISBLK (S_IFCHR)
15067 You lose.
15068 # endif
15069 #endif
15070
15071 #if defined S_ISLNK && defined S_IFREG
15072 # if S_ISLNK (S_IFREG)
15073 You lose.
15074 # endif
15075 #endif
15076
15077 #if defined S_ISSOCK && defined S_IFREG
15078 # if S_ISSOCK (S_IFREG)
15079 You lose.
15080 # endif
15081 #endif
15082
15083 _ACEOF
15084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15085   $EGREP "You lose" >/dev/null 2>&1; then
15086   ac_cv_header_stat_broken=yes
15087 else
15088   ac_cv_header_stat_broken=no
15089 fi
15090 rm -f conftest*
15091
15092 fi
15093 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15094 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15095 if test $ac_cv_header_stat_broken = yes; then
15096
15097 cat >>confdefs.h <<\_ACEOF
15098 #define STAT_MACROS_BROKEN 1
15099 _ACEOF
15100
15101 fi
15102
15103 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15104 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15105 if test "${ac_cv_header_stdc+set}" = set; then
15106   echo $ECHO_N "(cached) $ECHO_C" >&6
15107 else
15108   cat >conftest.$ac_ext <<_ACEOF
15109 /* confdefs.h.  */
15110 _ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h.  */
15114 #include <stdlib.h>
15115 #include <stdarg.h>
15116 #include <string.h>
15117 #include <float.h>
15118
15119 int
15120 main ()
15121 {
15122
15123   ;
15124   return 0;
15125 }
15126 _ACEOF
15127 rm -f conftest.$ac_objext
15128 if { (ac_try="$ac_compile"
15129 case "(($ac_try" in
15130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131   *) ac_try_echo=$ac_try;;
15132 esac
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134   (eval "$ac_compile") 2>conftest.er1
15135   ac_status=$?
15136   grep -v '^ *+' conftest.er1 >conftest.err
15137   rm -f conftest.er1
15138   cat conftest.err >&5
15139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140   (exit $ac_status); } &&
15141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15142   { (case "(($ac_try" in
15143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144   *) ac_try_echo=$ac_try;;
15145 esac
15146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147   (eval "$ac_try") 2>&5
15148   ac_status=$?
15149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150   (exit $ac_status); }; } &&
15151          { ac_try='test -s conftest.$ac_objext'
15152   { (case "(($ac_try" in
15153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154   *) ac_try_echo=$ac_try;;
15155 esac
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157   (eval "$ac_try") 2>&5
15158   ac_status=$?
15159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160   (exit $ac_status); }; }; then
15161   ac_cv_header_stdc=yes
15162 else
15163   echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15165
15166         ac_cv_header_stdc=no
15167 fi
15168
15169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15170
15171 if test $ac_cv_header_stdc = yes; then
15172   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15173   cat >conftest.$ac_ext <<_ACEOF
15174 /* confdefs.h.  */
15175 _ACEOF
15176 cat confdefs.h >>conftest.$ac_ext
15177 cat >>conftest.$ac_ext <<_ACEOF
15178 /* end confdefs.h.  */
15179 #include <string.h>
15180
15181 _ACEOF
15182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15183   $EGREP "memchr" >/dev/null 2>&1; then
15184   :
15185 else
15186   ac_cv_header_stdc=no
15187 fi
15188 rm -f conftest*
15189
15190 fi
15191
15192 if test $ac_cv_header_stdc = yes; then
15193   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15194   cat >conftest.$ac_ext <<_ACEOF
15195 /* confdefs.h.  */
15196 _ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h.  */
15200 #include <stdlib.h>
15201
15202 _ACEOF
15203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15204   $EGREP "free" >/dev/null 2>&1; then
15205   :
15206 else
15207   ac_cv_header_stdc=no
15208 fi
15209 rm -f conftest*
15210
15211 fi
15212
15213 if test $ac_cv_header_stdc = yes; then
15214   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15215   if test "$cross_compiling" = yes; then
15216   :
15217 else
15218   cat >conftest.$ac_ext <<_ACEOF
15219 /* confdefs.h.  */
15220 _ACEOF
15221 cat confdefs.h >>conftest.$ac_ext
15222 cat >>conftest.$ac_ext <<_ACEOF
15223 /* end confdefs.h.  */
15224 #include <ctype.h>
15225 #include <stdlib.h>
15226 #if ((' ' & 0x0FF) == 0x020)
15227 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15228 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15229 #else
15230 # define ISLOWER(c) \
15231                    (('a' <= (c) && (c) <= 'i') \
15232                      || ('j' <= (c) && (c) <= 'r') \
15233                      || ('s' <= (c) && (c) <= 'z'))
15234 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15235 #endif
15236
15237 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15238 int
15239 main ()
15240 {
15241   int i;
15242   for (i = 0; i < 256; i++)
15243     if (XOR (islower (i), ISLOWER (i))
15244         || toupper (i) != TOUPPER (i))
15245       return 2;
15246   return 0;
15247 }
15248 _ACEOF
15249 rm -f conftest$ac_exeext
15250 if { (ac_try="$ac_link"
15251 case "(($ac_try" in
15252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253   *) ac_try_echo=$ac_try;;
15254 esac
15255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256   (eval "$ac_link") 2>&5
15257   ac_status=$?
15258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15260   { (case "(($ac_try" in
15261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262   *) ac_try_echo=$ac_try;;
15263 esac
15264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265   (eval "$ac_try") 2>&5
15266   ac_status=$?
15267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268   (exit $ac_status); }; }; then
15269   :
15270 else
15271   echo "$as_me: program exited with status $ac_status" >&5
15272 echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15274
15275 ( exit $ac_status )
15276 ac_cv_header_stdc=no
15277 fi
15278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15279 fi
15280
15281
15282 fi
15283 fi
15284 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15285 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15286 if test $ac_cv_header_stdc = yes; then
15287
15288 cat >>confdefs.h <<\_ACEOF
15289 #define STDC_HEADERS 1
15290 _ACEOF
15291
15292 fi
15293
15294 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15295 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15296 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15297   echo $ECHO_N "(cached) $ECHO_C" >&6
15298 else
15299   cat >conftest.$ac_ext <<_ACEOF
15300 /* confdefs.h.  */
15301 _ACEOF
15302 cat confdefs.h >>conftest.$ac_ext
15303 cat >>conftest.$ac_ext <<_ACEOF
15304 /* end confdefs.h.  */
15305 #include <sys/types.h>
15306 #include <sys/wait.h>
15307 #ifndef WEXITSTATUS
15308 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15309 #endif
15310 #ifndef WIFEXITED
15311 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15312 #endif
15313
15314 int
15315 main ()
15316 {
15317   int s;
15318   wait (&s);
15319   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15320   ;
15321   return 0;
15322 }
15323 _ACEOF
15324 rm -f conftest.$ac_objext
15325 if { (ac_try="$ac_compile"
15326 case "(($ac_try" in
15327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328   *) ac_try_echo=$ac_try;;
15329 esac
15330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331   (eval "$ac_compile") 2>conftest.er1
15332   ac_status=$?
15333   grep -v '^ *+' conftest.er1 >conftest.err
15334   rm -f conftest.er1
15335   cat conftest.err >&5
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); } &&
15338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15339   { (case "(($ac_try" in
15340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341   *) ac_try_echo=$ac_try;;
15342 esac
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344   (eval "$ac_try") 2>&5
15345   ac_status=$?
15346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347   (exit $ac_status); }; } &&
15348          { ac_try='test -s conftest.$ac_objext'
15349   { (case "(($ac_try" in
15350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351   *) ac_try_echo=$ac_try;;
15352 esac
15353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15354   (eval "$ac_try") 2>&5
15355   ac_status=$?
15356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357   (exit $ac_status); }; }; then
15358   ac_cv_header_sys_wait_h=yes
15359 else
15360   echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15362
15363         ac_cv_header_sys_wait_h=no
15364 fi
15365
15366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15367 fi
15368 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15369 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15370 if test $ac_cv_header_sys_wait_h = yes; then
15371
15372 cat >>confdefs.h <<\_ACEOF
15373 #define HAVE_SYS_WAIT_H 1
15374 _ACEOF
15375
15376 fi
15377
15378 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15379 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15380 if test "${ac_cv_header_time+set}" = set; then
15381   echo $ECHO_N "(cached) $ECHO_C" >&6
15382 else
15383   cat >conftest.$ac_ext <<_ACEOF
15384 /* confdefs.h.  */
15385 _ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h.  */
15389 #include <sys/types.h>
15390 #include <sys/time.h>
15391 #include <time.h>
15392
15393 int
15394 main ()
15395 {
15396 if ((struct tm *) 0)
15397 return 0;
15398   ;
15399   return 0;
15400 }
15401 _ACEOF
15402 rm -f conftest.$ac_objext
15403 if { (ac_try="$ac_compile"
15404 case "(($ac_try" in
15405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406   *) ac_try_echo=$ac_try;;
15407 esac
15408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15409   (eval "$ac_compile") 2>conftest.er1
15410   ac_status=$?
15411   grep -v '^ *+' conftest.er1 >conftest.err
15412   rm -f conftest.er1
15413   cat conftest.err >&5
15414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415   (exit $ac_status); } &&
15416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15417   { (case "(($ac_try" in
15418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419   *) ac_try_echo=$ac_try;;
15420 esac
15421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15422   (eval "$ac_try") 2>&5
15423   ac_status=$?
15424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425   (exit $ac_status); }; } &&
15426          { ac_try='test -s conftest.$ac_objext'
15427   { (case "(($ac_try" in
15428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429   *) ac_try_echo=$ac_try;;
15430 esac
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432   (eval "$ac_try") 2>&5
15433   ac_status=$?
15434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435   (exit $ac_status); }; }; then
15436   ac_cv_header_time=yes
15437 else
15438   echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15440
15441         ac_cv_header_time=no
15442 fi
15443
15444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15445 fi
15446 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15447 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15448 if test $ac_cv_header_time = yes; then
15449
15450 cat >>confdefs.h <<\_ACEOF
15451 #define TIME_WITH_SYS_TIME 1
15452 _ACEOF
15453
15454 fi
15455
15456
15457
15458
15459
15460
15461
15462
15463 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15464 do
15465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15467   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15470   echo $ECHO_N "(cached) $ECHO_C" >&6
15471 fi
15472 ac_res=`eval echo '${'$as_ac_Header'}'`
15473                { echo "$as_me:$LINENO: result: $ac_res" >&5
15474 echo "${ECHO_T}$ac_res" >&6; }
15475 else
15476   # Is the header compilable?
15477 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15479 cat >conftest.$ac_ext <<_ACEOF
15480 /* confdefs.h.  */
15481 _ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h.  */
15485 $ac_includes_default
15486 #include <$ac_header>
15487 _ACEOF
15488 rm -f conftest.$ac_objext
15489 if { (ac_try="$ac_compile"
15490 case "(($ac_try" in
15491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492   *) ac_try_echo=$ac_try;;
15493 esac
15494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495   (eval "$ac_compile") 2>conftest.er1
15496   ac_status=$?
15497   grep -v '^ *+' conftest.er1 >conftest.err
15498   rm -f conftest.er1
15499   cat conftest.err >&5
15500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501   (exit $ac_status); } &&
15502          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15503   { (case "(($ac_try" in
15504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15505   *) ac_try_echo=$ac_try;;
15506 esac
15507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15508   (eval "$ac_try") 2>&5
15509   ac_status=$?
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); }; } &&
15512          { ac_try='test -s conftest.$ac_objext'
15513   { (case "(($ac_try" in
15514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515   *) ac_try_echo=$ac_try;;
15516 esac
15517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15518   (eval "$ac_try") 2>&5
15519   ac_status=$?
15520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521   (exit $ac_status); }; }; then
15522   ac_header_compiler=yes
15523 else
15524   echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15526
15527         ac_header_compiler=no
15528 fi
15529
15530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15532 echo "${ECHO_T}$ac_header_compiler" >&6; }
15533
15534 # Is the header present?
15535 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15537 cat >conftest.$ac_ext <<_ACEOF
15538 /* confdefs.h.  */
15539 _ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h.  */
15543 #include <$ac_header>
15544 _ACEOF
15545 if { (ac_try="$ac_cpp conftest.$ac_ext"
15546 case "(($ac_try" in
15547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548   *) ac_try_echo=$ac_try;;
15549 esac
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15552   ac_status=$?
15553   grep -v '^ *+' conftest.er1 >conftest.err
15554   rm -f conftest.er1
15555   cat conftest.err >&5
15556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557   (exit $ac_status); } >/dev/null; then
15558   if test -s conftest.err; then
15559     ac_cpp_err=$ac_c_preproc_warn_flag
15560     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15561   else
15562     ac_cpp_err=
15563   fi
15564 else
15565   ac_cpp_err=yes
15566 fi
15567 if test -z "$ac_cpp_err"; then
15568   ac_header_preproc=yes
15569 else
15570   echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15572
15573   ac_header_preproc=no
15574 fi
15575
15576 rm -f conftest.err conftest.$ac_ext
15577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15578 echo "${ECHO_T}$ac_header_preproc" >&6; }
15579
15580 # So?  What about this header?
15581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15582   yes:no: )
15583     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15587     ac_header_preproc=yes
15588     ;;
15589   no:yes:* )
15590     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15592     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15593 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15594     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15596     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15597 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15600     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15602     ( cat <<\_ASBOX
15603 ## ----------------------------------- ##
15604 ## Report this to llvmbugs@cs.uiuc.edu ##
15605 ## ----------------------------------- ##
15606 _ASBOX
15607      ) | sed "s/^/$as_me: WARNING:     /" >&2
15608     ;;
15609 esac
15610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15613   echo $ECHO_N "(cached) $ECHO_C" >&6
15614 else
15615   eval "$as_ac_Header=\$ac_header_preproc"
15616 fi
15617 ac_res=`eval echo '${'$as_ac_Header'}'`
15618                { echo "$as_me:$LINENO: result: $ac_res" >&5
15619 echo "${ECHO_T}$ac_res" >&6; }
15620
15621 fi
15622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15623   cat >>confdefs.h <<_ACEOF
15624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15625 _ACEOF
15626
15627 fi
15628
15629 done
15630
15631
15632
15633
15634
15635
15636
15637 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15638 do
15639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15641   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15644   echo $ECHO_N "(cached) $ECHO_C" >&6
15645 fi
15646 ac_res=`eval echo '${'$as_ac_Header'}'`
15647                { echo "$as_me:$LINENO: result: $ac_res" >&5
15648 echo "${ECHO_T}$ac_res" >&6; }
15649 else
15650   # Is the header compilable?
15651 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15653 cat >conftest.$ac_ext <<_ACEOF
15654 /* confdefs.h.  */
15655 _ACEOF
15656 cat confdefs.h >>conftest.$ac_ext
15657 cat >>conftest.$ac_ext <<_ACEOF
15658 /* end confdefs.h.  */
15659 $ac_includes_default
15660 #include <$ac_header>
15661 _ACEOF
15662 rm -f conftest.$ac_objext
15663 if { (ac_try="$ac_compile"
15664 case "(($ac_try" in
15665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15666   *) ac_try_echo=$ac_try;;
15667 esac
15668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15669   (eval "$ac_compile") 2>conftest.er1
15670   ac_status=$?
15671   grep -v '^ *+' conftest.er1 >conftest.err
15672   rm -f conftest.er1
15673   cat conftest.err >&5
15674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675   (exit $ac_status); } &&
15676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15677   { (case "(($ac_try" in
15678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15679   *) ac_try_echo=$ac_try;;
15680 esac
15681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15682   (eval "$ac_try") 2>&5
15683   ac_status=$?
15684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685   (exit $ac_status); }; } &&
15686          { ac_try='test -s conftest.$ac_objext'
15687   { (case "(($ac_try" in
15688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15689   *) ac_try_echo=$ac_try;;
15690 esac
15691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15692   (eval "$ac_try") 2>&5
15693   ac_status=$?
15694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695   (exit $ac_status); }; }; then
15696   ac_header_compiler=yes
15697 else
15698   echo "$as_me: failed program was:" >&5
15699 sed 's/^/| /' conftest.$ac_ext >&5
15700
15701         ac_header_compiler=no
15702 fi
15703
15704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15706 echo "${ECHO_T}$ac_header_compiler" >&6; }
15707
15708 # Is the header present?
15709 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15711 cat >conftest.$ac_ext <<_ACEOF
15712 /* confdefs.h.  */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h.  */
15717 #include <$ac_header>
15718 _ACEOF
15719 if { (ac_try="$ac_cpp conftest.$ac_ext"
15720 case "(($ac_try" in
15721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722   *) ac_try_echo=$ac_try;;
15723 esac
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15726   ac_status=$?
15727   grep -v '^ *+' conftest.er1 >conftest.err
15728   rm -f conftest.er1
15729   cat conftest.err >&5
15730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731   (exit $ac_status); } >/dev/null; then
15732   if test -s conftest.err; then
15733     ac_cpp_err=$ac_c_preproc_warn_flag
15734     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15735   else
15736     ac_cpp_err=
15737   fi
15738 else
15739   ac_cpp_err=yes
15740 fi
15741 if test -z "$ac_cpp_err"; then
15742   ac_header_preproc=yes
15743 else
15744   echo "$as_me: failed program was:" >&5
15745 sed 's/^/| /' conftest.$ac_ext >&5
15746
15747   ac_header_preproc=no
15748 fi
15749
15750 rm -f conftest.err conftest.$ac_ext
15751 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15752 echo "${ECHO_T}$ac_header_preproc" >&6; }
15753
15754 # So?  What about this header?
15755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15756   yes:no: )
15757     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15759     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15761     ac_header_preproc=yes
15762     ;;
15763   no:yes:* )
15764     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15766     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15767 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15768     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15770     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15771 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15772     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15774     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15776     ( cat <<\_ASBOX
15777 ## ----------------------------------- ##
15778 ## Report this to llvmbugs@cs.uiuc.edu ##
15779 ## ----------------------------------- ##
15780 _ASBOX
15781      ) | sed "s/^/$as_me: WARNING:     /" >&2
15782     ;;
15783 esac
15784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15787   echo $ECHO_N "(cached) $ECHO_C" >&6
15788 else
15789   eval "$as_ac_Header=\$ac_header_preproc"
15790 fi
15791 ac_res=`eval echo '${'$as_ac_Header'}'`
15792                { echo "$as_me:$LINENO: result: $ac_res" >&5
15793 echo "${ECHO_T}$ac_res" >&6; }
15794
15795 fi
15796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15797   cat >>confdefs.h <<_ACEOF
15798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15799 _ACEOF
15800
15801 fi
15802
15803 done
15804
15805
15806
15807 for ac_header in utime.h windows.h
15808 do
15809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15811   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15814   echo $ECHO_N "(cached) $ECHO_C" >&6
15815 fi
15816 ac_res=`eval echo '${'$as_ac_Header'}'`
15817                { echo "$as_me:$LINENO: result: $ac_res" >&5
15818 echo "${ECHO_T}$ac_res" >&6; }
15819 else
15820   # Is the header compilable?
15821 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15823 cat >conftest.$ac_ext <<_ACEOF
15824 /* confdefs.h.  */
15825 _ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h.  */
15829 $ac_includes_default
15830 #include <$ac_header>
15831 _ACEOF
15832 rm -f conftest.$ac_objext
15833 if { (ac_try="$ac_compile"
15834 case "(($ac_try" in
15835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836   *) ac_try_echo=$ac_try;;
15837 esac
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839   (eval "$ac_compile") 2>conftest.er1
15840   ac_status=$?
15841   grep -v '^ *+' conftest.er1 >conftest.err
15842   rm -f conftest.er1
15843   cat conftest.err >&5
15844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845   (exit $ac_status); } &&
15846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15847   { (case "(($ac_try" in
15848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15849   *) ac_try_echo=$ac_try;;
15850 esac
15851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852   (eval "$ac_try") 2>&5
15853   ac_status=$?
15854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855   (exit $ac_status); }; } &&
15856          { ac_try='test -s conftest.$ac_objext'
15857   { (case "(($ac_try" in
15858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15859   *) ac_try_echo=$ac_try;;
15860 esac
15861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15862   (eval "$ac_try") 2>&5
15863   ac_status=$?
15864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865   (exit $ac_status); }; }; then
15866   ac_header_compiler=yes
15867 else
15868   echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15870
15871         ac_header_compiler=no
15872 fi
15873
15874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15875 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15876 echo "${ECHO_T}$ac_header_compiler" >&6; }
15877
15878 # Is the header present?
15879 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15881 cat >conftest.$ac_ext <<_ACEOF
15882 /* confdefs.h.  */
15883 _ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h.  */
15887 #include <$ac_header>
15888 _ACEOF
15889 if { (ac_try="$ac_cpp conftest.$ac_ext"
15890 case "(($ac_try" in
15891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892   *) ac_try_echo=$ac_try;;
15893 esac
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15896   ac_status=$?
15897   grep -v '^ *+' conftest.er1 >conftest.err
15898   rm -f conftest.er1
15899   cat conftest.err >&5
15900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901   (exit $ac_status); } >/dev/null; then
15902   if test -s conftest.err; then
15903     ac_cpp_err=$ac_c_preproc_warn_flag
15904     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15905   else
15906     ac_cpp_err=
15907   fi
15908 else
15909   ac_cpp_err=yes
15910 fi
15911 if test -z "$ac_cpp_err"; then
15912   ac_header_preproc=yes
15913 else
15914   echo "$as_me: failed program was:" >&5
15915 sed 's/^/| /' conftest.$ac_ext >&5
15916
15917   ac_header_preproc=no
15918 fi
15919
15920 rm -f conftest.err conftest.$ac_ext
15921 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15922 echo "${ECHO_T}$ac_header_preproc" >&6; }
15923
15924 # So?  What about this header?
15925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15926   yes:no: )
15927     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15931     ac_header_preproc=yes
15932     ;;
15933   no:yes:* )
15934     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15936     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15937 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15938     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15940     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15941 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15944     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15946     ( cat <<\_ASBOX
15947 ## ----------------------------------- ##
15948 ## Report this to llvmbugs@cs.uiuc.edu ##
15949 ## ----------------------------------- ##
15950 _ASBOX
15951      ) | sed "s/^/$as_me: WARNING:     /" >&2
15952     ;;
15953 esac
15954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15957   echo $ECHO_N "(cached) $ECHO_C" >&6
15958 else
15959   eval "$as_ac_Header=\$ac_header_preproc"
15960 fi
15961 ac_res=`eval echo '${'$as_ac_Header'}'`
15962                { echo "$as_me:$LINENO: result: $ac_res" >&5
15963 echo "${ECHO_T}$ac_res" >&6; }
15964
15965 fi
15966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15967   cat >>confdefs.h <<_ACEOF
15968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15969 _ACEOF
15970
15971 fi
15972
15973 done
15974
15975
15976
15977
15978
15979 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15980 do
15981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15983   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15986   echo $ECHO_N "(cached) $ECHO_C" >&6
15987 fi
15988 ac_res=`eval echo '${'$as_ac_Header'}'`
15989                { echo "$as_me:$LINENO: result: $ac_res" >&5
15990 echo "${ECHO_T}$ac_res" >&6; }
15991 else
15992   # Is the header compilable?
15993 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15995 cat >conftest.$ac_ext <<_ACEOF
15996 /* confdefs.h.  */
15997 _ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h.  */
16001 $ac_includes_default
16002 #include <$ac_header>
16003 _ACEOF
16004 rm -f conftest.$ac_objext
16005 if { (ac_try="$ac_compile"
16006 case "(($ac_try" in
16007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008   *) ac_try_echo=$ac_try;;
16009 esac
16010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011   (eval "$ac_compile") 2>conftest.er1
16012   ac_status=$?
16013   grep -v '^ *+' conftest.er1 >conftest.err
16014   rm -f conftest.er1
16015   cat conftest.err >&5
16016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017   (exit $ac_status); } &&
16018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16019   { (case "(($ac_try" in
16020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021   *) ac_try_echo=$ac_try;;
16022 esac
16023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16024   (eval "$ac_try") 2>&5
16025   ac_status=$?
16026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027   (exit $ac_status); }; } &&
16028          { ac_try='test -s conftest.$ac_objext'
16029   { (case "(($ac_try" in
16030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031   *) ac_try_echo=$ac_try;;
16032 esac
16033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16034   (eval "$ac_try") 2>&5
16035   ac_status=$?
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); }; }; then
16038   ac_header_compiler=yes
16039 else
16040   echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16042
16043         ac_header_compiler=no
16044 fi
16045
16046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16047 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16048 echo "${ECHO_T}$ac_header_compiler" >&6; }
16049
16050 # Is the header present?
16051 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16053 cat >conftest.$ac_ext <<_ACEOF
16054 /* confdefs.h.  */
16055 _ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h.  */
16059 #include <$ac_header>
16060 _ACEOF
16061 if { (ac_try="$ac_cpp conftest.$ac_ext"
16062 case "(($ac_try" in
16063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064   *) ac_try_echo=$ac_try;;
16065 esac
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16068   ac_status=$?
16069   grep -v '^ *+' conftest.er1 >conftest.err
16070   rm -f conftest.er1
16071   cat conftest.err >&5
16072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073   (exit $ac_status); } >/dev/null; then
16074   if test -s conftest.err; then
16075     ac_cpp_err=$ac_c_preproc_warn_flag
16076     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16077   else
16078     ac_cpp_err=
16079   fi
16080 else
16081   ac_cpp_err=yes
16082 fi
16083 if test -z "$ac_cpp_err"; then
16084   ac_header_preproc=yes
16085 else
16086   echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16088
16089   ac_header_preproc=no
16090 fi
16091
16092 rm -f conftest.err conftest.$ac_ext
16093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16094 echo "${ECHO_T}$ac_header_preproc" >&6; }
16095
16096 # So?  What about this header?
16097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16098   yes:no: )
16099     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16103     ac_header_preproc=yes
16104     ;;
16105   no:yes:* )
16106     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16108     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16109 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16110     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16112     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16113 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16116     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16118     ( cat <<\_ASBOX
16119 ## ----------------------------------- ##
16120 ## Report this to llvmbugs@cs.uiuc.edu ##
16121 ## ----------------------------------- ##
16122 _ASBOX
16123      ) | sed "s/^/$as_me: WARNING:     /" >&2
16124     ;;
16125 esac
16126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16129   echo $ECHO_N "(cached) $ECHO_C" >&6
16130 else
16131   eval "$as_ac_Header=\$ac_header_preproc"
16132 fi
16133 ac_res=`eval echo '${'$as_ac_Header'}'`
16134                { echo "$as_me:$LINENO: result: $ac_res" >&5
16135 echo "${ECHO_T}$ac_res" >&6; }
16136
16137 fi
16138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16139   cat >>confdefs.h <<_ACEOF
16140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16141 _ACEOF
16142
16143 fi
16144
16145 done
16146
16147
16148
16149
16150
16151 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16152 do
16153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16155   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16158   echo $ECHO_N "(cached) $ECHO_C" >&6
16159 fi
16160 ac_res=`eval echo '${'$as_ac_Header'}'`
16161                { echo "$as_me:$LINENO: result: $ac_res" >&5
16162 echo "${ECHO_T}$ac_res" >&6; }
16163 else
16164   # Is the header compilable?
16165 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16167 cat >conftest.$ac_ext <<_ACEOF
16168 /* confdefs.h.  */
16169 _ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h.  */
16173 $ac_includes_default
16174 #include <$ac_header>
16175 _ACEOF
16176 rm -f conftest.$ac_objext
16177 if { (ac_try="$ac_compile"
16178 case "(($ac_try" in
16179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180   *) ac_try_echo=$ac_try;;
16181 esac
16182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183   (eval "$ac_compile") 2>conftest.er1
16184   ac_status=$?
16185   grep -v '^ *+' conftest.er1 >conftest.err
16186   rm -f conftest.er1
16187   cat conftest.err >&5
16188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189   (exit $ac_status); } &&
16190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16191   { (case "(($ac_try" in
16192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16193   *) ac_try_echo=$ac_try;;
16194 esac
16195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16196   (eval "$ac_try") 2>&5
16197   ac_status=$?
16198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199   (exit $ac_status); }; } &&
16200          { ac_try='test -s conftest.$ac_objext'
16201   { (case "(($ac_try" in
16202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203   *) ac_try_echo=$ac_try;;
16204 esac
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206   (eval "$ac_try") 2>&5
16207   ac_status=$?
16208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209   (exit $ac_status); }; }; then
16210   ac_header_compiler=yes
16211 else
16212   echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16214
16215         ac_header_compiler=no
16216 fi
16217
16218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16220 echo "${ECHO_T}$ac_header_compiler" >&6; }
16221
16222 # Is the header present?
16223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16225 cat >conftest.$ac_ext <<_ACEOF
16226 /* confdefs.h.  */
16227 _ACEOF
16228 cat confdefs.h >>conftest.$ac_ext
16229 cat >>conftest.$ac_ext <<_ACEOF
16230 /* end confdefs.h.  */
16231 #include <$ac_header>
16232 _ACEOF
16233 if { (ac_try="$ac_cpp conftest.$ac_ext"
16234 case "(($ac_try" in
16235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16236   *) ac_try_echo=$ac_try;;
16237 esac
16238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16239   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16240   ac_status=$?
16241   grep -v '^ *+' conftest.er1 >conftest.err
16242   rm -f conftest.er1
16243   cat conftest.err >&5
16244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245   (exit $ac_status); } >/dev/null; then
16246   if test -s conftest.err; then
16247     ac_cpp_err=$ac_c_preproc_warn_flag
16248     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16249   else
16250     ac_cpp_err=
16251   fi
16252 else
16253   ac_cpp_err=yes
16254 fi
16255 if test -z "$ac_cpp_err"; then
16256   ac_header_preproc=yes
16257 else
16258   echo "$as_me: failed program was:" >&5
16259 sed 's/^/| /' conftest.$ac_ext >&5
16260
16261   ac_header_preproc=no
16262 fi
16263
16264 rm -f conftest.err conftest.$ac_ext
16265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16266 echo "${ECHO_T}$ac_header_preproc" >&6; }
16267
16268 # So?  What about this header?
16269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16270   yes:no: )
16271     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16273     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16275     ac_header_preproc=yes
16276     ;;
16277   no:yes:* )
16278     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16280     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16281 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16282     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16284     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16285 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16288     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16290     ( cat <<\_ASBOX
16291 ## ----------------------------------- ##
16292 ## Report this to llvmbugs@cs.uiuc.edu ##
16293 ## ----------------------------------- ##
16294 _ASBOX
16295      ) | sed "s/^/$as_me: WARNING:     /" >&2
16296     ;;
16297 esac
16298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16301   echo $ECHO_N "(cached) $ECHO_C" >&6
16302 else
16303   eval "$as_ac_Header=\$ac_header_preproc"
16304 fi
16305 ac_res=`eval echo '${'$as_ac_Header'}'`
16306                { echo "$as_me:$LINENO: result: $ac_res" >&5
16307 echo "${ECHO_T}$ac_res" >&6; }
16308
16309 fi
16310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16311   cat >>confdefs.h <<_ACEOF
16312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16313 _ACEOF
16314
16315 fi
16316
16317 done
16318
16319
16320 for ac_header in valgrind/valgrind.h
16321 do
16322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16324   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16327   echo $ECHO_N "(cached) $ECHO_C" >&6
16328 fi
16329 ac_res=`eval echo '${'$as_ac_Header'}'`
16330                { echo "$as_me:$LINENO: result: $ac_res" >&5
16331 echo "${ECHO_T}$ac_res" >&6; }
16332 else
16333   # Is the header compilable?
16334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16336 cat >conftest.$ac_ext <<_ACEOF
16337 /* confdefs.h.  */
16338 _ACEOF
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h.  */
16342 $ac_includes_default
16343 #include <$ac_header>
16344 _ACEOF
16345 rm -f conftest.$ac_objext
16346 if { (ac_try="$ac_compile"
16347 case "(($ac_try" in
16348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349   *) ac_try_echo=$ac_try;;
16350 esac
16351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352   (eval "$ac_compile") 2>conftest.er1
16353   ac_status=$?
16354   grep -v '^ *+' conftest.er1 >conftest.err
16355   rm -f conftest.er1
16356   cat conftest.err >&5
16357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358   (exit $ac_status); } &&
16359          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16360   { (case "(($ac_try" in
16361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362   *) ac_try_echo=$ac_try;;
16363 esac
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365   (eval "$ac_try") 2>&5
16366   ac_status=$?
16367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368   (exit $ac_status); }; } &&
16369          { ac_try='test -s conftest.$ac_objext'
16370   { (case "(($ac_try" in
16371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372   *) ac_try_echo=$ac_try;;
16373 esac
16374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375   (eval "$ac_try") 2>&5
16376   ac_status=$?
16377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378   (exit $ac_status); }; }; then
16379   ac_header_compiler=yes
16380 else
16381   echo "$as_me: failed program was:" >&5
16382 sed 's/^/| /' conftest.$ac_ext >&5
16383
16384         ac_header_compiler=no
16385 fi
16386
16387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16389 echo "${ECHO_T}$ac_header_compiler" >&6; }
16390
16391 # Is the header present?
16392 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16394 cat >conftest.$ac_ext <<_ACEOF
16395 /* confdefs.h.  */
16396 _ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h.  */
16400 #include <$ac_header>
16401 _ACEOF
16402 if { (ac_try="$ac_cpp conftest.$ac_ext"
16403 case "(($ac_try" in
16404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405   *) ac_try_echo=$ac_try;;
16406 esac
16407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16409   ac_status=$?
16410   grep -v '^ *+' conftest.er1 >conftest.err
16411   rm -f conftest.er1
16412   cat conftest.err >&5
16413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414   (exit $ac_status); } >/dev/null; then
16415   if test -s conftest.err; then
16416     ac_cpp_err=$ac_c_preproc_warn_flag
16417     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16418   else
16419     ac_cpp_err=
16420   fi
16421 else
16422   ac_cpp_err=yes
16423 fi
16424 if test -z "$ac_cpp_err"; then
16425   ac_header_preproc=yes
16426 else
16427   echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16429
16430   ac_header_preproc=no
16431 fi
16432
16433 rm -f conftest.err conftest.$ac_ext
16434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16435 echo "${ECHO_T}$ac_header_preproc" >&6; }
16436
16437 # So?  What about this header?
16438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16439   yes:no: )
16440     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16442     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16444     ac_header_preproc=yes
16445     ;;
16446   no:yes:* )
16447     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16449     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16450 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16451     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16453     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16454 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16457     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16459     ( cat <<\_ASBOX
16460 ## ----------------------------------- ##
16461 ## Report this to llvmbugs@cs.uiuc.edu ##
16462 ## ----------------------------------- ##
16463 _ASBOX
16464      ) | sed "s/^/$as_me: WARNING:     /" >&2
16465     ;;
16466 esac
16467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16470   echo $ECHO_N "(cached) $ECHO_C" >&6
16471 else
16472   eval "$as_ac_Header=\$ac_header_preproc"
16473 fi
16474 ac_res=`eval echo '${'$as_ac_Header'}'`
16475                { echo "$as_me:$LINENO: result: $ac_res" >&5
16476 echo "${ECHO_T}$ac_res" >&6; }
16477
16478 fi
16479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16480   cat >>confdefs.h <<_ACEOF
16481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16482 _ACEOF
16483
16484 fi
16485
16486 done
16487
16488 if test "$ENABLE_THREADS" -eq 1 ; then
16489
16490 for ac_header in pthread.h
16491 do
16492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16494   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16497   echo $ECHO_N "(cached) $ECHO_C" >&6
16498 fi
16499 ac_res=`eval echo '${'$as_ac_Header'}'`
16500                { echo "$as_me:$LINENO: result: $ac_res" >&5
16501 echo "${ECHO_T}$ac_res" >&6; }
16502 else
16503   # Is the header compilable?
16504 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16506 cat >conftest.$ac_ext <<_ACEOF
16507 /* confdefs.h.  */
16508 _ACEOF
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h.  */
16512 $ac_includes_default
16513 #include <$ac_header>
16514 _ACEOF
16515 rm -f conftest.$ac_objext
16516 if { (ac_try="$ac_compile"
16517 case "(($ac_try" in
16518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519   *) ac_try_echo=$ac_try;;
16520 esac
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522   (eval "$ac_compile") 2>conftest.er1
16523   ac_status=$?
16524   grep -v '^ *+' conftest.er1 >conftest.err
16525   rm -f conftest.er1
16526   cat conftest.err >&5
16527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528   (exit $ac_status); } &&
16529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16530   { (case "(($ac_try" in
16531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532   *) ac_try_echo=$ac_try;;
16533 esac
16534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16535   (eval "$ac_try") 2>&5
16536   ac_status=$?
16537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538   (exit $ac_status); }; } &&
16539          { ac_try='test -s conftest.$ac_objext'
16540   { (case "(($ac_try" in
16541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542   *) ac_try_echo=$ac_try;;
16543 esac
16544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545   (eval "$ac_try") 2>&5
16546   ac_status=$?
16547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548   (exit $ac_status); }; }; then
16549   ac_header_compiler=yes
16550 else
16551   echo "$as_me: failed program was:" >&5
16552 sed 's/^/| /' conftest.$ac_ext >&5
16553
16554         ac_header_compiler=no
16555 fi
16556
16557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16559 echo "${ECHO_T}$ac_header_compiler" >&6; }
16560
16561 # Is the header present?
16562 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16564 cat >conftest.$ac_ext <<_ACEOF
16565 /* confdefs.h.  */
16566 _ACEOF
16567 cat confdefs.h >>conftest.$ac_ext
16568 cat >>conftest.$ac_ext <<_ACEOF
16569 /* end confdefs.h.  */
16570 #include <$ac_header>
16571 _ACEOF
16572 if { (ac_try="$ac_cpp conftest.$ac_ext"
16573 case "(($ac_try" in
16574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575   *) ac_try_echo=$ac_try;;
16576 esac
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16579   ac_status=$?
16580   grep -v '^ *+' conftest.er1 >conftest.err
16581   rm -f conftest.er1
16582   cat conftest.err >&5
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); } >/dev/null; then
16585   if test -s conftest.err; then
16586     ac_cpp_err=$ac_c_preproc_warn_flag
16587     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16588   else
16589     ac_cpp_err=
16590   fi
16591 else
16592   ac_cpp_err=yes
16593 fi
16594 if test -z "$ac_cpp_err"; then
16595   ac_header_preproc=yes
16596 else
16597   echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16599
16600   ac_header_preproc=no
16601 fi
16602
16603 rm -f conftest.err conftest.$ac_ext
16604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16605 echo "${ECHO_T}$ac_header_preproc" >&6; }
16606
16607 # So?  What about this header?
16608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16609   yes:no: )
16610     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16612     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16614     ac_header_preproc=yes
16615     ;;
16616   no:yes:* )
16617     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16619     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16620 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16621     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16623     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16624 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16625     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16627     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16629     ( cat <<\_ASBOX
16630 ## ----------------------------------- ##
16631 ## Report this to llvmbugs@cs.uiuc.edu ##
16632 ## ----------------------------------- ##
16633 _ASBOX
16634      ) | sed "s/^/$as_me: WARNING:     /" >&2
16635     ;;
16636 esac
16637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16640   echo $ECHO_N "(cached) $ECHO_C" >&6
16641 else
16642   eval "$as_ac_Header=\$ac_header_preproc"
16643 fi
16644 ac_res=`eval echo '${'$as_ac_Header'}'`
16645                { echo "$as_me:$LINENO: result: $ac_res" >&5
16646 echo "${ECHO_T}$ac_res" >&6; }
16647
16648 fi
16649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16650   cat >>confdefs.h <<_ACEOF
16651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16652 _ACEOF
16653  HAVE_PTHREAD=1
16654
16655 else
16656   HAVE_PTHREAD=0
16657
16658 fi
16659
16660 done
16661
16662 else
16663   HAVE_PTHREAD=0
16664
16665 fi
16666
16667 if test "$llvm_cv_enable_libffi" = "yes" ; then
16668
16669
16670 for ac_header in ffi.h ffi/ffi.h
16671 do
16672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16674   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16677   echo $ECHO_N "(cached) $ECHO_C" >&6
16678 fi
16679 ac_res=`eval echo '${'$as_ac_Header'}'`
16680                { echo "$as_me:$LINENO: result: $ac_res" >&5
16681 echo "${ECHO_T}$ac_res" >&6; }
16682 else
16683   # Is the header compilable?
16684 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16686 cat >conftest.$ac_ext <<_ACEOF
16687 /* confdefs.h.  */
16688 _ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h.  */
16692 $ac_includes_default
16693 #include <$ac_header>
16694 _ACEOF
16695 rm -f conftest.$ac_objext
16696 if { (ac_try="$ac_compile"
16697 case "(($ac_try" in
16698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699   *) ac_try_echo=$ac_try;;
16700 esac
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702   (eval "$ac_compile") 2>conftest.er1
16703   ac_status=$?
16704   grep -v '^ *+' conftest.er1 >conftest.err
16705   rm -f conftest.er1
16706   cat conftest.err >&5
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); } &&
16709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16710   { (case "(($ac_try" in
16711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712   *) ac_try_echo=$ac_try;;
16713 esac
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715   (eval "$ac_try") 2>&5
16716   ac_status=$?
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); }; } &&
16719          { ac_try='test -s conftest.$ac_objext'
16720   { (case "(($ac_try" in
16721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722   *) ac_try_echo=$ac_try;;
16723 esac
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725   (eval "$ac_try") 2>&5
16726   ac_status=$?
16727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728   (exit $ac_status); }; }; then
16729   ac_header_compiler=yes
16730 else
16731   echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16733
16734         ac_header_compiler=no
16735 fi
16736
16737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16739 echo "${ECHO_T}$ac_header_compiler" >&6; }
16740
16741 # Is the header present?
16742 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16744 cat >conftest.$ac_ext <<_ACEOF
16745 /* confdefs.h.  */
16746 _ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h.  */
16750 #include <$ac_header>
16751 _ACEOF
16752 if { (ac_try="$ac_cpp conftest.$ac_ext"
16753 case "(($ac_try" in
16754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755   *) ac_try_echo=$ac_try;;
16756 esac
16757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16759   ac_status=$?
16760   grep -v '^ *+' conftest.er1 >conftest.err
16761   rm -f conftest.er1
16762   cat conftest.err >&5
16763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764   (exit $ac_status); } >/dev/null; then
16765   if test -s conftest.err; then
16766     ac_cpp_err=$ac_c_preproc_warn_flag
16767     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16768   else
16769     ac_cpp_err=
16770   fi
16771 else
16772   ac_cpp_err=yes
16773 fi
16774 if test -z "$ac_cpp_err"; then
16775   ac_header_preproc=yes
16776 else
16777   echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16779
16780   ac_header_preproc=no
16781 fi
16782
16783 rm -f conftest.err conftest.$ac_ext
16784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16785 echo "${ECHO_T}$ac_header_preproc" >&6; }
16786
16787 # So?  What about this header?
16788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16789   yes:no: )
16790     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16794     ac_header_preproc=yes
16795     ;;
16796   no:yes:* )
16797     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16799     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16800 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16801     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16803     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16804 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16807     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16809     ( cat <<\_ASBOX
16810 ## ----------------------------------- ##
16811 ## Report this to llvmbugs@cs.uiuc.edu ##
16812 ## ----------------------------------- ##
16813 _ASBOX
16814      ) | sed "s/^/$as_me: WARNING:     /" >&2
16815     ;;
16816 esac
16817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16820   echo $ECHO_N "(cached) $ECHO_C" >&6
16821 else
16822   eval "$as_ac_Header=\$ac_header_preproc"
16823 fi
16824 ac_res=`eval echo '${'$as_ac_Header'}'`
16825                { echo "$as_me:$LINENO: result: $ac_res" >&5
16826 echo "${ECHO_T}$ac_res" >&6; }
16827
16828 fi
16829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16830   cat >>confdefs.h <<_ACEOF
16831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16832 _ACEOF
16833
16834 fi
16835
16836 done
16837
16838 fi
16839
16840
16841
16842
16843   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16844 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16845 if test "${ac_cv_huge_val_sanity+set}" = set; then
16846   echo $ECHO_N "(cached) $ECHO_C" >&6
16847 else
16848
16849     ac_ext=cpp
16850 ac_cpp='$CXXCPP $CPPFLAGS'
16851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16854
16855     ac_save_CXXFLAGS=$CXXFLAGS
16856     CXXFLAGS=-pedantic
16857     if test "$cross_compiling" = yes; then
16858   ac_cv_huge_val_sanity=yes
16859 else
16860   cat >conftest.$ac_ext <<_ACEOF
16861 /* confdefs.h.  */
16862 _ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h.  */
16866 #include <math.h>
16867 int
16868 main ()
16869 {
16870 double x = HUGE_VAL; return x != x;
16871   ;
16872   return 0;
16873 }
16874 _ACEOF
16875 rm -f conftest$ac_exeext
16876 if { (ac_try="$ac_link"
16877 case "(($ac_try" in
16878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879   *) ac_try_echo=$ac_try;;
16880 esac
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882   (eval "$ac_link") 2>&5
16883   ac_status=$?
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16886   { (case "(($ac_try" in
16887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888   *) ac_try_echo=$ac_try;;
16889 esac
16890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891   (eval "$ac_try") 2>&5
16892   ac_status=$?
16893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894   (exit $ac_status); }; }; then
16895   ac_cv_huge_val_sanity=yes
16896 else
16897   echo "$as_me: program exited with status $ac_status" >&5
16898 echo "$as_me: failed program was:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16900
16901 ( exit $ac_status )
16902 ac_cv_huge_val_sanity=no
16903 fi
16904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16905 fi
16906
16907
16908     CXXFLAGS=$ac_save_CXXFLAGS
16909     ac_ext=c
16910 ac_cpp='$CPP $CPPFLAGS'
16911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16914
16915
16916 fi
16917 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16918 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16919   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16920
16921
16922 { echo "$as_me:$LINENO: checking for pid_t" >&5
16923 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16924 if test "${ac_cv_type_pid_t+set}" = set; then
16925   echo $ECHO_N "(cached) $ECHO_C" >&6
16926 else
16927   cat >conftest.$ac_ext <<_ACEOF
16928 /* confdefs.h.  */
16929 _ACEOF
16930 cat confdefs.h >>conftest.$ac_ext
16931 cat >>conftest.$ac_ext <<_ACEOF
16932 /* end confdefs.h.  */
16933 $ac_includes_default
16934 typedef pid_t ac__type_new_;
16935 int
16936 main ()
16937 {
16938 if ((ac__type_new_ *) 0)
16939   return 0;
16940 if (sizeof (ac__type_new_))
16941   return 0;
16942   ;
16943   return 0;
16944 }
16945 _ACEOF
16946 rm -f conftest.$ac_objext
16947 if { (ac_try="$ac_compile"
16948 case "(($ac_try" in
16949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950   *) ac_try_echo=$ac_try;;
16951 esac
16952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953   (eval "$ac_compile") 2>conftest.er1
16954   ac_status=$?
16955   grep -v '^ *+' conftest.er1 >conftest.err
16956   rm -f conftest.er1
16957   cat conftest.err >&5
16958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959   (exit $ac_status); } &&
16960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16961   { (case "(($ac_try" in
16962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963   *) ac_try_echo=$ac_try;;
16964 esac
16965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966   (eval "$ac_try") 2>&5
16967   ac_status=$?
16968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969   (exit $ac_status); }; } &&
16970          { ac_try='test -s conftest.$ac_objext'
16971   { (case "(($ac_try" in
16972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973   *) ac_try_echo=$ac_try;;
16974 esac
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976   (eval "$ac_try") 2>&5
16977   ac_status=$?
16978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979   (exit $ac_status); }; }; then
16980   ac_cv_type_pid_t=yes
16981 else
16982   echo "$as_me: failed program was:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16984
16985         ac_cv_type_pid_t=no
16986 fi
16987
16988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16989 fi
16990 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16991 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16992 if test $ac_cv_type_pid_t = yes; then
16993   :
16994 else
16995
16996 cat >>confdefs.h <<_ACEOF
16997 #define pid_t int
16998 _ACEOF
16999
17000 fi
17001
17002 { echo "$as_me:$LINENO: checking for size_t" >&5
17003 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17004 if test "${ac_cv_type_size_t+set}" = set; then
17005   echo $ECHO_N "(cached) $ECHO_C" >&6
17006 else
17007   cat >conftest.$ac_ext <<_ACEOF
17008 /* confdefs.h.  */
17009 _ACEOF
17010 cat confdefs.h >>conftest.$ac_ext
17011 cat >>conftest.$ac_ext <<_ACEOF
17012 /* end confdefs.h.  */
17013 $ac_includes_default
17014 typedef size_t ac__type_new_;
17015 int
17016 main ()
17017 {
17018 if ((ac__type_new_ *) 0)
17019   return 0;
17020 if (sizeof (ac__type_new_))
17021   return 0;
17022   ;
17023   return 0;
17024 }
17025 _ACEOF
17026 rm -f conftest.$ac_objext
17027 if { (ac_try="$ac_compile"
17028 case "(($ac_try" in
17029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030   *) ac_try_echo=$ac_try;;
17031 esac
17032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033   (eval "$ac_compile") 2>conftest.er1
17034   ac_status=$?
17035   grep -v '^ *+' conftest.er1 >conftest.err
17036   rm -f conftest.er1
17037   cat conftest.err >&5
17038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); } &&
17040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17041   { (case "(($ac_try" in
17042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043   *) ac_try_echo=$ac_try;;
17044 esac
17045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17046   (eval "$ac_try") 2>&5
17047   ac_status=$?
17048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049   (exit $ac_status); }; } &&
17050          { ac_try='test -s conftest.$ac_objext'
17051   { (case "(($ac_try" in
17052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053   *) ac_try_echo=$ac_try;;
17054 esac
17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056   (eval "$ac_try") 2>&5
17057   ac_status=$?
17058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059   (exit $ac_status); }; }; then
17060   ac_cv_type_size_t=yes
17061 else
17062   echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17064
17065         ac_cv_type_size_t=no
17066 fi
17067
17068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17069 fi
17070 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17071 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17072 if test $ac_cv_type_size_t = yes; then
17073   :
17074 else
17075
17076 cat >>confdefs.h <<_ACEOF
17077 #define size_t unsigned int
17078 _ACEOF
17079
17080 fi
17081
17082
17083 cat >>confdefs.h <<_ACEOF
17084 #define RETSIGTYPE void
17085 _ACEOF
17086
17087 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17088 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17089 if test "${ac_cv_struct_tm+set}" = set; then
17090   echo $ECHO_N "(cached) $ECHO_C" >&6
17091 else
17092   cat >conftest.$ac_ext <<_ACEOF
17093 /* confdefs.h.  */
17094 _ACEOF
17095 cat confdefs.h >>conftest.$ac_ext
17096 cat >>conftest.$ac_ext <<_ACEOF
17097 /* end confdefs.h.  */
17098 #include <sys/types.h>
17099 #include <time.h>
17100
17101 int
17102 main ()
17103 {
17104 struct tm *tp; tp->tm_sec;
17105   ;
17106   return 0;
17107 }
17108 _ACEOF
17109 rm -f conftest.$ac_objext
17110 if { (ac_try="$ac_compile"
17111 case "(($ac_try" in
17112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17113   *) ac_try_echo=$ac_try;;
17114 esac
17115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17116   (eval "$ac_compile") 2>conftest.er1
17117   ac_status=$?
17118   grep -v '^ *+' conftest.er1 >conftest.err
17119   rm -f conftest.er1
17120   cat conftest.err >&5
17121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122   (exit $ac_status); } &&
17123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17124   { (case "(($ac_try" in
17125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126   *) ac_try_echo=$ac_try;;
17127 esac
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129   (eval "$ac_try") 2>&5
17130   ac_status=$?
17131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132   (exit $ac_status); }; } &&
17133          { ac_try='test -s conftest.$ac_objext'
17134   { (case "(($ac_try" in
17135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17136   *) ac_try_echo=$ac_try;;
17137 esac
17138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17139   (eval "$ac_try") 2>&5
17140   ac_status=$?
17141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142   (exit $ac_status); }; }; then
17143   ac_cv_struct_tm=time.h
17144 else
17145   echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17147
17148         ac_cv_struct_tm=sys/time.h
17149 fi
17150
17151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17152 fi
17153 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17154 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17155 if test $ac_cv_struct_tm = sys/time.h; then
17156
17157 cat >>confdefs.h <<\_ACEOF
17158 #define TM_IN_SYS_TIME 1
17159 _ACEOF
17160
17161 fi
17162
17163 { echo "$as_me:$LINENO: checking for int64_t" >&5
17164 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17165 if test "${ac_cv_type_int64_t+set}" = set; then
17166   echo $ECHO_N "(cached) $ECHO_C" >&6
17167 else
17168   cat >conftest.$ac_ext <<_ACEOF
17169 /* confdefs.h.  */
17170 _ACEOF
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h.  */
17174 $ac_includes_default
17175 typedef int64_t ac__type_new_;
17176 int
17177 main ()
17178 {
17179 if ((ac__type_new_ *) 0)
17180   return 0;
17181 if (sizeof (ac__type_new_))
17182   return 0;
17183   ;
17184   return 0;
17185 }
17186 _ACEOF
17187 rm -f conftest.$ac_objext
17188 if { (ac_try="$ac_compile"
17189 case "(($ac_try" in
17190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17191   *) ac_try_echo=$ac_try;;
17192 esac
17193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17194   (eval "$ac_compile") 2>conftest.er1
17195   ac_status=$?
17196   grep -v '^ *+' conftest.er1 >conftest.err
17197   rm -f conftest.er1
17198   cat conftest.err >&5
17199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200   (exit $ac_status); } &&
17201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17202   { (case "(($ac_try" in
17203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17204   *) ac_try_echo=$ac_try;;
17205 esac
17206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17207   (eval "$ac_try") 2>&5
17208   ac_status=$?
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); }; } &&
17211          { ac_try='test -s conftest.$ac_objext'
17212   { (case "(($ac_try" in
17213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17214   *) ac_try_echo=$ac_try;;
17215 esac
17216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17217   (eval "$ac_try") 2>&5
17218   ac_status=$?
17219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220   (exit $ac_status); }; }; then
17221   ac_cv_type_int64_t=yes
17222 else
17223   echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.$ac_ext >&5
17225
17226         ac_cv_type_int64_t=no
17227 fi
17228
17229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17230 fi
17231 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17232 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17233 if test $ac_cv_type_int64_t = yes; then
17234
17235 cat >>confdefs.h <<_ACEOF
17236 #define HAVE_INT64_T 1
17237 _ACEOF
17238
17239
17240 else
17241   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17242 echo "$as_me: error: Type int64_t required but not found" >&2;}
17243    { (exit 1); exit 1; }; }
17244 fi
17245
17246 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17247 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17248 if test "${ac_cv_type_uint64_t+set}" = set; then
17249   echo $ECHO_N "(cached) $ECHO_C" >&6
17250 else
17251   cat >conftest.$ac_ext <<_ACEOF
17252 /* confdefs.h.  */
17253 _ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h.  */
17257 $ac_includes_default
17258 typedef uint64_t ac__type_new_;
17259 int
17260 main ()
17261 {
17262 if ((ac__type_new_ *) 0)
17263   return 0;
17264 if (sizeof (ac__type_new_))
17265   return 0;
17266   ;
17267   return 0;
17268 }
17269 _ACEOF
17270 rm -f conftest.$ac_objext
17271 if { (ac_try="$ac_compile"
17272 case "(($ac_try" in
17273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17274   *) ac_try_echo=$ac_try;;
17275 esac
17276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17277   (eval "$ac_compile") 2>conftest.er1
17278   ac_status=$?
17279   grep -v '^ *+' conftest.er1 >conftest.err
17280   rm -f conftest.er1
17281   cat conftest.err >&5
17282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283   (exit $ac_status); } &&
17284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17285   { (case "(($ac_try" in
17286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287   *) ac_try_echo=$ac_try;;
17288 esac
17289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290   (eval "$ac_try") 2>&5
17291   ac_status=$?
17292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293   (exit $ac_status); }; } &&
17294          { ac_try='test -s conftest.$ac_objext'
17295   { (case "(($ac_try" in
17296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297   *) ac_try_echo=$ac_try;;
17298 esac
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300   (eval "$ac_try") 2>&5
17301   ac_status=$?
17302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303   (exit $ac_status); }; }; then
17304   ac_cv_type_uint64_t=yes
17305 else
17306   echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17308
17309         ac_cv_type_uint64_t=no
17310 fi
17311
17312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17313 fi
17314 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17315 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17316 if test $ac_cv_type_uint64_t = yes; then
17317
17318 cat >>confdefs.h <<_ACEOF
17319 #define HAVE_UINT64_T 1
17320 _ACEOF
17321
17322
17323 else
17324   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17325 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17326 if test "${ac_cv_type_u_int64_t+set}" = set; then
17327   echo $ECHO_N "(cached) $ECHO_C" >&6
17328 else
17329   cat >conftest.$ac_ext <<_ACEOF
17330 /* confdefs.h.  */
17331 _ACEOF
17332 cat confdefs.h >>conftest.$ac_ext
17333 cat >>conftest.$ac_ext <<_ACEOF
17334 /* end confdefs.h.  */
17335 $ac_includes_default
17336 typedef u_int64_t ac__type_new_;
17337 int
17338 main ()
17339 {
17340 if ((ac__type_new_ *) 0)
17341   return 0;
17342 if (sizeof (ac__type_new_))
17343   return 0;
17344   ;
17345   return 0;
17346 }
17347 _ACEOF
17348 rm -f conftest.$ac_objext
17349 if { (ac_try="$ac_compile"
17350 case "(($ac_try" in
17351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17352   *) ac_try_echo=$ac_try;;
17353 esac
17354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17355   (eval "$ac_compile") 2>conftest.er1
17356   ac_status=$?
17357   grep -v '^ *+' conftest.er1 >conftest.err
17358   rm -f conftest.er1
17359   cat conftest.err >&5
17360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361   (exit $ac_status); } &&
17362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17363   { (case "(($ac_try" in
17364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17365   *) ac_try_echo=$ac_try;;
17366 esac
17367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17368   (eval "$ac_try") 2>&5
17369   ac_status=$?
17370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371   (exit $ac_status); }; } &&
17372          { ac_try='test -s conftest.$ac_objext'
17373   { (case "(($ac_try" in
17374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375   *) ac_try_echo=$ac_try;;
17376 esac
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378   (eval "$ac_try") 2>&5
17379   ac_status=$?
17380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381   (exit $ac_status); }; }; then
17382   ac_cv_type_u_int64_t=yes
17383 else
17384   echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17386
17387         ac_cv_type_u_int64_t=no
17388 fi
17389
17390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17391 fi
17392 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17393 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17394 if test $ac_cv_type_u_int64_t = yes; then
17395
17396 cat >>confdefs.h <<_ACEOF
17397 #define HAVE_U_INT64_T 1
17398 _ACEOF
17399
17400
17401 else
17402   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17403 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17404    { (exit 1); exit 1; }; }
17405 fi
17406
17407 fi
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17419 do
17420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17421 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17424   echo $ECHO_N "(cached) $ECHO_C" >&6
17425 else
17426   cat >conftest.$ac_ext <<_ACEOF
17427 /* confdefs.h.  */
17428 _ACEOF
17429 cat confdefs.h >>conftest.$ac_ext
17430 cat >>conftest.$ac_ext <<_ACEOF
17431 /* end confdefs.h.  */
17432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17434 #define $ac_func innocuous_$ac_func
17435
17436 /* System header to define __stub macros and hopefully few prototypes,
17437     which can conflict with char $ac_func (); below.
17438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17439     <limits.h> exists even on freestanding compilers.  */
17440
17441 #ifdef __STDC__
17442 # include <limits.h>
17443 #else
17444 # include <assert.h>
17445 #endif
17446
17447 #undef $ac_func
17448
17449 /* Override any GCC internal prototype to avoid an error.
17450    Use char because int might match the return type of a GCC
17451    builtin and then its argument prototype would still apply.  */
17452 #ifdef __cplusplus
17453 extern "C"
17454 #endif
17455 char $ac_func ();
17456 /* The GNU C library defines this for functions which it implements
17457     to always fail with ENOSYS.  Some functions are actually named
17458     something starting with __ and the normal name is an alias.  */
17459 #if defined __stub_$ac_func || defined __stub___$ac_func
17460 choke me
17461 #endif
17462
17463 int
17464 main ()
17465 {
17466 return $ac_func ();
17467   ;
17468   return 0;
17469 }
17470 _ACEOF
17471 rm -f conftest.$ac_objext conftest$ac_exeext
17472 if { (ac_try="$ac_link"
17473 case "(($ac_try" in
17474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17475   *) ac_try_echo=$ac_try;;
17476 esac
17477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17478   (eval "$ac_link") 2>conftest.er1
17479   ac_status=$?
17480   grep -v '^ *+' conftest.er1 >conftest.err
17481   rm -f conftest.er1
17482   cat conftest.err >&5
17483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484   (exit $ac_status); } &&
17485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17486   { (case "(($ac_try" in
17487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488   *) ac_try_echo=$ac_try;;
17489 esac
17490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17491   (eval "$ac_try") 2>&5
17492   ac_status=$?
17493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494   (exit $ac_status); }; } &&
17495          { ac_try='test -s conftest$ac_exeext'
17496   { (case "(($ac_try" in
17497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498   *) ac_try_echo=$ac_try;;
17499 esac
17500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501   (eval "$ac_try") 2>&5
17502   ac_status=$?
17503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504   (exit $ac_status); }; }; then
17505   eval "$as_ac_var=yes"
17506 else
17507   echo "$as_me: failed program was:" >&5
17508 sed 's/^/| /' conftest.$ac_ext >&5
17509
17510         eval "$as_ac_var=no"
17511 fi
17512
17513 rm -f core conftest.err conftest.$ac_objext \
17514       conftest$ac_exeext conftest.$ac_ext
17515 fi
17516 ac_res=`eval echo '${'$as_ac_var'}'`
17517                { echo "$as_me:$LINENO: result: $ac_res" >&5
17518 echo "${ECHO_T}$ac_res" >&6; }
17519 if test `eval echo '${'$as_ac_var'}'` = yes; then
17520   cat >>confdefs.h <<_ACEOF
17521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17522 _ACEOF
17523
17524 fi
17525 done
17526
17527
17528
17529
17530
17531 for ac_func in powf fmodf strtof round
17532 do
17533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17537   echo $ECHO_N "(cached) $ECHO_C" >&6
17538 else
17539   cat >conftest.$ac_ext <<_ACEOF
17540 /* confdefs.h.  */
17541 _ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h.  */
17545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17547 #define $ac_func innocuous_$ac_func
17548
17549 /* System header to define __stub macros and hopefully few prototypes,
17550     which can conflict with char $ac_func (); below.
17551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17552     <limits.h> exists even on freestanding compilers.  */
17553
17554 #ifdef __STDC__
17555 # include <limits.h>
17556 #else
17557 # include <assert.h>
17558 #endif
17559
17560 #undef $ac_func
17561
17562 /* Override any GCC internal prototype to avoid an error.
17563    Use char because int might match the return type of a GCC
17564    builtin and then its argument prototype would still apply.  */
17565 #ifdef __cplusplus
17566 extern "C"
17567 #endif
17568 char $ac_func ();
17569 /* The GNU C library defines this for functions which it implements
17570     to always fail with ENOSYS.  Some functions are actually named
17571     something starting with __ and the normal name is an alias.  */
17572 #if defined __stub_$ac_func || defined __stub___$ac_func
17573 choke me
17574 #endif
17575
17576 int
17577 main ()
17578 {
17579 return $ac_func ();
17580   ;
17581   return 0;
17582 }
17583 _ACEOF
17584 rm -f conftest.$ac_objext conftest$ac_exeext
17585 if { (ac_try="$ac_link"
17586 case "(($ac_try" in
17587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588   *) ac_try_echo=$ac_try;;
17589 esac
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591   (eval "$ac_link") 2>conftest.er1
17592   ac_status=$?
17593   grep -v '^ *+' conftest.er1 >conftest.err
17594   rm -f conftest.er1
17595   cat conftest.err >&5
17596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597   (exit $ac_status); } &&
17598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17599   { (case "(($ac_try" in
17600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17601   *) ac_try_echo=$ac_try;;
17602 esac
17603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17604   (eval "$ac_try") 2>&5
17605   ac_status=$?
17606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607   (exit $ac_status); }; } &&
17608          { ac_try='test -s conftest$ac_exeext'
17609   { (case "(($ac_try" in
17610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611   *) ac_try_echo=$ac_try;;
17612 esac
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614   (eval "$ac_try") 2>&5
17615   ac_status=$?
17616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617   (exit $ac_status); }; }; then
17618   eval "$as_ac_var=yes"
17619 else
17620   echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17622
17623         eval "$as_ac_var=no"
17624 fi
17625
17626 rm -f core conftest.err conftest.$ac_objext \
17627       conftest$ac_exeext conftest.$ac_ext
17628 fi
17629 ac_res=`eval echo '${'$as_ac_var'}'`
17630                { echo "$as_me:$LINENO: result: $ac_res" >&5
17631 echo "${ECHO_T}$ac_res" >&6; }
17632 if test `eval echo '${'$as_ac_var'}'` = yes; then
17633   cat >>confdefs.h <<_ACEOF
17634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17635 _ACEOF
17636
17637 fi
17638 done
17639
17640
17641
17642
17643
17644
17645 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17646 do
17647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17651   echo $ECHO_N "(cached) $ECHO_C" >&6
17652 else
17653   cat >conftest.$ac_ext <<_ACEOF
17654 /* confdefs.h.  */
17655 _ACEOF
17656 cat confdefs.h >>conftest.$ac_ext
17657 cat >>conftest.$ac_ext <<_ACEOF
17658 /* end confdefs.h.  */
17659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17661 #define $ac_func innocuous_$ac_func
17662
17663 /* System header to define __stub macros and hopefully few prototypes,
17664     which can conflict with char $ac_func (); below.
17665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17666     <limits.h> exists even on freestanding compilers.  */
17667
17668 #ifdef __STDC__
17669 # include <limits.h>
17670 #else
17671 # include <assert.h>
17672 #endif
17673
17674 #undef $ac_func
17675
17676 /* Override any GCC internal prototype to avoid an error.
17677    Use char because int might match the return type of a GCC
17678    builtin and then its argument prototype would still apply.  */
17679 #ifdef __cplusplus
17680 extern "C"
17681 #endif
17682 char $ac_func ();
17683 /* The GNU C library defines this for functions which it implements
17684     to always fail with ENOSYS.  Some functions are actually named
17685     something starting with __ and the normal name is an alias.  */
17686 #if defined __stub_$ac_func || defined __stub___$ac_func
17687 choke me
17688 #endif
17689
17690 int
17691 main ()
17692 {
17693 return $ac_func ();
17694   ;
17695   return 0;
17696 }
17697 _ACEOF
17698 rm -f conftest.$ac_objext conftest$ac_exeext
17699 if { (ac_try="$ac_link"
17700 case "(($ac_try" in
17701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17702   *) ac_try_echo=$ac_try;;
17703 esac
17704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17705   (eval "$ac_link") 2>conftest.er1
17706   ac_status=$?
17707   grep -v '^ *+' conftest.er1 >conftest.err
17708   rm -f conftest.er1
17709   cat conftest.err >&5
17710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711   (exit $ac_status); } &&
17712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17713   { (case "(($ac_try" in
17714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715   *) ac_try_echo=$ac_try;;
17716 esac
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718   (eval "$ac_try") 2>&5
17719   ac_status=$?
17720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); }; } &&
17722          { ac_try='test -s conftest$ac_exeext'
17723   { (case "(($ac_try" in
17724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725   *) ac_try_echo=$ac_try;;
17726 esac
17727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728   (eval "$ac_try") 2>&5
17729   ac_status=$?
17730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731   (exit $ac_status); }; }; then
17732   eval "$as_ac_var=yes"
17733 else
17734   echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17736
17737         eval "$as_ac_var=no"
17738 fi
17739
17740 rm -f core conftest.err conftest.$ac_objext \
17741       conftest$ac_exeext conftest.$ac_ext
17742 fi
17743 ac_res=`eval echo '${'$as_ac_var'}'`
17744                { echo "$as_me:$LINENO: result: $ac_res" >&5
17745 echo "${ECHO_T}$ac_res" >&6; }
17746 if test `eval echo '${'$as_ac_var'}'` = yes; then
17747   cat >>confdefs.h <<_ACEOF
17748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17749 _ACEOF
17750
17751 fi
17752 done
17753
17754
17755
17756
17757 for ac_func in isatty mkdtemp mkstemp
17758 do
17759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17763   echo $ECHO_N "(cached) $ECHO_C" >&6
17764 else
17765   cat >conftest.$ac_ext <<_ACEOF
17766 /* confdefs.h.  */
17767 _ACEOF
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h.  */
17771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17773 #define $ac_func innocuous_$ac_func
17774
17775 /* System header to define __stub macros and hopefully few prototypes,
17776     which can conflict with char $ac_func (); below.
17777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17778     <limits.h> exists even on freestanding compilers.  */
17779
17780 #ifdef __STDC__
17781 # include <limits.h>
17782 #else
17783 # include <assert.h>
17784 #endif
17785
17786 #undef $ac_func
17787
17788 /* Override any GCC internal prototype to avoid an error.
17789    Use char because int might match the return type of a GCC
17790    builtin and then its argument prototype would still apply.  */
17791 #ifdef __cplusplus
17792 extern "C"
17793 #endif
17794 char $ac_func ();
17795 /* The GNU C library defines this for functions which it implements
17796     to always fail with ENOSYS.  Some functions are actually named
17797     something starting with __ and the normal name is an alias.  */
17798 #if defined __stub_$ac_func || defined __stub___$ac_func
17799 choke me
17800 #endif
17801
17802 int
17803 main ()
17804 {
17805 return $ac_func ();
17806   ;
17807   return 0;
17808 }
17809 _ACEOF
17810 rm -f conftest.$ac_objext conftest$ac_exeext
17811 if { (ac_try="$ac_link"
17812 case "(($ac_try" in
17813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814   *) ac_try_echo=$ac_try;;
17815 esac
17816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817   (eval "$ac_link") 2>conftest.er1
17818   ac_status=$?
17819   grep -v '^ *+' conftest.er1 >conftest.err
17820   rm -f conftest.er1
17821   cat conftest.err >&5
17822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823   (exit $ac_status); } &&
17824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17825   { (case "(($ac_try" in
17826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827   *) ac_try_echo=$ac_try;;
17828 esac
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830   (eval "$ac_try") 2>&5
17831   ac_status=$?
17832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833   (exit $ac_status); }; } &&
17834          { ac_try='test -s conftest$ac_exeext'
17835   { (case "(($ac_try" in
17836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837   *) ac_try_echo=$ac_try;;
17838 esac
17839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840   (eval "$ac_try") 2>&5
17841   ac_status=$?
17842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843   (exit $ac_status); }; }; then
17844   eval "$as_ac_var=yes"
17845 else
17846   echo "$as_me: failed program was:" >&5
17847 sed 's/^/| /' conftest.$ac_ext >&5
17848
17849         eval "$as_ac_var=no"
17850 fi
17851
17852 rm -f core conftest.err conftest.$ac_objext \
17853       conftest$ac_exeext conftest.$ac_ext
17854 fi
17855 ac_res=`eval echo '${'$as_ac_var'}'`
17856                { echo "$as_me:$LINENO: result: $ac_res" >&5
17857 echo "${ECHO_T}$ac_res" >&6; }
17858 if test `eval echo '${'$as_ac_var'}'` = yes; then
17859   cat >>confdefs.h <<_ACEOF
17860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17861 _ACEOF
17862
17863 fi
17864 done
17865
17866
17867
17868
17869
17870
17871
17872 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17873 do
17874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17878   echo $ECHO_N "(cached) $ECHO_C" >&6
17879 else
17880   cat >conftest.$ac_ext <<_ACEOF
17881 /* confdefs.h.  */
17882 _ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h.  */
17886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17887    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17888 #define $ac_func innocuous_$ac_func
17889
17890 /* System header to define __stub macros and hopefully few prototypes,
17891     which can conflict with char $ac_func (); below.
17892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17893     <limits.h> exists even on freestanding compilers.  */
17894
17895 #ifdef __STDC__
17896 # include <limits.h>
17897 #else
17898 # include <assert.h>
17899 #endif
17900
17901 #undef $ac_func
17902
17903 /* Override any GCC internal prototype to avoid an error.
17904    Use char because int might match the return type of a GCC
17905    builtin and then its argument prototype would still apply.  */
17906 #ifdef __cplusplus
17907 extern "C"
17908 #endif
17909 char $ac_func ();
17910 /* The GNU C library defines this for functions which it implements
17911     to always fail with ENOSYS.  Some functions are actually named
17912     something starting with __ and the normal name is an alias.  */
17913 #if defined __stub_$ac_func || defined __stub___$ac_func
17914 choke me
17915 #endif
17916
17917 int
17918 main ()
17919 {
17920 return $ac_func ();
17921   ;
17922   return 0;
17923 }
17924 _ACEOF
17925 rm -f conftest.$ac_objext conftest$ac_exeext
17926 if { (ac_try="$ac_link"
17927 case "(($ac_try" in
17928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929   *) ac_try_echo=$ac_try;;
17930 esac
17931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932   (eval "$ac_link") 2>conftest.er1
17933   ac_status=$?
17934   grep -v '^ *+' conftest.er1 >conftest.err
17935   rm -f conftest.er1
17936   cat conftest.err >&5
17937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938   (exit $ac_status); } &&
17939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17940   { (case "(($ac_try" in
17941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942   *) ac_try_echo=$ac_try;;
17943 esac
17944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17945   (eval "$ac_try") 2>&5
17946   ac_status=$?
17947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948   (exit $ac_status); }; } &&
17949          { ac_try='test -s conftest$ac_exeext'
17950   { (case "(($ac_try" in
17951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952   *) ac_try_echo=$ac_try;;
17953 esac
17954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955   (eval "$ac_try") 2>&5
17956   ac_status=$?
17957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958   (exit $ac_status); }; }; then
17959   eval "$as_ac_var=yes"
17960 else
17961   echo "$as_me: failed program was:" >&5
17962 sed 's/^/| /' conftest.$ac_ext >&5
17963
17964         eval "$as_ac_var=no"
17965 fi
17966
17967 rm -f core conftest.err conftest.$ac_objext \
17968       conftest$ac_exeext conftest.$ac_ext
17969 fi
17970 ac_res=`eval echo '${'$as_ac_var'}'`
17971                { echo "$as_me:$LINENO: result: $ac_res" >&5
17972 echo "${ECHO_T}$ac_res" >&6; }
17973 if test `eval echo '${'$as_ac_var'}'` = yes; then
17974   cat >>confdefs.h <<_ACEOF
17975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17976 _ACEOF
17977
17978 fi
17979 done
17980
17981
17982
17983
17984
17985 for ac_func in strerror strerror_r strerror_s setenv
17986 do
17987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17991   echo $ECHO_N "(cached) $ECHO_C" >&6
17992 else
17993   cat >conftest.$ac_ext <<_ACEOF
17994 /* confdefs.h.  */
17995 _ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h.  */
17999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18001 #define $ac_func innocuous_$ac_func
18002
18003 /* System header to define __stub macros and hopefully few prototypes,
18004     which can conflict with char $ac_func (); below.
18005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18006     <limits.h> exists even on freestanding compilers.  */
18007
18008 #ifdef __STDC__
18009 # include <limits.h>
18010 #else
18011 # include <assert.h>
18012 #endif
18013
18014 #undef $ac_func
18015
18016 /* Override any GCC internal prototype to avoid an error.
18017    Use char because int might match the return type of a GCC
18018    builtin and then its argument prototype would still apply.  */
18019 #ifdef __cplusplus
18020 extern "C"
18021 #endif
18022 char $ac_func ();
18023 /* The GNU C library defines this for functions which it implements
18024     to always fail with ENOSYS.  Some functions are actually named
18025     something starting with __ and the normal name is an alias.  */
18026 #if defined __stub_$ac_func || defined __stub___$ac_func
18027 choke me
18028 #endif
18029
18030 int
18031 main ()
18032 {
18033 return $ac_func ();
18034   ;
18035   return 0;
18036 }
18037 _ACEOF
18038 rm -f conftest.$ac_objext conftest$ac_exeext
18039 if { (ac_try="$ac_link"
18040 case "(($ac_try" in
18041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042   *) ac_try_echo=$ac_try;;
18043 esac
18044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18045   (eval "$ac_link") 2>conftest.er1
18046   ac_status=$?
18047   grep -v '^ *+' conftest.er1 >conftest.err
18048   rm -f conftest.er1
18049   cat conftest.err >&5
18050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051   (exit $ac_status); } &&
18052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18053   { (case "(($ac_try" in
18054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055   *) ac_try_echo=$ac_try;;
18056 esac
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058   (eval "$ac_try") 2>&5
18059   ac_status=$?
18060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061   (exit $ac_status); }; } &&
18062          { ac_try='test -s conftest$ac_exeext'
18063   { (case "(($ac_try" in
18064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18065   *) ac_try_echo=$ac_try;;
18066 esac
18067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18068   (eval "$ac_try") 2>&5
18069   ac_status=$?
18070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071   (exit $ac_status); }; }; then
18072   eval "$as_ac_var=yes"
18073 else
18074   echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18076
18077         eval "$as_ac_var=no"
18078 fi
18079
18080 rm -f core conftest.err conftest.$ac_objext \
18081       conftest$ac_exeext conftest.$ac_ext
18082 fi
18083 ac_res=`eval echo '${'$as_ac_var'}'`
18084                { echo "$as_me:$LINENO: result: $ac_res" >&5
18085 echo "${ECHO_T}$ac_res" >&6; }
18086 if test `eval echo '${'$as_ac_var'}'` = yes; then
18087   cat >>confdefs.h <<_ACEOF
18088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18089 _ACEOF
18090
18091 fi
18092 done
18093
18094
18095
18096
18097
18098 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18099 do
18100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18101 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18104   echo $ECHO_N "(cached) $ECHO_C" >&6
18105 else
18106   cat >conftest.$ac_ext <<_ACEOF
18107 /* confdefs.h.  */
18108 _ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h.  */
18112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18114 #define $ac_func innocuous_$ac_func
18115
18116 /* System header to define __stub macros and hopefully few prototypes,
18117     which can conflict with char $ac_func (); below.
18118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18119     <limits.h> exists even on freestanding compilers.  */
18120
18121 #ifdef __STDC__
18122 # include <limits.h>
18123 #else
18124 # include <assert.h>
18125 #endif
18126
18127 #undef $ac_func
18128
18129 /* Override any GCC internal prototype to avoid an error.
18130    Use char because int might match the return type of a GCC
18131    builtin and then its argument prototype would still apply.  */
18132 #ifdef __cplusplus
18133 extern "C"
18134 #endif
18135 char $ac_func ();
18136 /* The GNU C library defines this for functions which it implements
18137     to always fail with ENOSYS.  Some functions are actually named
18138     something starting with __ and the normal name is an alias.  */
18139 #if defined __stub_$ac_func || defined __stub___$ac_func
18140 choke me
18141 #endif
18142
18143 int
18144 main ()
18145 {
18146 return $ac_func ();
18147   ;
18148   return 0;
18149 }
18150 _ACEOF
18151 rm -f conftest.$ac_objext conftest$ac_exeext
18152 if { (ac_try="$ac_link"
18153 case "(($ac_try" in
18154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155   *) ac_try_echo=$ac_try;;
18156 esac
18157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18158   (eval "$ac_link") 2>conftest.er1
18159   ac_status=$?
18160   grep -v '^ *+' conftest.er1 >conftest.err
18161   rm -f conftest.er1
18162   cat conftest.err >&5
18163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164   (exit $ac_status); } &&
18165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18166   { (case "(($ac_try" in
18167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168   *) ac_try_echo=$ac_try;;
18169 esac
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171   (eval "$ac_try") 2>&5
18172   ac_status=$?
18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174   (exit $ac_status); }; } &&
18175          { ac_try='test -s conftest$ac_exeext'
18176   { (case "(($ac_try" in
18177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178   *) ac_try_echo=$ac_try;;
18179 esac
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181   (eval "$ac_try") 2>&5
18182   ac_status=$?
18183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184   (exit $ac_status); }; }; then
18185   eval "$as_ac_var=yes"
18186 else
18187   echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18189
18190         eval "$as_ac_var=no"
18191 fi
18192
18193 rm -f core conftest.err conftest.$ac_objext \
18194       conftest$ac_exeext conftest.$ac_ext
18195 fi
18196 ac_res=`eval echo '${'$as_ac_var'}'`
18197                { echo "$as_me:$LINENO: result: $ac_res" >&5
18198 echo "${ECHO_T}$ac_res" >&6; }
18199 if test `eval echo '${'$as_ac_var'}'` = yes; then
18200   cat >>confdefs.h <<_ACEOF
18201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18202 _ACEOF
18203
18204 fi
18205 done
18206
18207
18208
18209
18210
18211 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18212 do
18213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18214 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18217   echo $ECHO_N "(cached) $ECHO_C" >&6
18218 else
18219   cat >conftest.$ac_ext <<_ACEOF
18220 /* confdefs.h.  */
18221 _ACEOF
18222 cat confdefs.h >>conftest.$ac_ext
18223 cat >>conftest.$ac_ext <<_ACEOF
18224 /* end confdefs.h.  */
18225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18227 #define $ac_func innocuous_$ac_func
18228
18229 /* System header to define __stub macros and hopefully few prototypes,
18230     which can conflict with char $ac_func (); below.
18231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18232     <limits.h> exists even on freestanding compilers.  */
18233
18234 #ifdef __STDC__
18235 # include <limits.h>
18236 #else
18237 # include <assert.h>
18238 #endif
18239
18240 #undef $ac_func
18241
18242 /* Override any GCC internal prototype to avoid an error.
18243    Use char because int might match the return type of a GCC
18244    builtin and then its argument prototype would still apply.  */
18245 #ifdef __cplusplus
18246 extern "C"
18247 #endif
18248 char $ac_func ();
18249 /* The GNU C library defines this for functions which it implements
18250     to always fail with ENOSYS.  Some functions are actually named
18251     something starting with __ and the normal name is an alias.  */
18252 #if defined __stub_$ac_func || defined __stub___$ac_func
18253 choke me
18254 #endif
18255
18256 int
18257 main ()
18258 {
18259 return $ac_func ();
18260   ;
18261   return 0;
18262 }
18263 _ACEOF
18264 rm -f conftest.$ac_objext conftest$ac_exeext
18265 if { (ac_try="$ac_link"
18266 case "(($ac_try" in
18267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18268   *) ac_try_echo=$ac_try;;
18269 esac
18270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18271   (eval "$ac_link") 2>conftest.er1
18272   ac_status=$?
18273   grep -v '^ *+' conftest.er1 >conftest.err
18274   rm -f conftest.er1
18275   cat conftest.err >&5
18276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277   (exit $ac_status); } &&
18278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18279   { (case "(($ac_try" in
18280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18281   *) ac_try_echo=$ac_try;;
18282 esac
18283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18284   (eval "$ac_try") 2>&5
18285   ac_status=$?
18286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287   (exit $ac_status); }; } &&
18288          { ac_try='test -s conftest$ac_exeext'
18289   { (case "(($ac_try" in
18290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291   *) ac_try_echo=$ac_try;;
18292 esac
18293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18294   (eval "$ac_try") 2>&5
18295   ac_status=$?
18296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297   (exit $ac_status); }; }; then
18298   eval "$as_ac_var=yes"
18299 else
18300   echo "$as_me: failed program was:" >&5
18301 sed 's/^/| /' conftest.$ac_ext >&5
18302
18303         eval "$as_ac_var=no"
18304 fi
18305
18306 rm -f core conftest.err conftest.$ac_objext \
18307       conftest$ac_exeext conftest.$ac_ext
18308 fi
18309 ac_res=`eval echo '${'$as_ac_var'}'`
18310                { echo "$as_me:$LINENO: result: $ac_res" >&5
18311 echo "${ECHO_T}$ac_res" >&6; }
18312 if test `eval echo '${'$as_ac_var'}'` = yes; then
18313   cat >>confdefs.h <<_ACEOF
18314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18315 _ACEOF
18316
18317 fi
18318 done
18319
18320 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18321 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18322 if test "${llvm_cv_c_printf_a+set}" = set; then
18323   echo $ECHO_N "(cached) $ECHO_C" >&6
18324 else
18325   ac_ext=c
18326 ac_cpp='$CPP $CPPFLAGS'
18327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18330
18331  if test "$cross_compiling" = yes; then
18332   llvmac_cv_c_printf_a=no
18333 else
18334   cat >conftest.$ac_ext <<_ACEOF
18335
18336   /* confdefs.h.  */
18337 _ACEOF
18338 cat confdefs.h >>conftest.$ac_ext
18339 cat >>conftest.$ac_ext <<_ACEOF
18340 /* end confdefs.h.  */
18341
18342 #include <stdio.h>
18343 #include <stdlib.h>
18344
18345 int
18346 main ()
18347 {
18348
18349 volatile double A, B;
18350 char Buffer[100];
18351 A = 1;
18352 A /= 10.0;
18353 sprintf(Buffer, "%a", A);
18354 B = atof(Buffer);
18355 if (A != B)
18356   return (1);
18357 if (A != 0x1.999999999999ap-4)
18358   return (1);
18359 return (0);
18360   ;
18361   return 0;
18362 }
18363 _ACEOF
18364 rm -f conftest$ac_exeext
18365 if { (ac_try="$ac_link"
18366 case "(($ac_try" in
18367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18368   *) ac_try_echo=$ac_try;;
18369 esac
18370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18371   (eval "$ac_link") 2>&5
18372   ac_status=$?
18373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18375   { (case "(($ac_try" in
18376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377   *) ac_try_echo=$ac_try;;
18378 esac
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380   (eval "$ac_try") 2>&5
18381   ac_status=$?
18382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383   (exit $ac_status); }; }; then
18384   llvm_cv_c_printf_a=yes
18385 else
18386   echo "$as_me: program exited with status $ac_status" >&5
18387 echo "$as_me: failed program was:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18389
18390 ( exit $ac_status )
18391 llvmac_cv_c_printf_a=no
18392 fi
18393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18394 fi
18395
18396
18397  ac_ext=c
18398 ac_cpp='$CPP $CPPFLAGS'
18399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18402
18403 fi
18404 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18405 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18406  if test "$llvm_cv_c_printf_a" = "yes"; then
18407
18408 cat >>confdefs.h <<\_ACEOF
18409 #define HAVE_PRINTF_A 1
18410 _ACEOF
18411
18412  fi
18413
18414
18415 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18416 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18417 if test "${ac_cv_func_rand48+set}" = set; then
18418   echo $ECHO_N "(cached) $ECHO_C" >&6
18419 else
18420   ac_ext=cpp
18421 ac_cpp='$CXXCPP $CPPFLAGS'
18422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18425
18426    cat >conftest.$ac_ext <<_ACEOF
18427 /* confdefs.h.  */
18428 _ACEOF
18429 cat confdefs.h >>conftest.$ac_ext
18430 cat >>conftest.$ac_ext <<_ACEOF
18431 /* end confdefs.h.  */
18432 #include <stdlib.h>
18433 int
18434 main ()
18435 {
18436 srand48(0);lrand48();drand48();
18437   ;
18438   return 0;
18439 }
18440 _ACEOF
18441 rm -f conftest.$ac_objext
18442 if { (ac_try="$ac_compile"
18443 case "(($ac_try" in
18444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18445   *) ac_try_echo=$ac_try;;
18446 esac
18447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18448   (eval "$ac_compile") 2>conftest.er1
18449   ac_status=$?
18450   grep -v '^ *+' conftest.er1 >conftest.err
18451   rm -f conftest.er1
18452   cat conftest.err >&5
18453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454   (exit $ac_status); } &&
18455          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18456   { (case "(($ac_try" in
18457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458   *) ac_try_echo=$ac_try;;
18459 esac
18460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18461   (eval "$ac_try") 2>&5
18462   ac_status=$?
18463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464   (exit $ac_status); }; } &&
18465          { ac_try='test -s conftest.$ac_objext'
18466   { (case "(($ac_try" in
18467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18468   *) ac_try_echo=$ac_try;;
18469 esac
18470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18471   (eval "$ac_try") 2>&5
18472   ac_status=$?
18473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474   (exit $ac_status); }; }; then
18475   ac_cv_func_rand48=yes
18476 else
18477   echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18479
18480         ac_cv_func_rand48=no
18481 fi
18482
18483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18484   ac_ext=c
18485 ac_cpp='$CPP $CPPFLAGS'
18486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18489
18490 fi
18491 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18492 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18493
18494 if test "$ac_cv_func_rand48" = "yes" ; then
18495
18496 cat >>confdefs.h <<\_ACEOF
18497 #define HAVE_RAND48 1
18498 _ACEOF
18499
18500 fi
18501
18502
18503
18504 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18505 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18506 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18507   echo $ECHO_N "(cached) $ECHO_C" >&6
18508 else
18509   ac_ext=cpp
18510 ac_cpp='$CXXCPP $CPPFLAGS'
18511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18514
18515    cat >conftest.$ac_ext <<_ACEOF
18516 /* confdefs.h.  */
18517 _ACEOF
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h.  */
18521 #include <math.h>
18522 int
18523 main ()
18524 {
18525 float f; isnan(f);
18526   ;
18527   return 0;
18528 }
18529 _ACEOF
18530 rm -f conftest.$ac_objext
18531 if { (ac_try="$ac_compile"
18532 case "(($ac_try" in
18533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534   *) ac_try_echo=$ac_try;;
18535 esac
18536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537   (eval "$ac_compile") 2>conftest.er1
18538   ac_status=$?
18539   grep -v '^ *+' conftest.er1 >conftest.err
18540   rm -f conftest.er1
18541   cat conftest.err >&5
18542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543   (exit $ac_status); } &&
18544          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18545   { (case "(($ac_try" in
18546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547   *) ac_try_echo=$ac_try;;
18548 esac
18549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550   (eval "$ac_try") 2>&5
18551   ac_status=$?
18552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553   (exit $ac_status); }; } &&
18554          { ac_try='test -s conftest.$ac_objext'
18555   { (case "(($ac_try" in
18556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18557   *) ac_try_echo=$ac_try;;
18558 esac
18559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18560   (eval "$ac_try") 2>&5
18561   ac_status=$?
18562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563   (exit $ac_status); }; }; then
18564   ac_cv_func_isnan_in_math_h=yes
18565 else
18566   echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18568
18569         ac_cv_func_isnan_in_math_h=no
18570 fi
18571
18572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18573   ac_ext=c
18574 ac_cpp='$CPP $CPPFLAGS'
18575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18578
18579 fi
18580 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18581 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18582
18583
18584 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18585
18586 cat >>confdefs.h <<\_ACEOF
18587 #define HAVE_ISNAN_IN_MATH_H 1
18588 _ACEOF
18589
18590 fi
18591
18592 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18593 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18594 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18595   echo $ECHO_N "(cached) $ECHO_C" >&6
18596 else
18597   ac_ext=cpp
18598 ac_cpp='$CXXCPP $CPPFLAGS'
18599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18602
18603    cat >conftest.$ac_ext <<_ACEOF
18604 /* confdefs.h.  */
18605 _ACEOF
18606 cat confdefs.h >>conftest.$ac_ext
18607 cat >>conftest.$ac_ext <<_ACEOF
18608 /* end confdefs.h.  */
18609 #include <cmath>
18610 int
18611 main ()
18612 {
18613 float f; isnan(f);
18614   ;
18615   return 0;
18616 }
18617 _ACEOF
18618 rm -f conftest.$ac_objext
18619 if { (ac_try="$ac_compile"
18620 case "(($ac_try" in
18621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18622   *) ac_try_echo=$ac_try;;
18623 esac
18624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18625   (eval "$ac_compile") 2>conftest.er1
18626   ac_status=$?
18627   grep -v '^ *+' conftest.er1 >conftest.err
18628   rm -f conftest.er1
18629   cat conftest.err >&5
18630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631   (exit $ac_status); } &&
18632          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18633   { (case "(($ac_try" in
18634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18635   *) ac_try_echo=$ac_try;;
18636 esac
18637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18638   (eval "$ac_try") 2>&5
18639   ac_status=$?
18640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641   (exit $ac_status); }; } &&
18642          { ac_try='test -s conftest.$ac_objext'
18643   { (case "(($ac_try" in
18644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18645   *) ac_try_echo=$ac_try;;
18646 esac
18647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18648   (eval "$ac_try") 2>&5
18649   ac_status=$?
18650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651   (exit $ac_status); }; }; then
18652   ac_cv_func_isnan_in_cmath=yes
18653 else
18654   echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18656
18657         ac_cv_func_isnan_in_cmath=no
18658 fi
18659
18660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18661   ac_ext=c
18662 ac_cpp='$CPP $CPPFLAGS'
18663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18666
18667 fi
18668 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18669 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18670
18671 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18672
18673 cat >>confdefs.h <<\_ACEOF
18674 #define HAVE_ISNAN_IN_CMATH 1
18675 _ACEOF
18676
18677 fi
18678
18679 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18680 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18681 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18682   echo $ECHO_N "(cached) $ECHO_C" >&6
18683 else
18684   ac_ext=cpp
18685 ac_cpp='$CXXCPP $CPPFLAGS'
18686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18689
18690    cat >conftest.$ac_ext <<_ACEOF
18691 /* confdefs.h.  */
18692 _ACEOF
18693 cat confdefs.h >>conftest.$ac_ext
18694 cat >>conftest.$ac_ext <<_ACEOF
18695 /* end confdefs.h.  */
18696 #include <cmath>
18697 int
18698 main ()
18699 {
18700 float f; std::isnan(f);
18701   ;
18702   return 0;
18703 }
18704 _ACEOF
18705 rm -f conftest.$ac_objext
18706 if { (ac_try="$ac_compile"
18707 case "(($ac_try" in
18708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709   *) ac_try_echo=$ac_try;;
18710 esac
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712   (eval "$ac_compile") 2>conftest.er1
18713   ac_status=$?
18714   grep -v '^ *+' conftest.er1 >conftest.err
18715   rm -f conftest.er1
18716   cat conftest.err >&5
18717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718   (exit $ac_status); } &&
18719          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18720   { (case "(($ac_try" in
18721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722   *) ac_try_echo=$ac_try;;
18723 esac
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725   (eval "$ac_try") 2>&5
18726   ac_status=$?
18727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728   (exit $ac_status); }; } &&
18729          { ac_try='test -s conftest.$ac_objext'
18730   { (case "(($ac_try" in
18731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18732   *) ac_try_echo=$ac_try;;
18733 esac
18734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18735   (eval "$ac_try") 2>&5
18736   ac_status=$?
18737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738   (exit $ac_status); }; }; then
18739   ac_cv_func_std_isnan_in_cmath=yes
18740 else
18741   echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18743
18744         ac_cv_func_std_isnan_in_cmath=no
18745 fi
18746
18747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18748   ac_ext=c
18749 ac_cpp='$CPP $CPPFLAGS'
18750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18753
18754 fi
18755 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18756 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18757
18758 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18759
18760 cat >>confdefs.h <<\_ACEOF
18761 #define HAVE_STD_ISNAN_IN_CMATH 1
18762 _ACEOF
18763
18764 fi
18765
18766
18767 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18768 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18769 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18770   echo $ECHO_N "(cached) $ECHO_C" >&6
18771 else
18772   ac_ext=cpp
18773 ac_cpp='$CXXCPP $CPPFLAGS'
18774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18777
18778    cat >conftest.$ac_ext <<_ACEOF
18779 /* confdefs.h.  */
18780 _ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h.  */
18784 #include <math.h>
18785 int
18786 main ()
18787 {
18788 float f; isinf(f);
18789   ;
18790   return 0;
18791 }
18792 _ACEOF
18793 rm -f conftest.$ac_objext
18794 if { (ac_try="$ac_compile"
18795 case "(($ac_try" in
18796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797   *) ac_try_echo=$ac_try;;
18798 esac
18799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800   (eval "$ac_compile") 2>conftest.er1
18801   ac_status=$?
18802   grep -v '^ *+' conftest.er1 >conftest.err
18803   rm -f conftest.er1
18804   cat conftest.err >&5
18805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806   (exit $ac_status); } &&
18807          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18808   { (case "(($ac_try" in
18809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18810   *) ac_try_echo=$ac_try;;
18811 esac
18812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18813   (eval "$ac_try") 2>&5
18814   ac_status=$?
18815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816   (exit $ac_status); }; } &&
18817          { ac_try='test -s conftest.$ac_objext'
18818   { (case "(($ac_try" in
18819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820   *) ac_try_echo=$ac_try;;
18821 esac
18822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18823   (eval "$ac_try") 2>&5
18824   ac_status=$?
18825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826   (exit $ac_status); }; }; then
18827   ac_cv_func_isinf_in_math_h=yes
18828 else
18829   echo "$as_me: failed program was:" >&5
18830 sed 's/^/| /' conftest.$ac_ext >&5
18831
18832         ac_cv_func_isinf_in_math_h=no
18833 fi
18834
18835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18836   ac_ext=c
18837 ac_cpp='$CPP $CPPFLAGS'
18838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18841
18842 fi
18843 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18844 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18845
18846 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18847
18848 cat >>confdefs.h <<\_ACEOF
18849 #define HAVE_ISINF_IN_MATH_H 1
18850 _ACEOF
18851
18852 fi
18853
18854 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18855 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18856 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18857   echo $ECHO_N "(cached) $ECHO_C" >&6
18858 else
18859   ac_ext=cpp
18860 ac_cpp='$CXXCPP $CPPFLAGS'
18861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18864
18865    cat >conftest.$ac_ext <<_ACEOF
18866 /* confdefs.h.  */
18867 _ACEOF
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h.  */
18871 #include <cmath>
18872 int
18873 main ()
18874 {
18875 float f; isinf(f);
18876   ;
18877   return 0;
18878 }
18879 _ACEOF
18880 rm -f conftest.$ac_objext
18881 if { (ac_try="$ac_compile"
18882 case "(($ac_try" in
18883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884   *) ac_try_echo=$ac_try;;
18885 esac
18886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887   (eval "$ac_compile") 2>conftest.er1
18888   ac_status=$?
18889   grep -v '^ *+' conftest.er1 >conftest.err
18890   rm -f conftest.er1
18891   cat conftest.err >&5
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); } &&
18894          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18895   { (case "(($ac_try" in
18896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897   *) ac_try_echo=$ac_try;;
18898 esac
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900   (eval "$ac_try") 2>&5
18901   ac_status=$?
18902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903   (exit $ac_status); }; } &&
18904          { ac_try='test -s conftest.$ac_objext'
18905   { (case "(($ac_try" in
18906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907   *) ac_try_echo=$ac_try;;
18908 esac
18909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18910   (eval "$ac_try") 2>&5
18911   ac_status=$?
18912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913   (exit $ac_status); }; }; then
18914   ac_cv_func_isinf_in_cmath=yes
18915 else
18916   echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18918
18919         ac_cv_func_isinf_in_cmath=no
18920 fi
18921
18922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18923   ac_ext=c
18924 ac_cpp='$CPP $CPPFLAGS'
18925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18928
18929 fi
18930 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18931 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18932
18933 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18934
18935 cat >>confdefs.h <<\_ACEOF
18936 #define HAVE_ISINF_IN_CMATH 1
18937 _ACEOF
18938
18939 fi
18940
18941 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18942 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18943 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18944   echo $ECHO_N "(cached) $ECHO_C" >&6
18945 else
18946   ac_ext=cpp
18947 ac_cpp='$CXXCPP $CPPFLAGS'
18948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18951
18952    cat >conftest.$ac_ext <<_ACEOF
18953 /* confdefs.h.  */
18954 _ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h.  */
18958 #include <cmath>
18959 int
18960 main ()
18961 {
18962 float f; std::isinf(f)}
18963   ;
18964   return 0;
18965 }
18966 _ACEOF
18967 rm -f conftest.$ac_objext
18968 if { (ac_try="$ac_compile"
18969 case "(($ac_try" in
18970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18971   *) ac_try_echo=$ac_try;;
18972 esac
18973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18974   (eval "$ac_compile") 2>conftest.er1
18975   ac_status=$?
18976   grep -v '^ *+' conftest.er1 >conftest.err
18977   rm -f conftest.er1
18978   cat conftest.err >&5
18979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980   (exit $ac_status); } &&
18981          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18982   { (case "(($ac_try" in
18983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984   *) ac_try_echo=$ac_try;;
18985 esac
18986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18987   (eval "$ac_try") 2>&5
18988   ac_status=$?
18989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990   (exit $ac_status); }; } &&
18991          { ac_try='test -s conftest.$ac_objext'
18992   { (case "(($ac_try" in
18993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994   *) ac_try_echo=$ac_try;;
18995 esac
18996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997   (eval "$ac_try") 2>&5
18998   ac_status=$?
18999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000   (exit $ac_status); }; }; then
19001   ac_cv_func_std_isinf_in_cmath=yes
19002 else
19003   echo "$as_me: failed program was:" >&5
19004 sed 's/^/| /' conftest.$ac_ext >&5
19005
19006         ac_cv_func_std_isinf_in_cmath=no
19007 fi
19008
19009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19010   ac_ext=c
19011 ac_cpp='$CPP $CPPFLAGS'
19012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19015
19016 fi
19017 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19018 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19019
19020 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19021
19022 cat >>confdefs.h <<\_ACEOF
19023 #define HAVE_STD_ISINF_IN_CMATH 1
19024 _ACEOF
19025
19026 fi
19027
19028 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19029 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19030 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19031   echo $ECHO_N "(cached) $ECHO_C" >&6
19032 else
19033   ac_ext=cpp
19034 ac_cpp='$CXXCPP $CPPFLAGS'
19035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19038
19039    cat >conftest.$ac_ext <<_ACEOF
19040 /* confdefs.h.  */
19041 _ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h.  */
19045 #include <ieeefp.h>
19046 int
19047 main ()
19048 {
19049 float f; finite(f);
19050   ;
19051   return 0;
19052 }
19053 _ACEOF
19054 rm -f conftest.$ac_objext
19055 if { (ac_try="$ac_compile"
19056 case "(($ac_try" in
19057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058   *) ac_try_echo=$ac_try;;
19059 esac
19060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061   (eval "$ac_compile") 2>conftest.er1
19062   ac_status=$?
19063   grep -v '^ *+' conftest.er1 >conftest.err
19064   rm -f conftest.er1
19065   cat conftest.err >&5
19066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067   (exit $ac_status); } &&
19068          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19069   { (case "(($ac_try" in
19070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19071   *) ac_try_echo=$ac_try;;
19072 esac
19073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074   (eval "$ac_try") 2>&5
19075   ac_status=$?
19076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077   (exit $ac_status); }; } &&
19078          { ac_try='test -s conftest.$ac_objext'
19079   { (case "(($ac_try" in
19080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081   *) ac_try_echo=$ac_try;;
19082 esac
19083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084   (eval "$ac_try") 2>&5
19085   ac_status=$?
19086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087   (exit $ac_status); }; }; then
19088   ac_cv_func_finite_in_ieeefp_h=yes
19089 else
19090   echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19092
19093         ac_cv_func_finite_in_ieeefp_h=no
19094 fi
19095
19096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19097   ac_ext=c
19098 ac_cpp='$CPP $CPPFLAGS'
19099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19102
19103 fi
19104 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19105 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19106
19107 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19108
19109 cat >>confdefs.h <<\_ACEOF
19110 #define HAVE_FINITE_IN_IEEEFP_H 1
19111 _ACEOF
19112
19113 fi
19114
19115
19116
19117 if test "$llvm_cv_platform_type" = "Unix" ; then
19118
19119
19120 for ac_header in stdlib.h unistd.h
19121 do
19122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19124   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19127   echo $ECHO_N "(cached) $ECHO_C" >&6
19128 fi
19129 ac_res=`eval echo '${'$as_ac_Header'}'`
19130                { echo "$as_me:$LINENO: result: $ac_res" >&5
19131 echo "${ECHO_T}$ac_res" >&6; }
19132 else
19133   # Is the header compilable?
19134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19136 cat >conftest.$ac_ext <<_ACEOF
19137 /* confdefs.h.  */
19138 _ACEOF
19139 cat confdefs.h >>conftest.$ac_ext
19140 cat >>conftest.$ac_ext <<_ACEOF
19141 /* end confdefs.h.  */
19142 $ac_includes_default
19143 #include <$ac_header>
19144 _ACEOF
19145 rm -f conftest.$ac_objext
19146 if { (ac_try="$ac_compile"
19147 case "(($ac_try" in
19148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149   *) ac_try_echo=$ac_try;;
19150 esac
19151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19152   (eval "$ac_compile") 2>conftest.er1
19153   ac_status=$?
19154   grep -v '^ *+' conftest.er1 >conftest.err
19155   rm -f conftest.er1
19156   cat conftest.err >&5
19157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158   (exit $ac_status); } &&
19159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19160   { (case "(($ac_try" in
19161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162   *) ac_try_echo=$ac_try;;
19163 esac
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165   (eval "$ac_try") 2>&5
19166   ac_status=$?
19167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168   (exit $ac_status); }; } &&
19169          { ac_try='test -s conftest.$ac_objext'
19170   { (case "(($ac_try" in
19171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172   *) ac_try_echo=$ac_try;;
19173 esac
19174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175   (eval "$ac_try") 2>&5
19176   ac_status=$?
19177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178   (exit $ac_status); }; }; then
19179   ac_header_compiler=yes
19180 else
19181   echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19183
19184         ac_header_compiler=no
19185 fi
19186
19187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19189 echo "${ECHO_T}$ac_header_compiler" >&6; }
19190
19191 # Is the header present?
19192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19194 cat >conftest.$ac_ext <<_ACEOF
19195 /* confdefs.h.  */
19196 _ACEOF
19197 cat confdefs.h >>conftest.$ac_ext
19198 cat >>conftest.$ac_ext <<_ACEOF
19199 /* end confdefs.h.  */
19200 #include <$ac_header>
19201 _ACEOF
19202 if { (ac_try="$ac_cpp conftest.$ac_ext"
19203 case "(($ac_try" in
19204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19205   *) ac_try_echo=$ac_try;;
19206 esac
19207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19208   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19209   ac_status=$?
19210   grep -v '^ *+' conftest.er1 >conftest.err
19211   rm -f conftest.er1
19212   cat conftest.err >&5
19213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214   (exit $ac_status); } >/dev/null; then
19215   if test -s conftest.err; then
19216     ac_cpp_err=$ac_c_preproc_warn_flag
19217     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19218   else
19219     ac_cpp_err=
19220   fi
19221 else
19222   ac_cpp_err=yes
19223 fi
19224 if test -z "$ac_cpp_err"; then
19225   ac_header_preproc=yes
19226 else
19227   echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19229
19230   ac_header_preproc=no
19231 fi
19232
19233 rm -f conftest.err conftest.$ac_ext
19234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19235 echo "${ECHO_T}$ac_header_preproc" >&6; }
19236
19237 # So?  What about this header?
19238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19239   yes:no: )
19240     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19244     ac_header_preproc=yes
19245     ;;
19246   no:yes:* )
19247     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19249     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19250 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19251     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19253     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19254 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19257     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19259     ( cat <<\_ASBOX
19260 ## ----------------------------------- ##
19261 ## Report this to llvmbugs@cs.uiuc.edu ##
19262 ## ----------------------------------- ##
19263 _ASBOX
19264      ) | sed "s/^/$as_me: WARNING:     /" >&2
19265     ;;
19266 esac
19267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19270   echo $ECHO_N "(cached) $ECHO_C" >&6
19271 else
19272   eval "$as_ac_Header=\$ac_header_preproc"
19273 fi
19274 ac_res=`eval echo '${'$as_ac_Header'}'`
19275                { echo "$as_me:$LINENO: result: $ac_res" >&5
19276 echo "${ECHO_T}$ac_res" >&6; }
19277
19278 fi
19279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19280   cat >>confdefs.h <<_ACEOF
19281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19282 _ACEOF
19283
19284 fi
19285
19286 done
19287
19288
19289 for ac_func in getpagesize
19290 do
19291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19292 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19295   echo $ECHO_N "(cached) $ECHO_C" >&6
19296 else
19297   cat >conftest.$ac_ext <<_ACEOF
19298 /* confdefs.h.  */
19299 _ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h.  */
19303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19304    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19305 #define $ac_func innocuous_$ac_func
19306
19307 /* System header to define __stub macros and hopefully few prototypes,
19308     which can conflict with char $ac_func (); below.
19309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19310     <limits.h> exists even on freestanding compilers.  */
19311
19312 #ifdef __STDC__
19313 # include <limits.h>
19314 #else
19315 # include <assert.h>
19316 #endif
19317
19318 #undef $ac_func
19319
19320 /* Override any GCC internal prototype to avoid an error.
19321    Use char because int might match the return type of a GCC
19322    builtin and then its argument prototype would still apply.  */
19323 #ifdef __cplusplus
19324 extern "C"
19325 #endif
19326 char $ac_func ();
19327 /* The GNU C library defines this for functions which it implements
19328     to always fail with ENOSYS.  Some functions are actually named
19329     something starting with __ and the normal name is an alias.  */
19330 #if defined __stub_$ac_func || defined __stub___$ac_func
19331 choke me
19332 #endif
19333
19334 int
19335 main ()
19336 {
19337 return $ac_func ();
19338   ;
19339   return 0;
19340 }
19341 _ACEOF
19342 rm -f conftest.$ac_objext conftest$ac_exeext
19343 if { (ac_try="$ac_link"
19344 case "(($ac_try" in
19345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346   *) ac_try_echo=$ac_try;;
19347 esac
19348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349   (eval "$ac_link") 2>conftest.er1
19350   ac_status=$?
19351   grep -v '^ *+' conftest.er1 >conftest.err
19352   rm -f conftest.er1
19353   cat conftest.err >&5
19354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355   (exit $ac_status); } &&
19356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19357   { (case "(($ac_try" in
19358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359   *) ac_try_echo=$ac_try;;
19360 esac
19361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362   (eval "$ac_try") 2>&5
19363   ac_status=$?
19364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365   (exit $ac_status); }; } &&
19366          { ac_try='test -s conftest$ac_exeext'
19367   { (case "(($ac_try" in
19368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19369   *) ac_try_echo=$ac_try;;
19370 esac
19371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19372   (eval "$ac_try") 2>&5
19373   ac_status=$?
19374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375   (exit $ac_status); }; }; then
19376   eval "$as_ac_var=yes"
19377 else
19378   echo "$as_me: failed program was:" >&5
19379 sed 's/^/| /' conftest.$ac_ext >&5
19380
19381         eval "$as_ac_var=no"
19382 fi
19383
19384 rm -f core conftest.err conftest.$ac_objext \
19385       conftest$ac_exeext conftest.$ac_ext
19386 fi
19387 ac_res=`eval echo '${'$as_ac_var'}'`
19388                { echo "$as_me:$LINENO: result: $ac_res" >&5
19389 echo "${ECHO_T}$ac_res" >&6; }
19390 if test `eval echo '${'$as_ac_var'}'` = yes; then
19391   cat >>confdefs.h <<_ACEOF
19392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19393 _ACEOF
19394
19395 fi
19396 done
19397
19398 { echo "$as_me:$LINENO: checking for working mmap" >&5
19399 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19400 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19401   echo $ECHO_N "(cached) $ECHO_C" >&6
19402 else
19403   if test "$cross_compiling" = yes; then
19404   ac_cv_func_mmap_fixed_mapped=no
19405 else
19406   cat >conftest.$ac_ext <<_ACEOF
19407 /* confdefs.h.  */
19408 _ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h.  */
19412 $ac_includes_default
19413 /* malloc might have been renamed as rpl_malloc. */
19414 #undef malloc
19415
19416 /* Thanks to Mike Haertel and Jim Avera for this test.
19417    Here is a matrix of mmap possibilities:
19418         mmap private not fixed
19419         mmap private fixed at somewhere currently unmapped
19420         mmap private fixed at somewhere already mapped
19421         mmap shared not fixed
19422         mmap shared fixed at somewhere currently unmapped
19423         mmap shared fixed at somewhere already mapped
19424    For private mappings, we should verify that changes cannot be read()
19425    back from the file, nor mmap's back from the file at a different
19426    address.  (There have been systems where private was not correctly
19427    implemented like the infamous i386 svr4.0, and systems where the
19428    VM page cache was not coherent with the file system buffer cache
19429    like early versions of FreeBSD and possibly contemporary NetBSD.)
19430    For shared mappings, we should conversely verify that changes get
19431    propagated back to all the places they're supposed to be.
19432
19433    Grep wants private fixed already mapped.
19434    The main things grep needs to know about mmap are:
19435    * does it exist and is it safe to write into the mmap'd area
19436    * how to use it (BSD variants)  */
19437
19438 #include <fcntl.h>
19439 #include <sys/mman.h>
19440
19441 #if !STDC_HEADERS && !HAVE_STDLIB_H
19442 char *malloc ();
19443 #endif
19444
19445 /* This mess was copied from the GNU getpagesize.h.  */
19446 #if !HAVE_GETPAGESIZE
19447 /* Assume that all systems that can run configure have sys/param.h.  */
19448 # if !HAVE_SYS_PARAM_H
19449 #  define HAVE_SYS_PARAM_H 1
19450 # endif
19451
19452 # ifdef _SC_PAGESIZE
19453 #  define getpagesize() sysconf(_SC_PAGESIZE)
19454 # else /* no _SC_PAGESIZE */
19455 #  if HAVE_SYS_PARAM_H
19456 #   include <sys/param.h>
19457 #   ifdef EXEC_PAGESIZE
19458 #    define getpagesize() EXEC_PAGESIZE
19459 #   else /* no EXEC_PAGESIZE */
19460 #    ifdef NBPG
19461 #     define getpagesize() NBPG * CLSIZE
19462 #     ifndef CLSIZE
19463 #      define CLSIZE 1
19464 #     endif /* no CLSIZE */
19465 #    else /* no NBPG */
19466 #     ifdef NBPC
19467 #      define getpagesize() NBPC
19468 #     else /* no NBPC */
19469 #      ifdef PAGESIZE
19470 #       define getpagesize() PAGESIZE
19471 #      endif /* PAGESIZE */
19472 #     endif /* no NBPC */
19473 #    endif /* no NBPG */
19474 #   endif /* no EXEC_PAGESIZE */
19475 #  else /* no HAVE_SYS_PARAM_H */
19476 #   define getpagesize() 8192   /* punt totally */
19477 #  endif /* no HAVE_SYS_PARAM_H */
19478 # endif /* no _SC_PAGESIZE */
19479
19480 #endif /* no HAVE_GETPAGESIZE */
19481
19482 int
19483 main ()
19484 {
19485   char *data, *data2, *data3;
19486   int i, pagesize;
19487   int fd;
19488
19489   pagesize = getpagesize ();
19490
19491   /* First, make a file with some known garbage in it. */
19492   data = (char *) malloc (pagesize);
19493   if (!data)
19494     return 1;
19495   for (i = 0; i < pagesize; ++i)
19496     *(data + i) = rand ();
19497   umask (0);
19498   fd = creat ("conftest.mmap", 0600);
19499   if (fd < 0)
19500     return 1;
19501   if (write (fd, data, pagesize) != pagesize)
19502     return 1;
19503   close (fd);
19504
19505   /* Next, try to mmap the file at a fixed address which already has
19506      something else allocated at it.  If we can, also make sure that
19507      we see the same garbage.  */
19508   fd = open ("conftest.mmap", O_RDWR);
19509   if (fd < 0)
19510     return 1;
19511   data2 = (char *) malloc (2 * pagesize);
19512   if (!data2)
19513     return 1;
19514   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19515   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19516                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19517     return 1;
19518   for (i = 0; i < pagesize; ++i)
19519     if (*(data + i) != *(data2 + i))
19520       return 1;
19521
19522   /* Finally, make sure that changes to the mapped area do not
19523      percolate back to the file as seen by read().  (This is a bug on
19524      some variants of i386 svr4.0.)  */
19525   for (i = 0; i < pagesize; ++i)
19526     *(data2 + i) = *(data2 + i) + 1;
19527   data3 = (char *) malloc (pagesize);
19528   if (!data3)
19529     return 1;
19530   if (read (fd, data3, pagesize) != pagesize)
19531     return 1;
19532   for (i = 0; i < pagesize; ++i)
19533     if (*(data + i) != *(data3 + i))
19534       return 1;
19535   close (fd);
19536   return 0;
19537 }
19538 _ACEOF
19539 rm -f conftest$ac_exeext
19540 if { (ac_try="$ac_link"
19541 case "(($ac_try" in
19542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543   *) ac_try_echo=$ac_try;;
19544 esac
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546   (eval "$ac_link") 2>&5
19547   ac_status=$?
19548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19550   { (case "(($ac_try" in
19551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19552   *) ac_try_echo=$ac_try;;
19553 esac
19554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19555   (eval "$ac_try") 2>&5
19556   ac_status=$?
19557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558   (exit $ac_status); }; }; then
19559   ac_cv_func_mmap_fixed_mapped=yes
19560 else
19561   echo "$as_me: program exited with status $ac_status" >&5
19562 echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19564
19565 ( exit $ac_status )
19566 ac_cv_func_mmap_fixed_mapped=no
19567 fi
19568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19569 fi
19570
19571
19572 fi
19573 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19574 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19575 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19576
19577 cat >>confdefs.h <<\_ACEOF
19578 #define HAVE_MMAP 1
19579 _ACEOF
19580
19581 fi
19582 rm -f conftest.mmap
19583
19584   { echo "$as_me:$LINENO: checking for mmap of files" >&5
19585 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19586 if test "${ac_cv_func_mmap_file+set}" = set; then
19587   echo $ECHO_N "(cached) $ECHO_C" >&6
19588 else
19589    ac_ext=c
19590 ac_cpp='$CPP $CPPFLAGS'
19591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19594
19595   if test "$cross_compiling" = yes; then
19596   ac_cv_func_mmap_file=no
19597 else
19598   cat >conftest.$ac_ext <<_ACEOF
19599
19600     /* confdefs.h.  */
19601 _ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h.  */
19605
19606 #include <sys/types.h>
19607 #include <sys/mman.h>
19608 #include <fcntl.h>
19609
19610 int
19611 main ()
19612 {
19613
19614   int fd;
19615   fd = creat ("foo",0777);
19616   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19617   unlink ("foo");
19618   return (fd != (int) MAP_FAILED);
19619   ;
19620   return 0;
19621 }
19622 _ACEOF
19623 rm -f conftest$ac_exeext
19624 if { (ac_try="$ac_link"
19625 case "(($ac_try" in
19626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19627   *) ac_try_echo=$ac_try;;
19628 esac
19629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630   (eval "$ac_link") 2>&5
19631   ac_status=$?
19632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19634   { (case "(($ac_try" in
19635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636   *) ac_try_echo=$ac_try;;
19637 esac
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639   (eval "$ac_try") 2>&5
19640   ac_status=$?
19641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642   (exit $ac_status); }; }; then
19643   ac_cv_func_mmap_file=yes
19644 else
19645   echo "$as_me: program exited with status $ac_status" >&5
19646 echo "$as_me: failed program was:" >&5
19647 sed 's/^/| /' conftest.$ac_ext >&5
19648
19649 ( exit $ac_status )
19650 ac_cv_func_mmap_file=no
19651 fi
19652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19653 fi
19654
19655
19656   ac_ext=c
19657 ac_cpp='$CPP $CPPFLAGS'
19658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19661
19662
19663 fi
19664 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19665 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19666 if test "$ac_cv_func_mmap_file" = yes; then
19667
19668 cat >>confdefs.h <<\_ACEOF
19669 #define HAVE_MMAP_FILE
19670 _ACEOF
19671
19672    MMAP_FILE=yes
19673
19674 fi
19675
19676   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19677 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19678 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19679   echo $ECHO_N "(cached) $ECHO_C" >&6
19680 else
19681   if test "$llvm_cv_os_type" = "Interix" ; then
19682    ac_cv_need_dev_zero_for_mmap=yes
19683  else
19684    ac_cv_need_dev_zero_for_mmap=no
19685  fi
19686
19687 fi
19688 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19689 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19690 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19691
19692 cat >>confdefs.h <<\_ACEOF
19693 #define NEED_DEV_ZERO_FOR_MMAP 1
19694 _ACEOF
19695
19696 fi
19697
19698   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19699   then
19700     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19701 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19702   fi
19703   if test "$ac_cv_func_mmap_file" = "no"
19704   then
19705     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19706 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19707   fi
19708 fi
19709
19710 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19711 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19712 cat >conftest.$ac_ext <<_ACEOF
19713 /* confdefs.h.  */
19714 _ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h.  */
19718 int main() {
19719         volatile unsigned long val = 1;
19720         __sync_synchronize();
19721         __sync_val_compare_and_swap(&val, 1, 0);
19722         __sync_add_and_fetch(&val, 1);
19723         __sync_sub_and_fetch(&val, 1);
19724         return 0;
19725       }
19726
19727 _ACEOF
19728 rm -f conftest.$ac_objext conftest$ac_exeext
19729 if { (ac_try="$ac_link"
19730 case "(($ac_try" in
19731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732   *) ac_try_echo=$ac_try;;
19733 esac
19734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735   (eval "$ac_link") 2>conftest.er1
19736   ac_status=$?
19737   grep -v '^ *+' conftest.er1 >conftest.err
19738   rm -f conftest.er1
19739   cat conftest.err >&5
19740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741   (exit $ac_status); } &&
19742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19743   { (case "(($ac_try" in
19744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745   *) ac_try_echo=$ac_try;;
19746 esac
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748   (eval "$ac_try") 2>&5
19749   ac_status=$?
19750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751   (exit $ac_status); }; } &&
19752          { ac_try='test -s conftest$ac_exeext'
19753   { (case "(($ac_try" in
19754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19755   *) ac_try_echo=$ac_try;;
19756 esac
19757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19758   (eval "$ac_try") 2>&5
19759   ac_status=$?
19760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761   (exit $ac_status); }; }; then
19762   { echo "$as_me:$LINENO: result: yes" >&5
19763 echo "${ECHO_T}yes" >&6; }
19764
19765 cat >>confdefs.h <<\_ACEOF
19766 #define LLVM_MULTITHREADED 1
19767 _ACEOF
19768
19769 else
19770   echo "$as_me: failed program was:" >&5
19771 sed 's/^/| /' conftest.$ac_ext >&5
19772
19773         { echo "$as_me:$LINENO: result: no" >&5
19774 echo "${ECHO_T}no" >&6; }
19775
19776 cat >>confdefs.h <<\_ACEOF
19777 #define LLVM_MULTITHREADED 0
19778 _ACEOF
19779
19780   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19781 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19782 fi
19783
19784 rm -f core conftest.err conftest.$ac_objext \
19785       conftest$ac_exeext conftest.$ac_ext
19786
19787
19788
19789 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19790   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19791 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19792 if test "${llvm_cv_linux_mixed+set}" = set; then
19793   echo $ECHO_N "(cached) $ECHO_C" >&6
19794 else
19795    ac_ext=c
19796 ac_cpp='$CPP $CPPFLAGS'
19797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19800
19801   cat >conftest.$ac_ext <<_ACEOF
19802 /* confdefs.h.  */
19803 _ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h.  */
19807 #ifndef __x86_64__
19808        error: Not x86-64 even if uname says so!
19809       #endif
19810
19811 int
19812 main ()
19813 {
19814
19815   ;
19816   return 0;
19817 }
19818 _ACEOF
19819 rm -f conftest.$ac_objext
19820 if { (ac_try="$ac_compile"
19821 case "(($ac_try" in
19822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823   *) ac_try_echo=$ac_try;;
19824 esac
19825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826   (eval "$ac_compile") 2>conftest.er1
19827   ac_status=$?
19828   grep -v '^ *+' conftest.er1 >conftest.err
19829   rm -f conftest.er1
19830   cat conftest.err >&5
19831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832   (exit $ac_status); } &&
19833          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19834   { (case "(($ac_try" in
19835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836   *) ac_try_echo=$ac_try;;
19837 esac
19838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839   (eval "$ac_try") 2>&5
19840   ac_status=$?
19841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842   (exit $ac_status); }; } &&
19843          { ac_try='test -s conftest.$ac_objext'
19844   { (case "(($ac_try" in
19845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846   *) ac_try_echo=$ac_try;;
19847 esac
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849   (eval "$ac_try") 2>&5
19850   ac_status=$?
19851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); }; }; then
19853   llvm_cv_linux_mixed=no
19854 else
19855   echo "$as_me: failed program was:" >&5
19856 sed 's/^/| /' conftest.$ac_ext >&5
19857
19858         llvm_cv_linux_mixed=yes
19859 fi
19860
19861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19862   ac_ext=c
19863 ac_cpp='$CPP $CPPFLAGS'
19864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19867
19868
19869 fi
19870 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19871 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19872
19873   if test "$llvm_cv_linux_mixed" = "yes"; then
19874     llvm_cv_target_arch="x86"
19875     ARCH="x86"
19876   fi
19877 fi
19878
19879
19880 for ac_func in __dso_handle
19881 do
19882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19883 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19885 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19886   echo $ECHO_N "(cached) $ECHO_C" >&6
19887 else
19888   cat >conftest.$ac_ext <<_ACEOF
19889 /* confdefs.h.  */
19890 _ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h.  */
19894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19896 #define $ac_func innocuous_$ac_func
19897
19898 /* System header to define __stub macros and hopefully few prototypes,
19899     which can conflict with char $ac_func (); below.
19900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19901     <limits.h> exists even on freestanding compilers.  */
19902
19903 #ifdef __STDC__
19904 # include <limits.h>
19905 #else
19906 # include <assert.h>
19907 #endif
19908
19909 #undef $ac_func
19910
19911 /* Override any GCC internal prototype to avoid an error.
19912    Use char because int might match the return type of a GCC
19913    builtin and then its argument prototype would still apply.  */
19914 #ifdef __cplusplus
19915 extern "C"
19916 #endif
19917 char $ac_func ();
19918 /* The GNU C library defines this for functions which it implements
19919     to always fail with ENOSYS.  Some functions are actually named
19920     something starting with __ and the normal name is an alias.  */
19921 #if defined __stub_$ac_func || defined __stub___$ac_func
19922 choke me
19923 #endif
19924
19925 int
19926 main ()
19927 {
19928 return $ac_func ();
19929   ;
19930   return 0;
19931 }
19932 _ACEOF
19933 rm -f conftest.$ac_objext conftest$ac_exeext
19934 if { (ac_try="$ac_link"
19935 case "(($ac_try" in
19936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937   *) ac_try_echo=$ac_try;;
19938 esac
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940   (eval "$ac_link") 2>conftest.er1
19941   ac_status=$?
19942   grep -v '^ *+' conftest.er1 >conftest.err
19943   rm -f conftest.er1
19944   cat conftest.err >&5
19945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946   (exit $ac_status); } &&
19947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19948   { (case "(($ac_try" in
19949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950   *) ac_try_echo=$ac_try;;
19951 esac
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953   (eval "$ac_try") 2>&5
19954   ac_status=$?
19955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956   (exit $ac_status); }; } &&
19957          { ac_try='test -s conftest$ac_exeext'
19958   { (case "(($ac_try" in
19959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960   *) ac_try_echo=$ac_try;;
19961 esac
19962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963   (eval "$ac_try") 2>&5
19964   ac_status=$?
19965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966   (exit $ac_status); }; }; then
19967   eval "$as_ac_var=yes"
19968 else
19969   echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19971
19972         eval "$as_ac_var=no"
19973 fi
19974
19975 rm -f core conftest.err conftest.$ac_objext \
19976       conftest$ac_exeext conftest.$ac_ext
19977 fi
19978 ac_res=`eval echo '${'$as_ac_var'}'`
19979                { echo "$as_me:$LINENO: result: $ac_res" >&5
19980 echo "${ECHO_T}$ac_res" >&6; }
19981 if test `eval echo '${'$as_ac_var'}'` = yes; then
19982   cat >>confdefs.h <<_ACEOF
19983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19984 _ACEOF
19985
19986 fi
19987 done
19988
19989
19990 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19991 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19992 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19993   echo $ECHO_N "(cached) $ECHO_C" >&6
19994 else
19995   llvm_cv_llvmgcc_sanity="no"
19996 if test -x "$LLVMGCC" ; then
19997   cp /dev/null conftest.c
19998   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19999       grep 'target datalayout =' > /dev/null 2>&1
20000   if test $? -eq 0 ; then
20001     llvm_cv_llvmgcc_sanity="yes"
20002   fi
20003   rm conftest.c
20004 fi
20005 fi
20006 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20007 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20008
20009 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20010   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20011 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20012   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20013   LLVMCC1=$llvmcc1path
20014
20015   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20016   LLVMCC1PLUS=$llvmcc1pluspath
20017
20018   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20019   LLVMGCCDIR=$llvmgccdir
20020
20021   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20022   LLVMGCC_LANGS=$llvmgcclangs
20023
20024   { echo "$as_me:$LINENO: result: ok" >&5
20025 echo "${ECHO_T}ok" >&6; }
20026 fi
20027
20028 SHLIBEXT=$libltdl_cv_shlibext
20029
20030
20031 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20032
20033
20034 # Translate the various configuration directories and other basic
20035 # information into substitutions that will end up in Makefile.config.in
20036 # that these configured values can be used by the makefiles
20037 if test "${prefix}" = "NONE" ; then
20038   prefix="/usr/local"
20039 fi
20040 eval LLVM_PREFIX="${prefix}";
20041 eval LLVM_BINDIR="${prefix}/bin";
20042 eval LLVM_LIBDIR="${prefix}/lib";
20043 eval LLVM_DATADIR="${prefix}/share/llvm";
20044 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20045 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20046 eval LLVM_INCLUDEDIR="${prefix}/include";
20047 eval LLVM_INFODIR="${prefix}/info";
20048 eval LLVM_MANDIR="${prefix}/man";
20049 LLVM_CONFIGTIME=`date`
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061 # Place the various directores into the config.h file as #defines so that we
20062 # can know about the installation paths within LLVM.
20063
20064 cat >>confdefs.h <<_ACEOF
20065 #define LLVM_PREFIX "$LLVM_PREFIX"
20066 _ACEOF
20067
20068
20069 cat >>confdefs.h <<_ACEOF
20070 #define LLVM_BINDIR "$LLVM_BINDIR"
20071 _ACEOF
20072
20073
20074 cat >>confdefs.h <<_ACEOF
20075 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20076 _ACEOF
20077
20078
20079 cat >>confdefs.h <<_ACEOF
20080 #define LLVM_DATADIR "$LLVM_DATADIR"
20081 _ACEOF
20082
20083
20084 cat >>confdefs.h <<_ACEOF
20085 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20086 _ACEOF
20087
20088
20089 cat >>confdefs.h <<_ACEOF
20090 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20091 _ACEOF
20092
20093
20094 cat >>confdefs.h <<_ACEOF
20095 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20096 _ACEOF
20097
20098
20099 cat >>confdefs.h <<_ACEOF
20100 #define LLVM_INFODIR "$LLVM_INFODIR"
20101 _ACEOF
20102
20103
20104 cat >>confdefs.h <<_ACEOF
20105 #define LLVM_MANDIR "$LLVM_MANDIR"
20106 _ACEOF
20107
20108
20109 cat >>confdefs.h <<_ACEOF
20110 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20111 _ACEOF
20112
20113
20114 cat >>confdefs.h <<_ACEOF
20115 #define LLVM_HOSTTRIPLE "$host"
20116 _ACEOF
20117
20118
20119 # Determine which bindings to build.
20120 if test "$BINDINGS_TO_BUILD" = auto ; then
20121   BINDINGS_TO_BUILD=""
20122   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20123     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20124   fi
20125 fi
20126 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20127
20128
20129 # This isn't really configurey, but it avoids having to repeat the list in
20130 # other files.
20131 ALL_BINDINGS=ocaml
20132
20133
20134 # Do any work necessary to ensure that bindings have what they need.
20135 binding_prereqs_failed=0
20136 for a_binding in $BINDINGS_TO_BUILD ; do
20137   case "$a_binding" in
20138   ocaml)
20139     if test "x$OCAMLC" = x ; then
20140       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20141 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20142       binding_prereqs_failed=1
20143     fi
20144     if test "x$OCAMLDEP" = x ; then
20145       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20146 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20147       binding_prereqs_failed=1
20148     fi
20149     if test "x$OCAMLOPT" = x ; then
20150       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20151 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20152           fi
20153     if test "x$with_ocaml_libdir" != xauto ; then
20154       OCAML_LIBDIR=$with_ocaml_libdir
20155
20156     else
20157       ocaml_stdlib="`"$OCAMLC" -where`"
20158       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20159       then
20160         # ocaml stdlib is beneath our prefix; use stdlib
20161         OCAML_LIBDIR=$ocaml_stdlib
20162
20163       else
20164         # ocaml stdlib is outside our prefix; use libdir/ocaml
20165         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20166
20167       fi
20168     fi
20169     ;;
20170   esac
20171 done
20172 if test "$binding_prereqs_failed" = 1 ; then
20173   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20174 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20175    { (exit 1); exit 1; }; }
20176 fi
20177
20178 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20179 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20180 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20181   echo $ECHO_N "(cached) $ECHO_C" >&6
20182 else
20183    ac_ext=cpp
20184 ac_cpp='$CXXCPP $CPPFLAGS'
20185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20188
20189   oldcxxflags="$CXXFLAGS"
20190   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20191   cat >conftest.$ac_ext <<_ACEOF
20192 /* confdefs.h.  */
20193 _ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h.  */
20197
20198 int
20199 main ()
20200 {
20201
20202   ;
20203   return 0;
20204 }
20205 _ACEOF
20206 rm -f conftest.$ac_objext
20207 if { (ac_try="$ac_compile"
20208 case "(($ac_try" in
20209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210   *) ac_try_echo=$ac_try;;
20211 esac
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213   (eval "$ac_compile") 2>conftest.er1
20214   ac_status=$?
20215   grep -v '^ *+' conftest.er1 >conftest.err
20216   rm -f conftest.er1
20217   cat conftest.err >&5
20218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219   (exit $ac_status); } &&
20220          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20221   { (case "(($ac_try" in
20222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223   *) ac_try_echo=$ac_try;;
20224 esac
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226   (eval "$ac_try") 2>&5
20227   ac_status=$?
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); }; } &&
20230          { ac_try='test -s conftest.$ac_objext'
20231   { (case "(($ac_try" in
20232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233   *) ac_try_echo=$ac_try;;
20234 esac
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236   (eval "$ac_try") 2>&5
20237   ac_status=$?
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); }; }; then
20240   llvm_cv_cxx_visibility_inlines_hidden=yes
20241 else
20242   echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20244
20245         llvm_cv_cxx_visibility_inlines_hidden=no
20246 fi
20247
20248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20249   CXXFLAGS="$oldcxxflags"
20250   ac_ext=c
20251 ac_cpp='$CPP $CPPFLAGS'
20252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20255
20256
20257 fi
20258 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20259 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20260 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20261   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20262
20263 else
20264   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20265
20266 fi
20267
20268
20269 if test "$llvm_cv_link_use_r" = "yes" ; then
20270   RPATH="-Wl,-R"
20271 else
20272   RPATH="-Wl,-rpath"
20273 fi
20274
20275
20276 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20277   RDYNAMIC="-Wl,-export-dynamic"
20278 else
20279   RDYNAMIC=""
20280 fi
20281
20282
20283
20284 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
20285
20286 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20287
20288 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20289
20290 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20291
20292 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20293
20294 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20295
20296
20297 ac_config_files="$ac_config_files Makefile.config"
20298
20299
20300 ac_config_files="$ac_config_files llvm.spec"
20301
20302
20303 ac_config_files="$ac_config_files docs/doxygen.cfg"
20304
20305
20306 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20307
20308
20309 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20310
20311
20312 ac_config_commands="$ac_config_commands setup"
20313
20314 ac_config_commands="$ac_config_commands Makefile"
20315
20316
20317 ac_config_commands="$ac_config_commands Makefile.common"
20318
20319
20320 ac_config_commands="$ac_config_commands examples/Makefile"
20321
20322
20323 ac_config_commands="$ac_config_commands lib/Makefile"
20324
20325
20326 ac_config_commands="$ac_config_commands runtime/Makefile"
20327
20328
20329 ac_config_commands="$ac_config_commands test/Makefile"
20330
20331
20332 ac_config_commands="$ac_config_commands test/Makefile.tests"
20333
20334
20335 ac_config_commands="$ac_config_commands unittests/Makefile"
20336
20337
20338 ac_config_commands="$ac_config_commands tools/Makefile"
20339
20340
20341 ac_config_commands="$ac_config_commands utils/Makefile"
20342
20343
20344 ac_config_commands="$ac_config_commands projects/Makefile"
20345
20346
20347 ac_config_commands="$ac_config_commands bindings/Makefile"
20348
20349
20350 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20351
20352
20353
20354 cat >confcache <<\_ACEOF
20355 # This file is a shell script that caches the results of configure
20356 # tests run on this system so they can be shared between configure
20357 # scripts and configure runs, see configure's option --config-cache.
20358 # It is not useful on other systems.  If it contains results you don't
20359 # want to keep, you may remove or edit it.
20360 #
20361 # config.status only pays attention to the cache file if you give it
20362 # the --recheck option to rerun configure.
20363 #
20364 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20365 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20366 # following values.
20367
20368 _ACEOF
20369
20370 # The following way of writing the cache mishandles newlines in values,
20371 # but we know of no workaround that is simple, portable, and efficient.
20372 # So, we kill variables containing newlines.
20373 # Ultrix sh set writes to stderr and can't be redirected directly,
20374 # and sets the high bit in the cache file unless we assign to the vars.
20375 (
20376   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20377     eval ac_val=\$$ac_var
20378     case $ac_val in #(
20379     *${as_nl}*)
20380       case $ac_var in #(
20381       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20382 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20383       esac
20384       case $ac_var in #(
20385       _ | IFS | as_nl) ;; #(
20386       *) $as_unset $ac_var ;;
20387       esac ;;
20388     esac
20389   done
20390
20391   (set) 2>&1 |
20392     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20393     *${as_nl}ac_space=\ *)
20394       # `set' does not quote correctly, so add quotes (double-quote
20395       # substitution turns \\\\ into \\, and sed turns \\ into \).
20396       sed -n \
20397         "s/'/'\\\\''/g;
20398           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20399       ;; #(
20400     *)
20401       # `set' quotes correctly as required by POSIX, so do not add quotes.
20402       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20403       ;;
20404     esac |
20405     sort
20406 ) |
20407   sed '
20408      /^ac_cv_env_/b end
20409      t clear
20410      :clear
20411      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20412      t end
20413      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20414      :end' >>confcache
20415 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20416   if test -w "$cache_file"; then
20417     test "x$cache_file" != "x/dev/null" &&
20418       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20419 echo "$as_me: updating cache $cache_file" >&6;}
20420     cat confcache >$cache_file
20421   else
20422     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20423 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20424   fi
20425 fi
20426 rm -f confcache
20427
20428 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20429 # Let make expand exec_prefix.
20430 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20431
20432 DEFS=-DHAVE_CONFIG_H
20433
20434 ac_libobjs=
20435 ac_ltlibobjs=
20436 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20437   # 1. Remove the extension, and $U if already installed.
20438   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20439   ac_i=`echo "$ac_i" | sed "$ac_script"`
20440   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20441   #    will be set to the directory where LIBOBJS objects are built.
20442   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20443   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20444 done
20445 LIBOBJS=$ac_libobjs
20446
20447 LTLIBOBJS=$ac_ltlibobjs
20448
20449
20450 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20451   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20452 Usually this means the macro was only invoked conditionally." >&5
20453 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20454 Usually this means the macro was only invoked conditionally." >&2;}
20455    { (exit 1); exit 1; }; }
20456 fi
20457 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20458   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20459 Usually this means the macro was only invoked conditionally." >&5
20460 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20461 Usually this means the macro was only invoked conditionally." >&2;}
20462    { (exit 1); exit 1; }; }
20463 fi
20464
20465 : ${CONFIG_STATUS=./config.status}
20466 ac_clean_files_save=$ac_clean_files
20467 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20468 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20469 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20470 cat >$CONFIG_STATUS <<_ACEOF
20471 #! $SHELL
20472 # Generated by $as_me.
20473 # Run this file to recreate the current configuration.
20474 # Compiler output produced by configure, useful for debugging
20475 # configure, is in config.log if it exists.
20476
20477 debug=false
20478 ac_cs_recheck=false
20479 ac_cs_silent=false
20480 SHELL=\${CONFIG_SHELL-$SHELL}
20481 _ACEOF
20482
20483 cat >>$CONFIG_STATUS <<\_ACEOF
20484 ## --------------------- ##
20485 ## M4sh Initialization.  ##
20486 ## --------------------- ##
20487
20488 # Be Bourne compatible
20489 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20490   emulate sh
20491   NULLCMD=:
20492   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20493   # is contrary to our usage.  Disable this feature.
20494   alias -g '${1+"$@"}'='"$@"'
20495   setopt NO_GLOB_SUBST
20496 else
20497   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20498 fi
20499 BIN_SH=xpg4; export BIN_SH # for Tru64
20500 DUALCASE=1; export DUALCASE # for MKS sh
20501
20502
20503 # PATH needs CR
20504 # Avoid depending upon Character Ranges.
20505 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20506 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20507 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20508 as_cr_digits='0123456789'
20509 as_cr_alnum=$as_cr_Letters$as_cr_digits
20510
20511 # The user is always right.
20512 if test "${PATH_SEPARATOR+set}" != set; then
20513   echo "#! /bin/sh" >conf$$.sh
20514   echo  "exit 0"   >>conf$$.sh
20515   chmod +x conf$$.sh
20516   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20517     PATH_SEPARATOR=';'
20518   else
20519     PATH_SEPARATOR=:
20520   fi
20521   rm -f conf$$.sh
20522 fi
20523
20524 # Support unset when possible.
20525 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20526   as_unset=unset
20527 else
20528   as_unset=false
20529 fi
20530
20531
20532 # IFS
20533 # We need space, tab and new line, in precisely that order.  Quoting is
20534 # there to prevent editors from complaining about space-tab.
20535 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20536 # splitting by setting IFS to empty value.)
20537 as_nl='
20538 '
20539 IFS=" ""        $as_nl"
20540
20541 # Find who we are.  Look in the path if we contain no directory separator.
20542 case $0 in
20543   *[\\/]* ) as_myself=$0 ;;
20544   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20545 for as_dir in $PATH
20546 do
20547   IFS=$as_save_IFS
20548   test -z "$as_dir" && as_dir=.
20549   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20550 done
20551 IFS=$as_save_IFS
20552
20553      ;;
20554 esac
20555 # We did not find ourselves, most probably we were run as `sh COMMAND'
20556 # in which case we are not to be found in the path.
20557 if test "x$as_myself" = x; then
20558   as_myself=$0
20559 fi
20560 if test ! -f "$as_myself"; then
20561   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20562   { (exit 1); exit 1; }
20563 fi
20564
20565 # Work around bugs in pre-3.0 UWIN ksh.
20566 for as_var in ENV MAIL MAILPATH
20567 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20568 done
20569 PS1='$ '
20570 PS2='> '
20571 PS4='+ '
20572
20573 # NLS nuisances.
20574 for as_var in \
20575   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20576   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20577   LC_TELEPHONE LC_TIME
20578 do
20579   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20580     eval $as_var=C; export $as_var
20581   else
20582     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20583   fi
20584 done
20585
20586 # Required to use basename.
20587 if expr a : '\(a\)' >/dev/null 2>&1 &&
20588    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20589   as_expr=expr
20590 else
20591   as_expr=false
20592 fi
20593
20594 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20595   as_basename=basename
20596 else
20597   as_basename=false
20598 fi
20599
20600
20601 # Name of the executable.
20602 as_me=`$as_basename -- "$0" ||
20603 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20604          X"$0" : 'X\(//\)$' \| \
20605          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20606 echo X/"$0" |
20607     sed '/^.*\/\([^/][^/]*\)\/*$/{
20608             s//\1/
20609             q
20610           }
20611           /^X\/\(\/\/\)$/{
20612             s//\1/
20613             q
20614           }
20615           /^X\/\(\/\).*/{
20616             s//\1/
20617             q
20618           }
20619           s/.*/./; q'`
20620
20621 # CDPATH.
20622 $as_unset CDPATH
20623
20624
20625
20626   as_lineno_1=$LINENO
20627   as_lineno_2=$LINENO
20628   test "x$as_lineno_1" != "x$as_lineno_2" &&
20629   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20630
20631   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20632   # uniformly replaced by the line number.  The first 'sed' inserts a
20633   # line-number line after each line using $LINENO; the second 'sed'
20634   # does the real work.  The second script uses 'N' to pair each
20635   # line-number line with the line containing $LINENO, and appends
20636   # trailing '-' during substitution so that $LINENO is not a special
20637   # case at line end.
20638   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20639   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20640   # E. McMahon (1931-1989) for sed's syntax.  :-)
20641   sed -n '
20642     p
20643     /[$]LINENO/=
20644   ' <$as_myself |
20645     sed '
20646       s/[$]LINENO.*/&-/
20647       t lineno
20648       b
20649       :lineno
20650       N
20651       :loop
20652       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20653       t loop
20654       s/-\n.*//
20655     ' >$as_me.lineno &&
20656   chmod +x "$as_me.lineno" ||
20657     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20658    { (exit 1); exit 1; }; }
20659
20660   # Don't try to exec as it changes $[0], causing all sort of problems
20661   # (the dirname of $[0] is not the place where we might find the
20662   # original and so on.  Autoconf is especially sensitive to this).
20663   . "./$as_me.lineno"
20664   # Exit status is that of the last command.
20665   exit
20666 }
20667
20668
20669 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20670   as_dirname=dirname
20671 else
20672   as_dirname=false
20673 fi
20674
20675 ECHO_C= ECHO_N= ECHO_T=
20676 case `echo -n x` in
20677 -n*)
20678   case `echo 'x\c'` in
20679   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20680   *)   ECHO_C='\c';;
20681   esac;;
20682 *)
20683   ECHO_N='-n';;
20684 esac
20685
20686 if expr a : '\(a\)' >/dev/null 2>&1 &&
20687    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20688   as_expr=expr
20689 else
20690   as_expr=false
20691 fi
20692
20693 rm -f conf$$ conf$$.exe conf$$.file
20694 if test -d conf$$.dir; then
20695   rm -f conf$$.dir/conf$$.file
20696 else
20697   rm -f conf$$.dir
20698   mkdir conf$$.dir
20699 fi
20700 echo >conf$$.file
20701 if ln -s conf$$.file conf$$ 2>/dev/null; then
20702   as_ln_s='ln -s'
20703   # ... but there are two gotchas:
20704   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20705   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20706   # In both cases, we have to default to `cp -p'.
20707   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20708     as_ln_s='cp -p'
20709 elif ln conf$$.file conf$$ 2>/dev/null; then
20710   as_ln_s=ln
20711 else
20712   as_ln_s='cp -p'
20713 fi
20714 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20715 rmdir conf$$.dir 2>/dev/null
20716
20717 if mkdir -p . 2>/dev/null; then
20718   as_mkdir_p=:
20719 else
20720   test -d ./-p && rmdir ./-p
20721   as_mkdir_p=false
20722 fi
20723
20724 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
20725 # systems may use methods other than mode bits to determine executability.
20726 cat >conf$$.file <<_ASEOF
20727 #! /bin/sh
20728 exit 0
20729 _ASEOF
20730 chmod +x conf$$.file
20731 if test -x conf$$.file >/dev/null 2>&1; then
20732   as_executable_p="test -x"
20733 else
20734   as_executable_p=:
20735 fi
20736 rm -f conf$$.file
20737
20738 # Sed expression to map a string onto a valid CPP name.
20739 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20740
20741 # Sed expression to map a string onto a valid variable name.
20742 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20743
20744
20745 exec 6>&1
20746
20747 # Save the log message, to keep $[0] and so on meaningful, and to
20748 # report actual input values of CONFIG_FILES etc. instead of their
20749 # values after options handling.
20750 ac_log="
20751 This file was extended by llvm $as_me 2.8svn, which was
20752 generated by GNU Autoconf 2.60.  Invocation command line was
20753
20754   CONFIG_FILES    = $CONFIG_FILES
20755   CONFIG_HEADERS  = $CONFIG_HEADERS
20756   CONFIG_LINKS    = $CONFIG_LINKS
20757   CONFIG_COMMANDS = $CONFIG_COMMANDS
20758   $ $0 $@
20759
20760 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20761 "
20762
20763 _ACEOF
20764
20765 cat >>$CONFIG_STATUS <<_ACEOF
20766 # Files that config.status was made for.
20767 config_files="$ac_config_files"
20768 config_headers="$ac_config_headers"
20769 config_commands="$ac_config_commands"
20770
20771 _ACEOF
20772
20773 cat >>$CONFIG_STATUS <<\_ACEOF
20774 ac_cs_usage="\
20775 \`$as_me' instantiates files from templates according to the
20776 current configuration.
20777
20778 Usage: $0 [OPTIONS] [FILE]...
20779
20780   -h, --help       print this help, then exit
20781   -V, --version    print version number, then exit
20782   -q, --quiet      do not print progress messages
20783   -d, --debug      don't remove temporary files
20784       --recheck    update $as_me by reconfiguring in the same conditions
20785   --file=FILE[:TEMPLATE]
20786                    instantiate the configuration file FILE
20787   --header=FILE[:TEMPLATE]
20788                    instantiate the configuration header FILE
20789
20790 Configuration files:
20791 $config_files
20792
20793 Configuration headers:
20794 $config_headers
20795
20796 Configuration commands:
20797 $config_commands
20798
20799 Report bugs to <bug-autoconf@gnu.org>."
20800
20801 _ACEOF
20802 cat >>$CONFIG_STATUS <<_ACEOF
20803 ac_cs_version="\\
20804 llvm config.status 2.8svn
20805 configured by $0, generated by GNU Autoconf 2.60,
20806   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20807
20808 Copyright (C) 2006 Free Software Foundation, Inc.
20809 This config.status script is free software; the Free Software Foundation
20810 gives unlimited permission to copy, distribute and modify it."
20811
20812 ac_pwd='$ac_pwd'
20813 srcdir='$srcdir'
20814 INSTALL='$INSTALL'
20815 _ACEOF
20816
20817 cat >>$CONFIG_STATUS <<\_ACEOF
20818 # If no file are specified by the user, then we need to provide default
20819 # value.  By we need to know if files were specified by the user.
20820 ac_need_defaults=:
20821 while test $# != 0
20822 do
20823   case $1 in
20824   --*=*)
20825     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20826     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20827     ac_shift=:
20828     ;;
20829   *)
20830     ac_option=$1
20831     ac_optarg=$2
20832     ac_shift=shift
20833     ;;
20834   esac
20835
20836   case $ac_option in
20837   # Handling of the options.
20838   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20839     ac_cs_recheck=: ;;
20840   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20841     echo "$ac_cs_version"; exit ;;
20842   --debug | --debu | --deb | --de | --d | -d )
20843     debug=: ;;
20844   --file | --fil | --fi | --f )
20845     $ac_shift
20846     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20847     ac_need_defaults=false;;
20848   --header | --heade | --head | --hea )
20849     $ac_shift
20850     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20851     ac_need_defaults=false;;
20852   --he | --h)
20853     # Conflict between --help and --header
20854     { echo "$as_me: error: ambiguous option: $1
20855 Try \`$0 --help' for more information." >&2
20856    { (exit 1); exit 1; }; };;
20857   --help | --hel | -h )
20858     echo "$ac_cs_usage"; exit ;;
20859   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20860   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20861     ac_cs_silent=: ;;
20862
20863   # This is an error.
20864   -*) { echo "$as_me: error: unrecognized option: $1
20865 Try \`$0 --help' for more information." >&2
20866    { (exit 1); exit 1; }; } ;;
20867
20868   *) ac_config_targets="$ac_config_targets $1"
20869      ac_need_defaults=false ;;
20870
20871   esac
20872   shift
20873 done
20874
20875 ac_configure_extra_args=
20876
20877 if $ac_cs_silent; then
20878   exec 6>/dev/null
20879   ac_configure_extra_args="$ac_configure_extra_args --silent"
20880 fi
20881
20882 _ACEOF
20883 cat >>$CONFIG_STATUS <<_ACEOF
20884 if \$ac_cs_recheck; then
20885   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20886   CONFIG_SHELL=$SHELL
20887   export CONFIG_SHELL
20888   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20889 fi
20890
20891 _ACEOF
20892 cat >>$CONFIG_STATUS <<\_ACEOF
20893 exec 5>>config.log
20894 {
20895   echo
20896   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20897 ## Running $as_me. ##
20898 _ASBOX
20899   echo "$ac_log"
20900 } >&5
20901
20902 _ACEOF
20903 cat >>$CONFIG_STATUS <<_ACEOF
20904 #
20905 # INIT-COMMANDS
20906 #
20907 llvm_src="${srcdir}"
20908
20909 _ACEOF
20910
20911 cat >>$CONFIG_STATUS <<\_ACEOF
20912
20913 # Handling of arguments.
20914 for ac_config_target in $ac_config_targets
20915 do
20916   case $ac_config_target in
20917     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20918     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20919     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20920     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20921     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20922     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20923     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20924     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20925     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20926     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20927     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20928     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20929     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20930     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20931     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20932     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20933     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20934     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20935     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20936     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20937     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20938     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20939     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20940     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20941     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20942
20943   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20944 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20945    { (exit 1); exit 1; }; };;
20946   esac
20947 done
20948
20949
20950 # If the user did not use the arguments to specify the items to instantiate,
20951 # then the envvar interface is used.  Set only those that are not.
20952 # We use the long form for the default assignment because of an extremely
20953 # bizarre bug on SunOS 4.1.3.
20954 if $ac_need_defaults; then
20955   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20956   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20957   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20958 fi
20959
20960 # Have a temporary directory for convenience.  Make it in the build tree
20961 # simply because there is no reason against having it here, and in addition,
20962 # creating and moving files from /tmp can sometimes cause problems.
20963 # Hook for its removal unless debugging.
20964 # Note that there is a small window in which the directory will not be cleaned:
20965 # after its creation but before its name has been assigned to `$tmp'.
20966 $debug ||
20967 {
20968   tmp=
20969   trap 'exit_status=$?
20970   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20971 ' 0
20972   trap '{ (exit 1); exit 1; }' 1 2 13 15
20973 }
20974 # Create a (secure) tmp directory for tmp files.
20975
20976 {
20977   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20978   test -n "$tmp" && test -d "$tmp"
20979 }  ||
20980 {
20981   tmp=./conf$$-$RANDOM
20982   (umask 077 && mkdir "$tmp")
20983 } ||
20984 {
20985    echo "$me: cannot create a temporary directory in ." >&2
20986    { (exit 1); exit 1; }
20987 }
20988
20989 #
20990 # Set up the sed scripts for CONFIG_FILES section.
20991 #
20992
20993 # No need to generate the scripts if there are no CONFIG_FILES.
20994 # This happens for instance when ./config.status config.h
20995 if test -n "$CONFIG_FILES"; then
20996
20997 _ACEOF
20998
20999
21000
21001 ac_delim='%!_!# '
21002 for ac_last_try in false false false false false :; do
21003   cat >conf$$subs.sed <<_ACEOF
21004 SHELL!$SHELL$ac_delim
21005 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21006 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21007 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21008 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21009 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21010 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21011 exec_prefix!$exec_prefix$ac_delim
21012 prefix!$prefix$ac_delim
21013 program_transform_name!$program_transform_name$ac_delim
21014 bindir!$bindir$ac_delim
21015 sbindir!$sbindir$ac_delim
21016 libexecdir!$libexecdir$ac_delim
21017 datarootdir!$datarootdir$ac_delim
21018 datadir!$datadir$ac_delim
21019 sysconfdir!$sysconfdir$ac_delim
21020 sharedstatedir!$sharedstatedir$ac_delim
21021 localstatedir!$localstatedir$ac_delim
21022 includedir!$includedir$ac_delim
21023 oldincludedir!$oldincludedir$ac_delim
21024 docdir!$docdir$ac_delim
21025 infodir!$infodir$ac_delim
21026 htmldir!$htmldir$ac_delim
21027 dvidir!$dvidir$ac_delim
21028 pdfdir!$pdfdir$ac_delim
21029 psdir!$psdir$ac_delim
21030 libdir!$libdir$ac_delim
21031 localedir!$localedir$ac_delim
21032 mandir!$mandir$ac_delim
21033 DEFS!$DEFS$ac_delim
21034 ECHO_C!$ECHO_C$ac_delim
21035 ECHO_N!$ECHO_N$ac_delim
21036 ECHO_T!$ECHO_T$ac_delim
21037 LIBS!$LIBS$ac_delim
21038 build_alias!$build_alias$ac_delim
21039 host_alias!$host_alias$ac_delim
21040 target_alias!$target_alias$ac_delim
21041 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21042 subdirs!$subdirs$ac_delim
21043 build!$build$ac_delim
21044 build_cpu!$build_cpu$ac_delim
21045 build_vendor!$build_vendor$ac_delim
21046 build_os!$build_os$ac_delim
21047 host!$host$ac_delim
21048 host_cpu!$host_cpu$ac_delim
21049 host_vendor!$host_vendor$ac_delim
21050 host_os!$host_os$ac_delim
21051 target!$target$ac_delim
21052 target_cpu!$target_cpu$ac_delim
21053 target_vendor!$target_vendor$ac_delim
21054 target_os!$target_os$ac_delim
21055 OS!$OS$ac_delim
21056 HOST_OS!$HOST_OS$ac_delim
21057 TARGET_OS!$TARGET_OS$ac_delim
21058 LINKALL!$LINKALL$ac_delim
21059 NOLINKALL!$NOLINKALL$ac_delim
21060 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21061 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21062 ARCH!$ARCH$ac_delim
21063 ENDIAN!$ENDIAN$ac_delim
21064 CC!$CC$ac_delim
21065 CFLAGS!$CFLAGS$ac_delim
21066 LDFLAGS!$LDFLAGS$ac_delim
21067 CPPFLAGS!$CPPFLAGS$ac_delim
21068 ac_ct_CC!$ac_ct_CC$ac_delim
21069 EXEEXT!$EXEEXT$ac_delim
21070 OBJEXT!$OBJEXT$ac_delim
21071 CPP!$CPP$ac_delim
21072 GREP!$GREP$ac_delim
21073 EGREP!$EGREP$ac_delim
21074 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21075 BUILD_CC!$BUILD_CC$ac_delim
21076 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21077 BUILD_CXX!$BUILD_CXX$ac_delim
21078 CVSBUILD!$CVSBUILD$ac_delim
21079 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21080 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21081 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21082 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21083 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21084 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21085 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21086 JIT!$JIT$ac_delim
21087 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21088 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21089 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21090 ENABLE_PIC!$ENABLE_PIC$ac_delim
21091 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21092 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21093 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21094 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21095 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21096 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21097 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21098 CLANGPATH!$CLANGPATH$ac_delim
21099 CLANGXXPATH!$CLANGXXPATH$ac_delim
21100 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21101 _ACEOF
21102
21103   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21104     break
21105   elif $ac_last_try; then
21106     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21107 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21108    { (exit 1); exit 1; }; }
21109   else
21110     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21111   fi
21112 done
21113
21114 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21115 if test -n "$ac_eof"; then
21116   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21117   ac_eof=`expr $ac_eof + 1`
21118 fi
21119
21120 cat >>$CONFIG_STATUS <<_ACEOF
21121 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21123 _ACEOF
21124 sed '
21125 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21126 s/^/s,@/; s/!/@,|#_!!_#|/
21127 :n
21128 t n
21129 s/'"$ac_delim"'$/,g/; t
21130 s/$/\\/; p
21131 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21132 ' >>$CONFIG_STATUS <conf$$subs.sed
21133 rm -f conf$$subs.sed
21134 cat >>$CONFIG_STATUS <<_ACEOF
21135 CEOF$ac_eof
21136 _ACEOF
21137
21138
21139 ac_delim='%!_!# '
21140 for ac_last_try in false false false false false :; do
21141   cat >conf$$subs.sed <<_ACEOF
21142 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21143 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21144 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21145 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
21146 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21147 CXX!$CXX$ac_delim
21148 CXXFLAGS!$CXXFLAGS$ac_delim
21149 ac_ct_CXX!$ac_ct_CXX$ac_delim
21150 NM!$NM$ac_delim
21151 ifGNUmake!$ifGNUmake$ac_delim
21152 LN_S!$LN_S$ac_delim
21153 CMP!$CMP$ac_delim
21154 CP!$CP$ac_delim
21155 DATE!$DATE$ac_delim
21156 FIND!$FIND$ac_delim
21157 MKDIR!$MKDIR$ac_delim
21158 MV!$MV$ac_delim
21159 RANLIB!$RANLIB$ac_delim
21160 AR!$AR$ac_delim
21161 RM!$RM$ac_delim
21162 SED!$SED$ac_delim
21163 TAR!$TAR$ac_delim
21164 BINPWD!$BINPWD$ac_delim
21165 GRAPHVIZ!$GRAPHVIZ$ac_delim
21166 DOT!$DOT$ac_delim
21167 FDP!$FDP$ac_delim
21168 NEATO!$NEATO$ac_delim
21169 TWOPI!$TWOPI$ac_delim
21170 CIRCO!$CIRCO$ac_delim
21171 GV!$GV$ac_delim
21172 DOTTY!$DOTTY$ac_delim
21173 PERL!$PERL$ac_delim
21174 HAVE_PERL!$HAVE_PERL$ac_delim
21175 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21176 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21177 INSTALL_DATA!$INSTALL_DATA$ac_delim
21178 BZIP2!$BZIP2$ac_delim
21179 DOXYGEN!$DOXYGEN$ac_delim
21180 GROFF!$GROFF$ac_delim
21181 GZIP!$GZIP$ac_delim
21182 POD2HTML!$POD2HTML$ac_delim
21183 POD2MAN!$POD2MAN$ac_delim
21184 RUNTEST!$RUNTEST$ac_delim
21185 TCLSH!$TCLSH$ac_delim
21186 ZIP!$ZIP$ac_delim
21187 OCAMLC!$OCAMLC$ac_delim
21188 OCAMLOPT!$OCAMLOPT$ac_delim
21189 OCAMLDEP!$OCAMLDEP$ac_delim
21190 OCAMLDOC!$OCAMLDOC$ac_delim
21191 GAS!$GAS$ac_delim
21192 HAVE_LINK_RETAIN_SYMBOLS_FILE!$HAVE_LINK_RETAIN_SYMBOLS_FILE$ac_delim
21193 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21194 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21195 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21196 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21197 LIBADD_DL!$LIBADD_DL$ac_delim
21198 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21199 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21200 LLVMGCC!$LLVMGCC$ac_delim
21201 LLVMGXX!$LLVMGXX$ac_delim
21202 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21203 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21204 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21205 USE_UDIS86!$USE_UDIS86$ac_delim
21206 USE_OPROFILE!$USE_OPROFILE$ac_delim
21207 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21208 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21209 MMAP_FILE!$MMAP_FILE$ac_delim
21210 LLVMCC1!$LLVMCC1$ac_delim
21211 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21212 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21213 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21214 SHLIBEXT!$SHLIBEXT$ac_delim
21215 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21216 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21217 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21218 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21219 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21220 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21221 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21222 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21223 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21224 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21225 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21226 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21227 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21228 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21229 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21230 RPATH!$RPATH$ac_delim
21231 RDYNAMIC!$RDYNAMIC$ac_delim
21232 LIBOBJS!$LIBOBJS$ac_delim
21233 LTLIBOBJS!$LTLIBOBJS$ac_delim
21234 _ACEOF
21235
21236   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
21237     break
21238   elif $ac_last_try; then
21239     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21240 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21241    { (exit 1); exit 1; }; }
21242   else
21243     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21244   fi
21245 done
21246
21247 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21248 if test -n "$ac_eof"; then
21249   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21250   ac_eof=`expr $ac_eof + 1`
21251 fi
21252
21253 cat >>$CONFIG_STATUS <<_ACEOF
21254 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21255 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21256 _ACEOF
21257 sed '
21258 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21259 s/^/s,@/; s/!/@,|#_!!_#|/
21260 :n
21261 t n
21262 s/'"$ac_delim"'$/,g/; t
21263 s/$/\\/; p
21264 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21265 ' >>$CONFIG_STATUS <conf$$subs.sed
21266 rm -f conf$$subs.sed
21267 cat >>$CONFIG_STATUS <<_ACEOF
21268 :end
21269 s/|#_!!_#|//g
21270 CEOF$ac_eof
21271 _ACEOF
21272
21273
21274 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21275 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21276 # trailing colons and then remove the whole line if VPATH becomes empty
21277 # (actually we leave an empty line to preserve line numbers).
21278 if test "x$srcdir" = x.; then
21279   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21280 s/:*\$(srcdir):*/:/
21281 s/:*\${srcdir}:*/:/
21282 s/:*@srcdir@:*/:/
21283 s/^\([^=]*=[     ]*\):*/\1/
21284 s/:*$//
21285 s/^[^=]*=[       ]*$//
21286 }'
21287 fi
21288
21289 cat >>$CONFIG_STATUS <<\_ACEOF
21290 fi # test -n "$CONFIG_FILES"
21291
21292
21293 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21294 do
21295   case $ac_tag in
21296   :[FHLC]) ac_mode=$ac_tag; continue;;
21297   esac
21298   case $ac_mode$ac_tag in
21299   :[FHL]*:*);;
21300   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21301 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21302    { (exit 1); exit 1; }; };;
21303   :[FH]-) ac_tag=-:-;;
21304   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21305   esac
21306   ac_save_IFS=$IFS
21307   IFS=:
21308   set x $ac_tag
21309   IFS=$ac_save_IFS
21310   shift
21311   ac_file=$1
21312   shift
21313
21314   case $ac_mode in
21315   :L) ac_source=$1;;
21316   :[FH])
21317     ac_file_inputs=
21318     for ac_f
21319     do
21320       case $ac_f in
21321       -) ac_f="$tmp/stdin";;
21322       *) # Look for the file first in the build tree, then in the source tree
21323          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21324          # because $ac_f cannot contain `:'.
21325          test -f "$ac_f" ||
21326            case $ac_f in
21327            [\\/$]*) false;;
21328            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21329            esac ||
21330            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21331 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21332    { (exit 1); exit 1; }; };;
21333       esac
21334       ac_file_inputs="$ac_file_inputs $ac_f"
21335     done
21336
21337     # Let's still pretend it is `configure' which instantiates (i.e., don't
21338     # use $as_me), people would be surprised to read:
21339     #    /* config.h.  Generated by config.status.  */
21340     configure_input="Generated from "`IFS=:
21341           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21342     if test x"$ac_file" != x-; then
21343       configure_input="$ac_file.  $configure_input"
21344       { echo "$as_me:$LINENO: creating $ac_file" >&5
21345 echo "$as_me: creating $ac_file" >&6;}
21346     fi
21347
21348     case $ac_tag in
21349     *:-:* | *:-) cat >"$tmp/stdin";;
21350     esac
21351     ;;
21352   esac
21353
21354   ac_dir=`$as_dirname -- "$ac_file" ||
21355 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21356          X"$ac_file" : 'X\(//\)[^/]' \| \
21357          X"$ac_file" : 'X\(//\)$' \| \
21358          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21359 echo X"$ac_file" |
21360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21361             s//\1/
21362             q
21363           }
21364           /^X\(\/\/\)[^/].*/{
21365             s//\1/
21366             q
21367           }
21368           /^X\(\/\/\)$/{
21369             s//\1/
21370             q
21371           }
21372           /^X\(\/\).*/{
21373             s//\1/
21374             q
21375           }
21376           s/.*/./; q'`
21377   { as_dir="$ac_dir"
21378   case $as_dir in #(
21379   -*) as_dir=./$as_dir;;
21380   esac
21381   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21382     as_dirs=
21383     while :; do
21384       case $as_dir in #(
21385       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21386       *) as_qdir=$as_dir;;
21387       esac
21388       as_dirs="'$as_qdir' $as_dirs"
21389       as_dir=`$as_dirname -- "$as_dir" ||
21390 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21391          X"$as_dir" : 'X\(//\)[^/]' \| \
21392          X"$as_dir" : 'X\(//\)$' \| \
21393          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21394 echo X"$as_dir" |
21395     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21396             s//\1/
21397             q
21398           }
21399           /^X\(\/\/\)[^/].*/{
21400             s//\1/
21401             q
21402           }
21403           /^X\(\/\/\)$/{
21404             s//\1/
21405             q
21406           }
21407           /^X\(\/\).*/{
21408             s//\1/
21409             q
21410           }
21411           s/.*/./; q'`
21412       test -d "$as_dir" && break
21413     done
21414     test -z "$as_dirs" || eval "mkdir $as_dirs"
21415   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21416 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21417    { (exit 1); exit 1; }; }; }
21418   ac_builddir=.
21419
21420 case "$ac_dir" in
21421 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21422 *)
21423   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21424   # A ".." for each directory in $ac_dir_suffix.
21425   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21426   case $ac_top_builddir_sub in
21427   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21428   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21429   esac ;;
21430 esac
21431 ac_abs_top_builddir=$ac_pwd
21432 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21433 # for backward compatibility:
21434 ac_top_builddir=$ac_top_build_prefix
21435
21436 case $srcdir in
21437   .)  # We are building in place.
21438     ac_srcdir=.
21439     ac_top_srcdir=$ac_top_builddir_sub
21440     ac_abs_top_srcdir=$ac_pwd ;;
21441   [\\/]* | ?:[\\/]* )  # Absolute name.
21442     ac_srcdir=$srcdir$ac_dir_suffix;
21443     ac_top_srcdir=$srcdir
21444     ac_abs_top_srcdir=$srcdir ;;
21445   *) # Relative name.
21446     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21447     ac_top_srcdir=$ac_top_build_prefix$srcdir
21448     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21449 esac
21450 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21451
21452
21453   case $ac_mode in
21454   :F)
21455   #
21456   # CONFIG_FILE
21457   #
21458
21459   case $INSTALL in
21460   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21461   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21462   esac
21463 _ACEOF
21464
21465 cat >>$CONFIG_STATUS <<\_ACEOF
21466 # If the template does not know about datarootdir, expand it.
21467 # FIXME: This hack should be removed a few years after 2.60.
21468 ac_datarootdir_hack=; ac_datarootdir_seen=
21469
21470 case `sed -n '/datarootdir/ {
21471   p
21472   q
21473 }
21474 /@datadir@/p
21475 /@docdir@/p
21476 /@infodir@/p
21477 /@localedir@/p
21478 /@mandir@/p
21479 ' $ac_file_inputs` in
21480 *datarootdir*) ac_datarootdir_seen=yes;;
21481 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21482   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21483 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21484 _ACEOF
21485 cat >>$CONFIG_STATUS <<_ACEOF
21486   ac_datarootdir_hack='
21487   s&@datadir@&$datadir&g
21488   s&@docdir@&$docdir&g
21489   s&@infodir@&$infodir&g
21490   s&@localedir@&$localedir&g
21491   s&@mandir@&$mandir&g
21492     s&\\\${datarootdir}&$datarootdir&g' ;;
21493 esac
21494 _ACEOF
21495
21496 # Neutralize VPATH when `$srcdir' = `.'.
21497 # Shell code in configure.ac might set extrasub.
21498 # FIXME: do we really want to maintain this feature?
21499 cat >>$CONFIG_STATUS <<_ACEOF
21500   sed "$ac_vpsub
21501 $extrasub
21502 _ACEOF
21503 cat >>$CONFIG_STATUS <<\_ACEOF
21504 :t
21505 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21506 s&@configure_input@&$configure_input&;t t
21507 s&@top_builddir@&$ac_top_builddir_sub&;t t
21508 s&@srcdir@&$ac_srcdir&;t t
21509 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21510 s&@top_srcdir@&$ac_top_srcdir&;t t
21511 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21512 s&@builddir@&$ac_builddir&;t t
21513 s&@abs_builddir@&$ac_abs_builddir&;t t
21514 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21515 s&@INSTALL@&$ac_INSTALL&;t t
21516 $ac_datarootdir_hack
21517 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21518
21519 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21520   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21521   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21522   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21523 which seems to be undefined.  Please make sure it is defined." >&5
21524 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21525 which seems to be undefined.  Please make sure it is defined." >&2;}
21526
21527   rm -f "$tmp/stdin"
21528   case $ac_file in
21529   -) cat "$tmp/out"; rm -f "$tmp/out";;
21530   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21531   esac
21532  ;;
21533   :H)
21534   #
21535   # CONFIG_HEADER
21536   #
21537 _ACEOF
21538
21539 # Transform confdefs.h into a sed script `conftest.defines', that
21540 # substitutes the proper values into config.h.in to produce config.h.
21541 rm -f conftest.defines conftest.tail
21542 # First, append a space to every undef/define line, to ease matching.
21543 echo 's/$/ /' >conftest.defines
21544 # Then, protect against being on the right side of a sed subst, or in
21545 # an unquoted here document, in config.status.  If some macros were
21546 # called several times there might be several #defines for the same
21547 # symbol, which is useless.  But do not sort them, since the last
21548 # AC_DEFINE must be honored.
21549 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21550 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21551 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21552 # PARAMS is the parameter list in the macro definition--in most cases, it's
21553 # just an empty string.
21554 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21555 ac_dB='\\)[      (].*,\\1define\\2'
21556 ac_dC=' '
21557 ac_dD=' ,'
21558
21559 uniq confdefs.h |
21560   sed -n '
21561         t rset
21562         :rset
21563         s/^[     ]*#[    ]*define[       ][      ]*//
21564         t ok
21565         d
21566         :ok
21567         s/[\\&,]/\\&/g
21568         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21569         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21570   ' >>conftest.defines
21571
21572 # Remove the space that was appended to ease matching.
21573 # Then replace #undef with comments.  This is necessary, for
21574 # example, in the case of _POSIX_SOURCE, which is predefined and required
21575 # on some systems where configure will not decide to define it.
21576 # (The regexp can be short, since the line contains either #define or #undef.)
21577 echo 's/ $//
21578 s,^[     #]*u.*,/* & */,' >>conftest.defines
21579
21580 # Break up conftest.defines:
21581 ac_max_sed_lines=50
21582
21583 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21584 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21585 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21586 # et cetera.
21587 ac_in='$ac_file_inputs'
21588 ac_out='"$tmp/out1"'
21589 ac_nxt='"$tmp/out2"'
21590
21591 while :
21592 do
21593   # Write a here document:
21594     cat >>$CONFIG_STATUS <<_ACEOF
21595     # First, check the format of the line:
21596     cat >"\$tmp/defines.sed" <<\\CEOF
21597 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21598 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21599 b
21600 :def
21601 _ACEOF
21602   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21603   echo 'CEOF
21604     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21605   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21606   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21607   grep . conftest.tail >/dev/null || break
21608   rm -f conftest.defines
21609   mv conftest.tail conftest.defines
21610 done
21611 rm -f conftest.defines conftest.tail
21612
21613 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21614 cat >>$CONFIG_STATUS <<\_ACEOF
21615   if test x"$ac_file" != x-; then
21616     echo "/* $configure_input  */" >"$tmp/config.h"
21617     cat "$ac_result" >>"$tmp/config.h"
21618     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21619       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21620 echo "$as_me: $ac_file is unchanged" >&6;}
21621     else
21622       rm -f $ac_file
21623       mv "$tmp/config.h" $ac_file
21624     fi
21625   else
21626     echo "/* $configure_input  */"
21627     cat "$ac_result"
21628   fi
21629   rm -f "$tmp/out12"
21630  ;;
21631
21632   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21633 echo "$as_me: executing $ac_file commands" >&6;}
21634  ;;
21635   esac
21636
21637
21638   case $ac_file$ac_mode in
21639     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21640    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21641     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21642    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21643     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21644    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21645     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21646    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21647     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21648    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21649     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21650    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21651     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21652    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21653     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21654    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21655     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21656    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21657     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21658    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21659     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21660    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21661     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21662    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21663     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21664    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21665
21666   esac
21667 done # for ac_tag
21668
21669
21670 { (exit 0); exit 0; }
21671 _ACEOF
21672 chmod +x $CONFIG_STATUS
21673 ac_clean_files=$ac_clean_files_save
21674
21675
21676 # configure is writing to config.log, and then calls config.status.
21677 # config.status does its own redirection, appending to config.log.
21678 # Unfortunately, on DOS this fails, as config.log is still kept open
21679 # by configure, so config.status won't be able to write to it; its
21680 # output is simply discarded.  So we exec the FD to /dev/null,
21681 # effectively closing config.log, so it can be properly (re)opened and
21682 # appended to by config.status.  When coming back to configure, we
21683 # need to make the FD available again.
21684 if test "$no_create" != yes; then
21685   ac_cs_success=:
21686   ac_config_status_args=
21687   test "$silent" = yes &&
21688     ac_config_status_args="$ac_config_status_args --quiet"
21689   exec 5>/dev/null
21690   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21691   exec 5>>config.log
21692   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21693   # would make configure fail if this is the last instruction.
21694   $ac_cs_success || { (exit 1); exit 1; }
21695 fi
21696
21697 #
21698 # CONFIG_SUBDIRS section.
21699 #
21700 if test "$no_recursion" != yes; then
21701
21702   # Remove --cache-file and --srcdir arguments so they do not pile up.
21703   ac_sub_configure_args=
21704   ac_prev=
21705   eval "set x $ac_configure_args"
21706   shift
21707   for ac_arg
21708   do
21709     if test -n "$ac_prev"; then
21710       ac_prev=
21711       continue
21712     fi
21713     case $ac_arg in
21714     -cache-file | --cache-file | --cache-fil | --cache-fi \
21715     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21716       ac_prev=cache_file ;;
21717     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21718     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21719     | --c=*)
21720       ;;
21721     --config-cache | -C)
21722       ;;
21723     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21724       ac_prev=srcdir ;;
21725     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21726       ;;
21727     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21728       ac_prev=prefix ;;
21729     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21730       ;;
21731     *)
21732       case $ac_arg in
21733       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21734       esac
21735       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21736     esac
21737   done
21738
21739   # Always prepend --prefix to ensure using the same prefix
21740   # in subdir configurations.
21741   ac_arg="--prefix=$prefix"
21742   case $ac_arg in
21743   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21744   esac
21745   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21746
21747   ac_popdir=`pwd`
21748   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21749
21750     # Do not complain, so a configure script can configure whichever
21751     # parts of a large source tree are present.
21752     test -d "$srcdir/$ac_dir" || continue
21753
21754     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21755     echo "$as_me:$LINENO: $ac_msg" >&5
21756     echo "$ac_msg" >&6
21757     { as_dir="$ac_dir"
21758   case $as_dir in #(
21759   -*) as_dir=./$as_dir;;
21760   esac
21761   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21762     as_dirs=
21763     while :; do
21764       case $as_dir in #(
21765       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21766       *) as_qdir=$as_dir;;
21767       esac
21768       as_dirs="'$as_qdir' $as_dirs"
21769       as_dir=`$as_dirname -- "$as_dir" ||
21770 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21771          X"$as_dir" : 'X\(//\)[^/]' \| \
21772          X"$as_dir" : 'X\(//\)$' \| \
21773          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21774 echo X"$as_dir" |
21775     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21776             s//\1/
21777             q
21778           }
21779           /^X\(\/\/\)[^/].*/{
21780             s//\1/
21781             q
21782           }
21783           /^X\(\/\/\)$/{
21784             s//\1/
21785             q
21786           }
21787           /^X\(\/\).*/{
21788             s//\1/
21789             q
21790           }
21791           s/.*/./; q'`
21792       test -d "$as_dir" && break
21793     done
21794     test -z "$as_dirs" || eval "mkdir $as_dirs"
21795   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21796 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21797    { (exit 1); exit 1; }; }; }
21798     ac_builddir=.
21799
21800 case "$ac_dir" in
21801 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21802 *)
21803   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21804   # A ".." for each directory in $ac_dir_suffix.
21805   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21806   case $ac_top_builddir_sub in
21807   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21808   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21809   esac ;;
21810 esac
21811 ac_abs_top_builddir=$ac_pwd
21812 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21813 # for backward compatibility:
21814 ac_top_builddir=$ac_top_build_prefix
21815
21816 case $srcdir in
21817   .)  # We are building in place.
21818     ac_srcdir=.
21819     ac_top_srcdir=$ac_top_builddir_sub
21820     ac_abs_top_srcdir=$ac_pwd ;;
21821   [\\/]* | ?:[\\/]* )  # Absolute name.
21822     ac_srcdir=$srcdir$ac_dir_suffix;
21823     ac_top_srcdir=$srcdir
21824     ac_abs_top_srcdir=$srcdir ;;
21825   *) # Relative name.
21826     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21827     ac_top_srcdir=$ac_top_build_prefix$srcdir
21828     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21829 esac
21830 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21831
21832
21833     cd "$ac_dir"
21834
21835     # Check for guested configure; otherwise get Cygnus style configure.
21836     if test -f "$ac_srcdir/configure.gnu"; then
21837       ac_sub_configure=$ac_srcdir/configure.gnu
21838     elif test -f "$ac_srcdir/configure"; then
21839       ac_sub_configure=$ac_srcdir/configure
21840     elif test -f "$ac_srcdir/configure.in"; then
21841       # This should be Cygnus configure.
21842       ac_sub_configure=$ac_aux_dir/configure
21843     else
21844       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21845 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21846       ac_sub_configure=
21847     fi
21848
21849     # The recursion is here.
21850     if test -n "$ac_sub_configure"; then
21851       # Make the cache file name correct relative to the subdirectory.
21852       case $cache_file in
21853       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21854       *) # Relative name.
21855         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21856       esac
21857
21858       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21859 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21860       # The eval makes quoting arguments work.
21861       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21862            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21863         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21864 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21865    { (exit 1); exit 1; }; }
21866     fi
21867
21868     cd "$ac_popdir"
21869   done
21870 fi
21871