pointless automake error about libtool libraries

2006-08-21 Thread Bruno Haible
Hi, I have a Makefile.am containing line 15: noinst_LTLIBRARIES = libgettextlib.la line 268: lib_LTLIBRARIES = libgettextlib.la automake-1.9.6 gives an error on it: gnulib-lib/Makefile.am:15: libgettextlib.la multiply defined in condition TRUE gnulib-lib/Makefile.am:15: `libgettextlib.la' sh

Re: pointless automake error about libtool libraries

2006-08-21 Thread Ralf Wildenhues
Hello Bruno, * Bruno Haible wrote on Mon, Aug 21, 2006 at 01:34:04PM CEST: > > I have a Makefile.am containing > > line 15: noinst_LTLIBRARIES = libgettextlib.la > line 268: lib_LTLIBRARIES = libgettextlib.la So which should automake use? > automake-1.9.6 gives an error on it: And rightly

Re: pointless automake error about libtool libraries

2006-08-21 Thread Bruno Haible
Ralf Wildenhues wrote: > > line 15: noinst_LTLIBRARIES = libgettextlib.la > > line 268: lib_LTLIBRARIES = libgettextlib.la > > So which should automake use? The one without 'noinst', because this is the one which can yield an -rpath option. > This is connected with tests/libtool8.test and PR

Re: pointless automake error about libtool libraries

2006-08-21 Thread Ralf Wildenhues
Hello Bruno, * Bruno Haible wrote on Mon, Aug 21, 2006 at 05:59:09PM CEST: > > In the case I'm presenting, it's different. There is no $(noinstdir). > One specification gives no installation directory, and the other one > gives 1 installation directory. 0 + 1 < 2. There is no conflict. But this

Re: pointless automake error about libtool libraries

2006-08-21 Thread Bruno Haible
Ralf Wildenhues wrote: > But this would still prevent automake to warn the user when he used > noinst_LTLIBRARIES = libfoo.la > lib_LTLIBRARIES = libfoo.la > > but really meant to use > if COND_FOO > noinst_LTLIBRARIES = libfoo.la > else > lib_LTLIBRARIES = libfoo.la > endif automak

Re: pointless automake error about libtool libraries

2006-08-21 Thread Bruno Haible
Ralf Wildenhues wrote: > Well, another point is that it is not easy to fix the above suggestion > _cleanly_ in automake. If automake copies its input to its output, then > taking both lines > noinst_LTLIBRARIES = libfoo.la > lib_LTLIBRARIES = libfoo.la > > and having the respective rules leav

Re: pointless automake error about libtool libraries

2006-08-21 Thread Ralf Wildenhues
* Bruno Haible wrote on Mon, Aug 21, 2006 at 08:53:42PM CEST: > Ralf Wildenhues wrote: > > > > or from configure.ac: > > AC_SUBST([gl_noinst_ltlibs], [libfoo.la]) > > Uuh, after what you said above, this is betting on automake's unability > to optimize AC_SUBSTed variables. What if automake imp

Re: pointless automake error about libtool libraries

2006-08-22 Thread Alexandre Duret-Lutz
>>> "BH" == Bruno Haible <[EMAIL PROTECTED]> writes: [...] BH> and indeed for linking to not-installed libraries no -rpath BH> option is needed. More precisely: noinst_LTLIBRARIES *requires* that no -rpath be given. (We're talking about Libtool's -rpath option here.) noinst_LTLIBRARIES is use