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])
33 AX_PYTHON_MODULE([hwdata],[])
34 AX_PYTHON_MODULE([iso3166],[])
35 AX_PYTHON_MODULE([markdown2],[])
36 AX_PYTHON_MODULE([memcached],[])
37 AX_PYTHON_MODULE([textile],[])
38 AX_PYTHON_MODULE([tornado],[])
41 AC_CHECK_PROG(SASSC, [sassc], [sassc])
43 # ------------------------------------------------------------------------------
45 AC_ARG_WITH([systemd],
46 AS_HELP_STRING([--with-systemd], [Enable systemd support.])
49 AS_IF([test "x$with_systemd" != "xno"],
50 [PKG_CHECK_MODULES(systemd, [libsystemd],
51 [have_systemd=yes], [have_systemd=no])],
55 AS_IF([test "x$have_systemd" = "xyes"],
56 [AC_MSG_CHECKING([for systemd system unit directory])
57 AC_ARG_WITH([systemdsystemunitdir],
58 AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
59 [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]
62 AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
64 if test -n "$systemdsystemunitdir" -a "x$systemdsystemunitdir" != xno; then
65 AC_MSG_RESULT([$systemdsystemunitdir])
67 AC_MSG_ERROR([not found (try --with-systemdsystemunitdir)])
70 [AS_IF([test "x$with_systemd" = "xyes"],
71 [AC_MSG_ERROR([Systemd support is enabled but no systemd has been found.])
75 AM_CONDITIONAL(HAVE_SYSTEMD, [test "x$have_systemd" = "xyes"])
77 datadir="${datadir}/ipfire.org"
78 localedir="${datadir}/translations"
86 ${PACKAGE_NAME} ${VERSION}
89 sysconfdir: ${sysconfdir}
91 localedir: ${localedir}
93 systemd support ${have_systemd}
94 Python version: ${PYTHON_VERSION}