bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in LT_PROG_GCJ ?


From: Steve Ellcey
Subject: Bug in LT_PROG_GCJ ?
Date: Tue, 13 Mar 2007 11:30:28 -0700 (PDT)

I am currently expirementing with using the latest (ToT) libtool in the
GCC and binutils builds.  I ran into a problem when trying to run aclocal
and autoconf in the GCC libjava directory, I was getting:

$ aclocal -I . -I .. -I ../config
$ autoconf
configure:15448: error: possibly undefined macro: AM_PROG_GCJdnl
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

I think I tracked this down to the expansion of LT_PROG_GCJ from libtool.m4.

In libltdl/m4/libtool.m4 there is:

# LT_PROG_GCJ
# -----------
AC_DEFUN([LT_PROG_GCJ],
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
    [AC_CHECK_TOOL(GCJ, gcj,)
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
      AC_SUBST(GCJFLAGS)])])dnl
])

I think the 'dnl' at the end of the AC_SUBST line is the problem.  Does
this seem right?  The problem went away after I removed the 'dnl'.  If
this looks right can someone check this change into libtool.

Steve Ellcey
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]