[gnome-music] Fail configure if gjs is not found



commit 2f562e99d8ced2857c4c08a92f8fe417ad11c926
Author: Guillaume Quintard <guillaume quintard gmail com>
Date:   Thu May 9 17:33:59 2013 +0200

    Fail configure if gjs is not found
    
    Fixes bug 698824
    
    Signed-off-by: Seif Lotfy <seif lotfy com>

 configure.ac |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 1da5a0b..f45d40c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -28,7 +28,10 @@ PKG_PROG_PKG_CONFIG([0.22])
 GLIB_GSETTINGS
 GOBJECT_INTROSPECTION_REQUIRE([1.35.9])
 
-AC_PATH_PROG([GJS],[gjs])
+AC_PATH_PROG([GJS],[gjs], [no])
+if test "$GJS" = "no" ; then
+       AC_MSG_ERROR([Can't find "gjs" in your PATH])
+fi
 
 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0`
 AC_SUBST(GLIB_COMPILE_RESOURCES)


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