Re: Problem with sh shift command in config.status on HP-UX

2009-03-26 Thread Ralf Wildenhues
Hello Daniel, thanks for the report. * Daniel Richard G. wrote on Thu, Mar 26, 2009 at 05:06:45AM CET: I upgraded my copy of Automake from 1.10.1 to 1.10.2, and suddenly, builds are failing on two separate HP-UX systems (B.11.00 on 32-bit PA-RISC, and B.11.23 on IA64). Weird. I haven't

RE: Problem with sh shift command in config.status on HP-UX

2009-03-26 Thread Daniel Richard G.
-Original Message- From: bug-automake-bounces+oss=teragram@gnu.org [mailto:bug-automake-bounces+oss=teragram@gnu.org] On Behalf Of Ralf Wildenhues But how can this be. Just before the shift, one of the two set commands is executed and sets $1 to x. Which is exactly what

Re: Problem with sh shift command in config.status on HP-UX

2009-03-26 Thread Ralf Wildenhues
* Daniel Richard G. wrote on Thu, Mar 26, 2009 at 04:56:11PM CET: But how can this be. Just before the shift, one of the two set commands is executed and sets $1 to x. Which is exactly what the shift aims to undo! I've confirmed that this works correctly for a small number of

Re: Problem with sh shift command in config.status on HP-UX

2009-03-26 Thread Ralf Wildenhues
You can also send the config.status file to me, off-list, if you prefer. Thanks. It's this issue, fixed in current git (master and branch-1-10): http://thread.gmane.org/gmane.comp.sysutils.automake.patches/3344/focus=3347 Cheers, Ralf

RE: Problem with sh shift command in config.status on HP-UX

2009-03-26 Thread Daniel Richard G.
-Original Message- Thanks. It's this issue, fixed in current git (master and branch-1-10): http://thread.gmane.org/gmane.comp.sysutils.automake. patches/3344/focus=3347 Ralf, thank you for looking at that off-list. I've applied the patch in the referenced message, and the error is

Doesn't work: blah_PROGRAMS = $(EXTRA_PROGRAMS)

2009-03-26 Thread Daniel Richard G.
This is the bug I was going to submit originally, before the whole shift-on-HP-UX issue got me distracted :-) I have a Makefile.am with programs that are conditionally compiled, e.g. EXTRA_PROGRAMS = foo bar if ENABLE_STUFF bin_PROGRAMS = foo bar endif Which

RE: Doesn't work: blah_PROGRAMS = $(EXTRA_PROGRAMS)

2009-03-26 Thread Daniel Richard G.
-Original Message- I don't think you need to use EXTRA_PROGRAMS if you use the idiom bin_PROGRAMS = if ENABLE_STUFF bin_PROGRAMS += foo bar endif That works too, but with EXTRA_PROGRAMS, you still get the targets---that is, you can still do make foo bar

Re: ylwrap fails with name-prefixed .l file

2009-03-26 Thread Ralf Wildenhues
Hello Jan, * Jan Engelhardt wrote on Wed, Mar 25, 2009 at 12:08:57AM CET: when a scanner.l file contains %option prefix=foo_ flex will output to lex.foo_.c instead of lex.yy.c, causing ylwrap to fail (automake runs:) /bin/sh ../ylwrap scanner.l lex.yy.c scanner.c --

Troubles with conditional adding files to library

2009-03-26 Thread Gerald I. Evenden
I am quite new to using this system but managed to get it to make a distribution of a shared library. The first try was, however, simple and straight forward. However, I want selectively add two files to the library based upon the condition that they are *not* present on the target computer.

Re: Troubles with conditional adding files to library

2009-03-26 Thread Russ Allbery
Gerald I. Evenden geraldi.even...@gmail.com writes: I am quite new to using this system but managed to get it to make a distribution of a shared library. The first try was, however, simple and straight forward. However, I want selectively add two files to the library based upon the

Re: Troubles with conditional adding files to library

2009-03-26 Thread Gerald I. Evenden
On Thursday 26 March 2009 10:26:13 pm Russ Allbery wrote: Gerald I. Evenden geraldi.even...@gmail.com writes: I am quite new to using this system but managed to get it to make a distribution of a shared library. The first try was, however, simple and straight forward. However, I want

Re: Troubles with conditional adding files to library

2009-03-26 Thread Russ Allbery
Gerald I. Evenden geraldi.even...@gmail.com writes: On Thursday 26 March 2009 10:26:13 pm Russ Allbery wrote: However, more fundamentally, you're reinventing AC_REPLACE_FUNC, which you probably don't want to do. Check the Autoconf manual for AC_REPLACE_FUNC, which does exactly what you're