Merged r7478:7608 from michaelld/t186 into trunk. Adds ability to compile GNU Radio...
[debian/gnuradio] / config / grc_gr_trellis.m4
index cde1f1cca81d729d66f722197353aacdff68f032..6fbaa1ac8147d6367315e6f36cede633399a1256 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 
@@ -32,6 +32,12 @@ AC_DEFUN([GRC_GR_TRELLIS],[
     ])
 
     passed=yes
+    # Don't do gr-trellis if gnuradio-core skipped
+    if test x$gnuradio_core_skipped = xyes; then
+        AC_MSG_RESULT([Component gr-trellis requires gnuradio-core, which is not being built or specified via pre-installed files.])
+       passed=no
+    fi
+
     GRC_BUILD_CONDITIONAL([gr-trellis],[
         dnl run_tests is created from run_tests.in.  Make it executable.
        AC_CONFIG_COMMANDS([run_tests_gr_trellis], [chmod +x gr-trellis/src/python/run_tests])