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-21 12:52:21 +0100
commitd8019131738cd13f56f2b1ac5770b0992d6aea84 (patch)
treeee7e69c536d3b346175f0f7dfd55146bbd092390
parent2078360d59793df5f98e9d981a34f612a9c63669 (diff)
downloadlibguestfs-d8019131738cd13f56f2b1ac5770b0992d6aea84.tar.gz
libguestfs-d8019131738cd13f56f2b1ac5770b0992d6aea84.tar.xz
libguestfs-d8019131738cd13f56f2b1ac5770b0992d6aea84.zip
build: Workaround for AC_PROG_SED not existing.
This didn't exist on ancient autoconf in RHEL 5. (cherry picked from commit 489da3ccdf96e995d3f53fe68eced37b16baa1d2)
-rw-r--r--configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 6a666112..3ed696c6 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