]> git.ipfire.org Git - ddns.git/blame - configure.ac
Bump version to 009
[ddns.git] / configure.ac
CommitLineData
3fdcb9d1
MT
1###############################################################################
2# #
dc11f1ea
MT
3# Pakfire - The IPFire package management system #
4# Copyright (C) 2013 Pakfire development team #
3fdcb9d1
MT
5# #
6# This program is free software: you can redistribute it and/or modify #
7# it under the terms of the GNU General Public License as published by #
8# the Free Software Foundation, either version 3 of the License, or #
9# (at your option) any later version. #
10# #
11# This program is distributed in the hope that it will be useful, #
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
18# #
19###############################################################################
f22ab085 20
dc11f1ea 21AC_PREREQ([2.64])
f22ab085 22
dc11f1ea 23AC_INIT([ddns],
41fe38ac 24 [009],
dc11f1ea
MT
25 [info@ipfire.org],
26 [ddns],
27 [http://git.ipfire.org/?p=oddments/ddns.git;a=summary])
f22ab085 28
dc11f1ea
MT
29AC_CONFIG_MACRO_DIR([m4])
30AC_CONFIG_AUX_DIR([build-aux])
f22ab085 31
dc11f1ea 32AC_PREFIX_DEFAULT([/usr])
f22ab085 33
dc11f1ea
MT
34AM_INIT_AUTOMAKE([
35 foreign
36 1.11
37 -Wall
38 -Wno-portability
39 silent-rules
40 tar-pax
41 subdir-objects
42])
43AM_SILENT_RULES([yes])
f22ab085 44
dc11f1ea 45IT_PROG_INTLTOOL([0.40.0])
f22ab085 46
dc11f1ea
MT
47GETTEXT_PACKAGE=ddns
48AC_SUBST(GETTEXT_PACKAGE)
49
50AC_PROG_LN_S
51AC_PROG_MKDIR_P
0b5e00a2 52AC_PROG_SED
dc11f1ea 53
2443dd94
SS
54AC_PATH_PROG([XSLTPROC], [xsltproc])
55
dc11f1ea
MT
56# Python
57AM_PATH_PYTHON([2.7])
58
59save_LIBS="$LIBS"
60
673f2c74
SS
61# pkg-config
62PKG_PROG_PKG_CONFIG
63# This makes sure pkg.m4 is available.
64m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
65
2443dd94
SS
66# ------------------------------------------------------------------------------
67have_manpages=no
0b23388b
MT
68AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-man-pages],
69 [do not install man pages]))
2443dd94
SS
70AS_IF([test "x$enable_manpages" != xno], [have_manpages=yes])
71AM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
72
73# ------------------------------------------------------------------------------
74
673f2c74
SS
75AC_ARG_WITH([systemd],
76 AS_HELP_STRING([--with-systemd], [Enable systemd support.])
77)
78
79AS_IF([test "x$with_systemd" != "xno"],
78694cf1 80 [PKG_CHECK_MODULES(systemd, [libsystemd],
673f2c74
SS
81 [have_systemd=yes], [have_systemd=no])],
82 [have_systemd=no]
83)
84
85AS_IF([test "x$have_systemd" = "xyes"],
86 [AC_MSG_CHECKING([for systemd system unit directory])
87 AC_ARG_WITH([systemdsystemunitdir],
88 AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
89 [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]
90 )
91
92 AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
93
94 if test -n "$systemdsystemunitdir" -a "x$systemdsystemunitdir" != xno; then
95 AC_MSG_RESULT([$systemdsystemunitdir])
96 else
97 AC_MSG_ERROR([not found (try --with-systemdsystemunitdir)])
98 fi
99 ],
100 [AS_IF([test "x$with_systemd" = "xyes"],
101 [AC_MSG_ERROR([Systemd support is enabled but no systemd has been found.])
102 ])
103])
104
105AM_CONDITIONAL(HAVE_SYSTEMD, [test "x$have_systemd" = "xyes"])
106
107# ------------------------------------------------------------------------------
108
dc11f1ea
MT
109AC_CONFIG_FILES([
110 Makefile
111 po/Makefile.in
112 src/ddns/__version__.py
113])
114
115AC_OUTPUT
116AC_MSG_RESULT([
7f18751f 117 ${PACKAGE_NAME} ${VERSION}
dc11f1ea 118
673f2c74
SS
119 prefix: ${prefix}
120 sysconfdir: ${sysconfdir}
2443dd94 121
673f2c74
SS
122 Systemd support ${have_systemd}
123 Generate man-pages: ${have_manpages}
dc11f1ea 124])