swh:1:snp:56338107753f6c77b5cc725ca54f6814b0403aa5
Tip revision: 1a005061ad465f19ccb4fdcbc3dfe797a2bc892f authored by Nick Croucher on 21 December 2021, 12:00:03 UTC
Improve dependency testing
Improve dependency testing
Tip revision: 1a00506
configure.ac
AC_INIT([gubbins], m4_esyscmd([tr -d '\n' < VERSION]), [n.croucher@imperial.ac.uk], [$(PACKAGE_NAME)$(AC_PACKAGE_VERSION)], [https://github.com/nickjcroucher/gubbins])
AM_INIT_AUTOMAKE([foreign tar-pax subdir-objects])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_HEADERS([config.h])
# Add our own macro dir, so we can check for PTHREAD
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_HOST
case $host_os in
*darwin*)
HOST_OS=osx
;;
*linux*)
HOST_OS=linux
;;
*)
HOST_OS=unknown
;;
esac
AM_CONDITIONAL([HOST_LINUX],[test x$HOST_OS = xlinux])
AC_PROG_LIBTOOL
AC_PROG_CC
AC_PROG_CXX
# Checks for pthread
AX_PTHREAD
# Checks for code coverage
AX_CODE_COVERAGE
# Ensure zlib is available
PKG_CHECK_MODULES([zlib], [zlib])
AC_CHECK_HEADERS([zlib.h math.h])
# Check for Python
AM_PATH_PYTHON([3.8],
[],
[AC_MSG_WARN([Python not found. Python is required to build presage python binding. Python can be obtained from http://www.python.org])])
# Define a new recursive target. In our case it produces a .deb installable.
#AM_EXTRA_RECURSIVE_TARGETS([release])
AC_CONFIG_FILES([Makefile src/Makefile release/Makefile python/Makefile])
AC_OUTPUT