Re: AC_LIBOBJ with file in subdirectory does not work

2010-05-27 Thread Russ Allbery
Bruno Haible writes: > Hi Ralf, >> +# Ensure objects in ../src are renamed so they don't conflict with >> +# the objects generated from ../src/Makefile. >> +libgettextpo_la_CPPFLAGS = $(AM_CPPFLAGS) > Wow. What a hack! Even with the comments, I could not understand how > changing CPPFLAGS could

Re: AC_LIBOBJ with file in subdirectory does not work

2010-05-27 Thread Bruno Haible
Hi Ralf, > > - How to use Automake conditionals or AC_SUBSTed variables without > > file names as replacement for AC_LIBOBJ. > > That's fine only for projects where the list of libobjs is taken from a > static list of file names. Thus it may be fine for gnulib, but it is > not something we

Re: AC_LIBOBJ with file in subdirectory does not work

2010-05-26 Thread Ralf Wildenhues
Good morning Bruno, * Bruno Haible wrote on Thu, May 27, 2010 at 12:29:44AM CEST: > > > +# Ensure objects in ../src are renamed so they don't conflict with > > +# the objects generated from ../src/Makefile. > > +libgettextpo_la_CPPFLAGS = $(AM_CPPFLAGS) > > Wow. What a hack! Even with the commen

Re: AC_LIBOBJ with file in subdirectory does not work

2010-05-26 Thread Bruno Haible
Hi Ralf, > Can you please tell me how to reproduce that hell in libgettextpo? You reproduced it already pretty well. > +# Ensure objects in ../src are renamed so they don't conflict with > +# the objects generated from ../src/Makefile. > +libgettextpo_la_CPPFLAGS = $(AM_CPPFLAGS) Wow. What a ha

Re: AC_LIBOBJ with file in subdirectory does not work

2010-05-26 Thread Bruno Haible
Hi Ralf, > Can you please tell me how to reproduce that hell in libgettextpo? You already reproduced it pretty well. > I tried the patch below, and so far it seems to work reasonably well. > You lose the ability to do 'make clean' in either of > gettext-tools/libgettextpo and gettext-tools/src w

Re: AC_LIBOBJ with file in subdirectory does not work

2010-05-26 Thread Ralf Wildenhues
* Bruno Haible wrote on Wed, May 26, 2010 at 12:11:45AM CEST: > > I see a few possible alternative ways out: > > - Automake requires subdir-objects if you put slashes into $LIBOBJS, > > There are cases where the developer does not want 'subdir-objects'. > I'm having the problem with AC_LIBOBJ in t

Re: AC_LIBOBJ with file in subdirectory does not work

2010-05-25 Thread Ralf Wildenhues
* Bruno Haible wrote on Wed, May 26, 2010 at 12:11:45AM CEST: > > I see a few possible alternative ways out: > > - Automake requires subdir-objects if you put slashes into $LIBOBJS, > > There are cases where the developer does not want 'subdir-objects'. > I'm having the problem with AC_LIBOBJ in t

Re: AC_LIBOBJ with file in subdirectory does not work

2010-05-25 Thread Bruno Haible
[Adding bug-autoconf. This is a reply to .] Hi Ralf, > Autoconf code knows nothing about the Automake subdir-objects option > (and what's more, that option may vary between different Makefile.am > files). Exactly, that's the main s

Re: AC_LIBOBJ with file in subdirectory does not work

2010-05-25 Thread Ralf Wildenhues
[ adding bug-autoconf, for reference; ] Hello Bruno, thanks for the bug report. * Bruno Haible wrote on Tue, May 25, 2010 at 01:59:19AM CEST: > When AC_LIBOBJ is used with a source file in a subdirectory, no problem > from autoco

Re: AC_LIBOBJ with file in subdirectory does not work

2010-05-25 Thread Bruno Haible
PS: The challenge is to get AC_LIBOBJ working - with and without the 'subdir-objects' option, - for object files in executables, .a libraries, and .la libtool libraries. In all 6 situations. Bruno

AC_LIBOBJ with file in subdirectory does not work

2010-05-24 Thread Bruno Haible
Hi, When AC_LIBOBJ is used with a source file in a subdirectory, no problem from autoconf's side, but a fatal error from automake occurs. I'm using autoconf 2.65, automake 1.11.1. How to reproduce: 1) Create a fresh empty directory. $ mkdir -p foo build-aux 2) Save these three files: