bug-automake
[Top][All Lists]
Advanced

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

line numbers not always reported


From: Steve M. Robbins
Subject: line numbers not always reported
Date: Sun, 12 Aug 2001 02:01:48 -0400
User-agent: Mutt/1.3.20i

Hi,

I tested this with automake 1.4s, from CVS head as of a few minutes
ago.

If a bogus variable is assigned to, automake emits the line number
with the diagnostic.

        address@hidden Makefile.am
        CGAL_LDFLAGS =

        bin_PROGRAMS = foo
        LDADD = $(CGAL_LDFLAGS)

        foo_SOURCES = foo.c

        address@hidden --foreign
        Makefile.am:1: invalid unused variable name: `CGAL_LDFLAGS'


However, if we remove the first line, and just use the variable,
the line numbers vanish.

        address@hidden Makefile.am
        #CGAL_LDFLAGS =
        
        bin_PROGRAMS = foo
        LDADD = $(CGAL_LDFLAGS)

        foo_SOURCES = foo.c
        address@hidden --foreign
        Makefile.am: invalid unused variable name: `CGAL_LDFLAGS'


For completeness, here is the configure script.

        address@hidden configure.ac 
        AC_INIT(Makefile.am)
        AM_INIT_AUTOMAKE(goof, 0.1.0)

        dnl Checks for programs.
        AC_PROG_INSTALL
        AC_PROG_CC

        AC_OUTPUT(Makefile)


-Steve

-- 
by Rocket to the Moon,
by Airplane to the Rocket,
by Taxi to the Airport,
by Frontdoor to the Taxi,
by throwing back the blanket and laying down the legs ...
- They Might Be Giants




reply via email to

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