From c234a8bed842c8be3aaded936e620e7f5d32e5cb Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 13 Apr 2016 15:58:02 +0200 Subject: Create taler-config wrapper around gnunet-config The wrapper uses LD_PRELOAD to make sure that paths are adjusted for taler. --- src/util/Makefile.am | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/util/Makefile.am') diff --git a/src/util/Makefile.am b/src/util/Makefile.am index f52bc81c6..22bc788b8 100644 --- a/src/util/Makefile.am +++ b/src/util/Makefile.am @@ -15,6 +15,18 @@ pkgcfg_DATA = \ EXTRA_DIST = \ paths.conf +dist_bin_SCRIPTS = taler-config + +# See https://www.gnu.org/software/autoconf/manual/autoconf-2.63/html_node/Installation-Directory-Variables.html +# for and explanation and why this ugliness is necessary. +edit = sed -e 's|@libdir[@]|$(libdir)|g' +taler-config: Makefile $(srcdir)/taler-config.in + rm -f $@ $@.tmp + $(edit) '$(srcdir)/$@.in' >$@.tmp + chmod +x $@.tmp + chmod a-w $@.tmp + mv $@.tmp $@ + if WALLET_ONLY lib_LTLIBRARIES = \ libtalerutil_wallet.la -- cgit v1.2.3