summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-06-18 22:21:05 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-06-18 23:00:43 +0100
commit489da3ccdf96e995d3f53fe68eced37b16baa1d2 (patch)
tree0d40bbfa4f2fd32d24b6f9f4a744e04af3ecd898
parentbc7f1a5ef156576c069f47ea33f4977979ac032d (diff)
downloadlibguestfs-489da3ccdf96e995d3f53fe68eced37b16baa1d2.tar.gz
libguestfs-489da3ccdf96e995d3f53fe68eced37b16baa1d2.tar.xz
libguestfs-489da3ccdf96e995d3f53fe68eced37b16baa1d2.zip
build: Workaround for AC_PROG_SED not existing.
This didn't exist on ancient autoconf in RHEL 5.
-rw-r--r--configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 99330806..6a011f3d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -69,7 +69,13 @@ gl_INIT
AC_PROG_LIBTOOL
-AC_PROG_SED
+# Define $(SED).
+m4_ifdef([AC_PROG_SED],[
+ AC_PROG_SED
+],[
+ dnl ... else hope for the best
+ AC_SUBST([SED], "sed")
+])
dnl Check for basic C environment.
AC_PROG_CC_STDC