summaryrefslogtreecommitdiffstats
path: root/sparsify
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-06-17 22:59:46 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-06-21 12:51:45 +0100
commit13d1da17d4e1ae1f4b99b290aaf26020b4052039 (patch)
treee94653917086e98bfea5813a12cda1d37774598b /sparsify
parenta41a5a6fef47c9b21826363445701e633ed141a8 (diff)
downloadlibguestfs-13d1da17d4e1ae1f4b99b290aaf26020b4052039.tar.gz
libguestfs-13d1da17d4e1ae1f4b99b290aaf26020b4052039.tar.xz
libguestfs-13d1da17d4e1ae1f4b99b290aaf26020b4052039.zip
build: Define builddir and abs_srcdir when they are missing.
RHEL 5-era autoconf did not define these, so define them manually when they are missing. Define builddir as '.' The scripts require this. It won't work in the srcdir != builddir case, but we don't care about that for RHEL 5. This commit also moves the builddir / abs_srcdir variable setting above the include of subdir-rules.mk, in case that include uses these variables. Useful script: for f in $(find -name Makefile.am | xargs fgrep '$(abs_srcdir)' -l) ; do if ! grep -q '^abs_srcdir' $f; then echo missing in $f fi done (cherry picked from commit 50aa9533e4a505e1c64dbedddb30491bfbb755d6)
Diffstat (limited to 'sparsify')
-rw-r--r--sparsify/Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/sparsify/Makefile.am b/sparsify/Makefile.am
index 72cb2bb3..f4002e3e 100644
--- a/sparsify/Makefile.am
+++ b/sparsify/Makefile.am
@@ -17,6 +17,12 @@
include $(top_srcdir)/subdir-rules.mk
+# Old RHEL 5 autoconf doesn't have builddir.
+builddir ?= .
+
+# Old RHEL 5 autoconf doesn't have abs_srcdir.
+abs_srcdir ?= $(shell cd $(top_srcdir)/sparsify && pwd)
+
EXTRA_DIST = \
$(SOURCES) \
virt-sparsify.pod \