I'm reposting my original message because I never heard from anyone on
this. Does anyone have any idea on this. I looked through autoconf's m4
macros and couldn't figure out how to make this happen. Thanks.
---Original
I'm curious if there is a way to make autoconf expand variables
completely. Take the following example:
CP_PREFIX = /usr/local
CP_LIBDIR = $CP_PREFIX/lib
CP_PKGLIBDIR = $CP_LIBDIR/$PACKAGE
AC_SUBST(CP_PREFIX)
AC_SUBST(CP_LIBDIR)
AC_SUBST(CP_PKGLIBDIR)
Now, using this, I have this in one of my files (not a Makefile):
...@CP_PREFIX@...
...@CP_LIBDIR@...
...@CP_PKGLIBDIR@...
And when configure parses this file, those get substituted with:
.../usr/local...
...$CP_PREFIX/lib...
...$CP_LIBDIR/package/...
But what I want is this:
.../usr/local...
.../usr/local/lib...
.../usr/local/lib/package...
If you try this in a regular shell script, this happens. Is there a way
to make autoconf do this as well? Thanks!
--
-Ti Leggett
[EMAIL PROTECTED]
[EMAIL PROTECTED]