summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--appliance/Makefile.am3
-rw-r--r--clone/Makefile.am3
-rw-r--r--inspector/Makefile.am3
-rw-r--r--java/Makefile.am6
-rw-r--r--ocaml/Makefile.am6
-rw-r--r--php/Makefile.am3
-rw-r--r--python/Makefile.am2
-rw-r--r--resize/Makefile.am6
-rw-r--r--ruby/Makefile.am3
-rw-r--r--sparsify/Makefile.am6
-rw-r--r--tests/data/Makefile.am6
-rw-r--r--tests/extra/Makefile.am3
-rw-r--r--tests/guests/Makefile.am6
13 files changed, 46 insertions, 10 deletions
diff --git a/appliance/Makefile.am b/appliance/Makefile.am
index 7e2752b3..5b7d7bf5 100644
--- a/appliance/Makefile.am
+++ b/appliance/Makefile.am
@@ -15,6 +15,9 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+# Old RHEL 5 autoconf doesn't have builddir.
+builddir ?= .
+
include $(top_srcdir)/subdir-rules.mk
EXTRA_DIST = \
diff --git a/clone/Makefile.am b/clone/Makefile.am
index 4d586c67..18e38008 100644
--- a/clone/Makefile.am
+++ b/clone/Makefile.am
@@ -15,6 +15,9 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+# Old RHEL 5 autoconf doesn't have abs_srcdir.
+abs_srcdir ?= $(shell cd $(top_srcdir)/tests/xml && pwd)
+
include $(top_srcdir)/subdir-rules.mk
EXTRA_DIST = \
diff --git a/inspector/Makefile.am b/inspector/Makefile.am
index 3e299417..00300a09 100644
--- a/inspector/Makefile.am
+++ b/inspector/Makefile.am
@@ -15,6 +15,9 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+# Old RHEL 5 autoconf doesn't have builddir.
+builddir ?= .
+
include $(top_srcdir)/subdir-rules.mk
EXAMPLE_XML = \
diff --git a/java/Makefile.am b/java/Makefile.am
index 2a8b77b8..613aac92 100644
--- a/java/Makefile.am
+++ b/java/Makefile.am
@@ -15,13 +15,13 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+# Old RHEL 5 autoconf doesn't have builddir.
+builddir ?= .
+
include $(top_srcdir)/subdir-rules.mk
java_prefix = com/redhat/et/libguestfs
-# Old RHEL 5 autoconf doesn't have builddir.
-builddir ?= $(top_builddir)/java
-
generator_built = \
Makefile.inc \
$(java_built_sources) \
diff --git a/ocaml/Makefile.am b/ocaml/Makefile.am
index c3135329..ea137cee 100644
--- a/ocaml/Makefile.am
+++ b/ocaml/Makefile.am
@@ -15,6 +15,12 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+# Old RHEL 5 autoconf doesn't have builddir.
+builddir ?= .
+
+# Old RHEL 5 autoconf doesn't have abs_srcdir.
+abs_srcdir ?= $(shell cd $(top_srcdir)/ocaml && pwd)
+
include $(top_srcdir)/subdir-rules.mk
generator_built = \
diff --git a/php/Makefile.am b/php/Makefile.am
index 7652b66e..220f13a9 100644
--- a/php/Makefile.am
+++ b/php/Makefile.am
@@ -17,6 +17,9 @@
include $(top_srcdir)/subdir-rules.mk
+# Old RHEL 5 autoconf doesn't have abs_srcdir.
+abs_srcdir ?= $(shell cd $(top_srcdir)/php && pwd)
+
generator_built = \
extension/php_guestfs_php.h \
extension/guestfs_php.c
diff --git a/python/Makefile.am b/python/Makefile.am
index 5931e2e4..c6c1b1df 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -16,7 +16,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
# Old RHEL 5 autoconf doesn't have builddir.
-builddir ?= $(top_builddir)/python
+builddir ?= .
include $(top_srcdir)/subdir-rules.mk
diff --git a/resize/Makefile.am b/resize/Makefile.am
index 1ea3bfae..1157eaa1 100644
--- a/resize/Makefile.am
+++ b/resize/Makefile.am
@@ -15,6 +15,12 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+# Old RHEL 5 autoconf doesn't have builddir.
+builddir ?= .
+
+# Old RHEL 5 autoconf doesn't have abs_srcdir.
+abs_srcdir ?= $(shell cd $(top_srcdir)/resize && pwd)
+
include $(top_srcdir)/subdir-rules.mk
EXTRA_DIST = \
diff --git a/ruby/Makefile.am b/ruby/Makefile.am
index c4b680f6..9073ad7d 100644
--- a/ruby/Makefile.am
+++ b/ruby/Makefile.am
@@ -15,6 +15,9 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+# Old RHEL 5 autoconf doesn't have builddir.
+builddir ?= .
+
include $(top_srcdir)/subdir-rules.mk
generator_built = \
diff --git a/sparsify/Makefile.am b/sparsify/Makefile.am
index 068a5468..b7d72cfd 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 \
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
index 85e1f392..fbf74d8b 100644
--- a/tests/data/Makefile.am
+++ b/tests/data/Makefile.am
@@ -15,10 +15,10 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-include $(top_srcdir)/subdir-rules.mk
-
# Old RHEL 5 autoconf doesn't have builddir.
-builddir ?= $(top_builddir)/tests/data
+builddir ?= .
+
+include $(top_srcdir)/subdir-rules.mk
EXTRA_DIST = \
filesanddirs-10M.tar.xz \
diff --git a/tests/extra/Makefile.am b/tests/extra/Makefile.am
index bbcb5c3b..9fdc9bcb 100644
--- a/tests/extra/Makefile.am
+++ b/tests/extra/Makefile.am
@@ -51,6 +51,9 @@
# - hard to test because guestmount forks into the background, and
# if valgrind reports errors it doesn't stop the test shell script
+# Old RHEL 5 autoconf doesn't have abs_srcdir.
+abs_srcdir ?= $(shell cd $(top_srcdir)/tests/extra && pwd)
+
EXTRA_DIST = pick-guests.pl suppressions
VG = $(VALGRIND) \
diff --git a/tests/guests/Makefile.am b/tests/guests/Makefile.am
index e20d91ca..3e5aea03 100644
--- a/tests/guests/Makefile.am
+++ b/tests/guests/Makefile.am
@@ -15,10 +15,10 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-include $(top_srcdir)/subdir-rules.mk
-
# Old RHEL 5 autoconf doesn't have builddir.
-builddir ?= $(top_builddir)/tests/guests
+builddir ?= .
+
+include $(top_srcdir)/subdir-rules.mk
EXTRA_DIST = \
guest-aux/make-debian-img.sh \