- GRC_ENABLE([gr-wxgui])
- GRC_WITH([gr-wxgui])
- passed=no
- if test x$with_gr_wxgui = xyes; then
- if test x$enable_gr_wxgui = xyes; then
- AC_MSG_ERROR([Component gr-wxgui: Cannot use both --enable and --with])
- else
- PKG_CHECK_MODULES(GR_WXGUI, gr-wxgui, passed=with,
- AC_MSG_RESULT([Component gr-wxgui: PKGCONFIG cannot find info]))
- fi
- fi
- dnl if $passed = with, then "--with" worked; ignore the "--enable" stuff
- dnl otherwise, $passed = no; check the "--enable" stuff
- if test x$passed = xno; then
- AC_CONFIG_FILES([ \
- gr-wxgui/Makefile \
- gr-wxgui/gr-wxgui.pc \
- gr-wxgui/src/Makefile \
- gr-wxgui/src/python/Makefile \
- ])
+ GRC_ENABLE(gr-wxgui)
+ GRC_WITH(gr-wxgui)
+
+ dnl Don't do gr-wxgui if gnuradio-core skipped
+ GRC_CHECK_DEPENDENCY(gr-wxgui, gnuradio-core)