Merged r7478:7608 from michaelld/t186 into trunk. Adds ability to compile GNU Radio...
[debian/gnuradio] / config / grc_gr_audio_oss.m4
index 12190bed0ee023ad3e1c8e7a2c15fab7605430d7..386df51d875629b88678dd27a0c70df05736ff22 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_OSS],[
     ])
 
     passed=yes
+    # Don't do gr-audio-oss if gnuradio-core skipped
+    if test x$gnuradio_core_skipped = xyes; then
+        AC_MSG_RESULT([Component gr-audio-oss requires gnuradio-core, which is not being built or specified via pre-installed files.])
+       passed=no
+    fi
+    # Make sure the correct library and/or headers are available.
     case $host in
        *-*-netbsd*)
            AC_HAVE_LIBRARY(ossaudio,[],