Fix path substitutions
commit060ba6a9cd5c8bf3fab0e72ac6213e4452fe8302
authorBrad Jorsch <anomie@users.sourceforge.net>
Wed, 29 Sep 2010 20:12:33 +0000 (29 16:12 -0400)
committerCarlos R. Mafra <crmafra@gmail.com>
Thu, 7 Oct 2010 10:04:31 +0000 (7 12:04 +0200)
treeb8bd190d94acee72a75caaba5693f12963a54c45
parentf6080ffd5647e3e968fe460d5b7f0c76c780be1d
Fix path substitutions

Autoconf uses multiple levels of variables when defining paths. For
example, ${datadir} by default is ${datarootdir}, which by default is
${prefix}/share, which by default is /usr/local. Substituting from
./configure, as is done by AC_DEFINE or AC_DEFINE_UNQUOTED, does not
expand all these variables. This was causing some of our defines to have
garbage like "${prefix}/share/pixmaps" rather than the intended
"/usr/local/share/pixmaps".

The solution is to generate the files needing these paths from the
Makefile rather than from ./configure, because make does fully expand
all those levels.

Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
17 files changed:
INSTALL-WMAKER
INSTALL-WMAKER.cs
INSTALL-WMAKER.es
INSTALL-WMAKER.fr
INSTALL-WMAKER.pt
INSTALL-WMAKER.sk
Makefile.am
WINGs/Makefile.am
WINGs/get-wings-flags.in [new file with mode: 0644]
WINGs/get-wutil-flags.in [new file with mode: 0644]
WINGs/wconfig.h
configure.ac
util/directjpeg.c
util/wmsetbg.c
util/wxpaste.c
wrlib/Makefile.am
wrlib/get-wraster-flags.in [new file with mode: 0644]