[Spice-devel] [PATCH spice-gtk 2/2] build-sys: if stow is installed, default prefix to it

Marc-André Lureau marcandre.lureau at gmail.com
Fri Mar 16 09:13:49 PDT 2012


This is going to make life easier for stow users, including myself.
---
 configure.ac |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 760736a..1ac291f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,6 +34,13 @@ if test "x$ac_cv_prog_cc_c99" = xno; then
     AC_MSG_ERROR([C99 compiler is required.])
 fi
 
+
+AC_CHECK_PROG([STOW], [stow], [yes], [no])
+AS_IF([test "x$STOW" = "xyes" && test -d /usr/local/stow], [
+    AC_MSG_NOTICE([*** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME} ***])
+    ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}"
+])
+
 AC_PROG_INSTALL
 AC_CANONICAL_HOST
 AC_PROG_LIBTOOL
-- 
1.7.7.6



More information about the Spice-devel mailing list