gnome-control-center r8958 - trunk
- From: jensg svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-control-center r8958 - trunk
- Date: Mon, 15 Sep 2008 17:04:31 +0000 (UTC)
Author: jensg
Date: Mon Sep 15 17:04:31 2008
New Revision: 8958
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=8958&view=rev
Log:
2008-09-15 Jens Granseuer <jensgr gmx net>
Patch by: Nirbheek Chauhan <nirbheek chauhan gmail com>
* configure.in: add --without-libcanberra to skip building the sound
capplet (bug #551765)
Modified:
trunk/ChangeLog
trunk/configure.in
Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in (original)
+++ trunk/configure.in Mon Sep 15 17:04:31 2008
@@ -281,17 +281,28 @@
dnl sound capplet section
dnl ==============================================
-PKG_CHECK_MODULES(CANBERRA, libcanberra-gtk >= 0.4 gio-2.0, have_canberra=yes, have_canberra=no)
-
-if test "x$have_gstreamer" = "xyes" && test "x$have_canberra" = "xyes" ; then
- SOUND_CAPPLET_LIBS="$GST_LIBS -lgstaudio-0.10 -lgstinterfaces-0.10"
- SOUND_CAPPLET_CFLAGS="$GST_CFLAGS"
- AC_SUBST(SOUND_CAPPLET_LIBS)
- AC_SUBST(SOUND_CAPPLET_CFLAGS)
+AC_ARG_WITH(libcanberra,
+ AC_HELP_STRING([--without-libcanberra],[Don't build parts depending on libcanberra]),
+ with_libcanberra=$withval,
+ with_libcanberra=yes)
+
+if test "x$with_libcanberra" != "xno"; then
+ PKG_CHECK_MODULES(CANBERRA, libcanberra-gtk >= 0.4 gio-2.0, have_canberra=yes, have_canberra=no)
+ if test "x$have_gstreamer" = "xyes" && test "x$have_canberra" = "xyes" ; then
+ SOUND_CAPPLET_LIBS="$GST_LIBS -lgstaudio-0.10 -lgstinterfaces-0.10"
+ SOUND_CAPPLET_CFLAGS="$GST_CFLAGS"
+ AC_SUBST(SOUND_CAPPLET_LIBS)
+ AC_SUBST(SOUND_CAPPLET_CFLAGS)
+ else
+ if test "x$with_libcanberra" = "xyes" -a "x$have_canberra" = "xno"; then
+ AC_MSG_ERROR([Sound capplet requested but libcanberra not found])
+ fi
+ AC_MSG_NOTICE([*** Sound capplet will not be built]);
+ fi
else
AC_MSG_NOTICE([*** Sound capplet will not be built]);
fi
-AM_CONDITIONAL(BUILD_SOUND, test "x$have_gstreamer" = "xyes" && test "x$have_canberra" = "xyes")
+AM_CONDITIONAL(BUILD_SOUND, test "x$with_libcanberra" = "xyes")
dnl ==============================================
dnl Define the main variables
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]