Re: LIBOBJS problem with automake 1.8

2004-10-26 Thread Alexandre Duret-Lutz
On Tue, Oct 26, 2004 at 04:35:26PM +0200, Peter Simons wrote: > Alexandre Duret-Lutz writes: > > > It occured to me that maybe you were trying to use > > $(LIBOBJS) outside of libgetopt/Makefile.am. Don't. > > $(LIBOBJS) is expected to be used only in the directory > > holding the substitute so

Re: LIBOBJS problem with automake 1.8

2004-10-26 Thread Peter Simons
Alexandre Duret-Lutz writes: > It occured to me that maybe you were trying to use > $(LIBOBJS) outside of libgetopt/Makefile.am. Don't. > $(LIBOBJS) is expected to be used only in the directory > holding the substitute sources. So I need to add a Makefile.am _and_ and a configure.ac file to t

Re: LIBOBJS problem with automake 1.8

2004-10-26 Thread Alexandre Duret-Lutz
On Tue, Oct 26, 2004 at 02:43:26PM +0200, Alexandre Duret-Lutz wrote: > On Tue, Oct 26, 2004 at 02:01:18PM +0200, Peter Simons wrote: > > Alexandre Duret-Lutz writes: > > > > >> AC_LIBOBJ(libgetopt/getopt) > > >> AC_LIBOBJ(libgetopt/getopt1) > > > > > AC_LIBOBJ([getopt]) > > > AC_LIBOBJ([getopt

Re: LIBOBJS problem with automake 1.8

2004-10-26 Thread Alexandre Duret-Lutz
On Tue, Oct 26, 2004 at 02:01:18PM +0200, Peter Simons wrote: > Alexandre Duret-Lutz writes: > > >> AC_LIBOBJ(libgetopt/getopt) > >> AC_LIBOBJ(libgetopt/getopt1) > > > AC_LIBOBJ([getopt]) > > AC_LIBOBJ([getopt1]) > > Then automake / autoconf won't find the files: > > configure.ac:173: require

Re: LIBOBJS problem with automake 1.8

2004-10-26 Thread Peter Simons
Alexandre Duret-Lutz writes: >> AC_LIBOBJ(libgetopt/getopt) >> AC_LIBOBJ(libgetopt/getopt1) > AC_LIBOBJ([getopt]) > AC_LIBOBJ([getopt1]) Then automake / autoconf won't find the files: configure.ac:173: required file `./getopt1.c' not found configure.ac:173: required file `./getopt.c' no

Re: LIBOBJS problem with automake 1.8

2004-10-25 Thread Alexandre Duret-Lutz
>>> "Peter" == Peter Simons <[EMAIL PROTECTED]> writes: [...] Peter> AC_LIBOBJ(libgetopt/getopt) Peter> AC_LIBOBJ(libgetopt/getopt1) [...] Peter> but these paths aren't right, because the compiled Peter> objects will be placed in Peter> ./getopt.o Peter> ./getopt1.o Peter> ..., not in the

LIBOBJS problem with automake 1.8

2004-10-25 Thread Peter Simons
Hi, in a project of mine, I ship versions of getopt and getopt_long for backwards compatibility with older systems. I test for the existence of these functions in the OS with Autoconf, and if I don't find them I define: if test "x$have_getopt_h" != "xyes" -o "x$have_getopt" != "xyes"; then