[recipes] Optionally depend on libcanberra



commit dc0d9cc7f2cd8c4e8757dbfc6c7cf1b63f3b4f1a
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Feb 17 20:35:08 2017 -0500

    Optionally depend on libcanberra
    
    We will use this to play a sound when timers expire.

 configure.ac |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 4b46353..b396ff9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -121,6 +121,17 @@ if test "x$enable_autoar" = xyes; then
 fi
 AM_CONDITIONAL(USE_AUTOAR, test "x$enable_autoar" = xyes)
 
+AC_ARG_ENABLE(canberra,
+              [AS_HELP_STRING([--enable-canberra],
+                              [Use libcanberra for sound support])],,
+              [enable_canberra="yes"])
+if test "x$enable_canberra" = xyes; then
+        CANBERRA_DEP=libcanberra
+        AC_DEFINE([ENABLE_CANBERRA], [1], [Define to 1 if libcanberra is used])
+        CANBERRA_VERSION="$($PKG_CONFIG --modversion $CANBERRA_DEP)"
+        AC_SUBST([CANBERRA_VERSION])
+        AC_DEFINE_UNQUOTED([CANBERRA_VERSION], ["${CANBERRA_VERSION}"], [The version of libcanberra])
+fi
 
 dnl ***********************************************************************
 dnl Check for required packages
@@ -128,7 +139,8 @@ dnl ***********************************************************************
 PKG_CHECK_MODULES(RECIPES, [gio-2.0 >= 2.42
                             gtk+-3.0 >= 3.20
                             $AUTOAR_DEP
-                            $GSPELL_DEP])
+                            $GSPELL_DEP
+                            $CANBERRA_DEP])
 
 
 LIBGD_INIT([tagged-entry])


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