[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_DEFINE_UNQUOTED with unresolved shell variables
From: |
Ralf Wildenhues |
Subject: |
Re: AC_DEFINE_UNQUOTED with unresolved shell variables |
Date: |
Thu, 9 Nov 2006 20:31:15 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hello Roland,
* Roland Illig wrote on Thu, Nov 09, 2006 at 11:19:54AM CET:
>
> FOO_DIR="${bindir}"
> AC_SUBST(FOO_DIR)
> AC_DEFINE_UNQUOTED(FOO_DIR, "$FOO_DIR",
> [Directory where foo files are installed])
>
> The problem with that is that the value of bindir is usually
> '${prefix}/bin'
[...]
> What is the most elegant way of solving this?
See here:
http://www.gnu.org/software/autoconf/manual/html_node/Defining-Directories.html
If gnulib is an option for you, then you could use the configmake
module:
http://cvs.savannah.gnu.org/viewcvs/*checkout*/gnulib/gnulib/MODULES.html?rev=HEAD&content-type=text/html#module=configmake
Hope that helps.
Cheers,
Ralf