forked from kimchi-project/wok
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
161 lines (149 loc) · 4.84 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
#
# Project Wok
#
# Copyright IBM Corp, 2013-2016
#
# Code derived from Project Kimchi
#
# 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_INIT([wok], [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_PYTHON_MODULE([unittest])
AC_SUBST([HAVE_PYMOD_UNITTEST])
AC_SUBST([PYTHON_VERSION])
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.10])
AC_PATH_PROG([CHEETAH], [cheetah], [/usr/bin/cheetah])
# Checking for pyflakes
AC_PATH_PROG([PYFLAKES], [pyflakes])
if test "x$PYFLAKES" = "x"; then
AC_MSG_WARN([pyflakes not found])
fi
AC_ARG_ENABLE(
[sample],
[AS_HELP_STRING(
[--enable-sample],
[enable sample plugin @<:@default=no@:>@]
)],
,
[enable_sample="no"]
)
if test "${enable_sample}" = "yes"; then
AC_SUBST([ENABLE_SAMPLE], [True])
else
AC_SUBST([ENABLE_SAMPLE], [False])
fi
# 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
AC_ARG_WITH(
[spice-html5],
[AS_HELP_STRING([--with-spice-html5],
[Build Kimchi with spice-html5 @<:@default=no@:>@])],
,
[with_spice_html5="no"]
)
AM_CONDITIONAL([WITH_SPICE], [test "x$with_spice_html5" = xyes])
AC_CONFIG_FILES([
po/Makefile.in
po/gen-pot
Makefile
docs/Makefile
docs/wokd.8
docs/API/Makefile
src/Makefile
src/nginx/Makefile
src/wok/Makefile
src/wok/control/Makefile
src/wok/model/Makefile
src/wok/xmlutils/Makefile
src/wok/plugins/Makefile
src/wok/plugins/sample/Makefile
src/wok/plugins/sample/po/Makefile.in
src/wok/plugins/sample/sample.conf
src/wok/plugins/sample/ui/Makefile
src/wok/plugins/sample/ui/config/Makefile
src/wok/plugins/sample/ui/js/Makefile
src/wok/plugins/sample/ui/pages/Makefile
ui/Makefile
ui/base64/Makefile
ui/css/Makefile
ui/css/fontawesome/Makefile
ui/css/opensans/Makefile
ui/images/Makefile
ui/images/theme-default/Makefile
ui/js/Makefile
ui/libs/Makefile
ui/libs/bootstrap/Makefile
ui/libs/bootstrap-select/Makefile
ui/libs/bootstrap-select/dist/Makefile
ui/libs/bootstrap-select/dist/js/Makefile
ui/libs/bootstrap-select/dist/css/Makefile
ui/libs/jquery-bootgrid/Makefile
ui/libs/jquery-bootgrid/dist/Makefile
ui/libs/jquery-bootgrid/dist/js/Makefile
ui/libs/jquery-bootgrid/dist/css/Makefile
ui/libs/bootstrap-switch/Makefile
ui/libs/bootstrap-switch/dist/Makefile
ui/libs/bootstrap-switch/dist/js/Makefile
ui/libs/bootstrap-switch/dist/css/Makefile
ui/libs/jquery-containsNC/Makefile
ui/libs/bootstrap-editable/Makefile
ui/libs/bootstrap-editable/dist/Makefile
ui/libs/bootstrap-editable/dist/js/Makefile
ui/libs/bootstrap-editable/dist/css/Makefile
ui/libs/es5-shim/Makefile
ui/libs/jquery/Makefile
ui/libs/jquery-i18n/Makefile
ui/libs/jquery-ui/Makefile
ui/libs/jquery-ui/themes/Makefile
ui/libs/jquery-ui/themes/base/Makefile
ui/libs/jquery-ui/themes/base/images/Makefile
ui/libs/list-js/Makefile
ui/libs/lodash/Makefile
ui/libs/typeahead/Makefile
ui/pages/Makefile
ui/pages/help/Makefile
ui/pages/tabs/Makefile
ui/pages/help/en_US/Makefile
ui/config/Makefile
contrib/Makefile
contrib/DEBIAN/Makefile
contrib/DEBIAN/control
contrib/wok.spec.fedora
contrib/wok.spec.suse
tests/Makefile
],[
chmod +x po/gen-pot
])
AC_OUTPUT