2000-09-03 Alexandre Oliva <aoliva@redhat.com>
+ * libtool.m4 (AM_PROG_GCJ): Removed.
+ (LT_AC_PROG_GCJ): Use AC_CHECK_TOOL. Set GCJ to `no' if not
+ found.
+ * configure.in: Use LT_AC_PROG_GCJ.
+ Reported by Nick Hudson <nick@nthcliff.demon.co.uk>
+
* tests/quote.test: Move the match test out of case statements, to
work around bug in /bin/sh of several OSs.
popdef([AC_MSG_ERROR])
AM_CONDITIONAL(HAVE_CXX, [test "x$CXX" != xno])
-pushdef([AC_MSG_ERROR], [GCJ=no])
-ifdef([AC_PROG_GCJ],[AC_PROG_GCJ],[AM_PROG_GCJ])
-popdef([AC_MSG_ERROR])
+LT_AC_PROG_GCJ
AM_CONDITIONAL(HAVE_GCJ, [test "x$GCJ" != xno])
AC_ARG_ENABLE(ltdl-install,
dnl This is just to silence aclocal about the macro not being used
ifelse([AC_DISABLE_FAST_INSTALL])dnl
-ifdef([AM_PROG_GCJ],,[
-# Stolen from automake
-AC_DEFUN([AM_PROG_GCJ],[
- AC_CHECK_PROGS(GCJ, gcj, gcj)
- dnl Automake uses ``='' in the test below, it seems wrong
- if test "x${GCJFLAGS+set}" != xset; then
- GCJFLAGS="-g -O2"
- fi
+AC_DEFUN([LT_AC_PROG_GCJ],[
+ AC_CHECK_TOOL(GCJ, gcj, no)
+ test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
AC_SUBST(GCJFLAGS)
])])