Martin Milata
2013-08-30 13:19:55 UTC
Related to #100.
Signed-off-by: Martin Milata <mmilata-H+wXaHxf7aLQT0dZR+***@public.gmane.org>
---
configure.ac | 7 +++++++
python/doc/Makefile.am | 4 +++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 2b16250..63769b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,6 +38,13 @@ PKG_CHECK_MODULES([PYTHON], [python2],,[
PYTHON_CFLAGS='-I/usr/include/python2.6'
])
+AC_ARG_ENABLE([python-manpage],
+ [AS_HELP_STRING([--disable-python-manpage],
+ [Disable python bindings manpage build])],
+ [enable_python_manpage=$enableval],
+ [enable_python_manpage=yes])
+AM_CONDITIONAL(ENABLE_PYTHON_MANPAGE, [test $enable_python_manpage = yes])
+
AC_CHECK_LIB([opcodes], [main], [have_libopcodes=yes], [have_libopcodes=no])
[if test "$have_libopcodes" = "no" -a "$target_cpu" = "x86_64"; then]
[echo "The libopcodes library was not found in the search path. The core stacktrace support "]
diff --git a/python/doc/Makefile.am b/python/doc/Makefile.am
index 4dc6221..a0350cf 100644
--- a/python/doc/Makefile.am
+++ b/python/doc/Makefile.am
@@ -133,6 +133,8 @@ EXTRA_DIST = \
stacktrace.rst \
clustering.rst
-man3_MANS = _build/man/satyr-python.3
+if ENABLE_PYTHON_MANPAGE
+ man3_MANS = _build/man/satyr-python.3
+endif
_build/man/satyr-python.3: conf.py man
Signed-off-by: Martin Milata <mmilata-H+wXaHxf7aLQT0dZR+***@public.gmane.org>
---
configure.ac | 7 +++++++
python/doc/Makefile.am | 4 +++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 2b16250..63769b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,6 +38,13 @@ PKG_CHECK_MODULES([PYTHON], [python2],,[
PYTHON_CFLAGS='-I/usr/include/python2.6'
])
+AC_ARG_ENABLE([python-manpage],
+ [AS_HELP_STRING([--disable-python-manpage],
+ [Disable python bindings manpage build])],
+ [enable_python_manpage=$enableval],
+ [enable_python_manpage=yes])
+AM_CONDITIONAL(ENABLE_PYTHON_MANPAGE, [test $enable_python_manpage = yes])
+
AC_CHECK_LIB([opcodes], [main], [have_libopcodes=yes], [have_libopcodes=no])
[if test "$have_libopcodes" = "no" -a "$target_cpu" = "x86_64"; then]
[echo "The libopcodes library was not found in the search path. The core stacktrace support "]
diff --git a/python/doc/Makefile.am b/python/doc/Makefile.am
index 4dc6221..a0350cf 100644
--- a/python/doc/Makefile.am
+++ b/python/doc/Makefile.am
@@ -133,6 +133,8 @@ EXTRA_DIST = \
stacktrace.rst \
clustering.rst
-man3_MANS = _build/man/satyr-python.3
+if ENABLE_PYTHON_MANPAGE
+ man3_MANS = _build/man/satyr-python.3
+endif
_build/man/satyr-python.3: conf.py man
--
1.8.3.1
1.8.3.1