bug-gnulib
[Top][All Lists]
Advanced

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

Re: top_srcdir in Makefile.am & Makefile.in


From: Sam Steingold
Subject: Re: top_srcdir in Makefile.am & Makefile.in
Date: Mon, 01 Aug 2011 11:01:06 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> * Bruno Haible <address@hidden> [2011-07-30 02:20:08 +0200]:
>
> Sam Steingold wrote:
>> clisp directory structure is:
>> clisp - top level; hand-written configure script (ask Bruno)
>> clisp/src - most sources, configure.in, configure, aclocal.m4
>> clisp/src/gllib, clisp/src/glm4 - imported from gnulib
>> clisp/src/build-aux - imported from many places, mostly gnulib
>
> So, in clisp, $(top_srcdir) ought to be clisp/src.

thanks.

> You can get in trouble here if you use fake configure.ac / configure
> file that are present at the moment 'automake' is run but are removed
> afterwards.

I get the exact same files if I run aclocal on clisp/src/configure.ac as
on clisp/configure.ac.

>> $ grep top_srcdir src/gllib/Makefile.am
>> appears to indicate that top_srcdir should point to clisp.
>
> Maybe this is related to this hack in clisp/Makefile.devel:
>
> src/gllib/Makefile.in : src/gllib/Makefile.am src/configure.in src/aclocal.m4
>         cd src && automake gllib/Makefile && \
>         sed -i -e 
> 's,$$(top_srcdir)/src/build-aux,$$(CLISP_LIBDIR)/build-aux,' \
>           -e 's,$$(top_srcdir)/$$cl_cv_clisp_libdir,$$(CLISP_LIBDIR),' \
>                 gllib/Makefile.in

you are out of date, the current hack is

src/gllib/Makefile.in : src/gllib/Makefile.am src/configure.in src/aclocal.m4
        cd src && automake --gnits gllib/Makefile && \
        sed -i -e 's,$$(top_srcdir)/src/build-aux,$$(top_srcdir)/build-aux,' \
                gllib/Makefile.in

(whose intent you should approve of)

-- 
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 
11.0.60900031
http://pmw.org.il http://palestinefacts.org http://ffii.org
http://thereligionofpeace.com http://openvotingconsortium.org http://memri.org
The difference between theory and practice is that in theory there isn't any.



reply via email to

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