This repository has been archived by the owner on May 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
configure.ac
96 lines (82 loc) · 3.2 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
AC_INIT([ovirt-node], [3.0.0], [[email protected]])
AM_INIT_AUTOMAKE([-Wall -Werror foreign -Wno-portability tar-pax])
AC_SUBST([FEDORA],[[`rpm --eval '%{fedora}'|sed 's/[^0-9]//g'`]])
AC_SUBST([RHEL], [[`rpm --eval '%{rhel}'|sed 's/[^0-9]//g'`]])
AC_SUBST([CENTOS], [[`rpm --eval '%{centos}'|sed 's/[^0-9]//g'`]])
AC_SUBST([DISTRO])
AC_SUBST([PACKAGE_NAME])
AC_SUBST([PRODUCT_NAME])
if test "$FEDORA"; then
DISTRO=ovirt$FEDORA
fi
if test "$RHEL"; then
DISTRO=rhevh$RHEL
fi
if test "$CENTOS"; then
DISTRO=centos$CENTOS
fi
AM_CONDITIONAL(TARGET_FEDORA, test x"$FEDORA" != x)
AM_CONDITIONAL(TARGET_RHEL, test x"$RHEL" != x && test x"$CENTOS" == x)
AM_CONDITIONAL(TARGET_CENTOS, test x"$CENTOS" != x)
AM_CONDITIONAL(TARGET_SYSTEMD, test 0$RHEL -ge 7 || test 0$FEDORA -ge 16 || test 0$CENTOS -ge 7)
AM_CONDITIONAL(TARGET_NEW_DRACUT, test 0$RHEL -ge 7 || test 0$FEDORA -ge 15 || test 0$CENTOS -ge 7)
AM_CONDITIONAL(TARGET_RDLIVECHECK, test 0$RHEL -ge 7 || test 0$FEDORA -ge 15 || test 0$CENTOS -ge 7)
AM_COND_IF([TARGET_SYSTEMD],
[SYSTEMD_COMMENT=""], [SYSTEMD_COMMENT="#"])
AM_COND_IF([TARGET_RHEL],
[COLLECTD_COMMENT="#"], [COLLECTD_COMMENT=""])
AC_SUBST([SYSTEMD_COMMENT])
AC_SUBST([COLLECTD_COMMENT])
AM_COND_IF([TARGET_NEW_DRACUT],
[DRACUTDIR="/usr/lib/dracut/modules.d"], [DRACUTDIR="/usr/share/dracut/modules.d"])
AC_SUBST([DRACUTDIR])
AM_COND_IF([TARGET_RDLIVECHECK],
[BOOTLOADER_ARGS="rd.live.check rd.lvm=0"], [BOOTLOADER_ARGS="check RD_NO_LVM"])
AC_SUBST([BOOTLOADER_ARGS])
AC_ARG_WITH([image-minimizer], [AC_HELP_STRING([--with-image-minimizer],
[enable aggresive reduction of the image size])],
[IMAGE_MINIMIZER="%include image-minimizer.ks"],
[IMAGE_MINIMIZER=""])
AC_SUBST([IMAGE_MINIMIZER])
AC_ARG_WITH([manifests], [AC_HELP_STRING([--without-manifests],
[disable manifest generation at build time])],
[MANIFESTS_INCLUDED=""],
[MANIFESTS_INCLUDED="%include common-manifest.ks"])
AC_SUBST([MANIFESTS_INCLUDED])
AC_ARG_WITH([archipel], [AC_HELP_STRING([--with-archipel],
[build ovirt node including Archipel])],
[ARCHIPEL_FLAGS="--with-archipel"],
[ARCHIPEL_FLAGS=""])
AC_SUBST([ARCHIPEL_FLAGS])
if test $ARCHIPEL_FLAGS; then
PACKAGE_NAME=archipel-node-image
PRODUCT_NAME=Archipel\ Node\ Hypervisor\ $DISTRO
MAIN_KS=recipe/archipel-node-image.ks
else
PACKAGE_NAME=ovirt-node-image
PRODUCT_NAME=oVirt\ Node\ Hypervisor
MAIN_KS=recipe/ovirt-node-image.ks
fi
AM_PATH_PYTHON
AC_CONFIG_FILES([Makefile
data/Makefile
dracut/Makefile
images/Makefile
scripts/Makefile
tools/Makefile
scripts/collectd.conf
src/Makefile
services/Makefile
recipe/Makefile
logrotate/Makefile
modules/Makefile
plugins/Makefile
tests/Makefile
$MAIN_KS
recipe/common-install.ks
recipe/image-minimizer.ks
scripts/ovirt-functions
scripts/ovirt-init-functions.sh
semodule/ovirt.te
ovirt-node.spec])
AC_OUTPUT