summaryrefslogtreecommitdiff
path: root/gr-howto-write-a-block/config/gr_standalone.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gr-howto-write-a-block/config/gr_standalone.m4')
-rw-r--r--gr-howto-write-a-block/config/gr_standalone.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/gr-howto-write-a-block/config/gr_standalone.m4 b/gr-howto-write-a-block/config/gr_standalone.m4
index 44d9235f45..2f8851676d 100644
--- a/gr-howto-write-a-block/config/gr_standalone.m4
+++ b/gr-howto-write-a-block/config/gr_standalone.m4
@@ -116,4 +116,18 @@ m4_define([GR_STANDALONE],
PKG_CHECK_MODULES(GNURADIO_CORE, gnuradio-core >= 3)
LIBS="$LIBS $GNURADIO_CORE_LIBS"
+
+ dnl Allow user to choose whether to generate SWIG/Python
+ dnl Default is enabled
+ AC_ARG_ENABLE([python],
+ [AS_HELP_STRING([--enable-python],
+ [generate SWIG/Python components (default is yes)])],
+ [case "${enableval}" in
+ yes) enable_python=yes ;;
+ no) enable_python=no ;;
+ *) AC_MSG_ERROR([bad value ${enableval} for --enable-python]) ;;
+ esac],
+ [enable_python=yes]
+ )
+ AM_CONDITIONAL([PYTHON], [test x$enable_python = xyes])
])