From 0cfae7c76601fd4f863c150b50c6cfd41b9ad7f2 Mon Sep 17 00:00:00 2001 From: infirit Date: Thu, 16 Oct 2014 11:44:09 +0200 Subject: Stickynotes: When explicitely enabled error when gtksourceview is not found. --- configure.ac | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index d0880f24..2fbc1e55 100644 --- a/configure.ac +++ b/configure.ac @@ -436,9 +436,13 @@ AC_ARG_ENABLE([stickynotes], enable_stickynotes=yes) if test "x$enable_stickynotes" = "xyes"; then PKG_CHECK_MODULES(STICKYNOTES, gtksourceview-$GTK_API_VERSION, - enable_stickynotes=yes, enable_stickynotes=no) + have_gtksourceview=yes, have_gtksourceview=no) + + if test "x$enable_stickynotes" = "xyes" -a "x$have_gtksourceview" = "xno"; then + AC_MSG_ERROR([Stickynotes explicitely requested but dependency not found]) + fi fi -AM_CONDITIONAL(BUILD_STICKYNOTES_APPLET, test "x$enable_stickynotes" = "xyes") +AM_CONDITIONAL(BUILD_STICKYNOTES_APPLET, test "x$have_gtksourceview" = "xyes") dnl *************************************************************************** dnl *** keyboard accessibility status applet check *** -- cgit v1.2.1