automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_SUBST problem (was: Build error...)


From: Gary V. Vaughan
Subject: Re: AC_SUBST problem (was: Build error...)
Date: Sun, 2 Sep 2001 15:04:21 +0100
User-agent: Mutt/1.3.21i

On Sun, Aug 19, 2001 at 07:15:36PM -0400, Etienne M. Gagnon wrote:
> Hi again.
> 
> I have nailed down the problem to AC_SUBST calls in configure.ac
> 
> Apparently the following does not work:
> 
> --- BEGIN ---
> PACKAGE="sablevm"
> VERSION="0.1.6"
> LIBVERSION="0:6:0"
> 
> AC_INIT(${PACKAGE}, ${VERSION}, ${BUG-REPORT-ADDRESS})
> AC_CONFIG_SRCDIR([src/sablevm/sablevm.c])
> 
> AC_SUBST(PACKAGE)
> AC_SUBST(VERSION)
> AC_SUBST(LIBVERSION)
> ...
> --- END ---
> 
> The following does not work either:
> 
> --- BEGIN ---
> PACKAGE="sablevm"
> VERSION="0.1.6"
> LIBVERSION="0:6:0"
> 
> AC_INIT(${PACKAGE}, ${VERSION}, ${BUG-REPORT-ADDRESS})
> AC_CONFIG_SRCDIR([src/sablevm/sablevm.c])
> 
> AC_SUBST(PACKAGE, ${PACKAGE})
> AC_SUBST(VERSION, ${VERSION})
> AC_SUBST(LIBVERSION, ${LIBVERSION})
> ...
> --- END ---
> 
> But, the following works:
> 
> --- BEGIN ---
> PACKAGE="sablevm"
> VERSION="0.1.6"
> BUG-REPORT-ADDRESS="http://www.sablevm.org/";
> LIBVERSION="0:6:0"
> 
> AC_INIT(${PACKAGE}, ${VERSION}, ${BUG-REPORT-ADDRESS})
> AC_CONFIG_SRCDIR([src/sablevm/sablevm.c])
> 
> AC_SUBST(PACKAGE, [sablevm])
> AC_SUBST(VERSION, [0.1.6])
> AC_SUBST(LIBVERSION, [0:6:0])
> ...
> --- END ---
> 
> The problem is that I do not like the duplication.  I thought using
> AC_SUBST caused the evaluation of shell variables.  Maybe I am missing
> an important point.  So, I will redirect this problem to the autoconf
> list, but feel free to help me, if you have any good advice.

I didn't see a reply to this yet, so here is a snippet from cvs m4
configure:

  AC_INIT([GNU m4], [1.4q], address@hidden)
  AC_CONFIG_SRCDIR([src/m4.h])
  AC_CONFIG_AUX_DIR(config)
  AM_CONFIG_HEADER(config.h:config-h.in)
  AC_CONFIG_TESTDIR(tests)

  AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME, AC_PACKAGE_VERSION)

HTH,
        Gary.
-- 
  ())_. Gary V. Vaughan     gary@(oranda.demon.co.uk|gnu.org)
  ( '/  Research Scientist  http://www.oranda.demon.co.uk       ,_())____
  / )=  GNU Hacker          http://www.gnu.org/software/libtool  \'      `&
`(_~)_  Tech' Author        http://sources.redhat.com/autobook   =`---d__/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]