forked from oVirt/ovirt-vmconsole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
181 lines (171 loc) · 6.91 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
AC_PREREQ(2.60)
define([VERSION_MAJOR], [1])
define([VERSION_MINOR], [0])
define([VERSION_FIX], [9])
define([VERSION_NUMBER], VERSION_MAJOR[.]VERSION_MINOR[.]VERSION_FIX)
define([VERSION_SUFFIX], [3])
AC_INIT([ovirt-vmconsole], VERSION_NUMBER[-]VERSION_SUFFIX)
PACKAGE_RPM_VERSION="VERSION_NUMBER"
PACKAGE_RPM_RELEASE="VERSION_SUFFIX"
PACKAGE_MAVEN_VERSION="VERSION_MAJOR.VERSION_MINOR.VERSION_SUFFIX"
AC_SUBST([PACKAGE_RPM_VERSION])
AC_SUBST([PACKAGE_RPM_RELEASE])
AC_SUBST([PACKAGE_MAVEN_VERSION])
AC_CONFIG_AUX_DIR([.])
AC_CONFIG_SRCDIR([src/ovirt_vmconsole/common/base.py])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([tar-pax])
AM_GNU_GETTEXT_VERSION([0.19])
AM_GNU_GETTEXT([external])
AC_ARG_ENABLE(
[ovirt-vmconsole-host],
[AS_HELP_STRING([--disable-ovirt-vmconsole-host], [disable ovirt-vmconsole-host @<:@default=enabled@:>@])],
,
[enable_ovirt_vmconsole_host="yes"]
)
AC_ARG_ENABLE(
[ovirt-vmconsole-proxy],
[AS_HELP_STRING([--disable-ovirt-vmconsole-proxy], [disable ovirt-vmconsole-proxy @<:@default=enabled@:>@])],
,
[enable_ovirt_vmconsole_proxy="yes"]
)
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_WITH(
[local-version],
[AS_HELP_STRING([--with-local-version], [local version to use])],
[LOCAL_VERSION="${withval}"],
[LOCAL_VERSION=""]
)
AC_ARG_WITH(
[pkgpkidir],
[AS_HELP_STRING([--with-pkgpkidir], [pki directory to use @<:@SYSCONFDIR/pki/ovirt-vmconsole@:>@])],
[pkgpkidir="${withval}"],
[pkgpkidir="\$(sysconfdir)/pki/ovirt-vmconsole"]
)
AC_ARG_WITH(
[vmconsole-user],
[AS_HELP_STRING([--with-vmconsole-user], [user to use @<:@ovirt-vmconsole@:>@])],
[VMCONSOLE_USER="${withval}"],
[VMCONSOLE_USER="ovirt-vmconsole"]
)
AC_ARG_WITH(
[vmconsole-group],
[AS_HELP_STRING([--with-vmconsole-group], [group to use @<:@ovirt-vmconsole@:>@])],
[VMCONSOLE_GROUP="${withval}"],
[VMCONSOLE_GROUP="ovirt-vmconsole"]
)
AC_ARG_WITH(
[ovirt-vmconsole-host-principal],
[AS_HELP_STRING([--with-ovirt-vmconsole-host-principal], [principal to use for host @<:@ovirt-vmconsole-host@:>@])],
[OVIRT_VMCONSOLE_HOST_PRINCIPAL="${withval}"],
[OVIRT_VMCONSOLE_HOST_PRINCIPAL="ovirt-vmconsole-host"]
)
AC_ARG_WITH(
[ovirt-vmconsole-proxy-principal],
[AS_HELP_STRING([--with-ovirt-vmconsole-proxy-principal], [principal to use for proxy @<:@ovirt-vmconsole-proxy@:>@])],
[OVIRT_VMCONSOLE_PROXY_PRINCIPAL="${withval}"],
[OVIRT_VMCONSOLE_PROXY_PRINCIPAL="ovirt-vmconsole-proxy"]
)
AC_ARG_WITH(
[ovirt-vmconsole-host-sshd-port],
[AS_HELP_STRING([--with-ovirt-vmconsole-host-sshd-port], [remote principal to use @<:@2223@:>@])],
[OVIRT_VMCONSOLE_HOST_SSHD_PORT="${withval}"],
[OVIRT_VMCONSOLE_HOST_SSHD_PORT="2223"]
)
AC_ARG_WITH(
[ovirt-vmconsole-proxy-sshd-port],
[AS_HELP_STRING([--with-ovirt-vmconsole-proxy-sshd-port], [remote principal to use @<:@2222@:>@])],
[OVIRT_VMCONSOLE_PORXY_SSHD_PORT="${withval}"],
[OVIRT_VMCONSOLE_PROXY_SSHD_PORT="2222"]
)
AC_ARG_WITH(
[ovirt-vmconsole-host-consoledir],
[AS_HELP_STRING([--with-ovirt-vmconsole-host-consoledir], [console directory @<:@LOCALSTATEDIR/run/ovirt-vmconsole-console@:>@])],
[consoledir="${withval}"],
[consoledir="\$(localstatedir)/run/ovirt-vmconsole-console"]
)
AC_PROG_INSTALL
AC_PROG_SED
AC_PROG_MAKE_SET
AC_PROG_MKDIR_P
AC_PROG_LN_S
AM_PATH_PYTHON([2.6],, [AC_MSG_ERROR([Cannot find python])])
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], [pep8])
AC_ARG_VAR([SSH], [full path to ssh])
AC_PATH_PROGS([SSH], [ssh],, [/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin])
AC_ARG_VAR([SSHD], [full path to sshd])
AC_PATH_PROGS([SSHD], [sshd],, [/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin])
test -n "${SSHD}" || AC_MSG_ERROR([sshd cannot be found])
if test "${enable_ovirt_vmconsole_host}" = "yes"; then
test -n "${SSH}" || AC_MSG_ERROR([ssh cannot be found])
fi
AC_SUBST([consoledir])
AC_SUBST([pkgemptydir], ["\$(pkgdatadir)/empty"])
AC_SUBST([mypythonlibdir], ["\$(pythondir)/ovirt_vmconsole"])
AC_SUBST([pkghostdatadir], ["\$(pkgdatadir)/ovirt-vmconsole-host"])
AC_SUBST([pkgpkidir])
AC_SUBST([pkgproxydatadir], ["\$(pkgdatadir)/ovirt-vmconsole-proxy"])
AC_SUBST([pkgsysconfdir], ["\$(sysconfdir)/ovirt-vmconsole"])
AC_SUBST([pkghostsysconfdir], ["\$(sysconfdir)/ovirt-vmconsole/ovirt-vmconsole-host"])
AC_SUBST([pkgproxysysconfdir], ["\$(sysconfdir)/ovirt-vmconsole/ovirt-vmconsole-proxy"])
AC_SUBST([LOCAL_VERSION])
AC_SUBST([VMCONSOLE_USER])
AC_SUBST([VMCONSOLE_GROUP])
AC_SUBST([OVIRT_VMCONSOLE_HOST_PRINCIPAL])
AC_SUBST([OVIRT_VMCONSOLE_PROXY_PRINCIPAL])
AC_SUBST([OVIRT_VMCONSOLE_HOST_SSHD_PORT])
AC_SUBST([OVIRT_VMCONSOLE_PROXY_SSHD_PORT])
AM_CONDITIONAL([ENABLE_HOST], [test "${enable_ovirt_vmconsole_host}" = "yes"])
AM_CONDITIONAL([ENABLE_PROXY], [test "${enable_ovirt_vmconsole_proxy}" = "yes"])
AM_CONDITIONAL([PYTHON_SYNTAX_CHECK], [test "${enable_python_syntax_check}" = "yes"])
AC_CONFIG_FILES([
Makefile
ovirt-vmconsole.spec
po/Makefile.in
selinux-ovirt_vmconsole/Makefile
selinux-ovirt_vmconsole/ovirt_vmconsole.fc.in
src/Makefile
src/ovirt-vmconsole-host/Makefile
src/ovirt-vmconsole-host/ovirt-vmconsole-host-sshd/Makefile
src/ovirt-vmconsole-host/ovirt-vmconsole-host-sshd/authorized_principals
src/ovirt-vmconsole-host/ovirt-vmconsole-host-sshd/ovirt-vmconsole-host-sshd
src/ovirt-vmconsole-host/ovirt-vmconsole-host-sshd/ovirt-vmconsole-host-sshd.systemd.in
src/ovirt-vmconsole-host/ovirt-vmconsole-host-sshd/ovirt-vmconsole-host-sshd.sysv.in
src/ovirt-vmconsole-host/ovirt-vmconsole-host-sshd/sshd_config.in
src/ovirt-vmconsole-host/ovirt-vmconsole-host.conf.in
src/ovirt-vmconsole-proxy/Makefile
src/ovirt-vmconsole-proxy/ovirt-vmconsole-proxy-sshd/Makefile
src/ovirt-vmconsole-proxy/ovirt-vmconsole-proxy-sshd/ovirt-vmconsole-proxy-sshd
src/ovirt-vmconsole-proxy/ovirt-vmconsole-proxy-sshd/ovirt-vmconsole-proxy-sshd.systemd.in
src/ovirt-vmconsole-proxy/ovirt-vmconsole-proxy-sshd/ovirt-vmconsole-proxy-sshd.sysv.in
src/ovirt-vmconsole-proxy/ovirt-vmconsole-proxy-sshd/sshd_config.in
src/ovirt-vmconsole-proxy/ovirt-vmconsole-proxy.conf.in
src/ovirt-vmconsole-proxy/ssh_config.in
src/ovirt_vmconsole/Makefile
src/ovirt_vmconsole/common/Makefile
src/ovirt_vmconsole/common/config.py.in
src/ovirt_vmconsole/ovirt_vmconsole_host_shell/Makefile
src/ovirt_vmconsole/ovirt_vmconsole_proxy_keys/Makefile
src/ovirt_vmconsole/ovirt_vmconsole_proxy_shell/Makefile
])
AC_CONFIG_FILES(
[src/ovirt-vmconsole-host/ovirt-vmconsole-host-shell:src/spawn.in],
[chmod a+x src/ovirt-vmconsole-host/ovirt-vmconsole-host-shell]
)
AC_CONFIG_FILES(
[src/ovirt-vmconsole-proxy/ovirt-vmconsole-proxy-keys:src/spawn.in],
[chmod a+x src/ovirt-vmconsole-proxy/ovirt-vmconsole-proxy-keys]
)
AC_CONFIG_FILES(
[src/ovirt-vmconsole-proxy/ovirt-vmconsole-proxy-shell:src/spawn.in],
[chmod a+x src/ovirt-vmconsole-proxy/ovirt-vmconsole-proxy-shell]
)
AC_OUTPUT