autoconf
[Top][All Lists]
Advanced

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

cascading variable resolution in AC_SUBST


From: David Oleszkiewicz
Subject: cascading variable resolution in AC_SUBST
Date: Wed, 3 Oct 2001 10:25:29 -0700 (PDT)

so i want to do something like this

configure.in:
PROGNAME = "foo"
DIR = "${bindir}/${PROG}"
AC_SUBST(DIR)

myfile.h.in:
#define DIR "@DIR@"

when things resolve out to myfile.h i get
#define CONF_DIR "${exec_prefix}/foo"

this is because $bindir = ${exec_prefix}/bin
i.e. we only get one level of variable resolution.
Is there any way around this, or has anyone written a decently portable
macro to make this work.

thanks




reply via email to

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