Re: Help? AC_LIBOBJ. upgrade from 2.13

2004-12-10 Thread Stepan Kasal
Hello, On Thu, Dec 09, 2004 at 02:59:39PM -0500, Donald G Porter wrote: > "Macro: AC_LIBOBJ (function) ... > Technically, it adds `function.$ac_objext' to the output variable > LIBOBJS ..." > > Trouble is that it doesn't seem to do that. In the

Help? AC_LIBOBJ. upgrade from 2.13

2004-12-09 Thread Donald G Porter
Trying to upgrade from the autoconf-2.13 conventions. Read about using AC_LIBOBJ to take care of constructing the LIBOBJS value. Documentation at http://www.gnu.org/software/autoconf/manual/autoconf-2.57/html_node/autoconf_47.html says: "Macro: AC_LIBOBJ (function) Specify

Re: AC_LIBOBJ problem?

2003-12-20 Thread Harlan Stenn
The line now looks like this: AC_SEARCH_LIBS(xmalloc, iberty, , LIBXTRA=true; [AC_LIBOBJ(xmalloc)]) so that was the root cause of my runtime problem, but my comment about a possible rewrite of the LIBOBJS stuff is still worth pondering. H

AC_LIBOBJ problem?

2003-12-20 Thread Harlan Stenn
I haven't looked at this hard. tftp-hpa's configure.in has a line that looks like this: AC_SEARCH_LIBS(xmalloc, iberty, , LIBXTRA=true [AC_LIBOBJ(xmalloc)]) Under autoconf-2.53 this eventually produced: LIBXTRA=true LIBOBJS="$LIBOBJS xmalloc.$ac_objext" while under aut

Re: AC_LIBOBJ

2003-01-10 Thread Andy Smith
On Fri, Jan 10, 2003 at 10:56:43AM +0100, Alexandre Duret-Lutz wrote: > >>> "Andy" == Andy Smith <[EMAIL PROTECTED]> writes: > > [...] > > Andy> But when I do "autoconf && automake" I get: > > Andy> src/Makefile.am:9: @LTLIBOBJS@ seen but never set in `configure.in' > Andy> src/Makefile.am:13

Re: AC_LIBOBJ

2003-01-10 Thread Alexandre Duret-Lutz
set in `configure.in' Andy> src/Makefile.am:18: @LIBOBJS@ seen but never set in `configure.in' In the past Automake would not allow you to use these variables before it sees AC_LIBOBJ, AC_LIBSOURCE, AC_LIBSOURCES, or AC_SUBST([LIBOBJS]) and AC_SUBST([LTLIBOBJS]) in configure.in or

Re: AC_LIBOBJ

2003-01-09 Thread Andy Smith
On Thu, Jan 09, 2003 at 10:43:09PM +, Andy Smith wrote: > Hi folks, > > apologies if I have missed something obvious, but I don't seem to > understand how one should use AC_LIBOBJ? Sorry to reply to my own email, but I've discoevered two things: Firstly, by acciden

AC_LIBOBJ

2003-01-09 Thread Andy Smith
Hi folks, apologies if I have missed something obvious, but I don't seem to understand how one should use AC_LIBOBJ? I have taken the AC_FUNC_SNPRINTF macro from the ac-archive and put it in acsite.m4. This macro calls AC_LIBOBJ(snprintf) if the system's snprintf is missing or brok

Re: AC_LIBOBJ and libsources

2001-02-02 Thread Akim Demaille
> "Tom" == Tom Tromey <[EMAIL PROTECTED]> writes: > "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> Can there be any non source files which we want to ship? Tom> Yes, sometimes. For instance with ansi2knr support we ship the Tom> man page. I don't know whether this impacts au

Re: AC_LIBOBJ and libsources

2001-01-31 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> Can there be any non source files which we want to ship? Yes, sometimes. For instance with ansi2knr support we ship the man page. I don't know whether this impacts autoconf though. Tom

Re: AC_LIBOBJ and libsources

2001-01-31 Thread Akim Demaille
> "Tom" == Tom Tromey <[EMAIL PROTECTED]> writes: > "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> 1. Does Automake need to know what are the files that can Akim> actually be in LIBOBJ, or headers can be included? Tom> Automake wants to know the associated headers as well. Ca

Re: AC_LIBOBJ and libsources

2001-01-30 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> 1. Does Automake need to know what are the files that can actually be Akim>in LIBOBJ, or headers can be included? Automake wants to know the associated headers as well. Akim> 2. Do we really care about extra dependencies? In t

AC_LIBOBJ and libsources

2001-01-30 Thread Akim Demaille
I need help from both communities. It is clear that Autoconf macros needs a means to tell Automake that some file is to be shipped. The most typical use is LIBOBJ. But there is often more than the .c file to ship, e.g., getopt.h. So the problem is what does Automake need, and what are the mac

Re: AC_LIBOBJ

2000-09-11 Thread Akim Demaille
| | AC_CONFIG_COMMANDS_PRE( | [LTLIBOBJS=`echo "X$LIBOBJS" | \ | sed "s/^X//;s/\\.$ac_objext /.lo /g;s/\\.$ac_objext\$/.lo/" | AC_SUBST(LTLIBOBJS)]) | Thanks Gary. Personally I'm still very unhappy with \\.$ac_objext. After all, someone might still have a .o

Re: AC_LIBOBJ

2000-09-09 Thread Gary V. Vaughan
AC_SUBST(LTLIBOBJS)]) > - Macro: AC_CONFIG_COMMANDS_POST(CMDS) > Execute the CMDS right after creating `config.status'. > > But I don't know if this is the right way to do it, maybe it'd be > cleaner to provide a hook on AC_LIBOBJ. The AC_..._PRE/POST method i

Re: AC_LIBOBJ

2000-09-05 Thread Akim Demaille
C_CONFIG_COMMANDS_POST(CMDS) Execute the CMDS right after creating `config.status'. But I don't know if this is the right way to do it, maybe it'd be cleaner to provide a hook on AC_LIBOBJ. The AC_..._PRE/POST method is more robust (it works if people don't use AC_LIBOBJ but change LIBOBJ by hand), but it is less clean. Akim

Re: AC_LIBOBJ

2000-08-31 Thread Gary V. Vaughan
On Thu, Aug 31, 2000 at 02:34:41PM -0700, Bruce Korb wrote: > "Gary V. Vaughan" wrote: > > According to the excellent `Autoconf, Automake and Libtool' [New Riders > > Publishing; ISBN: 1578701902 =)O| =)O| ]: > > > > # This is necessary so that .o files in LIBOBJS are also built via > > # the

Re: AC_LIBOBJ

2000-08-31 Thread Tom Tromey
> "Gary" == Gary V Vaughan <[EMAIL PROTECTED]> writes: >> Isn't it automake that adjusts LIBOBJS to work with ansi2knr? Gary> Nope. The user has to add a sed script snippet to their Gary> configure.in if they use LIBOBJS in conjunction with either Gary> LTLIBRARIES or ansi2knr. We should a

Re: AC_LIBOBJ

2000-08-31 Thread Bruce Korb
"Gary V. Vaughan" wrote: > According to the excellent `Autoconf, Automake and Libtool' [New Riders > Publishing; ISBN: 1578701902 =)O| =)O| ]: > > # This is necessary so that .o files in LIBOBJS are also built via > # the ANSI2KNR-filtering rules. > Xsed='sed -e "s/^X//"' > LIBOBJS=`echo

Re: AC_LIBOBJ

2000-08-31 Thread Gary V. Vaughan
On Thu, Aug 31, 2000 at 01:45:30AM -0300, Alexandre Oliva wrote: > On Aug 29, 2000, Harlan Stenn <[EMAIL PROTECTED]> wrote: > > > The docs for AC_LIBOBJ say (in part): > > Technically, it adds 'FUNCTION.$ac_objext' to ... > > > If this is true, it

Re: AC_LIBOBJ

2000-08-30 Thread Alexandre Oliva
On Aug 29, 2000, Harlan Stenn <[EMAIL PROTECTED]> wrote: > The docs for AC_LIBOBJ say (in part): > Technically, it adds 'FUNCTION.$ac_objext' to ... > If this is true, it may still be a bug. Perhaps it should add: > 'FUNCTION$U.$ac_objext'

AC_LIBOBJ

2000-08-29 Thread Harlan Stenn
The docs for AC_LIBOBJ say (in part): Technically, it adds 'FUNCTION.$ac_objext' to ... If this is true, it may still be a bug. Perhaps it should add: 'FUNCTION$U.$ac_objext' because some folks will be using the ansi2knr stuff. H