--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-version-specific-runtime-libs
- specify that runtime libraries should be installed in a compiler-specific
- directory
+ specify that runtime libraries should be installed
+ in a compiler-specific directory
--enable-multilib build many library versions (default)
--enable-maintainer-mode enable make rules and dependencies not useful
(and sometimes confusing) to the casual installer
--enable-hash-synchronization
use global hash table for monitor locks
--enable-libgcj-multifile
- allow compilation of several files at once
+ allow compilation of several files at once
+
--enable-libgcj-debug enable runtime debugging code
--enable-interpreter enable interpreter
- --enable-sjlj-exceptions force use of builtin_setjmp for exceptions
+ --enable-sjlj-exceptions
+ force use of builtin_setjmp for exceptions
--disable-java-net disable java.net
--disable-jvmpi disable JVMPI support
--enable-java-awt list of AWT peer implementations to be built
- --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
- --enable-java-gc=TYPE choose garbage collector boehm
+ --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
+ --enable-java-gc=TYPE choose garbage collector (default is boehm)
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-target-subdir=SUBDIR
- configuring in a subdirectory
- --with-cross-host=HOST configuring with a cross compiler
- --with-newlib Configuring with newlib
+ configure in a subdirectory
+ --with-cross-host=HOST configure with a cross compiler from HOST
+ --with-newlib configure with newlib
--with-gnu-ld assume the C compiler uses GNU ld default=no
--with-pic try to use only PIC/non-PIC objects default=use both
- --with-win32-nlsapi=ansi, unicows or unicode
- native MinGW libgcj Win32 OS API ansi
+ --with-win32-nlsapi=ansi or unicows or unicode
+ native MinGW libgcj Win32 OS API (default is ansi)
--without-libffi don't use libffi
--with-ecos enable runtime eCos target support
--with-system-zlib use installed libz
+# We use these options to decide which functions to include.
# Check whether --with-target-subdir or --without-target-subdir was given.
if test "${with_target_subdir+set}" = set; then
fi;
+# We may get other options which we don't document:
+# --with-target-subdir, --with-multisrctop, --with-multisubdir
# When building with srcdir == objdir, links to the source files will
# be created in directories within the target_subdir. We have to
fi;
+# Default to --enable-multilib
# Check whether --enable-multilib or --disable-multilib was given.
if test "${enable_multilib+set}" = set; then
enableval="$enable_multilib"
else
multilib=yes
fi;
+# It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
# (1) We use an abnormal CXX (without library references), so we
+# version is pulled out to make it a bit easier to change using sed.
version=0.0.7
+# Still use "libjava" here to placate dejagnu.
# Find a good install program. We prefer a C program (faster),
# so one script is as good as another. But avoid the broken or
# incompatible versions:
case $host in
*-*-irix6*)
# Find out which ABI we are using.
- echo '#line 4318 "configure"' > conftest.$ac_ext
+ echo '#line 4327 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
fi
+# The -no-testsuite modules omit the test subdir.
if test -d $srcdir/testsuite; then
TESTSUBDIR_FALSE=
fi
+# Should the runtime set system properties by examining the
+# environment variable GCJ_PROPERTIES?
# Check whether --enable-getenv-properties or --disable-getenv-properties was given.
if test "${enable_getenv_properties+set}" = set; then
enableval="$enable_getenv_properties"
fi;
+# Whether GCJ_PROPERTIES is used depends on the target.
if test -z "$enable_getenv_properties"; then
enable_getenv_properties=${enable_getenv_properties_default-yes}
fi
fi
+# Whether we should use arguments to main()
if test -z "$enable_main_args"; then
enable_main_args=${enable_main_args_default-yes}
fi
fi
+# Should we use hashtable-based synchronization?
+# Currently works only for Linux X86/ia64
+# Typically faster and more space-efficient
# Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
if test "${enable_hash_synchronization+set}" = set; then
enableval="$enable_hash_synchronization"
# Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
if test "${with_win32_nlsapi+set}" = set; then
withval="$with_win32_nlsapi"
-
-case "${withval}" in
+ case "${withval}" in
ansi) with_win32_nlsapi=ansi ;;
unicows) with_win32_nlsapi=unicows ;;
unicode) with_win32_nlsapi=unicode ;;
;;
esac
+# configure.host sets slow_pthread_self if the synchronization code should
+# try to avoid pthread_self calls by caching thread IDs in a hashtable.
if test "${slow_pthread_self}" = "yes"; then
cat >>confdefs.h <<\_ACEOF
fi
+# See if the user has requested runtime debugging.
LIBGCJDEBUG="false"
# Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
fi
fi;
+# See if the user has the interpreter included.
# Check whether --enable-interpreter or --disable-interpreter was given.
if test "${enable_interpreter+set}" = set; then
enableval="$enable_interpreter"
:
else
cat > conftest.$ac_ext << EOF
-#line 5036 "configure"
+#line 5056 "configure"
struct S { ~S(); };
void bar();
void foo()
EXCEPTIONSPEC=
fi
+# See if the user wants to disable java.net. This is the mildly
+# ugly way that we admit that target-side configuration sucks.
# Check whether --enable-java-net or --disable-java-net was given.
if test "${enable_java_net+set}" = set; then
enableval="$enable_java_net"
fi;
+# Whether java.net is built by default can depend on the target.
if test -z "$enable_java_net"; then
enable_java_net=${enable_java_net_default-yes}
fi
fi
+# See if the user wants to configure without libffi. Some
+# architectures don't support it, and default values are set in
+# configure.host.
# Check whether --with-libffi or --without-libffi was given.
if test "${with_libffi+set}" = set; then
withval="$with_libffi"
-
+ :
else
with_libffi=${with_libffi_default-yes}
fi;
+# See if the user wants to disable JVMPI support.
# Check whether --enable-jvmpi or --disable-jvmpi was given.
if test "${enable_jvmpi+set}" = set; then
enableval="$enable_jvmpi"
fi
+# If the target is an eCos system, use the appropriate eCos
+# I/O routines.
+# FIXME: this should not be a local option but a global target
+# system; at present there is no eCos target.
TARGET_ECOS=${PROCESS-"no"}
# Check whether --with-ecos or --without-ecos was given.
+# These may not be defined in a non-ANS conformant embedded system.
+# FIXME: Should these case a runtime exception in that case?
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
rm -f conftest*
+# Create the subdirectory for natFile.cc, or the attempt
+# to create the link will fail.
test -d java || mkdir java
test -d java/io || mkdir java/io
test -d gnu || mkdir gnu
ac_config_links="$ac_config_links $ac_config_links_2"
+# Likewise for ConcreteProcess.java and natConcreteProcess.cc.
test -d java/lang || mkdir java/lang
ac_sources="java/lang/${PLATFORM}Process.java"
ac_dests="java/lang/ConcreteProcess.java"
ac_config_links="$ac_config_links $ac_config_links_4"
+# Likewise for natInetAddress.cc and natNetworkInterface.cc.
test -d java/net || mkdir java/net
ac_sources="java/net/natInetAddress${PLATFORMNET}.cc"
ac_dests="java/net/natInetAddress.cc"
ac_config_links="$ac_config_links $ac_config_links_6"
+# Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
test -d gnu/java || mkdir gnu/java
test -d gnu/java/net || mkdir gnu/java/net
ac_sources="gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
ac_config_links="$ac_config_links $ac_config_links_8"
+# Likewise for natPipeImpl.cc and natSelectorImpl.cc.
test -d gnu/java/nio || mkdir gnu/java/nio
ac_sources="gnu/java/nio/natPipeImpl${PLATFORM}.cc"
ac_dests="gnu/java/nio/natPipeImpl.cc"
fi
+# Determine which AWT peer libraries to build
# Check whether --enable-java-awt or --disable-java-awt was given.
if test "${enable_java_awt+set}" = set; then
enableval="$enable_java_awt"
GTK_AWT_FALSE=
fi
+# determine whether to enable the cairo GTK Graphics2D backend
# Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
if test "${enable_gtk_cairo+set}" = set; then
enableval="$enable_gtk_cairo"
+# FIXME: this should be _libs on some hosts.
libsubdir=.libs
+# Allow the GC to be disabled. Can be useful when debugging.
echo "$as_me:$LINENO: checking for garbage collector to use" >&5
echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
# Check whether --enable-java-gc or --disable-java-gc was given.
if test "${enable_java_gc+set}" = set; then
enableval="$enable_java_gc"
-
GC=$enableval
else
GC=boehm
JC1GCSPEC='-fuse-boehm-gc'
GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
- GCINCS="`cat ../boehm-gc/boehm-cflags`"
+ # We also want to pick up some cpp flags required when including
+ # boehm-config.h. Yuck.
+ GCINCS="`cat ../boehm-gc/boehm-cflags`"
GCOBJS=boehm.lo
GCHDR=boehm-gc.h
+ # The POSIX thread support needs to know this.
cat >>confdefs.h <<\_ACEOF
#define HAVE_BOEHM_GC 1
*-*-cygwin*)
# Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
;;
-
*-*-freebsd[1234]*)
-
# Before FreeBSD 5, it didn't have -lpthread (or any library which
# merely adds pthread_* functions) but it does have a -pthread switch
# which is required at link-time to select -lc_r *instead* of -lc.
#define HAVE_USLEEP_DECL 1
_ACEOF
+ # This is only for POSIX threads.
cat >>confdefs.h <<\_ACEOF
#define HAVE_PTHREAD_MUTEXATTR_INIT 1
_ACEOF
- cat >>confdefs.h <<\_ACEOF
+ # We also assume we are using gcc, which provides alloca.
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_ALLOCA 1
_ACEOF
+ # Assume we do not have getuid and friends.
cat >>confdefs.h <<\_ACEOF
#define NO_GETUID 1
if test -z "${with_multisubdir}"; then
builddotdot=.
else
-
builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
-
fi
NATIVE=yes
# Determine gcj version number.
-
gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
-
GCJVERSION=$gcjversion
_ACEOF
+# We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
+# On that system, sys/ioctl.h will not include sys/filio.h unless
+# BSD_COMP is defined; just including sys/filio.h is simpler.
done
+# We avoid AC_HEADER_DIRENT since we really only care about dirent.h
+# for now. If you change this, you also must update natFile.cc.
for ac_header in dirent.h
do
while read f; do
echo "include $f" >> deps.mk
test -f $f || {
-
d=`echo $f | sed -e 's,/[^/]*$,,'`
-
if test ! -d $d; then
$libgcj_basedir/../mkinstalldirs $d
fi;
-dnl Process this with autoconf to create configure
+dnl # Process this with autoconf to create configure
AC_PREREQ(2.59)
AC_INIT(java/lang/System.java)
-dnl We use these options to decide which functions to include.
+# We use these options to decide which functions to include.
AC_ARG_WITH(target-subdir,
-[ --with-target-subdir=SUBDIR
- configuring in a subdirectory])
+ AS_HELP_STRING([--with-target-subdir=SUBDIR],
+ [configure in a subdirectory]))
-dnl We may get other options which we don't document:
-dnl --with-target-subdir, --with-multisrctop, --with-multisubdir
+# We may get other options which we don't document:
+# --with-target-subdir, --with-multisrctop, --with-multisubdir
# When building with srcdir == objdir, links to the source files will
# be created in directories within the target_subdir. We have to
AC_SUBST(mkinstalldirs)
AC_ARG_WITH(cross-host,
-[ --with-cross-host=HOST configuring with a cross compiler])
+ AS_HELP_STRING([--with-cross-host=HOST],
+ [configure with a cross compiler from HOST]))
AC_ARG_WITH(newlib,
-[ --with-newlib Configuring with newlib])
+ AS_HELP_STRING([--with-newlib],
+ [configure with newlib]))
AC_ARG_ENABLE(version-specific-runtime-libs,
-[ --enable-version-specific-runtime-libs
- specify that runtime libraries should be installed in a compiler-specific
- directory ],
+ AS_HELP_STRING([--enable-version-specific-runtime-libs],
+ [specify that runtime libraries should be installed in a compiler-specific directory]),
[case "$enableval" in
yes) version_specific_libs=yes ;;
no) version_specific_libs=no ;;
[version_specific_libs=no]
)
-dnl Default to --enable-multilib
+# Default to --enable-multilib
AC_ARG_ENABLE(multilib,
-[ --enable-multilib build many library versions (default)],
+ AS_HELP_STRING([--enable-multilib],
+ [build many library versions (default)]),
[case "${enableval}" in
yes) multilib=yes ;;
no) multilib=no ;;
*) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
esac], [multilib=yes])dnl
-dnl # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
+# It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
GCC_NO_EXECUTABLES
# (1) We use an abnormal CXX (without library references), so we
AC_SUBST(CXXFLAGS)
AC_SUBST(LDFLAGS)
-dnl version is pulled out to make it a bit easier to change using sed.
+# version is pulled out to make it a bit easier to change using sed.
version=0.0.7
-dnl Still use "libjava" here to placate dejagnu.
+# Still use "libjava" here to placate dejagnu.
AM_INIT_AUTOMAKE(libjava, $version)
AC_CHECK_TOOL(AS, as)
libgcj_cxxflags=
libgcj_javaflags=
-. [$]{srcdir}/configure.host
+. ${srcdir}/configure.host
-LIBGCJ_CFLAGS="[$]{libgcj_cflags}"
-LIBGCJ_CXXFLAGS="[$]{libgcj_cxxflags}"
-LIBGCJ_JAVAFLAGS="[$]{libgcj_javaflags}"
+LIBGCJ_CFLAGS="${libgcj_cflags}"
+LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
+LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
AC_SUBST(LIBGCJ_CFLAGS)
AC_SUBST(LIBGCJ_CXXFLAGS)
AC_SUBST(LIBGCJ_JAVAFLAGS)
fi
AC_SUBST(COMPPATH)
-dnl The -no-testsuite modules omit the test subdir.
+# The -no-testsuite modules omit the test subdir.
AM_CONDITIONAL(TESTSUBDIR, test -d $srcdir/testsuite)
-dnl Should the runtime set system properties by examining the
-dnl environment variable GCJ_PROPERTIES?
+# Should the runtime set system properties by examining the
+# environment variable GCJ_PROPERTIES?
AC_ARG_ENABLE(getenv-properties,
-[ --disable-getenv-properties
- don't set system properties from GCJ_PROPERTIES])
+ AS_HELP_STRING([--disable-getenv-properties],
+ [don't set system properties from GCJ_PROPERTIES]))
-dnl Whether GCJ_PROPERTIES is used depends on the target.
+# Whether GCJ_PROPERTIES is used depends on the target.
if test -z "$enable_getenv_properties"; then
enable_getenv_properties=${enable_getenv_properties_default-yes}
fi
[Define if system properties shouldn't be read from getenv("GCJ_PROPERTIES").])
fi
-dnl Whether we should use arguments to main()
+# Whether we should use arguments to main()
if test -z "$enable_main_args"; then
enable_main_args=${enable_main_args_default-yes}
fi
fi
-dnl Should we use hashtable-based synchronization?
-dnl Currently works only for Linux X86/ia64
-dnl Typically faster and more space-efficient
+# Should we use hashtable-based synchronization?
+# Currently works only for Linux X86/ia64
+# Typically faster and more space-efficient
AC_ARG_ENABLE(hash-synchronization,
-[ --enable-hash-synchronization
- use global hash table for monitor locks])
+ AS_HELP_STRING([--enable-hash-synchronization],
+ [use global hash table for monitor locks]))
if test -z "$enable_hash_synchronization"; then
enable_hash_synchronization=$enable_hash_synchronization_default
# Do we allow intermodule optimizations (i.e. compiling many files at once)?
AC_ARG_ENABLE(libgcj-multifile,
-[ --enable-libgcj-multifile
- allow compilation of several files at once],
+ AS_HELP_STRING([--enable-libgcj-multifile]
+ [allow compilation of several files at once]),
[case "${enableval}" in
yes) enable_libgcj_multifile=yes ;;
no) enable_libgcj_multifile=no ;;
# What is the native OS API for MinGW?
AC_ARG_WITH(win32-nlsapi,
-changequote(<<,>>)dnl
-<< --with-win32-nlsapi=ansi, unicows or unicode
- native MinGW libgcj Win32 OS API [ansi]>>,
-changequote([,])
+ AS_HELP_STRING([--with-win32-nlsapi=ansi or unicows or unicode],
+ [native MinGW libgcj Win32 OS API (default is ansi)]),
[case "${withval}" in
ansi) with_win32_nlsapi=ansi ;;
unicows) with_win32_nlsapi=unicows ;;
;;
esac
-dnl configure.host sets slow_pthread_self if the synchronization code should
-dnl try to avoid pthread_self calls by caching thread IDs in a hashtable.
+# configure.host sets slow_pthread_self if the synchronization code should
+# try to avoid pthread_self calls by caching thread IDs in a hashtable.
if test "${slow_pthread_self}" = "yes"; then
AC_DEFINE(SLOW_PTHREAD_SELF, 1,
[Define if if the synchronization code should try to avoid pthread_self calls by caching thread IDs in a hashtable.])
fi
-dnl See if the user has requested runtime debugging.
+# See if the user has requested runtime debugging.
LIBGCJDEBUG="false"
AC_SUBST(LIBGCJDEBUG)
AC_ARG_ENABLE(libgcj-debug,
-[ --enable-libgcj-debug enable runtime debugging code],
- if test "$enable_libgcj_debug" = yes; then
+ AS_HELP_STRING([--enable-libgcj-debug],
+ [enable runtime debugging code]),
+ [if test "$enable_libgcj_debug" = yes; then
AC_DEFINE(DEBUG, 1, [Define this if you want runtime debugging enabled.])
LIBGCJDEBUG="true"
- fi)
+ fi])
-dnl See if the user has the interpreter included.
+# See if the user has the interpreter included.
AC_ARG_ENABLE(interpreter,
-[ --enable-interpreter enable interpreter],
- if test "$enable_interpreter" = yes; then
+ AS_HELP_STRING([--enable-interpreter],
+ [enable interpreter]),
+ [if test "$enable_interpreter" = yes; then
# This can also be set in configure.host.
libgcj_interpreter=yes
elif test "$enable_interpreter" = no; then
libgcj_interpreter=no
- fi)
+ fi])
if test "$libgcj_interpreter" = yes; then
AC_DEFINE(INTERPRETER, 1, [Define if you want a bytecode interpreter.])
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_ARG_ENABLE(sjlj-exceptions,
-[ --enable-sjlj-exceptions force use of builtin_setjmp for exceptions],
+ AS_HELP_STRING([--enable-sjlj-exceptions],
+ [force use of builtin_setjmp for exceptions]),
[:],
[dnl Botheration. Now we've got to detect the exception model.
dnl Link tests against libgcc.a are problematic since -- at least
EXCEPTIONSPEC=
fi
-dnl See if the user wants to disable java.net. This is the mildly
-dnl ugly way that we admit that target-side configuration sucks.
+# See if the user wants to disable java.net. This is the mildly
+# ugly way that we admit that target-side configuration sucks.
AC_ARG_ENABLE(java-net,
-[ --disable-java-net disable java.net])
+ AS_HELP_STRING([--disable-java-net],
+ [disable java.net]))
-dnl Whether java.net is built by default can depend on the target.
+# Whether java.net is built by default can depend on the target.
if test -z "$enable_java_net"; then
enable_java_net=${enable_java_net_default-yes}
fi
AC_DEFINE(DISABLE_JAVA_NET, 1, [Define if java.net native functions should be stubbed out.])
fi
-dnl See if the user wants to configure without libffi. Some
-dnl architectures don't support it, and default values are set in
-dnl configure.host.
+# See if the user wants to configure without libffi. Some
+# architectures don't support it, and default values are set in
+# configure.host.
AC_ARG_WITH(libffi,
-[ --without-libffi don't use libffi],,with_libffi=${with_libffi_default-yes})
+ AS_HELP_STRING([--without-libffi],
+ [don't use libffi]),
+ [:],
+ [with_libffi=${with_libffi_default-yes}])
LIBFFI=
LIBFFIINCS=
AC_SUBST(LIBFFI)
AC_SUBST(LIBFFIINCS)
-dnl See if the user wants to disable JVMPI support.
+# See if the user wants to disable JVMPI support.
AC_ARG_ENABLE(jvmpi,
-[ --disable-jvmpi disable JVMPI support])
+ AS_HELP_STRING([--disable-jvmpi],
+ [disable JVMPI support]))
if test "$enable_jvmpi" != no; then
AC_DEFINE(ENABLE_JVMPI, 1, [Define if you are using JVMPI.])
fi
-dnl If the target is an eCos system, use the appropriate eCos
-dnl I/O routines.
-dnl FIXME: this should not be a local option but a global target
-dnl system; at present there is no eCos target.
+# If the target is an eCos system, use the appropriate eCos
+# I/O routines.
+# FIXME: this should not be a local option but a global target
+# system; at present there is no eCos target.
TARGET_ECOS=${PROCESS-"no"}
AC_ARG_WITH(ecos,
[ --with-ecos enable runtime eCos target support],
[Define if you have u_int32_t]))
-dnl These may not be defined in a non-ANS conformant embedded system.
-dnl FIXME: Should these case a runtime exception in that case?
+# These may not be defined in a non-ANS conformant embedded system.
+# FIXME: Should these case a runtime exception in that case?
AC_EGREP_HEADER(mktime, time.h, AC_DEFINE(HAVE_MKTIME, 1,
[Define is you have 'mktime' in <time.h>]))
AC_EGREP_HEADER(localtime, time.h, AC_DEFINE(HAVE_LOCALTIME, 1,
[Define is you have 'localtime' in <time.h>]))
-dnl Create the subdirectory for natFile.cc, or the attempt
-dnl to create the link will fail.
+# Create the subdirectory for natFile.cc, or the attempt
+# to create the link will fail.
test -d java || mkdir java
test -d java/io || mkdir java/io
test -d gnu || mkdir gnu
AC_LINK_FILES(java/io/natFile${FILE-${PLATFORM}}.cc, java/io/natFile.cc)
-dnl Likewise for ConcreteProcess.java and natConcreteProcess.cc.
+# Likewise for ConcreteProcess.java and natConcreteProcess.cc.
test -d java/lang || mkdir java/lang
AC_LINK_FILES(java/lang/${PLATFORM}Process.java, java/lang/ConcreteProcess.java)
AC_LINK_FILES(java/lang/nat${PLATFORM}Process.cc, java/lang/natConcreteProcess.cc)
-dnl Likewise for natInetAddress.cc and natNetworkInterface.cc.
+# Likewise for natInetAddress.cc and natNetworkInterface.cc.
test -d java/net || mkdir java/net
AC_LINK_FILES(java/net/natInetAddress${PLATFORMNET}.cc, java/net/natInetAddress.cc)
AC_LINK_FILES(java/net/natNetworkInterface${PLATFORMNET}.cc, java/net/natNetworkInterface.cc)
-dnl Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
+# Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
test -d gnu/java || mkdir gnu/java
test -d gnu/java/net || mkdir gnu/java/net
AC_LINK_FILES(gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc, gnu/java/net/natPlainSocketImpl.cc)
AC_LINK_FILES(gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc, gnu/java/net/natPlainDatagramSocketImpl.cc)
-dnl Likewise for natPipeImpl.cc and natSelectorImpl.cc.
+# Likewise for natPipeImpl.cc and natSelectorImpl.cc.
test -d gnu/java/nio || mkdir gnu/java/nio
AC_LINK_FILES(gnu/java/nio/natPipeImpl${PLATFORM}.cc, gnu/java/nio/natPipeImpl.cc)
AC_LINK_FILES(gnu/java/nio/natSelectorImpl${PLATFORM}.cc, gnu/java/nio/natSelectorImpl.cc)
AC_SUBST(LIBGCJTESTSPEC)
AC_ARG_WITH(system-zlib,
-[ --with-system-zlib use installed libz])
+ AS_HELP_STRING([--with-system-zlib],
+ [use installed libz]))
ZLIBSPEC=
AC_SUBST(ZLIBSPEC)
ZLIBTESTSPEC=
AC_PATH_XTRA
-dnl Determine which AWT peer libraries to build
+# Determine which AWT peer libraries to build
AC_ARG_ENABLE(java-awt,
-[ --enable-java-awt list of AWT peer implementations to be built])
+ AS_HELP_STRING([--enable-java-awt],
+ [list of AWT peer implementations to be built]))
peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
use_xlib_awt=""
AM_CONDITIONAL(XLIB_AWT, test "$use_xlib_awt" = yes)
AM_CONDITIONAL(GTK_AWT, test "$use_gtk_awt" = yes)
-dnl determine whether to enable the cairo GTK Graphics2D backend
-AC_ARG_ENABLE(gtk-cairo, [ --enable-gtk-cairo build the cairo Graphics2D implementation on GTK])
+# determine whether to enable the cairo GTK Graphics2D backend
+AC_ARG_ENABLE(gtk-cairo,
+ AS_HELP_STRING([--enable-gtk-cairo],
+ [build the cairo Graphics2D implementation on GTK]))
AM_CONDITIONAL(GTK_CAIRO, test "x${enable_gtk_cairo}" = xyes)
if test "x${enable_gtk_cairo}" = xyes
then
AC_SUBST(PANGOFT2_LIBS)
AC_SUBST(PANGOFT2_CFLAGS)
-dnl FIXME: this should be _libs on some hosts.
+# FIXME: this should be _libs on some hosts.
libsubdir=.libs
-dnl Allow the GC to be disabled. Can be useful when debugging.
+# Allow the GC to be disabled. Can be useful when debugging.
AC_MSG_CHECKING([for garbage collector to use])
AC_ARG_ENABLE(java-gc,
-changequote(<<,>>)dnl
-<< --enable-java-gc=TYPE choose garbage collector [boehm]>>,
-changequote([,])
- GC=$enableval,
- GC=boehm)
+ AS_HELP_STRING([--enable-java-gc=TYPE],
+ [choose garbage collector (default is boehm)]),
+ [GC=$enableval],
+ [GC=boehm])
GCLIBS=
GCINCS=
GCDEPS=
JC1GCSPEC='-fuse-boehm-gc'
GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
- dnl We also want to pick up some cpp flags required when including
- dnl boehm-config.h. Yuck.
+ # We also want to pick up some cpp flags required when including
+ # boehm-config.h. Yuck.
GCINCS="`cat ../boehm-gc/boehm-cflags`"
GCOBJS=boehm.lo
GCHDR=boehm-gc.h
- dnl The POSIX thread support needs to know this.
+ # The POSIX thread support needs to know this.
AC_DEFINE(HAVE_BOEHM_GC, 1, [Define if Boehm GC in use.])
;;
no)
*-*-cygwin*)
# Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
;;
-changequote(<<,>>)
- *-*-freebsd[1234]*)
-changequote([,])
+ *-*-freebsd[[1234]]*)
# Before FreeBSD 5, it didn't have -lpthread (or any library which
# merely adds pthread_* functions) but it does have a -pthread switch
# which is required at link-time to select -lc_r *instead* of -lc.
GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
# Figure out where generated headers like libgcj-config.h get installed.
-changequote(,)dnl
gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
-gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
-gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
+gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([[^\"]]*\)\".*/\1/'`
+gcc_version=`echo ${gcc_version_full} | sed -e 's/\([[^ ]]*\) .*/\1/'`
tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
-changequote([,])dnl
AC_SUBST(tool_include_dir)
AC_SUBST(gcc_version)
AC_DEFINE(HAVE_GMTIME_R, 1, [Define if you have the 'gmtime_r' function])
AC_DEFINE(HAVE_LOCALTIME_R, 1, [Define if you have the 'localtime_r' function.])
AC_DEFINE(HAVE_USLEEP_DECL, 1, [Define if usleep is declared in <unistd.h>.])
- dnl This is only for POSIX threads.
+ # This is only for POSIX threads.
AC_DEFINE(HAVE_PTHREAD_MUTEXATTR_INIT, 1, [Define if using POSIX threads that have the mutexattr functions.])
- dnl We also assume we are using gcc, which provides alloca.
+ # We also assume we are using gcc, which provides alloca.
AC_DEFINE(HAVE_ALLOCA)
- dnl Assume we do not have getuid and friends.
+ # Assume we do not have getuid and friends.
AC_DEFINE(NO_GETUID, 1, [Define if getuid() and friends are missing.])
PLATFORMNET=NoNet
else
if test -z "${with_multisubdir}"; then
builddotdot=.
else
-changequote(<<,>>)
- builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
-changequote([,])
+ builddotdot=`echo ${with_multisubdir} | sed -e 's:[[^/]][[^/]]*:..:g'`
fi
NATIVE=yes
AC_SUBST(toolexeclibdir)
# Determine gcj version number.
-changequote(<<,>>)
-gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
-changequote([,])
+gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([[^ ]]*\).*$/\1/p'`
GCJVERSION=$gcjversion
AC_SUBST(GCJVERSION)
AC_DEFINE_UNQUOTED(GCJVERSION, "$GCJVERSION", [Short GCJ version ID])
-dnl We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
-dnl On that system, sys/ioctl.h will not include sys/filio.h unless
-dnl BSD_COMP is defined; just including sys/filio.h is simpler.
+# We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
+# On that system, sys/ioctl.h will not include sys/filio.h unless
+# BSD_COMP is defined; just including sys/filio.h is simpler.
AC_CHECK_HEADERS(unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h)
-dnl We avoid AC_HEADER_DIRENT since we really only care about dirent.h
-dnl for now. If you change this, you also must update natFile.cc.
+# We avoid AC_HEADER_DIRENT since we really only care about dirent.h
+# for now. If you change this, you also must update natFile.cc.
AC_CHECK_HEADERS(dirent.h)
AC_CHECK_HEADERS(inttypes.h, [
AC_DEFINE(HAVE_INTTYPES_H, 1, [Define if <inttypes.h> is available])
while read f; do
echo "include $f" >> deps.mk
test -f $f || {
-changequote(<<,>>)
- d=`echo $f | sed -e 's,/[^/]*$,,'`
-changequote([,])
+ d=`echo $f | sed -e 's,/[[^/]]*$,,'`
if test ! -d $d; then
$libgcj_basedir/../mkinstalldirs $d
fi;