[Spice-devel] [PATCH 02/24] build: alsa is needed on linux only.
Alon Levy
alevy at redhat.com
Tue Dec 7 13:28:01 PST 2010
From: Gerd Hoffmann <kraxel at redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
configure.ac | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index 4f3b118..7718a6d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -199,10 +199,12 @@ AC_SUBST(CELT051_LIBS)
AC_SUBST(CELT051_LIBDIR)
SPICE_REQUIRES+=" celt051 >= 0.5.1.1"
-PKG_CHECK_MODULES(ALSA, alsa)
-AC_SUBST(ALSA_CFLAGS)
-AC_SUBST(ALSA_LIBS)
-SPICE_REQUIRES+=" alsa"
+if test "$os_linux" = yes; then
+ PKG_CHECK_MODULES(ALSA, alsa)
+ AC_SUBST(ALSA_CFLAGS)
+ AC_SUBST(ALSA_LIBS)
+ SPICE_REQUIRES+=" alsa"
+fi
PKG_CHECK_MODULES(SSL, openssl)
AC_SUBST(SSL_CFLAGS)
--
1.7.3.2
More information about the Spice-devel
mailing list