5 [michael.tremer@ipfire.org],
7 [https://www.ipfire.org/])
9 AC_CONFIG_AUX_DIR([build-aux])
11 AC_PREFIX_DEFAULT([/usr])
22 AM_SILENT_RULES([yes])
32 AC_CHECK_PROG(SASSC, [sassc], [sassc])
33 if test -z "${SASSC}"; then
34 AC_MSG_ERROR([sassc is required])
37 # convert from ImageMagick
38 AC_CHECK_PROG(CONVERT, [convert], [convert])
39 if test -z "${CONVERT}"; then
40 AC_MSG_ERROR([convert is required])
44 AC_CHECK_PROG(FFMPEG, [ffmpeg], [ffmpeg])
45 if test -z "${FFMPEG}"; then
46 AC_MSG_ERROR([ffmpeg is required])
49 # ------------------------------------------------------------------------------
51 AC_ARG_WITH([systemd],
52 AS_HELP_STRING([--with-systemd], [Enable systemd support.])
55 AS_IF([test "x$with_systemd" != "xno"],
56 [PKG_CHECK_MODULES(systemd, [libsystemd],
57 [have_systemd=yes], [have_systemd=no])],
61 AS_IF([test "x$have_systemd" = "xyes"],
62 [AC_MSG_CHECKING([for systemd system unit directory])
63 AC_ARG_WITH([systemdsystemunitdir],
64 AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
65 [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]
68 AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
70 if test -n "$systemdsystemunitdir" -a "x$systemdsystemunitdir" != xno; then
71 AC_MSG_RESULT([$systemdsystemunitdir])
73 AC_MSG_ERROR([not found (try --with-systemdsystemunitdir)])
76 [AS_IF([test "x$with_systemd" = "xyes"],
77 [AC_MSG_ERROR([Systemd support is enabled but no systemd has been found.])
81 AM_CONDITIONAL(HAVE_SYSTEMD, [test "x$have_systemd" = "xyes"])
83 datadir="${datadir}/ipfire.org"
84 localedir="${datadir}/translations"
92 ${PACKAGE_NAME} ${VERSION}
95 sysconfdir: ${sysconfdir}
97 localedir: ${localedir}
99 systemd support ${have_systemd}
100 Python version: ${PYTHON_VERSION}