On Thu, Dec 04, 2003 at 08:25:20PM +0100, Peter Eisentraut wrote:
> Patrick Welche writes:
> 
> > I thought the following looked nice:
> >
> > NETATALK_VERSION=`cat $srcdir/VERSION`
> > AC_INIT(netatalk, ${NETATALK_VERSION},...
> >
> > but then
> >
> > configure.in:5: warning: AC_INIT: not a literal: ${NETATALK_VERSION}
> >
> > Is there a way round it?
> 
> AC_INIT(netatalk, esyscmd([cat VERSION]))

Looked good, but it seems the trailing newline of esyscmd's expansion is
messing things up..

| #define PACKAGE_VERSION "1.7cvs
| "

seems alright, but then:

PACKAGE_VERSION='1.7cvs
PAMDIR=''

woops..

Anyway, thanks for the tip (I might just do things backwards and
echo $PACKAGE_VERSION > VERSION),

Patrick


Reply via email to