]> git.ipfire.org Git - ipfire.org.git/blame - configure.ac
Generate favicon.ico and Apple Icons from logo
[ipfire.org.git] / configure.ac
CommitLineData
a292b0f8
MT
1AC_PREREQ([2.64])
2
3AC_INIT([ipfire.org],
4 [000],
5 [michael.tremer@ipfire.org],
6 [ipfire.org],
7 [https://www.ipfire.org/])
8
9AC_CONFIG_AUX_DIR([build-aux])
10
11AC_PREFIX_DEFAULT([/usr])
12
13AM_INIT_AUTOMAKE([
14 foreign
15 1.11
16 -Wall
17 -Wno-portability
18 silent-rules
19 tar-pax
20 subdir-objects
21])
22AM_SILENT_RULES([yes])
23
24AC_PROG_LN_S
25AC_PROG_MKDIR_P
26AC_PROG_SED
27
28# Python
77ac83e8
MT
29AM_PATH_PYTHON([3.4])
30
a292b0f8
MT
31# scss
32AC_CHECK_PROG(SASSC, [sassc], [sassc])
33
662c7910
MT
34# convert from ImageMagick
35AC_CHECK_PROG(CONVERT, [convert], [convert])
36
a292b0f8
MT
37# ------------------------------------------------------------------------------
38
39AC_ARG_WITH([systemd],
40 AS_HELP_STRING([--with-systemd], [Enable systemd support.])
41)
42
43AS_IF([test "x$with_systemd" != "xno"],
44 [PKG_CHECK_MODULES(systemd, [libsystemd],
45 [have_systemd=yes], [have_systemd=no])],
46 [have_systemd=no]
47)
48
49AS_IF([test "x$have_systemd" = "xyes"],
50 [AC_MSG_CHECKING([for systemd system unit directory])
51 AC_ARG_WITH([systemdsystemunitdir],
52 AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
53 [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]
54 )
55
56 AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
57
58 if test -n "$systemdsystemunitdir" -a "x$systemdsystemunitdir" != xno; then
59 AC_MSG_RESULT([$systemdsystemunitdir])
60 else
61 AC_MSG_ERROR([not found (try --with-systemdsystemunitdir)])
62 fi
63 ],
64 [AS_IF([test "x$with_systemd" = "xyes"],
65 [AC_MSG_ERROR([Systemd support is enabled but no systemd has been found.])
66 ])
67])
68
69AM_CONDITIONAL(HAVE_SYSTEMD, [test "x$have_systemd" = "xyes"])
70
71datadir="${datadir}/ipfire.org"
72localedir="${datadir}/translations"
73
74AC_CONFIG_FILES([
75 Makefile
76])
77
78AC_OUTPUT
79AC_MSG_RESULT([
80 ${PACKAGE_NAME} ${VERSION}
81
82 prefix: ${prefix}
83 sysconfdir: ${sysconfdir}
84 datadir: ${datadir}
85 localedir: ${localedir}
86
87 systemd support ${have_systemd}
11347e46 88 Python version: ${PYTHON_VERSION}
a292b0f8 89])