[vino] Check for sed with AC_PROG_SED



commit 77beb293c2009060de850d13e7cd9451e014b24f
Author: David King <amigadave amigadave com>
Date:   Wed Mar 2 00:14:09 2011 +0100

    Check for sed with AC_PROG_SED

 Makefile.am  |    7 +++----
 configure.ac |    2 ++
 2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 011e30c..1822451 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -254,14 +254,13 @@ server/vino-enums.h: $(vino_enum_headers)
 		$(vino_enum_headers) >  $@
 
 server/vino-server.desktop.in: server/vino-server.desktop.in.in
-	$(AM_V_GEN)sed -e "s|\ LIBEXECDIR\@|$(libexecdir)|" $< > $@
+	$(AM_V_GEN)$(SED) -e "s|\ LIBEXECDIR\@|$(libexecdir)|" $< > $@
 
 servicedir = $(datadir)/dbus-1/services
 nodist_service_DATA = server/org.freedesktop.Telepathy.Client.Vino.service
 
-server/org.freedesktop.Telepathy.Client.Vino.service: server/org.freedesktop.Telepathy.Client.Vino.service.in \
-		Makefile
-	@sed -e "s|[ ]libexecdir[@]|$(libexecdir)|" $< > $@
+server/org.freedesktop.Telepathy.Client.Vino.service: server/org.freedesktop.Telepathy.Client.Vino.service.in
+	$(AM_V_GEN)$(SED) -e "s|[ ]libexecdir[@]|$(libexecdir)|" $< > $@
 
 BUILT_SOURCES = \
 	server/vino-enums.c \
diff --git a/configure.ac b/configure.ac
index b467666..749e090 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,6 +33,8 @@ LT_INIT([disable-static])
 
 PKG_PROG_PKG_CONFIG([0.16])
 
+AC_PROG_SED
+
 AC_MSG_CHECKING([for glib-genmarshal script])
 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
 AS_IF([test "x$GLIB_GENMARSHAL" = "x"],



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]