1 AC_DEFUN(LIBGCJ_CONFIGURE,
3 dnl Default to --enable-multilib
4 AC_ARG_ENABLE(multilib,
5 [ --enable-multilib build many library versions (default)],
6 [case "${enableval}" in
9 *) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
10 esac], [multilib=yes])dnl
12 dnl We may get other options which we dont document:
13 dnl --with-target-subdir, --with-multisrctop, --with-multisubdir
15 if test "[$]{srcdir}" = "."; then
16 if test "[$]{with_target_subdir}" != "."; then
17 libgcj_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1"
19 libgcj_basedir="[$]{srcdir}/[$]{with_multisrctop}$1"
22 libgcj_basedir="[$]{srcdir}/$1"
24 AC_SUBST(libgcj_basedir)
28 dnl This shouldn't be needed, as long as top-level dependencies are
29 dnl defined correctly and shared-library paths are set up so that
30 dnl execution tests succeed. FIXME.
31 define([AC_PROG_CC_WORKS],[])
32 define([AC_PROG_CXX_WORKS],[])
37 dnl version is pulled out to make it a bit easier to change using sed.
39 dnl Still use "libjava" here to placate dejagnu.
40 AM_INIT_AUTOMAKE(libjava, $version)
42 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
43 # run it explicitly here, it will be run implicitly before
44 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
45 # be run before AC_CANONICAL_HOST.
50 AC_CHECK_TOOL(RANLIB, ranlib, :)
56 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
57 # at least currently, we never actually build a program, so we never
58 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
59 # fails, because we are probably configuring with a cross compiler
60 # which cant create executables. So we include AC_EXEEXT to keep
61 # automake happy, but we dont execute it, since we dont care about
67 # configure.host sets the following important variables
68 # libgcj_cflags - host specific C compiler flags
69 # libgcj_cxxflags - host specific C++ compiler flags
70 # libgcj_javaflags - host specific Java compiler flags
76 . [$]{libgcj_basedir}/configure.host
78 case [$]{libgcj_basedir} in
79 /* | [A-Za-z]:[/\\]*) libgcj_flagbasedir=[$]{libgcj_basedir} ;;
80 *) libgcj_flagbasedir='[$](top_builddir)/'[$]{libgcj_basedir} ;;
83 LIBGCJ_CFLAGS="[$]{libgcj_cflags}"
84 LIBGCJ_CXXFLAGS="[$]{libgcj_cxxflags}"
85 LIBGCJ_JAVAFLAGS="[$]{libgcj_javaflags}"
86 AC_SUBST(LIBGCJ_CFLAGS)
87 AC_SUBST(LIBGCJ_CXXFLAGS)
88 AC_SUBST(LIBGCJ_JAVAFLAGS)
91 sinclude(../libtool.m4)
92 dnl The lines below arrange for aclocal not to bring libtool.m4
93 dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
94 dnl to add a definition of LIBTOOL to Makefile.in.
96 AC_DEFUN([AM_PROG_LIBTOOL],)
97 AC_DEFUN([AC_LIBTOOL_DLOPEN],)
98 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],)
99 AC_DEFUN([LT_AC_PROG_GCJ],)