[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AC_SUBST problem (was: Build error...)
From: |
Etienne M. Gagnon |
Subject: |
AC_SUBST problem (was: Build error...) |
Date: |
Sun, 19 Aug 2001 19:15:36 -0400 |
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.
Thanks,
Etienne
--
Etienne M. Gagnon address@hidden
SableVM: http://www.sablevm.org/
SableCC: http://www.sablecc.org/