-
Notifications
You must be signed in to change notification settings - Fork 32
/
configure.ac
132 lines (122 loc) · 4.43 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
dnl
dnl ovirt-hosted-engine-setup -- ovirt with a manager in a VM
dnl Copyright (C) 2013-2021 Red Hat, Inc.
dnl
dnl This library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Lesser General Public
dnl License as published by the Free Software Foundation; either
dnl version 2.1 of the License, or (at your option) any later version.
dnl
dnl This library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dnl Lesser General Public License for more details.
dnl
dnl You should have received a copy of the GNU Lesser General Public
dnl License along with this library; if not, write to the Free Software
dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
dnl
AC_PREREQ(2.60)
define([VERSION_MAJOR], [2])
define([VERSION_MINOR], [7])
define([VERSION_FIX], [2])
define([VERSION_NUMBER], VERSION_MAJOR[.]VERSION_MINOR[.]VERSION_FIX)
define([VERSION_RELEASE], [0.0])
define([VERSION_SUFFIX], [master])
AC_INIT(
[ovirt-hosted-engine-setup],
[VERSION_NUMBER[-]VERSION_RELEASE[.]VERSION_SUFFIX],
[],
[http://www.ovirt.org])
PACKAGE_RPM_VERSION="VERSION_NUMBER"
PACKAGE_RPM_RELEASE="VERSION_RELEASE.VERSION_SUFFIX"
AC_SUBST([PACKAGE_RPM_VERSION])
AC_SUBST([PACKAGE_RPM_RELEASE])
AC_CONFIG_AUX_DIR([.])
AC_CONFIG_SRCDIR([src/ovirt_hosted_engine_setup/__init__.py])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([1.9 tar-pax])
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.6])
AC_ARG_ENABLE(
[python-syntax-check],
[AS_HELP_STRING([--disable-python-syntax-check], [disable python syntax check @<:@default=enabled@:>@])],
,
[enable_python_syntax_check="yes"]
)
AC_ARG_ENABLE(
[ansible-syntax-check],
[AS_HELP_STRING([--disable-ansible-syntax-check], [disable ansible syntax check @<:@default=enabled@:>@])],
,
[enable_ansible_syntax_check="yes"]
)
AC_PROG_INSTALL
AC_PROG_SED
AC_PROG_MAKE_SET
AC_PROG_MKDIR_P
AC_PROG_LN_S
AX_LN_SR
AC_ARG_VAR([PYFLAKES], [path to pyflakes utility])
AC_CHECK_PROGS([PYFLAKES], [pyflakes])
AC_ARG_VAR([PEP8], [path to pep8 utility])
AC_CHECK_PROGS([PEP8], [pycodestyle-3 pep8])
AC_ARG_VAR([PYTEST], [path to py.test utility])
AC_CHECK_PROGS([PYTEST], [py.test py.test-3])
AC_ARG_VAR([ISORT], [path to isort utility])
AC_CHECK_PROGS([ISORT], [isort])
AC_ARG_VAR([RPMBUILD], [path to rpmbuild utility])
AC_CHECK_PROGS([RPMBUILD], [rpmbuild])
AC_ARG_VAR([ANSIBLE_LINT], [path to ansible-lint utility])
AC_CHECK_PROGS([ANSIBLE_LINT], [ansible-lint])
AM_PATH_PYTHON([2.6],, [AC_MSG_ERROR([Cannot find python])])
otopiplugindir="\$(datadir)/otopi/plugins"
ovirthostedengineplugindir="\$(pkgdatadir)/plugins"
ovirthostedenginelibrarydir="\$(pkgdatadir)/library"
ovirthostedenginetemplatedir="\$(pkgdatadir)/templates"
ovirthostedenginescriptsdir="\$(pkgdatadir)/scripts"
ovirthostedengineansibledir="\$(pkgdatadir)/he_ansible"
ovirthostedenginelibdir="\$(pythondir)/ovirt_hosted_engine_setup"
vdsmhooksdir="\$(libexecdir)/vdsm/hooks"
APPLIANCE_RPM_PREFIX="ovirt-engine"
APPLIANCE40_RPM_PREFIX="ovirt-engine"
AC_SUBST([otopiplugindir])
AC_SUBST([ovirthostedengineplugindir])
AC_SUBST([ovirthostedenginelibrarydir])
AC_SUBST([ovirthostedenginetemplatedir])
AC_SUBST([ovirthostedenginescriptsdir])
AC_SUBST([ovirthostedengineansibledir])
AC_SUBST([ovirthostedenginelibdir])
AC_SUBST([vdsmhooksdir])
AC_SUBST([APPLIANCE_RPM_PREFIX])
AC_SUBST([APPLIANCE40_RPM_PREFIX])
AM_CONDITIONAL([PYTHON_SYNTAX_CHECK], [test "${enable_python_syntax_check}" = "yes"])
AM_CONDITIONAL([ANSIBLE_SYNTAX_CHECK], [test "${enable_ansible_syntax_check}" = "yes"])
AC_CONFIG_FILES([
Makefile
ovirt-hosted-engine-setup.spec
build/Makefile
man/Makefile
po/Makefile.in
src/Makefile
src/bin/Makefile
src/ovirt_hosted_engine_setup/Makefile
src/ovirt_hosted_engine_setup/ovf/Makefile
src/plugins/Makefile
src/plugins/gr-he-common/Makefile
src/plugins/gr-he-common/core/Makefile
src/plugins/gr-he-common/engine/Makefile
src/plugins/gr-he-common/network/Makefile
src/plugins/gr-he-common/sanlock/Makefile
src/plugins/gr-he-common/vm/Makefile
src/plugins/gr-he-ansiblesetup/Makefile
src/plugins/gr-he-ansiblesetup/core/Makefile
src/vdsm_hooks/Makefile
src/vdsm_hooks/hostedengine.py
src/he_ansible/Makefile
src/he_ansible/callback_plugins/Makefile
templates/Makefile
tests/Makefile
])
AC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])
AC_OUTPUT