]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Move towards build-time configuration of variables
authorDan Scott <dscott@laurentian.ca>
Thu, 22 Mar 2012 15:09:44 +0000 (11:09 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Thu, 29 Mar 2012 14:34:18 +0000 (10:34 -0400)
commitc2cd2567032c5d43c47c4f9eeb36566cc23c0615
treedfc8d7ac02b684036cc266c2c5fc3b632b7512d4
parent082bb7963d7c7dec1c0f9859d2ff16dad2221eec
Move towards build-time configuration of variables

We moved a lot of variable configuration into AC_CONFIG_FILES in
autoconf for the sake of convenience, but that turned out to be
problematic, as James Fournie noted in LP 960552, as the warning in
http://www.gnu.org/software/automake/manual/html_node/Scripts.html
notes: "building scripts this way has one drawback: directory variables
such as $(datadir) are not fully expanded and may refer to other
directory variables".

This was particularly a problem for variables such as @sysconfdir@ in
code that doesn't understand shell syntax - such as Cronscript.pm.

This commit moves towards build-time configuration of those variables.
We still use *.in files, but mark the built versions as dependencies in
build recipes such that we can build and test within the source
directory without having to install the files. We also gain the
advantage of teaching "make clean" to clean up the built versions of the
files.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/Makefile.am
Open-ILS/src/perlmods/Makefile.am
configure.ac