-
Notifications
You must be signed in to change notification settings - Fork 41
/
configure.ac
93 lines (84 loc) · 2.8 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Ginger
#
# Copyright IBM Corp, 2014-2016
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
AC_PREREQ([2.63])
AC_INIT([ginger], [m4_esyscmd([./build-aux/pkg-version --version])])
AC_SUBST([PACKAGE_VERSION],
[m4_esyscmd([./build-aux/pkg-version --version])])
AC_SUBST([PACKAGE_RELEASE],
[m4_esyscmd([./build-aux/pkg-version --release])])
# Testing for version and release
AS_IF([test "x$PACKAGE_VERSION" = x],
AC_MSG_ERROR([package version not defined]))
AS_IF([test "x$PACKAGE_RELEASE" = x],
AC_MSG_ERROR([package release not defined]))
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([-Wno-portability])
AM_PATH_PYTHON([2.6])
AC_PATH_PROG([PEP8], [pep8], [/usr/bin/pep8])
AC_PATH_PROG([GIT], [git], [/usr/bin/git])
AC_SUBST([PYTHON_VERSION])
AC_PYTHON_MODULE([wok])
AC_SUBST([HAVE_PYMOD_WOK])
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.18])
AC_PATH_PROG([CHEETAH], [cheetah], [/usr/bin/cheetah])
AC_PYTHON_MODULE([unittest])
AC_SUBST([HAVE_PYMOD_UNITTEST])
AC_SUBST([PYTHON_VERSION])
# check for systemd
PKG_PROG_PKG_CONFIG
AC_ARG_WITH([systemdsystemunitdir],
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
[], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
if test "x$with_systemdsystemunitdir" != xno; then
AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
fi
# Checking for pyflakes
AC_PATH_PROG([PYFLAKES], [pyflakes])
if test "x$PYFLAKES" = "x"; then
AC_MSG_WARN([pyflakes not found])
fi
AC_CONFIG_FILES([
Makefile
control/Makefile
model/Makefile
po/Makefile.in
po/gen-pot
ui/Makefile
ui/config/Makefile
ui/css/Makefile
ui/css/base/Makefile
ui/css/base/images/Makefile
ui/js/Makefile
ui/images/Makefile
ui/pages/Makefile
ui/pages/tabs/Makefile
ui/pages/help/Makefile
ui/pages/help/en_US/Makefile
ui/pages/help/pt_BR/Makefile
ui/pages/help/zh_CN/Makefile
contrib/Makefile
contrib/DEBIAN/Makefile
contrib/DEBIAN/control
contrib/ginger.spec.fedora
contrib/ginger.spec.suse
tests/Makefile
],[
chmod +x po/gen-pot
])
AC_OUTPUT