[gnome-games] build: Only check --with-sound when sound is enabled



commit 16b7df4d0f04a097e0f8f794bdc89c813531f35a
Author: Christian Persch <chpe gnome org>
Date:   Fri Jul 3 23:33:28 2009 +0200

    build: Only check --with-sound when sound is enabled
    
    Otherwise set with_sound=none to get correct output in the summary at
    the end of the configure run.

 configure.in |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/configure.in b/configure.in
index c4335dc..26f7872 100644
--- a/configure.in
+++ b/configure.in
@@ -342,12 +342,16 @@ fi
 
 # Check which sound library to use
 
-AC_MSG_CHECKING([for which sound library to use])
-AC_ARG_WITH([sound],
-  [AS_HELP_STRING([--with-sound=libcanberra|sdl_mixer (default: libcanberra)])],
-  [with_sound="$withval"],
-  [with_sound=libcanberra])
-AC_MSG_RESULT([$with_sound])
+if test "$enable_sound" = "yes"; then
+  AC_MSG_CHECKING([for which sound library to use])
+  AC_ARG_WITH([sound],
+    [AS_HELP_STRING([--with-sound=libcanberra|sdl_mixer (default: libcanberra)])],
+    [with_sound="$withval"],
+    [with_sound=libcanberra])
+  AC_MSG_RESULT([$with_sound])
+else
+  with_sound=no
+fi
 
 # Clutter
 



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