Merged r7478:7608 from michaelld/t186 into trunk. Adds ability to compile GNU Radio...
[debian/gnuradio] / config / grc_gr_audio_alsa.m4
index dad8c21b7e18a546ca5344069cf990d533f1cfde..471d33b072621629e6a09a73c0720197cc609b83 100644 (file)
@@ -1,4 +1,4 @@
-dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc.
+dnl Copyright 2001,2002,2003,2004,2005,2006,2008 Free Software Foundation, Inc.
 dnl 
 dnl This file is part of GNU Radio
 dnl 
@@ -27,6 +27,12 @@ AC_DEFUN([GRC_GR_AUDIO_ALSA],[
     ])
 
     passed=yes
+    # Don't do gr-audio-alsa if gnuradio-core skipped
+    if test x$gnuradio_core_skipped = xyes; then
+        AC_MSG_RESULT([Component gr-audio-osx requires gnuradio-core, which is not being built or specified via pre-installed files.])
+       passed=no
+    fi
+    # Don't do gr-audio-alsa if the 'alsa' package is not installed.
     PKG_CHECK_MODULES(ALSA, alsa >= 0.9,[],
         [passed=no;AC_MSG_RESULT([gr-audio-alsa requires package alsa, not found.])])