Merged r7478:7608 from michaelld/t186 into trunk. Adds ability to compile GNU Radio...
[debian/gnuradio] / config / grc_gnuradio_examples.m4
index fc758e893378fb8e6ab48b6fd60c968e950ef755..5dc6caf0a25bf2ad8eec021dfe7034553b80c8a3 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc.
+# Copyright 2001,2002,2003,2004,2005,2006,2008 Free Software Foundation, Inc.
 # 
 # This file is part of GNU Radio
 # 
@@ -39,5 +39,11 @@ AC_DEFUN([GRC_GNURADIO_EXAMPLES],[
     ])
 
     passed=yes
+    # Don't do gnuradio-examples if gnuradio-core skipped
+    if test x$gnuradio_core_skipped = xyes; then
+        AC_MSG_RESULT([Component gnuradio-examples requires gnuradio-core, which is not being built or specified via pre-installed files.])
+        passed=no
+    fi
+
     GRC_BUILD_CONDITIONAL([gnuradio-examples])
 ])