2006-06-01 Paolo Bonzini <bonzini@gnu.org>
[official-gcc.git] / libjava / configure
blob96ba1bfacc5b0e5b8b1040ef6631189167be731c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59d for libjava version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 setopt NO_GLOB_SUBST
21 else
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
40 chmod +x conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42 PATH_SEPARATOR=';'
43 else
44 PATH_SEPARATOR=:
46 rm -f conf$$.sh
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51 as_unset=unset
52 else
53 as_unset=false
57 # IFS
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
64 IFS=" "" $as_nl"
66 # Find who we are. Look in the path if we contain no directory separator.
67 case $0 in
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
72 IFS=$as_save_IFS
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83 as_myself=$0
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87 { (exit 1); exit 1; }
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
98 # NLS nuisances.
99 for as_var in \
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102 LC_TELEPHONE LC_TIME
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
106 else
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
109 done
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
114 as_expr=expr
115 else
116 as_expr=false
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120 as_basename=basename
121 else
122 as_basename=false
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
133 s//\1/
136 /^X\/\(\/\/\)$/{
137 s//\1/
140 /^X\/\(\/\).*/{
141 s//\1/
144 s/.*/./; q'`
146 # CDPATH.
147 $as_unset CDPATH
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
152 as_have_required=yes
153 else
154 as_have_required=no
157 if test $as_have_required = yes && (eval ":
158 (as_func_return () {
159 (exit \$1)
161 as_func_success () {
162 as_func_return 0
164 as_func_failure () {
165 as_func_return 1
167 as_func_ret_success () {
168 return 0
170 as_func_ret_failure () {
171 return 1
174 exitcode=0
175 if as_func_success; then
177 else
178 exitcode=1
179 echo as_func_success failed.
182 if as_func_failure; then
183 exitcode=1
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
189 else
190 exitcode=1
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
195 exitcode=1
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
201 else
202 exitcode=1
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
209 as_lineno_1=\$LINENO
210 as_lineno_2=\$LINENO
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
215 else
216 as_candidate_shells=
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 case $as_dir in
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226 done;;
227 esac
228 done
229 IFS=$as_save_IFS
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells which exist, to save several forks.
234 if test -f $as_shell &&
235 { ($as_shell) 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238 emulate sh
239 NULLCMD=:
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
243 setopt NO_GLOB_SUBST
244 else
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
251 _ASEOF
252 }; then
253 CONFIG_SHELL=$as_shell
254 as_have_required=yes
255 if { $as_shell 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258 emulate sh
259 NULLCMD=:
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
263 setopt NO_GLOB_SUBST
264 else
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
271 (as_func_return () {
272 (exit $1)
274 as_func_success () {
275 as_func_return 0
277 as_func_failure () {
278 as_func_return 1
280 as_func_ret_success () {
281 return 0
283 as_func_ret_failure () {
284 return 1
287 exitcode=0
288 if as_func_success; then
290 else
291 exitcode=1
292 echo as_func_success failed.
295 if as_func_failure; then
296 exitcode=1
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
302 else
303 exitcode=1
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
308 exitcode=1
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
314 else
315 exitcode=1
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
322 as_lineno_1=$LINENO
323 as_lineno_2=$LINENO
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
327 _ASEOF
328 }; then
329 break
334 done
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339 done
340 export CONFIG_SHELL
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
361 (exit \$1)
363 as_func_success () {
364 as_func_return 0
366 as_func_failure () {
367 as_func_return 1
369 as_func_ret_success () {
370 return 0
372 as_func_ret_failure () {
373 return 1
376 exitcode=0
377 if as_func_success; then
379 else
380 exitcode=1
381 echo as_func_success failed.
384 if as_func_failure; then
385 exitcode=1
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
391 else
392 exitcode=1
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
397 exitcode=1
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
403 else
404 exitcode=1
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
412 echo message
417 as_lineno_1=$LINENO
418 as_lineno_2=$LINENO
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
428 # case at line end.
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
454 . "./$as_me.lineno"
455 # Exit status is that of the last command.
456 exit
460 if (dirname -- /) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469 case `echo 'x\c'` in
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
471 *) ECHO_C='\c';;
472 esac;;
474 ECHO_N='-n';;
475 esac
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
479 as_expr=expr
480 else
481 as_expr=false
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p=:
510 else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
524 else
525 as_executable_p=:
527 rm -f conf$$.file
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555 SHELL=${CONFIG_SHELL-/bin/sh}
557 # Identity of this package.
558 PACKAGE_NAME='libjava'
559 PACKAGE_TARNAME='libjava'
560 PACKAGE_VERSION='version-unused'
561 PACKAGE_STRING='libjava version-unused'
562 PACKAGE_BUGREPORT=''
564 ac_unique_file="java/lang/System.java"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #if HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #if HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #if STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # if HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #if HAVE_STRING_H
583 # if !STDC_HEADERS && HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #if HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #if HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #if HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #if HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='SHELL
602 PATH_SEPARATOR
603 PACKAGE_NAME
604 PACKAGE_TARNAME
605 PACKAGE_VERSION
606 PACKAGE_STRING
607 PACKAGE_BUGREPORT
608 exec_prefix
609 prefix
610 program_transform_name
611 bindir
612 sbindir
613 libexecdir
614 datarootdir
615 datadir
616 sysconfdir
617 sharedstatedir
618 localstatedir
619 includedir
620 oldincludedir
621 docdir
622 infodir
623 htmldir
624 dvidir
625 pdfdir
626 psdir
627 libdir
628 localedir
629 mandir
630 DEFS
631 ECHO_C
632 ECHO_N
633 ECHO_T
634 LIBS
635 build_alias
636 host_alias
637 target_alias
638 build
639 build_cpu
640 build_vendor
641 build_os
642 build_subdir
643 host_subdir
644 target_subdir
645 libgcj_basedir
646 host
647 host_cpu
648 host_vendor
649 host_os
650 target
651 target_cpu
652 target_vendor
653 target_os
654 target_noncanonical
655 LN_S
656 mkinstalldirs
658 CFLAGS
659 LDFLAGS
660 CPPFLAGS
661 ac_ct_CC
662 EXEEXT
663 OBJEXT
665 CXXFLAGS
666 ac_ct_CXX
667 INSTALL_PROGRAM
668 INSTALL_SCRIPT
669 INSTALL_DATA
670 CYGPATH_W
671 PACKAGE
672 VERSION
673 ACLOCAL
674 AUTOCONF
675 AUTOMAKE
676 AUTOHEADER
677 MAKEINFO
678 install_sh
679 STRIP
680 INSTALL_STRIP_PROGRAM
681 mkdir_p
683 SET_MAKE
684 am__leading_dot
685 AMTAR
686 am__tar
687 am__untar
688 DEPDIR
689 am__include
690 am__quote
691 AMDEP_TRUE
692 AMDEP_FALSE
693 AMDEPBACKSLASH
694 CCDEPMODE
695 am__fastdepCC_TRUE
696 am__fastdepCC_FALSE
697 CXXDEPMODE
698 am__fastdepCXX_TRUE
699 am__fastdepCXX_FALSE
703 RANLIB
706 UNZIP
707 BASH_JAR_TRUE
708 BASH_JAR_FALSE
709 MAINTAINER_MODE_TRUE
710 MAINTAINER_MODE_FALSE
711 MAINT
712 LIBGCJ_CFLAGS
713 LIBGCJ_CXXFLAGS
714 LIBGCJ_JAVAFLAGS
715 LIBGCJ_LD_SYMBOLIC
716 LIBGCJDEBUG
717 TOOLKIT
718 XLIB_AWT_TRUE
719 XLIB_AWT_FALSE
720 QT_AWT_TRUE
721 QT_AWT_FALSE
722 GCJH
723 INCLTDL
724 LIBLTDL
725 DIRLTDL
726 LIBTOOL
727 CXXCPP
729 GCJFLAGS
730 GCJDEPMODE
731 am__fastdepGCJ_TRUE
732 am__fastdepGCJ_FALSE
733 subdirs
734 TESTSUBDIR_TRUE
735 TESTSUBDIR_FALSE
736 JAVA_HOME_SET_TRUE
737 JAVA_HOME_SET_FALSE
738 JAVA_HOME
739 INTERPRETER
740 LIBFFI
741 LIBFFIINCS
742 PLATFORM_INNER_NAT_HDRS
744 GREP
745 EGREP
746 USING_WIN32_PLATFORM_TRUE
747 USING_WIN32_PLATFORM_FALSE
748 USING_POSIX_PLATFORM_TRUE
749 USING_POSIX_PLATFORM_FALSE
750 USING_DARWIN_CRT_TRUE
751 USING_DARWIN_CRT_FALSE
752 SYSTEMSPEC
753 LIBGCJTESTSPEC
754 ZLIBSPEC
755 ZLIBTESTSPEC
756 XMKMF
757 X_CFLAGS
758 X_PRE_LIBS
759 X_LIBS
760 X_EXTRA_LIBS
761 GTK_CAIRO_TRUE
762 GTK_CAIRO_FALSE
763 PKG_CONFIG
764 CAIRO_CFLAGS
765 CAIRO_LIBS
766 PANGOFT2_CFLAGS
767 PANGOFT2_LIBS
768 extra_ldflags_libjava
769 GCLIBS
770 GCINCS
771 GCDEPS
772 GCSPEC
773 JC1GCSPEC
774 GCTESTSPEC
775 USING_BOEHMGC_TRUE
776 USING_BOEHMGC_FALSE
777 USING_NOGC_TRUE
778 USING_NOGC_FALSE
779 THREADLIBS
780 THREADINCS
781 THREADDEPS
782 THREADSPEC
783 THREADLDFLAGS
784 THREADCXXFLAGS
785 USING_POSIX_THREADS_TRUE
786 USING_POSIX_THREADS_FALSE
787 USING_WIN32_THREADS_TRUE
788 USING_WIN32_THREADS_FALSE
789 USING_NO_THREADS_TRUE
790 USING_NO_THREADS_FALSE
791 HASH_SYNC_SPEC
792 USING_GCC_TRUE
793 USING_GCC_FALSE
794 LIBICONV
795 LTLIBICONV
796 GTK_CFLAGS
797 GTK_LIBS
798 GLIB_CFLAGS
799 GLIB_LIBS
800 LIBART_CFLAGS
801 LIBART_LIBS
802 CLASSPATH_SEPARATOR
803 ZLIBS
804 SYS_ZLIBS
805 ZINCS
806 DIVIDESPEC
807 CHECKREFSPEC
808 EXCEPTIONSPEC
809 BACKTRACESPEC
810 IEEESPEC
811 NATIVE_TRUE
812 NATIVE_FALSE
813 NEEDS_DATA_START_TRUE
814 NEEDS_DATA_START_FALSE
815 GCC_UNWIND_INCLUDE
816 toolexecdir
817 toolexecmainlibdir
818 toolexeclibdir
819 dbexecdir
820 GCJVERSION
821 gxx_include_dir
822 libstdcxx_incdir
823 ALLOCA
824 PERL
825 SYSDEP_SOURCES
826 LD_START_STATIC_SPEC
827 LD_FINISH_STATIC_SPEC
828 here
829 LIBOBJS
830 LTLIBOBJS'
831 ac_subst_files=''
832 ac_precious_vars='build_alias
833 host_alias
834 target_alias
835 CXXCPP
836 CPPFLAGS
838 XMKMF'
839 ac_subdirs_all='classpath libltdl'
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
846 cache_file=/dev/null
847 exec_prefix=NONE
848 no_create=
849 no_recursion=
850 prefix=NONE
851 program_prefix=NONE
852 program_suffix=NONE
853 program_transform_name=s,x,x,
854 silent=
855 site=
856 srcdir=
857 verbose=
858 x_includes=NONE
859 x_libraries=NONE
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878 infodir='${datarootdir}/info'
879 htmldir='${docdir}'
880 dvidir='${docdir}'
881 pdfdir='${docdir}'
882 psdir='${docdir}'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
887 ac_prev=
888 ac_dashdash=
889 for ac_option
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\$ac_option
894 ac_prev=
895 continue
898 case $ac_option in
899 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 *) ac_optarg=yes ;;
901 esac
903 # Accept the important Cygnus configure options, so we can diagnose typos.
905 case $ac_dashdash$ac_option in
907 ac_dashdash=yes ;;
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 bindir=$ac_optarg ;;
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
926 --config-cache | -C)
927 cache_file=config.cache ;;
929 -datadir | --datadir | --datadi | --datad)
930 ac_prev=datadir ;;
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
941 -disable-* | --disable-*)
942 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946 { (exit 1); exit 1; }; }
947 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948 eval enable_$ac_feature=no ;;
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
960 -enable-* | --enable-*)
961 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
964 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
965 { (exit 1); exit 1; }; }
966 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
967 eval enable_$ac_feature=\$ac_optarg ;;
969 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
970 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
971 | --exec | --exe | --ex)
972 ac_prev=exec_prefix ;;
973 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
974 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
975 | --exec=* | --exe=* | --ex=*)
976 exec_prefix=$ac_optarg ;;
978 -gas | --gas | --ga | --g)
979 # Obsolete; use --with-gas.
980 with_gas=yes ;;
982 -help | --help | --hel | --he | -h)
983 ac_init_help=long ;;
984 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
985 ac_init_help=recursive ;;
986 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
987 ac_init_help=short ;;
989 -host | --host | --hos | --ho)
990 ac_prev=host_alias ;;
991 -host=* | --host=* | --hos=* | --ho=*)
992 host_alias=$ac_optarg ;;
994 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
995 ac_prev=htmldir ;;
996 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
997 | --ht=*)
998 htmldir=$ac_optarg ;;
1000 -includedir | --includedir | --includedi | --included | --include \
1001 | --includ | --inclu | --incl | --inc)
1002 ac_prev=includedir ;;
1003 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1004 | --includ=* | --inclu=* | --incl=* | --inc=*)
1005 includedir=$ac_optarg ;;
1007 -infodir | --infodir | --infodi | --infod | --info | --inf)
1008 ac_prev=infodir ;;
1009 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1010 infodir=$ac_optarg ;;
1012 -libdir | --libdir | --libdi | --libd)
1013 ac_prev=libdir ;;
1014 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1015 libdir=$ac_optarg ;;
1017 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1018 | --libexe | --libex | --libe)
1019 ac_prev=libexecdir ;;
1020 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1021 | --libexe=* | --libex=* | --libe=*)
1022 libexecdir=$ac_optarg ;;
1024 -localedir | --localedir | --localedi | --localed | --locale)
1025 ac_prev=localedir ;;
1026 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1027 localedir=$ac_optarg ;;
1029 -localstatedir | --localstatedir | --localstatedi | --localstated \
1030 | --localstate | --localstat | --localsta | --localst | --locals)
1031 ac_prev=localstatedir ;;
1032 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1033 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1034 localstatedir=$ac_optarg ;;
1036 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1037 ac_prev=mandir ;;
1038 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1039 mandir=$ac_optarg ;;
1041 -nfp | --nfp | --nf)
1042 # Obsolete; use --without-fp.
1043 with_fp=no ;;
1045 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1046 | --no-cr | --no-c | -n)
1047 no_create=yes ;;
1049 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051 no_recursion=yes ;;
1053 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1054 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1055 | --oldin | --oldi | --old | --ol | --o)
1056 ac_prev=oldincludedir ;;
1057 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1058 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1059 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1060 oldincludedir=$ac_optarg ;;
1062 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1063 ac_prev=prefix ;;
1064 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1065 prefix=$ac_optarg ;;
1067 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1068 | --program-pre | --program-pr | --program-p)
1069 ac_prev=program_prefix ;;
1070 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1071 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1072 program_prefix=$ac_optarg ;;
1074 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1075 | --program-suf | --program-su | --program-s)
1076 ac_prev=program_suffix ;;
1077 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1078 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1079 program_suffix=$ac_optarg ;;
1081 -program-transform-name | --program-transform-name \
1082 | --program-transform-nam | --program-transform-na \
1083 | --program-transform-n | --program-transform- \
1084 | --program-transform | --program-transfor \
1085 | --program-transfo | --program-transf \
1086 | --program-trans | --program-tran \
1087 | --progr-tra | --program-tr | --program-t)
1088 ac_prev=program_transform_name ;;
1089 -program-transform-name=* | --program-transform-name=* \
1090 | --program-transform-nam=* | --program-transform-na=* \
1091 | --program-transform-n=* | --program-transform-=* \
1092 | --program-transform=* | --program-transfor=* \
1093 | --program-transfo=* | --program-transf=* \
1094 | --program-trans=* | --program-tran=* \
1095 | --progr-tra=* | --program-tr=* | --program-t=*)
1096 program_transform_name=$ac_optarg ;;
1098 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1099 ac_prev=pdfdir ;;
1100 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1101 pdfdir=$ac_optarg ;;
1103 -psdir | --psdir | --psdi | --psd | --ps)
1104 ac_prev=psdir ;;
1105 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1106 psdir=$ac_optarg ;;
1108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1109 | -silent | --silent | --silen | --sile | --sil)
1110 silent=yes ;;
1112 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1113 ac_prev=sbindir ;;
1114 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1115 | --sbi=* | --sb=*)
1116 sbindir=$ac_optarg ;;
1118 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1119 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1120 | --sharedst | --shareds | --shared | --share | --shar \
1121 | --sha | --sh)
1122 ac_prev=sharedstatedir ;;
1123 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1124 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1125 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1126 | --sha=* | --sh=*)
1127 sharedstatedir=$ac_optarg ;;
1129 -site | --site | --sit)
1130 ac_prev=site ;;
1131 -site=* | --site=* | --sit=*)
1132 site=$ac_optarg ;;
1134 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1135 ac_prev=srcdir ;;
1136 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1137 srcdir=$ac_optarg ;;
1139 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1140 | --syscon | --sysco | --sysc | --sys | --sy)
1141 ac_prev=sysconfdir ;;
1142 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1143 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1144 sysconfdir=$ac_optarg ;;
1146 -target | --target | --targe | --targ | --tar | --ta | --t)
1147 ac_prev=target_alias ;;
1148 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1149 target_alias=$ac_optarg ;;
1151 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1152 verbose=yes ;;
1154 -version | --version | --versio | --versi | --vers | -V)
1155 ac_init_version=: ;;
1157 -with-* | --with-*)
1158 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package| sed 's/-/_/g'`
1164 eval with_$ac_package=\$ac_optarg ;;
1166 -without-* | --without-*)
1167 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1170 { echo "$as_me: error: invalid package name: $ac_package" >&2
1171 { (exit 1); exit 1; }; }
1172 ac_package=`echo $ac_package | sed 's/-/_/g'`
1173 eval with_$ac_package=no ;;
1175 --x)
1176 # Obsolete; use --with-x.
1177 with_x=yes ;;
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev=x_includes ;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184 x_includes=$ac_optarg ;;
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev=x_libraries ;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191 x_libraries=$ac_optarg ;;
1193 -*) { echo "$as_me: error: unrecognized option: $ac_option
1194 Try \`$0 --help' for more information." >&2
1195 { (exit 1); exit 1; }; }
1198 *=*)
1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1202 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1203 { (exit 1); exit 1; }; }
1204 eval $ac_envvar=\$ac_optarg
1205 export $ac_envvar ;;
1208 # FIXME: should be removed in autoconf 3.0.
1209 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1215 esac
1216 done
1218 if test -n "$ac_prev"; then
1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220 { echo "$as_me: error: missing argument to $ac_option" >&2
1221 { (exit 1); exit 1; }; }
1224 # Be sure to have absolute directory names.
1225 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226 datadir sysconfdir sharedstatedir localstatedir includedir \
1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228 libdir localedir mandir
1230 eval ac_val=\$$ac_var
1231 case $ac_val in
1232 [\\/$]* | ?:[\\/]* ) continue;;
1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234 esac
1235 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1236 { (exit 1); exit 1; }; }
1237 done
1239 # There might be people who depend on the old broken behavior: `$host'
1240 # used to hold the argument of --host etc.
1241 # FIXME: To remove some day.
1242 build=$build_alias
1243 host=$host_alias
1244 target=$target_alias
1246 # FIXME: To remove some day.
1247 if test "x$host_alias" != x; then
1248 if test "x$build_alias" = x; then
1249 cross_compiling=maybe
1250 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1251 If a cross compiler is detected then cross compile mode will be used." >&2
1252 elif test "x$build_alias" != "x$host_alias"; then
1253 cross_compiling=yes
1257 ac_tool_prefix=
1258 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260 test "$silent" = yes && exec 6>/dev/null
1263 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264 ac_ls_di=`ls -di .` &&
1265 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266 { echo "$as_me: error: Working directory cannot be determined" >&2
1267 { (exit 1); exit 1; }; }
1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269 { echo "$as_me: error: pwd does not report name of working directory" >&2
1270 { (exit 1); exit 1; }; }
1273 # Find the source files, if location was not specified.
1274 if test -z "$srcdir"; then
1275 ac_srcdir_defaulted=yes
1276 # Try the directory containing this script, then the parent directory.
1277 ac_confdir=`$as_dirname -- "$0" ||
1278 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279 X"$0" : 'X\(//\)[^/]' \| \
1280 X"$0" : 'X\(//\)$' \| \
1281 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1282 echo X"$0" |
1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284 s//\1/
1287 /^X\(\/\/\)[^/].*/{
1288 s//\1/
1291 /^X\(\/\/\)$/{
1292 s//\1/
1295 /^X\(\/\).*/{
1296 s//\1/
1299 s/.*/./; q'`
1300 srcdir=$ac_confdir
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 srcdir=..
1304 else
1305 ac_srcdir_defaulted=no
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1309 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1310 { (exit 1); exit 1; }; }
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1315 { (exit 1); exit 1; }; }
1316 pwd)`
1317 # When building in place, set srcdir=.
1318 if test "$ac_abs_confdir" = "$ac_pwd"; then
1319 srcdir=.
1321 # Remove unnecessary trailing slashes from srcdir.
1322 # Double slashes in file names in object file debugging info
1323 # mess up M-x gdb in Emacs.
1324 case $srcdir in
1325 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326 esac
1327 for ac_var in $ac_precious_vars; do
1328 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_env_${ac_var}_value=\$${ac_var}
1330 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332 done
1335 # Report the --help message.
1337 if test "$ac_init_help" = "long"; then
1338 # Omit some internal or obsolete options to make the list less imposing.
1339 # This message is too long to be a string in the A/UX 3.1 sh.
1340 cat <<_ACEOF
1341 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1343 Usage: $0 [OPTION]... [VAR=VALUE]...
1345 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346 VAR=VALUE. See below for descriptions of some of the useful variables.
1348 Defaults for the options are specified in brackets.
1350 Configuration:
1351 -h, --help display this help and exit
1352 --help=short display options specific to this package
1353 --help=recursive display the short help of all the included packages
1354 -V, --version display version information and exit
1355 -q, --quiet, --silent do not print \`checking...' messages
1356 --cache-file=FILE cache test results in FILE [disabled]
1357 -C, --config-cache alias for \`--cache-file=config.cache'
1358 -n, --no-create do not create output files
1359 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1361 Installation directories:
1362 --prefix=PREFIX install architecture-independent files in PREFIX
1363 [$ac_default_prefix]
1364 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1365 [PREFIX]
1367 By default, \`make install' will install all the files in
1368 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1369 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370 for instance \`--prefix=\$HOME'.
1372 For better control, use the options below.
1374 Fine tuning of the installation directories:
1375 --bindir=DIR user executables [EPREFIX/bin]
1376 --sbindir=DIR system admin executables [EPREFIX/sbin]
1377 --libexecdir=DIR program executables [EPREFIX/libexec]
1378 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1379 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1380 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1394 _ACEOF
1396 cat <<\_ACEOF
1398 Program names:
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1403 X features:
1404 --x-includes=DIR X include files are in DIR
1405 --x-libraries=DIR X library files are in DIR
1407 System types:
1408 --build=BUILD configure for building on BUILD [guessed]
1409 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1410 --target=TARGET configure for building compilers for TARGET [HOST]
1411 _ACEOF
1414 if test -n "$ac_init_help"; then
1415 case $ac_init_help in
1416 short | recursive ) echo "Configuration of libjava version-unused:";;
1417 esac
1418 cat <<\_ACEOF
1420 Optional Features:
1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1423 --enable-version-specific-runtime-libs
1424 specify that runtime libraries should be installed
1425 in a compiler-specific directory
1426 --enable-multilib build many library versions (default)
1427 --disable-dependency-tracking speeds up one-time build
1428 --enable-dependency-tracking do not reject slow dependency extractors
1429 --enable-maintainer-mode enable make rules and dependencies not useful
1430 (and sometimes confusing) to the casual installer
1431 --enable-libgcj-debug enable runtime debugging code
1432 --enable-java-awt list of AWT peer implementations to be built
1433 --enable-shared=PKGS build shared libraries default=yes
1434 --enable-static=PKGS build static libraries default=yes
1435 --enable-fast-install=PKGS optimize for fast installation default=yes
1436 --disable-libtool-lock avoid locking (might break parallel builds)
1437 --disable-getenv-properties
1438 don't set system properties from GCJ_PROPERTIES
1439 --enable-hash-synchronization
1440 use global hash table for monitor locks
1441 --enable-gc-debug include full support for pointer backtracing etc.
1442 --enable-interpreter enable interpreter
1443 --enable-sjlj-exceptions
1444 force use of builtin_setjmp for exceptions
1445 --disable-java-net disable java.net
1446 --disable-jvmpi disable JVMPI support
1447 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
1448 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1449 --disable-rpath do not hardcode runtime library paths
1450 _g_switchUse thread-local storage
1451 [default=yes]
1453 Optional Packages:
1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1456 --with-target-subdir=SUBDIR
1457 configure in a subdirectory
1458 --with-cross-host=HOST configure with a cross compiler from HOST
1459 --with-newlib configure with newlib
1460 --with-gnu-ld assume the C compiler uses GNU ld default=no
1461 --with-pic try to use only PIC/non-PIC objects default=use both
1462 --with-java-home=DIRECTORY
1463 value of java.home system property
1464 --with-win32-nlsapi=ansi or unicows or unicode
1465 native MinGW libgcj Win32 OS API (default is ansi)
1466 --without-libffi don't use libffi
1467 --with-ecos enable runtime eCos target support
1468 --with-system-zlib use installed libz
1469 --with-x use the X Window System
1470 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1471 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1473 Some influential environment variables:
1474 CC C compiler command
1475 CFLAGS C compiler flags
1476 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1477 nonstandard directory <lib dir>
1478 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1479 you have headers in a nonstandard directory <include dir>
1480 CXX C++ compiler command
1481 CXXFLAGS C++ compiler flags
1482 CXXCPP C++ preprocessor
1483 CPP C preprocessor
1484 XMKMF Path to xmkmf, Makefile generator for X Window System
1486 Use these variables to override the choices made by `configure' or to help
1487 it to find libraries and programs with nonstandard names/locations.
1489 _ACEOF
1490 ac_status=$?
1493 if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496 test -d $ac_dir || continue
1497 ac_builddir=.
1499 case "$ac_dir" in
1500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508 esac ;;
1509 esac
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1515 case $srcdir in
1516 .) # We are building in place.
1517 ac_srcdir=.
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
1521 ac_srcdir=$srcdir$ac_dir_suffix;
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1524 *) # Relative name.
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 esac
1529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f $ac_srcdir/configure.gnu; then
1534 echo &&
1535 $SHELL $ac_srcdir/configure.gnu --help=recursive
1536 elif test -f $ac_srcdir/configure; then
1537 echo &&
1538 $SHELL $ac_srcdir/configure --help=recursive
1539 else
1540 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 fi || ac_status=$?
1542 cd "$ac_pwd" || { ac_status=$?; break; }
1543 done
1546 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then
1548 cat <<\_ACEOF
1549 libjava configure version-unused
1550 generated by GNU Autoconf 2.59d
1552 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1553 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1556 _ACEOF
1557 exit
1559 cat >config.log <<_ACEOF
1560 This file contains any messages produced by compilers while
1561 running configure, to aid debugging if configure makes a mistake.
1563 It was created by libjava $as_me version-unused, which was
1564 generated by GNU Autoconf 2.59d. Invocation command line was
1566 $ $0 $@
1568 _ACEOF
1569 exec 5>>config.log
1571 cat <<_ASUNAME
1572 ## --------- ##
1573 ## Platform. ##
1574 ## --------- ##
1576 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1577 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1578 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1579 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1580 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1582 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1583 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1585 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1586 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1587 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1588 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1589 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1590 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1591 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1593 _ASUNAME
1595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596 for as_dir in $PATH
1598 IFS=$as_save_IFS
1599 test -z "$as_dir" && as_dir=.
1600 echo "PATH: $as_dir"
1601 done
1602 IFS=$as_save_IFS
1604 } >&5
1606 cat >&5 <<_ACEOF
1609 ## ----------- ##
1610 ## Core tests. ##
1611 ## ----------- ##
1613 _ACEOF
1616 # Keep a trace of the command line.
1617 # Strip out --no-create and --no-recursion so they do not pile up.
1618 # Strip out --silent because we don't want to record it for future runs.
1619 # Also quote any args containing shell meta-characters.
1620 # Make two passes to allow for proper duplicate-argument suppression.
1621 ac_configure_args=
1622 ac_configure_args0=
1623 ac_configure_args1=
1624 ac_sep=
1625 ac_must_keep_next=false
1626 for ac_pass in 1 2
1628 for ac_arg
1630 case $ac_arg in
1631 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1632 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1633 | -silent | --silent | --silen | --sile | --sil)
1634 continue ;;
1635 *\'*)
1636 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1637 esac
1638 case $ac_pass in
1639 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1641 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1642 if test $ac_must_keep_next = true; then
1643 ac_must_keep_next=false # Got value, back to normal.
1644 else
1645 case $ac_arg in
1646 *=* | --config-cache | -C | -disable-* | --disable-* \
1647 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1648 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1649 | -with-* | --with-* | -without-* | --without-* | --x)
1650 case "$ac_configure_args0 " in
1651 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1652 esac
1654 -* ) ac_must_keep_next=true ;;
1655 esac
1657 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1658 # Get rid of the leading space.
1659 ac_sep=" "
1661 esac
1662 done
1663 done
1664 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1665 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1667 # When interrupted or exit'd, cleanup temporary files, and complete
1668 # config.log. We remove comments because anyway the quotes in there
1669 # would cause problems or look ugly.
1670 # WARNING: Use '\'' to represent an apostrophe within the trap.
1671 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1672 trap 'exit_status=$?
1673 # Save into config.log some information that might help in debugging.
1675 echo
1677 cat <<\_ASBOX
1678 ## ---------------- ##
1679 ## Cache variables. ##
1680 ## ---------------- ##
1681 _ASBOX
1682 echo
1683 # The following way of writing the cache mishandles newlines in values,
1685 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1686 eval ac_val=\$$ac_var
1687 case $ac_val in #(
1688 *${as_nl}*)
1689 case $ac_var in #(
1690 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1691 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1692 esac
1693 case $ac_var in #(
1694 _ | IFS | as_nl) ;; #(
1695 *) $as_unset $ac_var ;;
1696 esac ;;
1697 esac
1698 done
1699 (set) 2>&1 |
1700 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1701 *${as_nl}ac_space=\ *)
1702 sed -n \
1703 "s/'\''/'\''\\\\'\'''\''/g;
1704 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1705 ;; #(
1707 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1709 esac |
1710 sort
1712 echo
1714 cat <<\_ASBOX
1715 ## ----------------- ##
1716 ## Output variables. ##
1717 ## ----------------- ##
1718 _ASBOX
1719 echo
1720 for ac_var in $ac_subst_vars
1722 eval ac_val=\$$ac_var
1723 echo "$ac_var='\''$ac_val'\''"
1724 done | sort
1725 echo
1727 if test -n "$ac_subst_files"; then
1728 cat <<\_ASBOX
1729 ## ------------------- ##
1730 ## File substitutions. ##
1731 ## ------------------- ##
1732 _ASBOX
1733 echo
1734 for ac_var in $ac_subst_files
1736 eval ac_val=\$$ac_var
1737 echo "$ac_var='\''$ac_val'\''"
1738 done | sort
1739 echo
1742 if test -s confdefs.h; then
1743 cat <<\_ASBOX
1744 ## ----------- ##
1745 ## confdefs.h. ##
1746 ## ----------- ##
1747 _ASBOX
1748 echo
1749 cat confdefs.h
1750 echo
1752 test "$ac_signal" != 0 &&
1753 echo "$as_me: caught signal $ac_signal"
1754 echo "$as_me: exit $exit_status"
1755 } >&5
1756 rm -f core *.core core.conftest.* &&
1757 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1758 exit $exit_status
1760 for ac_signal in 1 2 13 15; do
1761 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1762 done
1763 ac_signal=0
1765 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1766 rm -f -r conftest* confdefs.h
1768 # Predefined preprocessor variables.
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_NAME "$PACKAGE_NAME"
1772 _ACEOF
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1777 _ACEOF
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1782 _ACEOF
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_STRING "$PACKAGE_STRING"
1787 _ACEOF
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1792 _ACEOF
1795 # Let the site file select an alternate cache file if it wants to.
1796 # Prefer explicitly selected file to automatically selected ones.
1797 if test -n "$CONFIG_SITE"; then
1798 set x "$CONFIG_SITE"
1799 elif test "x$prefix" != xNONE; then
1800 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1801 else
1802 set x "$ac_default_prefix/share/config.site" \
1803 "$ac_default_prefix/etc/config.site"
1805 shift
1806 for ac_site_file
1808 if test -r "$ac_site_file"; then
1809 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1810 echo "$as_me: loading site script $ac_site_file" >&6;}
1811 sed 's/^/| /' "$ac_site_file" >&5
1812 . "$ac_site_file"
1814 done
1816 if test -r "$cache_file"; then
1817 # Some versions of bash will fail to source /dev/null (special
1818 # files actually), so we avoid doing that.
1819 if test -f "$cache_file"; then
1820 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1821 echo "$as_me: loading cache $cache_file" >&6;}
1822 case $cache_file in
1823 [\\/]* | ?:[\\/]* ) . $cache_file;;
1824 *) . ./$cache_file;;
1825 esac
1827 else
1828 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1829 echo "$as_me: creating cache $cache_file" >&6;}
1830 >$cache_file
1833 # Check that the precious variables saved in the cache have kept the same
1834 # value.
1835 ac_cache_corrupted=false
1836 for ac_var in $ac_precious_vars; do
1837 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1838 eval ac_new_set=\$ac_env_${ac_var}_set
1839 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1840 eval ac_new_val=\$ac_env_${ac_var}_value
1841 case $ac_old_set,$ac_new_set in
1842 set,)
1843 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1844 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1845 ac_cache_corrupted=: ;;
1846 ,set)
1847 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1848 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1849 ac_cache_corrupted=: ;;
1850 ,);;
1852 if test "x$ac_old_val" != "x$ac_new_val"; then
1853 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1854 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1855 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1856 echo "$as_me: former value: $ac_old_val" >&2;}
1857 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1858 echo "$as_me: current value: $ac_new_val" >&2;}
1859 ac_cache_corrupted=:
1860 fi;;
1861 esac
1862 # Pass precious variables to config.status.
1863 if test "$ac_new_set" = set; then
1864 case $ac_new_val in
1865 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1866 *) ac_arg=$ac_var=$ac_new_val ;;
1867 esac
1868 case " $ac_configure_args " in
1869 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1870 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1871 esac
1873 done
1874 if $ac_cache_corrupted; then
1875 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1876 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1877 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1878 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1879 { (exit 1); exit 1; }; }
1906 ac_ext=c
1907 ac_cpp='$CPP $CPPFLAGS'
1908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1916 ac_aux_dir=
1917 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1918 if test -f $ac_dir/install-sh; then
1919 ac_aux_dir=$ac_dir
1920 ac_install_sh="$ac_aux_dir/install-sh -c"
1921 break
1922 elif test -f $ac_dir/install.sh; then
1923 ac_aux_dir=$ac_dir
1924 ac_install_sh="$ac_aux_dir/install.sh -c"
1925 break
1926 elif test -f $ac_dir/shtool; then
1927 ac_aux_dir=$ac_dir
1928 ac_install_sh="$ac_aux_dir/shtool install -c"
1929 break
1931 done
1932 if test -z "$ac_aux_dir"; then
1933 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1934 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1935 { (exit 1); exit 1; }; }
1937 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1938 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1939 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1941 # Make sure we can run config.sub.
1942 $ac_config_sub sun4 >/dev/null 2>&1 ||
1943 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1944 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1945 { (exit 1); exit 1; }; }
1947 { echo "$as_me:$LINENO: checking build system type" >&5
1948 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1949 if test "${ac_cv_build+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 else
1952 ac_build_alias=$build_alias
1953 test "x$ac_build_alias" = x &&
1954 ac_build_alias=`$ac_config_guess`
1955 test "x$ac_build_alias" = x &&
1956 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1957 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1958 { (exit 1); exit 1; }; }
1959 ac_cv_build=`$ac_config_sub $ac_build_alias` ||
1960 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_build_alias failed" >&5
1961 echo "$as_me: error: $ac_config_sub $ac_build_alias failed" >&2;}
1962 { (exit 1); exit 1; }; }
1965 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1966 echo "${ECHO_T}$ac_cv_build" >&6; }
1967 case $ac_cv_build in
1968 *-*-*) ;;
1969 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1970 echo "$as_me: error: invalid value of canonical build" >&2;}
1971 { (exit 1); exit 1; }; };;
1972 esac
1973 build=$ac_cv_build
1974 ac_save_IFS=$IFS; IFS='-'
1975 set x $ac_cv_build
1976 shift
1977 build_cpu=$1
1978 build_vendor=$2
1979 shift; shift
1980 # Remember, the first character of IFS is used to create $*,
1981 # except with old shells:
1982 build_os=$*
1983 IFS=$ac_save_IFS
1984 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1987 case ${build_alias} in
1988 "") build_noncanonical=${build} ;;
1989 *) build_noncanonical=${build_alias} ;;
1990 esac
1992 case ${host_alias} in
1993 "") host_noncanonical=${build_noncanonical} ;;
1994 *) host_noncanonical=${host_alias} ;;
1995 esac
1997 case ${target_alias} in
1998 "") target_noncanonical=${host_noncanonical} ;;
1999 *) target_noncanonical=${target_alias} ;;
2000 esac
2002 # Prefix 'build-' so this never conflicts with target_subdir.
2003 build_subdir="build-${build_noncanonical}"
2004 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2005 if ( test $srcdir = . && test -d gcc ) \
2006 || test -d $srcdir/../host-${host_noncanonical}; then
2007 host_subdir="host-${host_noncanonical}"
2008 else
2009 host_subdir=.
2011 # No prefix.
2012 target_subdir=${target_noncanonical}
2015 # We use these options to decide which functions to include.
2017 # Check whether --with-target-subdir was given.
2018 if test "${with_target_subdir+set}" = set; then
2019 withval=$with_target_subdir;
2023 # We may get other options which we don't document:
2024 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2026 # When building with srcdir == objdir, links to the source files will
2027 # be created in directories within the target_subdir. We have to
2028 # adjust toplevel_srcdir accordingly, so that configure finds
2029 # install-sh and other auxiliary files that live in the top-level
2030 # source directory.
2031 if test "${srcdir}" = "."; then
2032 if test -z "${with_target_subdir}"; then
2033 toprel=".."
2034 else
2035 if test "${with_target_subdir}" != "."; then
2036 toprel="${with_multisrctop}../.."
2037 else
2038 toprel="${with_multisrctop}.."
2041 else
2042 toprel=".."
2045 libgcj_basedir=$srcdir/$toprel/./libjava
2048 { echo "$as_me:$LINENO: checking host system type" >&5
2049 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2050 if test "${ac_cv_host+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053 if test "x$host_alias" = x; then
2054 ac_cv_host=$ac_cv_build
2055 else
2056 ac_cv_host=`$ac_config_sub $host_alias` ||
2057 { { echo "$as_me:$LINENO: error: $ac_config_sub $host_alias failed" >&5
2058 echo "$as_me: error: $ac_config_sub $host_alias failed" >&2;}
2059 { (exit 1); exit 1; }; }
2063 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2064 echo "${ECHO_T}$ac_cv_host" >&6; }
2065 case $ac_cv_host in
2066 *-*-*) ;;
2067 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2068 echo "$as_me: error: invalid value of canonical host" >&2;}
2069 { (exit 1); exit 1; }; };;
2070 esac
2071 host=$ac_cv_host
2072 ac_save_IFS=$IFS; IFS='-'
2073 set x $ac_cv_host
2074 shift
2075 host_cpu=$1
2076 host_vendor=$2
2077 shift; shift
2078 # Remember, the first character of IFS is used to create $*,
2079 # except with old shells:
2080 host_os=$*
2081 IFS=$ac_save_IFS
2082 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2085 { echo "$as_me:$LINENO: checking target system type" >&5
2086 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2087 if test "${ac_cv_target+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 else
2090 if test "x$target_alias" = x; then
2091 ac_cv_target=$ac_cv_host
2092 else
2093 ac_cv_target=`$ac_config_sub $target_alias` ||
2094 { { echo "$as_me:$LINENO: error: $ac_config_sub $target_alias failed" >&5
2095 echo "$as_me: error: $ac_config_sub $target_alias failed" >&2;}
2096 { (exit 1); exit 1; }; }
2100 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2101 echo "${ECHO_T}$ac_cv_target" >&6; }
2102 case $ac_cv_target in
2103 *-*-*) ;;
2104 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2105 echo "$as_me: error: invalid value of canonical target" >&2;}
2106 { (exit 1); exit 1; }; };;
2107 esac
2108 target=$ac_cv_target
2109 ac_save_IFS=$IFS; IFS='-'
2110 set x $ac_cv_target
2111 shift
2112 target_cpu=$1
2113 target_vendor=$2
2114 shift; shift
2115 # Remember, the first character of IFS is used to create $*,
2116 # except with old shells:
2117 target_os=$*
2118 IFS=$ac_save_IFS
2119 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2122 # The aliases save the names the user supplied, while $host etc.
2123 # will get canonicalized.
2124 test -n "$target_alias" &&
2125 test "$program_prefix$program_suffix$program_transform_name" = \
2126 NONENONEs,x,x, &&
2127 program_prefix=${target_alias}-
2128 case ${build_alias} in
2129 "") build_noncanonical=${build} ;;
2130 *) build_noncanonical=${build_alias} ;;
2131 esac
2133 case ${target_alias} in
2134 "") target_noncanonical=${host_noncanonical} ;;
2135 *) target_noncanonical=${target_alias} ;;
2136 esac
2141 # This works around the fact that libtool configuration may change LD
2142 # for this particular configuration, but some shells, instead of
2143 # keeping the changes in LD private, export them just because LD is
2144 # exported.
2145 ORIGINAL_LD_FOR_MULTILIBS=$LD
2147 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2148 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2149 LN_S=$as_ln_s
2150 if test "$LN_S" = "ln -s"; then
2151 { echo "$as_me:$LINENO: result: yes" >&5
2152 echo "${ECHO_T}yes" >&6; }
2153 else
2154 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2155 echo "${ECHO_T}no, using $LN_S" >&6; }
2159 # This works around an automake problem.
2160 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
2164 # Check whether --with-cross-host was given.
2165 if test "${with_cross_host+set}" = set; then
2166 withval=$with_cross_host;
2171 # Check whether --with-newlib was given.
2172 if test "${with_newlib+set}" = set; then
2173 withval=$with_newlib;
2177 # Check whether --enable-version-specific-runtime-libs was given.
2178 if test "${enable_version_specific_runtime_libs+set}" = set; then
2179 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2180 yes) version_specific_libs=yes ;;
2181 no) version_specific_libs=no ;;
2182 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
2183 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
2184 { (exit 1); exit 1; }; };;
2185 esac
2186 else
2187 version_specific_libs=no
2192 # Default to --enable-multilib
2193 # Check whether --enable-multilib was given.
2194 if test "${enable_multilib+set}" = set; then
2195 enableval=$enable_multilib; case "${enableval}" in
2196 yes) multilib=yes ;;
2197 no) multilib=no ;;
2198 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2199 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2200 { (exit 1); exit 1; }; } ;;
2201 esac
2202 else
2203 multilib=yes
2206 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
2209 # (1) We use an abnormal CXX (without library references), so we
2210 # must cache it under a different name.
2211 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
2212 # the non-multilib-adjusted value will be used in multilibs.
2213 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
2214 # (4) As another side effect, automake doesn't automatically include them
2215 # in Makefile.in.
2216 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
2217 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
2218 # used in later tests. This may not be necessary in libjava; I don't know.
2222 save_CXXFLAGS="$CXXFLAGS"
2223 CXXFLAGS="$CXXFLAGS -fno-builtin"
2224 ac_ext=c
2225 ac_cpp='$CPP $CPPFLAGS'
2226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2229 if test -n "$ac_tool_prefix"; then
2230 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2231 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2234 if test "${ac_cv_prog_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237 if test -n "$CC"; then
2238 ac_cv_prog_CC="$CC" # Let the user override the test.
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2243 IFS=$as_save_IFS
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2247 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249 break 2
2251 done
2252 done
2253 IFS=$as_save_IFS
2257 CC=$ac_cv_prog_CC
2258 if test -n "$CC"; then
2259 { echo "$as_me:$LINENO: result: $CC" >&5
2260 echo "${ECHO_T}$CC" >&6; }
2261 else
2262 { echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6; }
2268 if test -z "$ac_cv_prog_CC"; then
2269 ac_ct_CC=$CC
2270 # Extract the first word of "gcc", so it can be a program name with args.
2271 set dummy gcc; ac_word=$2
2272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277 if test -n "$ac_ct_CC"; then
2278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2279 else
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2287 ac_cv_prog_ac_ct_CC="gcc"
2288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2289 break 2
2291 done
2292 done
2293 IFS=$as_save_IFS
2297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2298 if test -n "$ac_ct_CC"; then
2299 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2300 echo "${ECHO_T}$ac_ct_CC" >&6; }
2301 else
2302 { echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6; }
2306 if test "x$ac_ct_CC" = x; then
2307 CC=""
2308 else
2309 case $cross_compiling:$ac_tool_warned in
2310 yes:)
2311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2312 whose name does not start with the host triplet. If you think this
2313 configuration is useful to you, please write to autoconf@gnu.org." >&5
2314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2315 whose name does not start with the host triplet. If you think this
2316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2317 ac_tool_warned=yes ;;
2318 esac
2319 CC=$ac_ct_CC
2321 else
2322 CC="$ac_cv_prog_CC"
2325 if test -z "$CC"; then
2326 if test -n "$ac_tool_prefix"; then
2327 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2328 set dummy ${ac_tool_prefix}cc; ac_word=$2
2329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2331 if test "${ac_cv_prog_CC+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 else
2334 if test -n "$CC"; then
2335 ac_cv_prog_CC="$CC" # Let the user override the test.
2336 else
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2340 IFS=$as_save_IFS
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2344 ac_cv_prog_CC="${ac_tool_prefix}cc"
2345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 break 2
2348 done
2349 done
2350 IFS=$as_save_IFS
2354 CC=$ac_cv_prog_CC
2355 if test -n "$CC"; then
2356 { echo "$as_me:$LINENO: result: $CC" >&5
2357 echo "${ECHO_T}$CC" >&6; }
2358 else
2359 { echo "$as_me:$LINENO: result: no" >&5
2360 echo "${ECHO_T}no" >&6; }
2366 if test -z "$CC"; then
2367 # Extract the first word of "cc", so it can be a program name with args.
2368 set dummy cc; ac_word=$2
2369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2371 if test "${ac_cv_prog_CC+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374 if test -n "$CC"; then
2375 ac_cv_prog_CC="$CC" # Let the user override the test.
2376 else
2377 ac_prog_rejected=no
2378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 for as_dir in $PATH
2381 IFS=$as_save_IFS
2382 test -z "$as_dir" && as_dir=.
2383 for ac_exec_ext in '' $ac_executable_extensions; do
2384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2385 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2386 ac_prog_rejected=yes
2387 continue
2389 ac_cv_prog_CC="cc"
2390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 break 2
2393 done
2394 done
2395 IFS=$as_save_IFS
2397 if test $ac_prog_rejected = yes; then
2398 # We found a bogon in the path, so make sure we never use it.
2399 set dummy $ac_cv_prog_CC
2400 shift
2401 if test $# != 0; then
2402 # We chose a different compiler from the bogus one.
2403 # However, it has the same basename, so the bogon will be chosen
2404 # first if we set CC to just the basename; use the full file name.
2405 shift
2406 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2411 CC=$ac_cv_prog_CC
2412 if test -n "$CC"; then
2413 { echo "$as_me:$LINENO: result: $CC" >&5
2414 echo "${ECHO_T}$CC" >&6; }
2415 else
2416 { echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6; }
2422 if test -z "$CC"; then
2423 if test -n "$ac_tool_prefix"; then
2424 for ac_prog in cl.exe
2426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433 if test -n "$CC"; then
2434 ac_cv_prog_CC="$CC" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 break 2
2447 done
2448 done
2449 IFS=$as_save_IFS
2453 CC=$ac_cv_prog_CC
2454 if test -n "$CC"; then
2455 { echo "$as_me:$LINENO: result: $CC" >&5
2456 echo "${ECHO_T}$CC" >&6; }
2457 else
2458 { echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6; }
2463 test -n "$CC" && break
2464 done
2466 if test -z "$CC"; then
2467 ac_ct_CC=$CC
2468 for ac_prog in cl.exe
2470 # Extract the first word of "$ac_prog", so it can be a program name with args.
2471 set dummy $ac_prog; ac_word=$2
2472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477 if test -n "$ac_ct_CC"; then
2478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2487 ac_cv_prog_ac_ct_CC="$ac_prog"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 break 2
2491 done
2492 done
2493 IFS=$as_save_IFS
2497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2498 if test -n "$ac_ct_CC"; then
2499 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2500 echo "${ECHO_T}$ac_ct_CC" >&6; }
2501 else
2502 { echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6; }
2507 test -n "$ac_ct_CC" && break
2508 done
2510 if test "x$ac_ct_CC" = x; then
2511 CC=""
2512 else
2513 case $cross_compiling:$ac_tool_warned in
2514 yes:)
2515 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2516 whose name does not start with the host triplet. If you think this
2517 configuration is useful to you, please write to autoconf@gnu.org." >&5
2518 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2519 whose name does not start with the host triplet. If you think this
2520 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2521 ac_tool_warned=yes ;;
2522 esac
2523 CC=$ac_ct_CC
2530 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: no acceptable C compiler found in \$PATH
2533 See \`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }
2536 # Provide some information about the compiler.
2537 echo "$as_me:$LINENO: checking for C compiler version" >&5
2538 ac_compiler=`set X $ac_compile; echo $2`
2539 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
2540 (eval $ac_compiler --version >&5) 2>&5
2541 ac_status=$?
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }
2544 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
2545 (eval $ac_compiler -v >&5) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }
2549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
2550 (eval $ac_compiler -V >&5) 2>&5
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }
2555 cat >conftest.$ac_ext <<_ACEOF
2556 /* confdefs.h. */
2557 _ACEOF
2558 cat confdefs.h >>conftest.$ac_ext
2559 cat >>conftest.$ac_ext <<_ACEOF
2560 /* end confdefs.h. */
2563 main ()
2567 return 0;
2569 _ACEOF
2570 # FIXME: Cleanup?
2571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2572 (eval $ac_link) 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; then
2576 gcc_no_link=no
2577 else
2578 gcc_no_link=yes
2581 if test x$gcc_no_link = xyes; then
2582 # Setting cross_compile will disable run tests; it will
2583 # also disable AC_CHECK_FILE but that's generally
2584 # correct if we can't link.
2585 cross_compiling=yes
2586 EXEEXT=
2587 else
2589 # List of possible output files. We want to start from the most likely,
2590 # but we have to check foo.exe before foo, because Cygwin `test -f' looks
2591 # also for foo.exe. b.out is created by i960 compilers.
2592 # As a last resort, we also try wildcards: `conftest.*' and `a.*'.
2593 # But we are not allowed to rm a.*, and we do not want always remove
2594 # conftest.*, so we will list them literally, when appropriate.
2595 ac_outfiles="a_out.exe a.out conftest.exe conftest a.exe b.out"
2597 # The IRIX 6 linker writes into existing files which may not be
2598 # executable, retaining their permissions. Remove them first so a
2599 # subsequent execution test works.
2600 rm -f $ac_outfiles conftest.*
2602 cat >conftest.$ac_ext <<_ACEOF
2603 /* confdefs.h. */
2604 _ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2610 main ()
2614 return 0;
2616 _ACEOF
2618 ac_clean_files_save=$ac_clean_files
2619 ac_clean_files="$ac_clean_files $ac_outfiles"
2621 # The following tests should remove their output except files matching conftest.*.
2622 # Try to create an executable without -o first, disregard a.out.
2623 # It will help us diagnose broken compilers, and finding out an intuition
2624 # of exeext.
2625 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2626 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2627 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2629 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2630 (eval $ac_link_default) 2>&5
2631 ac_status=$?
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; then
2634 for ac_file in $ac_outfiles a.* conftest.* NO
2636 test -f "$ac_file" || continue
2637 case $ac_file in
2638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2639 * ) break;;
2640 esac
2641 done
2642 if test "$ac_file" = NO; then
2643 { { echo "$as_me:$LINENO: error: no output file found
2644 See \`config.log' for more details." >&5
2645 echo "$as_me: error: no output file found
2646 See \`config.log' for more details." >&2;}
2647 { (exit 1); exit 1; }; }
2651 else
2652 echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2655 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2656 See \`config.log' for more details." >&5
2657 echo "$as_me: error: C compiler cannot create executables
2658 See \`config.log' for more details." >&2;}
2659 { (exit 77); exit 77; }; }
2662 { echo "$as_me:$LINENO: result: $ac_file" >&5
2663 echo "${ECHO_T}$ac_file" >&6; }
2664 # Check that the compiler produces executables we can run. If not, either
2665 # the compiler is broken, or we cross compile.
2666 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2667 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2668 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2669 # If not cross compiling, check that we can run a simple program.
2670 if test "$cross_compiling" != yes; then
2671 if { ac_try='./$ac_file'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2677 cross_compiling=no
2678 else
2679 if test "$cross_compiling" = maybe; then
2680 cross_compiling=yes
2681 else
2682 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2683 If you meant to cross compile, use \`--host'.
2684 See \`config.log' for more details." >&5
2685 echo "$as_me: error: cannot run C compiled programs.
2686 If you meant to cross compile, use \`--host'.
2687 See \`config.log' for more details." >&2;}
2688 { (exit 1); exit 1; }; }
2692 { echo "$as_me:$LINENO: result: yes" >&5
2693 echo "${ECHO_T}yes" >&6; }
2695 # Clean up; list also $ac_file, in case it matched a wildcard entry.
2696 rm -f $ac_outfiles $ac_file
2698 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2699 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2700 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2701 echo "${ECHO_T}$cross_compiling" >&6; }
2703 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2704 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2705 if test "${ac_cv_exeext+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2709 (eval $ac_link) 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; then
2713 # If both `conftest.exe' and `conftest' are `present' (well, observable),
2714 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2715 # work properly (i.e., refer to `conftest.exe'), while it won't with `rm'.
2716 for ac_file in conftest.exe conftest conftest.* NO; do
2717 test -f "$ac_file" || continue
2718 case $ac_file in
2719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2720 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2721 break;;
2722 * ) break;;
2723 esac
2724 done
2725 if test "$ac_file" = NO; then
2726 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: no output file found
2727 See \`config.log' for more details." >&5
2728 echo "$as_me: error: cannot compute suffix of executables: no output file found
2729 See \`config.log' for more details." >&2;}
2730 { (exit 1); exit 1; }; }
2733 # Clean up; list also $ac_file, in case it matched conftest.*.
2734 rm -f $ac_outfiles $ac_file
2736 else
2737 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2738 See \`config.log' for more details." >&5
2739 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2740 See \`config.log' for more details." >&2;}
2741 { (exit 1); exit 1; }; }
2747 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2748 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2749 EXEEXT=$ac_cv_exeext
2750 ac_exeext=$EXEEXT
2753 ac_clean_files=$ac_clean_files_save
2755 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2756 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2757 if test "${ac_cv_objext+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 else
2760 rm -f conftest.o conftest.obj
2761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2762 (eval $ac_compile) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; then
2766 for ac_file in conftest.o conftest.obj conftest.*; do
2767 test -f "$ac_file" || continue;
2768 case $ac_file in
2769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2770 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2771 break;;
2772 esac
2773 done
2774 else
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2778 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2779 See \`config.log' for more details." >&5
2780 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2781 See \`config.log' for more details." >&2;}
2782 { (exit 1); exit 1; }; }
2786 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2787 echo "${ECHO_T}$ac_cv_objext" >&6; }
2788 OBJEXT=$ac_cv_objext
2789 ac_objext=$OBJEXT
2792 rm -f conftest.*
2794 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2795 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2796 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2798 else
2799 cat >conftest.$ac_ext <<_ACEOF
2800 /* confdefs.h. */
2801 _ACEOF
2802 cat confdefs.h >>conftest.$ac_ext
2803 cat >>conftest.$ac_ext <<_ACEOF
2804 /* end confdefs.h. */
2807 main ()
2809 #ifndef __GNUC__
2810 choke me
2811 #endif
2814 return 0;
2816 _ACEOF
2817 rm -f conftest.$ac_objext
2818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2819 (eval $ac_compile) 2>conftest.er1
2820 ac_status=$?
2821 grep -v '^ *+' conftest.er1 >conftest.err
2822 rm -f conftest.er1
2823 cat conftest.err >&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); } &&
2826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 (eval $ac_try) 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; } &&
2832 { ac_try='test -s conftest.$ac_objext'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 (eval $ac_try) 2>&5
2835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; }; then
2838 ac_compiler_gnu=yes
2839 else
2840 echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2843 ac_compiler_gnu=no
2846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2847 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2850 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2851 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2852 GCC=`test $ac_compiler_gnu = yes && echo yes`
2853 ac_test_CFLAGS=${CFLAGS+set}
2854 ac_save_CFLAGS=$CFLAGS
2855 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2856 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_cc_g+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860 ac_save_c_werror_flag=$ac_c_werror_flag
2861 ac_c_werror_flag=yes
2862 ac_cv_prog_cc_g=no
2863 CFLAGS="-g"
2864 cat >conftest.$ac_ext <<_ACEOF
2865 /* confdefs.h. */
2866 _ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2872 main ()
2876 return 0;
2878 _ACEOF
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881 (eval $ac_compile) 2>conftest.er1
2882 ac_status=$?
2883 grep -v '^ *+' conftest.er1 >conftest.err
2884 rm -f conftest.er1
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } &&
2888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 (eval $ac_try) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2900 ac_cv_prog_cc_g=yes
2901 else
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2905 CFLAGS=""
2906 cat >conftest.$ac_ext <<_ACEOF
2907 /* confdefs.h. */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2914 main ()
2918 return 0;
2920 _ACEOF
2921 rm -f conftest.$ac_objext
2922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2923 (eval $ac_compile) 2>conftest.er1
2924 ac_status=$?
2925 grep -v '^ *+' conftest.er1 >conftest.err
2926 rm -f conftest.er1
2927 cat conftest.err >&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } &&
2930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 (eval $ac_try) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; } &&
2936 { ac_try='test -s conftest.$ac_objext'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 (eval $ac_try) 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2943 else
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2947 ac_c_werror_flag=$ac_save_c_werror_flag
2948 CFLAGS="-g"
2949 cat >conftest.$ac_ext <<_ACEOF
2950 /* confdefs.h. */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2957 main ()
2961 return 0;
2963 _ACEOF
2964 rm -f conftest.$ac_objext
2965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2966 (eval $ac_compile) 2>conftest.er1
2967 ac_status=$?
2968 grep -v '^ *+' conftest.er1 >conftest.err
2969 rm -f conftest.er1
2970 cat conftest.err >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } &&
2973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975 (eval $ac_try) 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; } &&
2979 { ac_try='test -s conftest.$ac_objext'
2980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981 (eval $ac_try) 2>&5
2982 ac_status=$?
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; }; then
2985 ac_cv_prog_cc_g=yes
2986 else
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3000 ac_c_werror_flag=$ac_save_c_werror_flag
3002 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3003 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3004 if test "$ac_test_CFLAGS" = set; then
3005 CFLAGS=$ac_save_CFLAGS
3006 elif test $ac_cv_prog_cc_g = yes; then
3007 if test "$GCC" = yes; then
3008 CFLAGS="-g -O2"
3009 else
3010 CFLAGS="-g"
3012 else
3013 if test "$GCC" = yes; then
3014 CFLAGS="-O2"
3015 else
3016 CFLAGS=
3019 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3020 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3021 if test "${ac_cv_prog_cc_c89+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024 ac_cv_prog_cc_c89=no
3025 ac_save_CC=$CC
3026 cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h. */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3032 #include <stdarg.h>
3033 #include <stdio.h>
3034 #include <sys/types.h>
3035 #include <sys/stat.h>
3036 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3037 struct buf { int x; };
3038 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3039 static char *e (p, i)
3040 char **p;
3041 int i;
3043 return p[i];
3045 static char *f (char * (*g) (char **, int), char **p, ...)
3047 char *s;
3048 va_list v;
3049 va_start (v,p);
3050 s = g (p, va_arg (v,int));
3051 va_end (v);
3052 return s;
3055 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3056 function prototypes and stuff, but not '\xHH' hex character constants.
3057 These don't provoke an error unfortunately, instead are silently treated
3058 as 'x'. The following induces an error, until -std is added to get
3059 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3060 array size at least. It's necessary to write '\x00'==0 to get something
3061 that's true only with -std. */
3062 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3064 int test (int i, double x);
3065 struct s1 {int (*f) (int a);};
3066 struct s2 {int (*f) (double a);};
3067 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3068 int argc;
3069 char **argv;
3071 main ()
3073 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3075 return 0;
3077 _ACEOF
3078 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3079 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3081 CC="$ac_save_CC $ac_arg"
3082 rm -f conftest.$ac_objext
3083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3084 (eval $ac_compile) 2>conftest.er1
3085 ac_status=$?
3086 grep -v '^ *+' conftest.er1 >conftest.err
3087 rm -f conftest.er1
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } &&
3091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 (eval $ac_try) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; } &&
3097 { ac_try='test -s conftest.$ac_objext'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099 (eval $ac_try) 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3103 ac_cv_prog_cc_c89=$ac_arg
3104 else
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3111 rm -f conftest.err conftest.$ac_objext
3112 test "x$ac_cv_prog_cc_c89" != "xno" && break
3113 done
3114 rm -f conftest.$ac_ext
3115 CC=$ac_save_CC
3118 # AC_CACHE_VAL
3119 case "x$ac_cv_prog_cc_c89" in
3121 { echo "$as_me:$LINENO: result: none needed" >&5
3122 echo "${ECHO_T}none needed" >&6; } ;;
3123 xno)
3124 { echo "$as_me:$LINENO: result: unsupported" >&5
3125 echo "${ECHO_T}unsupported" >&6; } ;;
3127 CC="$CC $ac_cv_prog_cc_c89"
3128 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3129 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3130 esac
3133 ac_ext=c
3134 ac_cpp='$CPP $CPPFLAGS'
3135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3139 ac_ext=cpp
3140 ac_cpp='$CXXCPP $CPPFLAGS'
3141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3144 if test -z "$CXX"; then
3145 if test -n "$CCC"; then
3146 CXX=$CCC
3147 else
3148 if test -n "$ac_tool_prefix"; then
3149 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3155 if test "${glibcxx_cv_prog_CXX+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158 if test -n "$CXX"; then
3159 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3168 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 break 2
3172 done
3173 done
3174 IFS=$as_save_IFS
3178 CXX=$glibcxx_cv_prog_CXX
3179 if test -n "$CXX"; then
3180 { echo "$as_me:$LINENO: result: $CXX" >&5
3181 echo "${ECHO_T}$CXX" >&6; }
3182 else
3183 { echo "$as_me:$LINENO: result: no" >&5
3184 echo "${ECHO_T}no" >&6; }
3188 test -n "$CXX" && break
3189 done
3191 if test -z "$CXX"; then
3192 ac_ct_CXX=$CXX
3193 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3195 # Extract the first word of "$ac_prog", so it can be a program name with args.
3196 set dummy $ac_prog; ac_word=$2
3197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3199 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202 if test -n "$ac_ct_CXX"; then
3203 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3212 ac_cv_prog_ac_ct_CXX="$ac_prog"
3213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 break 2
3216 done
3217 done
3218 IFS=$as_save_IFS
3222 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3223 if test -n "$ac_ct_CXX"; then
3224 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3225 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3226 else
3227 { echo "$as_me:$LINENO: result: no" >&5
3228 echo "${ECHO_T}no" >&6; }
3232 test -n "$ac_ct_CXX" && break
3233 done
3235 if test "x$ac_ct_CXX" = x; then
3236 CXX="g++"
3237 else
3238 case $cross_compiling:$ac_tool_warned in
3239 yes:)
3240 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3241 whose name does not start with the host triplet. If you think this
3242 configuration is useful to you, please write to autoconf@gnu.org." >&5
3243 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3244 whose name does not start with the host triplet. If you think this
3245 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3246 ac_tool_warned=yes ;;
3247 esac
3248 CXX=$ac_ct_CXX
3254 # Provide some information about the compiler.
3255 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3256 ac_compiler=`set X $ac_compile; echo $2`
3257 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
3258 (eval $ac_compiler --version >&5) 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }
3262 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
3263 (eval $ac_compiler -v >&5) 2>&5
3264 ac_status=$?
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }
3267 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
3268 (eval $ac_compiler -V >&5) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }
3273 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3274 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3275 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h. */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3286 main ()
3288 #ifndef __GNUC__
3289 choke me
3290 #endif
3293 return 0;
3295 _ACEOF
3296 rm -f conftest.$ac_objext
3297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3298 (eval $ac_compile) 2>conftest.er1
3299 ac_status=$?
3300 grep -v '^ *+' conftest.er1 >conftest.err
3301 rm -f conftest.er1
3302 cat conftest.err >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } &&
3305 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 (eval $ac_try) 2>&5
3308 ac_status=$?
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; } &&
3311 { ac_try='test -s conftest.$ac_objext'
3312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 (eval $ac_try) 2>&5
3314 ac_status=$?
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; }; then
3317 ac_compiler_gnu=yes
3318 else
3319 echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3322 ac_compiler_gnu=no
3325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3326 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3329 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3330 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3331 GXX=`test $ac_compiler_gnu = yes && echo yes`
3332 ac_test_CXXFLAGS=${CXXFLAGS+set}
3333 ac_save_CXXFLAGS=$CXXFLAGS
3334 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3335 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3336 if test "${ac_cv_prog_cxx_g+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3340 ac_cxx_werror_flag=yes
3341 ac_cv_prog_cxx_g=no
3342 CXXFLAGS="-g"
3343 cat >conftest.$ac_ext <<_ACEOF
3344 /* confdefs.h. */
3345 _ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3351 main ()
3355 return 0;
3357 _ACEOF
3358 rm -f conftest.$ac_objext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3360 (eval $ac_compile) 2>conftest.er1
3361 ac_status=$?
3362 grep -v '^ *+' conftest.er1 >conftest.err
3363 rm -f conftest.er1
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } &&
3367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 (eval $ac_try) 2>&5
3370 ac_status=$?
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; } &&
3373 { ac_try='test -s conftest.$ac_objext'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 (eval $ac_try) 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3379 ac_cv_prog_cxx_g=yes
3380 else
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3384 CXXFLAGS=""
3385 cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h. */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3393 main ()
3397 return 0;
3399 _ACEOF
3400 rm -f conftest.$ac_objext
3401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3402 (eval $ac_compile) 2>conftest.er1
3403 ac_status=$?
3404 grep -v '^ *+' conftest.er1 >conftest.err
3405 rm -f conftest.er1
3406 cat conftest.err >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } &&
3409 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; } &&
3415 { ac_try='test -s conftest.$ac_objext'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 (eval $ac_try) 2>&5
3418 ac_status=$?
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3422 else
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3426 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3427 CXXFLAGS="-g"
3428 cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h. */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3436 main ()
3440 return 0;
3442 _ACEOF
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>conftest.er1
3446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 (eval $ac_try) 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; } &&
3458 { ac_try='test -s conftest.$ac_objext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 (eval $ac_try) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3464 ac_cv_prog_cxx_g=yes
3465 else
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3479 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3481 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3482 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3483 if test "$ac_test_CXXFLAGS" = set; then
3484 CXXFLAGS=$ac_save_CXXFLAGS
3485 elif test $ac_cv_prog_cxx_g = yes; then
3486 if test "$GXX" = yes; then
3487 CXXFLAGS="-g -O2"
3488 else
3489 CXXFLAGS="-g"
3491 else
3492 if test "$GXX" = yes; then
3493 CXXFLAGS="-O2"
3494 else
3495 CXXFLAGS=
3498 ac_ext=c
3499 ac_cpp='$CPP $CPPFLAGS'
3500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504 CXXFLAGS="$save_CXXFLAGS"
3510 am__api_version="1.9"
3511 # Find a good install program. We prefer a C program (faster),
3512 # so one script is as good as another. But avoid the broken or
3513 # incompatible versions:
3514 # SysV /etc/install, /usr/sbin/install
3515 # SunOS /usr/etc/install
3516 # IRIX /sbin/install
3517 # AIX /bin/install
3518 # AmigaOS /C/install, which installs bootblocks on floppy discs
3519 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3520 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3521 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3522 # OS/2's system install, which has a completely different semantic
3523 # ./install, which can be erroneously created by make from ./install.sh.
3524 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3525 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3526 if test -z "$INSTALL"; then
3527 if test "${ac_cv_path_install+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3533 IFS=$as_save_IFS
3534 test -z "$as_dir" && as_dir=.
3535 # Account for people who put trailing slashes in PATH elements.
3536 case $as_dir/ in
3537 ./ | .// | /cC/* | \
3538 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3539 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3540 /usr/ucb/* ) ;;
3542 # OSF1 and SCO ODT 3.0 have their own names for install.
3543 # Don't use installbsd from OSF since it installs stuff as root
3544 # by default.
3545 for ac_prog in ginstall scoinst install; do
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
3548 if test $ac_prog = install &&
3549 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3550 # AIX install. It has an incompatible calling convention.
3552 elif test $ac_prog = install &&
3553 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3554 # program-specific install script used by HP pwplus--don't use.
3556 else
3557 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3558 break 3
3561 done
3562 done
3564 esac
3565 done
3566 IFS=$as_save_IFS
3570 if test "${ac_cv_path_install+set}" = set; then
3571 INSTALL=$ac_cv_path_install
3572 else
3573 # As a last resort, use the slow shell script. Don't cache a
3574 # value for INSTALL within a source directory, because that will
3575 # break other packages using the cache if that directory is
3576 # removed, or if the value is a relative name.
3577 INSTALL=$ac_install_sh
3580 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3581 echo "${ECHO_T}$INSTALL" >&6; }
3583 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3584 # It thinks the first close brace ends the variable substitution.
3585 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3587 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3589 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3591 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3592 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
3593 # Just in case
3594 sleep 1
3595 echo timestamp > conftest.file
3596 # Do `set' in a subshell so we don't clobber the current shell's
3597 # arguments. Must try -L first in case configure is actually a
3598 # symlink; some systems play weird games with the mod time of symlinks
3599 # (eg FreeBSD returns the mod time of the symlink's containing
3600 # directory).
3601 if (
3602 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3603 if test "$*" = "X"; then
3604 # -L didn't work.
3605 set X `ls -t $srcdir/configure conftest.file`
3607 rm -f conftest.file
3608 if test "$*" != "X $srcdir/configure conftest.file" \
3609 && test "$*" != "X conftest.file $srcdir/configure"; then
3611 # If neither matched, then we have a broken ls. This can happen
3612 # if, for instance, CONFIG_SHELL is bash and it inherits a
3613 # broken ls alias from the environment. This has actually
3614 # happened. Such a system could not be considered "sane".
3615 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3616 alias in your environment" >&5
3617 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3618 alias in your environment" >&2;}
3619 { (exit 1); exit 1; }; }
3622 test "$2" = conftest.file
3624 then
3625 # Ok.
3627 else
3628 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3629 Check your system clock" >&5
3630 echo "$as_me: error: newly created file is older than distributed files!
3631 Check your system clock" >&2;}
3632 { (exit 1); exit 1; }; }
3634 { echo "$as_me:$LINENO: result: yes" >&5
3635 echo "${ECHO_T}yes" >&6; }
3636 test "$program_prefix" != NONE &&
3637 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3638 # Use a double $ so make ignores it.
3639 test "$program_suffix" != NONE &&
3640 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3641 # Double any \ or $. echo might interpret backslashes.
3642 # By default was `s,x,x', remove it if useless.
3643 cat <<\_ACEOF >conftest.sed
3644 s/[\\$]/&&/g;s/;s,x,x,$//
3645 _ACEOF
3646 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3647 rm -f conftest.sed
3649 # expand $ac_aux_dir to an absolute path
3650 am_aux_dir=`cd $ac_aux_dir && pwd`
3652 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3653 # Use eval to expand $SHELL
3654 if eval "$MISSING --run true"; then
3655 am_missing_run="$MISSING --run "
3656 else
3657 am_missing_run=
3658 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3659 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3662 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3663 # We used to keeping the `.' as first argument, in order to
3664 # allow $(mkdir_p) to be used without argument. As in
3665 # $(mkdir_p) $(somedir)
3666 # where $(somedir) is conditionally defined. However this is wrong
3667 # for two reasons:
3668 # 1. if the package is installed by a user who cannot write `.'
3669 # make install will fail,
3670 # 2. the above comment should most certainly read
3671 # $(mkdir_p) $(DESTDIR)$(somedir)
3672 # so it does not work when $(somedir) is undefined and
3673 # $(DESTDIR) is not.
3674 # To support the latter case, we have to write
3675 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3676 # so the `.' trick is pointless.
3677 mkdir_p='mkdir -p --'
3678 else
3679 # On NextStep and OpenStep, the `mkdir' command does not
3680 # recognize any option. It will interpret all options as
3681 # directories to create, and then abort because `.' already
3682 # exists.
3683 for d in ./-p ./--version;
3685 test -d $d && rmdir $d
3686 done
3687 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3688 if test -f "$ac_aux_dir/mkinstalldirs"; then
3689 mkdir_p='$(mkinstalldirs)'
3690 else
3691 mkdir_p='$(install_sh) -d'
3695 for ac_prog in gawk mawk nawk awk
3697 # Extract the first word of "$ac_prog", so it can be a program name with args.
3698 set dummy $ac_prog; ac_word=$2
3699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3701 if test "${ac_cv_prog_AWK+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704 if test -n "$AWK"; then
3705 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3706 else
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3714 ac_cv_prog_AWK="$ac_prog"
3715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 break 2
3718 done
3719 done
3720 IFS=$as_save_IFS
3724 AWK=$ac_cv_prog_AWK
3725 if test -n "$AWK"; then
3726 { echo "$as_me:$LINENO: result: $AWK" >&5
3727 echo "${ECHO_T}$AWK" >&6; }
3728 else
3729 { echo "$as_me:$LINENO: result: no" >&5
3730 echo "${ECHO_T}no" >&6; }
3734 test -n "$AWK" && break
3735 done
3737 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3738 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3739 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3740 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743 cat >conftest.make <<\_ACEOF
3744 SHELL = /bin/sh
3745 all:
3746 @echo 'ac_maketemp=X"$(MAKE)"'
3747 _ACEOF
3748 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3749 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3750 if test "$ac_maketemp" != X ; then
3751 eval ac_cv_prog_make_${ac_make}_set=yes
3752 else
3753 eval ac_cv_prog_make_${ac_make}_set=no
3755 rm -f conftest.make
3757 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3758 { echo "$as_me:$LINENO: result: yes" >&5
3759 echo "${ECHO_T}yes" >&6; }
3760 SET_MAKE=
3761 else
3762 { echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6; }
3764 SET_MAKE="MAKE=${MAKE-make}"
3767 rm -rf .tst 2>/dev/null
3768 mkdir .tst 2>/dev/null
3769 if test -d .tst; then
3770 am__leading_dot=.
3771 else
3772 am__leading_dot=_
3774 rmdir .tst 2>/dev/null
3776 DEPDIR="${am__leading_dot}deps"
3778 ac_config_commands="$ac_config_commands depfiles"
3781 am_make=${MAKE-make}
3782 cat > confinc << 'END'
3783 am__doit:
3784 @echo done
3785 .PHONY: am__doit
3787 # If we don't find an include directive, just comment out the code.
3788 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3789 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3790 am__include="#"
3791 am__quote=
3792 _am_result=none
3793 # First try GNU make style include.
3794 echo "include confinc" > confmf
3795 # We grep out `Entering directory' and `Leaving directory'
3796 # messages which can occur if `w' ends up in MAKEFLAGS.
3797 # In particular we don't look at `^make:' because GNU make might
3798 # be invoked under some other name (usually "gmake"), in which
3799 # case it prints its new name instead of `make'.
3800 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3801 am__include=include
3802 am__quote=
3803 _am_result=GNU
3805 # Now try BSD make style include.
3806 if test "$am__include" = "#"; then
3807 echo '.include "confinc"' > confmf
3808 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3809 am__include=.include
3810 am__quote="\""
3811 _am_result=BSD
3816 { echo "$as_me:$LINENO: result: $_am_result" >&5
3817 echo "${ECHO_T}$_am_result" >&6; }
3818 rm -f confinc confmf
3820 # Check whether --enable-dependency-tracking was given.
3821 if test "${enable_dependency_tracking+set}" = set; then
3822 enableval=$enable_dependency_tracking;
3825 if test "x$enable_dependency_tracking" != xno; then
3826 am_depcomp="$ac_aux_dir/depcomp"
3827 AMDEPBACKSLASH='\'
3831 if test "x$enable_dependency_tracking" != xno; then
3832 AMDEP_TRUE=
3833 AMDEP_FALSE='#'
3834 else
3835 AMDEP_TRUE='#'
3836 AMDEP_FALSE=
3841 # test to see if srcdir already configured
3842 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3843 test -f $srcdir/config.status; then
3844 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3845 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3846 { (exit 1); exit 1; }; }
3849 # test whether we have cygpath
3850 if test -z "$CYGPATH_W"; then
3851 if (cygpath --version) >/dev/null 2>/dev/null; then
3852 CYGPATH_W='cygpath -w'
3853 else
3854 CYGPATH_W=echo
3859 # Define the identity of the package.
3860 PACKAGE='libjava'
3861 VERSION='version-unused'
3864 cat >>confdefs.h <<_ACEOF
3865 #define PACKAGE "$PACKAGE"
3866 _ACEOF
3869 cat >>confdefs.h <<_ACEOF
3870 #define VERSION "$VERSION"
3871 _ACEOF
3873 # Some tools Automake needs.
3875 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3878 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3881 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3884 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3887 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3889 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3891 # Installed binaries are usually stripped using `strip' when the user
3892 # run `make install-strip'. However `strip' might not be the right
3893 # tool to use in cross-compilation environments, therefore Automake
3894 # will honor the `STRIP' environment variable to overrule this program.
3895 if test "$cross_compiling" != no; then
3896 if test -n "$ac_tool_prefix"; then
3897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3898 set dummy ${ac_tool_prefix}strip; ac_word=$2
3899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3901 if test "${ac_cv_prog_STRIP+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904 if test -n "$STRIP"; then
3905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3914 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 break 2
3918 done
3919 done
3920 IFS=$as_save_IFS
3924 STRIP=$ac_cv_prog_STRIP
3925 if test -n "$STRIP"; then
3926 { echo "$as_me:$LINENO: result: $STRIP" >&5
3927 echo "${ECHO_T}$STRIP" >&6; }
3928 else
3929 { echo "$as_me:$LINENO: result: no" >&5
3930 echo "${ECHO_T}no" >&6; }
3935 if test -z "$ac_cv_prog_STRIP"; then
3936 ac_ct_STRIP=$STRIP
3937 # Extract the first word of "strip", so it can be a program name with args.
3938 set dummy strip; ac_word=$2
3939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3941 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944 if test -n "$ac_ct_STRIP"; then
3945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3946 else
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3950 IFS=$as_save_IFS
3951 test -z "$as_dir" && as_dir=.
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3954 ac_cv_prog_ac_ct_STRIP="strip"
3955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 break 2
3958 done
3959 done
3960 IFS=$as_save_IFS
3964 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3965 if test -n "$ac_ct_STRIP"; then
3966 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3967 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
3968 else
3969 { echo "$as_me:$LINENO: result: no" >&5
3970 echo "${ECHO_T}no" >&6; }
3973 if test "x$ac_ct_STRIP" = x; then
3974 STRIP=":"
3975 else
3976 case $cross_compiling:$ac_tool_warned in
3977 yes:)
3978 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3979 whose name does not start with the host triplet. If you think this
3980 configuration is useful to you, please write to autoconf@gnu.org." >&5
3981 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3982 whose name does not start with the host triplet. If you think this
3983 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3984 ac_tool_warned=yes ;;
3985 esac
3986 STRIP=$ac_ct_STRIP
3988 else
3989 STRIP="$ac_cv_prog_STRIP"
3993 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3995 # We need awk for the "check" target. The system "awk" is bad on
3996 # some platforms.
3997 # Always define AMTAR for backward compatibility.
3999 AMTAR=${AMTAR-"${am_missing_run}tar"}
4001 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4006 depcc="$CC" am_compiler_list=
4008 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4009 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4010 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 else
4013 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4014 # We make a subdir and do the tests there. Otherwise we can end up
4015 # making bogus files that we don't know about and never remove. For
4016 # instance it was reported that on HP-UX the gcc test will end up
4017 # making a dummy file named `D' -- because `-MD' means `put the output
4018 # in D'.
4019 mkdir conftest.dir
4020 # Copy depcomp to subdir because otherwise we won't find it if we're
4021 # using a relative directory.
4022 cp "$am_depcomp" conftest.dir
4023 cd conftest.dir
4024 # We will build objects and dependencies in a subdirectory because
4025 # it helps to detect inapplicable dependency modes. For instance
4026 # both Tru64's cc and ICC support -MD to output dependencies as a
4027 # side effect of compilation, but ICC will put the dependencies in
4028 # the current directory while Tru64 will put them in the object
4029 # directory.
4030 mkdir sub
4032 am_cv_CC_dependencies_compiler_type=none
4033 if test "$am_compiler_list" = ""; then
4034 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4036 for depmode in $am_compiler_list; do
4037 # Setup a source with many dependencies, because some compilers
4038 # like to wrap large dependency lists on column 80 (with \), and
4039 # we should not choose a depcomp mode which is confused by this.
4041 # We need to recreate these files for each test, as the compiler may
4042 # overwrite some of them when testing with obscure command lines.
4043 # This happens at least with the AIX C compiler.
4044 : > sub/conftest.c
4045 for i in 1 2 3 4 5 6; do
4046 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4047 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4048 # Solaris 8's {/usr,}/bin/sh.
4049 touch sub/conftst$i.h
4050 done
4051 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4053 case $depmode in
4054 nosideeffect)
4055 # after this tag, mechanisms are not by side-effect, so they'll
4056 # only be used when explicitly requested
4057 if test "x$enable_dependency_tracking" = xyes; then
4058 continue
4059 else
4060 break
4063 none) break ;;
4064 esac
4065 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4066 # mode. It turns out that the SunPro C++ compiler does not properly
4067 # handle `-M -o', and we need to detect this.
4068 if depmode=$depmode \
4069 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4070 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4071 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4072 >/dev/null 2>conftest.err &&
4073 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4074 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4075 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4076 # icc doesn't choke on unknown options, it will just issue warnings
4077 # or remarks (even with -Werror). So we grep stderr for any message
4078 # that says an option was ignored or not supported.
4079 # When given -MP, icc 7.0 and 7.1 complain thusly:
4080 # icc: Command line warning: ignoring option '-M'; no argument required
4081 # The diagnosis changed in icc 8.0:
4082 # icc: Command line remark: option '-MP' not supported
4083 if (grep 'ignoring option' conftest.err ||
4084 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4085 am_cv_CC_dependencies_compiler_type=$depmode
4086 break
4089 done
4091 cd ..
4092 rm -rf conftest.dir
4093 else
4094 am_cv_CC_dependencies_compiler_type=none
4098 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4099 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4100 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4105 test "x$enable_dependency_tracking" != xno \
4106 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4107 am__fastdepCC_TRUE=
4108 am__fastdepCC_FALSE='#'
4109 else
4110 am__fastdepCC_TRUE='#'
4111 am__fastdepCC_FALSE=
4115 depcc="$CXX" am_compiler_list=
4117 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4118 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4119 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4123 # We make a subdir and do the tests there. Otherwise we can end up
4124 # making bogus files that we don't know about and never remove. For
4125 # instance it was reported that on HP-UX the gcc test will end up
4126 # making a dummy file named `D' -- because `-MD' means `put the output
4127 # in D'.
4128 mkdir conftest.dir
4129 # Copy depcomp to subdir because otherwise we won't find it if we're
4130 # using a relative directory.
4131 cp "$am_depcomp" conftest.dir
4132 cd conftest.dir
4133 # We will build objects and dependencies in a subdirectory because
4134 # it helps to detect inapplicable dependency modes. For instance
4135 # both Tru64's cc and ICC support -MD to output dependencies as a
4136 # side effect of compilation, but ICC will put the dependencies in
4137 # the current directory while Tru64 will put them in the object
4138 # directory.
4139 mkdir sub
4141 am_cv_CXX_dependencies_compiler_type=none
4142 if test "$am_compiler_list" = ""; then
4143 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4145 for depmode in $am_compiler_list; do
4146 # Setup a source with many dependencies, because some compilers
4147 # like to wrap large dependency lists on column 80 (with \), and
4148 # we should not choose a depcomp mode which is confused by this.
4150 # We need to recreate these files for each test, as the compiler may
4151 # overwrite some of them when testing with obscure command lines.
4152 # This happens at least with the AIX C compiler.
4153 : > sub/conftest.c
4154 for i in 1 2 3 4 5 6; do
4155 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4156 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4157 # Solaris 8's {/usr,}/bin/sh.
4158 touch sub/conftst$i.h
4159 done
4160 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4162 case $depmode in
4163 nosideeffect)
4164 # after this tag, mechanisms are not by side-effect, so they'll
4165 # only be used when explicitly requested
4166 if test "x$enable_dependency_tracking" = xyes; then
4167 continue
4168 else
4169 break
4172 none) break ;;
4173 esac
4174 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4175 # mode. It turns out that the SunPro C++ compiler does not properly
4176 # handle `-M -o', and we need to detect this.
4177 if depmode=$depmode \
4178 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4179 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4180 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4181 >/dev/null 2>conftest.err &&
4182 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4183 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4184 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4185 # icc doesn't choke on unknown options, it will just issue warnings
4186 # or remarks (even with -Werror). So we grep stderr for any message
4187 # that says an option was ignored or not supported.
4188 # When given -MP, icc 7.0 and 7.1 complain thusly:
4189 # icc: Command line warning: ignoring option '-M'; no argument required
4190 # The diagnosis changed in icc 8.0:
4191 # icc: Command line remark: option '-MP' not supported
4192 if (grep 'ignoring option' conftest.err ||
4193 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4194 am_cv_CXX_dependencies_compiler_type=$depmode
4195 break
4198 done
4200 cd ..
4201 rm -rf conftest.dir
4202 else
4203 am_cv_CXX_dependencies_compiler_type=none
4207 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4208 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4209 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4214 test "x$enable_dependency_tracking" != xno \
4215 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4216 am__fastdepCXX_TRUE=
4217 am__fastdepCXX_FALSE='#'
4218 else
4219 am__fastdepCXX_TRUE='#'
4220 am__fastdepCXX_FALSE=
4226 if test -n "$ac_tool_prefix"; then
4227 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4228 set dummy ${ac_tool_prefix}as; ac_word=$2
4229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4231 if test "${ac_cv_prog_AS+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 else
4234 if test -n "$AS"; then
4235 ac_cv_prog_AS="$AS" # Let the user override the test.
4236 else
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4244 ac_cv_prog_AS="${ac_tool_prefix}as"
4245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 break 2
4248 done
4249 done
4250 IFS=$as_save_IFS
4254 AS=$ac_cv_prog_AS
4255 if test -n "$AS"; then
4256 { echo "$as_me:$LINENO: result: $AS" >&5
4257 echo "${ECHO_T}$AS" >&6; }
4258 else
4259 { echo "$as_me:$LINENO: result: no" >&5
4260 echo "${ECHO_T}no" >&6; }
4265 if test -z "$ac_cv_prog_AS"; then
4266 ac_ct_AS=$AS
4267 # Extract the first word of "as", so it can be a program name with args.
4268 set dummy as; ac_word=$2
4269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4271 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274 if test -n "$ac_ct_AS"; then
4275 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4276 else
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4284 ac_cv_prog_ac_ct_AS="as"
4285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4288 done
4289 done
4290 IFS=$as_save_IFS
4294 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4295 if test -n "$ac_ct_AS"; then
4296 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4297 echo "${ECHO_T}$ac_ct_AS" >&6; }
4298 else
4299 { echo "$as_me:$LINENO: result: no" >&5
4300 echo "${ECHO_T}no" >&6; }
4303 if test "x$ac_ct_AS" = x; then
4304 AS=""
4305 else
4306 case $cross_compiling:$ac_tool_warned in
4307 yes:)
4308 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4309 whose name does not start with the host triplet. If you think this
4310 configuration is useful to you, please write to autoconf@gnu.org." >&5
4311 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4312 whose name does not start with the host triplet. If you think this
4313 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4314 ac_tool_warned=yes ;;
4315 esac
4316 AS=$ac_ct_AS
4318 else
4319 AS="$ac_cv_prog_AS"
4322 if test -n "$ac_tool_prefix"; then
4323 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4324 set dummy ${ac_tool_prefix}ld; ac_word=$2
4325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4327 if test "${ac_cv_prog_LD+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330 if test -n "$LD"; then
4331 ac_cv_prog_LD="$LD" # Let the user override the test.
4332 else
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH
4336 IFS=$as_save_IFS
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4340 ac_cv_prog_LD="${ac_tool_prefix}ld"
4341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 break 2
4344 done
4345 done
4346 IFS=$as_save_IFS
4350 LD=$ac_cv_prog_LD
4351 if test -n "$LD"; then
4352 { echo "$as_me:$LINENO: result: $LD" >&5
4353 echo "${ECHO_T}$LD" >&6; }
4354 else
4355 { echo "$as_me:$LINENO: result: no" >&5
4356 echo "${ECHO_T}no" >&6; }
4361 if test -z "$ac_cv_prog_LD"; then
4362 ac_ct_LD=$LD
4363 # Extract the first word of "ld", so it can be a program name with args.
4364 set dummy ld; ac_word=$2
4365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4367 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370 if test -n "$ac_ct_LD"; then
4371 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4372 else
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4380 ac_cv_prog_ac_ct_LD="ld"
4381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
4384 done
4385 done
4386 IFS=$as_save_IFS
4390 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4391 if test -n "$ac_ct_LD"; then
4392 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4393 echo "${ECHO_T}$ac_ct_LD" >&6; }
4394 else
4395 { echo "$as_me:$LINENO: result: no" >&5
4396 echo "${ECHO_T}no" >&6; }
4399 if test "x$ac_ct_LD" = x; then
4400 LD=""
4401 else
4402 case $cross_compiling:$ac_tool_warned in
4403 yes:)
4404 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4405 whose name does not start with the host triplet. If you think this
4406 configuration is useful to you, please write to autoconf@gnu.org." >&5
4407 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4408 whose name does not start with the host triplet. If you think this
4409 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4410 ac_tool_warned=yes ;;
4411 esac
4412 LD=$ac_ct_LD
4414 else
4415 LD="$ac_cv_prog_LD"
4418 if test -n "$ac_tool_prefix"; then
4419 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4420 set dummy ${ac_tool_prefix}ar; ac_word=$2
4421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4423 if test "${ac_cv_prog_AR+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426 if test -n "$AR"; then
4427 ac_cv_prog_AR="$AR" # Let the user override the test.
4428 else
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4436 ac_cv_prog_AR="${ac_tool_prefix}ar"
4437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 break 2
4440 done
4441 done
4442 IFS=$as_save_IFS
4446 AR=$ac_cv_prog_AR
4447 if test -n "$AR"; then
4448 { echo "$as_me:$LINENO: result: $AR" >&5
4449 echo "${ECHO_T}$AR" >&6; }
4450 else
4451 { echo "$as_me:$LINENO: result: no" >&5
4452 echo "${ECHO_T}no" >&6; }
4457 if test -z "$ac_cv_prog_AR"; then
4458 ac_ct_AR=$AR
4459 # Extract the first word of "ar", so it can be a program name with args.
4460 set dummy ar; ac_word=$2
4461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466 if test -n "$ac_ct_AR"; then
4467 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4468 else
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4476 ac_cv_prog_ac_ct_AR="ar"
4477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 break 2
4480 done
4481 done
4482 IFS=$as_save_IFS
4486 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4487 if test -n "$ac_ct_AR"; then
4488 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4489 echo "${ECHO_T}$ac_ct_AR" >&6; }
4490 else
4491 { echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6; }
4495 if test "x$ac_ct_AR" = x; then
4496 AR=""
4497 else
4498 case $cross_compiling:$ac_tool_warned in
4499 yes:)
4500 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4501 whose name does not start with the host triplet. If you think this
4502 configuration is useful to you, please write to autoconf@gnu.org." >&5
4503 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4504 whose name does not start with the host triplet. If you think this
4505 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4506 ac_tool_warned=yes ;;
4507 esac
4508 AR=$ac_ct_AR
4510 else
4511 AR="$ac_cv_prog_AR"
4514 if test -n "$ac_tool_prefix"; then
4515 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4516 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4519 if test "${ac_cv_prog_RANLIB+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522 if test -n "$RANLIB"; then
4523 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4524 else
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4532 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 break 2
4536 done
4537 done
4538 IFS=$as_save_IFS
4542 RANLIB=$ac_cv_prog_RANLIB
4543 if test -n "$RANLIB"; then
4544 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4545 echo "${ECHO_T}$RANLIB" >&6; }
4546 else
4547 { echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6; }
4553 if test -z "$ac_cv_prog_RANLIB"; then
4554 ac_ct_RANLIB=$RANLIB
4555 # Extract the first word of "ranlib", so it can be a program name with args.
4556 set dummy ranlib; ac_word=$2
4557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4559 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562 if test -n "$ac_ct_RANLIB"; then
4563 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_ac_ct_RANLIB="ranlib"
4573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4576 done
4577 done
4578 IFS=$as_save_IFS
4582 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4583 if test -n "$ac_ct_RANLIB"; then
4584 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4585 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4586 else
4587 { echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6; }
4591 if test "x$ac_ct_RANLIB" = x; then
4592 RANLIB=":"
4593 else
4594 case $cross_compiling:$ac_tool_warned in
4595 yes:)
4596 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4597 whose name does not start with the host triplet. If you think this
4598 configuration is useful to you, please write to autoconf@gnu.org." >&5
4599 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4600 whose name does not start with the host triplet. If you think this
4601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4602 ac_tool_warned=yes ;;
4603 esac
4604 RANLIB=$ac_ct_RANLIB
4606 else
4607 RANLIB="$ac_cv_prog_RANLIB"
4610 for ac_prog in gawk mawk nawk awk
4612 # Extract the first word of "$ac_prog", so it can be a program name with args.
4613 set dummy $ac_prog; ac_word=$2
4614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4616 if test "${ac_cv_prog_AWK+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619 if test -n "$AWK"; then
4620 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4621 else
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH
4625 IFS=$as_save_IFS
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4629 ac_cv_prog_AWK="$ac_prog"
4630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 break 2
4633 done
4634 done
4635 IFS=$as_save_IFS
4639 AWK=$ac_cv_prog_AWK
4640 if test -n "$AWK"; then
4641 { echo "$as_me:$LINENO: result: $AWK" >&5
4642 echo "${ECHO_T}$AWK" >&6; }
4643 else
4644 { echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6; }
4649 test -n "$AWK" && break
4650 done
4652 for ac_prog in jar fastjar
4654 # Extract the first word of "$ac_prog", so it can be a program name with args.
4655 set dummy $ac_prog; ac_word=$2
4656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4658 if test "${ac_cv_prog_JAR+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661 if test -n "$JAR"; then
4662 ac_cv_prog_JAR="$JAR" # Let the user override the test.
4663 else
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH
4667 IFS=$as_save_IFS
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4671 ac_cv_prog_JAR="$ac_prog"
4672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 break 2
4675 done
4676 done
4677 IFS=$as_save_IFS
4681 JAR=$ac_cv_prog_JAR
4682 if test -n "$JAR"; then
4683 { echo "$as_me:$LINENO: result: $JAR" >&5
4684 echo "${ECHO_T}$JAR" >&6; }
4685 else
4686 { echo "$as_me:$LINENO: result: no" >&5
4687 echo "${ECHO_T}no" >&6; }
4691 test -n "$JAR" && break
4692 done
4693 test -n "$JAR" || JAR="no"
4695 # Extract the first word of "zip", so it can be a program name with args.
4696 set dummy zip; ac_word=$2
4697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4699 if test "${ac_cv_path_ZIP+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702 case $ZIP in
4703 [\\/]* | ?:[\\/]*)
4704 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4714 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4718 done
4719 done
4720 IFS=$as_save_IFS
4722 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4724 esac
4726 ZIP=$ac_cv_path_ZIP
4727 if test -n "$ZIP"; then
4728 { echo "$as_me:$LINENO: result: $ZIP" >&5
4729 echo "${ECHO_T}$ZIP" >&6; }
4730 else
4731 { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4736 # Extract the first word of "unzip", so it can be a program name with args.
4737 set dummy unzip; ac_word=$2
4738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740 if test "${ac_cv_path_UNZIP+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743 case $UNZIP in
4744 [\\/]* | ?:[\\/]*)
4745 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4755 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 break 2
4759 done
4760 done
4761 IFS=$as_save_IFS
4763 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4765 esac
4767 UNZIP=$ac_cv_path_UNZIP
4768 if test -n "$UNZIP"; then
4769 { echo "$as_me:$LINENO: result: $UNZIP" >&5
4770 echo "${ECHO_T}$UNZIP" >&6; }
4771 else
4772 { echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6; }
4779 if test "$JAR" = no; then
4780 BASH_JAR_TRUE=
4781 BASH_JAR_FALSE='#'
4782 else
4783 BASH_JAR_TRUE='#'
4784 BASH_JAR_FALSE=
4787 if test "$ZIP" = no; then
4788 if test "$JAR" = no; then
4789 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4790 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4791 { (exit 1); exit 1; }; }
4793 else
4794 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4795 JAR=`pwd`/scripts/jar
4798 # Find a good install program. We prefer a C program (faster),
4799 # so one script is as good as another. But avoid the broken or
4800 # incompatible versions:
4801 # SysV /etc/install, /usr/sbin/install
4802 # SunOS /usr/etc/install
4803 # IRIX /sbin/install
4804 # AIX /bin/install
4805 # AmigaOS /C/install, which installs bootblocks on floppy discs
4806 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4807 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4808 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4809 # OS/2's system install, which has a completely different semantic
4810 # ./install, which can be erroneously created by make from ./install.sh.
4811 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4812 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4813 if test -z "$INSTALL"; then
4814 if test "${ac_cv_path_install+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 # Account for people who put trailing slashes in PATH elements.
4823 case $as_dir/ in
4824 ./ | .// | /cC/* | \
4825 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4826 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4827 /usr/ucb/* ) ;;
4829 # OSF1 and SCO ODT 3.0 have their own names for install.
4830 # Don't use installbsd from OSF since it installs stuff as root
4831 # by default.
4832 for ac_prog in ginstall scoinst install; do
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4835 if test $ac_prog = install &&
4836 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4837 # AIX install. It has an incompatible calling convention.
4839 elif test $ac_prog = install &&
4840 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4841 # program-specific install script used by HP pwplus--don't use.
4843 else
4844 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4845 break 3
4848 done
4849 done
4851 esac
4852 done
4853 IFS=$as_save_IFS
4857 if test "${ac_cv_path_install+set}" = set; then
4858 INSTALL=$ac_cv_path_install
4859 else
4860 # As a last resort, use the slow shell script. Don't cache a
4861 # value for INSTALL within a source directory, because that will
4862 # break other packages using the cache if that directory is
4863 # removed, or if the value is a relative name.
4864 INSTALL=$ac_install_sh
4867 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4868 echo "${ECHO_T}$INSTALL" >&6; }
4870 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4871 # It thinks the first close brace ends the variable substitution.
4872 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4874 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4876 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4879 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4880 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
4881 # Check whether --enable-maintainer-mode was given.
4882 if test "${enable_maintainer_mode+set}" = set; then
4883 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4884 else
4885 USE_MAINTAINER_MODE=no
4888 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4889 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
4892 if test $USE_MAINTAINER_MODE = yes; then
4893 MAINTAINER_MODE_TRUE=
4894 MAINTAINER_MODE_FALSE='#'
4895 else
4896 MAINTAINER_MODE_TRUE='#'
4897 MAINTAINER_MODE_FALSE=
4900 MAINT=$MAINTAINER_MODE_TRUE
4906 # configure.host sets the following important variables
4907 # libgcj_cflags - host specific C compiler flags
4908 # libgcj_cxxflags - host specific C++ compiler flags
4909 # libgcj_javaflags - host specific Java compiler flags
4911 libgcj_cflags=
4912 libgcj_cxxflags=
4913 libgcj_javaflags=
4915 . ${srcdir}/configure.host
4917 LIBGCJ_CFLAGS="${libgcj_cflags}"
4918 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4919 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4920 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4926 # Only use libltdl for non-newlib builds.
4927 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4928 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4929 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
4930 library_names_spec=
4931 libname_spec='lib$name'
4932 soname_spec=
4933 shrext=".so"
4934 postinstall_cmds=
4935 postuninstall_cmds=
4936 finish_cmds=
4937 finish_eval=
4938 shlibpath_var=
4939 shlibpath_overrides_runpath=unknown
4940 version_type=none
4941 dynamic_linker="$host_os ld.so"
4942 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4943 if test "$GCC" = yes; then
4944 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4945 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4946 # if the path contains ";" then we assume it to be the separator
4947 # otherwise default to the standard path separator (i.e. ":") - it is
4948 # assumed that no part of a normal pathname contains ";" but that should
4949 # okay in the real world where ";" in dirpaths is itself problematic.
4950 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4951 else
4952 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4954 else
4955 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4957 need_lib_prefix=unknown
4958 hardcode_into_libs=no
4960 # when you set need_version to no, make sure it does not cause -set_version
4961 # flags to be left without arguments
4962 need_version=unknown
4964 case $host_os in
4965 aix3*)
4966 version_type=linux
4967 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4968 shlibpath_var=LIBPATH
4970 # AIX 3 has no versioning support, so we append a major version to the name.
4971 soname_spec='${libname}${release}${shared_ext}$major'
4974 aix4* | aix5*)
4975 version_type=linux
4976 need_lib_prefix=no
4977 need_version=no
4978 hardcode_into_libs=yes
4979 if test "$host_cpu" = ia64; then
4980 # AIX 5 supports IA64
4981 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4982 shlibpath_var=LD_LIBRARY_PATH
4983 else
4984 # With GCC up to 2.95.x, collect2 would create an import file
4985 # for dependence libraries. The import file would start with
4986 # the line `#! .'. This would cause the generated library to
4987 # depend on `.', always an invalid library. This was fixed in
4988 # development snapshots of GCC prior to 3.0.
4989 case $host_os in
4990 aix4 | aix4.[01] | aix4.[01].*)
4991 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4992 echo ' yes '
4993 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4995 else
4996 can_build_shared=no
4999 esac
5000 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
5001 # soname into executable. Probably we can add versioning support to
5002 # collect2, so additional links can be useful in future.
5003 if test "$aix_use_runtimelinking" = yes; then
5004 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5005 # instead of lib<name>.a to let people know that these are not
5006 # typical AIX shared libraries.
5007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5008 else
5009 # We preserve .a as extension for shared libraries through AIX4.2
5010 # and later when we are not doing run time linking.
5011 library_names_spec='${libname}${release}.a $libname.a'
5012 soname_spec='${libname}${release}${shared_ext}$major'
5014 shlibpath_var=LIBPATH
5018 amigaos*)
5019 library_names_spec='$libname.ixlibrary $libname.a'
5020 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5021 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'
5024 beos*)
5025 library_names_spec='${libname}${shared_ext}'
5026 dynamic_linker="$host_os ld.so"
5027 shlibpath_var=LIBRARY_PATH
5030 bsdi4*)
5031 version_type=linux
5032 need_version=no
5033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5034 soname_spec='${libname}${release}${shared_ext}$major'
5035 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5036 shlibpath_var=LD_LIBRARY_PATH
5037 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5038 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5039 # the default ld.so.conf also contains /usr/contrib/lib and
5040 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5041 # libtool to hard-code these into programs
5044 cygwin* | mingw* | pw32*)
5045 version_type=windows
5046 shrext=".dll"
5047 need_version=no
5048 need_lib_prefix=no
5050 case $GCC,$host_os in
5051 yes,cygwin* | yes,mingw* | yes,pw32*)
5052 library_names_spec='$libname.dll.a'
5053 # DLL is installed to $(libdir)/../bin by postinstall_cmds
5054 postinstall_cmds='base_file=`basename \${file}`~
5055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
5056 dldir=$destdir/`dirname \$dlpath`~
5057 test -d \$dldir || mkdir -p \$dldir~
5058 $install_prog $dir/$dlname \$dldir/$dlname'
5059 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
5060 dlpath=$dir/\$dldll~
5061 $rm \$dlpath'
5062 shlibpath_overrides_runpath=yes
5064 case $host_os in
5065 cygwin*)
5066 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
5067 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5068 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
5070 mingw*)
5071 # MinGW DLLs use traditional 'lib' prefix
5072 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5073 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
5074 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
5075 # It is most probably a Windows format PATH printed by
5076 # mingw gcc, but we are running on Cygwin. Gcc prints its search
5077 # path with ; separators, and with drive letters. We can handle the
5078 # drive letters (cygwin fileutils understands them), so leave them,
5079 # especially as we might pass files found there to a mingw objdump,
5080 # which wouldn't understand a cygwinified path. Ahh.
5081 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
5082 else
5083 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
5086 pw32*)
5087 # pw32 DLLs use 'pw' prefix rather than 'lib'
5088 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
5090 esac
5094 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
5096 esac
5097 dynamic_linker='Win32 ld.exe'
5098 # FIXME: first we should search . and the directory the executable is in
5099 shlibpath_var=PATH
5102 darwin* | rhapsody*)
5103 dynamic_linker="$host_os dyld"
5104 version_type=darwin
5105 need_lib_prefix=no
5106 need_version=no
5107 # FIXME: Relying on posixy $() will cause problems for
5108 # cross-compilation, but unfortunately the echo tests do not
5109 # yet detect zsh echo's removal of \ escapes.
5110 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
5111 soname_spec='${libname}${release}${major}$shared_ext'
5112 shlibpath_overrides_runpath=yes
5113 shlibpath_var=DYLD_LIBRARY_PATH
5114 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
5115 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
5116 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
5117 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"`
5119 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
5122 dgux*)
5123 version_type=linux
5124 need_lib_prefix=no
5125 need_version=no
5126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
5127 soname_spec='${libname}${release}${shared_ext}$major'
5128 shlibpath_var=LD_LIBRARY_PATH
5131 freebsd1*)
5132 dynamic_linker=no
5135 freebsd*)
5136 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5137 version_type=freebsd-$objformat
5138 case $version_type in
5139 freebsd-elf*)
5140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
5141 need_version=no
5142 need_lib_prefix=no
5144 freebsd-*)
5145 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
5146 need_version=yes
5148 esac
5149 shlibpath_var=LD_LIBRARY_PATH
5150 case $host_os in
5151 freebsd2*)
5152 shlibpath_overrides_runpath=yes
5154 freebsd3.01* | freebsdelf3.01*)
5155 shlibpath_overrides_runpath=yes
5156 hardcode_into_libs=yes
5158 *) # from 3.2 on
5159 shlibpath_overrides_runpath=no
5160 hardcode_into_libs=yes
5162 esac
5165 gnu*)
5166 version_type=linux
5167 need_lib_prefix=no
5168 need_version=no
5169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
5170 soname_spec='${libname}${release}${shared_ext}$major'
5171 shlibpath_var=LD_LIBRARY_PATH
5172 hardcode_into_libs=yes
5175 hpux9* | hpux10* | hpux11*)
5176 # Give a soname corresponding to the major version so that dld.sl refuses to
5177 # link against other versions.
5178 version_type=sunos
5179 need_lib_prefix=no
5180 need_version=no
5181 case "$host_cpu" in
5182 ia64*)
5183 shrext='.so'
5184 hardcode_into_libs=yes
5185 dynamic_linker="$host_os dld.so"
5186 shlibpath_var=LD_LIBRARY_PATH
5187 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5189 soname_spec='${libname}${release}${shared_ext}$major'
5190 if test "X$HPUX_IA64_MODE" = X32; then
5191 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
5192 else
5193 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
5195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5197 hppa*64*)
5198 shrext='.sl'
5199 hardcode_into_libs=yes
5200 dynamic_linker="$host_os dld.sl"
5201 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
5202 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5204 soname_spec='${libname}${release}${shared_ext}$major'
5205 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
5206 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5209 shrext='.sl'
5210 dynamic_linker="$host_os dld.sl"
5211 shlibpath_var=SHLIB_PATH
5212 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5214 soname_spec='${libname}${release}${shared_ext}$major'
5216 esac
5217 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5218 postinstall_cmds='chmod 555 $lib'
5221 irix5* | irix6* | nonstopux*)
5222 case $host_os in
5223 nonstopux*) version_type=nonstopux ;;
5225 if test "$lt_cv_prog_gnu_ld" = yes; then
5226 version_type=linux
5227 else
5228 version_type=irix
5229 fi ;;
5230 esac
5231 need_lib_prefix=no
5232 need_version=no
5233 soname_spec='${libname}${release}${shared_ext}$major'
5234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
5235 case $host_os in
5236 irix5* | nonstopux*)
5237 libsuff= shlibsuff=
5240 case $LD in # libtool.m4 will add one of these switches to LD
5241 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
5242 libsuff= shlibsuff= libmagic=32-bit;;
5243 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
5244 libsuff=32 shlibsuff=N32 libmagic=N32;;
5245 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
5246 libsuff=64 shlibsuff=64 libmagic=64-bit;;
5247 *) libsuff= shlibsuff= libmagic=never-match;;
5248 esac
5250 esac
5251 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5252 shlibpath_overrides_runpath=no
5253 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5254 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5255 hardcode_into_libs=yes
5258 # No shared lib support for Linux oldld, aout, or coff.
5259 linux*oldld* | linux*aout* | linux*coff*)
5260 dynamic_linker=no
5263 # This must be Linux ELF.
5264 linux*)
5265 version_type=linux
5266 need_lib_prefix=no
5267 need_version=no
5268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5269 soname_spec='${libname}${release}${shared_ext}$major'
5270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5271 shlibpath_var=LD_LIBRARY_PATH
5272 shlibpath_overrides_runpath=no
5273 # This implies no fast_install, which is unacceptable.
5274 # Some rework will be needed to allow for fast_install
5275 # before this can be enabled.
5276 hardcode_into_libs=yes
5278 # We used to test for /lib/ld.so.1 and disable shared libraries on
5279 # powerpc, because MkLinux only supported shared libraries with the
5280 # GNU dynamic linker. Since this was broken with cross compilers,
5281 # most powerpc-linux boxes support dynamic linking these days and
5282 # people can always --disable-shared, the test was removed, and we
5283 # assume the GNU/Linux dynamic linker is in use.
5284 dynamic_linker='GNU/Linux ld.so'
5287 netbsd*)
5288 version_type=sunos
5289 need_lib_prefix=no
5290 need_version=no
5291 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5294 dynamic_linker='NetBSD (a.out) ld.so'
5295 else
5296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
5297 soname_spec='${libname}${release}${shared_ext}$major'
5298 dynamic_linker='NetBSD ld.elf_so'
5300 shlibpath_var=LD_LIBRARY_PATH
5301 shlibpath_overrides_runpath=yes
5302 hardcode_into_libs=yes
5305 newsos6)
5306 version_type=linux
5307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5308 shlibpath_var=LD_LIBRARY_PATH
5309 shlibpath_overrides_runpath=yes
5312 nto-qnx)
5313 version_type=linux
5314 need_lib_prefix=no
5315 need_version=no
5316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5317 soname_spec='${libname}${release}${shared_ext}$major'
5318 shlibpath_var=LD_LIBRARY_PATH
5319 shlibpath_overrides_runpath=yes
5322 openbsd*)
5323 version_type=sunos
5324 need_lib_prefix=no
5325 need_version=no
5326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5328 shlibpath_var=LD_LIBRARY_PATH
5329 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5330 case $host_os in
5331 openbsd2.[89] | openbsd2.[89].*)
5332 shlibpath_overrides_runpath=no
5335 shlibpath_overrides_runpath=yes
5337 esac
5338 else
5339 shlibpath_overrides_runpath=yes
5343 os2*)
5344 libname_spec='$name'
5345 shrext=".dll"
5346 need_lib_prefix=no
5347 library_names_spec='$libname${shared_ext} $libname.a'
5348 dynamic_linker='OS/2 ld.exe'
5349 shlibpath_var=LIBPATH
5352 osf3* | osf4* | osf5*)
5353 version_type=osf
5354 need_lib_prefix=no
5355 need_version=no
5356 soname_spec='${libname}${release}${shared_ext}$major'
5357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5358 shlibpath_var=LD_LIBRARY_PATH
5359 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5360 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5363 sco3.2v5*)
5364 version_type=osf
5365 soname_spec='${libname}${release}${shared_ext}$major'
5366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5367 shlibpath_var=LD_LIBRARY_PATH
5370 solaris*)
5371 version_type=linux
5372 need_lib_prefix=no
5373 need_version=no
5374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5375 soname_spec='${libname}${release}${shared_ext}$major'
5376 shlibpath_var=LD_LIBRARY_PATH
5377 shlibpath_overrides_runpath=yes
5378 hardcode_into_libs=yes
5379 # ldd complains unless libraries are executable
5380 postinstall_cmds='chmod +x $lib'
5383 sunos4*)
5384 version_type=sunos
5385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5386 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5387 shlibpath_var=LD_LIBRARY_PATH
5388 shlibpath_overrides_runpath=yes
5389 if test "$with_gnu_ld" = yes; then
5390 need_lib_prefix=no
5392 need_version=yes
5395 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5396 version_type=linux
5397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5398 soname_spec='${libname}${release}${shared_ext}$major'
5399 shlibpath_var=LD_LIBRARY_PATH
5400 case $host_vendor in
5401 sni)
5402 shlibpath_overrides_runpath=no
5403 need_lib_prefix=no
5404 export_dynamic_flag_spec='${wl}-Blargedynsym'
5405 runpath_var=LD_RUN_PATH
5407 siemens)
5408 need_lib_prefix=no
5410 motorola)
5411 need_lib_prefix=no
5412 need_version=no
5413 shlibpath_overrides_runpath=no
5414 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5416 esac
5419 sysv4*MP*)
5420 if test -d /usr/nec ;then
5421 version_type=linux
5422 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5423 soname_spec='$libname${shared_ext}.$major'
5424 shlibpath_var=LD_LIBRARY_PATH
5428 uts4*)
5429 version_type=linux
5430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5431 soname_spec='${libname}${release}${shared_ext}$major'
5432 shlibpath_var=LD_LIBRARY_PATH
5436 dynamic_linker=no
5438 esac
5439 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5440 echo "${ECHO_T}$dynamic_linker" >&6; }
5441 test "$dynamic_linker" = no && can_build_shared=no
5444 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
5445 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
5446 if test "${libltdl_cv_shlibpath_var+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 else
5449 libltdl_cv_shlibpath_var="$shlibpath_var"
5451 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
5452 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
5453 if test -n "$libltdl_cv_shlibpath_var"; then
5455 cat >>confdefs.h <<_ACEOF
5456 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
5457 _ACEOF
5463 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
5466 # See if the user has requested runtime debugging.
5467 LIBGCJDEBUG="disable"
5469 # Check whether --enable-libgcj-debug was given.
5470 if test "${enable_libgcj_debug+set}" = set; then
5471 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
5473 cat >>confdefs.h <<\_ACEOF
5474 #define DEBUG 1
5475 _ACEOF
5477 LIBGCJDEBUG="enable"
5482 # Determine which AWT peer libraries to build
5483 # Check whether --enable-java-awt was given.
5484 if test "${enable_java_awt+set}" = set; then
5485 enableval=$enable_java_awt;
5489 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
5490 use_xlib_awt=""
5491 use_gtk_awt=""
5492 use_qt_awt=""
5493 # The default toolkit to use is the first one specified.
5494 TOOLKIT=
5497 for peer in $peerlibs ; do
5498 case $peer in
5499 xlib)
5500 if test "$no_x" = yes; then
5501 echo "*** xlib peers requested but no X library available" 1>&2
5502 exit 1
5503 else
5504 use_xlib_awt="yes"
5505 if test -z "$TOOLKIT"; then
5506 TOOLKIT=gnu.awt.xlib.XToolkit
5510 gtk)
5511 if test "$no_x" = yes; then
5512 echo "*** gtk peers requested but no X library available" 1>&2
5513 exit 1
5514 else
5515 use_gtk_awt=yes
5516 if test -z "$TOOLKIT"; then
5517 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5522 if test "$no_x" = yes; then
5523 # Perhaps we should admit the possibility of embedded Qt.
5524 echo "*** Qt peers requested but no X library available" 1>&2
5525 exit 1
5526 else
5527 use_qt_awt=yes
5528 if test -z "$TOOLKIT"; then
5529 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5534 use_xlib_awt=
5535 use_gtk_awt=
5536 use_qt_awt=
5537 break
5540 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5541 exit 1
5542 esac
5543 done
5547 if test "$use_xlib_awt" = yes; then
5548 XLIB_AWT_TRUE=
5549 XLIB_AWT_FALSE='#'
5550 else
5551 XLIB_AWT_TRUE='#'
5552 XLIB_AWT_FALSE=
5557 if test "$use_qt_awt" = yes; then
5558 QT_AWT_TRUE=
5559 QT_AWT_FALSE='#'
5560 else
5561 QT_AWT_TRUE='#'
5562 QT_AWT_FALSE=
5566 # Create standard.omit based on decisions we just made.
5567 cp $srcdir/standard.omit.in standard.omit
5568 if test "$use_xlib_awt" != yes; then
5569 echo gnu/awt/xlib >> standard.omit
5570 echo gnu/gcj/xlib >> standard.omit
5572 if test "$use_qt_awt" != yes; then
5573 echo gnu/java/awt/peer/qt >> standard.omit
5576 if test -z "${with_multisubdir}"; then
5577 builddotdot=.
5578 else
5579 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5582 NATIVE=yes
5584 # Which gcj do we use?
5585 which_gcj=default
5586 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5587 if test -n "${with_cross_host}"; then
5588 # We are being configured with a cross compiler. We can't
5589 # use ac_exeext, because that is for the target platform.
5590 NATIVE=no
5591 cross_host_exeext=
5592 case "${with_cross_host}" in
5593 *mingw* | *cygwin*)
5594 cross_host_exeext=.exe
5596 esac
5597 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5598 if test x"$build_noncanonical" = x"$with_cross_host"; then
5599 # Ordinary cross (host!=target and host=build)
5600 which_gcj=built
5601 else
5602 # Canadian cross (host!=target and host!=build)
5603 which_gcj=cross
5605 else
5606 which_gcj=cross
5608 else
5609 # We are being configured with a native or crossed-native compiler
5610 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5611 if test x"$build" = x"$host"; then
5612 # True native build (host=target and host=build)
5613 which_gcj=built
5614 else
5615 # Crossed-native build (host=target and host!=build)
5616 which_gcj=cross
5618 else
5619 which_gcj=path
5622 case "${which_gcj}" in
5623 built)
5624 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5625 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5627 cross)
5628 if test "x${with_newlib}" = "xyes"; then
5629 # FIXME (comment): Why is this needed?
5630 GCC_UNWIND_INCLUDE=
5631 GCJ="${target_noncanonical}-gcj"
5632 else
5633 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5635 GCJH='$(target_noncanonical)-gcjh'
5637 path)
5638 GCJ="gcj -B`${PWDCMD-pwd}`/"
5639 GCJH=gcjh
5641 esac
5645 # Create it, so that compile/link tests don't fail
5646 test -f libgcj.spec || touch libgcj.spec
5650 # Set up to configure Classpath.
5651 # FIXME: no supported way to pass args in autoconf.
5652 ac_configure_args="$ac_configure_args --disable-load-library"
5653 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5654 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5655 dir1=`cd $srcdir && pwd`
5656 dir2=`pwd`
5657 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5658 ac_configure_args="$ac_configure_args --disable-core-jni"
5659 ac_configure_args="$ac_configure_args --disable-examples"
5660 ac_configure_args="$ac_configure_args --with-glibj=build"
5661 if test "$use_gtk_awt" != yes; then
5662 ac_configure_args="$ac_configure_args --disable-gtk-peer"
5664 if test "$use_qt_awt" != yes; then
5665 ac_configure_args="$ac_configure_args --disable-qt-peer"
5666 else
5667 # We need this as qt is disabled by default in classpath.
5668 ac_configure_args="$ac_configure_args --enable-qt-peer"
5671 # Only use libltdl for non-newlib builds.
5672 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5673 case $enable_ltdl_convenience in
5674 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5675 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5676 { (exit 1); exit 1; }; } ;;
5677 "") enable_ltdl_convenience=yes
5678 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5679 esac
5680 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5681 INCLTDL='-I${top_srcdir}/''libltdl'
5684 DIRLTDL=libltdl
5686 cat >>confdefs.h <<\_ACEOF
5687 #define USE_LTDL 1
5688 _ACEOF
5690 # Sigh. Libtool's macro doesn't do the right thing.
5691 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5692 # FIXME: this is a hack.
5693 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5694 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5699 # Check whether --enable-shared was given.
5700 if test "${enable_shared+set}" = set; then
5701 enableval=$enable_shared; p=${PACKAGE-default}
5702 case $enableval in
5703 yes) enable_shared=yes ;;
5704 no) enable_shared=no ;;
5706 enable_shared=no
5707 # Look at the argument we got. We use all the common list separators.
5708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5709 for pkg in $enableval; do
5710 if test "X$pkg" = "X$p"; then
5711 enable_shared=yes
5713 done
5714 IFS="$ac_save_ifs"
5716 esac
5717 else
5718 enable_shared=yes
5721 # Check whether --enable-static was given.
5722 if test "${enable_static+set}" = set; then
5723 enableval=$enable_static; p=${PACKAGE-default}
5724 case $enableval in
5725 yes) enable_static=yes ;;
5726 no) enable_static=no ;;
5728 enable_static=no
5729 # Look at the argument we got. We use all the common list separators.
5730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5731 for pkg in $enableval; do
5732 if test "X$pkg" = "X$p"; then
5733 enable_static=yes
5735 done
5736 IFS="$ac_save_ifs"
5738 esac
5739 else
5740 enable_static=yes
5743 # Check whether --enable-fast-install was given.
5744 if test "${enable_fast_install+set}" = set; then
5745 enableval=$enable_fast_install; p=${PACKAGE-default}
5746 case $enableval in
5747 yes) enable_fast_install=yes ;;
5748 no) enable_fast_install=no ;;
5750 enable_fast_install=no
5751 # Look at the argument we got. We use all the common list separators.
5752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5753 for pkg in $enableval; do
5754 if test "X$pkg" = "X$p"; then
5755 enable_fast_install=yes
5757 done
5758 IFS="$ac_save_ifs"
5760 esac
5761 else
5762 enable_fast_install=yes
5766 # Check whether --with-gnu-ld was given.
5767 if test "${with_gnu_ld+set}" = set; then
5768 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5769 else
5770 with_gnu_ld=no
5773 ac_prog=ld
5774 if test "$GCC" = yes; then
5775 # Check if gcc -print-prog-name=ld gives a path.
5776 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5777 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5778 case $host in
5779 *-*-mingw*)
5780 # gcc leaves a trailing carriage return which upsets mingw
5781 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5783 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5784 esac
5785 case $ac_prog in
5786 # Accept absolute paths.
5787 [\\/]* | [A-Za-z]:[\\/]*)
5788 re_direlt='/[^/][^/]*/\.\./'
5789 # Canonicalize the path of ld
5790 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5791 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5792 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5793 done
5794 test -z "$LD" && LD="$ac_prog"
5797 # If it fails, then pretend we aren't using GCC.
5798 ac_prog=ld
5801 # If it is relative, then search for the first ld in PATH.
5802 with_gnu_ld=unknown
5804 esac
5805 elif test "$with_gnu_ld" = yes; then
5806 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5807 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5808 else
5809 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5810 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5812 if test "${lt_cv_path_LD+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815 if test -z "$LD"; then
5816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5817 for ac_dir in $PATH; do
5818 test -z "$ac_dir" && ac_dir=.
5819 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5820 lt_cv_path_LD="$ac_dir/$ac_prog"
5821 # Check to see if the program is GNU ld. I'd rather use --version,
5822 # but apparently some GNU ld's only accept -v.
5823 # Break only if it was the GNU/non-GNU ld that we prefer.
5824 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5825 test "$with_gnu_ld" != no && break
5826 else
5827 test "$with_gnu_ld" != yes && break
5830 done
5831 IFS="$ac_save_ifs"
5832 else
5833 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5837 LD="$lt_cv_path_LD"
5838 if test -n "$LD"; then
5839 { echo "$as_me:$LINENO: result: $LD" >&5
5840 echo "${ECHO_T}$LD" >&6; }
5841 else
5842 { echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6; }
5845 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5846 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5847 { (exit 1); exit 1; }; }
5848 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5849 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5850 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5854 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5855 lt_cv_prog_gnu_ld=yes
5856 else
5857 lt_cv_prog_gnu_ld=no
5860 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5861 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5862 with_gnu_ld=$lt_cv_prog_gnu_ld
5865 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5866 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5867 if test "${lt_cv_ld_reload_flag+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870 lt_cv_ld_reload_flag='-r'
5872 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5873 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5874 reload_flag=$lt_cv_ld_reload_flag
5875 test -n "$reload_flag" && reload_flag=" $reload_flag"
5877 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5878 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5879 if test "${lt_cv_path_NM+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882 if test -n "$NM"; then
5883 # Let the user override the test.
5884 lt_cv_path_NM="$NM"
5885 else
5886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5887 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5888 test -z "$ac_dir" && ac_dir=.
5889 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5890 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5891 # Check to see if the nm accepts a BSD-compat flag.
5892 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5893 # nm: unknown option "B" ignored
5894 # Tru64's nm complains that /dev/null is an invalid object file
5895 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5896 lt_cv_path_NM="$tmp_nm -B"
5897 break
5898 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5899 lt_cv_path_NM="$tmp_nm -p"
5900 break
5901 else
5902 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5903 continue # so that we can try to find one that supports BSD flags
5906 done
5907 IFS="$ac_save_ifs"
5908 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5912 NM="$lt_cv_path_NM"
5913 { echo "$as_me:$LINENO: result: $NM" >&5
5914 echo "${ECHO_T}$NM" >&6; }
5916 { echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5917 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6; }
5918 if test "${lt_cv_deplibs_check_method+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921 lt_cv_file_magic_cmd='$MAGIC_CMD'
5922 lt_cv_file_magic_test_file=
5923 lt_cv_deplibs_check_method='unknown'
5924 # Need to set the preceding variable on all platforms that support
5925 # interlibrary dependencies.
5926 # 'none' -- dependencies not supported.
5927 # `unknown' -- same as none, but documents that we really don't know.
5928 # 'pass_all' -- all dependencies passed with no checks.
5929 # 'test_compile' -- check by making test program.
5930 # 'file_magic [regex]' -- check by looking for files in library path
5931 # which responds to the $file_magic_cmd with a given egrep regex.
5932 # If you have `file' or equivalent on your system and you're not sure
5933 # whether `pass_all' will *always* work, you probably want this one.
5935 case $host_os in
5936 aix*)
5937 lt_cv_deplibs_check_method=pass_all
5940 beos*)
5941 lt_cv_deplibs_check_method=pass_all
5944 bsdi4*)
5945 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5946 lt_cv_file_magic_cmd='/usr/bin/file -L'
5947 lt_cv_file_magic_test_file=/shlib/libc.so
5950 cygwin* | mingw* |pw32*)
5951 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5952 lt_cv_file_magic_cmd='$OBJDUMP -f'
5955 darwin* | rhapsody*)
5956 # this will be overwritten by pass_all, but leave it in just in case
5957 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5958 lt_cv_file_magic_cmd='/usr/bin/file -L'
5959 case "$host_os" in
5960 rhapsody* | darwin1.012)
5961 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5963 *) # Darwin 1.3 on
5964 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5966 esac
5967 lt_cv_deplibs_check_method=pass_all
5970 freebsd* | kfreebsd*-gnu)
5971 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5972 case $host_cpu in
5973 i*86 )
5974 # Not sure whether the presence of OpenBSD here was a mistake.
5975 # Let's accept both of them until this is cleared up.
5976 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5977 lt_cv_file_magic_cmd=/usr/bin/file
5978 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5980 esac
5981 else
5982 lt_cv_deplibs_check_method=pass_all
5986 gnu*)
5987 lt_cv_deplibs_check_method=pass_all
5990 hpux10.20*|hpux11*)
5991 case $host_cpu in
5992 hppa*)
5993 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5994 lt_cv_file_magic_cmd=/usr/bin/file
5995 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5997 ia64*)
5998 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5999 lt_cv_file_magic_cmd=/usr/bin/file
6000 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6002 esac
6005 irix5* | irix6*)
6006 case $host_os in
6007 irix5*)
6008 # this will be overridden with pass_all, but let us keep it just in case
6009 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
6012 case $LD in
6013 *-32|*"-32 ") libmagic=32-bit;;
6014 *-n32|*"-n32 ") libmagic=N32;;
6015 *-64|*"-64 ") libmagic=64-bit;;
6016 *) libmagic=never-match;;
6017 esac
6018 # this will be overridden with pass_all, but let us keep it just in case
6019 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
6021 esac
6022 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
6023 lt_cv_deplibs_check_method=pass_all
6026 # This must be Linux ELF.
6027 linux-gnu*)
6028 lt_cv_deplibs_check_method=pass_all
6031 netbsd* | knetbsd*-gnu)
6032 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6033 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
6034 else
6035 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
6039 newsos6)
6040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6041 lt_cv_file_magic_cmd=/usr/bin/file
6042 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6045 osf3* | osf4* | osf5*)
6046 # this will be overridden with pass_all, but let us keep it just in case
6047 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
6048 lt_cv_file_magic_test_file=/shlib/libc.so
6049 lt_cv_deplibs_check_method=pass_all
6052 sco3.2v5*)
6053 lt_cv_deplibs_check_method=pass_all
6056 solaris*)
6057 lt_cv_deplibs_check_method=pass_all
6058 lt_cv_file_magic_test_file=/lib/libc.so
6061 sysv5uw[78]* | sysv4*uw2*)
6062 lt_cv_deplibs_check_method=pass_all
6065 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6066 case $host_vendor in
6067 ncr)
6068 lt_cv_deplibs_check_method=pass_all
6070 motorola)
6071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6072 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6074 esac
6076 esac
6079 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6080 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6081 file_magic_cmd=$lt_cv_file_magic_cmd
6082 deplibs_check_method=$lt_cv_deplibs_check_method
6087 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6089 # find the maximum length of command line arguments
6090 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6091 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6092 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
6096 teststring="ABCD"
6098 case $build_os in
6099 msdosdjgpp*)
6100 # On DJGPP, this test can blow up pretty badly due to problems in libc
6101 # (any single argument exceeding 2000 bytes causes a buffer overrun
6102 # during glob expansion). Even if it were fixed, the result of this
6103 # check would be larger than it should be.
6104 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6107 cygwin* | mingw*)
6108 # On Win9x/ME, this test blows up -- it succeeds, but takes
6109 # about 5 minutes as the teststring grows exponentially.
6110 # Worse, since 9x/ME are not pre-emptively multitasking,
6111 # you end up with a "frozen" computer, even though with patience
6112 # the test eventually succeeds (with a max line length of 256k).
6113 # Instead, let's just punt: use the minimum linelength reported by
6114 # all of the supported platforms: 8192 (on NT/2K/XP).
6115 lt_cv_sys_max_cmd_len=8192;
6118 amigaos*)
6119 # On AmigaOS with pdksh, this test takes hours, literally.
6120 # So we just punt and use a minimum line length of 8192.
6121 lt_cv_sys_max_cmd_len=8192;
6124 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6125 # This has been around since 386BSD, at least. Likely further.
6126 if test -x /sbin/sysctl; then
6127 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6128 elif test -x /usr/sbin/sysctl; then
6129 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6130 else
6131 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6133 # And add a safety zone
6134 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6135 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6137 esac
6141 if test -n "$lt_cv_sys_max_cmd_len" ; then
6142 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6143 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6144 else
6145 { echo "$as_me:$LINENO: result: none" >&5
6146 echo "${ECHO_T}none" >&6; }
6150 # Only perform the check for file, if the check method requires it
6151 case $deplibs_check_method in
6152 file_magic*)
6153 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6154 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6155 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6156 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159 case $MAGIC_CMD in
6161 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6163 ?:/*)
6164 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
6167 ac_save_MAGIC_CMD="$MAGIC_CMD"
6168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6169 ac_dummy="/usr/bin:$PATH"
6170 for ac_dir in $ac_dummy; do
6171 test -z "$ac_dir" && ac_dir=.
6172 if test -f $ac_dir/${ac_tool_prefix}file; then
6173 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6174 if test -n "$file_magic_test_file"; then
6175 case $deplibs_check_method in
6176 "file_magic "*)
6177 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6178 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6179 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6180 egrep "$file_magic_regex" > /dev/null; then
6182 else
6183 cat <<EOF 1>&2
6185 *** Warning: the command libtool uses to detect shared libraries,
6186 *** $file_magic_cmd, produces output that libtool cannot recognize.
6187 *** The result is that libtool may fail to recognize shared libraries
6188 *** as such. This will affect the creation of libtool libraries that
6189 *** depend on shared libraries, but programs linked with such libtool
6190 *** libraries will work regardless of this problem. Nevertheless, you
6191 *** may want to report the problem to your system manager and/or to
6192 *** bug-libtool@gnu.org
6195 fi ;;
6196 esac
6198 break
6200 done
6201 IFS="$ac_save_ifs"
6202 MAGIC_CMD="$ac_save_MAGIC_CMD"
6204 esac
6207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6208 if test -n "$MAGIC_CMD"; then
6209 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6210 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6211 else
6212 { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6216 if test -z "$lt_cv_path_MAGIC_CMD"; then
6217 if test -n "$ac_tool_prefix"; then
6218 { echo "$as_me:$LINENO: checking for file" >&5
6219 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6220 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223 case $MAGIC_CMD in
6225 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6227 ?:/*)
6228 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
6231 ac_save_MAGIC_CMD="$MAGIC_CMD"
6232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6233 ac_dummy="/usr/bin:$PATH"
6234 for ac_dir in $ac_dummy; do
6235 test -z "$ac_dir" && ac_dir=.
6236 if test -f $ac_dir/file; then
6237 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6238 if test -n "$file_magic_test_file"; then
6239 case $deplibs_check_method in
6240 "file_magic "*)
6241 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6242 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6243 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6244 egrep "$file_magic_regex" > /dev/null; then
6246 else
6247 cat <<EOF 1>&2
6249 *** Warning: the command libtool uses to detect shared libraries,
6250 *** $file_magic_cmd, produces output that libtool cannot recognize.
6251 *** The result is that libtool may fail to recognize shared libraries
6252 *** as such. This will affect the creation of libtool libraries that
6253 *** depend on shared libraries, but programs linked with such libtool
6254 *** libraries will work regardless of this problem. Nevertheless, you
6255 *** may want to report the problem to your system manager and/or to
6256 *** bug-libtool@gnu.org
6259 fi ;;
6260 esac
6262 break
6264 done
6265 IFS="$ac_save_ifs"
6266 MAGIC_CMD="$ac_save_MAGIC_CMD"
6268 esac
6271 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6272 if test -n "$MAGIC_CMD"; then
6273 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6274 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6275 else
6276 { echo "$as_me:$LINENO: result: no" >&5
6277 echo "${ECHO_T}no" >&6; }
6280 else
6281 MAGIC_CMD=:
6287 esac
6289 if test -n "$ac_tool_prefix"; then
6290 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6291 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6294 if test "${ac_cv_prog_RANLIB+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 else
6297 if test -n "$RANLIB"; then
6298 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6299 else
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6303 IFS=$as_save_IFS
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6307 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 break 2
6311 done
6312 done
6313 IFS=$as_save_IFS
6317 RANLIB=$ac_cv_prog_RANLIB
6318 if test -n "$RANLIB"; then
6319 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6320 echo "${ECHO_T}$RANLIB" >&6; }
6321 else
6322 { echo "$as_me:$LINENO: result: no" >&5
6323 echo "${ECHO_T}no" >&6; }
6328 if test -z "$ac_cv_prog_RANLIB"; then
6329 ac_ct_RANLIB=$RANLIB
6330 # Extract the first word of "ranlib", so it can be a program name with args.
6331 set dummy ranlib; ac_word=$2
6332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6334 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 else
6337 if test -n "$ac_ct_RANLIB"; then
6338 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6339 else
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6343 IFS=$as_save_IFS
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6347 ac_cv_prog_ac_ct_RANLIB="ranlib"
6348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 break 2
6351 done
6352 done
6353 IFS=$as_save_IFS
6357 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6358 if test -n "$ac_ct_RANLIB"; then
6359 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6360 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6361 else
6362 { echo "$as_me:$LINENO: result: no" >&5
6363 echo "${ECHO_T}no" >&6; }
6366 if test "x$ac_ct_RANLIB" = x; then
6367 RANLIB=":"
6368 else
6369 case $cross_compiling:$ac_tool_warned in
6370 yes:)
6371 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6372 whose name does not start with the host triplet. If you think this
6373 configuration is useful to you, please write to autoconf@gnu.org." >&5
6374 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6375 whose name does not start with the host triplet. If you think this
6376 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6377 ac_tool_warned=yes ;;
6378 esac
6379 RANLIB=$ac_ct_RANLIB
6381 else
6382 RANLIB="$ac_cv_prog_RANLIB"
6385 if test -n "$ac_tool_prefix"; then
6386 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6387 set dummy ${ac_tool_prefix}strip; ac_word=$2
6388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6390 if test "${ac_cv_prog_STRIP+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 else
6393 if test -n "$STRIP"; then
6394 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6395 else
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6403 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6407 done
6408 done
6409 IFS=$as_save_IFS
6413 STRIP=$ac_cv_prog_STRIP
6414 if test -n "$STRIP"; then
6415 { echo "$as_me:$LINENO: result: $STRIP" >&5
6416 echo "${ECHO_T}$STRIP" >&6; }
6417 else
6418 { echo "$as_me:$LINENO: result: no" >&5
6419 echo "${ECHO_T}no" >&6; }
6424 if test -z "$ac_cv_prog_STRIP"; then
6425 ac_ct_STRIP=$STRIP
6426 # Extract the first word of "strip", so it can be a program name with args.
6427 set dummy strip; ac_word=$2
6428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6430 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 else
6433 if test -n "$ac_ct_STRIP"; then
6434 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6435 else
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH
6439 IFS=$as_save_IFS
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6443 ac_cv_prog_ac_ct_STRIP="strip"
6444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 break 2
6447 done
6448 done
6449 IFS=$as_save_IFS
6453 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6454 if test -n "$ac_ct_STRIP"; then
6455 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6456 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6457 else
6458 { echo "$as_me:$LINENO: result: no" >&5
6459 echo "${ECHO_T}no" >&6; }
6462 if test "x$ac_ct_STRIP" = x; then
6463 STRIP=":"
6464 else
6465 case $cross_compiling:$ac_tool_warned in
6466 yes:)
6467 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6468 whose name does not start with the host triplet. If you think this
6469 configuration is useful to you, please write to autoconf@gnu.org." >&5
6470 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6471 whose name does not start with the host triplet. If you think this
6472 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6473 ac_tool_warned=yes ;;
6474 esac
6475 STRIP=$ac_ct_STRIP
6477 else
6478 STRIP="$ac_cv_prog_STRIP"
6482 # Check for any special flags to pass to ltconfig.
6483 libtool_flags="--cache-file=$cache_file"
6484 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
6485 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
6486 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
6487 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
6488 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
6491 # Check whether --enable-libtool-lock was given.
6492 if test "${enable_libtool_lock+set}" = set; then
6493 enableval=$enable_libtool_lock;
6496 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
6497 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
6500 # Check whether --with-pic was given.
6501 if test "${with_pic+set}" = set; then
6502 withval=$with_pic; pic_mode="$withval"
6503 else
6504 pic_mode=default
6507 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
6508 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
6510 # Some flags need to be propagated to the compiler or linker for good
6511 # libtool support.
6512 case $host in
6513 *-*-irix6*)
6514 # Find out which ABI we are using.
6515 echo '#line 6515 "configure"' > conftest.$ac_ext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6517 (eval $ac_compile) 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; then
6521 if test "$lt_cv_prog_gnu_ld" = yes; then
6522 case `/usr/bin/file conftest.$ac_objext` in
6523 *32-bit*)
6524 LD="${LD-ld} -melf32bsmip"
6526 *N32*)
6527 LD="${LD-ld} -melf32bmipn32"
6529 *64-bit*)
6530 LD="${LD-ld} -melf64bmip"
6532 esac
6533 else
6534 case `/usr/bin/file conftest.$ac_objext` in
6535 *32-bit*)
6536 LD="${LD-ld} -32"
6538 *N32*)
6539 LD="${LD-ld} -n32"
6541 *64-bit*)
6542 LD="${LD-ld} -64"
6544 esac
6547 rm -rf conftest*
6550 ia64-*-hpux*)
6551 # Find out which ABI we are using.
6552 echo 'int i;' > conftest.$ac_ext
6553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6554 (eval $ac_compile) 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; then
6558 case "`/usr/bin/file conftest.o`" in
6559 *ELF-32*)
6560 HPUX_IA64_MODE="32"
6562 *ELF-64*)
6563 HPUX_IA64_MODE="64"
6565 esac
6567 rm -rf conftest*
6570 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6571 # Find out which ABI we are using.
6572 echo 'int i;' > conftest.$ac_ext
6573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6574 (eval $ac_compile) 2>&5
6575 ac_status=$?
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); }; then
6578 case "`/usr/bin/file conftest.o`" in
6579 *32-bit*)
6580 case $host in
6581 x86_64-*linux*)
6582 LD="${LD-ld} -m elf_i386"
6584 ppc64-*linux*|powerpc64-*linux*)
6585 LD="${LD-ld} -m elf32ppclinux"
6587 s390x-*linux*)
6588 LD="${LD-ld} -m elf_s390"
6590 sparc64-*linux*)
6591 LD="${LD-ld} -m elf32_sparc"
6593 esac
6595 *64-bit*)
6596 case $host in
6597 x86_64-*linux*)
6598 LD="${LD-ld} -m elf_x86_64"
6600 ppc*-*linux*|powerpc*-*linux*)
6601 LD="${LD-ld} -m elf64ppc"
6603 s390*-*linux*)
6604 LD="${LD-ld} -m elf64_s390"
6606 sparc*-*linux*)
6607 LD="${LD-ld} -m elf64_sparc"
6609 esac
6611 esac
6613 rm -rf conftest*
6616 *-*-sco3.2v5*)
6617 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6618 SAVE_CFLAGS="$CFLAGS"
6619 CFLAGS="$CFLAGS -belf"
6620 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6621 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6622 if test "${lt_cv_cc_needs_belf+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 else
6626 ac_ext=c
6627 ac_cpp='$CPP $CPPFLAGS'
6628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6632 if test x$gcc_no_link = xyes; then
6633 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6634 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6635 { (exit 1); exit 1; }; }
6637 cat >conftest.$ac_ext <<_ACEOF
6638 /* confdefs.h. */
6639 _ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h. */
6645 main ()
6649 return 0;
6651 _ACEOF
6652 rm -f conftest.$ac_objext conftest$ac_exeext
6653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6654 (eval $ac_link) 2>conftest.er1
6655 ac_status=$?
6656 grep -v '^ *+' conftest.er1 >conftest.err
6657 rm -f conftest.er1
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } &&
6661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 (eval $ac_try) 2>&5
6664 ac_status=$?
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; } &&
6667 { ac_try='test -s conftest$ac_exeext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669 (eval $ac_try) 2>&5
6670 ac_status=$?
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6673 lt_cv_cc_needs_belf=yes
6674 else
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6678 lt_cv_cc_needs_belf=no
6681 rm -f conftest.err conftest.$ac_objext \
6682 conftest$ac_exeext conftest.$ac_ext
6683 ac_ext=c
6684 ac_cpp='$CPP $CPPFLAGS'
6685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6690 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6691 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6692 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6693 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6694 CFLAGS="$SAVE_CFLAGS"
6699 esac
6702 # Save cache, so that ltconfig can load it
6703 cat >confcache <<\_ACEOF
6704 # This file is a shell script that caches the results of configure
6705 # tests run on this system so they can be shared between configure
6706 # scripts and configure runs, see configure's option --config-cache.
6707 # It is not useful on other systems. If it contains results you don't
6708 # want to keep, you may remove or edit it.
6710 # config.status only pays attention to the cache file if you give it
6711 # the --recheck option to rerun configure.
6713 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6714 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6715 # following values.
6717 _ACEOF
6719 # The following way of writing the cache mishandles newlines in values,
6720 # but we know of no workaround that is simple, portable, and efficient.
6721 # So, we kill variables containing newlines.
6722 # Ultrix sh set writes to stderr and can't be redirected directly,
6723 # and sets the high bit in the cache file unless we assign to the vars.
6725 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6726 eval ac_val=\$$ac_var
6727 case $ac_val in #(
6728 *${as_nl}*)
6729 case $ac_var in #(
6730 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6731 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6732 esac
6733 case $ac_var in #(
6734 _ | IFS | as_nl) ;; #(
6735 *) $as_unset $ac_var ;;
6736 esac ;;
6737 esac
6738 done
6740 (set) 2>&1 |
6741 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6742 *${as_nl}ac_space=\ *)
6743 # `set' does not quote correctly, so add quotes (double-quote
6744 # substitution turns \\\\ into \\, and sed turns \\ into \).
6745 sed -n \
6746 "s/'/'\\\\''/g;
6747 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6748 ;; #(
6750 # `set' quotes correctly as required by POSIX, so do not add quotes.
6751 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6753 esac |
6754 sort
6756 sed '
6757 /^ac_cv_env_/b end
6758 t clear
6759 :clear
6760 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6761 t end
6762 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6763 :end' >>confcache
6764 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6765 if test -w $cache_file; then
6766 test "x$cache_file" != "x/dev/null" &&
6767 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6768 echo "$as_me: updating cache $cache_file" >&6;}
6769 cat confcache >$cache_file
6770 else
6771 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6772 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6775 rm -f confcache
6777 # Actually configure libtool. ac_aux_dir is where install-sh is found.
6778 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6779 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6780 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6781 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6782 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6783 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6784 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6785 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6786 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6787 echo "$as_me: error: libtool configure failed" >&2;}
6788 { (exit 1); exit 1; }; }
6790 # Reload cache, that may have been modified by ltconfig
6791 if test -r "$cache_file"; then
6792 # Some versions of bash will fail to source /dev/null (special
6793 # files actually), so we avoid doing that.
6794 if test -f "$cache_file"; then
6795 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6796 echo "$as_me: loading cache $cache_file" >&6;}
6797 case $cache_file in
6798 [\\/]* | ?:[\\/]* ) . $cache_file;;
6799 *) . ./$cache_file;;
6800 esac
6802 else
6803 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6804 echo "$as_me: creating cache $cache_file" >&6;}
6805 >$cache_file
6809 # This can be used to rebuild libtool when needed
6810 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6812 # Always use our own libtool.
6813 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6815 # Redirect the config.log output again, so that the ltconfig log is not
6816 # clobbered by the next message.
6817 exec 5>>./config.log
6819 ac_ext=cpp
6820 ac_cpp='$CXXCPP $CPPFLAGS'
6821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6824 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6825 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6826 if test -z "$CXXCPP"; then
6827 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830 # Double quotes because CXXCPP needs to be expanded
6831 for CXXCPP in "$CXX -E" "/lib/cpp"
6833 ac_preproc_ok=false
6834 for ac_cxx_preproc_warn_flag in '' yes
6836 # Use a header file that comes with gcc, so configuring glibc
6837 # with a fresh cross-compiler works.
6838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6839 # <limits.h> exists even on freestanding compilers.
6840 # On the NeXT, cc -E runs the code through the compiler's parser,
6841 # not just through cpp. "Syntax error" is here to catch this case.
6842 cat >conftest.$ac_ext <<_ACEOF
6843 /* confdefs.h. */
6844 _ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6848 #ifdef __STDC__
6849 # include <limits.h>
6850 #else
6851 # include <assert.h>
6852 #endif
6853 Syntax error
6854 _ACEOF
6855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6857 ac_status=$?
6858 grep -v '^ *+' conftest.er1 >conftest.err
6859 rm -f conftest.er1
6860 cat conftest.err >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } >/dev/null; then
6863 if test -s conftest.err; then
6864 ac_cpp_err=$ac_cxx_preproc_warn_flag
6865 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6866 else
6867 ac_cpp_err=
6869 else
6870 ac_cpp_err=yes
6872 if test -z "$ac_cpp_err"; then
6874 else
6875 echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6878 # Broken: fails on valid input.
6879 continue
6882 rm -f conftest.err conftest.$ac_ext
6884 # OK, works on sane cases. Now check whether nonexistent headers
6885 # can be detected and how.
6886 cat >conftest.$ac_ext <<_ACEOF
6887 /* confdefs.h. */
6888 _ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 #include <ac_nonexistent.h>
6893 _ACEOF
6894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6896 ac_status=$?
6897 grep -v '^ *+' conftest.er1 >conftest.err
6898 rm -f conftest.er1
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } >/dev/null; then
6902 if test -s conftest.err; then
6903 ac_cpp_err=$ac_cxx_preproc_warn_flag
6904 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6905 else
6906 ac_cpp_err=
6908 else
6909 ac_cpp_err=yes
6911 if test -z "$ac_cpp_err"; then
6912 # Broken: success on invalid input.
6913 continue
6914 else
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6918 # Passes both tests.
6919 ac_preproc_ok=:
6920 break
6923 rm -f conftest.err conftest.$ac_ext
6925 done
6926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6927 rm -f conftest.err conftest.$ac_ext
6928 if $ac_preproc_ok; then
6929 break
6932 done
6933 ac_cv_prog_CXXCPP=$CXXCPP
6936 CXXCPP=$ac_cv_prog_CXXCPP
6937 else
6938 ac_cv_prog_CXXCPP=$CXXCPP
6940 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6941 echo "${ECHO_T}$CXXCPP" >&6; }
6942 ac_preproc_ok=false
6943 for ac_cxx_preproc_warn_flag in '' yes
6945 # Use a header file that comes with gcc, so configuring glibc
6946 # with a fresh cross-compiler works.
6947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6948 # <limits.h> exists even on freestanding compilers.
6949 # On the NeXT, cc -E runs the code through the compiler's parser,
6950 # not just through cpp. "Syntax error" is here to catch this case.
6951 cat >conftest.$ac_ext <<_ACEOF
6952 /* confdefs.h. */
6953 _ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h. */
6957 #ifdef __STDC__
6958 # include <limits.h>
6959 #else
6960 # include <assert.h>
6961 #endif
6962 Syntax error
6963 _ACEOF
6964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6966 ac_status=$?
6967 grep -v '^ *+' conftest.er1 >conftest.err
6968 rm -f conftest.er1
6969 cat conftest.err >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } >/dev/null; then
6972 if test -s conftest.err; then
6973 ac_cpp_err=$ac_cxx_preproc_warn_flag
6974 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6975 else
6976 ac_cpp_err=
6978 else
6979 ac_cpp_err=yes
6981 if test -z "$ac_cpp_err"; then
6983 else
6984 echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6987 # Broken: fails on valid input.
6988 continue
6991 rm -f conftest.err conftest.$ac_ext
6993 # OK, works on sane cases. Now check whether nonexistent headers
6994 # can be detected and how.
6995 cat >conftest.$ac_ext <<_ACEOF
6996 /* confdefs.h. */
6997 _ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7001 #include <ac_nonexistent.h>
7002 _ACEOF
7003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7005 ac_status=$?
7006 grep -v '^ *+' conftest.er1 >conftest.err
7007 rm -f conftest.er1
7008 cat conftest.err >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } >/dev/null; then
7011 if test -s conftest.err; then
7012 ac_cpp_err=$ac_cxx_preproc_warn_flag
7013 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7014 else
7015 ac_cpp_err=
7017 else
7018 ac_cpp_err=yes
7020 if test -z "$ac_cpp_err"; then
7021 # Broken: success on invalid input.
7022 continue
7023 else
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7027 # Passes both tests.
7028 ac_preproc_ok=:
7029 break
7032 rm -f conftest.err conftest.$ac_ext
7034 done
7035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7036 rm -f conftest.err conftest.$ac_ext
7037 if $ac_preproc_ok; then
7039 else
7040 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7041 See \`config.log' for more details." >&5
7042 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7043 See \`config.log' for more details." >&2;}
7044 { (exit 1); exit 1; }; }
7047 ac_ext=c
7048 ac_cpp='$CPP $CPPFLAGS'
7049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7055 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
7056 lt_save_CC="$CC"
7057 lt_save_CFLAGS="$CFLAGS"
7058 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
7059 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
7060 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
7061 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
7062 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
7063 deplibs_check_method="$deplibs_check_method" \
7064 file_magic_cmd="$file_magic_cmd" \
7065 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
7066 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
7067 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
7068 echo "$as_me: error: libtool tag configuration failed" >&2;}
7069 { (exit 1); exit 1; }; }
7070 CC="$lt_save_CC"
7071 CFLAGS="$lt_save_CFLAGS"
7073 # Redirect the config.log output again, so that the ltconfig log is not
7074 # clobbered by the next message.
7075 exec 5>>./config.log
7083 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
7085 # Extract the first word of "$ac_prog", so it can be a program name with args.
7086 set dummy $ac_prog; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_prog_GCJ+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092 if test -n "$GCJ"; then
7093 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7094 else
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_prog_GCJ="$ac_prog"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7106 done
7107 done
7108 IFS=$as_save_IFS
7112 GCJ=$ac_cv_prog_GCJ
7113 if test -n "$GCJ"; then
7114 { echo "$as_me:$LINENO: result: $GCJ" >&5
7115 echo "${ECHO_T}$GCJ" >&6; }
7116 else
7117 { echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6; }
7122 test -n "$GCJ" && break
7123 done
7124 test -n "$GCJ" || GCJ="gcj"
7126 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
7127 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
7128 { (exit 1); exit 1; }; }
7129 if test "x${GCJFLAGS-unset}" = xunset; then
7130 GCJFLAGS="-g -O2"
7134 depcc="$GCJ" am_compiler_list='gcc3 gcc'
7136 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7137 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
7138 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7142 # We make a subdir and do the tests there. Otherwise we can end up
7143 # making bogus files that we don't know about and never remove. For
7144 # instance it was reported that on HP-UX the gcc test will end up
7145 # making a dummy file named `D' -- because `-MD' means `put the output
7146 # in D'.
7147 mkdir conftest.dir
7148 # Copy depcomp to subdir because otherwise we won't find it if we're
7149 # using a relative directory.
7150 cp "$am_depcomp" conftest.dir
7151 cd conftest.dir
7152 # We will build objects and dependencies in a subdirectory because
7153 # it helps to detect inapplicable dependency modes. For instance
7154 # both Tru64's cc and ICC support -MD to output dependencies as a
7155 # side effect of compilation, but ICC will put the dependencies in
7156 # the current directory while Tru64 will put them in the object
7157 # directory.
7158 mkdir sub
7160 am_cv_GCJ_dependencies_compiler_type=none
7161 if test "$am_compiler_list" = ""; then
7162 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7164 for depmode in $am_compiler_list; do
7165 # Setup a source with many dependencies, because some compilers
7166 # like to wrap large dependency lists on column 80 (with \), and
7167 # we should not choose a depcomp mode which is confused by this.
7169 # We need to recreate these files for each test, as the compiler may
7170 # overwrite some of them when testing with obscure command lines.
7171 # This happens at least with the AIX C compiler.
7172 : > sub/conftest.c
7173 for i in 1 2 3 4 5 6; do
7174 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7175 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7176 # Solaris 8's {/usr,}/bin/sh.
7177 touch sub/conftst$i.h
7178 done
7179 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7181 case $depmode in
7182 nosideeffect)
7183 # after this tag, mechanisms are not by side-effect, so they'll
7184 # only be used when explicitly requested
7185 if test "x$enable_dependency_tracking" = xyes; then
7186 continue
7187 else
7188 break
7191 none) break ;;
7192 esac
7193 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7194 # mode. It turns out that the SunPro C++ compiler does not properly
7195 # handle `-M -o', and we need to detect this.
7196 if depmode=$depmode \
7197 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7198 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7199 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7200 >/dev/null 2>conftest.err &&
7201 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7202 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7203 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7204 # icc doesn't choke on unknown options, it will just issue warnings
7205 # or remarks (even with -Werror). So we grep stderr for any message
7206 # that says an option was ignored or not supported.
7207 # When given -MP, icc 7.0 and 7.1 complain thusly:
7208 # icc: Command line warning: ignoring option '-M'; no argument required
7209 # The diagnosis changed in icc 8.0:
7210 # icc: Command line remark: option '-MP' not supported
7211 if (grep 'ignoring option' conftest.err ||
7212 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7213 am_cv_GCJ_dependencies_compiler_type=$depmode
7214 break
7217 done
7219 cd ..
7220 rm -rf conftest.dir
7221 else
7222 am_cv_GCJ_dependencies_compiler_type=none
7226 { echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
7227 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6; }
7228 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
7233 test "x$enable_dependency_tracking" != xno \
7234 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
7235 am__fastdepGCJ_TRUE=
7236 am__fastdepGCJ_FALSE='#'
7237 else
7238 am__fastdepGCJ_TRUE='#'
7239 am__fastdepGCJ_FALSE=
7245 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
7246 lt_save_CC="$CC"
7247 lt_save_CFLAGS="$CFLAGS"
7248 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
7249 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
7250 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
7251 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
7252 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
7253 deplibs_check_method="$deplibs_check_method" \
7254 file_magic_cmd="$file_magic_cmd" \
7255 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
7256 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
7257 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
7258 echo "$as_me: error: libtool tag configuration failed" >&2;}
7259 { (exit 1); exit 1; }; }
7260 CC="$lt_save_CC"
7261 CFLAGS="$lt_save_CFLAGS"
7263 # Redirect the config.log output again, so that the ltconfig log is not
7264 # clobbered by the next message.
7265 exec 5>>./config.log
7269 if test "x$CC" != xcc; then
7270 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
7271 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
7272 else
7273 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
7274 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
7276 set dummy $CC; ac_cc=`echo $2 |
7277 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7278 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 else
7281 cat >conftest.$ac_ext <<_ACEOF
7282 /* confdefs.h. */
7283 _ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7289 main ()
7293 return 0;
7295 _ACEOF
7296 # Make sure it works both with $CC and with simple cc.
7297 # We do the test twice because some compilers refuse to overwrite an
7298 # existing .o file with -o, though they will create one.
7299 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7300 rm -f conftest2.*
7301 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302 (eval $ac_try) 2>&5
7303 ac_status=$?
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } &&
7306 test -f conftest2.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 (eval $ac_try) 2>&5
7308 ac_status=$?
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); };
7311 then
7312 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7313 if test "x$CC" != xcc; then
7314 # Test first that cc exists at all.
7315 if { ac_try='cc -c conftest.$ac_ext >&5'
7316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7317 (eval $ac_try) 2>&5
7318 ac_status=$?
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); }; }; then
7321 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7322 rm -f conftest2.*
7323 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324 (eval $ac_try) 2>&5
7325 ac_status=$?
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } &&
7328 test -f conftest2.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329 (eval $ac_try) 2>&5
7330 ac_status=$?
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); };
7333 then
7334 # cc works too.
7336 else
7337 # cc exists but doesn't like -o.
7338 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7342 else
7343 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7345 rm -f conftest*
7348 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
7349 { echo "$as_me:$LINENO: result: yes" >&5
7350 echo "${ECHO_T}yes" >&6; }
7351 else
7352 { echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6; }
7355 cat >>confdefs.h <<\_ACEOF
7356 #define NO_MINUS_C_MINUS_O 1
7357 _ACEOF
7361 # FIXME: we rely on the cache variable name because
7362 # there is no other way.
7363 set dummy $CC
7364 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7365 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
7366 # Losing compiler, so override with the script.
7367 # FIXME: It is wrong to rewrite CC.
7368 # But if we don't then we get into trouble of one sort or another.
7369 # A longer-term fix would be to have automake use am__CC in this case,
7370 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7371 CC="$am_aux_dir/compile $CC"
7375 subdirs="$subdirs classpath libltdl"
7378 # The -no-testsuite modules omit the test subdir.
7381 if test -d $srcdir/testsuite; then
7382 TESTSUBDIR_TRUE=
7383 TESTSUBDIR_FALSE='#'
7384 else
7385 TESTSUBDIR_TRUE='#'
7386 TESTSUBDIR_FALSE=
7390 # Should the runtime set system properties by examining the
7391 # environment variable GCJ_PROPERTIES?
7392 # Check whether --enable-getenv-properties was given.
7393 if test "${enable_getenv_properties+set}" = set; then
7394 enableval=$enable_getenv_properties;
7398 # Whether GCJ_PROPERTIES is used depends on the target.
7399 if test -z "$enable_getenv_properties"; then
7400 enable_getenv_properties=${enable_getenv_properties_default-yes}
7402 if test "$enable_getenv_properties" = no; then
7404 cat >>confdefs.h <<\_ACEOF
7405 #define DISABLE_GETENV_PROPERTIES 1
7406 _ACEOF
7410 # Whether we should use arguments to main()
7411 if test -z "$enable_main_args"; then
7412 enable_main_args=${enable_main_args_default-yes}
7414 if test "$enable_main_args" = no; then
7416 cat >>confdefs.h <<\_ACEOF
7417 #define DISABLE_MAIN_ARGS 1
7418 _ACEOF
7423 # Should we use hashtable-based synchronization?
7424 # Currently works only for Linux X86/ia64
7425 # Typically faster and more space-efficient
7426 # Check whether --enable-hash-synchronization was given.
7427 if test "${enable_hash_synchronization+set}" = set; then
7428 enableval=$enable_hash_synchronization;
7432 if test -z "$enable_hash_synchronization"; then
7433 enable_hash_synchronization=$enable_hash_synchronization_default
7437 # Check whether --with-java-home was given.
7438 if test "${with_java_home+set}" = set; then
7439 withval=$with_java_home; JAVA_HOME="${withval}"
7440 else
7441 JAVA_HOME=""
7446 if test ! -z "$JAVA_HOME"; then
7447 JAVA_HOME_SET_TRUE=
7448 JAVA_HOME_SET_FALSE='#'
7449 else
7450 JAVA_HOME_SET_TRUE='#'
7451 JAVA_HOME_SET_FALSE=
7456 # What is the native OS API for MinGW?
7458 # Check whether --with-win32-nlsapi was given.
7459 if test "${with_win32_nlsapi+set}" = set; then
7460 withval=$with_win32_nlsapi; case "${withval}" in
7461 ansi) with_win32_nlsapi=ansi ;;
7462 unicows) with_win32_nlsapi=unicows ;;
7463 unicode) with_win32_nlsapi=unicode ;;
7464 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
7465 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
7466 { (exit 1); exit 1; }; } ;;
7467 esac
7468 else
7469 with_win32_nlsapi=ansi
7473 case "${with_win32_nlsapi}" in
7474 unicows | unicode)
7476 cat >>confdefs.h <<\_ACEOF
7477 #define MINGW_LIBGCJ_UNICODE 1
7478 _ACEOF
7481 esac
7483 # configure.host sets slow_pthread_self if the synchronization code should
7484 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
7485 if test "${slow_pthread_self}" = "yes"; then
7487 cat >>confdefs.h <<\_ACEOF
7488 #define SLOW_PTHREAD_SELF 1
7489 _ACEOF
7493 # Check for gc debugging. This option is handled both here and in the GC.
7494 # Check whether --enable-gc-debug was given.
7495 if test "${enable_gc_debug+set}" = set; then
7496 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
7498 cat >>confdefs.h <<\_ACEOF
7499 #define LIBGCJ_GC_DEBUG 1
7500 _ACEOF
7506 # See if the user has the interpreter included.
7507 # Check whether --enable-interpreter was given.
7508 if test "${enable_interpreter+set}" = set; then
7509 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
7510 # This can also be set in configure.host.
7511 libgcj_interpreter=yes
7512 elif test "$enable_interpreter" = no; then
7513 libgcj_interpreter=no
7518 if test "$libgcj_interpreter" = yes; then
7520 cat >>confdefs.h <<\_ACEOF
7521 #define INTERPRETER 1
7522 _ACEOF
7525 INTERPRETER="$libgcj_interpreter"
7528 { echo "$as_me:$LINENO: checking for exception model to use" >&5
7529 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6; }
7530 ac_ext=cpp
7531 ac_cpp='$CXXCPP $CPPFLAGS'
7532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7536 # Check whether --enable-sjlj-exceptions was given.
7537 if test "${enable_sjlj_exceptions+set}" = set; then
7538 enableval=$enable_sjlj_exceptions; :
7539 else
7540 cat > conftest.$ac_ext << EOF
7541 #line 7541 "configure"
7542 struct S { ~S(); };
7543 void bar();
7544 void foo()
7546 S s;
7547 bar();
7550 old_CXXFLAGS="$CXXFLAGS"
7551 CXXFLAGS=-S
7552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7553 (eval $ac_compile) 2>&5
7554 ac_status=$?
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); }; then
7557 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
7558 enable_sjlj_exceptions=yes
7559 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
7560 enable_sjlj_exceptions=no
7563 CXXFLAGS="$old_CXXFLAGS"
7564 rm -f conftest*
7567 if test x$enable_sjlj_exceptions = xyes; then
7569 cat >>confdefs.h <<\_ACEOF
7570 #define SJLJ_EXCEPTIONS 1
7571 _ACEOF
7573 ac_exception_model_name=sjlj
7574 elif test x$enable_sjlj_exceptions = xno; then
7575 ac_exception_model_name="call frame"
7576 else
7577 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
7578 echo "$as_me: error: unable to detect exception model" >&2;}
7579 { (exit 1); exit 1; }; }
7581 ac_ext=c
7582 ac_cpp='$CPP $CPPFLAGS'
7583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7587 { echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
7588 echo "${ECHO_T}$ac_exception_model_name" >&6; }
7590 # If we are non using SJLJ exceptions, and this host does not have support
7591 # for unwinding from a signal handler, enable checked dereferences and divides.
7592 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
7593 CHECKREFSPEC=-fcheck-references
7594 DIVIDESPEC=-fuse-divide-subroutine
7595 EXCEPTIONSPEC=
7598 # See if the user wants to disable java.net. This is the mildly
7599 # ugly way that we admit that target-side configuration sucks.
7600 # Check whether --enable-java-net was given.
7601 if test "${enable_java_net+set}" = set; then
7602 enableval=$enable_java_net;
7606 # Whether java.net is built by default can depend on the target.
7607 if test -z "$enable_java_net"; then
7608 enable_java_net=${enable_java_net_default-yes}
7610 if test "$enable_java_net" = no; then
7612 cat >>confdefs.h <<\_ACEOF
7613 #define DISABLE_JAVA_NET 1
7614 _ACEOF
7618 # See if the user wants to configure without libffi. Some
7619 # architectures don't support it, and default values are set in
7620 # configure.host.
7622 # Check whether --with-libffi was given.
7623 if test "${with_libffi+set}" = set; then
7624 withval=$with_libffi; :
7625 else
7626 with_libffi=${with_libffi_default-yes}
7630 LIBFFI=
7631 LIBFFIINCS=
7632 if test "$with_libffi" != no; then
7634 cat >>confdefs.h <<\_ACEOF
7635 #define USE_LIBFFI 1
7636 _ACEOF
7638 LIBFFI=../libffi/libffi_convenience.la
7639 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
7644 # See if the user wants to disable JVMPI support.
7645 # Check whether --enable-jvmpi was given.
7646 if test "${enable_jvmpi+set}" = set; then
7647 enableval=$enable_jvmpi;
7651 if test "$enable_jvmpi" != no; then
7653 cat >>confdefs.h <<\_ACEOF
7654 #define ENABLE_JVMPI 1
7655 _ACEOF
7659 # If the target is an eCos system, use the appropriate eCos
7660 # I/O routines.
7661 # FIXME: this should not be a local option but a global target
7662 # system; at present there is no eCos target.
7663 TARGET_ECOS=${PROCESS-"no"}
7665 # Check whether --with-ecos was given.
7666 if test "${with_ecos+set}" = set; then
7667 withval=$with_ecos; TARGET_ECOS="$with_ecos"
7672 PLATFORM_INNER_NAT_HDRS=
7673 case "$TARGET_ECOS" in
7674 no) case "$host" in
7675 *mingw*)
7676 PLATFORM=Win32
7677 PLATFORMNET=Win32
7678 PLATFORMH=win32.h
7680 { echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7681 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6; }
7682 LD_PROG=`$CC --print-prog-name=ld`
7683 LD_VERSION=`$LD_PROG --version`
7684 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7685 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7686 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
7687 LD_OK="ok"
7688 else
7689 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
7690 LD_OK="ok"
7693 if test "x$LD_OK" != x; then
7694 { echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7695 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
7696 else
7697 { echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7698 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
7699 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7700 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7702 cat >>confdefs.h <<\_ACEOF
7703 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7704 _ACEOF
7709 PLATFORM=Posix
7710 PLATFORMNET=Posix
7711 PLATFORMH=posix.h
7712 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
7714 esac
7717 PLATFORM=Ecos
7718 PLATFORMNET=NoNet
7720 cat >>confdefs.h <<\_ACEOF
7721 #define ECOS 1
7722 _ACEOF
7724 PLATFORMH=posix.h
7726 esac
7728 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7731 ac_ext=c
7732 ac_cpp='$CPP $CPPFLAGS'
7733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7736 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7737 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
7738 # On Suns, sometimes $CPP names a directory.
7739 if test -n "$CPP" && test -d "$CPP"; then
7740 CPP=
7742 if test -z "$CPP"; then
7743 if test "${ac_cv_prog_CPP+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 else
7746 # Double quotes because CPP needs to be expanded
7747 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7749 ac_preproc_ok=false
7750 for ac_c_preproc_warn_flag in '' yes
7752 # Use a header file that comes with gcc, so configuring glibc
7753 # with a fresh cross-compiler works.
7754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7755 # <limits.h> exists even on freestanding compilers.
7756 # On the NeXT, cc -E runs the code through the compiler's parser,
7757 # not just through cpp. "Syntax error" is here to catch this case.
7758 cat >conftest.$ac_ext <<_ACEOF
7759 /* confdefs.h. */
7760 _ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h. */
7764 #ifdef __STDC__
7765 # include <limits.h>
7766 #else
7767 # include <assert.h>
7768 #endif
7769 Syntax error
7770 _ACEOF
7771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7773 ac_status=$?
7774 grep -v '^ *+' conftest.er1 >conftest.err
7775 rm -f conftest.er1
7776 cat conftest.err >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } >/dev/null; then
7779 if test -s conftest.err; then
7780 ac_cpp_err=$ac_c_preproc_warn_flag
7781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7782 else
7783 ac_cpp_err=
7785 else
7786 ac_cpp_err=yes
7788 if test -z "$ac_cpp_err"; then
7790 else
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7794 # Broken: fails on valid input.
7795 continue
7798 rm -f conftest.err conftest.$ac_ext
7800 # OK, works on sane cases. Now check whether nonexistent headers
7801 # can be detected and how.
7802 cat >conftest.$ac_ext <<_ACEOF
7803 /* confdefs.h. */
7804 _ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7808 #include <ac_nonexistent.h>
7809 _ACEOF
7810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7812 ac_status=$?
7813 grep -v '^ *+' conftest.er1 >conftest.err
7814 rm -f conftest.er1
7815 cat conftest.err >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); } >/dev/null; then
7818 if test -s conftest.err; then
7819 ac_cpp_err=$ac_c_preproc_warn_flag
7820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7821 else
7822 ac_cpp_err=
7824 else
7825 ac_cpp_err=yes
7827 if test -z "$ac_cpp_err"; then
7828 # Broken: success on invalid input.
7829 continue
7830 else
7831 echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.$ac_ext >&5
7834 # Passes both tests.
7835 ac_preproc_ok=:
7836 break
7839 rm -f conftest.err conftest.$ac_ext
7841 done
7842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7843 rm -f conftest.err conftest.$ac_ext
7844 if $ac_preproc_ok; then
7845 break
7848 done
7849 ac_cv_prog_CPP=$CPP
7852 CPP=$ac_cv_prog_CPP
7853 else
7854 ac_cv_prog_CPP=$CPP
7856 { echo "$as_me:$LINENO: result: $CPP" >&5
7857 echo "${ECHO_T}$CPP" >&6; }
7858 ac_preproc_ok=false
7859 for ac_c_preproc_warn_flag in '' yes
7861 # Use a header file that comes with gcc, so configuring glibc
7862 # with a fresh cross-compiler works.
7863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7864 # <limits.h> exists even on freestanding compilers.
7865 # On the NeXT, cc -E runs the code through the compiler's parser,
7866 # not just through cpp. "Syntax error" is here to catch this case.
7867 cat >conftest.$ac_ext <<_ACEOF
7868 /* confdefs.h. */
7869 _ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h. */
7873 #ifdef __STDC__
7874 # include <limits.h>
7875 #else
7876 # include <assert.h>
7877 #endif
7878 Syntax error
7879 _ACEOF
7880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7882 ac_status=$?
7883 grep -v '^ *+' conftest.er1 >conftest.err
7884 rm -f conftest.er1
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } >/dev/null; then
7888 if test -s conftest.err; then
7889 ac_cpp_err=$ac_c_preproc_warn_flag
7890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7891 else
7892 ac_cpp_err=
7894 else
7895 ac_cpp_err=yes
7897 if test -z "$ac_cpp_err"; then
7899 else
7900 echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7903 # Broken: fails on valid input.
7904 continue
7907 rm -f conftest.err conftest.$ac_ext
7909 # OK, works on sane cases. Now check whether nonexistent headers
7910 # can be detected and how.
7911 cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h. */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 #include <ac_nonexistent.h>
7918 _ACEOF
7919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7921 ac_status=$?
7922 grep -v '^ *+' conftest.er1 >conftest.err
7923 rm -f conftest.er1
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } >/dev/null; then
7927 if test -s conftest.err; then
7928 ac_cpp_err=$ac_c_preproc_warn_flag
7929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7930 else
7931 ac_cpp_err=
7933 else
7934 ac_cpp_err=yes
7936 if test -z "$ac_cpp_err"; then
7937 # Broken: success on invalid input.
7938 continue
7939 else
7940 echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7943 # Passes both tests.
7944 ac_preproc_ok=:
7945 break
7948 rm -f conftest.err conftest.$ac_ext
7950 done
7951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7952 rm -f conftest.err conftest.$ac_ext
7953 if $ac_preproc_ok; then
7955 else
7956 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7957 See \`config.log' for more details." >&5
7958 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7959 See \`config.log' for more details." >&2;}
7960 { (exit 1); exit 1; }; }
7963 ac_ext=c
7964 ac_cpp='$CPP $CPPFLAGS'
7965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7970 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7971 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7972 if test "${ac_cv_path_GREP+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7974 else
7975 # Extract the first word of "grep ggrep" to use in msg output
7976 if test -z "$GREP"; then
7977 set dummy grep ggrep; ac_prog_name=$2
7978 if test "${ac_cv_path_GREP+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 else
7981 ac_path_GREP_found=false
7982 # Loop through the user's path and test for each of PROGNAME-LIST
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_prog in grep ggrep; do
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7991 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7992 # Check for GNU ac_path_GREP and select it if it is found.
7993 # Check for GNU $ac_path_GREP
7994 case `"$ac_path_GREP" --version 2>&1` in
7995 *GNU*)
7996 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7998 ac_count=0
7999 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8000 while :
8002 cat "conftest.in" "conftest.in" >"conftest.tmp"
8003 mv "conftest.tmp" "conftest.in"
8004 cp "conftest.in" "conftest.nl"
8005 echo 'GREP' >> "conftest.nl"
8006 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8007 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8008 ac_count=`expr $ac_count + 1`
8009 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8010 # Best one so far, save it but keep looking for a better one
8011 ac_cv_path_GREP="$ac_path_GREP"
8012 ac_path_GREP_max=$ac_count
8014 # 10*(2^10) chars as input seems more than enough
8015 test $ac_count -gt 10 && break
8016 done
8017 rm -f conftest.*;;
8018 esac
8021 $ac_path_GREP_found && break 3
8022 done
8023 done
8025 done
8026 IFS=$as_save_IFS
8031 GREP="$ac_cv_path_GREP"
8032 if test -z "$GREP"; then
8033 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8034 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8035 { (exit 1); exit 1; }; }
8038 else
8039 ac_cv_path_GREP=$GREP
8044 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8045 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8046 GREP="$ac_cv_path_GREP"
8049 { echo "$as_me:$LINENO: checking for egrep" >&5
8050 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8051 if test "${ac_cv_path_EGREP+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 else
8054 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8055 then ac_cv_path_EGREP="$GREP -E"
8056 else
8057 # Extract the first word of "egrep" to use in msg output
8058 if test -z "$EGREP"; then
8059 set dummy egrep; ac_prog_name=$2
8060 if test "${ac_cv_path_EGREP+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063 ac_path_EGREP_found=false
8064 # Loop through the user's path and test for each of PROGNAME-LIST
8065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8068 IFS=$as_save_IFS
8069 test -z "$as_dir" && as_dir=.
8070 for ac_prog in egrep; do
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8073 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8074 # Check for GNU ac_path_EGREP and select it if it is found.
8075 # Check for GNU $ac_path_EGREP
8076 case `"$ac_path_EGREP" --version 2>&1` in
8077 *GNU*)
8078 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8080 ac_count=0
8081 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8082 while :
8084 cat "conftest.in" "conftest.in" >"conftest.tmp"
8085 mv "conftest.tmp" "conftest.in"
8086 cp "conftest.in" "conftest.nl"
8087 echo 'EGREP' >> "conftest.nl"
8088 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8090 ac_count=`expr $ac_count + 1`
8091 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8092 # Best one so far, save it but keep looking for a better one
8093 ac_cv_path_EGREP="$ac_path_EGREP"
8094 ac_path_EGREP_max=$ac_count
8096 # 10*(2^10) chars as input seems more than enough
8097 test $ac_count -gt 10 && break
8098 done
8099 rm -f conftest.*;;
8100 esac
8103 $ac_path_EGREP_found && break 3
8104 done
8105 done
8107 done
8108 IFS=$as_save_IFS
8113 EGREP="$ac_cv_path_EGREP"
8114 if test -z "$EGREP"; then
8115 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8116 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8117 { (exit 1); exit 1; }; }
8120 else
8121 ac_cv_path_EGREP=$EGREP
8127 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8128 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8129 EGREP="$ac_cv_path_EGREP"
8132 cat >conftest.$ac_ext <<_ACEOF
8133 /* confdefs.h. */
8134 _ACEOF
8135 cat confdefs.h >>conftest.$ac_ext
8136 cat >>conftest.$ac_ext <<_ACEOF
8137 /* end confdefs.h. */
8138 #include <stdint.h>
8140 _ACEOF
8141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8142 $EGREP "uint32_t" >/dev/null 2>&1; then
8144 cat >>confdefs.h <<\_ACEOF
8145 #define HAVE_INT32_DEFINED 1
8146 _ACEOF
8149 rm -f conftest*
8151 cat >conftest.$ac_ext <<_ACEOF
8152 /* confdefs.h. */
8153 _ACEOF
8154 cat confdefs.h >>conftest.$ac_ext
8155 cat >>conftest.$ac_ext <<_ACEOF
8156 /* end confdefs.h. */
8157 #include <inttypes.h>
8159 _ACEOF
8160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8161 $EGREP "uint32_t" >/dev/null 2>&1; then
8163 cat >>confdefs.h <<\_ACEOF
8164 #define HAVE_INT32_DEFINED 1
8165 _ACEOF
8168 rm -f conftest*
8170 cat >conftest.$ac_ext <<_ACEOF
8171 /* confdefs.h. */
8172 _ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8176 #include <sys/types.h>
8178 _ACEOF
8179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8180 $EGREP "u_int32_t" >/dev/null 2>&1; then
8182 cat >>confdefs.h <<\_ACEOF
8183 #define HAVE_BSD_INT32_DEFINED 1
8184 _ACEOF
8187 rm -f conftest*
8189 cat >conftest.$ac_ext <<_ACEOF
8190 /* confdefs.h. */
8191 _ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8195 #include <sys/config.h>
8197 _ACEOF
8198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8199 $EGREP "u_int32_t" >/dev/null 2>&1; then
8201 cat >>confdefs.h <<\_ACEOF
8202 #define HAVE_BSD_INT32_DEFINED 1
8203 _ACEOF
8206 rm -f conftest*
8211 if test "$PLATFORM" = Win32; then
8212 USING_WIN32_PLATFORM_TRUE=
8213 USING_WIN32_PLATFORM_FALSE='#'
8214 else
8215 USING_WIN32_PLATFORM_TRUE='#'
8216 USING_WIN32_PLATFORM_FALSE=
8221 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
8222 USING_POSIX_PLATFORM_TRUE=
8223 USING_POSIX_PLATFORM_FALSE='#'
8224 else
8225 USING_POSIX_PLATFORM_TRUE='#'
8226 USING_POSIX_PLATFORM_FALSE=
8230 case "$host" in
8231 *-darwin*) DARWIN_CRT=true ;;
8232 *) DARWIN_CRT=false ;;
8233 esac
8236 if $DARWIN_CRT; then
8237 USING_DARWIN_CRT_TRUE=
8238 USING_DARWIN_CRT_FALSE='#'
8239 else
8240 USING_DARWIN_CRT_TRUE='#'
8241 USING_DARWIN_CRT_FALSE=
8245 # These may not be defined in a non-ANS conformant embedded system.
8246 # FIXME: Should these case a runtime exception in that case?
8247 cat >conftest.$ac_ext <<_ACEOF
8248 /* confdefs.h. */
8249 _ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8253 #include <time.h>
8255 _ACEOF
8256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8257 $EGREP "mktime" >/dev/null 2>&1; then
8259 cat >>confdefs.h <<\_ACEOF
8260 #define HAVE_MKTIME 1
8261 _ACEOF
8264 rm -f conftest*
8266 cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h. */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 #include <time.h>
8274 _ACEOF
8275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8276 $EGREP "localtime" >/dev/null 2>&1; then
8278 cat >>confdefs.h <<\_ACEOF
8279 #define HAVE_LOCALTIME 1
8280 _ACEOF
8283 rm -f conftest*
8286 # Create the subdirectory for natFile.cc, or the attempt
8287 # to create the link will fail.
8288 test -d java || mkdir java
8289 test -d java/io || mkdir java/io
8290 test -d gnu || mkdir gnu
8291 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
8294 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
8295 test -d java/lang || mkdir java/lang
8296 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
8298 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
8301 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
8302 test -d java/net || mkdir java/net
8303 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
8305 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
8308 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
8309 test -d gnu/java || mkdir gnu/java
8310 test -d gnu/java/net || mkdir gnu/java/net
8311 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
8313 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
8316 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
8317 test -d gnu/java/nio || mkdir gnu/java/nio
8318 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
8320 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
8322 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
8323 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
8326 case "${host}" in
8327 *mingw*)
8328 SYSTEMSPEC="-lgdi32 -lws2_32"
8329 if test "${with_win32_nlsapi}" = "unicows"; then
8330 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
8334 SYSTEMSPEC=
8336 esac
8339 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
8343 # Check whether --with-system-zlib was given.
8344 if test "${with_system_zlib+set}" = set; then
8345 withval=$with_system_zlib;
8348 ZLIBSPEC=
8350 ZLIBTESTSPEC=
8354 if test "x$ac_path_x_has_been_run" != xyes; then
8355 { echo "$as_me:$LINENO: checking for X" >&5
8356 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8358 ac_path_x_has_been_run=yes
8360 # Check whether --with-x was given.
8361 if test "${with_x+set}" = set; then
8362 withval=$with_x;
8365 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8366 if test "x$with_x" = xno; then
8367 # The user explicitly disabled X.
8368 have_x=disabled
8369 else
8370 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8371 # Both variables are already set.
8372 have_x=yes
8373 else
8374 if test "${ac_cv_have_x+set}" = set; then
8375 echo $ECHO_N "(cached) $ECHO_C" >&6
8376 else
8377 # One or both of the vars are not set, and there is no cached value.
8378 ac_x_includes=no ac_x_libraries=no
8379 rm -f -r conftest.dir
8380 if mkdir conftest.dir; then
8381 cd conftest.dir
8382 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8383 cat >Imakefile <<'_ACEOF'
8384 acfindx:
8385 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8386 _ACEOF
8387 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8388 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8389 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8390 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8391 for ac_extension in a so sl; do
8392 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8393 test -f $ac_im_libdir/libX11.$ac_extension; then
8394 ac_im_usrlibdir=$ac_im_libdir; break
8396 done
8397 # Screen out bogus values from the imake configuration. They are
8398 # bogus both because they are the default anyway, and because
8399 # using them would break gcc on systems where it needs fixed includes.
8400 case $ac_im_incroot in
8401 /usr/include) ac_x_includes= ;;
8402 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8403 esac
8404 case $ac_im_usrlibdir in
8405 /usr/lib | /lib) ;;
8406 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8407 esac
8409 cd ..
8410 rm -f -r conftest.dir
8413 # Standard set of common directories for X headers.
8414 # Check X11 before X11Rn because it is often a symlink to the current release.
8415 ac_x_header_dirs='
8416 /usr/X11/include
8417 /usr/X11R6/include
8418 /usr/X11R5/include
8419 /usr/X11R4/include
8421 /usr/include/X11
8422 /usr/include/X11R6
8423 /usr/include/X11R5
8424 /usr/include/X11R4
8426 /usr/local/X11/include
8427 /usr/local/X11R6/include
8428 /usr/local/X11R5/include
8429 /usr/local/X11R4/include
8431 /usr/local/include/X11
8432 /usr/local/include/X11R6
8433 /usr/local/include/X11R5
8434 /usr/local/include/X11R4
8436 /usr/X386/include
8437 /usr/x386/include
8438 /usr/XFree86/include/X11
8440 /usr/include
8441 /usr/local/include
8442 /usr/unsupported/include
8443 /usr/athena/include
8444 /usr/local/x11r5/include
8445 /usr/lpp/Xamples/include
8447 /usr/openwin/include
8448 /usr/openwin/share/include'
8450 if test "$ac_x_includes" = no; then
8451 # Guess where to find include files, by looking for Xlib.h.
8452 # First, try using that file with no special directory specified.
8453 cat >conftest.$ac_ext <<_ACEOF
8454 /* confdefs.h. */
8455 _ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459 #include <X11/Xlib.h.h>
8460 _ACEOF
8461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8463 ac_status=$?
8464 grep -v '^ *+' conftest.er1 >conftest.err
8465 rm -f conftest.er1
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } >/dev/null; then
8469 if test -s conftest.err; then
8470 ac_cpp_err=$ac_c_preproc_warn_flag
8471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8472 else
8473 ac_cpp_err=
8475 else
8476 ac_cpp_err=yes
8478 if test -z "$ac_cpp_err"; then
8479 # We can compile using X headers with no special include directory.
8480 ac_x_includes=
8481 else
8482 echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8485 for ac_dir in $ac_x_header_dirs; do
8486 if test -r "$ac_dir/X11/Xlib.h"; then
8487 ac_x_includes=$ac_dir
8488 break
8490 done
8493 rm -f conftest.err conftest.$ac_ext
8494 fi # $ac_x_includes = no
8496 if test "$ac_x_libraries" = no; then
8497 # Check for the libraries.
8498 # See if we find them without any special options.
8499 # Don't add to $LIBS permanently.
8500 ac_save_LIBS=$LIBS
8501 LIBS="-lXt $LIBS"
8502 if test x$gcc_no_link = xyes; then
8503 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8504 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8505 { (exit 1); exit 1; }; }
8507 cat >conftest.$ac_ext <<_ACEOF
8508 /* confdefs.h. */
8509 _ACEOF
8510 cat confdefs.h >>conftest.$ac_ext
8511 cat >>conftest.$ac_ext <<_ACEOF
8512 /* end confdefs.h. */
8513 #include <X11/Xlib.h>
8515 main ()
8517 XrmInitialize ()
8519 return 0;
8521 _ACEOF
8522 rm -f conftest.$ac_objext conftest$ac_exeext
8523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8524 (eval $ac_link) 2>conftest.er1
8525 ac_status=$?
8526 grep -v '^ *+' conftest.er1 >conftest.err
8527 rm -f conftest.er1
8528 cat conftest.err >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } &&
8531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 (eval $ac_try) 2>&5
8534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; } &&
8537 { ac_try='test -s conftest$ac_exeext'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 (eval $ac_try) 2>&5
8540 ac_status=$?
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; }; then
8543 LIBS=$ac_save_LIBS
8544 # We can link X programs with no special library path.
8545 ac_x_libraries=
8546 else
8547 echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8550 LIBS=$ac_save_LIBS
8551 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8553 # Don't even attempt the hair of trying to link an X program!
8554 for ac_extension in a so sl; do
8555 if test -r $ac_dir/libX11.$ac_extension; then
8556 ac_x_libraries=$ac_dir
8557 break 2
8559 done
8560 done
8563 rm -f conftest.err conftest.$ac_objext \
8564 conftest$ac_exeext conftest.$ac_ext
8565 fi # $ac_x_libraries = no
8567 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8568 # Didn't find X anywhere. Cache the known absence of X.
8569 ac_cv_have_x="have_x=no"
8570 else
8571 # Record where we found X for the cache.
8572 ac_cv_have_x="have_x=yes \
8573 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8578 eval "$ac_cv_have_x"
8579 fi # $with_x != no
8581 if test "$have_x" != yes; then
8582 { echo "$as_me:$LINENO: result: $have_x" >&5
8583 echo "${ECHO_T}$have_x" >&6; }
8584 no_x=yes
8585 else
8586 # If each of the values was on the command line, it overrides each guess.
8587 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8588 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8589 # Update the cache value to reflect the command line values.
8590 ac_cv_have_x="have_x=yes \
8591 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8592 # It might be that x_includes is empty (headers are found in the
8593 # standard search path. Then output the corresponding message
8594 ac_out_x_includes=$x_includes
8595 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8596 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8597 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6; }
8601 if test "$no_x" = yes; then
8602 # Not all programs may use this symbol, but it does not hurt to define it.
8604 cat >>confdefs.h <<\_ACEOF
8605 #define X_DISPLAY_MISSING 1
8606 _ACEOF
8608 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8609 else
8610 if test -n "$x_includes"; then
8611 X_CFLAGS="$X_CFLAGS -I$x_includes"
8614 # It would also be nice to do this for all -L options, not just this one.
8615 if test -n "$x_libraries"; then
8616 X_LIBS="$X_LIBS -L$x_libraries"
8617 # For Solaris; some versions of Sun CC require a space after -R and
8618 # others require no space. Words are not sufficient . . . .
8619 case `(uname -sr) 2>/dev/null` in
8620 "SunOS 5"*)
8621 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8622 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
8623 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8624 if test x$gcc_no_link = xyes; then
8625 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8626 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8627 { (exit 1); exit 1; }; }
8629 cat >conftest.$ac_ext <<_ACEOF
8630 /* confdefs.h. */
8631 _ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8637 main ()
8641 return 0;
8643 _ACEOF
8644 rm -f conftest.$ac_objext conftest$ac_exeext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8646 (eval $ac_link) 2>conftest.er1
8647 ac_status=$?
8648 grep -v '^ *+' conftest.er1 >conftest.err
8649 rm -f conftest.er1
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } &&
8653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 (eval $ac_try) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; } &&
8659 { ac_try='test -s conftest$ac_exeext'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 (eval $ac_try) 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 ac_R_nospace=yes
8666 else
8667 echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8670 ac_R_nospace=no
8673 rm -f conftest.err conftest.$ac_objext \
8674 conftest$ac_exeext conftest.$ac_ext
8675 if test $ac_R_nospace = yes; then
8676 { echo "$as_me:$LINENO: result: no" >&5
8677 echo "${ECHO_T}no" >&6; }
8678 X_LIBS="$X_LIBS -R$x_libraries"
8679 else
8680 LIBS="$ac_xsave_LIBS -R $x_libraries"
8681 if test x$gcc_no_link = xyes; then
8682 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8683 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8684 { (exit 1); exit 1; }; }
8686 cat >conftest.$ac_ext <<_ACEOF
8687 /* confdefs.h. */
8688 _ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h. */
8694 main ()
8698 return 0;
8700 _ACEOF
8701 rm -f conftest.$ac_objext conftest$ac_exeext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703 (eval $ac_link) 2>conftest.er1
8704 ac_status=$?
8705 grep -v '^ *+' conftest.er1 >conftest.err
8706 rm -f conftest.er1
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } &&
8710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 (eval $ac_try) 2>&5
8713 ac_status=$?
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; } &&
8716 { ac_try='test -s conftest$ac_exeext'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 (eval $ac_try) 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8722 ac_R_space=yes
8723 else
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8727 ac_R_space=no
8730 rm -f conftest.err conftest.$ac_objext \
8731 conftest$ac_exeext conftest.$ac_ext
8732 if test $ac_R_space = yes; then
8733 { echo "$as_me:$LINENO: result: yes" >&5
8734 echo "${ECHO_T}yes" >&6; }
8735 X_LIBS="$X_LIBS -R $x_libraries"
8736 else
8737 { echo "$as_me:$LINENO: result: neither works" >&5
8738 echo "${ECHO_T}neither works" >&6; }
8741 LIBS=$ac_xsave_LIBS
8742 esac
8745 # Check for system-dependent libraries X programs must link with.
8746 # Do this before checking for the system-independent R6 libraries
8747 # (-lICE), since we may need -lsocket or whatever for X linking.
8749 if test "$ISC" = yes; then
8750 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8751 else
8752 # Martyn Johnson says this is needed for Ultrix, if the X
8753 # libraries were built with DECnet support. And Karl Berry says
8754 # the Alpha needs dnet_stub (dnet does not exist).
8755 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8756 if test x$gcc_no_link = xyes; then
8757 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8759 { (exit 1); exit 1; }; }
8761 cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h. */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8768 /* Override any GCC internal prototype to avoid an error.
8769 Use char because int might match the return type of a GCC
8770 builtin and then its argument prototype would still apply. */
8771 #ifdef __cplusplus
8772 extern "C"
8773 #endif
8774 char XOpenDisplay ();
8776 main ()
8778 return XOpenDisplay ();
8780 return 0;
8782 _ACEOF
8783 rm -f conftest.$ac_objext conftest$ac_exeext
8784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8785 (eval $ac_link) 2>conftest.er1
8786 ac_status=$?
8787 grep -v '^ *+' conftest.er1 >conftest.err
8788 rm -f conftest.er1
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } &&
8792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794 (eval $ac_try) 2>&5
8795 ac_status=$?
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; } &&
8798 { ac_try='test -s conftest$ac_exeext'
8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800 (eval $ac_try) 2>&5
8801 ac_status=$?
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); }; }; then
8805 else
8806 echo "$as_me: failed program was:" >&5
8807 sed 's/^/| /' conftest.$ac_ext >&5
8809 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8810 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
8811 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 else
8814 ac_check_lib_save_LIBS=$LIBS
8815 LIBS="-ldnet $LIBS"
8816 if test x$gcc_no_link = xyes; then
8817 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8818 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8819 { (exit 1); exit 1; }; }
8821 cat >conftest.$ac_ext <<_ACEOF
8822 /* confdefs.h. */
8823 _ACEOF
8824 cat confdefs.h >>conftest.$ac_ext
8825 cat >>conftest.$ac_ext <<_ACEOF
8826 /* end confdefs.h. */
8828 /* Override any GCC internal prototype to avoid an error.
8829 Use char because int might match the return type of a GCC
8830 builtin and then its argument prototype would still apply. */
8831 #ifdef __cplusplus
8832 extern "C"
8833 #endif
8834 char dnet_ntoa ();
8836 main ()
8838 return dnet_ntoa ();
8840 return 0;
8842 _ACEOF
8843 rm -f conftest.$ac_objext conftest$ac_exeext
8844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8845 (eval $ac_link) 2>conftest.er1
8846 ac_status=$?
8847 grep -v '^ *+' conftest.er1 >conftest.err
8848 rm -f conftest.er1
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854 (eval $ac_try) 2>&5
8855 ac_status=$?
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; } &&
8858 { ac_try='test -s conftest$ac_exeext'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860 (eval $ac_try) 2>&5
8861 ac_status=$?
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; }; then
8864 ac_cv_lib_dnet_dnet_ntoa=yes
8865 else
8866 echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8869 ac_cv_lib_dnet_dnet_ntoa=no
8872 rm -f conftest.err conftest.$ac_objext \
8873 conftest$ac_exeext conftest.$ac_ext
8874 LIBS=$ac_check_lib_save_LIBS
8876 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8877 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8878 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8879 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8882 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8883 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8884 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
8885 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 else
8888 ac_check_lib_save_LIBS=$LIBS
8889 LIBS="-ldnet_stub $LIBS"
8890 if test x$gcc_no_link = xyes; then
8891 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8892 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8893 { (exit 1); exit 1; }; }
8895 cat >conftest.$ac_ext <<_ACEOF
8896 /* confdefs.h. */
8897 _ACEOF
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h. */
8902 /* Override any GCC internal prototype to avoid an error.
8903 Use char because int might match the return type of a GCC
8904 builtin and then its argument prototype would still apply. */
8905 #ifdef __cplusplus
8906 extern "C"
8907 #endif
8908 char dnet_ntoa ();
8910 main ()
8912 return dnet_ntoa ();
8914 return 0;
8916 _ACEOF
8917 rm -f conftest.$ac_objext conftest$ac_exeext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8919 (eval $ac_link) 2>conftest.er1
8920 ac_status=$?
8921 grep -v '^ *+' conftest.er1 >conftest.err
8922 rm -f conftest.er1
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } &&
8926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928 (eval $ac_try) 2>&5
8929 ac_status=$?
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; } &&
8932 { ac_try='test -s conftest$ac_exeext'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 (eval $ac_try) 2>&5
8935 ac_status=$?
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8938 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8939 else
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8943 ac_cv_lib_dnet_stub_dnet_ntoa=no
8946 rm -f conftest.err conftest.$ac_objext \
8947 conftest$ac_exeext conftest.$ac_ext
8948 LIBS=$ac_check_lib_save_LIBS
8950 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8951 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8952 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8953 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8959 rm -f conftest.err conftest.$ac_objext \
8960 conftest$ac_exeext conftest.$ac_ext
8961 LIBS="$ac_xsave_LIBS"
8963 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8964 # to get the SysV transport functions.
8965 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8966 # needs -lnsl.
8967 # The nsl library prevents programs from opening the X display
8968 # on Irix 5.2, according to T.E. Dickey.
8969 # The functions gethostbyname, getservbyname, and inet_addr are
8970 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8971 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
8972 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
8973 if test "${ac_cv_func_gethostbyname+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8975 else
8976 if test x$gcc_no_link = xyes; then
8977 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8978 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8979 { (exit 1); exit 1; }; }
8981 cat >conftest.$ac_ext <<_ACEOF
8982 /* confdefs.h. */
8983 _ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h. */
8987 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8989 #define gethostbyname innocuous_gethostbyname
8991 /* System header to define __stub macros and hopefully few prototypes,
8992 which can conflict with char gethostbyname (); below.
8993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8994 <limits.h> exists even on freestanding compilers. */
8996 #ifdef __STDC__
8997 # include <limits.h>
8998 #else
8999 # include <assert.h>
9000 #endif
9002 #undef gethostbyname
9004 /* Override any GCC internal prototype to avoid an error.
9005 Use char because int might match the return type of a GCC
9006 builtin and then its argument prototype would still apply. */
9007 #ifdef __cplusplus
9008 extern "C"
9009 #endif
9010 char gethostbyname ();
9011 /* The GNU C library defines this for functions which it implements
9012 to always fail with ENOSYS. Some functions are actually named
9013 something starting with __ and the normal name is an alias. */
9014 #if defined __stub_gethostbyname || defined __stub___gethostbyname
9015 choke me
9016 #endif
9019 main ()
9021 return gethostbyname ();
9023 return 0;
9025 _ACEOF
9026 rm -f conftest.$ac_objext conftest$ac_exeext
9027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9028 (eval $ac_link) 2>conftest.er1
9029 ac_status=$?
9030 grep -v '^ *+' conftest.er1 >conftest.err
9031 rm -f conftest.er1
9032 cat conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } &&
9035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037 (eval $ac_try) 2>&5
9038 ac_status=$?
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; } &&
9041 { ac_try='test -s conftest$ac_exeext'
9042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043 (eval $ac_try) 2>&5
9044 ac_status=$?
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); }; }; then
9047 ac_cv_func_gethostbyname=yes
9048 else
9049 echo "$as_me: failed program was:" >&5
9050 sed 's/^/| /' conftest.$ac_ext >&5
9052 ac_cv_func_gethostbyname=no
9055 rm -f conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
9058 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9059 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
9061 if test $ac_cv_func_gethostbyname = no; then
9062 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9063 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
9064 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9066 else
9067 ac_check_lib_save_LIBS=$LIBS
9068 LIBS="-lnsl $LIBS"
9069 if test x$gcc_no_link = xyes; then
9070 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9071 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9072 { (exit 1); exit 1; }; }
9074 cat >conftest.$ac_ext <<_ACEOF
9075 /* confdefs.h. */
9076 _ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h. */
9081 /* Override any GCC internal prototype to avoid an error.
9082 Use char because int might match the return type of a GCC
9083 builtin and then its argument prototype would still apply. */
9084 #ifdef __cplusplus
9085 extern "C"
9086 #endif
9087 char gethostbyname ();
9089 main ()
9091 return gethostbyname ();
9093 return 0;
9095 _ACEOF
9096 rm -f conftest.$ac_objext conftest$ac_exeext
9097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9098 (eval $ac_link) 2>conftest.er1
9099 ac_status=$?
9100 grep -v '^ *+' conftest.er1 >conftest.err
9101 rm -f conftest.er1
9102 cat conftest.err >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); } &&
9105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 (eval $ac_try) 2>&5
9108 ac_status=$?
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; } &&
9111 { ac_try='test -s conftest$ac_exeext'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113 (eval $ac_try) 2>&5
9114 ac_status=$?
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9117 ac_cv_lib_nsl_gethostbyname=yes
9118 else
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9122 ac_cv_lib_nsl_gethostbyname=no
9125 rm -f conftest.err conftest.$ac_objext \
9126 conftest$ac_exeext conftest.$ac_ext
9127 LIBS=$ac_check_lib_save_LIBS
9129 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9130 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
9131 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9132 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9135 if test $ac_cv_lib_nsl_gethostbyname = no; then
9136 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9137 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
9138 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
9140 else
9141 ac_check_lib_save_LIBS=$LIBS
9142 LIBS="-lbsd $LIBS"
9143 if test x$gcc_no_link = xyes; then
9144 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9145 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9146 { (exit 1); exit 1; }; }
9148 cat >conftest.$ac_ext <<_ACEOF
9149 /* confdefs.h. */
9150 _ACEOF
9151 cat confdefs.h >>conftest.$ac_ext
9152 cat >>conftest.$ac_ext <<_ACEOF
9153 /* end confdefs.h. */
9155 /* Override any GCC internal prototype to avoid an error.
9156 Use char because int might match the return type of a GCC
9157 builtin and then its argument prototype would still apply. */
9158 #ifdef __cplusplus
9159 extern "C"
9160 #endif
9161 char gethostbyname ();
9163 main ()
9165 return gethostbyname ();
9167 return 0;
9169 _ACEOF
9170 rm -f conftest.$ac_objext conftest$ac_exeext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9172 (eval $ac_link) 2>conftest.er1
9173 ac_status=$?
9174 grep -v '^ *+' conftest.er1 >conftest.err
9175 rm -f conftest.er1
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 (eval $ac_try) 2>&5
9182 ac_status=$?
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; } &&
9185 { ac_try='test -s conftest$ac_exeext'
9186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187 (eval $ac_try) 2>&5
9188 ac_status=$?
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; }; then
9191 ac_cv_lib_bsd_gethostbyname=yes
9192 else
9193 echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9196 ac_cv_lib_bsd_gethostbyname=no
9199 rm -f conftest.err conftest.$ac_objext \
9200 conftest$ac_exeext conftest.$ac_ext
9201 LIBS=$ac_check_lib_save_LIBS
9203 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9204 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
9205 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9206 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9212 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9213 # socket/setsockopt and other routines are undefined under SCO ODT
9214 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9215 # on later versions), says Simon Leinen: it contains gethostby*
9216 # variants that don't use the name server (or something). -lsocket
9217 # must be given before -lnsl if both are needed. We assume that
9218 # if connect needs -lnsl, so does gethostbyname.
9219 { echo "$as_me:$LINENO: checking for connect" >&5
9220 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
9221 if test "${ac_cv_func_connect+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 else
9224 if test x$gcc_no_link = xyes; then
9225 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9226 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9227 { (exit 1); exit 1; }; }
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 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
9236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9237 #define connect innocuous_connect
9239 /* System header to define __stub macros and hopefully few prototypes,
9240 which can conflict with char connect (); below.
9241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9242 <limits.h> exists even on freestanding compilers. */
9244 #ifdef __STDC__
9245 # include <limits.h>
9246 #else
9247 # include <assert.h>
9248 #endif
9250 #undef connect
9252 /* Override any GCC internal prototype to avoid an error.
9253 Use char because int might match the return type of a GCC
9254 builtin and then its argument prototype would still apply. */
9255 #ifdef __cplusplus
9256 extern "C"
9257 #endif
9258 char connect ();
9259 /* The GNU C library defines this for functions which it implements
9260 to always fail with ENOSYS. Some functions are actually named
9261 something starting with __ and the normal name is an alias. */
9262 #if defined __stub_connect || defined __stub___connect
9263 choke me
9264 #endif
9267 main ()
9269 return connect ();
9271 return 0;
9273 _ACEOF
9274 rm -f conftest.$ac_objext conftest$ac_exeext
9275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9276 (eval $ac_link) 2>conftest.er1
9277 ac_status=$?
9278 grep -v '^ *+' conftest.er1 >conftest.err
9279 rm -f conftest.er1
9280 cat conftest.err >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } &&
9283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285 (eval $ac_try) 2>&5
9286 ac_status=$?
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; } &&
9289 { ac_try='test -s conftest$ac_exeext'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291 (eval $ac_try) 2>&5
9292 ac_status=$?
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
9295 ac_cv_func_connect=yes
9296 else
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9300 ac_cv_func_connect=no
9303 rm -f conftest.err conftest.$ac_objext \
9304 conftest$ac_exeext conftest.$ac_ext
9306 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9307 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
9309 if test $ac_cv_func_connect = no; then
9310 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9311 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
9312 if test "${ac_cv_lib_socket_connect+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 else
9315 ac_check_lib_save_LIBS=$LIBS
9316 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9317 if test x$gcc_no_link = xyes; then
9318 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9319 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9320 { (exit 1); exit 1; }; }
9322 cat >conftest.$ac_ext <<_ACEOF
9323 /* confdefs.h. */
9324 _ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9329 /* Override any GCC internal prototype to avoid an error.
9330 Use char because int might match the return type of a GCC
9331 builtin and then its argument prototype would still apply. */
9332 #ifdef __cplusplus
9333 extern "C"
9334 #endif
9335 char connect ();
9337 main ()
9339 return connect ();
9341 return 0;
9343 _ACEOF
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9346 (eval $ac_link) 2>conftest.er1
9347 ac_status=$?
9348 grep -v '^ *+' conftest.er1 >conftest.err
9349 rm -f conftest.er1
9350 cat conftest.err >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } &&
9353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355 (eval $ac_try) 2>&5
9356 ac_status=$?
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; } &&
9359 { ac_try='test -s conftest$ac_exeext'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 (eval $ac_try) 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
9365 ac_cv_lib_socket_connect=yes
9366 else
9367 echo "$as_me: failed program was:" >&5
9368 sed 's/^/| /' conftest.$ac_ext >&5
9370 ac_cv_lib_socket_connect=no
9373 rm -f conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
9375 LIBS=$ac_check_lib_save_LIBS
9377 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9378 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
9379 if test $ac_cv_lib_socket_connect = yes; then
9380 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9385 # Guillermo Gomez says -lposix is necessary on A/UX.
9386 { echo "$as_me:$LINENO: checking for remove" >&5
9387 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
9388 if test "${ac_cv_func_remove+set}" = set; then
9389 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 else
9391 if test x$gcc_no_link = xyes; then
9392 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9393 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9394 { (exit 1); exit 1; }; }
9396 cat >conftest.$ac_ext <<_ACEOF
9397 /* confdefs.h. */
9398 _ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h. */
9402 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
9403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9404 #define remove innocuous_remove
9406 /* System header to define __stub macros and hopefully few prototypes,
9407 which can conflict with char remove (); below.
9408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9409 <limits.h> exists even on freestanding compilers. */
9411 #ifdef __STDC__
9412 # include <limits.h>
9413 #else
9414 # include <assert.h>
9415 #endif
9417 #undef remove
9419 /* Override any GCC internal prototype to avoid an error.
9420 Use char because int might match the return type of a GCC
9421 builtin and then its argument prototype would still apply. */
9422 #ifdef __cplusplus
9423 extern "C"
9424 #endif
9425 char remove ();
9426 /* The GNU C library defines this for functions which it implements
9427 to always fail with ENOSYS. Some functions are actually named
9428 something starting with __ and the normal name is an alias. */
9429 #if defined __stub_remove || defined __stub___remove
9430 choke me
9431 #endif
9434 main ()
9436 return remove ();
9438 return 0;
9440 _ACEOF
9441 rm -f conftest.$ac_objext conftest$ac_exeext
9442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9443 (eval $ac_link) 2>conftest.er1
9444 ac_status=$?
9445 grep -v '^ *+' conftest.er1 >conftest.err
9446 rm -f conftest.er1
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } &&
9450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 (eval $ac_try) 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; } &&
9456 { ac_try='test -s conftest$ac_exeext'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 (eval $ac_try) 2>&5
9459 ac_status=$?
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_cv_func_remove=yes
9463 else
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9467 ac_cv_func_remove=no
9470 rm -f conftest.err conftest.$ac_objext \
9471 conftest$ac_exeext conftest.$ac_ext
9473 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9474 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
9476 if test $ac_cv_func_remove = no; then
9477 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9478 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
9479 if test "${ac_cv_lib_posix_remove+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482 ac_check_lib_save_LIBS=$LIBS
9483 LIBS="-lposix $LIBS"
9484 if test x$gcc_no_link = xyes; then
9485 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9486 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9487 { (exit 1); exit 1; }; }
9489 cat >conftest.$ac_ext <<_ACEOF
9490 /* confdefs.h. */
9491 _ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h. */
9496 /* Override any GCC internal prototype to avoid an error.
9497 Use char because int might match the return type of a GCC
9498 builtin and then its argument prototype would still apply. */
9499 #ifdef __cplusplus
9500 extern "C"
9501 #endif
9502 char remove ();
9504 main ()
9506 return remove ();
9508 return 0;
9510 _ACEOF
9511 rm -f conftest.$ac_objext conftest$ac_exeext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9513 (eval $ac_link) 2>conftest.er1
9514 ac_status=$?
9515 grep -v '^ *+' conftest.er1 >conftest.err
9516 rm -f conftest.er1
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } &&
9520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522 (eval $ac_try) 2>&5
9523 ac_status=$?
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; } &&
9526 { ac_try='test -s conftest$ac_exeext'
9527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9528 (eval $ac_try) 2>&5
9529 ac_status=$?
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); }; }; then
9532 ac_cv_lib_posix_remove=yes
9533 else
9534 echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9537 ac_cv_lib_posix_remove=no
9540 rm -f conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext conftest.$ac_ext
9542 LIBS=$ac_check_lib_save_LIBS
9544 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9545 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
9546 if test $ac_cv_lib_posix_remove = yes; then
9547 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9552 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9553 { echo "$as_me:$LINENO: checking for shmat" >&5
9554 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
9555 if test "${ac_cv_func_shmat+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9557 else
9558 if test x$gcc_no_link = xyes; then
9559 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9560 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9561 { (exit 1); exit 1; }; }
9563 cat >conftest.$ac_ext <<_ACEOF
9564 /* confdefs.h. */
9565 _ACEOF
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h. */
9569 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
9570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9571 #define shmat innocuous_shmat
9573 /* System header to define __stub macros and hopefully few prototypes,
9574 which can conflict with char shmat (); below.
9575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9576 <limits.h> exists even on freestanding compilers. */
9578 #ifdef __STDC__
9579 # include <limits.h>
9580 #else
9581 # include <assert.h>
9582 #endif
9584 #undef shmat
9586 /* Override any GCC internal prototype to avoid an error.
9587 Use char because int might match the return type of a GCC
9588 builtin and then its argument prototype would still apply. */
9589 #ifdef __cplusplus
9590 extern "C"
9591 #endif
9592 char shmat ();
9593 /* The GNU C library defines this for functions which it implements
9594 to always fail with ENOSYS. Some functions are actually named
9595 something starting with __ and the normal name is an alias. */
9596 #if defined __stub_shmat || defined __stub___shmat
9597 choke me
9598 #endif
9601 main ()
9603 return shmat ();
9605 return 0;
9607 _ACEOF
9608 rm -f conftest.$ac_objext conftest$ac_exeext
9609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9610 (eval $ac_link) 2>conftest.er1
9611 ac_status=$?
9612 grep -v '^ *+' conftest.er1 >conftest.err
9613 rm -f conftest.er1
9614 cat conftest.err >&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); } &&
9617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619 (eval $ac_try) 2>&5
9620 ac_status=$?
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; } &&
9623 { ac_try='test -s conftest$ac_exeext'
9624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625 (eval $ac_try) 2>&5
9626 ac_status=$?
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; }; then
9629 ac_cv_func_shmat=yes
9630 else
9631 echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9634 ac_cv_func_shmat=no
9637 rm -f conftest.err conftest.$ac_objext \
9638 conftest$ac_exeext conftest.$ac_ext
9640 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9641 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
9643 if test $ac_cv_func_shmat = no; then
9644 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9645 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
9646 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649 ac_check_lib_save_LIBS=$LIBS
9650 LIBS="-lipc $LIBS"
9651 if test x$gcc_no_link = xyes; then
9652 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9653 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9654 { (exit 1); exit 1; }; }
9656 cat >conftest.$ac_ext <<_ACEOF
9657 /* confdefs.h. */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9663 /* Override any GCC internal prototype to avoid an error.
9664 Use char because int might match the return type of a GCC
9665 builtin and then its argument prototype would still apply. */
9666 #ifdef __cplusplus
9667 extern "C"
9668 #endif
9669 char shmat ();
9671 main ()
9673 return shmat ();
9675 return 0;
9677 _ACEOF
9678 rm -f conftest.$ac_objext conftest$ac_exeext
9679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9680 (eval $ac_link) 2>conftest.er1
9681 ac_status=$?
9682 grep -v '^ *+' conftest.er1 >conftest.err
9683 rm -f conftest.er1
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } &&
9687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 (eval $ac_try) 2>&5
9690 ac_status=$?
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; } &&
9693 { ac_try='test -s conftest$ac_exeext'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 (eval $ac_try) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_cv_lib_ipc_shmat=yes
9700 else
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9704 ac_cv_lib_ipc_shmat=no
9707 rm -f conftest.err conftest.$ac_objext \
9708 conftest$ac_exeext conftest.$ac_ext
9709 LIBS=$ac_check_lib_save_LIBS
9711 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9712 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
9713 if test $ac_cv_lib_ipc_shmat = yes; then
9714 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9720 # Check for libraries that X11R6 Xt/Xaw programs need.
9721 ac_save_LDFLAGS=$LDFLAGS
9722 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9723 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9724 # check for ICE first), but we must link in the order -lSM -lICE or
9725 # we get undefined symbols. So assume we have SM if we have ICE.
9726 # These have to be linked with before -lX11, unlike the other
9727 # libraries we check for below, so use a different variable.
9728 # John Interrante, Karl Berry
9729 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9730 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
9731 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9733 else
9734 ac_check_lib_save_LIBS=$LIBS
9735 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9736 if test x$gcc_no_link = xyes; then
9737 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9738 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9739 { (exit 1); exit 1; }; }
9741 cat >conftest.$ac_ext <<_ACEOF
9742 /* confdefs.h. */
9743 _ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9748 /* Override any GCC internal prototype to avoid an error.
9749 Use char because int might match the return type of a GCC
9750 builtin and then its argument prototype would still apply. */
9751 #ifdef __cplusplus
9752 extern "C"
9753 #endif
9754 char IceConnectionNumber ();
9756 main ()
9758 return IceConnectionNumber ();
9760 return 0;
9762 _ACEOF
9763 rm -f conftest.$ac_objext conftest$ac_exeext
9764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9765 (eval $ac_link) 2>conftest.er1
9766 ac_status=$?
9767 grep -v '^ *+' conftest.er1 >conftest.err
9768 rm -f conftest.er1
9769 cat conftest.err >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } &&
9772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 (eval $ac_try) 2>&5
9775 ac_status=$?
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; } &&
9778 { ac_try='test -s conftest$ac_exeext'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 (eval $ac_try) 2>&5
9781 ac_status=$?
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 ac_cv_lib_ICE_IceConnectionNumber=yes
9785 else
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9789 ac_cv_lib_ICE_IceConnectionNumber=no
9792 rm -f conftest.err conftest.$ac_objext \
9793 conftest$ac_exeext conftest.$ac_ext
9794 LIBS=$ac_check_lib_save_LIBS
9796 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9797 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
9798 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9799 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9802 LDFLAGS=$ac_save_LDFLAGS
9807 # determine whether to enable the cairo GTK Graphics2D backend
9808 # Check whether --enable-gtk-cairo was given.
9809 if test "${enable_gtk_cairo+set}" = set; then
9810 enableval=$enable_gtk_cairo;
9815 if test "x${enable_gtk_cairo}" = xyes; then
9816 GTK_CAIRO_TRUE=
9817 GTK_CAIRO_FALSE='#'
9818 else
9819 GTK_CAIRO_TRUE='#'
9820 GTK_CAIRO_FALSE=
9823 if test "x${enable_gtk_cairo}" = xyes
9824 then
9826 succeeded=no
9828 if test -z "$PKG_CONFIG"; then
9829 # Extract the first word of "pkg-config", so it can be a program name with args.
9830 set dummy pkg-config; ac_word=$2
9831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9833 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 else
9836 case $PKG_CONFIG in
9837 [\\/]* | ?:[\\/]*)
9838 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9842 for as_dir in $PATH
9844 IFS=$as_save_IFS
9845 test -z "$as_dir" && as_dir=.
9846 for ac_exec_ext in '' $ac_executable_extensions; do
9847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9848 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9850 break 2
9852 done
9853 done
9854 IFS=$as_save_IFS
9856 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9858 esac
9860 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9861 if test -n "$PKG_CONFIG"; then
9862 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9863 echo "${ECHO_T}$PKG_CONFIG" >&6; }
9864 else
9865 { echo "$as_me:$LINENO: result: no" >&5
9866 echo "${ECHO_T}no" >&6; }
9872 if test "$PKG_CONFIG" = "no" ; then
9873 echo "*** The pkg-config script could not be found. Make sure it is"
9874 echo "*** in your path, or set the PKG_CONFIG environment variable"
9875 echo "*** to the full path to pkg-config."
9876 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9877 else
9878 PKG_CONFIG_MIN_VERSION=0.9.0
9879 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9880 { echo "$as_me:$LINENO: checking for cairo" >&5
9881 echo $ECHO_N "checking for cairo... $ECHO_C" >&6; }
9883 if $PKG_CONFIG --exists "cairo" ; then
9884 { echo "$as_me:$LINENO: result: yes" >&5
9885 echo "${ECHO_T}yes" >&6; }
9886 succeeded=yes
9888 { echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
9889 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6; }
9890 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
9891 { echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
9892 echo "${ECHO_T}$CAIRO_CFLAGS" >&6; }
9894 { echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
9895 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6; }
9896 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
9897 { echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
9898 echo "${ECHO_T}$CAIRO_LIBS" >&6; }
9899 else
9900 CAIRO_CFLAGS=""
9901 CAIRO_LIBS=""
9902 ## If we have a custom action on failure, don't print errors, but
9903 ## do set a variable so people can do so.
9904 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
9905 echo $CAIRO_PKG_ERRORS
9910 else
9911 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9912 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9916 if test $succeeded = yes; then
9918 else
9919 { { echo "$as_me:$LINENO: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
9920 echo "$as_me: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
9921 { (exit 1); exit 1; }; }
9925 succeeded=no
9927 if test -z "$PKG_CONFIG"; then
9928 # Extract the first word of "pkg-config", so it can be a program name with args.
9929 set dummy pkg-config; ac_word=$2
9930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9932 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9934 else
9935 case $PKG_CONFIG in
9936 [\\/]* | ?:[\\/]*)
9937 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9941 for as_dir in $PATH
9943 IFS=$as_save_IFS
9944 test -z "$as_dir" && as_dir=.
9945 for ac_exec_ext in '' $ac_executable_extensions; do
9946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9947 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9949 break 2
9951 done
9952 done
9953 IFS=$as_save_IFS
9955 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9957 esac
9959 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9960 if test -n "$PKG_CONFIG"; then
9961 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9962 echo "${ECHO_T}$PKG_CONFIG" >&6; }
9963 else
9964 { echo "$as_me:$LINENO: result: no" >&5
9965 echo "${ECHO_T}no" >&6; }
9971 if test "$PKG_CONFIG" = "no" ; then
9972 echo "*** The pkg-config script could not be found. Make sure it is"
9973 echo "*** in your path, or set the PKG_CONFIG environment variable"
9974 echo "*** to the full path to pkg-config."
9975 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9976 else
9977 PKG_CONFIG_MIN_VERSION=0.9.0
9978 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9979 { echo "$as_me:$LINENO: checking for pangoft2" >&5
9980 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6; }
9982 if $PKG_CONFIG --exists "pangoft2" ; then
9983 { echo "$as_me:$LINENO: result: yes" >&5
9984 echo "${ECHO_T}yes" >&6; }
9985 succeeded=yes
9987 { echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
9988 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6; }
9989 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
9990 { echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
9991 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6; }
9993 { echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
9994 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6; }
9995 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
9996 { echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
9997 echo "${ECHO_T}$PANGOFT2_LIBS" >&6; }
9998 else
9999 PANGOFT2_CFLAGS=""
10000 PANGOFT2_LIBS=""
10001 ## If we have a custom action on failure, don't print errors, but
10002 ## do set a variable so people can do so.
10003 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
10004 echo $PANGOFT2_PKG_ERRORS
10009 else
10010 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10011 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10015 if test $succeeded = yes; then
10017 else
10018 { { echo "$as_me:$LINENO: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
10019 echo "$as_me: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
10020 { (exit 1); exit 1; }; }
10029 # FIXME: this should be _libs on some hosts.
10030 libsubdir=.libs
10032 # extra LD Flags which are required for targets
10033 case "${host}" in
10034 *-*-darwin[0-7].*)
10035 # For now we have to disable it on darwin[8-9] because it slows down
10036 # the linking phase. A possible bug in ld?
10037 # on Darwin -single_module speeds up loading of the dynamic libraries.
10038 extra_ldflags_libjava=-Wl,-single_module
10040 esac
10043 # Allow the GC to be disabled. Can be useful when debugging.
10044 { echo "$as_me:$LINENO: checking for garbage collector to use" >&5
10045 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6; }
10046 # Check whether --enable-java-gc was given.
10047 if test "${enable_java_gc+set}" = set; then
10048 enableval=$enable_java_gc; GC=$enableval
10049 else
10050 GC=boehm
10053 GCLIBS=
10054 GCINCS=
10055 GCDEPS=
10056 GCSPEC=
10057 JC1GCSPEC=
10058 GCTESTSPEC=
10059 case "$GC" in
10060 boehm)
10061 { echo "$as_me:$LINENO: result: boehm" >&5
10062 echo "${ECHO_T}boehm" >&6; }
10063 GCLIBS=../boehm-gc/libgcjgc_convenience.la
10064 JC1GCSPEC='-fuse-boehm-gc'
10065 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
10066 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
10067 GCOBJS=boehm.lo
10068 GCHDR=boehm-gc.h
10069 # The POSIX thread support needs to know this.
10071 cat >>confdefs.h <<\_ACEOF
10072 #define HAVE_BOEHM_GC 1
10073 _ACEOF
10077 { echo "$as_me:$LINENO: result: none" >&5
10078 echo "${ECHO_T}none" >&6; }
10079 GCHDR=no-gc.h
10082 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
10083 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
10084 { (exit 1); exit 1; }; }
10086 esac
10093 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
10097 if test "$GC" = boehm; then
10098 USING_BOEHMGC_TRUE=
10099 USING_BOEHMGC_FALSE='#'
10100 else
10101 USING_BOEHMGC_TRUE='#'
10102 USING_BOEHMGC_FALSE=
10107 if test "$GC" = no; then
10108 USING_NOGC_TRUE=
10109 USING_NOGC_FALSE='#'
10110 else
10111 USING_NOGC_TRUE='#'
10112 USING_NOGC_FALSE=
10117 { echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
10118 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6; }
10119 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
10120 { echo "$as_me:$LINENO: result: $THREADS" >&5
10121 echo "${ECHO_T}$THREADS" >&6; }
10123 case "$THREADS" in
10124 no | none | single)
10125 THREADS=none
10127 posix | posix95 | pthreads)
10128 THREADS=posix
10129 case "$host" in
10130 *-*-linux*)
10132 cat >>confdefs.h <<\_ACEOF
10133 #define LINUX_THREADS 1
10134 _ACEOF
10137 esac
10139 win32)
10141 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
10142 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
10143 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
10144 { (exit 1); exit 1; }; }
10147 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
10148 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
10149 { (exit 1); exit 1; }; }
10151 esac
10153 THREADCXXFLAGS=
10154 THREADLDFLAGS=
10155 THREADLIBS=
10156 THREADINCS=
10157 THREADDEPS=
10158 THREADH=
10159 THREADSPEC=
10160 case "$THREADS" in
10161 posix)
10162 case "$host" in
10163 *-*-cygwin*)
10164 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
10166 *-*-freebsd[1234]*)
10167 # Before FreeBSD 5, it didn't have -lpthread (or any library which
10168 # merely adds pthread_* functions) but it does have a -pthread switch
10169 # which is required at link-time to select -lc_r *instead* of -lc.
10170 THREADLDFLAGS=-pthread
10171 # Don't set THREADSPEC here as might be expected since -pthread is
10172 # not processed when found within a spec file, it must come from
10173 # the command line. For now, the user must provide the -pthread
10174 # switch to link code compiled with gcj. In future, consider adding
10175 # support for weak references to pthread_* functions ala gthr.h API.
10176 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
10178 *-*-freebsd*)
10179 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
10180 # systems which support threads and -lpthread.
10181 THREADLDFLAGS=-pthread
10182 THREADSPEC=-lpthread
10184 alpha*-dec-osf* | hppa*-hp-hpux*)
10185 THREADCXXFLAGS=-pthread
10186 # boehm-gc needs some functions from librt, so link that too.
10187 THREADLIBS='-lpthread -lrt'
10188 THREADSPEC='-lpthread -lrt'
10191 THREADLIBS=-lpthread
10192 THREADSPEC=-lpthread
10194 esac
10195 THREADH=posix-threads.h
10196 # MIT pthreads doesn't seem to have the mutexattr functions.
10197 # But for now we don't check for it. We just assume you aren't
10198 # using MIT pthreads.
10200 cat >>confdefs.h <<\_ACEOF
10201 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
10202 _ACEOF
10205 # If we're using the Boehm GC, then we happen to know that it
10206 # defines _REENTRANT, so we don't bother. Eww.
10207 if test "$GC" != boehm; then
10209 cat >>confdefs.h <<\_ACEOF
10210 #define _REENTRANT 1
10211 _ACEOF
10215 cat >>confdefs.h <<\_ACEOF
10216 #define _POSIX_PTHREAD_SEMANTICS 1
10217 _ACEOF
10221 win32)
10222 THREADH=win32-threads.h
10225 none)
10226 THREADH=no-threads.h
10228 esac
10229 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
10239 if test "$THREADS" = posix; then
10240 USING_POSIX_THREADS_TRUE=
10241 USING_POSIX_THREADS_FALSE='#'
10242 else
10243 USING_POSIX_THREADS_TRUE='#'
10244 USING_POSIX_THREADS_FALSE=
10249 if test "$THREADS" = win32; then
10250 USING_WIN32_THREADS_TRUE=
10251 USING_WIN32_THREADS_FALSE='#'
10252 else
10253 USING_WIN32_THREADS_TRUE='#'
10254 USING_WIN32_THREADS_FALSE=
10259 if test "$THREADS" = none; then
10260 USING_NO_THREADS_TRUE=
10261 USING_NO_THREADS_FALSE='#'
10262 else
10263 USING_NO_THREADS_TRUE='#'
10264 USING_NO_THREADS_FALSE=
10268 if test -d sysdep; then true; else mkdir sysdep; fi
10269 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
10271 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
10273 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
10276 HASH_SYNC_SPEC=
10277 # Hash synchronization is only useful with posix threads right now.
10278 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
10279 HASH_SYNC_SPEC=-fhash-synchronization
10281 cat >>confdefs.h <<\_ACEOF
10282 #define JV_HASH_SYNCHRONIZATION 1
10283 _ACEOF
10290 if test "$GCC" = yes; then
10291 USING_GCC_TRUE=
10292 USING_GCC_FALSE='#'
10293 else
10294 USING_GCC_TRUE='#'
10295 USING_GCC_FALSE=
10299 # We're in the tree with gcc, and need to include some of its headers.
10300 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
10302 if test "x${with_newlib}" = "xyes"; then
10303 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
10304 # may not work correctly, because the compiler may not be able to
10305 # link executables.
10307 # We assume newlib. This lets us hard-code the functions we know
10308 # we'll have.
10310 cat >>confdefs.h <<\_ACEOF
10311 #define HAVE_MEMMOVE 1
10312 _ACEOF
10315 cat >>confdefs.h <<\_ACEOF
10316 #define HAVE_MEMCPY 1
10317 _ACEOF
10320 cat >>confdefs.h <<\_ACEOF
10321 #define HAVE_STRERROR 1
10322 _ACEOF
10325 cat >>confdefs.h <<\_ACEOF
10326 #define HAVE_TIME 1
10327 _ACEOF
10330 cat >>confdefs.h <<\_ACEOF
10331 #define HAVE_GMTIME_R 1
10332 _ACEOF
10335 cat >>confdefs.h <<\_ACEOF
10336 #define HAVE_LOCALTIME_R 1
10337 _ACEOF
10340 cat >>confdefs.h <<\_ACEOF
10341 #define HAVE_USLEEP_DECL 1
10342 _ACEOF
10344 # This is only for POSIX threads.
10346 cat >>confdefs.h <<\_ACEOF
10347 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
10348 _ACEOF
10350 # We also assume we are using gcc, which provides alloca.
10351 cat >>confdefs.h <<\_ACEOF
10352 #define HAVE_ALLOCA 1
10353 _ACEOF
10356 # Assume we do not have getuid and friends.
10358 cat >>confdefs.h <<\_ACEOF
10359 #define NO_GETUID 1
10360 _ACEOF
10362 PLATFORMNET=NoNet
10363 else
10397 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
10398 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
10399 access stat mkdir rename rmdir unlink realpath utime chmod \
10400 nl_langinfo setlocale \
10401 inet_pton uname inet_ntoa \
10402 fork execvp pipe sigaction ftruncate mmap
10404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10405 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10409 else
10410 if test x$gcc_no_link = xyes; then
10411 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10412 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10413 { (exit 1); exit 1; }; }
10415 cat >conftest.$ac_ext <<_ACEOF
10416 /* confdefs.h. */
10417 _ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h. */
10421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10423 #define $ac_func innocuous_$ac_func
10425 /* System header to define __stub macros and hopefully few prototypes,
10426 which can conflict with char $ac_func (); below.
10427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10428 <limits.h> exists even on freestanding compilers. */
10430 #ifdef __STDC__
10431 # include <limits.h>
10432 #else
10433 # include <assert.h>
10434 #endif
10436 #undef $ac_func
10438 /* Override any GCC internal prototype to avoid an error.
10439 Use char because int might match the return type of a GCC
10440 builtin and then its argument prototype would still apply. */
10441 #ifdef __cplusplus
10442 extern "C"
10443 #endif
10444 char $ac_func ();
10445 /* The GNU C library defines this for functions which it implements
10446 to always fail with ENOSYS. Some functions are actually named
10447 something starting with __ and the normal name is an alias. */
10448 #if defined __stub_$ac_func || defined __stub___$ac_func
10449 choke me
10450 #endif
10453 main ()
10455 return $ac_func ();
10457 return 0;
10459 _ACEOF
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462 (eval $ac_link) 2>conftest.er1
10463 ac_status=$?
10464 grep -v '^ *+' conftest.er1 >conftest.err
10465 rm -f conftest.er1
10466 cat conftest.err >&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } &&
10469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471 (eval $ac_try) 2>&5
10472 ac_status=$?
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; } &&
10475 { ac_try='test -s conftest$ac_exeext'
10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477 (eval $ac_try) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; }; then
10481 eval "$as_ac_var=yes"
10482 else
10483 echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10486 eval "$as_ac_var=no"
10489 rm -f conftest.err conftest.$ac_objext \
10490 conftest$ac_exeext conftest.$ac_ext
10492 ac_res=`eval echo '${'$as_ac_var'}'`
10493 { echo "$as_me:$LINENO: result: $ac_res" >&5
10494 echo "${ECHO_T}$ac_res" >&6; }
10495 if test `eval echo '${'$as_ac_var'}'` = yes; then
10496 cat >>confdefs.h <<_ACEOF
10497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10498 _ACEOF
10501 done
10505 for ac_func in inet_aton inet_addr
10507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10508 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10510 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 else
10513 if test x$gcc_no_link = xyes; then
10514 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10515 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10516 { (exit 1); exit 1; }; }
10518 cat >conftest.$ac_ext <<_ACEOF
10519 /* confdefs.h. */
10520 _ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h. */
10524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10526 #define $ac_func innocuous_$ac_func
10528 /* System header to define __stub macros and hopefully few prototypes,
10529 which can conflict with char $ac_func (); below.
10530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10531 <limits.h> exists even on freestanding compilers. */
10533 #ifdef __STDC__
10534 # include <limits.h>
10535 #else
10536 # include <assert.h>
10537 #endif
10539 #undef $ac_func
10541 /* Override any GCC internal prototype to avoid an error.
10542 Use char because int might match the return type of a GCC
10543 builtin and then its argument prototype would still apply. */
10544 #ifdef __cplusplus
10545 extern "C"
10546 #endif
10547 char $ac_func ();
10548 /* The GNU C library defines this for functions which it implements
10549 to always fail with ENOSYS. Some functions are actually named
10550 something starting with __ and the normal name is an alias. */
10551 #if defined __stub_$ac_func || defined __stub___$ac_func
10552 choke me
10553 #endif
10556 main ()
10558 return $ac_func ();
10560 return 0;
10562 _ACEOF
10563 rm -f conftest.$ac_objext conftest$ac_exeext
10564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565 (eval $ac_link) 2>conftest.er1
10566 ac_status=$?
10567 grep -v '^ *+' conftest.er1 >conftest.err
10568 rm -f conftest.er1
10569 cat conftest.err >&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } &&
10572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574 (eval $ac_try) 2>&5
10575 ac_status=$?
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; } &&
10578 { ac_try='test -s conftest$ac_exeext'
10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10581 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; }; then
10584 eval "$as_ac_var=yes"
10585 else
10586 echo "$as_me: failed program was:" >&5
10587 sed 's/^/| /' conftest.$ac_ext >&5
10589 eval "$as_ac_var=no"
10592 rm -f conftest.err conftest.$ac_objext \
10593 conftest$ac_exeext conftest.$ac_ext
10595 ac_res=`eval echo '${'$as_ac_var'}'`
10596 { echo "$as_me:$LINENO: result: $ac_res" >&5
10597 echo "${ECHO_T}$ac_res" >&6; }
10598 if test `eval echo '${'$as_ac_var'}'` = yes; then
10599 cat >>confdefs.h <<_ACEOF
10600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10601 _ACEOF
10602 break
10604 done
10606 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10607 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
10608 if test "${ac_cv_header_stdc+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611 cat >conftest.$ac_ext <<_ACEOF
10612 /* confdefs.h. */
10613 _ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10617 #include <stdlib.h>
10618 #include <stdarg.h>
10619 #include <string.h>
10620 #include <float.h>
10623 main ()
10627 return 0;
10629 _ACEOF
10630 rm -f conftest.$ac_objext
10631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10632 (eval $ac_compile) 2>conftest.er1
10633 ac_status=$?
10634 grep -v '^ *+' conftest.er1 >conftest.err
10635 rm -f conftest.er1
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } &&
10639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641 (eval $ac_try) 2>&5
10642 ac_status=$?
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; } &&
10645 { ac_try='test -s conftest.$ac_objext'
10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10648 ac_status=$?
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; }; then
10651 ac_cv_header_stdc=yes
10652 else
10653 echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10656 ac_cv_header_stdc=no
10659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10661 if test $ac_cv_header_stdc = yes; then
10662 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10663 cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h. */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669 #include <string.h>
10671 _ACEOF
10672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10673 $EGREP "memchr" >/dev/null 2>&1; then
10675 else
10676 ac_cv_header_stdc=no
10678 rm -f conftest*
10682 if test $ac_cv_header_stdc = yes; then
10683 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10684 cat >conftest.$ac_ext <<_ACEOF
10685 /* confdefs.h. */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 #include <stdlib.h>
10692 _ACEOF
10693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10694 $EGREP "free" >/dev/null 2>&1; then
10696 else
10697 ac_cv_header_stdc=no
10699 rm -f conftest*
10703 if test $ac_cv_header_stdc = yes; then
10704 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10705 if test "$cross_compiling" = yes; then
10707 else
10708 cat >conftest.$ac_ext <<_ACEOF
10709 /* confdefs.h. */
10710 _ACEOF
10711 cat confdefs.h >>conftest.$ac_ext
10712 cat >>conftest.$ac_ext <<_ACEOF
10713 /* end confdefs.h. */
10714 #include <ctype.h>
10715 #include <stdlib.h>
10716 #if ((' ' & 0x0FF) == 0x020)
10717 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10718 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10719 #else
10720 # define ISLOWER(c) \
10721 (('a' <= (c) && (c) <= 'i') \
10722 || ('j' <= (c) && (c) <= 'r') \
10723 || ('s' <= (c) && (c) <= 'z'))
10724 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10725 #endif
10727 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10729 main ()
10731 int i;
10732 for (i = 0; i < 256; i++)
10733 if (XOR (islower (i), ISLOWER (i))
10734 || toupper (i) != TOUPPER (i))
10735 return 2;
10736 return 0;
10738 _ACEOF
10739 rm -f conftest$ac_exeext
10740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10741 (eval $ac_link) 2>&5
10742 ac_status=$?
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746 (eval $ac_try) 2>&5
10747 ac_status=$?
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; }; then
10751 else
10752 echo "$as_me: program exited with status $ac_status" >&5
10753 echo "$as_me: failed program was:" >&5
10754 sed 's/^/| /' conftest.$ac_ext >&5
10756 ( exit $ac_status )
10757 ac_cv_header_stdc=no
10759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10765 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10766 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
10767 if test $ac_cv_header_stdc = yes; then
10769 cat >>confdefs.h <<\_ACEOF
10770 #define STDC_HEADERS 1
10771 _ACEOF
10775 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10785 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10786 inttypes.h stdint.h unistd.h
10788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10793 else
10794 cat >conftest.$ac_ext <<_ACEOF
10795 /* confdefs.h. */
10796 _ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10800 $ac_includes_default
10802 #include <$ac_header>
10803 _ACEOF
10804 rm -f conftest.$ac_objext
10805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10806 (eval $ac_compile) 2>conftest.er1
10807 ac_status=$?
10808 grep -v '^ *+' conftest.er1 >conftest.err
10809 rm -f conftest.er1
10810 cat conftest.err >&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } &&
10813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10816 ac_status=$?
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; } &&
10819 { ac_try='test -s conftest.$ac_objext'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10825 eval "$as_ac_Header=yes"
10826 else
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 eval "$as_ac_Header=no"
10833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10835 ac_res=`eval echo '${'$as_ac_Header'}'`
10836 { echo "$as_me:$LINENO: result: $ac_res" >&5
10837 echo "${ECHO_T}$ac_res" >&6; }
10838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10839 cat >>confdefs.h <<_ACEOF
10840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10841 _ACEOF
10845 done
10851 for ac_header in execinfo.h unistd.h dlfcn.h
10853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10860 ac_res=`eval echo '${'$as_ac_Header'}'`
10861 { echo "$as_me:$LINENO: result: $ac_res" >&5
10862 echo "${ECHO_T}$ac_res" >&6; }
10863 else
10864 # Is the header compilable?
10865 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10867 cat >conftest.$ac_ext <<_ACEOF
10868 /* confdefs.h. */
10869 _ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10873 $ac_includes_default
10874 #include <$ac_header>
10875 _ACEOF
10876 rm -f conftest.$ac_objext
10877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10878 (eval $ac_compile) 2>conftest.er1
10879 ac_status=$?
10880 grep -v '^ *+' conftest.er1 >conftest.err
10881 rm -f conftest.er1
10882 cat conftest.err >&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } &&
10885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; } &&
10891 { ac_try='test -s conftest.$ac_objext'
10892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893 (eval $ac_try) 2>&5
10894 ac_status=$?
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; }; then
10897 ac_header_compiler=yes
10898 else
10899 echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10902 ac_header_compiler=no
10905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10907 echo "${ECHO_T}$ac_header_compiler" >&6; }
10909 # Is the header present?
10910 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10912 cat >conftest.$ac_ext <<_ACEOF
10913 /* confdefs.h. */
10914 _ACEOF
10915 cat confdefs.h >>conftest.$ac_ext
10916 cat >>conftest.$ac_ext <<_ACEOF
10917 /* end confdefs.h. */
10918 #include <$ac_header>
10919 _ACEOF
10920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10922 ac_status=$?
10923 grep -v '^ *+' conftest.er1 >conftest.err
10924 rm -f conftest.er1
10925 cat conftest.err >&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } >/dev/null; then
10928 if test -s conftest.err; then
10929 ac_cpp_err=$ac_c_preproc_warn_flag
10930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10931 else
10932 ac_cpp_err=
10934 else
10935 ac_cpp_err=yes
10937 if test -z "$ac_cpp_err"; then
10938 ac_header_preproc=yes
10939 else
10940 echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10943 ac_header_preproc=no
10946 rm -f conftest.err conftest.$ac_ext
10947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10948 echo "${ECHO_T}$ac_header_preproc" >&6; }
10950 # So? What about this header?
10951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10952 yes:no: )
10953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10957 ac_header_preproc=yes
10959 no:yes:* )
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10974 esac
10975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10979 else
10980 eval "$as_ac_Header=\$ac_header_preproc"
10982 ac_res=`eval echo '${'$as_ac_Header'}'`
10983 { echo "$as_me:$LINENO: result: $ac_res" >&5
10984 echo "${ECHO_T}$ac_res" >&6; }
10987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10988 cat >>confdefs.h <<_ACEOF
10989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10990 _ACEOF
10994 done
10996 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
10997 { echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10998 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6; }
10999 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 else
11002 ac_check_lib_save_LIBS=$LIBS
11003 LIBS="-ldl $LIBS"
11004 if test x$gcc_no_link = xyes; then
11005 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11006 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11007 { (exit 1); exit 1; }; }
11009 cat >conftest.$ac_ext <<_ACEOF
11010 /* confdefs.h. */
11011 _ACEOF
11012 cat confdefs.h >>conftest.$ac_ext
11013 cat >>conftest.$ac_ext <<_ACEOF
11014 /* end confdefs.h. */
11016 /* Override any GCC internal prototype to avoid an error.
11017 Use char because int might match the return type of a GCC
11018 builtin and then its argument prototype would still apply. */
11019 #ifdef __cplusplus
11020 extern "C"
11021 #endif
11022 char dladdr ();
11024 main ()
11026 return dladdr ();
11028 return 0;
11030 _ACEOF
11031 rm -f conftest.$ac_objext conftest$ac_exeext
11032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11033 (eval $ac_link) 2>conftest.er1
11034 ac_status=$?
11035 grep -v '^ *+' conftest.er1 >conftest.err
11036 rm -f conftest.er1
11037 cat conftest.err >&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } &&
11040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11043 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; } &&
11046 { ac_try='test -s conftest$ac_exeext'
11047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11048 (eval $ac_try) 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; }; then
11052 ac_cv_lib_dl_dladdr=yes
11053 else
11054 echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.$ac_ext >&5
11057 ac_cv_lib_dl_dladdr=no
11060 rm -f conftest.err conftest.$ac_objext \
11061 conftest$ac_exeext conftest.$ac_ext
11062 LIBS=$ac_check_lib_save_LIBS
11064 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
11065 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6; }
11066 if test $ac_cv_lib_dl_dladdr = yes; then
11069 cat >>confdefs.h <<\_ACEOF
11070 #define HAVE_DLADDR 1
11071 _ACEOF
11073 else
11075 { echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
11076 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6; }
11077 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 else
11080 ac_check_lib_save_LIBS=$LIBS
11081 LIBS="-ldld $LIBS"
11082 if test x$gcc_no_link = xyes; then
11083 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11084 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11085 { (exit 1); exit 1; }; }
11087 cat >conftest.$ac_ext <<_ACEOF
11088 /* confdefs.h. */
11089 _ACEOF
11090 cat confdefs.h >>conftest.$ac_ext
11091 cat >>conftest.$ac_ext <<_ACEOF
11092 /* end confdefs.h. */
11094 /* Override any GCC internal prototype to avoid an error.
11095 Use char because int might match the return type of a GCC
11096 builtin and then its argument prototype would still apply. */
11097 #ifdef __cplusplus
11098 extern "C"
11099 #endif
11100 char dladdr ();
11102 main ()
11104 return dladdr ();
11106 return 0;
11108 _ACEOF
11109 rm -f conftest.$ac_objext conftest$ac_exeext
11110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11111 (eval $ac_link) 2>conftest.er1
11112 ac_status=$?
11113 grep -v '^ *+' conftest.er1 >conftest.err
11114 rm -f conftest.er1
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } &&
11118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11121 ac_status=$?
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; } &&
11124 { ac_try='test -s conftest$ac_exeext'
11125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126 (eval $ac_try) 2>&5
11127 ac_status=$?
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; }; then
11130 ac_cv_lib_dld_dladdr=yes
11131 else
11132 echo "$as_me: failed program was:" >&5
11133 sed 's/^/| /' conftest.$ac_ext >&5
11135 ac_cv_lib_dld_dladdr=no
11138 rm -f conftest.err conftest.$ac_objext \
11139 conftest$ac_exeext conftest.$ac_ext
11140 LIBS=$ac_check_lib_save_LIBS
11142 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
11143 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6; }
11144 if test $ac_cv_lib_dld_dladdr = yes; then
11147 cat >>confdefs.h <<\_ACEOF
11148 #define HAVE_DLADDR 1
11149 _ACEOF
11156 if test x"$build" = x"$host"; then
11157 { echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
11158 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6; }
11159 if test "${ac_cv_file__proc_self_exe+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 else
11162 test "$cross_compiling" = yes &&
11163 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
11164 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
11165 { (exit 1); exit 1; }; }
11166 if test -r "/proc/self/exe"; then
11167 ac_cv_file__proc_self_exe=yes
11168 else
11169 ac_cv_file__proc_self_exe=no
11172 { echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
11173 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6; }
11174 if test $ac_cv_file__proc_self_exe = yes; then
11176 cat >>confdefs.h <<_ACEOF
11177 #define HAVE__PROC_SELF_EXE 1
11178 _ACEOF
11182 cat >>confdefs.h <<\_ACEOF
11183 #define HAVE_PROC_SELF_EXE 1
11184 _ACEOF
11188 else
11189 case $host in
11190 *-linux*)
11192 cat >>confdefs.h <<\_ACEOF
11193 #define HAVE_PROC_SELF_EXE 1
11194 _ACEOF
11197 esac
11201 if test "X$prefix" = "XNONE"; then
11202 acl_final_prefix="$ac_default_prefix"
11203 else
11204 acl_final_prefix="$prefix"
11206 if test "X$exec_prefix" = "XNONE"; then
11207 acl_final_exec_prefix='${prefix}'
11208 else
11209 acl_final_exec_prefix="$exec_prefix"
11211 acl_save_prefix="$prefix"
11212 prefix="$acl_final_prefix"
11213 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11214 prefix="$acl_save_prefix"
11217 # Check whether --with-gnu-ld was given.
11218 if test "${with_gnu_ld+set}" = set; then
11219 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11220 else
11221 with_gnu_ld=no
11224 # Prepare PATH_SEPARATOR.
11225 # The user is always right.
11226 if test "${PATH_SEPARATOR+set}" != set; then
11227 echo "#! /bin/sh" >conf$$.sh
11228 echo "exit 0" >>conf$$.sh
11229 chmod +x conf$$.sh
11230 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11231 PATH_SEPARATOR=';'
11232 else
11233 PATH_SEPARATOR=:
11235 rm -f conf$$.sh
11237 ac_prog=ld
11238 if test "$GCC" = yes; then
11239 # Check if gcc -print-prog-name=ld gives a path.
11240 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11241 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
11242 case $host in
11243 *-*-mingw*)
11244 # gcc leaves a trailing carriage return which upsets mingw
11245 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11247 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11248 esac
11249 case $ac_prog in
11250 # Accept absolute paths.
11251 [\\/]* | [A-Za-z]:[\\/]*)
11252 re_direlt='/[^/][^/]*/\.\./'
11253 # Canonicalize the path of ld
11254 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11255 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11256 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11257 done
11258 test -z "$LD" && LD="$ac_prog"
11261 # If it fails, then pretend we aren't using GCC.
11262 ac_prog=ld
11265 # If it is relative, then search for the first ld in PATH.
11266 with_gnu_ld=unknown
11268 esac
11269 elif test "$with_gnu_ld" = yes; then
11270 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11271 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11272 else
11273 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11274 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11276 if test "${acl_cv_path_LD+set}" = set; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11278 else
11279 if test -z "$LD"; then
11280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11281 for ac_dir in $PATH; do
11282 test -z "$ac_dir" && ac_dir=.
11283 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11284 acl_cv_path_LD="$ac_dir/$ac_prog"
11285 # Check to see if the program is GNU ld. I'd rather use --version,
11286 # but apparently some GNU ld's only accept -v.
11287 # Break only if it was the GNU/non-GNU ld that we prefer.
11288 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11289 test "$with_gnu_ld" != no && break
11290 else
11291 test "$with_gnu_ld" != yes && break
11294 done
11295 IFS="$ac_save_ifs"
11296 else
11297 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11301 LD="$acl_cv_path_LD"
11302 if test -n "$LD"; then
11303 { echo "$as_me:$LINENO: result: $LD" >&5
11304 echo "${ECHO_T}$LD" >&6; }
11305 else
11306 { echo "$as_me:$LINENO: result: no" >&5
11307 echo "${ECHO_T}no" >&6; }
11309 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11310 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11311 { (exit 1); exit 1; }; }
11312 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11313 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11314 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 else
11317 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11318 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11319 acl_cv_prog_gnu_ld=yes
11320 else
11321 acl_cv_prog_gnu_ld=no
11324 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11325 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
11326 with_gnu_ld=$acl_cv_prog_gnu_ld
11330 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11331 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
11332 if test "${acl_cv_rpath+set}" = set; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11334 else
11336 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11337 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11338 . ./conftest.sh
11339 rm -f ./conftest.sh
11340 acl_cv_rpath=done
11343 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11344 echo "${ECHO_T}$acl_cv_rpath" >&6; }
11345 wl="$acl_cv_wl"
11346 libext="$acl_cv_libext"
11347 shlibext="$acl_cv_shlibext"
11348 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11349 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11350 hardcode_direct="$acl_cv_hardcode_direct"
11351 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11352 # Check whether --enable-rpath was given.
11353 if test "${enable_rpath+set}" = set; then
11354 enableval=$enable_rpath; :
11355 else
11356 enable_rpath=yes
11366 use_additional=yes
11368 acl_save_prefix="$prefix"
11369 prefix="$acl_final_prefix"
11370 acl_save_exec_prefix="$exec_prefix"
11371 exec_prefix="$acl_final_exec_prefix"
11373 eval additional_includedir=\"$includedir\"
11374 eval additional_libdir=\"$libdir\"
11376 exec_prefix="$acl_save_exec_prefix"
11377 prefix="$acl_save_prefix"
11380 # Check whether --with-libiconv-prefix was given.
11381 if test "${with_libiconv_prefix+set}" = set; then
11382 withval=$with_libiconv_prefix;
11383 if test "X$withval" = "Xno"; then
11384 use_additional=no
11385 else
11386 if test "X$withval" = "X"; then
11388 acl_save_prefix="$prefix"
11389 prefix="$acl_final_prefix"
11390 acl_save_exec_prefix="$exec_prefix"
11391 exec_prefix="$acl_final_exec_prefix"
11393 eval additional_includedir=\"$includedir\"
11394 eval additional_libdir=\"$libdir\"
11396 exec_prefix="$acl_save_exec_prefix"
11397 prefix="$acl_save_prefix"
11399 else
11400 additional_includedir="$withval/include"
11401 additional_libdir="$withval/lib"
11407 LIBICONV=
11408 LTLIBICONV=
11409 INCICONV=
11410 rpathdirs=
11411 ltrpathdirs=
11412 names_already_handled=
11413 names_next_round='iconv '
11414 while test -n "$names_next_round"; do
11415 names_this_round="$names_next_round"
11416 names_next_round=
11417 for name in $names_this_round; do
11418 already_handled=
11419 for n in $names_already_handled; do
11420 if test "$n" = "$name"; then
11421 already_handled=yes
11422 break
11424 done
11425 if test -z "$already_handled"; then
11426 names_already_handled="$names_already_handled $name"
11427 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11428 eval value=\"\$HAVE_LIB$uppername\"
11429 if test -n "$value"; then
11430 if test "$value" = yes; then
11431 eval value=\"\$LIB$uppername\"
11432 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11433 eval value=\"\$LTLIB$uppername\"
11434 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11435 else
11438 else
11439 found_dir=
11440 found_la=
11441 found_so=
11442 found_a=
11443 if test $use_additional = yes; then
11444 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11445 found_dir="$additional_libdir"
11446 found_so="$additional_libdir/lib$name.$shlibext"
11447 if test -f "$additional_libdir/lib$name.la"; then
11448 found_la="$additional_libdir/lib$name.la"
11450 else
11451 if test -f "$additional_libdir/lib$name.$libext"; then
11452 found_dir="$additional_libdir"
11453 found_a="$additional_libdir/lib$name.$libext"
11454 if test -f "$additional_libdir/lib$name.la"; then
11455 found_la="$additional_libdir/lib$name.la"
11460 if test "X$found_dir" = "X"; then
11461 for x in $LDFLAGS $LTLIBICONV; do
11463 acl_save_prefix="$prefix"
11464 prefix="$acl_final_prefix"
11465 acl_save_exec_prefix="$exec_prefix"
11466 exec_prefix="$acl_final_exec_prefix"
11467 eval x=\"$x\"
11468 exec_prefix="$acl_save_exec_prefix"
11469 prefix="$acl_save_prefix"
11471 case "$x" in
11472 -L*)
11473 dir=`echo "X$x" | sed -e 's/^X-L//'`
11474 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11475 found_dir="$dir"
11476 found_so="$dir/lib$name.$shlibext"
11477 if test -f "$dir/lib$name.la"; then
11478 found_la="$dir/lib$name.la"
11480 else
11481 if test -f "$dir/lib$name.$libext"; then
11482 found_dir="$dir"
11483 found_a="$dir/lib$name.$libext"
11484 if test -f "$dir/lib$name.la"; then
11485 found_la="$dir/lib$name.la"
11490 esac
11491 if test "X$found_dir" != "X"; then
11492 break
11494 done
11496 if test "X$found_dir" != "X"; then
11497 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11498 if test "X$found_so" != "X"; then
11499 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11500 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11501 else
11502 haveit=
11503 for x in $ltrpathdirs; do
11504 if test "X$x" = "X$found_dir"; then
11505 haveit=yes
11506 break
11508 done
11509 if test -z "$haveit"; then
11510 ltrpathdirs="$ltrpathdirs $found_dir"
11512 if test "$hardcode_direct" = yes; then
11513 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11514 else
11515 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11516 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11517 haveit=
11518 for x in $rpathdirs; do
11519 if test "X$x" = "X$found_dir"; then
11520 haveit=yes
11521 break
11523 done
11524 if test -z "$haveit"; then
11525 rpathdirs="$rpathdirs $found_dir"
11527 else
11528 haveit=
11529 for x in $LDFLAGS $LIBICONV; do
11531 acl_save_prefix="$prefix"
11532 prefix="$acl_final_prefix"
11533 acl_save_exec_prefix="$exec_prefix"
11534 exec_prefix="$acl_final_exec_prefix"
11535 eval x=\"$x\"
11536 exec_prefix="$acl_save_exec_prefix"
11537 prefix="$acl_save_prefix"
11539 if test "X$x" = "X-L$found_dir"; then
11540 haveit=yes
11541 break
11543 done
11544 if test -z "$haveit"; then
11545 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11547 if test "$hardcode_minus_L" != no; then
11548 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11549 else
11550 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11555 else
11556 if test "X$found_a" != "X"; then
11557 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11558 else
11559 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11562 additional_includedir=
11563 case "$found_dir" in
11564 */lib | */lib/)
11565 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11566 additional_includedir="$basedir/include"
11568 esac
11569 if test "X$additional_includedir" != "X"; then
11570 if test "X$additional_includedir" != "X/usr/include"; then
11571 haveit=
11572 if test "X$additional_includedir" = "X/usr/local/include"; then
11573 if test -n "$GCC"; then
11574 case $host_os in
11575 linux*) haveit=yes;;
11576 esac
11579 if test -z "$haveit"; then
11580 for x in $CPPFLAGS $INCICONV; do
11582 acl_save_prefix="$prefix"
11583 prefix="$acl_final_prefix"
11584 acl_save_exec_prefix="$exec_prefix"
11585 exec_prefix="$acl_final_exec_prefix"
11586 eval x=\"$x\"
11587 exec_prefix="$acl_save_exec_prefix"
11588 prefix="$acl_save_prefix"
11590 if test "X$x" = "X-I$additional_includedir"; then
11591 haveit=yes
11592 break
11594 done
11595 if test -z "$haveit"; then
11596 if test -d "$additional_includedir"; then
11597 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11603 if test -n "$found_la"; then
11604 save_libdir="$libdir"
11605 case "$found_la" in
11606 */* | *\\*) . "$found_la" ;;
11607 *) . "./$found_la" ;;
11608 esac
11609 libdir="$save_libdir"
11610 for dep in $dependency_libs; do
11611 case "$dep" in
11612 -L*)
11613 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11614 if test "X$additional_libdir" != "X/usr/lib"; then
11615 haveit=
11616 if test "X$additional_libdir" = "X/usr/local/lib"; then
11617 if test -n "$GCC"; then
11618 case $host_os in
11619 linux*) haveit=yes;;
11620 esac
11623 if test -z "$haveit"; then
11624 haveit=
11625 for x in $LDFLAGS $LIBICONV; do
11627 acl_save_prefix="$prefix"
11628 prefix="$acl_final_prefix"
11629 acl_save_exec_prefix="$exec_prefix"
11630 exec_prefix="$acl_final_exec_prefix"
11631 eval x=\"$x\"
11632 exec_prefix="$acl_save_exec_prefix"
11633 prefix="$acl_save_prefix"
11635 if test "X$x" = "X-L$additional_libdir"; then
11636 haveit=yes
11637 break
11639 done
11640 if test -z "$haveit"; then
11641 if test -d "$additional_libdir"; then
11642 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11645 haveit=
11646 for x in $LDFLAGS $LTLIBICONV; do
11648 acl_save_prefix="$prefix"
11649 prefix="$acl_final_prefix"
11650 acl_save_exec_prefix="$exec_prefix"
11651 exec_prefix="$acl_final_exec_prefix"
11652 eval x=\"$x\"
11653 exec_prefix="$acl_save_exec_prefix"
11654 prefix="$acl_save_prefix"
11656 if test "X$x" = "X-L$additional_libdir"; then
11657 haveit=yes
11658 break
11660 done
11661 if test -z "$haveit"; then
11662 if test -d "$additional_libdir"; then
11663 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11669 -R*)
11670 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11671 if test "$enable_rpath" != no; then
11672 haveit=
11673 for x in $rpathdirs; do
11674 if test "X$x" = "X$dir"; then
11675 haveit=yes
11676 break
11678 done
11679 if test -z "$haveit"; then
11680 rpathdirs="$rpathdirs $dir"
11682 haveit=
11683 for x in $ltrpathdirs; do
11684 if test "X$x" = "X$dir"; then
11685 haveit=yes
11686 break
11688 done
11689 if test -z "$haveit"; then
11690 ltrpathdirs="$ltrpathdirs $dir"
11694 -l*)
11695 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11697 *.la)
11698 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11701 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11702 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11704 esac
11705 done
11707 else
11708 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11709 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11713 done
11714 done
11715 if test "X$rpathdirs" != "X"; then
11716 if test -n "$hardcode_libdir_separator"; then
11717 alldirs=
11718 for found_dir in $rpathdirs; do
11719 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11720 done
11721 acl_save_libdir="$libdir"
11722 libdir="$alldirs"
11723 eval flag=\"$hardcode_libdir_flag_spec\"
11724 libdir="$acl_save_libdir"
11725 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11726 else
11727 for found_dir in $rpathdirs; do
11728 acl_save_libdir="$libdir"
11729 libdir="$found_dir"
11730 eval flag=\"$hardcode_libdir_flag_spec\"
11731 libdir="$acl_save_libdir"
11732 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11733 done
11736 if test "X$ltrpathdirs" != "X"; then
11737 for found_dir in $ltrpathdirs; do
11738 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11739 done
11748 am_save_CPPFLAGS="$CPPFLAGS"
11750 for element in $INCICONV; do
11751 haveit=
11752 for x in $CPPFLAGS; do
11754 acl_save_prefix="$prefix"
11755 prefix="$acl_final_prefix"
11756 acl_save_exec_prefix="$exec_prefix"
11757 exec_prefix="$acl_final_exec_prefix"
11758 eval x=\"$x\"
11759 exec_prefix="$acl_save_exec_prefix"
11760 prefix="$acl_save_prefix"
11762 if test "X$x" = "X$element"; then
11763 haveit=yes
11764 break
11766 done
11767 if test -z "$haveit"; then
11768 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11770 done
11773 { echo "$as_me:$LINENO: checking for iconv" >&5
11774 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
11775 if test "${am_cv_func_iconv+set}" = set; then
11776 echo $ECHO_N "(cached) $ECHO_C" >&6
11777 else
11779 am_cv_func_iconv="no, consider installing GNU libiconv"
11780 am_cv_lib_iconv=no
11781 if test x$gcc_no_link = xyes; then
11782 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11783 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11784 { (exit 1); exit 1; }; }
11786 cat >conftest.$ac_ext <<_ACEOF
11787 /* confdefs.h. */
11788 _ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h. */
11792 #include <stdlib.h>
11793 #include <iconv.h>
11795 main ()
11797 iconv_t cd = iconv_open("","");
11798 iconv(cd,NULL,NULL,NULL,NULL);
11799 iconv_close(cd);
11801 return 0;
11803 _ACEOF
11804 rm -f conftest.$ac_objext conftest$ac_exeext
11805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11806 (eval $ac_link) 2>conftest.er1
11807 ac_status=$?
11808 grep -v '^ *+' conftest.er1 >conftest.err
11809 rm -f conftest.er1
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } &&
11813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; } &&
11819 { ac_try='test -s conftest$ac_exeext'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; }; then
11825 am_cv_func_iconv=yes
11826 else
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11833 rm -f conftest.err conftest.$ac_objext \
11834 conftest$ac_exeext conftest.$ac_ext
11835 if test "$am_cv_func_iconv" != yes; then
11836 am_save_LIBS="$LIBS"
11837 LIBS="$LIBS $LIBICONV"
11838 if test x$gcc_no_link = xyes; then
11839 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11840 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11841 { (exit 1); exit 1; }; }
11843 cat >conftest.$ac_ext <<_ACEOF
11844 /* confdefs.h. */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 #include <stdlib.h>
11850 #include <iconv.h>
11852 main ()
11854 iconv_t cd = iconv_open("","");
11855 iconv(cd,NULL,NULL,NULL,NULL);
11856 iconv_close(cd);
11858 return 0;
11860 _ACEOF
11861 rm -f conftest.$ac_objext conftest$ac_exeext
11862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11863 (eval $ac_link) 2>conftest.er1
11864 ac_status=$?
11865 grep -v '^ *+' conftest.er1 >conftest.err
11866 rm -f conftest.er1
11867 cat conftest.err >&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } &&
11870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11873 ac_status=$?
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; } &&
11876 { ac_try='test -s conftest$ac_exeext'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 am_cv_lib_iconv=yes
11883 am_cv_func_iconv=yes
11884 else
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11891 rm -f conftest.err conftest.$ac_objext \
11892 conftest$ac_exeext conftest.$ac_ext
11893 LIBS="$am_save_LIBS"
11897 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11898 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
11899 if test "$am_cv_func_iconv" = yes; then
11901 cat >>confdefs.h <<\_ACEOF
11902 #define HAVE_ICONV 1
11903 _ACEOF
11906 if test "$am_cv_lib_iconv" = yes; then
11907 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11908 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
11909 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
11910 echo "${ECHO_T}$LIBICONV" >&6; }
11911 else
11912 CPPFLAGS="$am_save_CPPFLAGS"
11913 LIBICONV=
11914 LTLIBICONV=
11919 if test "$am_cv_func_iconv" = yes; then
11920 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
11921 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
11922 if test "${am_cv_proto_iconv+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11924 else
11926 cat >conftest.$ac_ext <<_ACEOF
11927 /* confdefs.h. */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11933 #include <stdlib.h>
11934 #include <iconv.h>
11935 extern
11936 #ifdef __cplusplus
11938 #endif
11939 #if defined(__STDC__) || defined(__cplusplus)
11940 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11941 #else
11942 size_t iconv();
11943 #endif
11946 main ()
11950 return 0;
11952 _ACEOF
11953 rm -f conftest.$ac_objext
11954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11955 (eval $ac_compile) 2>conftest.er1
11956 ac_status=$?
11957 grep -v '^ *+' conftest.er1 >conftest.err
11958 rm -f conftest.er1
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
11962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964 (eval $ac_try) 2>&5
11965 ac_status=$?
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; } &&
11968 { ac_try='test -s conftest.$ac_objext'
11969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970 (eval $ac_try) 2>&5
11971 ac_status=$?
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); }; }; then
11974 am_cv_proto_iconv_arg1=""
11975 else
11976 echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.$ac_ext >&5
11979 am_cv_proto_iconv_arg1="const"
11982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11983 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11986 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11987 { echo "$as_me:$LINENO: result: ${ac_t:-
11988 }$am_cv_proto_iconv" >&5
11989 echo "${ECHO_T}${ac_t:-
11990 }$am_cv_proto_iconv" >&6; }
11992 cat >>confdefs.h <<_ACEOF
11993 #define ICONV_CONST $am_cv_proto_iconv_arg1
11994 _ACEOF
11999 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12000 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12001 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12003 else
12004 if test x$gcc_no_link = xyes; then
12005 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12006 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12007 { (exit 1); exit 1; }; }
12009 cat >conftest.$ac_ext <<_ACEOF
12010 /* confdefs.h. */
12011 _ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12015 #include <locale.h>
12017 main ()
12019 return LC_MESSAGES
12021 return 0;
12023 _ACEOF
12024 rm -f conftest.$ac_objext conftest$ac_exeext
12025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12026 (eval $ac_link) 2>conftest.er1
12027 ac_status=$?
12028 grep -v '^ *+' conftest.er1 >conftest.err
12029 rm -f conftest.er1
12030 cat conftest.err >&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; } &&
12039 { ac_try='test -s conftest$ac_exeext'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045 am_cv_val_LC_MESSAGES=yes
12046 else
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12050 am_cv_val_LC_MESSAGES=no
12053 rm -f conftest.err conftest.$ac_objext \
12054 conftest$ac_exeext conftest.$ac_ext
12056 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12057 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
12058 if test $am_cv_val_LC_MESSAGES = yes; then
12060 cat >>confdefs.h <<\_ACEOF
12061 #define HAVE_LC_MESSAGES 1
12062 _ACEOF
12066 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12067 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
12068 if test "${ac_cv_struct_tm+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12070 else
12071 cat >conftest.$ac_ext <<_ACEOF
12072 /* confdefs.h. */
12073 _ACEOF
12074 cat confdefs.h >>conftest.$ac_ext
12075 cat >>conftest.$ac_ext <<_ACEOF
12076 /* end confdefs.h. */
12077 #include <sys/types.h>
12078 #include <time.h>
12081 main ()
12083 struct tm *tp; tp->tm_sec;
12085 return 0;
12087 _ACEOF
12088 rm -f conftest.$ac_objext
12089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12090 (eval $ac_compile) 2>conftest.er1
12091 ac_status=$?
12092 grep -v '^ *+' conftest.er1 >conftest.err
12093 rm -f conftest.er1
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } &&
12097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12100 ac_status=$?
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; } &&
12103 { ac_try='test -s conftest.$ac_objext'
12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12106 ac_status=$?
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; }; then
12109 ac_cv_struct_tm=time.h
12110 else
12111 echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12114 ac_cv_struct_tm=sys/time.h
12117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12119 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12120 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
12121 if test $ac_cv_struct_tm = sys/time.h; then
12123 cat >>confdefs.h <<\_ACEOF
12124 #define TM_IN_SYS_TIME 1
12125 _ACEOF
12129 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12130 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
12131 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12133 else
12134 cat >conftest.$ac_ext <<_ACEOF
12135 /* confdefs.h. */
12136 _ACEOF
12137 cat confdefs.h >>conftest.$ac_ext
12138 cat >>conftest.$ac_ext <<_ACEOF
12139 /* end confdefs.h. */
12140 #include <sys/types.h>
12141 #include <$ac_cv_struct_tm>
12145 main ()
12147 static struct tm ac_aggr;
12148 if (ac_aggr.tm_zone)
12149 return 0;
12151 return 0;
12153 _ACEOF
12154 rm -f conftest.$ac_objext
12155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12156 (eval $ac_compile) 2>conftest.er1
12157 ac_status=$?
12158 grep -v '^ *+' conftest.er1 >conftest.err
12159 rm -f conftest.er1
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } &&
12163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165 (eval $ac_try) 2>&5
12166 ac_status=$?
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; } &&
12169 { ac_try='test -s conftest.$ac_objext'
12170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171 (eval $ac_try) 2>&5
12172 ac_status=$?
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; }; then
12175 ac_cv_member_struct_tm_tm_zone=yes
12176 else
12177 echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12180 cat >conftest.$ac_ext <<_ACEOF
12181 /* confdefs.h. */
12182 _ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12186 #include <sys/types.h>
12187 #include <$ac_cv_struct_tm>
12191 main ()
12193 static struct tm ac_aggr;
12194 if (sizeof ac_aggr.tm_zone)
12195 return 0;
12197 return 0;
12199 _ACEOF
12200 rm -f conftest.$ac_objext
12201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12202 (eval $ac_compile) 2>conftest.er1
12203 ac_status=$?
12204 grep -v '^ *+' conftest.er1 >conftest.err
12205 rm -f conftest.er1
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
12209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; } &&
12215 { ac_try='test -s conftest.$ac_objext'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
12221 ac_cv_member_struct_tm_tm_zone=yes
12222 else
12223 echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12226 ac_cv_member_struct_tm_tm_zone=no
12229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12234 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12235 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
12236 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12238 cat >>confdefs.h <<_ACEOF
12239 #define HAVE_STRUCT_TM_TM_ZONE 1
12240 _ACEOF
12245 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12247 cat >>confdefs.h <<\_ACEOF
12248 #define HAVE_TM_ZONE 1
12249 _ACEOF
12251 else
12252 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
12253 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
12254 if test "${ac_cv_have_decl_tzname+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12256 else
12257 cat >conftest.$ac_ext <<_ACEOF
12258 /* confdefs.h. */
12259 _ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h. */
12263 #include <time.h>
12266 main ()
12268 #ifndef tzname
12269 char *p = (char *) tzname;
12270 return !p;
12271 #endif
12274 return 0;
12276 _ACEOF
12277 rm -f conftest.$ac_objext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12279 (eval $ac_compile) 2>conftest.er1
12280 ac_status=$?
12281 grep -v '^ *+' conftest.er1 >conftest.err
12282 rm -f conftest.er1
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12289 ac_status=$?
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; } &&
12292 { ac_try='test -s conftest.$ac_objext'
12293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294 (eval $ac_try) 2>&5
12295 ac_status=$?
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; }; then
12298 ac_cv_have_decl_tzname=yes
12299 else
12300 echo "$as_me: failed program was:" >&5
12301 sed 's/^/| /' conftest.$ac_ext >&5
12303 ac_cv_have_decl_tzname=no
12306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12308 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
12309 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
12310 if test $ac_cv_have_decl_tzname = yes; then
12312 cat >>confdefs.h <<_ACEOF
12313 #define HAVE_DECL_TZNAME 1
12314 _ACEOF
12317 else
12318 cat >>confdefs.h <<_ACEOF
12319 #define HAVE_DECL_TZNAME 0
12320 _ACEOF
12326 { echo "$as_me:$LINENO: checking for tzname" >&5
12327 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
12328 if test "${ac_cv_var_tzname+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12330 else
12331 if test x$gcc_no_link = xyes; then
12332 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12333 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12334 { (exit 1); exit 1; }; }
12336 cat >conftest.$ac_ext <<_ACEOF
12337 /* confdefs.h. */
12338 _ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12342 #include <time.h>
12343 #if !HAVE_DECL_TZNAME
12344 extern char *tzname[];
12345 #endif
12348 main ()
12350 return tzname[0][0];
12352 return 0;
12354 _ACEOF
12355 rm -f conftest.$ac_objext conftest$ac_exeext
12356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12357 (eval $ac_link) 2>conftest.er1
12358 ac_status=$?
12359 grep -v '^ *+' conftest.er1 >conftest.err
12360 rm -f conftest.er1
12361 cat conftest.err >&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } &&
12364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; } &&
12370 { ac_try='test -s conftest$ac_exeext'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 ac_cv_var_tzname=yes
12377 else
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12381 ac_cv_var_tzname=no
12384 rm -f conftest.err conftest.$ac_objext \
12385 conftest$ac_exeext conftest.$ac_ext
12387 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12388 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
12389 if test $ac_cv_var_tzname = yes; then
12391 cat >>confdefs.h <<\_ACEOF
12392 #define HAVE_TZNAME 1
12393 _ACEOF
12401 for ac_func in gethostbyname_r
12403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12404 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12406 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12408 else
12409 if test x$gcc_no_link = xyes; then
12410 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12411 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12412 { (exit 1); exit 1; }; }
12414 cat >conftest.$ac_ext <<_ACEOF
12415 /* confdefs.h. */
12416 _ACEOF
12417 cat confdefs.h >>conftest.$ac_ext
12418 cat >>conftest.$ac_ext <<_ACEOF
12419 /* end confdefs.h. */
12420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12422 #define $ac_func innocuous_$ac_func
12424 /* System header to define __stub macros and hopefully few prototypes,
12425 which can conflict with char $ac_func (); below.
12426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12427 <limits.h> exists even on freestanding compilers. */
12429 #ifdef __STDC__
12430 # include <limits.h>
12431 #else
12432 # include <assert.h>
12433 #endif
12435 #undef $ac_func
12437 /* Override any GCC internal prototype to avoid an error.
12438 Use char because int might match the return type of a GCC
12439 builtin and then its argument prototype would still apply. */
12440 #ifdef __cplusplus
12441 extern "C"
12442 #endif
12443 char $ac_func ();
12444 /* The GNU C library defines this for functions which it implements
12445 to always fail with ENOSYS. Some functions are actually named
12446 something starting with __ and the normal name is an alias. */
12447 #if defined __stub_$ac_func || defined __stub___$ac_func
12448 choke me
12449 #endif
12452 main ()
12454 return $ac_func ();
12456 return 0;
12458 _ACEOF
12459 rm -f conftest.$ac_objext conftest$ac_exeext
12460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12461 (eval $ac_link) 2>conftest.er1
12462 ac_status=$?
12463 grep -v '^ *+' conftest.er1 >conftest.err
12464 rm -f conftest.er1
12465 cat conftest.err >&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); } &&
12468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; } &&
12474 { ac_try='test -s conftest$ac_exeext'
12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476 (eval $ac_try) 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; }; then
12480 eval "$as_ac_var=yes"
12481 else
12482 echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12485 eval "$as_ac_var=no"
12488 rm -f conftest.err conftest.$ac_objext \
12489 conftest$ac_exeext conftest.$ac_ext
12491 ac_res=`eval echo '${'$as_ac_var'}'`
12492 { echo "$as_me:$LINENO: result: $ac_res" >&5
12493 echo "${ECHO_T}$ac_res" >&6; }
12494 if test `eval echo '${'$as_ac_var'}'` = yes; then
12495 cat >>confdefs.h <<_ACEOF
12496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12497 _ACEOF
12500 cat >>confdefs.h <<\_ACEOF
12501 #define HAVE_GETHOSTBYNAME_R 1
12502 _ACEOF
12504 # There are two different kinds of gethostbyname_r.
12505 # We look for the one that returns `int'.
12506 # Hopefully this check is robust enough.
12507 cat >conftest.$ac_ext <<_ACEOF
12508 /* confdefs.h. */
12509 _ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12513 #include <netdb.h>
12515 _ACEOF
12516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12517 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
12520 cat >>confdefs.h <<\_ACEOF
12521 #define GETHOSTBYNAME_R_RETURNS_INT 1
12522 _ACEOF
12525 rm -f conftest*
12528 case " $GCINCS " in
12529 *" -D_REENTRANT "*) ;;
12531 { echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
12532 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6; }
12533 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12535 else
12536 ac_ext=cpp
12537 ac_cpp='$CXXCPP $CPPFLAGS'
12538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12542 cat >conftest.$ac_ext <<_ACEOF
12543 /* confdefs.h. */
12544 _ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h. */
12548 #include <netdb.h>
12550 main ()
12552 gethostbyname_r("", 0, 0);
12554 return 0;
12556 _ACEOF
12557 rm -f conftest.$ac_objext
12558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12559 (eval $ac_compile) 2>conftest.er1
12560 ac_status=$?
12561 grep -v '^ *+' conftest.er1 >conftest.err
12562 rm -f conftest.er1
12563 cat conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } &&
12566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568 (eval $ac_try) 2>&5
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; } &&
12572 { ac_try='test -s conftest.$ac_objext'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12575 ac_status=$?
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; }; then
12578 libjava_cv_gethostbyname_r_needs_reentrant=no
12579 else
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12583 CPPFLAGS_SAVE="$CPPFLAGS"
12584 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
12585 cat >conftest.$ac_ext <<_ACEOF
12586 /* confdefs.h. */
12587 _ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h. */
12591 #include <netdb.h>
12593 main ()
12595 gethostbyname_r("", 0, 0);
12597 return 0;
12599 _ACEOF
12600 rm -f conftest.$ac_objext
12601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12602 (eval $ac_compile) 2>conftest.er1
12603 ac_status=$?
12604 grep -v '^ *+' conftest.er1 >conftest.err
12605 rm -f conftest.er1
12606 cat conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } &&
12609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; } &&
12615 { ac_try='test -s conftest.$ac_objext'
12616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12618 ac_status=$?
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; }; then
12621 libjava_cv_gethostbyname_r_needs_reentrant=yes
12622 else
12623 echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.$ac_ext >&5
12626 libjava_cv_gethostbyname_r_needs_reentrant=fail
12629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12630 CPPFLAGS="$CPPFLAGS_SAVE"
12634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12635 ac_ext=c
12636 ac_cpp='$CPP $CPPFLAGS'
12637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12643 { echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
12644 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
12645 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
12647 cat >>confdefs.h <<\_ACEOF
12648 #define _REENTRANT 1
12649 _ACEOF
12653 esac
12655 { echo "$as_me:$LINENO: checking for struct hostent_data" >&5
12656 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6; }
12657 if test "${libjava_cv_struct_hostent_data+set}" = set; then
12658 echo $ECHO_N "(cached) $ECHO_C" >&6
12659 else
12660 cat >conftest.$ac_ext <<_ACEOF
12661 /* confdefs.h. */
12662 _ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h. */
12667 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
12668 # define _REENTRANT 1
12669 #endif
12670 #include <netdb.h>
12672 main ()
12674 struct hostent_data data;
12676 return 0;
12678 _ACEOF
12679 rm -f conftest.$ac_objext
12680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12681 (eval $ac_compile) 2>conftest.er1
12682 ac_status=$?
12683 grep -v '^ *+' conftest.er1 >conftest.err
12684 rm -f conftest.er1
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } &&
12688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12691 ac_status=$?
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; } &&
12694 { ac_try='test -s conftest.$ac_objext'
12695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696 (eval $ac_try) 2>&5
12697 ac_status=$?
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; }; then
12700 libjava_cv_struct_hostent_data=yes
12701 else
12702 echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12705 libjava_cv_struct_hostent_data=no
12708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12710 { echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
12711 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6; }
12712 if test "x$libjava_cv_struct_hostent_data" = xyes; then
12714 cat >>confdefs.h <<\_ACEOF
12715 #define HAVE_STRUCT_HOSTENT_DATA 1
12716 _ACEOF
12721 done
12724 # FIXME: libjava source code expects to find a prototype for
12725 # gethostbyaddr_r in netdb.h. The outer check ensures that
12726 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
12727 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
12728 # linkage check is enough, yet C++ code requires proper prototypes.)
12729 cat >conftest.$ac_ext <<_ACEOF
12730 /* confdefs.h. */
12731 _ACEOF
12732 cat confdefs.h >>conftest.$ac_ext
12733 cat >>conftest.$ac_ext <<_ACEOF
12734 /* end confdefs.h. */
12735 #include <netdb.h>
12737 _ACEOF
12738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12739 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
12742 for ac_func in gethostbyaddr_r
12744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12745 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12747 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12749 else
12750 if test x$gcc_no_link = xyes; then
12751 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12752 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12753 { (exit 1); exit 1; }; }
12755 cat >conftest.$ac_ext <<_ACEOF
12756 /* confdefs.h. */
12757 _ACEOF
12758 cat confdefs.h >>conftest.$ac_ext
12759 cat >>conftest.$ac_ext <<_ACEOF
12760 /* end confdefs.h. */
12761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12763 #define $ac_func innocuous_$ac_func
12765 /* System header to define __stub macros and hopefully few prototypes,
12766 which can conflict with char $ac_func (); below.
12767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12768 <limits.h> exists even on freestanding compilers. */
12770 #ifdef __STDC__
12771 # include <limits.h>
12772 #else
12773 # include <assert.h>
12774 #endif
12776 #undef $ac_func
12778 /* Override any GCC internal prototype to avoid an error.
12779 Use char because int might match the return type of a GCC
12780 builtin and then its argument prototype would still apply. */
12781 #ifdef __cplusplus
12782 extern "C"
12783 #endif
12784 char $ac_func ();
12785 /* The GNU C library defines this for functions which it implements
12786 to always fail with ENOSYS. Some functions are actually named
12787 something starting with __ and the normal name is an alias. */
12788 #if defined __stub_$ac_func || defined __stub___$ac_func
12789 choke me
12790 #endif
12793 main ()
12795 return $ac_func ();
12797 return 0;
12799 _ACEOF
12800 rm -f conftest.$ac_objext conftest$ac_exeext
12801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12802 (eval $ac_link) 2>conftest.er1
12803 ac_status=$?
12804 grep -v '^ *+' conftest.er1 >conftest.err
12805 rm -f conftest.er1
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
12809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12812 ac_status=$?
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; } &&
12815 { ac_try='test -s conftest$ac_exeext'
12816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817 (eval $ac_try) 2>&5
12818 ac_status=$?
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; }; then
12821 eval "$as_ac_var=yes"
12822 else
12823 echo "$as_me: failed program was:" >&5
12824 sed 's/^/| /' conftest.$ac_ext >&5
12826 eval "$as_ac_var=no"
12829 rm -f conftest.err conftest.$ac_objext \
12830 conftest$ac_exeext conftest.$ac_ext
12832 ac_res=`eval echo '${'$as_ac_var'}'`
12833 { echo "$as_me:$LINENO: result: $ac_res" >&5
12834 echo "${ECHO_T}$ac_res" >&6; }
12835 if test `eval echo '${'$as_ac_var'}'` = yes; then
12836 cat >>confdefs.h <<_ACEOF
12837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12838 _ACEOF
12841 cat >>confdefs.h <<\_ACEOF
12842 #define HAVE_GETHOSTBYADDR_R 1
12843 _ACEOF
12845 # There are two different kinds of gethostbyaddr_r.
12846 # We look for the one that returns `int'.
12847 # Hopefully this check is robust enough.
12848 cat >conftest.$ac_ext <<_ACEOF
12849 /* confdefs.h. */
12850 _ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12854 #include <netdb.h>
12856 _ACEOF
12857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12858 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
12861 cat >>confdefs.h <<\_ACEOF
12862 #define GETHOSTBYADDR_R_RETURNS_INT 1
12863 _ACEOF
12866 rm -f conftest*
12869 done
12872 rm -f conftest*
12876 for ac_func in gethostname
12878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 else
12884 if test x$gcc_no_link = xyes; then
12885 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12886 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12887 { (exit 1); exit 1; }; }
12889 cat >conftest.$ac_ext <<_ACEOF
12890 /* confdefs.h. */
12891 _ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h. */
12895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12897 #define $ac_func innocuous_$ac_func
12899 /* System header to define __stub macros and hopefully few prototypes,
12900 which can conflict with char $ac_func (); below.
12901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12902 <limits.h> exists even on freestanding compilers. */
12904 #ifdef __STDC__
12905 # include <limits.h>
12906 #else
12907 # include <assert.h>
12908 #endif
12910 #undef $ac_func
12912 /* Override any GCC internal prototype to avoid an error.
12913 Use char because int might match the return type of a GCC
12914 builtin and then its argument prototype would still apply. */
12915 #ifdef __cplusplus
12916 extern "C"
12917 #endif
12918 char $ac_func ();
12919 /* The GNU C library defines this for functions which it implements
12920 to always fail with ENOSYS. Some functions are actually named
12921 something starting with __ and the normal name is an alias. */
12922 #if defined __stub_$ac_func || defined __stub___$ac_func
12923 choke me
12924 #endif
12927 main ()
12929 return $ac_func ();
12931 return 0;
12933 _ACEOF
12934 rm -f conftest.$ac_objext conftest$ac_exeext
12935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12936 (eval $ac_link) 2>conftest.er1
12937 ac_status=$?
12938 grep -v '^ *+' conftest.er1 >conftest.err
12939 rm -f conftest.er1
12940 cat conftest.err >&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); } &&
12943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945 (eval $ac_try) 2>&5
12946 ac_status=$?
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; } &&
12949 { ac_try='test -s conftest$ac_exeext'
12950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951 (eval $ac_try) 2>&5
12952 ac_status=$?
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; }; then
12955 eval "$as_ac_var=yes"
12956 else
12957 echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12960 eval "$as_ac_var=no"
12963 rm -f conftest.err conftest.$ac_objext \
12964 conftest$ac_exeext conftest.$ac_ext
12966 ac_res=`eval echo '${'$as_ac_var'}'`
12967 { echo "$as_me:$LINENO: result: $ac_res" >&5
12968 echo "${ECHO_T}$ac_res" >&6; }
12969 if test `eval echo '${'$as_ac_var'}'` = yes; then
12970 cat >>confdefs.h <<_ACEOF
12971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12972 _ACEOF
12975 cat >>confdefs.h <<\_ACEOF
12976 #define HAVE_GETHOSTNAME 1
12977 _ACEOF
12979 cat >conftest.$ac_ext <<_ACEOF
12980 /* confdefs.h. */
12981 _ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12985 #include <unistd.h>
12987 _ACEOF
12988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12989 $EGREP "gethostname" >/dev/null 2>&1; then
12992 cat >>confdefs.h <<\_ACEOF
12993 #define HAVE_GETHOSTNAME_DECL 1
12994 _ACEOF
12997 rm -f conftest*
13000 done
13004 for ac_func in usleep
13006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13007 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13011 else
13012 if test x$gcc_no_link = xyes; then
13013 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13014 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13015 { (exit 1); exit 1; }; }
13017 cat >conftest.$ac_ext <<_ACEOF
13018 /* confdefs.h. */
13019 _ACEOF
13020 cat confdefs.h >>conftest.$ac_ext
13021 cat >>conftest.$ac_ext <<_ACEOF
13022 /* end confdefs.h. */
13023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13025 #define $ac_func innocuous_$ac_func
13027 /* System header to define __stub macros and hopefully few prototypes,
13028 which can conflict with char $ac_func (); below.
13029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13030 <limits.h> exists even on freestanding compilers. */
13032 #ifdef __STDC__
13033 # include <limits.h>
13034 #else
13035 # include <assert.h>
13036 #endif
13038 #undef $ac_func
13040 /* Override any GCC internal prototype to avoid an error.
13041 Use char because int might match the return type of a GCC
13042 builtin and then its argument prototype would still apply. */
13043 #ifdef __cplusplus
13044 extern "C"
13045 #endif
13046 char $ac_func ();
13047 /* The GNU C library defines this for functions which it implements
13048 to always fail with ENOSYS. Some functions are actually named
13049 something starting with __ and the normal name is an alias. */
13050 #if defined __stub_$ac_func || defined __stub___$ac_func
13051 choke me
13052 #endif
13055 main ()
13057 return $ac_func ();
13059 return 0;
13061 _ACEOF
13062 rm -f conftest.$ac_objext conftest$ac_exeext
13063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13064 (eval $ac_link) 2>conftest.er1
13065 ac_status=$?
13066 grep -v '^ *+' conftest.er1 >conftest.err
13067 rm -f conftest.er1
13068 cat conftest.err >&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } &&
13071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13074 ac_status=$?
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; } &&
13077 { ac_try='test -s conftest$ac_exeext'
13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13080 ac_status=$?
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13083 eval "$as_ac_var=yes"
13084 else
13085 echo "$as_me: failed program was:" >&5
13086 sed 's/^/| /' conftest.$ac_ext >&5
13088 eval "$as_ac_var=no"
13091 rm -f conftest.err conftest.$ac_objext \
13092 conftest$ac_exeext conftest.$ac_ext
13094 ac_res=`eval echo '${'$as_ac_var'}'`
13095 { echo "$as_me:$LINENO: result: $ac_res" >&5
13096 echo "${ECHO_T}$ac_res" >&6; }
13097 if test `eval echo '${'$as_ac_var'}'` = yes; then
13098 cat >>confdefs.h <<_ACEOF
13099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13100 _ACEOF
13102 cat >conftest.$ac_ext <<_ACEOF
13103 /* confdefs.h. */
13104 _ACEOF
13105 cat confdefs.h >>conftest.$ac_ext
13106 cat >>conftest.$ac_ext <<_ACEOF
13107 /* end confdefs.h. */
13108 #include <unistd.h>
13110 _ACEOF
13111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13112 $EGREP "usleep" >/dev/null 2>&1; then
13115 cat >>confdefs.h <<\_ACEOF
13116 #define HAVE_USLEEP_DECL 1
13117 _ACEOF
13120 rm -f conftest*
13123 done
13126 # Look for these functions in the thread library, but only bother
13127 # if using POSIX threads.
13128 if test "$THREADS" = posix; then
13129 save_LIBS="$LIBS"
13130 LIBS="$LIBS $THREADLIBS"
13131 # Some POSIX thread systems don't have pthread_mutexattr_settype.
13132 # E.g., Solaris.
13135 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
13137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13141 echo $ECHO_N "(cached) $ECHO_C" >&6
13142 else
13143 if test x$gcc_no_link = xyes; then
13144 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13145 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13146 { (exit 1); exit 1; }; }
13148 cat >conftest.$ac_ext <<_ACEOF
13149 /* confdefs.h. */
13150 _ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13156 #define $ac_func innocuous_$ac_func
13158 /* System header to define __stub macros and hopefully few prototypes,
13159 which can conflict with char $ac_func (); below.
13160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13161 <limits.h> exists even on freestanding compilers. */
13163 #ifdef __STDC__
13164 # include <limits.h>
13165 #else
13166 # include <assert.h>
13167 #endif
13169 #undef $ac_func
13171 /* Override any GCC internal prototype to avoid an error.
13172 Use char because int might match the return type of a GCC
13173 builtin and then its argument prototype would still apply. */
13174 #ifdef __cplusplus
13175 extern "C"
13176 #endif
13177 char $ac_func ();
13178 /* The GNU C library defines this for functions which it implements
13179 to always fail with ENOSYS. Some functions are actually named
13180 something starting with __ and the normal name is an alias. */
13181 #if defined __stub_$ac_func || defined __stub___$ac_func
13182 choke me
13183 #endif
13186 main ()
13188 return $ac_func ();
13190 return 0;
13192 _ACEOF
13193 rm -f conftest.$ac_objext conftest$ac_exeext
13194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13195 (eval $ac_link) 2>conftest.er1
13196 ac_status=$?
13197 grep -v '^ *+' conftest.er1 >conftest.err
13198 rm -f conftest.er1
13199 cat conftest.err >&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } &&
13202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13205 ac_status=$?
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; } &&
13208 { ac_try='test -s conftest$ac_exeext'
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13211 ac_status=$?
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; }; then
13214 eval "$as_ac_var=yes"
13215 else
13216 echo "$as_me: failed program was:" >&5
13217 sed 's/^/| /' conftest.$ac_ext >&5
13219 eval "$as_ac_var=no"
13222 rm -f conftest.err conftest.$ac_objext \
13223 conftest$ac_exeext conftest.$ac_ext
13225 ac_res=`eval echo '${'$as_ac_var'}'`
13226 { echo "$as_me:$LINENO: result: $ac_res" >&5
13227 echo "${ECHO_T}$ac_res" >&6; }
13228 if test `eval echo '${'$as_ac_var'}'` = yes; then
13229 cat >>confdefs.h <<_ACEOF
13230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13231 _ACEOF
13234 done
13237 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
13238 # Solaris 7 the name librt is preferred.
13240 for ac_func in sched_yield
13242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13246 echo $ECHO_N "(cached) $ECHO_C" >&6
13247 else
13248 if test x$gcc_no_link = xyes; then
13249 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13250 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13251 { (exit 1); exit 1; }; }
13253 cat >conftest.$ac_ext <<_ACEOF
13254 /* confdefs.h. */
13255 _ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h. */
13259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13261 #define $ac_func innocuous_$ac_func
13263 /* System header to define __stub macros and hopefully few prototypes,
13264 which can conflict with char $ac_func (); below.
13265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13266 <limits.h> exists even on freestanding compilers. */
13268 #ifdef __STDC__
13269 # include <limits.h>
13270 #else
13271 # include <assert.h>
13272 #endif
13274 #undef $ac_func
13276 /* Override any GCC internal prototype to avoid an error.
13277 Use char because int might match the return type of a GCC
13278 builtin and then its argument prototype would still apply. */
13279 #ifdef __cplusplus
13280 extern "C"
13281 #endif
13282 char $ac_func ();
13283 /* The GNU C library defines this for functions which it implements
13284 to always fail with ENOSYS. Some functions are actually named
13285 something starting with __ and the normal name is an alias. */
13286 #if defined __stub_$ac_func || defined __stub___$ac_func
13287 choke me
13288 #endif
13291 main ()
13293 return $ac_func ();
13295 return 0;
13297 _ACEOF
13298 rm -f conftest.$ac_objext conftest$ac_exeext
13299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309 (eval $ac_try) 2>&5
13310 ac_status=$?
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; } &&
13313 { ac_try='test -s conftest$ac_exeext'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 eval "$as_ac_var=yes"
13320 else
13321 echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13324 eval "$as_ac_var=no"
13327 rm -f conftest.err conftest.$ac_objext \
13328 conftest$ac_exeext conftest.$ac_ext
13330 ac_res=`eval echo '${'$as_ac_var'}'`
13331 { echo "$as_me:$LINENO: result: $ac_res" >&5
13332 echo "${ECHO_T}$ac_res" >&6; }
13333 if test `eval echo '${'$as_ac_var'}'` = yes; then
13334 cat >>confdefs.h <<_ACEOF
13335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13336 _ACEOF
13338 else
13340 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
13341 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
13342 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
13343 echo $ECHO_N "(cached) $ECHO_C" >&6
13344 else
13345 ac_check_lib_save_LIBS=$LIBS
13346 LIBS="-lrt $LIBS"
13347 if test x$gcc_no_link = xyes; then
13348 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13349 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13350 { (exit 1); exit 1; }; }
13352 cat >conftest.$ac_ext <<_ACEOF
13353 /* confdefs.h. */
13354 _ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13359 /* Override any GCC internal prototype to avoid an error.
13360 Use char because int might match the return type of a GCC
13361 builtin and then its argument prototype would still apply. */
13362 #ifdef __cplusplus
13363 extern "C"
13364 #endif
13365 char sched_yield ();
13367 main ()
13369 return sched_yield ();
13371 return 0;
13373 _ACEOF
13374 rm -f conftest.$ac_objext conftest$ac_exeext
13375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13376 (eval $ac_link) 2>conftest.er1
13377 ac_status=$?
13378 grep -v '^ *+' conftest.er1 >conftest.err
13379 rm -f conftest.er1
13380 cat conftest.err >&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } &&
13383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13386 ac_status=$?
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; } &&
13389 { ac_try='test -s conftest$ac_exeext'
13390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391 (eval $ac_try) 2>&5
13392 ac_status=$?
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; }; then
13395 ac_cv_lib_rt_sched_yield=yes
13396 else
13397 echo "$as_me: failed program was:" >&5
13398 sed 's/^/| /' conftest.$ac_ext >&5
13400 ac_cv_lib_rt_sched_yield=no
13403 rm -f conftest.err conftest.$ac_objext \
13404 conftest$ac_exeext conftest.$ac_ext
13405 LIBS=$ac_check_lib_save_LIBS
13407 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
13408 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
13409 if test $ac_cv_lib_rt_sched_yield = yes; then
13411 cat >>confdefs.h <<\_ACEOF
13412 #define HAVE_SCHED_YIELD 1
13413 _ACEOF
13415 THREADLIBS="$THREADLIBS -lrt"
13416 THREADSPEC="$THREADSPEC -lrt"
13417 else
13419 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
13420 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
13421 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
13422 echo $ECHO_N "(cached) $ECHO_C" >&6
13423 else
13424 ac_check_lib_save_LIBS=$LIBS
13425 LIBS="-lposix4 $LIBS"
13426 if test x$gcc_no_link = xyes; then
13427 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13428 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13429 { (exit 1); exit 1; }; }
13431 cat >conftest.$ac_ext <<_ACEOF
13432 /* confdefs.h. */
13433 _ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h. */
13438 /* Override any GCC internal prototype to avoid an error.
13439 Use char because int might match the return type of a GCC
13440 builtin and then its argument prototype would still apply. */
13441 #ifdef __cplusplus
13442 extern "C"
13443 #endif
13444 char sched_yield ();
13446 main ()
13448 return sched_yield ();
13450 return 0;
13452 _ACEOF
13453 rm -f conftest.$ac_objext conftest$ac_exeext
13454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13455 (eval $ac_link) 2>conftest.er1
13456 ac_status=$?
13457 grep -v '^ *+' conftest.er1 >conftest.err
13458 rm -f conftest.er1
13459 cat conftest.err >&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } &&
13462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; } &&
13468 { ac_try='test -s conftest$ac_exeext'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13471 ac_status=$?
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; }; then
13474 ac_cv_lib_posix4_sched_yield=yes
13475 else
13476 echo "$as_me: failed program was:" >&5
13477 sed 's/^/| /' conftest.$ac_ext >&5
13479 ac_cv_lib_posix4_sched_yield=no
13482 rm -f conftest.err conftest.$ac_objext \
13483 conftest$ac_exeext conftest.$ac_ext
13484 LIBS=$ac_check_lib_save_LIBS
13486 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
13487 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
13488 if test $ac_cv_lib_posix4_sched_yield = yes; then
13490 cat >>confdefs.h <<\_ACEOF
13491 #define HAVE_SCHED_YIELD 1
13492 _ACEOF
13494 THREADLIBS="$THREADLIBS -lposix4"
13495 THREADSPEC="$THREADSPEC -lposix4"
13501 done
13504 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
13505 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
13506 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 else
13509 ac_check_lib_save_LIBS=$LIBS
13510 LIBS="-lrt $LIBS"
13511 if test x$gcc_no_link = xyes; then
13512 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13513 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13514 { (exit 1); exit 1; }; }
13516 cat >conftest.$ac_ext <<_ACEOF
13517 /* confdefs.h. */
13518 _ACEOF
13519 cat confdefs.h >>conftest.$ac_ext
13520 cat >>conftest.$ac_ext <<_ACEOF
13521 /* end confdefs.h. */
13523 /* Override any GCC internal prototype to avoid an error.
13524 Use char because int might match the return type of a GCC
13525 builtin and then its argument prototype would still apply. */
13526 #ifdef __cplusplus
13527 extern "C"
13528 #endif
13529 char clock_gettime ();
13531 main ()
13533 return clock_gettime ();
13535 return 0;
13537 _ACEOF
13538 rm -f conftest.$ac_objext conftest$ac_exeext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13540 (eval $ac_link) 2>conftest.er1
13541 ac_status=$?
13542 grep -v '^ *+' conftest.er1 >conftest.err
13543 rm -f conftest.er1
13544 cat conftest.err >&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); } &&
13547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13549 (eval $ac_try) 2>&5
13550 ac_status=$?
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }; } &&
13553 { ac_try='test -s conftest$ac_exeext'
13554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13556 ac_status=$?
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); }; }; then
13559 ac_cv_lib_rt_clock_gettime=yes
13560 else
13561 echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.$ac_ext >&5
13564 ac_cv_lib_rt_clock_gettime=no
13567 rm -f conftest.err conftest.$ac_objext \
13568 conftest$ac_exeext conftest.$ac_ext
13569 LIBS=$ac_check_lib_save_LIBS
13571 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
13572 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
13573 if test $ac_cv_lib_rt_clock_gettime = yes; then
13576 cat >>confdefs.h <<\_ACEOF
13577 #define HAVE_CLOCK_GETTIME 1
13578 _ACEOF
13580 case "$THREADSPEC" in
13581 *-lrt*) ;;
13583 THREADSPEC="$THREADSPEC -lrt"
13584 THREADLIBS="$THREADLIBS -lrt"
13586 esac
13590 LIBS="$save_LIBS"
13592 # We can save a little space at runtime if the mutex has m_count
13593 # or __m_count. This is a nice hack for Linux.
13594 cat >conftest.$ac_ext <<_ACEOF
13595 /* confdefs.h. */
13596 _ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13600 #include <pthread.h>
13602 main ()
13605 extern pthread_mutex_t *mutex; int q = mutex->m_count;
13608 return 0;
13610 _ACEOF
13611 rm -f conftest.$ac_objext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13613 (eval $ac_compile) 2>conftest.er1
13614 ac_status=$?
13615 grep -v '^ *+' conftest.er1 >conftest.err
13616 rm -f conftest.er1
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 (eval $ac_try) 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; } &&
13626 { ac_try='test -s conftest.$ac_objext'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13629 ac_status=$?
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; }; then
13633 cat >>confdefs.h <<\_ACEOF
13634 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
13635 _ACEOF
13637 else
13638 echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13642 cat >conftest.$ac_ext <<_ACEOF
13643 /* confdefs.h. */
13644 _ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13648 #include <pthread.h>
13650 main ()
13653 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
13656 return 0;
13658 _ACEOF
13659 rm -f conftest.$ac_objext
13660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13661 (eval $ac_compile) 2>conftest.er1
13662 ac_status=$?
13663 grep -v '^ *+' conftest.er1 >conftest.err
13664 rm -f conftest.er1
13665 cat conftest.err >&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } &&
13668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13670 (eval $ac_try) 2>&5
13671 ac_status=$?
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; } &&
13674 { ac_try='test -s conftest.$ac_objext'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13677 ac_status=$?
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; }; then
13681 cat >>confdefs.h <<\_ACEOF
13682 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
13683 _ACEOF
13685 else
13686 echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13698 # We require a way to get the time.
13699 time_found=no
13703 for ac_func in gettimeofday time ftime
13705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13709 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 else
13711 if test x$gcc_no_link = xyes; then
13712 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13713 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13714 { (exit 1); exit 1; }; }
13716 cat >conftest.$ac_ext <<_ACEOF
13717 /* confdefs.h. */
13718 _ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13724 #define $ac_func innocuous_$ac_func
13726 /* System header to define __stub macros and hopefully few prototypes,
13727 which can conflict with char $ac_func (); below.
13728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13729 <limits.h> exists even on freestanding compilers. */
13731 #ifdef __STDC__
13732 # include <limits.h>
13733 #else
13734 # include <assert.h>
13735 #endif
13737 #undef $ac_func
13739 /* Override any GCC internal prototype to avoid an error.
13740 Use char because int might match the return type of a GCC
13741 builtin and then its argument prototype would still apply. */
13742 #ifdef __cplusplus
13743 extern "C"
13744 #endif
13745 char $ac_func ();
13746 /* The GNU C library defines this for functions which it implements
13747 to always fail with ENOSYS. Some functions are actually named
13748 something starting with __ and the normal name is an alias. */
13749 #if defined __stub_$ac_func || defined __stub___$ac_func
13750 choke me
13751 #endif
13754 main ()
13756 return $ac_func ();
13758 return 0;
13760 _ACEOF
13761 rm -f conftest.$ac_objext conftest$ac_exeext
13762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13763 (eval $ac_link) 2>conftest.er1
13764 ac_status=$?
13765 grep -v '^ *+' conftest.er1 >conftest.err
13766 rm -f conftest.er1
13767 cat conftest.err >&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } &&
13770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13773 ac_status=$?
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; } &&
13776 { ac_try='test -s conftest$ac_exeext'
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; }; then
13782 eval "$as_ac_var=yes"
13783 else
13784 echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.$ac_ext >&5
13787 eval "$as_ac_var=no"
13790 rm -f conftest.err conftest.$ac_objext \
13791 conftest$ac_exeext conftest.$ac_ext
13793 ac_res=`eval echo '${'$as_ac_var'}'`
13794 { echo "$as_me:$LINENO: result: $ac_res" >&5
13795 echo "${ECHO_T}$ac_res" >&6; }
13796 if test `eval echo '${'$as_ac_var'}'` = yes; then
13797 cat >>confdefs.h <<_ACEOF
13798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13799 _ACEOF
13800 time_found=yes
13802 done
13804 if test "$time_found" = no; then
13805 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
13806 echo "$as_me: error: no function found to get the time" >&2;}
13807 { (exit 1); exit 1; }; }
13811 for ac_func in memmove
13813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13818 else
13819 if test x$gcc_no_link = xyes; then
13820 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13821 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13822 { (exit 1); exit 1; }; }
13824 cat >conftest.$ac_ext <<_ACEOF
13825 /* confdefs.h. */
13826 _ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h. */
13830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13832 #define $ac_func innocuous_$ac_func
13834 /* System header to define __stub macros and hopefully few prototypes,
13835 which can conflict with char $ac_func (); below.
13836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13837 <limits.h> exists even on freestanding compilers. */
13839 #ifdef __STDC__
13840 # include <limits.h>
13841 #else
13842 # include <assert.h>
13843 #endif
13845 #undef $ac_func
13847 /* Override any GCC internal prototype to avoid an error.
13848 Use char because int might match the return type of a GCC
13849 builtin and then its argument prototype would still apply. */
13850 #ifdef __cplusplus
13851 extern "C"
13852 #endif
13853 char $ac_func ();
13854 /* The GNU C library defines this for functions which it implements
13855 to always fail with ENOSYS. Some functions are actually named
13856 something starting with __ and the normal name is an alias. */
13857 #if defined __stub_$ac_func || defined __stub___$ac_func
13858 choke me
13859 #endif
13862 main ()
13864 return $ac_func ();
13866 return 0;
13868 _ACEOF
13869 rm -f conftest.$ac_objext conftest$ac_exeext
13870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13871 (eval $ac_link) 2>conftest.er1
13872 ac_status=$?
13873 grep -v '^ *+' conftest.er1 >conftest.err
13874 rm -f conftest.er1
13875 cat conftest.err >&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } &&
13878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13881 ac_status=$?
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; } &&
13884 { ac_try='test -s conftest$ac_exeext'
13885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886 (eval $ac_try) 2>&5
13887 ac_status=$?
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; }; then
13890 eval "$as_ac_var=yes"
13891 else
13892 echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13895 eval "$as_ac_var=no"
13898 rm -f conftest.err conftest.$ac_objext \
13899 conftest$ac_exeext conftest.$ac_ext
13901 ac_res=`eval echo '${'$as_ac_var'}'`
13902 { echo "$as_me:$LINENO: result: $ac_res" >&5
13903 echo "${ECHO_T}$ac_res" >&6; }
13904 if test `eval echo '${'$as_ac_var'}'` = yes; then
13905 cat >>confdefs.h <<_ACEOF
13906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13907 _ACEOF
13910 done
13913 # We require memcpy.
13914 memcpy_found=no
13916 for ac_func in memcpy
13918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13923 else
13924 if test x$gcc_no_link = xyes; then
13925 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13926 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13927 { (exit 1); exit 1; }; }
13929 cat >conftest.$ac_ext <<_ACEOF
13930 /* confdefs.h. */
13931 _ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13937 #define $ac_func innocuous_$ac_func
13939 /* System header to define __stub macros and hopefully few prototypes,
13940 which can conflict with char $ac_func (); below.
13941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13942 <limits.h> exists even on freestanding compilers. */
13944 #ifdef __STDC__
13945 # include <limits.h>
13946 #else
13947 # include <assert.h>
13948 #endif
13950 #undef $ac_func
13952 /* Override any GCC internal prototype to avoid an error.
13953 Use char because int might match the return type of a GCC
13954 builtin and then its argument prototype would still apply. */
13955 #ifdef __cplusplus
13956 extern "C"
13957 #endif
13958 char $ac_func ();
13959 /* The GNU C library defines this for functions which it implements
13960 to always fail with ENOSYS. Some functions are actually named
13961 something starting with __ and the normal name is an alias. */
13962 #if defined __stub_$ac_func || defined __stub___$ac_func
13963 choke me
13964 #endif
13967 main ()
13969 return $ac_func ();
13971 return 0;
13973 _ACEOF
13974 rm -f conftest.$ac_objext conftest$ac_exeext
13975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13976 (eval $ac_link) 2>conftest.er1
13977 ac_status=$?
13978 grep -v '^ *+' conftest.er1 >conftest.err
13979 rm -f conftest.er1
13980 cat conftest.err >&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); } &&
13983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985 (eval $ac_try) 2>&5
13986 ac_status=$?
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }; } &&
13989 { ac_try='test -s conftest$ac_exeext'
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
13995 eval "$as_ac_var=yes"
13996 else
13997 echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
14000 eval "$as_ac_var=no"
14003 rm -f conftest.err conftest.$ac_objext \
14004 conftest$ac_exeext conftest.$ac_ext
14006 ac_res=`eval echo '${'$as_ac_var'}'`
14007 { echo "$as_me:$LINENO: result: $ac_res" >&5
14008 echo "${ECHO_T}$ac_res" >&6; }
14009 if test `eval echo '${'$as_ac_var'}'` = yes; then
14010 cat >>confdefs.h <<_ACEOF
14011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14012 _ACEOF
14013 memcpy_found=yes
14015 done
14017 if test "$memcpy_found" = no; then
14018 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
14019 echo "$as_me: error: memcpy is required" >&2;}
14020 { (exit 1); exit 1; }; }
14022 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
14023 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14024 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14025 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14026 echo $ECHO_N "(cached) $ECHO_C" >&6
14027 else
14028 ac_check_lib_save_LIBS=$LIBS
14029 LIBS="-ldl $LIBS"
14030 if test x$gcc_no_link = xyes; then
14031 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14032 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14033 { (exit 1); exit 1; }; }
14035 cat >conftest.$ac_ext <<_ACEOF
14036 /* confdefs.h. */
14037 _ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h. */
14042 /* Override any GCC internal prototype to avoid an error.
14043 Use char because int might match the return type of a GCC
14044 builtin and then its argument prototype would still apply. */
14045 #ifdef __cplusplus
14046 extern "C"
14047 #endif
14048 char dlopen ();
14050 main ()
14052 return dlopen ();
14054 return 0;
14056 _ACEOF
14057 rm -f conftest.$ac_objext conftest$ac_exeext
14058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14059 (eval $ac_link) 2>conftest.er1
14060 ac_status=$?
14061 grep -v '^ *+' conftest.er1 >conftest.err
14062 rm -f conftest.er1
14063 cat conftest.err >&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } &&
14066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14069 ac_status=$?
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; } &&
14072 { ac_try='test -s conftest$ac_exeext'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14075 ac_status=$?
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; }; then
14078 ac_cv_lib_dl_dlopen=yes
14079 else
14080 echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14083 ac_cv_lib_dl_dlopen=no
14086 rm -f conftest.err conftest.$ac_objext \
14087 conftest$ac_exeext conftest.$ac_ext
14088 LIBS=$ac_check_lib_save_LIBS
14090 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14091 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14092 if test $ac_cv_lib_dl_dlopen = yes; then
14095 cat >>confdefs.h <<\_ACEOF
14096 #define HAVE_DLOPEN 1
14097 _ACEOF
14099 else
14101 { echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
14102 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6; }
14103 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
14104 echo $ECHO_N "(cached) $ECHO_C" >&6
14105 else
14106 ac_check_lib_save_LIBS=$LIBS
14107 LIBS="-ldld $LIBS"
14108 if test x$gcc_no_link = xyes; then
14109 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14110 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14111 { (exit 1); exit 1; }; }
14113 cat >conftest.$ac_ext <<_ACEOF
14114 /* confdefs.h. */
14115 _ACEOF
14116 cat confdefs.h >>conftest.$ac_ext
14117 cat >>conftest.$ac_ext <<_ACEOF
14118 /* end confdefs.h. */
14120 /* Override any GCC internal prototype to avoid an error.
14121 Use char because int might match the return type of a GCC
14122 builtin and then its argument prototype would still apply. */
14123 #ifdef __cplusplus
14124 extern "C"
14125 #endif
14126 char dlopen ();
14128 main ()
14130 return dlopen ();
14132 return 0;
14134 _ACEOF
14135 rm -f conftest.$ac_objext conftest$ac_exeext
14136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14137 (eval $ac_link) 2>conftest.er1
14138 ac_status=$?
14139 grep -v '^ *+' conftest.er1 >conftest.err
14140 rm -f conftest.er1
14141 cat conftest.err >&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); } &&
14144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; } &&
14150 { ac_try='test -s conftest$ac_exeext'
14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14153 ac_status=$?
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; }; then
14156 ac_cv_lib_dld_dlopen=yes
14157 else
14158 echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14161 ac_cv_lib_dld_dlopen=no
14164 rm -f conftest.err conftest.$ac_objext \
14165 conftest$ac_exeext conftest.$ac_ext
14166 LIBS=$ac_check_lib_save_LIBS
14168 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
14169 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6; }
14170 if test $ac_cv_lib_dld_dlopen = yes; then
14173 cat >>confdefs.h <<\_ACEOF
14174 #define HAVE_DLOPEN 1
14175 _ACEOF
14182 # Some library-finding code we stole from Tcl.
14183 #--------------------------------------------------------------------
14184 # Check for the existence of the -lsocket and -lnsl libraries.
14185 # The order here is important, so that they end up in the right
14186 # order in the command line generated by make. Here are some
14187 # special considerations:
14188 # 1. Use "connect" and "accept" to check for -lsocket, and
14189 # "gethostbyname" to check for -lnsl.
14190 # 2. Use each function name only once: can't redo a check because
14191 # autoconf caches the results of the last check and won't redo it.
14192 # 3. Use -lnsl and -lsocket only if they supply procedures that
14193 # aren't already present in the normal libraries. This is because
14194 # IRIX 5.2 has libraries, but they aren't needed and they're
14195 # bogus: they goof up name resolution if used.
14196 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
14197 # To get around this problem, check for both libraries together
14198 # if -lsocket doesn't work by itself.
14199 #--------------------------------------------------------------------
14201 { echo "$as_me:$LINENO: checking for socket libraries" >&5
14202 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6; }
14203 if test "${gcj_cv_lib_sockets+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 else
14206 gcj_cv_lib_sockets=
14207 gcj_checkBoth=0
14208 unset ac_cv_func_connect
14209 { echo "$as_me:$LINENO: checking for connect" >&5
14210 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
14211 if test "${ac_cv_func_connect+set}" = set; then
14212 echo $ECHO_N "(cached) $ECHO_C" >&6
14213 else
14214 if test x$gcc_no_link = xyes; then
14215 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14216 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14217 { (exit 1); exit 1; }; }
14219 cat >conftest.$ac_ext <<_ACEOF
14220 /* confdefs.h. */
14221 _ACEOF
14222 cat confdefs.h >>conftest.$ac_ext
14223 cat >>conftest.$ac_ext <<_ACEOF
14224 /* end confdefs.h. */
14225 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
14226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14227 #define connect innocuous_connect
14229 /* System header to define __stub macros and hopefully few prototypes,
14230 which can conflict with char connect (); below.
14231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14232 <limits.h> exists even on freestanding compilers. */
14234 #ifdef __STDC__
14235 # include <limits.h>
14236 #else
14237 # include <assert.h>
14238 #endif
14240 #undef connect
14242 /* Override any GCC internal prototype to avoid an error.
14243 Use char because int might match the return type of a GCC
14244 builtin and then its argument prototype would still apply. */
14245 #ifdef __cplusplus
14246 extern "C"
14247 #endif
14248 char connect ();
14249 /* The GNU C library defines this for functions which it implements
14250 to always fail with ENOSYS. Some functions are actually named
14251 something starting with __ and the normal name is an alias. */
14252 #if defined __stub_connect || defined __stub___connect
14253 choke me
14254 #endif
14257 main ()
14259 return connect ();
14261 return 0;
14263 _ACEOF
14264 rm -f conftest.$ac_objext conftest$ac_exeext
14265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14266 (eval $ac_link) 2>conftest.er1
14267 ac_status=$?
14268 grep -v '^ *+' conftest.er1 >conftest.err
14269 rm -f conftest.er1
14270 cat conftest.err >&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } &&
14273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14276 ac_status=$?
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; } &&
14279 { ac_try='test -s conftest$ac_exeext'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; }; then
14285 ac_cv_func_connect=yes
14286 else
14287 echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.$ac_ext >&5
14290 ac_cv_func_connect=no
14293 rm -f conftest.err conftest.$ac_objext \
14294 conftest$ac_exeext conftest.$ac_ext
14296 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
14297 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
14298 if test $ac_cv_func_connect = yes; then
14299 gcj_checkSocket=0
14300 else
14301 gcj_checkSocket=1
14304 if test "$gcj_checkSocket" = 1; then
14305 unset ac_cv_func_connect
14306 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14307 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
14308 if test "${ac_cv_lib_socket_main+set}" = set; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14310 else
14311 ac_check_lib_save_LIBS=$LIBS
14312 LIBS="-lsocket $LIBS"
14313 if test x$gcc_no_link = xyes; then
14314 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14315 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14316 { (exit 1); exit 1; }; }
14318 cat >conftest.$ac_ext <<_ACEOF
14319 /* confdefs.h. */
14320 _ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h. */
14327 main ()
14329 return main ();
14331 return 0;
14333 _ACEOF
14334 rm -f conftest.$ac_objext conftest$ac_exeext
14335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14336 (eval $ac_link) 2>conftest.er1
14337 ac_status=$?
14338 grep -v '^ *+' conftest.er1 >conftest.err
14339 rm -f conftest.er1
14340 cat conftest.err >&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); } &&
14343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14345 (eval $ac_try) 2>&5
14346 ac_status=$?
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); }; } &&
14349 { ac_try='test -s conftest$ac_exeext'
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14352 ac_status=$?
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; }; then
14355 ac_cv_lib_socket_main=yes
14356 else
14357 echo "$as_me: failed program was:" >&5
14358 sed 's/^/| /' conftest.$ac_ext >&5
14360 ac_cv_lib_socket_main=no
14363 rm -f conftest.err conftest.$ac_objext \
14364 conftest$ac_exeext conftest.$ac_ext
14365 LIBS=$ac_check_lib_save_LIBS
14367 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14368 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
14369 if test $ac_cv_lib_socket_main = yes; then
14370 gcj_cv_lib_sockets="-lsocket"
14371 else
14372 gcj_checkBoth=1
14376 if test "$gcj_checkBoth" = 1; then
14377 gcj_oldLibs=$LIBS
14378 LIBS="$LIBS -lsocket -lnsl"
14379 unset ac_cv_func_accept
14380 { echo "$as_me:$LINENO: checking for accept" >&5
14381 echo $ECHO_N "checking for accept... $ECHO_C" >&6; }
14382 if test "${ac_cv_func_accept+set}" = set; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14384 else
14385 if test x$gcc_no_link = xyes; then
14386 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14387 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14388 { (exit 1); exit 1; }; }
14390 cat >conftest.$ac_ext <<_ACEOF
14391 /* confdefs.h. */
14392 _ACEOF
14393 cat confdefs.h >>conftest.$ac_ext
14394 cat >>conftest.$ac_ext <<_ACEOF
14395 /* end confdefs.h. */
14396 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
14397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14398 #define accept innocuous_accept
14400 /* System header to define __stub macros and hopefully few prototypes,
14401 which can conflict with char accept (); below.
14402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14403 <limits.h> exists even on freestanding compilers. */
14405 #ifdef __STDC__
14406 # include <limits.h>
14407 #else
14408 # include <assert.h>
14409 #endif
14411 #undef accept
14413 /* Override any GCC internal prototype to avoid an error.
14414 Use char because int might match the return type of a GCC
14415 builtin and then its argument prototype would still apply. */
14416 #ifdef __cplusplus
14417 extern "C"
14418 #endif
14419 char accept ();
14420 /* The GNU C library defines this for functions which it implements
14421 to always fail with ENOSYS. Some functions are actually named
14422 something starting with __ and the normal name is an alias. */
14423 #if defined __stub_accept || defined __stub___accept
14424 choke me
14425 #endif
14428 main ()
14430 return accept ();
14432 return 0;
14434 _ACEOF
14435 rm -f conftest.$ac_objext conftest$ac_exeext
14436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14437 (eval $ac_link) 2>conftest.er1
14438 ac_status=$?
14439 grep -v '^ *+' conftest.er1 >conftest.err
14440 rm -f conftest.er1
14441 cat conftest.err >&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } &&
14444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14446 (eval $ac_try) 2>&5
14447 ac_status=$?
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; } &&
14450 { ac_try='test -s conftest$ac_exeext'
14451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14453 ac_status=$?
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; }; then
14456 ac_cv_func_accept=yes
14457 else
14458 echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14461 ac_cv_func_accept=no
14464 rm -f conftest.err conftest.$ac_objext \
14465 conftest$ac_exeext conftest.$ac_ext
14467 { echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
14468 echo "${ECHO_T}$ac_cv_func_accept" >&6; }
14469 if test $ac_cv_func_accept = yes; then
14470 gcj_checkNsl=0
14471 gcj_cv_lib_sockets="-lsocket -lnsl"
14474 unset ac_cv_func_accept
14475 LIBS=$gcj_oldLibs
14477 unset ac_cv_func_gethostbyname
14478 gcj_oldLibs=$LIBS
14479 LIBS="$LIBS $gcj_cv_lib_sockets"
14480 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
14481 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
14482 if test "${ac_cv_func_gethostbyname+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 else
14485 if test x$gcc_no_link = xyes; then
14486 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14487 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14488 { (exit 1); exit 1; }; }
14490 cat >conftest.$ac_ext <<_ACEOF
14491 /* confdefs.h. */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
14497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14498 #define gethostbyname innocuous_gethostbyname
14500 /* System header to define __stub macros and hopefully few prototypes,
14501 which can conflict with char gethostbyname (); below.
14502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14503 <limits.h> exists even on freestanding compilers. */
14505 #ifdef __STDC__
14506 # include <limits.h>
14507 #else
14508 # include <assert.h>
14509 #endif
14511 #undef gethostbyname
14513 /* Override any GCC internal prototype to avoid an error.
14514 Use char because int might match the return type of a GCC
14515 builtin and then its argument prototype would still apply. */
14516 #ifdef __cplusplus
14517 extern "C"
14518 #endif
14519 char gethostbyname ();
14520 /* The GNU C library defines this for functions which it implements
14521 to always fail with ENOSYS. Some functions are actually named
14522 something starting with __ and the normal name is an alias. */
14523 #if defined __stub_gethostbyname || defined __stub___gethostbyname
14524 choke me
14525 #endif
14528 main ()
14530 return gethostbyname ();
14532 return 0;
14534 _ACEOF
14535 rm -f conftest.$ac_objext conftest$ac_exeext
14536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14537 (eval $ac_link) 2>conftest.er1
14538 ac_status=$?
14539 grep -v '^ *+' conftest.er1 >conftest.err
14540 rm -f conftest.er1
14541 cat conftest.err >&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } &&
14544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14546 (eval $ac_try) 2>&5
14547 ac_status=$?
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); }; } &&
14550 { ac_try='test -s conftest$ac_exeext'
14551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552 (eval $ac_try) 2>&5
14553 ac_status=$?
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; }; then
14556 ac_cv_func_gethostbyname=yes
14557 else
14558 echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14561 ac_cv_func_gethostbyname=no
14564 rm -f conftest.err conftest.$ac_objext \
14565 conftest$ac_exeext conftest.$ac_ext
14567 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
14568 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
14569 if test $ac_cv_func_gethostbyname = yes; then
14571 else
14572 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14573 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
14574 if test "${ac_cv_lib_nsl_main+set}" = set; then
14575 echo $ECHO_N "(cached) $ECHO_C" >&6
14576 else
14577 ac_check_lib_save_LIBS=$LIBS
14578 LIBS="-lnsl $LIBS"
14579 if test x$gcc_no_link = xyes; then
14580 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14581 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14582 { (exit 1); exit 1; }; }
14584 cat >conftest.$ac_ext <<_ACEOF
14585 /* confdefs.h. */
14586 _ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14593 main ()
14595 return main ();
14597 return 0;
14599 _ACEOF
14600 rm -f conftest.$ac_objext conftest$ac_exeext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14602 (eval $ac_link) 2>conftest.er1
14603 ac_status=$?
14604 grep -v '^ *+' conftest.er1 >conftest.err
14605 rm -f conftest.er1
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } &&
14609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611 (eval $ac_try) 2>&5
14612 ac_status=$?
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); }; } &&
14615 { ac_try='test -s conftest$ac_exeext'
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14618 ac_status=$?
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; }; then
14621 ac_cv_lib_nsl_main=yes
14622 else
14623 echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14626 ac_cv_lib_nsl_main=no
14629 rm -f conftest.err conftest.$ac_objext \
14630 conftest$ac_exeext conftest.$ac_ext
14631 LIBS=$ac_check_lib_save_LIBS
14633 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14634 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
14635 if test $ac_cv_lib_nsl_main = yes; then
14636 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
14641 unset ac_cv_func_gethostbyname
14642 LIBS=$gcj_oldLIBS
14645 { echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
14646 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6; }
14647 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
14649 if test "$with_system_zlib" = yes; then
14650 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
14651 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
14652 if test "${ac_cv_lib_z_deflate+set}" = set; then
14653 echo $ECHO_N "(cached) $ECHO_C" >&6
14654 else
14655 ac_check_lib_save_LIBS=$LIBS
14656 LIBS="-lz $LIBS"
14657 if test x$gcc_no_link = xyes; then
14658 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14659 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14660 { (exit 1); exit 1; }; }
14662 cat >conftest.$ac_ext <<_ACEOF
14663 /* confdefs.h. */
14664 _ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14669 /* Override any GCC internal prototype to avoid an error.
14670 Use char because int might match the return type of a GCC
14671 builtin and then its argument prototype would still apply. */
14672 #ifdef __cplusplus
14673 extern "C"
14674 #endif
14675 char deflate ();
14677 main ()
14679 return deflate ();
14681 return 0;
14683 _ACEOF
14684 rm -f conftest.$ac_objext conftest$ac_exeext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14686 (eval $ac_link) 2>conftest.er1
14687 ac_status=$?
14688 grep -v '^ *+' conftest.er1 >conftest.err
14689 rm -f conftest.er1
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } &&
14693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695 (eval $ac_try) 2>&5
14696 ac_status=$?
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); }; } &&
14699 { ac_try='test -s conftest$ac_exeext'
14700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701 (eval $ac_try) 2>&5
14702 ac_status=$?
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; }; then
14705 ac_cv_lib_z_deflate=yes
14706 else
14707 echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.$ac_ext >&5
14710 ac_cv_lib_z_deflate=no
14713 rm -f conftest.err conftest.$ac_objext \
14714 conftest$ac_exeext conftest.$ac_ext
14715 LIBS=$ac_check_lib_save_LIBS
14717 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
14718 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
14719 if test $ac_cv_lib_z_deflate = yes; then
14720 ZLIBSPEC=-lz
14721 else
14722 ZLIBSPEC=
14727 # Test for Gtk stuff, if asked for.
14728 if test "$use_gtk_awt" = yes; then
14730 succeeded=no
14732 if test -z "$PKG_CONFIG"; then
14733 # Extract the first word of "pkg-config", so it can be a program name with args.
14734 set dummy pkg-config; ac_word=$2
14735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14737 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14739 else
14740 case $PKG_CONFIG in
14741 [\\/]* | ?:[\\/]*)
14742 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14746 for as_dir in $PATH
14748 IFS=$as_save_IFS
14749 test -z "$as_dir" && as_dir=.
14750 for ac_exec_ext in '' $ac_executable_extensions; do
14751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14752 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14754 break 2
14756 done
14757 done
14758 IFS=$as_save_IFS
14760 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14762 esac
14764 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14765 if test -n "$PKG_CONFIG"; then
14766 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14767 echo "${ECHO_T}$PKG_CONFIG" >&6; }
14768 else
14769 { echo "$as_me:$LINENO: result: no" >&5
14770 echo "${ECHO_T}no" >&6; }
14776 if test "$PKG_CONFIG" = "no" ; then
14777 echo "*** The pkg-config script could not be found. Make sure it is"
14778 echo "*** in your path, or set the PKG_CONFIG environment variable"
14779 echo "*** to the full path to pkg-config."
14780 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14781 else
14782 PKG_CONFIG_MIN_VERSION=0.9.0
14783 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14784 { echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
14785 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6; }
14787 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
14788 { echo "$as_me:$LINENO: result: yes" >&5
14789 echo "${ECHO_T}yes" >&6; }
14790 succeeded=yes
14792 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
14793 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
14794 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
14795 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
14796 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
14798 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
14799 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
14800 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
14801 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
14802 echo "${ECHO_T}$GTK_LIBS" >&6; }
14803 else
14804 GTK_CFLAGS=""
14805 GTK_LIBS=""
14806 ## If we have a custom action on failure, don't print errors, but
14807 ## do set a variable so people can do so.
14808 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
14809 echo $GTK_PKG_ERRORS
14814 else
14815 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14816 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14820 if test $succeeded = yes; then
14822 else
14823 { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
14824 echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
14825 { (exit 1); exit 1; }; }
14832 succeeded=no
14834 if test -z "$PKG_CONFIG"; then
14835 # Extract the first word of "pkg-config", so it can be a program name with args.
14836 set dummy pkg-config; ac_word=$2
14837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14839 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14841 else
14842 case $PKG_CONFIG in
14843 [\\/]* | ?:[\\/]*)
14844 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14848 for as_dir in $PATH
14850 IFS=$as_save_IFS
14851 test -z "$as_dir" && as_dir=.
14852 for ac_exec_ext in '' $ac_executable_extensions; do
14853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14854 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14856 break 2
14858 done
14859 done
14860 IFS=$as_save_IFS
14862 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14864 esac
14866 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14867 if test -n "$PKG_CONFIG"; then
14868 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14869 echo "${ECHO_T}$PKG_CONFIG" >&6; }
14870 else
14871 { echo "$as_me:$LINENO: result: no" >&5
14872 echo "${ECHO_T}no" >&6; }
14878 if test "$PKG_CONFIG" = "no" ; then
14879 echo "*** The pkg-config script could not be found. Make sure it is"
14880 echo "*** in your path, or set the PKG_CONFIG environment variable"
14881 echo "*** to the full path to pkg-config."
14882 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14883 else
14884 PKG_CONFIG_MIN_VERSION=0.9.0
14885 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14886 { echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
14887 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6; }
14889 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
14890 { echo "$as_me:$LINENO: result: yes" >&5
14891 echo "${ECHO_T}yes" >&6; }
14892 succeeded=yes
14894 { echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
14895 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6; }
14896 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14897 { echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
14898 echo "${ECHO_T}$GLIB_CFLAGS" >&6; }
14900 { echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
14901 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6; }
14902 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14903 { echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
14904 echo "${ECHO_T}$GLIB_LIBS" >&6; }
14905 else
14906 GLIB_CFLAGS=""
14907 GLIB_LIBS=""
14908 ## If we have a custom action on failure, don't print errors, but
14909 ## do set a variable so people can do so.
14910 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14911 echo $GLIB_PKG_ERRORS
14916 else
14917 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14918 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14922 if test $succeeded = yes; then
14924 else
14925 { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
14926 echo "$as_me: error: Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
14927 { (exit 1); exit 1; }; }
14934 succeeded=no
14936 if test -z "$PKG_CONFIG"; then
14937 # Extract the first word of "pkg-config", so it can be a program name with args.
14938 set dummy pkg-config; ac_word=$2
14939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14941 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14943 else
14944 case $PKG_CONFIG in
14945 [\\/]* | ?:[\\/]*)
14946 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14950 for as_dir in $PATH
14952 IFS=$as_save_IFS
14953 test -z "$as_dir" && as_dir=.
14954 for ac_exec_ext in '' $ac_executable_extensions; do
14955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14956 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14958 break 2
14960 done
14961 done
14962 IFS=$as_save_IFS
14964 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14966 esac
14968 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14969 if test -n "$PKG_CONFIG"; then
14970 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14971 echo "${ECHO_T}$PKG_CONFIG" >&6; }
14972 else
14973 { echo "$as_me:$LINENO: result: no" >&5
14974 echo "${ECHO_T}no" >&6; }
14980 if test "$PKG_CONFIG" = "no" ; then
14981 echo "*** The pkg-config script could not be found. Make sure it is"
14982 echo "*** in your path, or set the PKG_CONFIG environment variable"
14983 echo "*** to the full path to pkg-config."
14984 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14985 else
14986 PKG_CONFIG_MIN_VERSION=0.9.0
14987 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14988 { echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
14989 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6; }
14991 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
14992 { echo "$as_me:$LINENO: result: yes" >&5
14993 echo "${ECHO_T}yes" >&6; }
14994 succeeded=yes
14996 { echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
14997 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6; }
14998 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
14999 { echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
15000 echo "${ECHO_T}$LIBART_CFLAGS" >&6; }
15002 { echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
15003 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6; }
15004 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
15005 { echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
15006 echo "${ECHO_T}$LIBART_LIBS" >&6; }
15007 else
15008 LIBART_CFLAGS=""
15009 LIBART_LIBS=""
15010 ## If we have a custom action on failure, don't print errors, but
15011 ## do set a variable so people can do so.
15012 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
15013 echo $LIBART_PKG_ERRORS
15018 else
15019 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
15020 echo "*** See http://www.freedesktop.org/software/pkgconfig"
15024 if test $succeeded = yes; then
15026 else
15027 { { echo "$as_me:$LINENO: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
15028 echo "$as_me: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
15029 { (exit 1); exit 1; }; }
15035 # We require the XTest Extension to support java.awt.Robot.
15036 { echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
15037 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6; }
15038 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
15039 echo $ECHO_N "(cached) $ECHO_C" >&6
15040 else
15041 ac_check_lib_save_LIBS=$LIBS
15042 LIBS="-lXtst ${X_LIBS} $LIBS"
15043 if test x$gcc_no_link = xyes; then
15044 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15045 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15046 { (exit 1); exit 1; }; }
15048 cat >conftest.$ac_ext <<_ACEOF
15049 /* confdefs.h. */
15050 _ACEOF
15051 cat confdefs.h >>conftest.$ac_ext
15052 cat >>conftest.$ac_ext <<_ACEOF
15053 /* end confdefs.h. */
15055 /* Override any GCC internal prototype to avoid an error.
15056 Use char because int might match the return type of a GCC
15057 builtin and then its argument prototype would still apply. */
15058 #ifdef __cplusplus
15059 extern "C"
15060 #endif
15061 char XTestQueryExtension ();
15063 main ()
15065 return XTestQueryExtension ();
15067 return 0;
15069 _ACEOF
15070 rm -f conftest.$ac_objext conftest$ac_exeext
15071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15072 (eval $ac_link) 2>conftest.er1
15073 ac_status=$?
15074 grep -v '^ *+' conftest.er1 >conftest.err
15075 rm -f conftest.er1
15076 cat conftest.err >&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } &&
15079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15082 ac_status=$?
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; } &&
15085 { ac_try='test -s conftest$ac_exeext'
15086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087 (eval $ac_try) 2>&5
15088 ac_status=$?
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; }; then
15091 ac_cv_lib_Xtst_XTestQueryExtension=yes
15092 else
15093 echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15096 ac_cv_lib_Xtst_XTestQueryExtension=no
15099 rm -f conftest.err conftest.$ac_objext \
15100 conftest$ac_exeext conftest.$ac_ext
15101 LIBS=$ac_check_lib_save_LIBS
15103 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
15104 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
15105 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
15106 true
15107 else
15108 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
15109 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
15110 { (exit 1); exit 1; }; }
15115 # On Solaris, and maybe other architectures, the Boehm collector
15116 # requires -ldl.
15117 if test "$GC" = boehm; then
15118 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
15119 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
15120 if test "${ac_cv_lib_dl_main+set}" = set; then
15121 echo $ECHO_N "(cached) $ECHO_C" >&6
15122 else
15123 ac_check_lib_save_LIBS=$LIBS
15124 LIBS="-ldl $LIBS"
15125 if test x$gcc_no_link = xyes; then
15126 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15127 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15128 { (exit 1); exit 1; }; }
15130 cat >conftest.$ac_ext <<_ACEOF
15131 /* confdefs.h. */
15132 _ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15139 main ()
15141 return main ();
15143 return 0;
15145 _ACEOF
15146 rm -f conftest.$ac_objext conftest$ac_exeext
15147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15148 (eval $ac_link) 2>conftest.er1
15149 ac_status=$?
15150 grep -v '^ *+' conftest.er1 >conftest.err
15151 rm -f conftest.er1
15152 cat conftest.err >&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); } &&
15155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157 (eval $ac_try) 2>&5
15158 ac_status=$?
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; } &&
15161 { ac_try='test -s conftest$ac_exeext'
15162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163 (eval $ac_try) 2>&5
15164 ac_status=$?
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; }; then
15167 ac_cv_lib_dl_main=yes
15168 else
15169 echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15172 ac_cv_lib_dl_main=no
15175 rm -f conftest.err conftest.$ac_objext \
15176 conftest$ac_exeext conftest.$ac_ext
15177 LIBS=$ac_check_lib_save_LIBS
15179 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
15180 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
15181 if test $ac_cv_lib_dl_main = yes; then
15182 SYSTEMSPEC="$SYSTEMSPEC -ldl"
15188 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
15189 case $build in
15190 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
15191 *) CLASSPATH_SEPARATOR=':' ;;
15192 esac
15195 # We must search the source tree for java.lang, since we still don't
15196 # have libgcj.jar nor java/lang/*.class
15197 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
15198 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
15200 # Since some classes depend on this one, we need its source available
15201 # before we can do any GCJ compilation test :-(
15202 if test ! -f gnu/classpath/Configuration.java; then
15203 test -d gnu || mkdir gnu
15204 test -d gnu/classpath || mkdir gnu/classpath
15205 # Note that it is not crucial that all the values here be correct.
15206 sed -e "s,@prefix@,$prefix," \
15207 -e "s,@VERSION@,$VERSION," \
15208 -e "s,@LIBDEBUG@,false," \
15209 -e "s,@INIT_LOAD_LIBRARY@,false," \
15210 -e "s,@@,$LIBGCJDEBUG," \
15211 -e "s,@default_toolkit@,$TOOLKIT," \
15212 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
15213 -e "s,@GTK_CAIRO_ENABLED@,false," \
15214 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
15215 > gnu/classpath/Configuration.java
15216 # We do not want to redirect the output of the grep below to /dev/null,
15217 # but we add /dev/null to the input list so that grep will print the
15218 # filename of Configuration.java in case it finds any matches.
15219 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
15220 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
15221 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
15222 { (exit 1); exit 1; }; }
15226 if test -n "$ac_tool_prefix"; then
15227 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
15228 set dummy ${ac_tool_prefix}gcj; ac_word=$2
15229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15231 if test "${ac_cv_prog_GCJ+set}" = set; then
15232 echo $ECHO_N "(cached) $ECHO_C" >&6
15233 else
15234 if test -n "$GCJ"; then
15235 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15236 else
15237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15238 for as_dir in $PATH
15240 IFS=$as_save_IFS
15241 test -z "$as_dir" && as_dir=.
15242 for ac_exec_ext in '' $ac_executable_extensions; do
15243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15244 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
15245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15246 break 2
15248 done
15249 done
15250 IFS=$as_save_IFS
15254 GCJ=$ac_cv_prog_GCJ
15255 if test -n "$GCJ"; then
15256 { echo "$as_me:$LINENO: result: $GCJ" >&5
15257 echo "${ECHO_T}$GCJ" >&6; }
15258 else
15259 { echo "$as_me:$LINENO: result: no" >&5
15260 echo "${ECHO_T}no" >&6; }
15265 if test -z "$ac_cv_prog_GCJ"; then
15266 ac_ct_GCJ=$GCJ
15267 # Extract the first word of "gcj", so it can be a program name with args.
15268 set dummy gcj; ac_word=$2
15269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15271 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
15272 echo $ECHO_N "(cached) $ECHO_C" >&6
15273 else
15274 if test -n "$ac_ct_GCJ"; then
15275 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
15276 else
15277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15278 for as_dir in $PATH
15280 IFS=$as_save_IFS
15281 test -z "$as_dir" && as_dir=.
15282 for ac_exec_ext in '' $ac_executable_extensions; do
15283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15284 ac_cv_prog_ac_ct_GCJ="gcj"
15285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15286 break 2
15288 done
15289 done
15290 IFS=$as_save_IFS
15294 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
15295 if test -n "$ac_ct_GCJ"; then
15296 { echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
15297 echo "${ECHO_T}$ac_ct_GCJ" >&6; }
15298 else
15299 { echo "$as_me:$LINENO: result: no" >&5
15300 echo "${ECHO_T}no" >&6; }
15303 if test "x$ac_ct_GCJ" = x; then
15304 GCJ="no"
15305 else
15306 case $cross_compiling:$ac_tool_warned in
15307 yes:)
15308 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15309 whose name does not start with the host triplet. If you think this
15310 configuration is useful to you, please write to autoconf@gnu.org." >&5
15311 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15312 whose name does not start with the host triplet. If you think this
15313 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15314 ac_tool_warned=yes ;;
15315 esac
15316 GCJ=$ac_ct_GCJ
15318 else
15319 GCJ="$ac_cv_prog_GCJ"
15322 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
15327 # Now remove it.
15328 rm -f gnu/classpath/Configuration.java
15330 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
15332 { echo "$as_me:$LINENO: checking for void *" >&5
15333 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
15334 if test "${ac_cv_type_void_p+set}" = set; then
15335 echo $ECHO_N "(cached) $ECHO_C" >&6
15336 else
15337 cat >conftest.$ac_ext <<_ACEOF
15338 /* confdefs.h. */
15339 _ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h. */
15343 $ac_includes_default
15344 typedef void * ac__type_new_;
15346 main ()
15348 if ((ac__type_new_ *) 0)
15349 return 0;
15350 if (sizeof (ac__type_new_))
15351 return 0;
15353 return 0;
15355 _ACEOF
15356 rm -f conftest.$ac_objext
15357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15358 (eval $ac_compile) 2>conftest.er1
15359 ac_status=$?
15360 grep -v '^ *+' conftest.er1 >conftest.err
15361 rm -f conftest.er1
15362 cat conftest.err >&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } &&
15365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367 (eval $ac_try) 2>&5
15368 ac_status=$?
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; } &&
15371 { ac_try='test -s conftest.$ac_objext'
15372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15373 (eval $ac_try) 2>&5
15374 ac_status=$?
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); }; }; then
15377 ac_cv_type_void_p=yes
15378 else
15379 echo "$as_me: failed program was:" >&5
15380 sed 's/^/| /' conftest.$ac_ext >&5
15382 ac_cv_type_void_p=no
15385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15387 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15388 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
15390 { echo "$as_me:$LINENO: checking size of void *" >&5
15391 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
15392 if test "${ac_cv_sizeof_void_p+set}" = set; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15394 else
15395 if test "$ac_cv_type_void_p" = yes; then
15396 # The cast to long int works around a bug in the HP C Compiler
15397 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15398 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15399 # This bug is HP SR number 8606223364.
15400 if test "$cross_compiling" = yes; then
15401 # Depending upon the size, compute the lo and hi bounds.
15402 cat >conftest.$ac_ext <<_ACEOF
15403 /* confdefs.h. */
15404 _ACEOF
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h. */
15408 $ac_includes_default
15409 typedef void * ac__type_sizeof_;
15411 main ()
15413 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15414 test_array [0] = 0
15417 return 0;
15419 _ACEOF
15420 rm -f conftest.$ac_objext
15421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15422 (eval $ac_compile) 2>conftest.er1
15423 ac_status=$?
15424 grep -v '^ *+' conftest.er1 >conftest.err
15425 rm -f conftest.er1
15426 cat conftest.err >&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); } &&
15429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431 (eval $ac_try) 2>&5
15432 ac_status=$?
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; } &&
15435 { ac_try='test -s conftest.$ac_objext'
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15438 ac_status=$?
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; }; then
15441 ac_lo=0 ac_mid=0
15442 while :; do
15443 cat >conftest.$ac_ext <<_ACEOF
15444 /* confdefs.h. */
15445 _ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h. */
15449 $ac_includes_default
15450 typedef void * ac__type_sizeof_;
15452 main ()
15454 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15455 test_array [0] = 0
15458 return 0;
15460 _ACEOF
15461 rm -f conftest.$ac_objext
15462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15463 (eval $ac_compile) 2>conftest.er1
15464 ac_status=$?
15465 grep -v '^ *+' conftest.er1 >conftest.err
15466 rm -f conftest.er1
15467 cat conftest.err >&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } &&
15470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; } &&
15476 { ac_try='test -s conftest.$ac_objext'
15477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478 (eval $ac_try) 2>&5
15479 ac_status=$?
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); }; }; then
15482 ac_hi=$ac_mid; break
15483 else
15484 echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15487 ac_lo=`expr $ac_mid + 1`
15488 if test $ac_lo -le $ac_mid; then
15489 ac_lo= ac_hi=
15490 break
15492 ac_mid=`expr 2 '*' $ac_mid + 1`
15495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15496 done
15497 else
15498 echo "$as_me: failed program was:" >&5
15499 sed 's/^/| /' conftest.$ac_ext >&5
15501 cat >conftest.$ac_ext <<_ACEOF
15502 /* confdefs.h. */
15503 _ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h. */
15507 $ac_includes_default
15508 typedef void * ac__type_sizeof_;
15510 main ()
15512 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15513 test_array [0] = 0
15516 return 0;
15518 _ACEOF
15519 rm -f conftest.$ac_objext
15520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15521 (eval $ac_compile) 2>conftest.er1
15522 ac_status=$?
15523 grep -v '^ *+' conftest.er1 >conftest.err
15524 rm -f conftest.er1
15525 cat conftest.err >&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); } &&
15528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530 (eval $ac_try) 2>&5
15531 ac_status=$?
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; } &&
15534 { ac_try='test -s conftest.$ac_objext'
15535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536 (eval $ac_try) 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; }; then
15540 ac_hi=-1 ac_mid=-1
15541 while :; do
15542 cat >conftest.$ac_ext <<_ACEOF
15543 /* confdefs.h. */
15544 _ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h. */
15548 $ac_includes_default
15549 typedef void * ac__type_sizeof_;
15551 main ()
15553 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15554 test_array [0] = 0
15557 return 0;
15559 _ACEOF
15560 rm -f conftest.$ac_objext
15561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15562 (eval $ac_compile) 2>conftest.er1
15563 ac_status=$?
15564 grep -v '^ *+' conftest.er1 >conftest.err
15565 rm -f conftest.er1
15566 cat conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } &&
15569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571 (eval $ac_try) 2>&5
15572 ac_status=$?
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; } &&
15575 { ac_try='test -s conftest.$ac_objext'
15576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15577 (eval $ac_try) 2>&5
15578 ac_status=$?
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); }; }; then
15581 ac_lo=$ac_mid; break
15582 else
15583 echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15586 ac_hi=`expr '(' $ac_mid ')' - 1`
15587 if test $ac_mid -le $ac_hi; then
15588 ac_lo= ac_hi=
15589 break
15591 ac_mid=`expr 2 '*' $ac_mid`
15594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15595 done
15596 else
15597 echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15600 ac_lo= ac_hi=
15603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15607 # Binary search between lo and hi bounds.
15608 while test "x$ac_lo" != "x$ac_hi"; do
15609 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15610 cat >conftest.$ac_ext <<_ACEOF
15611 /* confdefs.h. */
15612 _ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15616 $ac_includes_default
15617 typedef void * ac__type_sizeof_;
15619 main ()
15621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15622 test_array [0] = 0
15625 return 0;
15627 _ACEOF
15628 rm -f conftest.$ac_objext
15629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15630 (eval $ac_compile) 2>conftest.er1
15631 ac_status=$?
15632 grep -v '^ *+' conftest.er1 >conftest.err
15633 rm -f conftest.er1
15634 cat conftest.err >&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); } &&
15637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639 (eval $ac_try) 2>&5
15640 ac_status=$?
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; } &&
15643 { ac_try='test -s conftest.$ac_objext'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15646 ac_status=$?
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; }; then
15649 ac_hi=$ac_mid
15650 else
15651 echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.$ac_ext >&5
15654 ac_lo=`expr '(' $ac_mid ')' + 1`
15657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15658 done
15659 case $ac_lo in
15660 ?*) ac_cv_sizeof_void_p=$ac_lo;;
15661 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
15662 See \`config.log' for more details." >&5
15663 echo "$as_me: error: cannot compute sizeof (void *)
15664 See \`config.log' for more details." >&2;}
15665 { (exit 77); exit 77; }; } ;;
15666 esac
15667 else
15668 cat >conftest.$ac_ext <<_ACEOF
15669 /* confdefs.h. */
15670 _ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h. */
15674 $ac_includes_default
15675 typedef void * ac__type_sizeof_;
15676 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15677 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15678 #include <stdio.h>
15679 #include <stdlib.h>
15681 main ()
15684 FILE *f = fopen ("conftest.val", "w");
15685 if (! f)
15686 return 1;
15687 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15689 long int i = longval ();
15690 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15691 return 1;
15692 fprintf (f, "%ld\n", i);
15694 else
15696 unsigned long int i = ulongval ();
15697 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15698 return 1;
15699 fprintf (f, "%lu\n", i);
15701 return ferror (f) || fclose (f) != 0;
15704 return 0;
15706 _ACEOF
15707 rm -f conftest$ac_exeext
15708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15709 (eval $ac_link) 2>&5
15710 ac_status=$?
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15714 (eval $ac_try) 2>&5
15715 ac_status=$?
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); }; }; then
15718 ac_cv_sizeof_void_p=`cat conftest.val`
15719 else
15720 echo "$as_me: program exited with status $ac_status" >&5
15721 echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.$ac_ext >&5
15724 ( exit $ac_status )
15725 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
15726 See \`config.log' for more details." >&5
15727 echo "$as_me: error: cannot compute sizeof (void *)
15728 See \`config.log' for more details." >&2;}
15729 { (exit 77); exit 77; }; }
15731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15733 rm -f conftest.val
15734 else
15735 ac_cv_sizeof_void_p=0
15738 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15739 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
15740 cat >>confdefs.h <<_ACEOF
15741 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15742 _ACEOF
15746 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
15747 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
15748 if test "${ac_cv_c_bigendian+set}" = set; then
15749 echo $ECHO_N "(cached) $ECHO_C" >&6
15750 else
15751 # See if sys/param.h defines the BYTE_ORDER macro.
15752 cat >conftest.$ac_ext <<_ACEOF
15753 /* confdefs.h. */
15754 _ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15758 #include <sys/types.h>
15759 #include <sys/param.h>
15762 main ()
15764 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15765 bogus endian macros
15766 #endif
15769 return 0;
15771 _ACEOF
15772 rm -f conftest.$ac_objext
15773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15774 (eval $ac_compile) 2>conftest.er1
15775 ac_status=$?
15776 grep -v '^ *+' conftest.er1 >conftest.err
15777 rm -f conftest.er1
15778 cat conftest.err >&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); } &&
15781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783 (eval $ac_try) 2>&5
15784 ac_status=$?
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; } &&
15787 { ac_try='test -s conftest.$ac_objext'
15788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789 (eval $ac_try) 2>&5
15790 ac_status=$?
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; }; then
15793 # It does; now see whether it defined to BIG_ENDIAN or not.
15794 cat >conftest.$ac_ext <<_ACEOF
15795 /* confdefs.h. */
15796 _ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15800 #include <sys/types.h>
15801 #include <sys/param.h>
15804 main ()
15806 #if BYTE_ORDER != BIG_ENDIAN
15807 not big endian
15808 #endif
15811 return 0;
15813 _ACEOF
15814 rm -f conftest.$ac_objext
15815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15816 (eval $ac_compile) 2>conftest.er1
15817 ac_status=$?
15818 grep -v '^ *+' conftest.er1 >conftest.err
15819 rm -f conftest.er1
15820 cat conftest.err >&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } &&
15823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825 (eval $ac_try) 2>&5
15826 ac_status=$?
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }; } &&
15829 { ac_try='test -s conftest.$ac_objext'
15830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831 (eval $ac_try) 2>&5
15832 ac_status=$?
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; }; then
15835 ac_cv_c_bigendian=yes
15836 else
15837 echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.$ac_ext >&5
15840 ac_cv_c_bigendian=no
15843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15844 else
15845 echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15848 # It does not; compile a test program.
15849 if test "$cross_compiling" = yes; then
15850 # try to guess the endianness by grepping values into an object file
15851 ac_cv_c_bigendian=unknown
15852 cat >conftest.$ac_ext <<_ACEOF
15853 /* confdefs.h. */
15854 _ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h. */
15858 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15859 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15860 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
15861 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15862 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15863 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15865 main ()
15867 _ascii (); _ebcdic ();
15869 return 0;
15871 _ACEOF
15872 rm -f conftest.$ac_objext
15873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15874 (eval $ac_compile) 2>conftest.er1
15875 ac_status=$?
15876 grep -v '^ *+' conftest.er1 >conftest.err
15877 rm -f conftest.er1
15878 cat conftest.err >&5
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } &&
15881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; } &&
15887 { ac_try='test -s conftest.$ac_objext'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }; then
15893 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
15894 ac_cv_c_bigendian=yes
15896 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15897 if test "$ac_cv_c_bigendian" = unknown; then
15898 ac_cv_c_bigendian=no
15899 else
15900 # finding both strings is unlikely to happen, but who knows?
15901 ac_cv_c_bigendian=unknown
15904 else
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15912 else
15913 cat >conftest.$ac_ext <<_ACEOF
15914 /* confdefs.h. */
15915 _ACEOF
15916 cat confdefs.h >>conftest.$ac_ext
15917 cat >>conftest.$ac_ext <<_ACEOF
15918 /* end confdefs.h. */
15919 $ac_includes_default
15921 main ()
15924 /* Are we little or big endian? From Harbison&Steele. */
15925 union
15927 long int l;
15928 char c[sizeof (long int)];
15929 } u;
15930 u.l = 1;
15931 return u.c[sizeof (long int) - 1] == 1;
15934 return 0;
15936 _ACEOF
15937 rm -f conftest$ac_exeext
15938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15939 (eval $ac_link) 2>&5
15940 ac_status=$?
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; }; then
15948 ac_cv_c_bigendian=no
15949 else
15950 echo "$as_me: program exited with status $ac_status" >&5
15951 echo "$as_me: failed program was:" >&5
15952 sed 's/^/| /' conftest.$ac_ext >&5
15954 ( exit $ac_status )
15955 ac_cv_c_bigendian=yes
15957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15965 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15966 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
15967 case $ac_cv_c_bigendian in
15968 yes)
15970 cat >>confdefs.h <<\_ACEOF
15971 #define WORDS_BIGENDIAN 1
15972 _ACEOF
15977 { { echo "$as_me:$LINENO: error: unknown endianness
15978 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15979 echo "$as_me: error: unknown endianness
15980 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15981 { (exit 1); exit 1; }; } ;;
15982 esac
15985 ZLIBS=
15986 SYS_ZLIBS=
15987 ZINCS=
15989 if test -z "$ZLIBSPEC"; then
15990 # Use zlib from the GCC tree.
15991 ZINCS='-I$(top_srcdir)/../zlib'
15992 ZLIBS=../zlib/libzgcj_convenience.la
15993 else
15994 # System's zlib.
15995 SYS_ZLIBS="$ZLIBSPEC"
16008 if test "$NATIVE" = yes; then
16009 NATIVE_TRUE=
16010 NATIVE_FALSE='#'
16011 else
16012 NATIVE_TRUE='#'
16013 NATIVE_FALSE=
16018 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
16019 NEEDS_DATA_START_TRUE=
16020 NEEDS_DATA_START_FALSE='#'
16021 else
16022 NEEDS_DATA_START_TRUE='#'
16023 NEEDS_DATA_START_FALSE=
16028 # Process the option "--enable-version-specific-runtime-libs"
16029 # Calculate toolexeclibdir
16030 case ${version_specific_libs} in
16031 yes)
16032 # Need the gcc compiler version to know where to install libraries
16033 # and header files if --enable-version-specific-runtime-libs option
16034 # is selected.
16035 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
16036 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
16037 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
16038 toolexeclibdir=$toolexecmainlibdir
16041 if test -n "$with_cross_host" &&
16042 test x"$with_cross_host" != x"no"; then
16043 # Install a library built with a cross compiler in tooldir, not libdir.
16044 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
16045 toolexecmainlibdir='$(toolexecdir)/lib'
16046 else
16047 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
16048 toolexecmainlibdir='$(libdir)'
16050 multi_os_directory=`$CC -print-multi-os-directory`
16051 case $multi_os_directory in
16052 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
16053 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
16054 esac
16056 esac
16061 # Determine where the standard .db file is found.
16062 multi_os_directory=`$CC -print-multi-os-directory`
16063 case $multi_os_directory in
16064 .) dbexecdir='$(libdir)/gcj-$(gcc_version)' ;; # Avoid /.
16065 *) dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)' ;;
16066 esac
16069 # Determine gcj version number.
16070 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
16071 GCJVERSION=$gcjversion
16074 cat >>confdefs.h <<_ACEOF
16075 #define GCJVERSION "$GCJVERSION"
16076 _ACEOF
16080 cat >>confdefs.h <<\_ACEOF
16081 #define JV_VERSION "1.4.2"
16082 _ACEOF
16085 cat >>confdefs.h <<\_ACEOF
16086 #define JV_API_VERSION "1.4"
16087 _ACEOF
16091 case "${with_gxx_include_dir}" in
16092 yes)
16093 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
16094 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
16095 { (exit 1); exit 1; }; }
16097 no | "")
16098 case "${enable_version_specific_runtime_libs}" in
16099 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
16101 libstdcxx_incdir='c++/$(gcc_version)'
16102 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
16103 esac ;;
16104 *) gxx_include_dir=${with_gxx_include_dir} ;;
16105 esac
16110 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
16111 # On that system, sys/ioctl.h will not include sys/filio.h unless
16112 # BSD_COMP is defined; just including sys/filio.h is simpler.
16113 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
16114 # for now. If you change this, you also must update natFile.cc.
16136 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
16137 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
16138 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
16139 pwd.h sys/config.h stdint.h langinfo.h locale.h \
16140 dirent.h sys/rw_lock.h
16142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
16149 ac_res=`eval echo '${'$as_ac_Header'}'`
16150 { echo "$as_me:$LINENO: result: $ac_res" >&5
16151 echo "${ECHO_T}$ac_res" >&6; }
16152 else
16153 # Is the header compilable?
16154 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16156 cat >conftest.$ac_ext <<_ACEOF
16157 /* confdefs.h. */
16158 _ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16162 $ac_includes_default
16163 #include <$ac_header>
16164 _ACEOF
16165 rm -f conftest.$ac_objext
16166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16167 (eval $ac_compile) 2>conftest.er1
16168 ac_status=$?
16169 grep -v '^ *+' conftest.er1 >conftest.err
16170 rm -f conftest.er1
16171 cat conftest.err >&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } &&
16174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16176 (eval $ac_try) 2>&5
16177 ac_status=$?
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); }; } &&
16180 { ac_try='test -s conftest.$ac_objext'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16183 ac_status=$?
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16186 ac_header_compiler=yes
16187 else
16188 echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16191 ac_header_compiler=no
16194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16196 echo "${ECHO_T}$ac_header_compiler" >&6; }
16198 # Is the header present?
16199 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16201 cat >conftest.$ac_ext <<_ACEOF
16202 /* confdefs.h. */
16203 _ACEOF
16204 cat confdefs.h >>conftest.$ac_ext
16205 cat >>conftest.$ac_ext <<_ACEOF
16206 /* end confdefs.h. */
16207 #include <$ac_header>
16208 _ACEOF
16209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16211 ac_status=$?
16212 grep -v '^ *+' conftest.er1 >conftest.err
16213 rm -f conftest.er1
16214 cat conftest.err >&5
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } >/dev/null; then
16217 if test -s conftest.err; then
16218 ac_cpp_err=$ac_c_preproc_warn_flag
16219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16220 else
16221 ac_cpp_err=
16223 else
16224 ac_cpp_err=yes
16226 if test -z "$ac_cpp_err"; then
16227 ac_header_preproc=yes
16228 else
16229 echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16232 ac_header_preproc=no
16235 rm -f conftest.err conftest.$ac_ext
16236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16237 echo "${ECHO_T}$ac_header_preproc" >&6; }
16239 # So? What about this header?
16240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16241 yes:no: )
16242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16246 ac_header_preproc=yes
16248 no:yes:* )
16249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16263 esac
16264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16267 echo $ECHO_N "(cached) $ECHO_C" >&6
16268 else
16269 eval "$as_ac_Header=\$ac_header_preproc"
16271 ac_res=`eval echo '${'$as_ac_Header'}'`
16272 { echo "$as_me:$LINENO: result: $ac_res" >&5
16273 echo "${ECHO_T}$ac_res" >&6; }
16276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16277 cat >>confdefs.h <<_ACEOF
16278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16279 _ACEOF
16283 done
16286 for ac_header in inttypes.h
16288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16293 echo $ECHO_N "(cached) $ECHO_C" >&6
16295 ac_res=`eval echo '${'$as_ac_Header'}'`
16296 { echo "$as_me:$LINENO: result: $ac_res" >&5
16297 echo "${ECHO_T}$ac_res" >&6; }
16298 else
16299 # Is the header compilable?
16300 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16302 cat >conftest.$ac_ext <<_ACEOF
16303 /* confdefs.h. */
16304 _ACEOF
16305 cat confdefs.h >>conftest.$ac_ext
16306 cat >>conftest.$ac_ext <<_ACEOF
16307 /* end confdefs.h. */
16308 $ac_includes_default
16309 #include <$ac_header>
16310 _ACEOF
16311 rm -f conftest.$ac_objext
16312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16313 (eval $ac_compile) 2>conftest.er1
16314 ac_status=$?
16315 grep -v '^ *+' conftest.er1 >conftest.err
16316 rm -f conftest.er1
16317 cat conftest.err >&5
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); } &&
16320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322 (eval $ac_try) 2>&5
16323 ac_status=$?
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; } &&
16326 { ac_try='test -s conftest.$ac_objext'
16327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328 (eval $ac_try) 2>&5
16329 ac_status=$?
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; }; then
16332 ac_header_compiler=yes
16333 else
16334 echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16337 ac_header_compiler=no
16340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16342 echo "${ECHO_T}$ac_header_compiler" >&6; }
16344 # Is the header present?
16345 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16347 cat >conftest.$ac_ext <<_ACEOF
16348 /* confdefs.h. */
16349 _ACEOF
16350 cat confdefs.h >>conftest.$ac_ext
16351 cat >>conftest.$ac_ext <<_ACEOF
16352 /* end confdefs.h. */
16353 #include <$ac_header>
16354 _ACEOF
16355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16357 ac_status=$?
16358 grep -v '^ *+' conftest.er1 >conftest.err
16359 rm -f conftest.er1
16360 cat conftest.err >&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); } >/dev/null; then
16363 if test -s conftest.err; then
16364 ac_cpp_err=$ac_c_preproc_warn_flag
16365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16366 else
16367 ac_cpp_err=
16369 else
16370 ac_cpp_err=yes
16372 if test -z "$ac_cpp_err"; then
16373 ac_header_preproc=yes
16374 else
16375 echo "$as_me: failed program was:" >&5
16376 sed 's/^/| /' conftest.$ac_ext >&5
16378 ac_header_preproc=no
16381 rm -f conftest.err conftest.$ac_ext
16382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16383 echo "${ECHO_T}$ac_header_preproc" >&6; }
16385 # So? What about this header?
16386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16387 yes:no: )
16388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16392 ac_header_preproc=yes
16394 no:yes:* )
16395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16409 esac
16410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16413 echo $ECHO_N "(cached) $ECHO_C" >&6
16414 else
16415 eval "$as_ac_Header=\$ac_header_preproc"
16417 ac_res=`eval echo '${'$as_ac_Header'}'`
16418 { echo "$as_me:$LINENO: result: $ac_res" >&5
16419 echo "${ECHO_T}$ac_res" >&6; }
16422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16423 cat >>confdefs.h <<_ACEOF
16424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16425 _ACEOF
16428 cat >>confdefs.h <<\_ACEOF
16429 #define HAVE_INTTYPES_H 1
16430 _ACEOF
16433 cat >>confdefs.h <<\_ACEOF
16434 #define JV_HAVE_INTTYPES_H 1
16435 _ACEOF
16440 done
16442 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
16443 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
16444 if test "${ac_cv_header_sys_wait_h+set}" = set; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16446 else
16447 cat >conftest.$ac_ext <<_ACEOF
16448 /* confdefs.h. */
16449 _ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16453 #include <sys/types.h>
16454 #include <sys/wait.h>
16455 #ifndef WEXITSTATUS
16456 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16457 #endif
16458 #ifndef WIFEXITED
16459 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16460 #endif
16463 main ()
16465 int s;
16466 wait (&s);
16467 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16469 return 0;
16471 _ACEOF
16472 rm -f conftest.$ac_objext
16473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16474 (eval $ac_compile) 2>conftest.er1
16475 ac_status=$?
16476 grep -v '^ *+' conftest.er1 >conftest.err
16477 rm -f conftest.er1
16478 cat conftest.err >&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); } &&
16481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; } &&
16487 { ac_try='test -s conftest.$ac_objext'
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16490 ac_status=$?
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16493 ac_cv_header_sys_wait_h=yes
16494 else
16495 echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16498 ac_cv_header_sys_wait_h=no
16501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16503 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
16504 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
16505 if test $ac_cv_header_sys_wait_h = yes; then
16507 cat >>confdefs.h <<\_ACEOF
16508 #define HAVE_SYS_WAIT_H 1
16509 _ACEOF
16514 { echo "$as_me:$LINENO: checking for ssize_t" >&5
16515 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
16516 if test "${ac_cv_type_ssize_t+set}" = set; then
16517 echo $ECHO_N "(cached) $ECHO_C" >&6
16518 else
16519 cat >conftest.$ac_ext <<_ACEOF
16520 /* confdefs.h. */
16521 _ACEOF
16522 cat confdefs.h >>conftest.$ac_ext
16523 cat >>conftest.$ac_ext <<_ACEOF
16524 /* end confdefs.h. */
16525 $ac_includes_default
16526 typedef ssize_t ac__type_new_;
16528 main ()
16530 if ((ac__type_new_ *) 0)
16531 return 0;
16532 if (sizeof (ac__type_new_))
16533 return 0;
16535 return 0;
16537 _ACEOF
16538 rm -f conftest.$ac_objext
16539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16540 (eval $ac_compile) 2>conftest.er1
16541 ac_status=$?
16542 grep -v '^ *+' conftest.er1 >conftest.err
16543 rm -f conftest.er1
16544 cat conftest.err >&5
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); } &&
16547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549 (eval $ac_try) 2>&5
16550 ac_status=$?
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; } &&
16553 { ac_try='test -s conftest.$ac_objext'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16556 ac_status=$?
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; }; then
16559 ac_cv_type_ssize_t=yes
16560 else
16561 echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16564 ac_cv_type_ssize_t=no
16567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16569 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16570 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
16571 if test $ac_cv_type_ssize_t = yes; then
16573 else
16575 cat >>confdefs.h <<_ACEOF
16576 #define ssize_t int
16577 _ACEOF
16582 { echo "$as_me:$LINENO: checking for in_addr_t" >&5
16583 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
16584 cat >conftest.$ac_ext <<_ACEOF
16585 /* confdefs.h. */
16586 _ACEOF
16587 cat confdefs.h >>conftest.$ac_ext
16588 cat >>conftest.$ac_ext <<_ACEOF
16589 /* end confdefs.h. */
16590 #include <sys/types.h>
16591 #if STDC_HEADERS
16592 #include <stdlib.h>
16593 #include <stddef.h>
16594 #endif
16595 #if HAVE_NETINET_IN_H
16596 #include <netinet/in.h>
16597 #endif
16599 main ()
16601 in_addr_t foo;
16603 return 0;
16605 _ACEOF
16606 rm -f conftest.$ac_objext
16607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16608 (eval $ac_compile) 2>conftest.er1
16609 ac_status=$?
16610 grep -v '^ *+' conftest.er1 >conftest.err
16611 rm -f conftest.er1
16612 cat conftest.err >&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); } &&
16615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617 (eval $ac_try) 2>&5
16618 ac_status=$?
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; } &&
16621 { ac_try='test -s conftest.$ac_objext'
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16624 ac_status=$?
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; }; then
16628 cat >>confdefs.h <<\_ACEOF
16629 #define HAVE_IN_ADDR_T 1
16630 _ACEOF
16632 { echo "$as_me:$LINENO: result: yes" >&5
16633 echo "${ECHO_T}yes" >&6; }
16634 else
16635 echo "$as_me: failed program was:" >&5
16636 sed 's/^/| /' conftest.$ac_ext >&5
16638 { echo "$as_me:$LINENO: result: no" >&5
16639 echo "${ECHO_T}no" >&6; }
16642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16644 { echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
16645 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6; }
16646 cat >conftest.$ac_ext <<_ACEOF
16647 /* confdefs.h. */
16648 _ACEOF
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h. */
16652 #include <netinet/in.h>
16654 main ()
16656 struct ip_mreq mreq;
16658 return 0;
16660 _ACEOF
16661 rm -f conftest.$ac_objext
16662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16663 (eval $ac_compile) 2>conftest.er1
16664 ac_status=$?
16665 grep -v '^ *+' conftest.er1 >conftest.err
16666 rm -f conftest.er1
16667 cat conftest.err >&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } &&
16670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; } &&
16676 { ac_try='test -s conftest.$ac_objext'
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16679 ac_status=$?
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; }; then
16683 cat >>confdefs.h <<\_ACEOF
16684 #define HAVE_STRUCT_IP_MREQ 1
16685 _ACEOF
16687 { echo "$as_me:$LINENO: result: yes" >&5
16688 echo "${ECHO_T}yes" >&6; }
16689 else
16690 echo "$as_me: failed program was:" >&5
16691 sed 's/^/| /' conftest.$ac_ext >&5
16693 { echo "$as_me:$LINENO: result: no" >&5
16694 echo "${ECHO_T}no" >&6; }
16697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16699 { echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
16700 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6; }
16701 cat >conftest.$ac_ext <<_ACEOF
16702 /* confdefs.h. */
16703 _ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 #include <netinet/in.h>
16709 main ()
16711 struct ipv6_mreq mreq6;
16713 return 0;
16715 _ACEOF
16716 rm -f conftest.$ac_objext
16717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16718 (eval $ac_compile) 2>conftest.er1
16719 ac_status=$?
16720 grep -v '^ *+' conftest.er1 >conftest.err
16721 rm -f conftest.er1
16722 cat conftest.err >&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); } &&
16725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; } &&
16731 { ac_try='test -s conftest.$ac_objext'
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16734 ac_status=$?
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; }; then
16738 cat >>confdefs.h <<\_ACEOF
16739 #define HAVE_STRUCT_IPV6_MREQ 1
16740 _ACEOF
16742 { echo "$as_me:$LINENO: result: yes" >&5
16743 echo "${ECHO_T}yes" >&6; }
16744 else
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16748 { echo "$as_me:$LINENO: result: no" >&5
16749 echo "${ECHO_T}no" >&6; }
16752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16754 { echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
16755 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6; }
16756 cat >conftest.$ac_ext <<_ACEOF
16757 /* confdefs.h. */
16758 _ACEOF
16759 cat confdefs.h >>conftest.$ac_ext
16760 cat >>conftest.$ac_ext <<_ACEOF
16761 /* end confdefs.h. */
16762 #include <netinet/in.h>
16764 main ()
16766 struct sockaddr_in6 addr6;
16768 return 0;
16770 _ACEOF
16771 rm -f conftest.$ac_objext
16772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16773 (eval $ac_compile) 2>conftest.er1
16774 ac_status=$?
16775 grep -v '^ *+' conftest.er1 >conftest.err
16776 rm -f conftest.er1
16777 cat conftest.err >&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); } &&
16780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16783 ac_status=$?
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; } &&
16786 { ac_try='test -s conftest.$ac_objext'
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16793 cat >>confdefs.h <<\_ACEOF
16794 #define HAVE_INET6 1
16795 _ACEOF
16797 { echo "$as_me:$LINENO: result: yes" >&5
16798 echo "${ECHO_T}yes" >&6; }
16799 else
16800 echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16803 { echo "$as_me:$LINENO: result: no" >&5
16804 echo "${ECHO_T}no" >&6; }
16807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16809 { echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
16810 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6; }
16811 cat >conftest.$ac_ext <<_ACEOF
16812 /* confdefs.h. */
16813 _ACEOF
16814 cat confdefs.h >>conftest.$ac_ext
16815 cat >>conftest.$ac_ext <<_ACEOF
16816 /* end confdefs.h. */
16817 #define _POSIX_PII_SOCKET
16818 #include <sys/types.h>
16819 #include <sys/socket.h>
16821 main ()
16823 socklen_t x = 5;
16825 return 0;
16827 _ACEOF
16828 rm -f conftest.$ac_objext
16829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16830 (eval $ac_compile) 2>conftest.er1
16831 ac_status=$?
16832 grep -v '^ *+' conftest.er1 >conftest.err
16833 rm -f conftest.er1
16834 cat conftest.err >&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } &&
16837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; } &&
16843 { ac_try='test -s conftest.$ac_objext'
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; }; then
16850 cat >>confdefs.h <<\_ACEOF
16851 #define HAVE_SOCKLEN_T 1
16852 _ACEOF
16854 { echo "$as_me:$LINENO: result: yes" >&5
16855 echo "${ECHO_T}yes" >&6; }
16856 else
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16860 { echo "$as_me:$LINENO: result: no" >&5
16861 echo "${ECHO_T}no" >&6; }
16864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16866 { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
16867 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
16868 cat >conftest.$ac_ext <<_ACEOF
16869 /* confdefs.h. */
16870 _ACEOF
16871 cat confdefs.h >>conftest.$ac_ext
16872 cat >>conftest.$ac_ext <<_ACEOF
16873 /* end confdefs.h. */
16874 #include <time.h>
16876 main ()
16878 struct tm tim; tim.tm_gmtoff = 0;
16880 return 0;
16882 _ACEOF
16883 rm -f conftest.$ac_objext
16884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16885 (eval $ac_compile) 2>conftest.er1
16886 ac_status=$?
16887 grep -v '^ *+' conftest.er1 >conftest.err
16888 rm -f conftest.er1
16889 cat conftest.err >&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } &&
16892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894 (eval $ac_try) 2>&5
16895 ac_status=$?
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; } &&
16898 { ac_try='test -s conftest.$ac_objext'
16899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16900 (eval $ac_try) 2>&5
16901 ac_status=$?
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }; }; then
16905 cat >>confdefs.h <<\_ACEOF
16906 #define STRUCT_TM_HAS_GMTOFF 1
16907 _ACEOF
16909 { echo "$as_me:$LINENO: result: yes" >&5
16910 echo "${ECHO_T}yes" >&6; }
16911 else
16912 echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16915 { echo "$as_me:$LINENO: result: no" >&5
16916 echo "${ECHO_T}no" >&6; }
16917 { echo "$as_me:$LINENO: checking for global timezone variable" >&5
16918 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6; }
16919 cat >conftest.$ac_ext <<_ACEOF
16920 /* confdefs.h. */
16921 _ACEOF
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h. */
16925 #include <time.h>
16927 main ()
16929 void i(){long z2 = 2*timezone;}
16931 return 0;
16933 _ACEOF
16934 rm -f conftest.$ac_objext
16935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16936 (eval $ac_compile) 2>conftest.er1
16937 ac_status=$?
16938 grep -v '^ *+' conftest.er1 >conftest.err
16939 rm -f conftest.er1
16940 cat conftest.err >&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } &&
16943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16946 ac_status=$?
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; } &&
16949 { ac_try='test -s conftest.$ac_objext'
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; }; then
16956 cat >>confdefs.h <<\_ACEOF
16957 #define HAVE_TIMEZONE 1
16958 _ACEOF
16960 { echo "$as_me:$LINENO: result: yes" >&5
16961 echo "${ECHO_T}yes" >&6; }
16962 else
16963 echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16966 { echo "$as_me:$LINENO: result: no" >&5
16967 echo "${ECHO_T}no" >&6; }
16968 { echo "$as_me:$LINENO: checking for global _timezone variable" >&5
16969 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6; }
16970 cat >conftest.$ac_ext <<_ACEOF
16971 /* confdefs.h. */
16972 _ACEOF
16973 cat confdefs.h >>conftest.$ac_ext
16974 cat >>conftest.$ac_ext <<_ACEOF
16975 /* end confdefs.h. */
16976 #include <time.h>
16978 main ()
16980 long z2 = _timezone;
16982 return 0;
16984 _ACEOF
16985 rm -f conftest.$ac_objext
16986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16987 (eval $ac_compile) 2>conftest.er1
16988 ac_status=$?
16989 grep -v '^ *+' conftest.er1 >conftest.err
16990 rm -f conftest.er1
16991 cat conftest.err >&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } &&
16994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; } &&
17000 { ac_try='test -s conftest.$ac_objext'
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17003 ac_status=$?
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; }; then
17007 cat >>confdefs.h <<\_ACEOF
17008 #define HAVE_UNDERSCORE_TIMEZONE 1
17009 _ACEOF
17011 { echo "$as_me:$LINENO: result: yes" >&5
17012 echo "${ECHO_T}yes" >&6; }
17013 else
17014 echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.$ac_ext >&5
17017 { echo "$as_me:$LINENO: result: no" >&5
17018 echo "${ECHO_T}no" >&6; }
17021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17029 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17030 # for constant arguments. Useless!
17031 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
17032 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
17033 if test "${ac_cv_working_alloca_h+set}" = set; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17035 else
17036 if test x$gcc_no_link = xyes; then
17037 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17039 { (exit 1); exit 1; }; }
17041 cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h. */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 #include <alloca.h>
17049 main ()
17051 char *p = (char *) alloca (2 * sizeof (int));
17053 return 0;
17055 _ACEOF
17056 rm -f conftest.$ac_objext conftest$ac_exeext
17057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17058 (eval $ac_link) 2>conftest.er1
17059 ac_status=$?
17060 grep -v '^ *+' conftest.er1 >conftest.err
17061 rm -f conftest.er1
17062 cat conftest.err >&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } &&
17065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17068 ac_status=$?
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; } &&
17071 { ac_try='test -s conftest$ac_exeext'
17072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17073 (eval $ac_try) 2>&5
17074 ac_status=$?
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; }; then
17077 ac_cv_working_alloca_h=yes
17078 else
17079 echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.$ac_ext >&5
17082 ac_cv_working_alloca_h=no
17085 rm -f conftest.err conftest.$ac_objext \
17086 conftest$ac_exeext conftest.$ac_ext
17088 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17089 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
17090 if test $ac_cv_working_alloca_h = yes; then
17092 cat >>confdefs.h <<\_ACEOF
17093 #define HAVE_ALLOCA_H 1
17094 _ACEOF
17098 { echo "$as_me:$LINENO: checking for alloca" >&5
17099 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
17100 if test "${ac_cv_func_alloca_works+set}" = set; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17102 else
17103 if test x$gcc_no_link = xyes; then
17104 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17105 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17106 { (exit 1); exit 1; }; }
17108 cat >conftest.$ac_ext <<_ACEOF
17109 /* confdefs.h. */
17110 _ACEOF
17111 cat confdefs.h >>conftest.$ac_ext
17112 cat >>conftest.$ac_ext <<_ACEOF
17113 /* end confdefs.h. */
17114 #ifdef __GNUC__
17115 # define alloca __builtin_alloca
17116 #else
17117 # ifdef _MSC_VER
17118 # include <malloc.h>
17119 # define alloca _alloca
17120 # else
17121 # if HAVE_ALLOCA_H
17122 # include <alloca.h>
17123 # else
17124 # ifdef _AIX
17125 #pragma alloca
17126 # else
17127 # ifndef alloca /* predefined by HP cc +Olibcalls */
17128 char *alloca ();
17129 # endif
17130 # endif
17131 # endif
17132 # endif
17133 #endif
17136 main ()
17138 char *p = (char *) alloca (1);
17140 return 0;
17142 _ACEOF
17143 rm -f conftest.$ac_objext conftest$ac_exeext
17144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17145 (eval $ac_link) 2>conftest.er1
17146 ac_status=$?
17147 grep -v '^ *+' conftest.er1 >conftest.err
17148 rm -f conftest.er1
17149 cat conftest.err >&5
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); } &&
17152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; } &&
17158 { ac_try='test -s conftest$ac_exeext'
17159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160 (eval $ac_try) 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; }; then
17164 ac_cv_func_alloca_works=yes
17165 else
17166 echo "$as_me: failed program was:" >&5
17167 sed 's/^/| /' conftest.$ac_ext >&5
17169 ac_cv_func_alloca_works=no
17172 rm -f conftest.err conftest.$ac_objext \
17173 conftest$ac_exeext conftest.$ac_ext
17175 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17176 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
17178 if test $ac_cv_func_alloca_works = yes; then
17180 cat >>confdefs.h <<\_ACEOF
17181 #define HAVE_ALLOCA 1
17182 _ACEOF
17184 else
17185 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17186 # that cause trouble. Some versions do not even contain alloca or
17187 # contain a buggy version. If you still want to use their alloca,
17188 # use ar to extract alloca.o from them instead of compiling alloca.c.
17190 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17192 cat >>confdefs.h <<\_ACEOF
17193 #define C_ALLOCA 1
17194 _ACEOF
17197 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17198 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
17199 if test "${ac_cv_os_cray+set}" = set; then
17200 echo $ECHO_N "(cached) $ECHO_C" >&6
17201 else
17202 cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h. */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17208 #if defined CRAY && ! defined CRAY2
17209 webecray
17210 #else
17211 wenotbecray
17212 #endif
17214 _ACEOF
17215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17216 $EGREP "webecray" >/dev/null 2>&1; then
17217 ac_cv_os_cray=yes
17218 else
17219 ac_cv_os_cray=no
17221 rm -f conftest*
17224 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17225 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
17226 if test $ac_cv_os_cray = yes; then
17227 for ac_func in _getb67 GETB67 getb67; do
17228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17233 else
17234 if test x$gcc_no_link = xyes; then
17235 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17236 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17237 { (exit 1); exit 1; }; }
17239 cat >conftest.$ac_ext <<_ACEOF
17240 /* confdefs.h. */
17241 _ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h. */
17245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17247 #define $ac_func innocuous_$ac_func
17249 /* System header to define __stub macros and hopefully few prototypes,
17250 which can conflict with char $ac_func (); below.
17251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17252 <limits.h> exists even on freestanding compilers. */
17254 #ifdef __STDC__
17255 # include <limits.h>
17256 #else
17257 # include <assert.h>
17258 #endif
17260 #undef $ac_func
17262 /* Override any GCC internal prototype to avoid an error.
17263 Use char because int might match the return type of a GCC
17264 builtin and then its argument prototype would still apply. */
17265 #ifdef __cplusplus
17266 extern "C"
17267 #endif
17268 char $ac_func ();
17269 /* The GNU C library defines this for functions which it implements
17270 to always fail with ENOSYS. Some functions are actually named
17271 something starting with __ and the normal name is an alias. */
17272 #if defined __stub_$ac_func || defined __stub___$ac_func
17273 choke me
17274 #endif
17277 main ()
17279 return $ac_func ();
17281 return 0;
17283 _ACEOF
17284 rm -f conftest.$ac_objext conftest$ac_exeext
17285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17286 (eval $ac_link) 2>conftest.er1
17287 ac_status=$?
17288 grep -v '^ *+' conftest.er1 >conftest.err
17289 rm -f conftest.er1
17290 cat conftest.err >&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } &&
17293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; } &&
17299 { ac_try='test -s conftest$ac_exeext'
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; }; then
17305 eval "$as_ac_var=yes"
17306 else
17307 echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17310 eval "$as_ac_var=no"
17313 rm -f conftest.err conftest.$ac_objext \
17314 conftest$ac_exeext conftest.$ac_ext
17316 ac_res=`eval echo '${'$as_ac_var'}'`
17317 { echo "$as_me:$LINENO: result: $ac_res" >&5
17318 echo "${ECHO_T}$ac_res" >&6; }
17319 if test `eval echo '${'$as_ac_var'}'` = yes; then
17321 cat >>confdefs.h <<_ACEOF
17322 #define CRAY_STACKSEG_END $ac_func
17323 _ACEOF
17325 break
17328 done
17331 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17332 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
17333 if test "${ac_cv_c_stack_direction+set}" = set; then
17334 echo $ECHO_N "(cached) $ECHO_C" >&6
17335 else
17336 if test "$cross_compiling" = yes; then
17337 ac_cv_c_stack_direction=0
17338 else
17339 cat >conftest.$ac_ext <<_ACEOF
17340 /* confdefs.h. */
17341 _ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17345 $ac_includes_default
17347 find_stack_direction ()
17349 static char *addr = 0;
17350 auto char dummy;
17351 if (addr == 0)
17353 addr = &dummy;
17354 return find_stack_direction ();
17356 else
17357 return (&dummy > addr) ? 1 : -1;
17361 main ()
17363 return find_stack_direction () < 0;
17365 _ACEOF
17366 rm -f conftest$ac_exeext
17367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17368 (eval $ac_link) 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; }; then
17377 ac_cv_c_stack_direction=1
17378 else
17379 echo "$as_me: program exited with status $ac_status" >&5
17380 echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17383 ( exit $ac_status )
17384 ac_cv_c_stack_direction=-1
17386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17391 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17392 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
17394 cat >>confdefs.h <<_ACEOF
17395 #define STACK_DIRECTION $ac_cv_c_stack_direction
17396 _ACEOF
17402 for ac_prog in perl
17404 # Extract the first word of "$ac_prog", so it can be a program name with args.
17405 set dummy $ac_prog; ac_word=$2
17406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17408 if test "${ac_cv_prog_PERL+set}" = set; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17410 else
17411 if test -n "$PERL"; then
17412 ac_cv_prog_PERL="$PERL" # Let the user override the test.
17413 else
17414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17415 for as_dir in $PATH
17417 IFS=$as_save_IFS
17418 test -z "$as_dir" && as_dir=.
17419 for ac_exec_ext in '' $ac_executable_extensions; do
17420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17421 ac_cv_prog_PERL="$ac_prog"
17422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17423 break 2
17425 done
17426 done
17427 IFS=$as_save_IFS
17431 PERL=$ac_cv_prog_PERL
17432 if test -n "$PERL"; then
17433 { echo "$as_me:$LINENO: result: $PERL" >&5
17434 echo "${ECHO_T}$PERL" >&6; }
17435 else
17436 { echo "$as_me:$LINENO: result: no" >&5
17437 echo "${ECHO_T}no" >&6; }
17441 test -n "$PERL" && break
17442 done
17443 test -n "$PERL" || PERL="false"
17446 SYSDEP_SOURCES=
17447 SIGNAL_HANDLER_AUX=
17449 case "${host}" in
17450 i?86-*-linux*)
17451 SIGNAL_HANDLER=include/i386-signal.h
17453 sparc*-sun-solaris*)
17454 SIGNAL_HANDLER=include/sparc-signal.h
17456 # ia64-*)
17457 # SYSDEP_SOURCES=sysdep/ia64.c
17458 # test -d sysdep || mkdir sysdep
17459 # ;;
17460 hppa*-*-linux*)
17461 SIGNAL_HANDLER=include/pa-signal.h
17463 hppa*-hp-hpux*)
17464 SIGNAL_HANDLER=include/hppa-signal.h
17466 ia64-*-linux*)
17467 SIGNAL_HANDLER=include/dwarf2-signal.h
17469 powerpc*-*-linux*)
17470 SIGNAL_HANDLER=include/powerpc-signal.h
17472 alpha*-*-linux*)
17473 SIGNAL_HANDLER=include/dwarf2-signal.h
17475 s390*-*-linux*)
17476 SIGNAL_HANDLER=include/s390-signal.h
17478 x86_64*-*-linux*)
17479 SIGNAL_HANDLER=include/x86_64-signal.h
17480 SIGNAL_HANDLER_AUX=include/i386-signal.h
17482 sparc*-*-linux*)
17483 SIGNAL_HANDLER=include/dwarf2-signal.h
17485 sh*-*-linux*)
17486 SIGNAL_HANDLER=include/sh-signal.h
17488 *mingw*)
17489 SIGNAL_HANDLER=include/win32-signal.h
17491 mips*-*-linux*)
17492 SIGNAL_HANDLER=include/mips-signal.h
17494 *-*-darwin*)
17495 SIGNAL_HANDLER=include/darwin-signal.h
17498 SIGNAL_HANDLER=include/default-signal.h
17500 esac
17502 # If we're using sjlj exceptions, forget what we just learned.
17503 if test "$enable_sjlj_exceptions" = yes; then
17504 SIGNAL_HANDLER=include/default-signal.h
17505 SIGNAL_HANDLER_AUX=
17510 if test -z "$SIGNAL_HANDLER_AUX"; then
17511 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
17514 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
17517 if test "${multilib}" = "yes"; then
17518 multilib_arg="--enable-multilib"
17519 else
17520 multilib_arg=
17523 # See if we support thread-local storage.
17525 # Check whether --enable-tls was given.
17526 if test "${enable_tls+set}" = set; then
17527 enableval=$enable_tls;
17528 case "$enableval" in
17529 yes|no) ;;
17530 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
17531 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
17532 { (exit 1); exit 1; }; } ;;
17533 esac
17535 else
17536 enable_tls=yes
17540 { echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
17541 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6; }
17542 if test "${have_tls+set}" = set; then
17543 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 else
17546 if test "$cross_compiling" = yes; then
17547 cat >conftest.$ac_ext <<_ACEOF
17548 __thread int foo;
17549 _ACEOF
17550 rm -f conftest.$ac_objext
17551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17552 (eval $ac_compile) 2>conftest.er1
17553 ac_status=$?
17554 grep -v '^ *+' conftest.er1 >conftest.err
17555 rm -f conftest.er1
17556 cat conftest.err >&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } &&
17559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; } &&
17565 { ac_try='test -s conftest.$ac_objext'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17568 ac_status=$?
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; }; then
17571 have_tls=yes
17572 else
17573 echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17576 have_tls=no
17579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17581 else
17582 cat >conftest.$ac_ext <<_ACEOF
17583 __thread int a; int b; int main() { return a = b; }
17584 _ACEOF
17585 rm -f conftest$ac_exeext
17586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17587 (eval $ac_link) 2>&5
17588 ac_status=$?
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592 (eval $ac_try) 2>&5
17593 ac_status=$?
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; }; then
17596 save_LDFLAGS="$LDFLAGS"
17597 LDFLAGS="-static $LDFLAGS"
17598 if test "$cross_compiling" = yes; then
17599 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17600 See \`config.log' for more details." >&5
17601 echo "$as_me: error: cannot run test program while cross compiling
17602 See \`config.log' for more details." >&2;}
17603 { (exit 1); exit 1; }; }
17604 else
17605 cat >conftest.$ac_ext <<_ACEOF
17606 __thread int a; int b; int main() { return a = b; }
17607 _ACEOF
17608 rm -f conftest$ac_exeext
17609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17610 (eval $ac_link) 2>&5
17611 ac_status=$?
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615 (eval $ac_try) 2>&5
17616 ac_status=$?
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; }; then
17619 have_tls=yes
17620 else
17621 echo "$as_me: program exited with status $ac_status" >&5
17622 echo "$as_me: failed program was:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17625 ( exit $ac_status )
17626 have_tls=no
17628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17632 LDFLAGS="$save_LDFLAGS"
17633 else
17634 echo "$as_me: program exited with status $ac_status" >&5
17635 echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17638 ( exit $ac_status )
17639 have_tls=no
17641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17646 { echo "$as_me:$LINENO: result: $have_tls" >&5
17647 echo "${ECHO_T}$have_tls" >&6; }
17648 if test "$enable_tls $have_tls" = "yes yes"; then
17650 cat >>confdefs.h <<\_ACEOF
17651 #define HAVE_TLS 1
17652 _ACEOF
17656 # Check if linker supports static linking on a per library basis
17657 LD_START_STATIC_SPEC=
17658 LD_FINISH_STATIC_SPEC=
17659 if $LD --help 2>&1 | grep -q -e -call_shared ; then
17660 if $LD --help 2>&1 | grep -q -e -non_shared ; then
17661 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
17662 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
17668 here=`${PWDCMD-pwd}`
17671 # We get this from the environment.
17674 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
17677 ac_config_files="$ac_config_files scripts/jar"
17680 ac_config_commands="$ac_config_commands default"
17683 cat >confcache <<\_ACEOF
17684 # This file is a shell script that caches the results of configure
17685 # tests run on this system so they can be shared between configure
17686 # scripts and configure runs, see configure's option --config-cache.
17687 # It is not useful on other systems. If it contains results you don't
17688 # want to keep, you may remove or edit it.
17690 # config.status only pays attention to the cache file if you give it
17691 # the --recheck option to rerun configure.
17693 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17694 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17695 # following values.
17697 _ACEOF
17699 # The following way of writing the cache mishandles newlines in values,
17700 # but we know of no workaround that is simple, portable, and efficient.
17701 # So, we kill variables containing newlines.
17702 # Ultrix sh set writes to stderr and can't be redirected directly,
17703 # and sets the high bit in the cache file unless we assign to the vars.
17705 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17706 eval ac_val=\$$ac_var
17707 case $ac_val in #(
17708 *${as_nl}*)
17709 case $ac_var in #(
17710 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17711 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17712 esac
17713 case $ac_var in #(
17714 _ | IFS | as_nl) ;; #(
17715 *) $as_unset $ac_var ;;
17716 esac ;;
17717 esac
17718 done
17720 (set) 2>&1 |
17721 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17722 *${as_nl}ac_space=\ *)
17723 # `set' does not quote correctly, so add quotes (double-quote
17724 # substitution turns \\\\ into \\, and sed turns \\ into \).
17725 sed -n \
17726 "s/'/'\\\\''/g;
17727 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17728 ;; #(
17730 # `set' quotes correctly as required by POSIX, so do not add quotes.
17731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17733 esac |
17734 sort
17736 sed '
17737 /^ac_cv_env_/b end
17738 t clear
17739 :clear
17740 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17741 t end
17742 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17743 :end' >>confcache
17744 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17745 if test -w $cache_file; then
17746 test "x$cache_file" != "x/dev/null" &&
17747 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
17748 echo "$as_me: updating cache $cache_file" >&6;}
17749 cat confcache >$cache_file
17750 else
17751 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17752 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17755 rm -f confcache
17757 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17758 # Let make expand exec_prefix.
17759 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17761 DEFS=-DHAVE_CONFIG_H
17763 ac_libobjs=
17764 ac_ltlibobjs=
17765 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17766 # 1. Remove the extension, and $U if already installed.
17767 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17768 ac_i=`echo "$ac_i" | sed "$ac_script"`
17769 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17770 # will be set to the directory where LIBOBJS objects are built.
17771 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17772 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17773 done
17774 LIBOBJS=$ac_libobjs
17776 LTLIBOBJS=$ac_ltlibobjs
17779 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17780 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17781 Usually this means the macro was only invoked conditionally." >&5
17782 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17783 Usually this means the macro was only invoked conditionally." >&2;}
17784 { (exit 1); exit 1; }; }
17786 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17787 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17788 Usually this means the macro was only invoked conditionally." >&5
17789 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17790 Usually this means the macro was only invoked conditionally." >&2;}
17791 { (exit 1); exit 1; }; }
17793 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17794 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17795 Usually this means the macro was only invoked conditionally." >&5
17796 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17797 Usually this means the macro was only invoked conditionally." >&2;}
17798 { (exit 1); exit 1; }; }
17800 if test -z "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then
17801 { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined.
17802 Usually this means the macro was only invoked conditionally." >&5
17803 echo "$as_me: error: conditional \"BASH_JAR\" was never defined.
17804 Usually this means the macro was only invoked conditionally." >&2;}
17805 { (exit 1); exit 1; }; }
17807 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17808 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17809 Usually this means the macro was only invoked conditionally." >&5
17810 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17811 Usually this means the macro was only invoked conditionally." >&2;}
17812 { (exit 1); exit 1; }; }
17814 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
17815 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
17816 Usually this means the macro was only invoked conditionally." >&5
17817 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
17818 Usually this means the macro was only invoked conditionally." >&2;}
17819 { (exit 1); exit 1; }; }
17821 if test -z "${QT_AWT_TRUE}" && test -z "${QT_AWT_FALSE}"; then
17822 { { echo "$as_me:$LINENO: error: conditional \"QT_AWT\" was never defined.
17823 Usually this means the macro was only invoked conditionally." >&5
17824 echo "$as_me: error: conditional \"QT_AWT\" was never defined.
17825 Usually this means the macro was only invoked conditionally." >&2;}
17826 { (exit 1); exit 1; }; }
17828 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
17829 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
17830 Usually this means the macro was only invoked conditionally." >&5
17831 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
17832 Usually this means the macro was only invoked conditionally." >&2;}
17833 { (exit 1); exit 1; }; }
17835 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17836 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
17837 Usually this means the macro was only invoked conditionally." >&5
17838 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
17839 Usually this means the macro was only invoked conditionally." >&2;}
17840 { (exit 1); exit 1; }; }
17842 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
17843 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
17844 Usually this means the macro was only invoked conditionally." >&5
17845 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
17846 Usually this means the macro was only invoked conditionally." >&2;}
17847 { (exit 1); exit 1; }; }
17849 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
17850 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17851 Usually this means the macro was only invoked conditionally." >&5
17852 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17853 Usually this means the macro was only invoked conditionally." >&2;}
17854 { (exit 1); exit 1; }; }
17856 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
17857 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17858 Usually this means the macro was only invoked conditionally." >&5
17859 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17860 Usually this means the macro was only invoked conditionally." >&2;}
17861 { (exit 1); exit 1; }; }
17863 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
17864 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
17865 Usually this means the macro was only invoked conditionally." >&5
17866 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
17867 Usually this means the macro was only invoked conditionally." >&2;}
17868 { (exit 1); exit 1; }; }
17870 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
17871 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
17872 Usually this means the macro was only invoked conditionally." >&5
17873 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
17874 Usually this means the macro was only invoked conditionally." >&2;}
17875 { (exit 1); exit 1; }; }
17877 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
17878 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
17879 Usually this means the macro was only invoked conditionally." >&5
17880 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
17881 Usually this means the macro was only invoked conditionally." >&2;}
17882 { (exit 1); exit 1; }; }
17884 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
17885 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
17886 Usually this means the macro was only invoked conditionally." >&5
17887 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
17888 Usually this means the macro was only invoked conditionally." >&2;}
17889 { (exit 1); exit 1; }; }
17891 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
17892 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
17893 Usually this means the macro was only invoked conditionally." >&5
17894 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
17895 Usually this means the macro was only invoked conditionally." >&2;}
17896 { (exit 1); exit 1; }; }
17898 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
17899 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
17900 Usually this means the macro was only invoked conditionally." >&5
17901 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
17902 Usually this means the macro was only invoked conditionally." >&2;}
17903 { (exit 1); exit 1; }; }
17905 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
17906 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
17907 Usually this means the macro was only invoked conditionally." >&5
17908 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
17909 Usually this means the macro was only invoked conditionally." >&2;}
17910 { (exit 1); exit 1; }; }
17912 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
17913 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
17914 Usually this means the macro was only invoked conditionally." >&5
17915 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
17916 Usually this means the macro was only invoked conditionally." >&2;}
17917 { (exit 1); exit 1; }; }
17919 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
17920 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
17921 Usually this means the macro was only invoked conditionally." >&5
17922 echo "$as_me: error: conditional \"NATIVE\" was never defined.
17923 Usually this means the macro was only invoked conditionally." >&2;}
17924 { (exit 1); exit 1; }; }
17926 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
17927 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
17928 Usually this means the macro was only invoked conditionally." >&5
17929 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
17930 Usually this means the macro was only invoked conditionally." >&2;}
17931 { (exit 1); exit 1; }; }
17934 : ${CONFIG_STATUS=./config.status}
17935 ac_clean_files_save=$ac_clean_files
17936 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17937 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17938 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17939 cat >$CONFIG_STATUS <<_ACEOF
17940 #! $SHELL
17941 # Generated by $as_me.
17942 # Run this file to recreate the current configuration.
17943 # Compiler output produced by configure, useful for debugging
17944 # configure, is in config.log if it exists.
17946 debug=false
17947 ac_cs_recheck=false
17948 ac_cs_silent=false
17949 SHELL=\${CONFIG_SHELL-$SHELL}
17950 _ACEOF
17952 cat >>$CONFIG_STATUS <<\_ACEOF
17953 ## --------------------- ##
17954 ## M4sh Initialization. ##
17955 ## --------------------- ##
17957 # Be Bourne compatible
17958 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17959 emulate sh
17960 NULLCMD=:
17961 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17962 # is contrary to our usage. Disable this feature.
17963 alias -g '${1+"$@"}'='"$@"'
17964 setopt NO_GLOB_SUBST
17965 else
17966 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
17968 BIN_SH=xpg4; export BIN_SH # for Tru64
17969 DUALCASE=1; export DUALCASE # for MKS sh
17972 # PATH needs CR
17973 # Avoid depending upon Character Ranges.
17974 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17975 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17976 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17977 as_cr_digits='0123456789'
17978 as_cr_alnum=$as_cr_Letters$as_cr_digits
17980 # The user is always right.
17981 if test "${PATH_SEPARATOR+set}" != set; then
17982 echo "#! /bin/sh" >conf$$.sh
17983 echo "exit 0" >>conf$$.sh
17984 chmod +x conf$$.sh
17985 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17986 PATH_SEPARATOR=';'
17987 else
17988 PATH_SEPARATOR=:
17990 rm -f conf$$.sh
17993 # Support unset when possible.
17994 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17995 as_unset=unset
17996 else
17997 as_unset=false
18001 # IFS
18002 # We need space, tab and new line, in precisely that order. Quoting is
18003 # there to prevent editors from complaining about space-tab.
18004 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18005 # splitting by setting IFS to empty value.)
18006 as_nl='
18008 IFS=" "" $as_nl"
18010 # Find who we are. Look in the path if we contain no directory separator.
18011 case $0 in
18012 *[\\/]* ) as_myself=$0 ;;
18013 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18014 for as_dir in $PATH
18016 IFS=$as_save_IFS
18017 test -z "$as_dir" && as_dir=.
18018 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18019 done
18020 IFS=$as_save_IFS
18023 esac
18024 # We did not find ourselves, most probably we were run as `sh COMMAND'
18025 # in which case we are not to be found in the path.
18026 if test "x$as_myself" = x; then
18027 as_myself=$0
18029 if test ! -f "$as_myself"; then
18030 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18031 { (exit 1); exit 1; }
18034 # Work around bugs in pre-3.0 UWIN ksh.
18035 for as_var in ENV MAIL MAILPATH
18036 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18037 done
18038 PS1='$ '
18039 PS2='> '
18040 PS4='+ '
18042 # NLS nuisances.
18043 for as_var in \
18044 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18045 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18046 LC_TELEPHONE LC_TIME
18048 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18049 eval $as_var=C; export $as_var
18050 else
18051 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18053 done
18055 # Required to use basename.
18056 if expr a : '\(a\)' >/dev/null 2>&1 &&
18057 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18058 as_expr=expr
18059 else
18060 as_expr=false
18063 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18064 as_basename=basename
18065 else
18066 as_basename=false
18070 # Name of the executable.
18071 as_me=`$as_basename -- "$0" ||
18072 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18073 X"$0" : 'X\(//\)$' \| \
18074 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18075 echo X/"$0" |
18076 sed '/^.*\/\([^/][^/]*\)\/*$/{
18077 s//\1/
18080 /^X\/\(\/\/\)$/{
18081 s//\1/
18084 /^X\/\(\/\).*/{
18085 s//\1/
18088 s/.*/./; q'`
18090 # CDPATH.
18091 $as_unset CDPATH
18095 as_lineno_1=$LINENO
18096 as_lineno_2=$LINENO
18097 test "x$as_lineno_1" != "x$as_lineno_2" &&
18098 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18100 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18101 # uniformly replaced by the line number. The first 'sed' inserts a
18102 # line-number line after each line using $LINENO; the second 'sed'
18103 # does the real work. The second script uses 'N' to pair each
18104 # line-number line with the line containing $LINENO, and appends
18105 # trailing '-' during substitution so that $LINENO is not a special
18106 # case at line end.
18107 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18108 # scripts with optimization help from Paolo Bonzini. Blame Lee
18109 # E. McMahon (1931-1989) for sed's syntax. :-)
18110 sed -n '
18112 /[$]LINENO/=
18113 ' <$as_myself |
18114 sed '
18115 s/[$]LINENO.*/&-/
18116 t lineno
18118 :lineno
18120 :loop
18121 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18122 t loop
18123 s/-\n.*//
18124 ' >$as_me.lineno &&
18125 chmod +x "$as_me.lineno" ||
18126 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18127 { (exit 1); exit 1; }; }
18129 # Don't try to exec as it changes $[0], causing all sort of problems
18130 # (the dirname of $[0] is not the place where we might find the
18131 # original and so on. Autoconf is especially sensitive to this).
18132 . "./$as_me.lineno"
18133 # Exit status is that of the last command.
18134 exit
18138 if (dirname -- /) >/dev/null 2>&1; then
18139 as_dirname=dirname
18140 else
18141 as_dirname=false
18144 ECHO_C= ECHO_N= ECHO_T=
18145 case `echo -n x` in
18146 -n*)
18147 case `echo 'x\c'` in
18148 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18149 *) ECHO_C='\c';;
18150 esac;;
18152 ECHO_N='-n';;
18153 esac
18155 if expr a : '\(a\)' >/dev/null 2>&1 &&
18156 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18157 as_expr=expr
18158 else
18159 as_expr=false
18162 rm -f conf$$ conf$$.exe conf$$.file
18163 if test -d conf$$.dir; then
18164 rm -f conf$$.dir/conf$$.file
18165 else
18166 rm -f conf$$.dir
18167 mkdir conf$$.dir
18169 echo >conf$$.file
18170 if ln -s conf$$.file conf$$ 2>/dev/null; then
18171 as_ln_s='ln -s'
18172 # ... but there are two gotchas:
18173 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18174 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18175 # In both cases, we have to default to `cp -p'.
18176 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18177 as_ln_s='cp -p'
18178 elif ln conf$$.file conf$$ 2>/dev/null; then
18179 as_ln_s=ln
18180 else
18181 as_ln_s='cp -p'
18183 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18184 rmdir conf$$.dir 2>/dev/null
18186 if mkdir -p . 2>/dev/null; then
18187 as_mkdir_p=:
18188 else
18189 test -d ./-p && rmdir ./-p
18190 as_mkdir_p=false
18193 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
18194 # systems may use methods other than mode bits to determine executability.
18195 cat >conf$$.file <<_ASEOF
18196 #! /bin/sh
18197 exit 0
18198 _ASEOF
18199 chmod +x conf$$.file
18200 if test -x conf$$.file >/dev/null 2>&1; then
18201 as_executable_p="test -x"
18202 else
18203 as_executable_p=:
18205 rm -f conf$$.file
18207 # Sed expression to map a string onto a valid CPP name.
18208 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18210 # Sed expression to map a string onto a valid variable name.
18211 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18214 exec 6>&1
18216 # Save the log message, to keep $[0] and so on meaningful, and to
18217 # report actual input values of CONFIG_FILES etc. instead of their
18218 # values after options handling.
18219 ac_log="
18220 This file was extended by libjava $as_me version-unused, which was
18221 generated by GNU Autoconf 2.59d. Invocation command line was
18223 CONFIG_FILES = $CONFIG_FILES
18224 CONFIG_HEADERS = $CONFIG_HEADERS
18225 CONFIG_LINKS = $CONFIG_LINKS
18226 CONFIG_COMMANDS = $CONFIG_COMMANDS
18227 $ $0 $@
18229 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18232 _ACEOF
18234 cat >>$CONFIG_STATUS <<_ACEOF
18235 # Files that config.status was made for.
18236 config_files="$ac_config_files"
18237 config_headers="$ac_config_headers"
18238 config_links="$ac_config_links"
18239 config_commands="$ac_config_commands"
18241 _ACEOF
18243 cat >>$CONFIG_STATUS <<\_ACEOF
18244 ac_cs_usage="\
18245 \`$as_me' instantiates files from templates according to the
18246 current configuration.
18248 Usage: $0 [OPTIONS] [FILE]...
18250 -h, --help print this help, then exit
18251 -V, --version print version number, then exit
18252 -q, --quiet do not print progress messages
18253 -d, --debug don't remove temporary files
18254 --recheck update $as_me by reconfiguring in the same conditions
18255 --file=FILE[:TEMPLATE]
18256 instantiate the configuration file FILE
18257 --header=FILE[:TEMPLATE]
18258 instantiate the configuration header FILE
18260 Configuration files:
18261 $config_files
18263 Configuration headers:
18264 $config_headers
18266 Configuration links:
18267 $config_links
18269 Configuration commands:
18270 $config_commands
18272 Report bugs to <bug-autoconf@gnu.org>."
18274 _ACEOF
18275 cat >>$CONFIG_STATUS <<_ACEOF
18276 ac_cs_version="\\
18277 libjava config.status version-unused
18278 configured by $0, generated by GNU Autoconf 2.59d,
18279 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18281 Copyright (C) 2006 Free Software Foundation, Inc.
18282 This config.status script is free software; the Free Software Foundation
18283 gives unlimited permission to copy, distribute and modify it."
18285 ac_pwd='$ac_pwd'
18286 srcdir='$srcdir'
18287 INSTALL='$INSTALL'
18288 _ACEOF
18290 cat >>$CONFIG_STATUS <<\_ACEOF
18291 # If no file are specified by the user, then we need to provide default
18292 # value. By we need to know if files were specified by the user.
18293 ac_need_defaults=:
18294 while test $# != 0
18296 case $1 in
18297 --*=*)
18298 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18299 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18300 ac_shift=:
18303 ac_option=$1
18304 ac_optarg=$2
18305 ac_shift=shift
18307 esac
18309 case $ac_option in
18310 # Handling of the options.
18311 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18312 ac_cs_recheck=: ;;
18313 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18314 echo "$ac_cs_version"; exit ;;
18315 --debug | --debu | --deb | --de | --d | -d )
18316 debug=: ;;
18317 --file | --fil | --fi | --f )
18318 $ac_shift
18319 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18320 ac_need_defaults=false;;
18321 --header | --heade | --head | --hea )
18322 $ac_shift
18323 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18324 ac_need_defaults=false;;
18325 --he | --h)
18326 # Conflict between --help and --header
18327 { echo "$as_me: error: ambiguous option: $1
18328 Try \`$0 --help' for more information." >&2
18329 { (exit 1); exit 1; }; };;
18330 --help | --hel | -h )
18331 echo "$ac_cs_usage"; exit ;;
18332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18333 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18334 ac_cs_silent=: ;;
18336 # This is an error.
18337 -*) { echo "$as_me: error: unrecognized option: $1
18338 Try \`$0 --help' for more information." >&2
18339 { (exit 1); exit 1; }; } ;;
18341 *) ac_config_targets="$ac_config_targets $1"
18342 ac_need_defaults=false ;;
18344 esac
18345 shift
18346 done
18348 ac_configure_extra_args=
18350 if $ac_cs_silent; then
18351 exec 6>/dev/null
18352 ac_configure_extra_args="$ac_configure_extra_args --silent"
18355 _ACEOF
18356 cat >>$CONFIG_STATUS <<_ACEOF
18357 if \$ac_cs_recheck; then
18358 echo "running CONFIG_SHELL=$SHELL $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18359 CONFIG_SHELL=$SHELL
18360 export CONFIG_SHELL
18361 exec $SHELL "$0" $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18364 _ACEOF
18365 cat >>$CONFIG_STATUS <<\_ACEOF
18366 exec 5>>config.log
18368 echo
18369 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18370 ## Running $as_me. ##
18371 _ASBOX
18372 echo "$ac_log"
18373 } >&5
18375 _ACEOF
18376 cat >>$CONFIG_STATUS <<_ACEOF
18378 # INIT-COMMANDS
18380 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18381 srcdir=${srcdir}
18382 host=${host}
18383 target=${target}
18384 with_multisubdir=${with_multisubdir}
18385 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18386 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18387 libgcj_basedir=${libgcj_basedir}
18388 CC="${CC}"
18389 CXX="${CXX}"
18390 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
18393 _ACEOF
18395 cat >>$CONFIG_STATUS <<\_ACEOF
18397 # Handling of arguments.
18398 for ac_config_target in $ac_config_targets
18400 case $ac_config_target in
18401 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18402 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18403 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
18404 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
18405 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
18406 "java/lang/ConcreteProcess.java") CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
18407 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
18408 "java/net/natInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
18409 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
18410 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
18411 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
18412 "gnu/java/nio/natPipeImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
18413 "gnu/java/nio/natSelectorImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
18414 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
18415 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
18416 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
18417 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
18418 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
18419 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
18420 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
18421 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
18422 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18423 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
18424 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
18425 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
18426 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
18427 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18428 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18429 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
18430 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18432 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18433 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18434 { (exit 1); exit 1; }; };;
18435 esac
18436 done
18439 # If the user did not use the arguments to specify the items to instantiate,
18440 # then the envvar interface is used. Set only those that are not.
18441 # We use the long form for the default assignment because of an extremely
18442 # bizarre bug on SunOS 4.1.3.
18443 if $ac_need_defaults; then
18444 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18445 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18446 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18447 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18450 # Have a temporary directory for convenience. Make it in the build tree
18451 # simply because there is no reason against having it here, and in addition,
18452 # creating and moving files from /tmp can sometimes cause problems.
18453 # Hook for its removal unless debugging.
18454 # Note that there is a small window in which the directory will not be cleaned:
18455 # after its creation but before its name has been assigned to `$tmp'.
18456 $debug ||
18458 tmp=
18459 trap 'exit_status=$?
18460 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18462 trap '{ (exit 1); exit 1; }' 1 2 13 15
18464 # Create a (secure) tmp directory for tmp files.
18467 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18468 test -n "$tmp" && test -d "$tmp"
18469 } ||
18471 tmp=./conf$$-$RANDOM
18472 (umask 077 && mkdir "$tmp")
18473 } ||
18475 echo "$me: cannot create a temporary directory in ." >&2
18476 { (exit 1); exit 1; }
18480 # Set up the sed scripts for CONFIG_FILES section.
18483 # No need to generate the scripts if there are no CONFIG_FILES.
18484 # This happens for instance when ./config.status config.h
18485 if test -n "$CONFIG_FILES"; then
18487 _ACEOF
18491 ac_delim='%!_!# '
18492 for ac_last_try in false false false false false :; do
18493 cat >conf$$subs.sed <<_ACEOF
18494 SHELL!$SHELL$ac_delim
18495 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18496 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18497 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18498 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18499 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18500 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18501 exec_prefix!$exec_prefix$ac_delim
18502 prefix!$prefix$ac_delim
18503 program_transform_name!$program_transform_name$ac_delim
18504 bindir!$bindir$ac_delim
18505 sbindir!$sbindir$ac_delim
18506 libexecdir!$libexecdir$ac_delim
18507 datarootdir!$datarootdir$ac_delim
18508 datadir!$datadir$ac_delim
18509 sysconfdir!$sysconfdir$ac_delim
18510 sharedstatedir!$sharedstatedir$ac_delim
18511 localstatedir!$localstatedir$ac_delim
18512 includedir!$includedir$ac_delim
18513 oldincludedir!$oldincludedir$ac_delim
18514 docdir!$docdir$ac_delim
18515 infodir!$infodir$ac_delim
18516 htmldir!$htmldir$ac_delim
18517 dvidir!$dvidir$ac_delim
18518 pdfdir!$pdfdir$ac_delim
18519 psdir!$psdir$ac_delim
18520 libdir!$libdir$ac_delim
18521 localedir!$localedir$ac_delim
18522 mandir!$mandir$ac_delim
18523 DEFS!$DEFS$ac_delim
18524 ECHO_C!$ECHO_C$ac_delim
18525 ECHO_N!$ECHO_N$ac_delim
18526 ECHO_T!$ECHO_T$ac_delim
18527 LIBS!$LIBS$ac_delim
18528 build_alias!$build_alias$ac_delim
18529 host_alias!$host_alias$ac_delim
18530 target_alias!$target_alias$ac_delim
18531 build!$build$ac_delim
18532 build_cpu!$build_cpu$ac_delim
18533 build_vendor!$build_vendor$ac_delim
18534 build_os!$build_os$ac_delim
18535 build_subdir!$build_subdir$ac_delim
18536 host_subdir!$host_subdir$ac_delim
18537 target_subdir!$target_subdir$ac_delim
18538 libgcj_basedir!$libgcj_basedir$ac_delim
18539 host!$host$ac_delim
18540 host_cpu!$host_cpu$ac_delim
18541 host_vendor!$host_vendor$ac_delim
18542 host_os!$host_os$ac_delim
18543 target!$target$ac_delim
18544 target_cpu!$target_cpu$ac_delim
18545 target_vendor!$target_vendor$ac_delim
18546 target_os!$target_os$ac_delim
18547 target_noncanonical!$target_noncanonical$ac_delim
18548 LN_S!$LN_S$ac_delim
18549 mkinstalldirs!$mkinstalldirs$ac_delim
18550 CC!$CC$ac_delim
18551 CFLAGS!$CFLAGS$ac_delim
18552 LDFLAGS!$LDFLAGS$ac_delim
18553 CPPFLAGS!$CPPFLAGS$ac_delim
18554 ac_ct_CC!$ac_ct_CC$ac_delim
18555 EXEEXT!$EXEEXT$ac_delim
18556 OBJEXT!$OBJEXT$ac_delim
18557 CXX!$CXX$ac_delim
18558 CXXFLAGS!$CXXFLAGS$ac_delim
18559 ac_ct_CXX!$ac_ct_CXX$ac_delim
18560 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18561 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18562 INSTALL_DATA!$INSTALL_DATA$ac_delim
18563 CYGPATH_W!$CYGPATH_W$ac_delim
18564 PACKAGE!$PACKAGE$ac_delim
18565 VERSION!$VERSION$ac_delim
18566 ACLOCAL!$ACLOCAL$ac_delim
18567 AUTOCONF!$AUTOCONF$ac_delim
18568 AUTOMAKE!$AUTOMAKE$ac_delim
18569 AUTOHEADER!$AUTOHEADER$ac_delim
18570 MAKEINFO!$MAKEINFO$ac_delim
18571 install_sh!$install_sh$ac_delim
18572 STRIP!$STRIP$ac_delim
18573 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
18574 mkdir_p!$mkdir_p$ac_delim
18575 AWK!$AWK$ac_delim
18576 SET_MAKE!$SET_MAKE$ac_delim
18577 am__leading_dot!$am__leading_dot$ac_delim
18578 AMTAR!$AMTAR$ac_delim
18579 am__tar!$am__tar$ac_delim
18580 am__untar!$am__untar$ac_delim
18581 DEPDIR!$DEPDIR$ac_delim
18582 am__include!$am__include$ac_delim
18583 am__quote!$am__quote$ac_delim
18584 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
18585 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
18586 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
18587 CCDEPMODE!$CCDEPMODE$ac_delim
18588 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
18589 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
18590 CXXDEPMODE!$CXXDEPMODE$ac_delim
18591 _ACEOF
18593 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 97; then
18594 break
18595 elif $ac_last_try; then
18596 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18597 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18598 { (exit 1); exit 1; }; }
18599 else
18600 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18602 done
18604 ac_eof=
18605 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
18606 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
18607 ac_eof=`expr 0$ac_eof + 1`
18610 cat >>$CONFIG_STATUS <<_ACEOF
18611 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18613 _ACEOF
18614 sed '
18615 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18616 s/^/s,@/; s/!/@,|#_!!_#|/
18619 s/'"$ac_delim"'$/,g/; t
18620 s/$/\\/; p
18621 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18622 ' >>$CONFIG_STATUS <conf$$subs.sed
18623 rm -f conf$$subs.sed
18624 cat >>$CONFIG_STATUS <<_ACEOF
18625 CEOF$ac_eof
18626 _ACEOF
18629 ac_delim='%!_!# '
18630 for ac_last_try in false false false false false :; do
18631 cat >conf$$subs.sed <<_ACEOF
18632 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
18633 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
18634 AS!$AS$ac_delim
18635 LD!$LD$ac_delim
18636 AR!$AR$ac_delim
18637 RANLIB!$RANLIB$ac_delim
18638 JAR!$JAR$ac_delim
18639 ZIP!$ZIP$ac_delim
18640 UNZIP!$UNZIP$ac_delim
18641 BASH_JAR_TRUE!$BASH_JAR_TRUE$ac_delim
18642 BASH_JAR_FALSE!$BASH_JAR_FALSE$ac_delim
18643 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
18644 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
18645 MAINT!$MAINT$ac_delim
18646 LIBGCJ_CFLAGS!$LIBGCJ_CFLAGS$ac_delim
18647 LIBGCJ_CXXFLAGS!$LIBGCJ_CXXFLAGS$ac_delim
18648 LIBGCJ_JAVAFLAGS!$LIBGCJ_JAVAFLAGS$ac_delim
18649 LIBGCJ_LD_SYMBOLIC!$LIBGCJ_LD_SYMBOLIC$ac_delim
18650 LIBGCJDEBUG!$LIBGCJDEBUG$ac_delim
18651 TOOLKIT!$TOOLKIT$ac_delim
18652 XLIB_AWT_TRUE!$XLIB_AWT_TRUE$ac_delim
18653 XLIB_AWT_FALSE!$XLIB_AWT_FALSE$ac_delim
18654 QT_AWT_TRUE!$QT_AWT_TRUE$ac_delim
18655 QT_AWT_FALSE!$QT_AWT_FALSE$ac_delim
18656 GCJH!$GCJH$ac_delim
18657 INCLTDL!$INCLTDL$ac_delim
18658 LIBLTDL!$LIBLTDL$ac_delim
18659 DIRLTDL!$DIRLTDL$ac_delim
18660 LIBTOOL!$LIBTOOL$ac_delim
18661 CXXCPP!$CXXCPP$ac_delim
18662 GCJ!$GCJ$ac_delim
18663 GCJFLAGS!$GCJFLAGS$ac_delim
18664 GCJDEPMODE!$GCJDEPMODE$ac_delim
18665 am__fastdepGCJ_TRUE!$am__fastdepGCJ_TRUE$ac_delim
18666 am__fastdepGCJ_FALSE!$am__fastdepGCJ_FALSE$ac_delim
18667 subdirs!$subdirs$ac_delim
18668 TESTSUBDIR_TRUE!$TESTSUBDIR_TRUE$ac_delim
18669 TESTSUBDIR_FALSE!$TESTSUBDIR_FALSE$ac_delim
18670 JAVA_HOME_SET_TRUE!$JAVA_HOME_SET_TRUE$ac_delim
18671 JAVA_HOME_SET_FALSE!$JAVA_HOME_SET_FALSE$ac_delim
18672 JAVA_HOME!$JAVA_HOME$ac_delim
18673 INTERPRETER!$INTERPRETER$ac_delim
18674 LIBFFI!$LIBFFI$ac_delim
18675 LIBFFIINCS!$LIBFFIINCS$ac_delim
18676 PLATFORM_INNER_NAT_HDRS!$PLATFORM_INNER_NAT_HDRS$ac_delim
18677 CPP!$CPP$ac_delim
18678 GREP!$GREP$ac_delim
18679 EGREP!$EGREP$ac_delim
18680 USING_WIN32_PLATFORM_TRUE!$USING_WIN32_PLATFORM_TRUE$ac_delim
18681 USING_WIN32_PLATFORM_FALSE!$USING_WIN32_PLATFORM_FALSE$ac_delim
18682 USING_POSIX_PLATFORM_TRUE!$USING_POSIX_PLATFORM_TRUE$ac_delim
18683 USING_POSIX_PLATFORM_FALSE!$USING_POSIX_PLATFORM_FALSE$ac_delim
18684 USING_DARWIN_CRT_TRUE!$USING_DARWIN_CRT_TRUE$ac_delim
18685 USING_DARWIN_CRT_FALSE!$USING_DARWIN_CRT_FALSE$ac_delim
18686 SYSTEMSPEC!$SYSTEMSPEC$ac_delim
18687 LIBGCJTESTSPEC!$LIBGCJTESTSPEC$ac_delim
18688 ZLIBSPEC!$ZLIBSPEC$ac_delim
18689 ZLIBTESTSPEC!$ZLIBTESTSPEC$ac_delim
18690 XMKMF!$XMKMF$ac_delim
18691 X_CFLAGS!$X_CFLAGS$ac_delim
18692 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
18693 X_LIBS!$X_LIBS$ac_delim
18694 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
18695 GTK_CAIRO_TRUE!$GTK_CAIRO_TRUE$ac_delim
18696 GTK_CAIRO_FALSE!$GTK_CAIRO_FALSE$ac_delim
18697 PKG_CONFIG!$PKG_CONFIG$ac_delim
18698 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
18699 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
18700 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
18701 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
18702 extra_ldflags_libjava!$extra_ldflags_libjava$ac_delim
18703 GCLIBS!$GCLIBS$ac_delim
18704 GCINCS!$GCINCS$ac_delim
18705 GCDEPS!$GCDEPS$ac_delim
18706 GCSPEC!$GCSPEC$ac_delim
18707 JC1GCSPEC!$JC1GCSPEC$ac_delim
18708 GCTESTSPEC!$GCTESTSPEC$ac_delim
18709 USING_BOEHMGC_TRUE!$USING_BOEHMGC_TRUE$ac_delim
18710 USING_BOEHMGC_FALSE!$USING_BOEHMGC_FALSE$ac_delim
18711 USING_NOGC_TRUE!$USING_NOGC_TRUE$ac_delim
18712 USING_NOGC_FALSE!$USING_NOGC_FALSE$ac_delim
18713 THREADLIBS!$THREADLIBS$ac_delim
18714 THREADINCS!$THREADINCS$ac_delim
18715 THREADDEPS!$THREADDEPS$ac_delim
18716 THREADSPEC!$THREADSPEC$ac_delim
18717 THREADLDFLAGS!$THREADLDFLAGS$ac_delim
18718 THREADCXXFLAGS!$THREADCXXFLAGS$ac_delim
18719 USING_POSIX_THREADS_TRUE!$USING_POSIX_THREADS_TRUE$ac_delim
18720 USING_POSIX_THREADS_FALSE!$USING_POSIX_THREADS_FALSE$ac_delim
18721 USING_WIN32_THREADS_TRUE!$USING_WIN32_THREADS_TRUE$ac_delim
18722 USING_WIN32_THREADS_FALSE!$USING_WIN32_THREADS_FALSE$ac_delim
18723 USING_NO_THREADS_TRUE!$USING_NO_THREADS_TRUE$ac_delim
18724 USING_NO_THREADS_FALSE!$USING_NO_THREADS_FALSE$ac_delim
18725 HASH_SYNC_SPEC!$HASH_SYNC_SPEC$ac_delim
18726 USING_GCC_TRUE!$USING_GCC_TRUE$ac_delim
18727 USING_GCC_FALSE!$USING_GCC_FALSE$ac_delim
18728 LIBICONV!$LIBICONV$ac_delim
18729 _ACEOF
18731 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 97; then
18732 break
18733 elif $ac_last_try; then
18734 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18735 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18736 { (exit 1); exit 1; }; }
18737 else
18738 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18740 done
18742 ac_eof=
18743 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
18744 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
18745 ac_eof=`expr 0$ac_eof + 1`
18748 cat >>$CONFIG_STATUS <<_ACEOF
18749 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
18750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18751 _ACEOF
18752 sed '
18753 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18754 s/^/s,@/; s/!/@,|#_!!_#|/
18757 s/'"$ac_delim"'$/,g/; t
18758 s/$/\\/; p
18759 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18760 ' >>$CONFIG_STATUS <conf$$subs.sed
18761 rm -f conf$$subs.sed
18762 cat >>$CONFIG_STATUS <<_ACEOF
18763 CEOF$ac_eof
18764 _ACEOF
18767 ac_delim='%!_!# '
18768 for ac_last_try in false false false false false :; do
18769 cat >conf$$subs.sed <<_ACEOF
18770 LTLIBICONV!$LTLIBICONV$ac_delim
18771 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
18772 GTK_LIBS!$GTK_LIBS$ac_delim
18773 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
18774 GLIB_LIBS!$GLIB_LIBS$ac_delim
18775 LIBART_CFLAGS!$LIBART_CFLAGS$ac_delim
18776 LIBART_LIBS!$LIBART_LIBS$ac_delim
18777 CLASSPATH_SEPARATOR!$CLASSPATH_SEPARATOR$ac_delim
18778 ZLIBS!$ZLIBS$ac_delim
18779 SYS_ZLIBS!$SYS_ZLIBS$ac_delim
18780 ZINCS!$ZINCS$ac_delim
18781 DIVIDESPEC!$DIVIDESPEC$ac_delim
18782 CHECKREFSPEC!$CHECKREFSPEC$ac_delim
18783 EXCEPTIONSPEC!$EXCEPTIONSPEC$ac_delim
18784 BACKTRACESPEC!$BACKTRACESPEC$ac_delim
18785 IEEESPEC!$IEEESPEC$ac_delim
18786 NATIVE_TRUE!$NATIVE_TRUE$ac_delim
18787 NATIVE_FALSE!$NATIVE_FALSE$ac_delim
18788 NEEDS_DATA_START_TRUE!$NEEDS_DATA_START_TRUE$ac_delim
18789 NEEDS_DATA_START_FALSE!$NEEDS_DATA_START_FALSE$ac_delim
18790 GCC_UNWIND_INCLUDE!$GCC_UNWIND_INCLUDE$ac_delim
18791 toolexecdir!$toolexecdir$ac_delim
18792 toolexecmainlibdir!$toolexecmainlibdir$ac_delim
18793 toolexeclibdir!$toolexeclibdir$ac_delim
18794 dbexecdir!$dbexecdir$ac_delim
18795 GCJVERSION!$GCJVERSION$ac_delim
18796 gxx_include_dir!$gxx_include_dir$ac_delim
18797 libstdcxx_incdir!$libstdcxx_incdir$ac_delim
18798 ALLOCA!$ALLOCA$ac_delim
18799 PERL!$PERL$ac_delim
18800 SYSDEP_SOURCES!$SYSDEP_SOURCES$ac_delim
18801 LD_START_STATIC_SPEC!$LD_START_STATIC_SPEC$ac_delim
18802 LD_FINISH_STATIC_SPEC!$LD_FINISH_STATIC_SPEC$ac_delim
18803 here!$here$ac_delim
18804 LIBOBJS!$LIBOBJS$ac_delim
18805 LTLIBOBJS!$LTLIBOBJS$ac_delim
18806 _ACEOF
18808 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 36; then
18809 break
18810 elif $ac_last_try; then
18811 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18812 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18813 { (exit 1); exit 1; }; }
18814 else
18815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18817 done
18819 ac_eof=
18820 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
18821 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
18822 ac_eof=`expr 0$ac_eof + 1`
18825 cat >>$CONFIG_STATUS <<_ACEOF
18826 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
18827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
18828 _ACEOF
18829 sed '
18830 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18831 s/^/s,@/; s/!/@,|#_!!_#|/
18834 s/'"$ac_delim"'$/,g/; t
18835 s/$/\\/; p
18836 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18837 ' >>$CONFIG_STATUS <conf$$subs.sed
18838 rm -f conf$$subs.sed
18839 cat >>$CONFIG_STATUS <<_ACEOF
18840 :end
18841 s/|#_!!_#|//g
18842 CEOF$ac_eof
18843 _ACEOF
18846 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18847 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18848 # trailing colons and then remove the whole line if VPATH becomes empty
18849 # (actually we leave an empty line to preserve line numbers).
18850 if test "x$srcdir" = x.; then
18851 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18852 s/:*\$(srcdir):*/:/
18853 s/:*\${srcdir}:*/:/
18854 s/:*@srcdir@:*/:/
18855 s/^\([^=]*=[ ]*\):*/\1/
18856 s/:*$//
18857 s/^[^=]*=[ ]*$//
18861 cat >>$CONFIG_STATUS <<\_ACEOF
18862 fi # test -n "$CONFIG_FILES"
18865 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
18867 case $ac_tag in
18868 :[FHLC]) ac_mode=$ac_tag; continue;;
18869 esac
18870 case $ac_mode$ac_tag in
18871 :[FHL]*:*);;
18872 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18873 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18874 { (exit 1); exit 1; }; };;
18875 :[FH]-) ac_tag=-:-;;
18876 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18877 esac
18878 ac_save_IFS=$IFS
18879 IFS=:
18880 set x $ac_tag
18881 IFS=$ac_save_IFS
18882 shift
18883 ac_file=$1
18884 shift
18886 case $ac_mode in
18887 :L) ac_source=$1;;
18888 :[FH])
18889 ac_file_inputs=
18890 for ac_f
18892 case $ac_f in
18893 -) ac_f="$tmp/stdin";;
18894 *) # Look for the file first in the build tree, then in the source tree
18895 # (if the path is not absolute). The absolute path cannot be DOS-style,
18896 # because $ac_f cannot contain `:'.
18897 test -f "$ac_f" ||
18898 case $ac_f in
18899 [\\/$]*) false;;
18900 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18901 esac ||
18902 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18903 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18904 { (exit 1); exit 1; }; };;
18905 esac
18906 ac_file_inputs="$ac_file_inputs $ac_f"
18907 done
18909 # Let's still pretend it is `configure' which instantiates (i.e., don't
18910 # use $as_me), people would be surprised to read:
18911 # /* config.h. Generated by config.status. */
18912 configure_input="Generated from "`IFS=:
18913 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
18914 if test x"$ac_file" != x-; then
18915 configure_input="$ac_file. $configure_input"
18916 { echo "$as_me:$LINENO: creating $ac_file" >&5
18917 echo "$as_me: creating $ac_file" >&6;}
18920 case $ac_tag in
18921 *:-:* | *:-) cat >"$tmp/stdin";;
18922 esac
18924 esac
18926 ac_dir=`$as_dirname -- "$ac_file" ||
18927 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18928 X"$ac_file" : 'X\(//\)[^/]' \| \
18929 X"$ac_file" : 'X\(//\)$' \| \
18930 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18931 echo X"$ac_file" |
18932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18933 s//\1/
18936 /^X\(\/\/\)[^/].*/{
18937 s//\1/
18940 /^X\(\/\/\)$/{
18941 s//\1/
18944 /^X\(\/\).*/{
18945 s//\1/
18948 s/.*/./; q'`
18949 { as_dir="$ac_dir"
18950 case $as_dir in #(
18951 -*) as_dir=./$as_dir;;
18952 esac
18953 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18954 as_dirs=
18955 while :; do
18956 case $as_dir in #(
18957 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18958 *) as_qdir=$as_dir;;
18959 esac
18960 as_dirs="'$as_qdir' $as_dirs"
18961 as_dir=`$as_dirname -- "$as_dir" ||
18962 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18963 X"$as_dir" : 'X\(//\)[^/]' \| \
18964 X"$as_dir" : 'X\(//\)$' \| \
18965 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18966 echo X"$as_dir" |
18967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18968 s//\1/
18971 /^X\(\/\/\)[^/].*/{
18972 s//\1/
18975 /^X\(\/\/\)$/{
18976 s//\1/
18979 /^X\(\/\).*/{
18980 s//\1/
18983 s/.*/./; q'`
18984 test -d "$as_dir" && break
18985 done
18986 test -z "$as_dirs" || eval "mkdir $as_dirs"
18987 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18988 echo "$as_me: error: cannot create directory $as_dir" >&2;}
18989 { (exit 1); exit 1; }; }; }
18990 ac_builddir=.
18992 case "$ac_dir" in
18993 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18995 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18996 # A ".." for each directory in $ac_dir_suffix.
18997 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18998 case $ac_top_builddir_sub in
18999 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19000 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19001 esac ;;
19002 esac
19003 ac_abs_top_builddir=$ac_pwd
19004 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19005 # for backward compatibility:
19006 ac_top_builddir=$ac_top_build_prefix
19008 case $srcdir in
19009 .) # We are building in place.
19010 ac_srcdir=.
19011 ac_top_srcdir=$ac_top_builddir_sub
19012 ac_abs_top_srcdir=$ac_pwd ;;
19013 [\\/]* | ?:[\\/]* ) # Absolute name.
19014 ac_srcdir=$srcdir$ac_dir_suffix;
19015 ac_top_srcdir=$srcdir
19016 ac_abs_top_srcdir=$srcdir ;;
19017 *) # Relative name.
19018 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19019 ac_top_srcdir=$ac_top_build_prefix$srcdir
19020 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19021 esac
19022 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19025 case $ac_mode in
19028 # CONFIG_FILE
19031 case $INSTALL in
19032 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19033 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19034 esac
19035 _ACEOF
19037 cat >>$CONFIG_STATUS <<\_ACEOF
19038 # If the template does not know about datarootdir, expand it.
19039 # FIXME: This hack should be removed a few years after 2.60.
19040 ac_datarootdir_hack=
19042 case `sed -n '/datarootdir/ {
19046 /@datadir@/p
19047 /@docdir@/p
19048 /@infodir@/p
19049 /@localedir@/p
19050 /@mandir@/p
19051 ' $ac_file_inputs` in
19052 *datarootdir*) ;;
19053 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19054 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19055 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19056 _ACEOF
19057 cat >>$CONFIG_STATUS <<_ACEOF
19058 ac_datarootdir_hack='
19059 s&@datadir@&$datadir&g
19060 s&@docdir@&$docdir&g
19061 s&@infodir@&$infodir&g
19062 s&@localedir@&$localedir&g
19063 s&@mandir@&$mandir&g
19064 s&\\\${datarootdir}&$datarootdir&g' ;;
19065 esac
19066 _ACEOF
19068 # Neutralize VPATH when `$srcdir' = `.'.
19069 # Shell code in configure.ac might set extrasub.
19070 # FIXME: do we really want to maintain this feature?
19071 cat >>$CONFIG_STATUS <<_ACEOF
19072 sed "$ac_vpsub
19073 $extrasub
19074 _ACEOF
19075 cat >>$CONFIG_STATUS <<\_ACEOF
19077 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19078 s&@configure_input@&$configure_input&;t t
19079 s&@top_builddir@&$ac_top_builddir_sub&;t t
19080 s&@srcdir@&$ac_srcdir&;t t
19081 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19082 s&@top_srcdir@&$ac_top_srcdir&;t t
19083 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19084 s&@builddir@&$ac_builddir&;t t
19085 s&@abs_builddir@&$ac_abs_builddir&;t t
19086 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19087 s&@INSTALL@&$ac_INSTALL&;t t
19088 $ac_datarootdir_hack
19089 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19091 rm -f "$tmp/stdin"
19092 case $ac_file in
19093 -) cat "$tmp/out"; rm -f "$tmp/out";;
19094 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19095 esac
19099 # CONFIG_HEADER
19102 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19103 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19104 # PARAMS is the parameter list in the macro definition--in most cases, it's
19105 # just an empty string.
19107 ac_dA='s,^\([ ]*#[ ]*\)[^ ]*\([ ][ ]*'
19108 ac_dB='\)[ (].*$,\1define\2'
19109 ac_dC=' '
19110 ac_dD=' ,'
19112 ac_word_regexp=[_$as_cr_Letters][_$as_cr_alnum]*
19113 _ACEOF
19115 # Transform confdefs.h into a sed script `conftest.defines', that
19116 # substitutes the proper values into config.h.in to produce config.h.
19117 rm -f conftest.defines conftest.tail
19118 # First, append a space to every undef/define line, to ease matching.
19119 echo 's/$/ /' >conftest.defines
19120 # Then, protect against being on the right side of a sed subst, or in
19121 # an unquoted here document, in config.status. If some macros were
19122 # called several times there might be several #defines for the same
19123 # symbol, which is useless. But do not sort them, since the last
19124 # AC_DEFINE must be honored.
19125 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19126 uniq confdefs.h |
19127 sed -n '
19128 t rset
19129 :rset
19130 s/^[ ]*#[ ]*define[ ][ ]*//
19131 t ok
19134 s/[\\&,]/\\&/g
19135 s/[\\$`]/\\&/g
19136 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p
19137 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p
19138 ' >>conftest.defines
19140 # Remove the space that was appended to ease matching.
19141 # Then replace #undef with comments. This is necessary, for
19142 # example, in the case of _POSIX_SOURCE, which is predefined and required
19143 # on some systems where configure will not decide to define it.
19144 # (The regexp can be short, since the line contains either #define or #undef.)
19145 echo 's/ $//
19146 s,^[ #]*u.*,/* & */,' >>conftest.defines
19148 # Break up conftest.defines:
19149 ac_max_sed_lines=96
19151 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19152 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19153 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19154 # et cetera.
19155 ac_in='$ac_file_inputs'
19156 ac_out='"$tmp/out1"'
19157 ac_nxt='"$tmp/out2"'
19159 while :
19161 # Write a here document:
19162 echo ' # First, check the format of the line:
19163 cat >"$tmp/defines.sed" <<CEOF
19164 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_regexp[ ]*$/b def
19165 /^[ ]*#[ ]*define[ ][ ]*$ac_word_regexp[( ]/b def
19167 :def' >>$CONFIG_STATUS
19168 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19169 echo 'CEOF
19170 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19171 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19172 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19173 grep . conftest.tail >/dev/null || break
19174 rm -f conftest.defines
19175 mv conftest.tail conftest.defines
19176 done
19177 rm -f conftest.defines conftest.tail
19179 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19180 cat >>$CONFIG_STATUS <<\_ACEOF
19181 if test x"$ac_file" != x-; then
19182 echo "/* $configure_input */" >"$tmp/config.h"
19183 cat "$ac_result" >>"$tmp/config.h"
19184 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19185 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19186 echo "$as_me: $ac_file is unchanged" >&6;}
19187 else
19188 rm -f $ac_file
19189 mv "$tmp/config.h" $ac_file
19191 else
19192 echo "/* $configure_input */"
19193 cat "$ac_result"
19195 rm -f "$tmp/out12"
19196 # Compute $ac_file's index in $config_headers.
19197 _am_stamp_count=1
19198 for _am_header in $config_headers :; do
19199 case $_am_header in
19200 $ac_file | $ac_file:* )
19201 break ;;
19203 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19204 esac
19205 done
19206 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
19207 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19208 X$ac_file : 'X\(//\)[^/]' \| \
19209 X$ac_file : 'X\(//\)$' \| \
19210 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
19211 echo X$ac_file |
19212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19213 s//\1/
19216 /^X\(\/\/\)[^/].*/{
19217 s//\1/
19220 /^X\(\/\/\)$/{
19221 s//\1/
19224 /^X\(\/\).*/{
19225 s//\1/
19228 s/.*/./; q'`/stamp-h$_am_stamp_count
19232 # CONFIG_LINK
19235 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
19236 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
19238 if test ! -r $srcdir/$ac_source; then
19239 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
19240 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
19241 { (exit 1); exit 1; }; }
19243 rm -f $ac_file
19245 # Try a relative symlink, then a hard link, then a copy.
19246 case $srcdir in
19247 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
19248 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
19249 esac
19250 ln -s $ac_rel_source $ac_file 2>/dev/null ||
19251 ln $srcdir/$ac_source $ac_file 2>/dev/null ||
19252 cp -p $srcdir/$ac_source $ac_file ||
19253 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
19254 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
19255 { (exit 1); exit 1; }; }
19257 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19258 echo "$as_me: executing $ac_file commands" >&6;}
19260 esac
19263 case $ac_file$ac_mode in
19264 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19265 # Strip MF so we end up with the name of the file.
19266 mf=`echo "$mf" | sed -e 's/:.*$//'`
19267 # Check whether this is an Automake generated Makefile or not.
19268 # We used to match only the files named `Makefile.in', but
19269 # some people rename them; so instead we look at the file content.
19270 # Grep'ing the first line is not enough: some people post-process
19271 # each Makefile.in and add a new line on top of each file to say so.
19272 # So let's grep whole file.
19273 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
19274 dirpart=`$as_dirname -- "$mf" ||
19275 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19276 X"$mf" : 'X\(//\)[^/]' \| \
19277 X"$mf" : 'X\(//\)$' \| \
19278 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19279 echo X"$mf" |
19280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19281 s//\1/
19284 /^X\(\/\/\)[^/].*/{
19285 s//\1/
19288 /^X\(\/\/\)$/{
19289 s//\1/
19292 /^X\(\/\).*/{
19293 s//\1/
19296 s/.*/./; q'`
19297 else
19298 continue
19300 # Extract the definition of DEPDIR, am__include, and am__quote
19301 # from the Makefile without running `make'.
19302 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19303 test -z "$DEPDIR" && continue
19304 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19305 test -z "am__include" && continue
19306 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19307 # When using ansi2knr, U may be empty or an underscore; expand it
19308 U=`sed -n 's/^U = //p' < "$mf"`
19309 # Find all dependency output files, they are included files with
19310 # $(DEPDIR) in their names. We invoke sed twice because it is the
19311 # simplest approach to changing $(DEPDIR) to its actual value in the
19312 # expansion.
19313 for file in `sed -n "
19314 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19315 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19316 # Make sure the directory exists.
19317 test -f "$dirpart/$file" && continue
19318 fdir=`$as_dirname -- "$file" ||
19319 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19320 X"$file" : 'X\(//\)[^/]' \| \
19321 X"$file" : 'X\(//\)$' \| \
19322 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19323 echo X"$file" |
19324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19325 s//\1/
19328 /^X\(\/\/\)[^/].*/{
19329 s//\1/
19332 /^X\(\/\/\)$/{
19333 s//\1/
19336 /^X\(\/\).*/{
19337 s//\1/
19340 s/.*/./; q'`
19341 { as_dir=$dirpart/$fdir
19342 case $as_dir in #(
19343 -*) as_dir=./$as_dir;;
19344 esac
19345 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19346 as_dirs=
19347 while :; do
19348 case $as_dir in #(
19349 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19350 *) as_qdir=$as_dir;;
19351 esac
19352 as_dirs="'$as_qdir' $as_dirs"
19353 as_dir=`$as_dirname -- "$as_dir" ||
19354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19355 X"$as_dir" : 'X\(//\)[^/]' \| \
19356 X"$as_dir" : 'X\(//\)$' \| \
19357 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19358 echo X"$as_dir" |
19359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19360 s//\1/
19363 /^X\(\/\/\)[^/].*/{
19364 s//\1/
19367 /^X\(\/\/\)$/{
19368 s//\1/
19371 /^X\(\/\).*/{
19372 s//\1/
19375 s/.*/./; q'`
19376 test -d "$as_dir" && break
19377 done
19378 test -z "$as_dirs" || eval "mkdir $as_dirs"
19379 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19380 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19381 { (exit 1); exit 1; }; }; }
19382 # echo "creating $dirpart/$file"
19383 echo '# dummy' > "$dirpart/$file"
19384 done
19385 done
19387 "scripts/jar":F) chmod +x scripts/jar ;;
19388 "default":C) # Only add multilib support code if we just rebuilt top-level Makefile.
19389 case " $CONFIG_FILES " in
19390 *" Makefile "*)
19391 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
19392 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
19394 esac
19395 for ac_multi_file in $CONFIG_FILES; do
19396 case $ac_multi_file in
19397 */Makefile)
19398 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
19399 esac
19400 done
19403 esac
19404 done # for ac_tag
19407 { (exit 0); exit 0; }
19408 _ACEOF
19409 chmod +x $CONFIG_STATUS
19410 ac_clean_files=$ac_clean_files_save
19413 # configure is writing to config.log, and then calls config.status.
19414 # config.status does its own redirection, appending to config.log.
19415 # Unfortunately, on DOS this fails, as config.log is still kept open
19416 # by configure, so config.status won't be able to write to it; its
19417 # output is simply discarded. So we exec the FD to /dev/null,
19418 # effectively closing config.log, so it can be properly (re)opened and
19419 # appended to by config.status. When coming back to configure, we
19420 # need to make the FD available again.
19421 if test "$no_create" != yes; then
19422 ac_cs_success=:
19423 ac_config_status_args=
19424 test "$silent" = yes &&
19425 ac_config_status_args="$ac_config_status_args --quiet"
19426 exec 5>/dev/null
19427 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19428 exec 5>>config.log
19429 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19430 # would make configure fail if this is the last instruction.
19431 $ac_cs_success || { (exit 1); exit 1; }
19435 # CONFIG_SUBDIRS section.
19437 if test "$no_recursion" != yes; then
19439 # Remove --cache-file and --srcdir arguments so they do not pile up.
19440 ac_sub_configure_args=
19441 ac_prev=
19442 eval set x "$ac_configure_args"
19443 shift
19444 for ac_arg
19446 if test -n "$ac_prev"; then
19447 ac_prev=
19448 continue
19450 case $ac_arg in
19451 -cache-file | --cache-file | --cache-fil | --cache-fi \
19452 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19453 ac_prev=cache_file ;;
19454 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19455 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19456 | --c=*)
19458 --config-cache | -C)
19460 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19461 ac_prev=srcdir ;;
19462 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19465 ac_prev=prefix ;;
19466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19469 case $ac_arg in
19470 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19471 esac
19472 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19473 esac
19474 done
19476 # Always prepend --prefix to ensure using the same prefix
19477 # in subdir configurations.
19478 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
19480 ac_popdir="`pwd`"
19481 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19483 # Do not complain, so a configure script can configure whichever
19484 # parts of a large source tree are present.
19485 test -d $srcdir/$ac_dir || continue
19487 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19488 echo "$as_me:$LINENO: $ac_msg" >&5
19489 echo "$ac_msg" >&6
19490 { as_dir="$ac_dir"
19491 case $as_dir in #(
19492 -*) as_dir=./$as_dir;;
19493 esac
19494 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19495 as_dirs=
19496 while :; do
19497 case $as_dir in #(
19498 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19499 *) as_qdir=$as_dir;;
19500 esac
19501 as_dirs="'$as_qdir' $as_dirs"
19502 as_dir=`$as_dirname -- "$as_dir" ||
19503 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19504 X"$as_dir" : 'X\(//\)[^/]' \| \
19505 X"$as_dir" : 'X\(//\)$' \| \
19506 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19507 echo X"$as_dir" |
19508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19509 s//\1/
19512 /^X\(\/\/\)[^/].*/{
19513 s//\1/
19516 /^X\(\/\/\)$/{
19517 s//\1/
19520 /^X\(\/\).*/{
19521 s//\1/
19524 s/.*/./; q'`
19525 test -d "$as_dir" && break
19526 done
19527 test -z "$as_dirs" || eval "mkdir $as_dirs"
19528 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19529 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19530 { (exit 1); exit 1; }; }; }
19531 ac_builddir=.
19533 case "$ac_dir" in
19534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19536 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19537 # A ".." for each directory in $ac_dir_suffix.
19538 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19539 case $ac_top_builddir_sub in
19540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19542 esac ;;
19543 esac
19544 ac_abs_top_builddir=$ac_pwd
19545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19546 # for backward compatibility:
19547 ac_top_builddir=$ac_top_build_prefix
19549 case $srcdir in
19550 .) # We are building in place.
19551 ac_srcdir=.
19552 ac_top_srcdir=$ac_top_builddir_sub
19553 ac_abs_top_srcdir=$ac_pwd ;;
19554 [\\/]* | ?:[\\/]* ) # Absolute name.
19555 ac_srcdir=$srcdir$ac_dir_suffix;
19556 ac_top_srcdir=$srcdir
19557 ac_abs_top_srcdir=$srcdir ;;
19558 *) # Relative name.
19559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19560 ac_top_srcdir=$ac_top_build_prefix$srcdir
19561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19562 esac
19563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19566 cd "$ac_dir"
19568 # Check for guested configure; otherwise get Cygnus style configure.
19569 if test -f $ac_srcdir/configure.gnu; then
19570 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
19571 elif test -f $ac_srcdir/configure; then
19572 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
19573 elif test -f $ac_srcdir/configure.in; then
19574 ac_sub_configure=$ac_configure
19575 else
19576 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19577 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19578 ac_sub_configure=
19581 # The recursion is here.
19582 if test -n "$ac_sub_configure"; then
19583 # Make the cache file name correct relative to the subdirectory.
19584 case $cache_file in
19585 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19586 *) # Relative name.
19587 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19588 esac
19590 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19591 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19592 # The eval makes quoting arguments work.
19593 eval "$ac_sub_configure $ac_sub_configure_args \
19594 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" ||
19595 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19596 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19597 { (exit 1); exit 1; }; }
19600 cd "$ac_popdir"
19601 done