Skip to content
Snippets Groups Projects
Commit aee46bce authored by Adrien Béraud's avatar Adrien Béraud
Browse files

configure: add --disable-python, --disable-doc

Allows to control whether to build the Python cython binding
and the Doxygen documentation.
parent d16260ec
No related branches found
No related tags found
No related merge requests found
...@@ -10,25 +10,26 @@ AS_IF([test "x$enable_debug" = "xyes"], ...@@ -10,25 +10,26 @@ AS_IF([test "x$enable_debug" = "xyes"],
[CXXFLAGS="${CXXFLAGS} -g -Wno-return-type -Wall -Wextra -Wnon-virtual-dtor -O0"], [CXXFLAGS="${CXXFLAGS} -g -Wno-return-type -Wall -Wextra -Wnon-virtual-dtor -O0"],
[CXXFLAGS="${CXXFLAGS} -O3"]) [CXXFLAGS="${CXXFLAGS} -O3"])
AC_PROG_CC
AC_PROG_CXX AC_PROG_CXX
AM_PROG_AR AM_PROG_AR
dnl Check for Doxygen
AC_ARG_ENABLE([doc], [AS_HELP_STRING([--disable-doc], [Disable documentation generation (doxygen)])])
AS_IF([test "x$enable_doc" != "xno"], [
AC_CHECK_PROGS([DOXYGEN], [doxygen]) AC_CHECK_PROGS([DOXYGEN], [doxygen])
if test -z "$DOXYGEN"; AS_IF([test -z "$DOXYGEN"],[AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])])
then AC_MSG_WARN([Doxygen not found - continuing without Doxygen support]) ])
fi
AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"]) AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"])
dnl Check for Python
AC_ARG_ENABLE([python], [AS_HELP_STRING([--disable-python], [Disble python binding])])
AS_IF([test "x$enable_python" != "xno"], [
AM_PATH_PYTHON([3.3],, [:]) AM_PATH_PYTHON([3.3],, [:])
AM_CONDITIONAL([HAVE_PYTHON], [test -n "$PYTHON"]) AS_IF([test -n "$PYTHON"],[
if test -n "$PYTHON"; then
AC_CHECK_PROGS([CYTHON], [cython]) AC_CHECK_PROGS([CYTHON], [cython])
if test -z "$CYTHON"; AS_IF([test -z "$CYTHON"],[AC_MSG_WARN([Cython not found - continuing without python support])])
then AC_MSG_WARN([Cython not found - continuing without cython support]) ])
fi ])
fi
AM_CONDITIONAL([USE_CYTHON], [test -n "$CYTHON"]) AM_CONDITIONAL([USE_CYTHON], [test -n "$CYTHON"])
case "${host_os}" in case "${host_os}" in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment