bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] using AC_LIBSOURCES: complementing the `Files:' section


From: Bruno Haible
Subject: Re: [bug-gnulib] using AC_LIBSOURCES: complementing the `Files:' section
Date: Mon, 6 Dec 2004 14:08:59 +0100
User-agent: KMail/1.5

Jim Meyering wrote:
> But that still leaves it up to me to manually add mempcpy.h somewhere
> in coreutils/lib/Makefile.am.
>
> If instead, I add this line to mempcpy.m4:
>
>   AC_LIBSOURCES([mempcpy.c, mempcpy.h])
>
> or even just this one (IMO the above is better):
>
>   AC_LIBSOURCE([mempcpy.h])
>
> then automake adds mempcpy.h, too.

In gnulib we achieve this through the

  lib_SOURCES += mempcpy.h

line in the modules description file.

I don't understand the philosophy of registering filenames through
autoconf macros. I thought lists of filenames and compilation rules and
flags belong in Makefile.am, and stuff that is needed for "configure"
belongs in autoconf macros.

Bruno





reply via email to

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