5 [michael.tremer@ipfire.org],
7 [https://www.ipfire.org/])
9 AC_CONFIG_MACRO_DIR([m4])
10 AC_CONFIG_AUX_DIR([build-aux])
12 AC_PREFIX_DEFAULT([/usr])
23 AM_SILENT_RULES([yes])
30 AM_PATH_PYTHON([3.11])
32 AX_PYTHON_MODULE([PIL], [fatal])
33 AX_PYTHON_MODULE([feedparser], [fatal])
34 AX_PYTHON_MODULE([html2text], [fatal])
35 AX_PYTHON_MODULE([iso3166], [fatal])
36 AX_PYTHON_MODULE([jsonschema], [fatal])
37 AX_PYTHON_MODULE([kerberos], [fatal])
38 AX_PYTHON_MODULE([ldap], [fatal])
39 AX_PYTHON_MODULE([magic], [fatal])
40 AX_PYTHON_MODULE([panoramisk], [fatal])
41 AX_PYTHON_MODULE([phonenumbers], [fatal])
42 AX_PYTHON_MODULE([psycopg], [fatal])
43 AX_PYTHON_MODULE([pycares], [fatal])
44 AX_PYTHON_MODULE([pynliner], [fatal])
45 AX_PYTHON_MODULE([redis.asyncio], [fatal])
46 AX_PYTHON_MODULE([tornado], [fatal])
47 AX_PYTHON_MODULE([zxcvbn], [fatal])
50 AC_CHECK_PROG(SASSC, [sassc], [sassc])
51 if test -z "${SASSC}"; then
52 AC_MSG_ERROR([sassc is required])
55 # convert from ImageMagick
56 AC_CHECK_PROG(CONVERT, [convert], [convert])
57 if test -z "${CONVERT}"; then
58 AC_MSG_ERROR([convert is required])
62 AC_CHECK_PROG(FFMPEG, [ffmpeg], [ffmpeg])
63 if test -z "${FFMPEG}"; then
64 AC_MSG_ERROR([ffmpeg is required])
67 # ------------------------------------------------------------------------------
69 AC_ARG_WITH([systemd],
70 AS_HELP_STRING([--with-systemd], [Enable systemd support.])
73 AS_IF([test "x$with_systemd" != "xno"],
74 [PKG_CHECK_MODULES(systemd, [libsystemd],
75 [have_systemd=yes], [have_systemd=no])],
79 AS_IF([test "x$have_systemd" = "xyes"],
80 [AC_MSG_CHECKING([for systemd system unit directory])
81 AC_ARG_WITH([systemdsystemunitdir],
82 AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
83 [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]
86 AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
88 if test -n "$systemdsystemunitdir" -a "x$systemdsystemunitdir" != xno; then
89 AC_MSG_RESULT([$systemdsystemunitdir])
91 AC_MSG_ERROR([not found (try --with-systemdsystemunitdir)])
94 [AS_IF([test "x$with_systemd" = "xyes"],
95 [AC_MSG_ERROR([Systemd support is enabled but no systemd has been found.])
99 AM_CONDITIONAL(HAVE_SYSTEMD, [test "x$have_systemd" = "xyes"])
101 datadir="${datadir}/ipfire.org"
102 localedir="${datadir}/translations"
110 ${PACKAGE_NAME} ${VERSION}
113 sysconfdir: ${sysconfdir}
115 localedir: ${localedir}
117 systemd support ${have_systemd}
118 Python version: ${PYTHON_VERSION}