AC_PREREQ(2.61) AC_INIT([codeless], [1.0], [taler-bug@gnunet.org]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE AC_PROG_AWK AC_PROG_SED AC_ARG_ENABLE([[doc]], [AS_HELP_STRING([[--disable-doc]], [do not build any documentation])], , [enable_doc=yes]) test "x$enable_doc" = "xno" || enable_doc=yes AM_CONDITIONAL([ENABLE_DOC], [test "x$enable_doc" = "xyes"]) # # Check for Python # PC_INIT([3.4]) pyheaders=0 PC_PYTHON_CHECK_HEADERS([pyheaders=1]) # Get Python version PC_PYTHON_CHECK_VERSION() # # Check for pip3 # AC_MSG_CHECKING([pip3]) pip3 --version >/dev/null if test $? -ne 0; then AC_MSG_ERROR([Please install pip3>=6.0]) fi PIP_VERSION=$(pip3 --version | $AWK '{ print $2 }') AC_MSG_RESULT([$PIP_VERSION]) AX_COMPARE_VERSION([$PIP_VERSION],[lt],[6.0], [AC_MSG_ERROR([Please install pip3>=6.0])]) # # Check for tsc # AC_CHECK_PROG([tsc],[tsc],[yes],[no]) AM_CONDITIONAL([HAVE_TSC], [test "x$tsc" = xyes]) if test x$pyheaders != x1; then AC_MSG_WARN([Python headers not installed, might be required to build uwsgi]) fi # # Finish # AC_CONFIG_FILES([ Makefile doc/Makefile codeless/Makefile inventory/Makefile inventory/migrations/Makefile static/Makefile static/inventory/Makefile static/inventory/web-common/Makefile templates/Makefile templates/inventory/Makefile templates/inventory/reset/Makefile ]) AC_OUTPUT