]> git.ipfire.org Git - ddns.git/blob - configure.ac
Improve man pages
[ddns.git] / configure.ac
1 ###############################################################################
2 # #
3 # Pakfire - The IPFire package management system #
4 # Copyright (C) 2013 Pakfire development team #
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 ###############################################################################
20
21 AC_PREREQ([2.64])
22
23 AC_INIT([ddns],
24 [003],
25 [info@ipfire.org],
26 [ddns],
27 [http://git.ipfire.org/?p=oddments/ddns.git;a=summary])
28
29 AC_CONFIG_MACRO_DIR([m4])
30 AC_CONFIG_AUX_DIR([build-aux])
31
32 AC_PREFIX_DEFAULT([/usr])
33
34 AM_INIT_AUTOMAKE([
35 foreign
36 1.11
37 -Wall
38 -Wno-portability
39 silent-rules
40 tar-pax
41 subdir-objects
42 ])
43 AM_SILENT_RULES([yes])
44
45 IT_PROG_INTLTOOL([0.40.0])
46
47 GETTEXT_PACKAGE=ddns
48 AC_SUBST(GETTEXT_PACKAGE)
49
50 AC_PROG_LN_S
51 AC_PROG_MKDIR_P
52 AC_PROG_SED
53
54 AC_PATH_PROG([XSLTPROC], [xsltproc])
55
56 # Python
57 AM_PATH_PYTHON([2.7])
58
59 # BIND nsupdate
60 AC_CHECK_TOOL([NSUPDATE], [nsupdate])
61 if test -z "${NSUPDATE}"; then
62 AC_MSG_ERROR([*** nsupdate not found])
63 fi
64
65 save_LIBS="$LIBS"
66
67 # ------------------------------------------------------------------------------
68 have_manpages=no
69 AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-man-pages],
70 [do not install man pages]))
71 AS_IF([test "x$enable_manpages" != xno], [have_manpages=yes])
72 AM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
73
74 # ------------------------------------------------------------------------------
75
76 AC_CONFIG_FILES([
77 Makefile
78 po/Makefile.in
79 src/ddns/__version__.py
80 ])
81
82 AC_OUTPUT
83 AC_MSG_RESULT([
84 ${PACKAGE_NAME} ${VERSION}
85
86 prefix : ${prefix}
87 sysconfdir : ${sysconfdir}
88
89 nsupdate : ${NSUPDATE}
90
91 Generate man-pages : ${have_manpages}
92 ])