]> git.ipfire.org Git - thirdparty/git.git/commit - configure.ac
build: don't duplicate substitution of make variables
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 11 Sep 2012 15:45:30 +0000 (17:45 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Sep 2012 17:24:39 +0000 (10:24 -0700)
commit40bfbde9da5c6cbc85f49a755f27162dc966fd89
tree2706e7d6158feb1a5827b4513dff5f023425698b
parent3a34c2bf6267a5198e926943f68023ad80c34d3d
build: don't duplicate substitution of make variables

Thanks to our 'GIT_CONF_SUBST' layer in configure.ac, a make variable 'VAR'
can be defined to a value 'VAL' at ./configure runtime in our build system
simply by using "GIT_CONF_SUBST([VAR], [VAL])" in configure.ac, rather than
having both to call "AC_SUBST([VAR], [VAL])" in configure.ac and adding the
'VAR = @VAR@' definition in config.mak.in.  Less duplication, less margin
for error, less possibility of confusion.

While at it, fix some formatting issues in configure.ac that unnecessarily
obscured the code flow.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.mak.in
configure.ac