AC_PROG_LN_S
PKG_PROG_PKG_CONFIG
AC_PATH_PROG([XSLTPROC], [xsltproc])
-AC_PATH_PROG([MKOSI], [mkosi])
AC_PROG_CC_C99
# Ideally this would be $prefix/lib/modules but default to /lib/modules for compatibility with earlier versions
AC_ARG_WITH([module_directory],
- AS_HELP_STRING([--with-module-directory=DIR], [directory in which to look for kernel modules - typically '/lib/modules' or '${prefix}/lib/modules']),
+ AS_HELP_STRING([--with-module-directory=DIR], [directory in which to look for kernel modules @<:@default=/lib/modules@:>@]),
[], [with_module_directory=/lib/modules])
AC_SUBST([module_directory], [$with_module_directory])
AC_DEFINE(ENABLE_DEBUG, [1], [Debug messages.])
])
-AC_ARG_ENABLE([python],
- AS_HELP_STRING([--enable-python], [enable Python libkmod bindings @<:@default=disabled@:>@]),
- [], [enable_python=no])
-AS_IF([test "x$enable_python" = "xyes"], [
- AM_PATH_PYTHON(,,[:])
- AC_PATH_PROG([CYTHON], [cython], [:])
-
- PKG_CHECK_MODULES([PYTHON], [python-${PYTHON_VERSION}],
- [have_python=yes],
- [PKG_CHECK_MODULES([PYTHON], [python],
- [have_python=yes],
- [have_python=no])])
-
- AS_IF([test "x$have_python" = xno],
- [AC_MSG_ERROR([*** python support requested but libraries not found])])
-])
-AM_CONDITIONAL([BUILD_PYTHON], [test "x$enable_python" = "xyes"])
-
AC_ARG_ENABLE([coverage],
AS_HELP_STRING([--enable-coverage], [enable test coverage @<:@default=disabled@:>@]),
[], [enable_coverage=no])
libkmod/docs/Makefile
libkmod/docs/version.xml
libkmod/libkmod.pc
- libkmod/python/kmod/version.py
tools/kmod.pc
])
experimental features: ${enable_experimental}
tools: ${enable_tools}
- python bindings: ${enable_python}
logging: ${enable_logging}
compression: zstd=${with_zstd} xz=${with_xz} zlib=${with_zlib}
debug: ${enable_debug}