Add support for CRI-O containers
[virt-what.git] / configure.ac
1 # virt-what
2 # Copyright (C) 2008-2022 Red Hat Inc.
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 AC_INIT([virt-what],[1.25])
19 AM_INIT_AUTOMAKE([foreign])
20
21 dnl Check for basic C environment.
22 AC_PROG_CC_STDC
23 AC_PROG_INSTALL
24 AC_PROG_CPP
25
26 AC_C_PROTOTYPES
27 test "x$U" != "x" && AC_MSG_ERROR([Compiler not ANSI compliant])
28
29 AM_PROG_CC_C_O
30
31 dnl Architecture we are compiling for.
32 AC_CANONICAL_HOST
33 AM_CONDITIONAL([HOST_CPU_IA64], [ test "x$host_cpu" = "xia64" ])
34
35 PKG_HAVE_DEFINE_WITH_MODULES(TPM2_TSS, tss2-esys, [tpm2-tss package])
36
37
38 dnl List of tests.
39 tests="\
40         alibaba-cloud-arm \
41         alibaba-cloud-x86 \
42         aws-baremetal-x86 \
43         aws-kvm-arm \
44         aws-kvm-x86 \
45         aws-xen-x86 \
46         baremetal \
47         bhyve \
48         crio \
49         docker \
50         esx-arm \
51         esx4.1 \
52         google-cloud \
53         hyperv \
54         illumos-lx \
55         kvm \
56         kvm-explicit-cpu \
57         ldoms \
58         linux-vserver \
59         lkvm \
60         lkvm-arm \
61         lx86 \
62         lxc \
63         nutanix-ahv \
64         oci \
65         parallels-desktop \
66         podman \
67         ppc64-baremetal \
68         ppc64-kvm \
69         ppc64-lpar-dedicated \
70         ppc64-lpar-shared \
71         qemu \
72         qemu-arm \
73         qemu-smbios \
74         qemu-smbios-kvm \
75         rhel5-xen-dom0 \
76         rhel5-xen-domU-hvm \
77         rhel5-xen-domU-hvm-ia64 \
78         rhel5-xen-domU-pv \
79         rhev \
80         upcloud \
81         vmm \
82         xen-arm \
83         zvm \
84         "
85 AC_SUBST([tests])
86
87 dnl Produce output files.
88 AC_CONFIG_HEADERS([config.h])
89 AC_CONFIG_FILES([virt-what],[chmod +x virt-what])
90 AC_CONFIG_FILES([Makefile
91                  tests/Makefile
92                  tests/alibaba-cloud-arm/Makefile
93                  tests/alibaba-cloud-x86/Makefile
94                  tests/aws-baremetal-x86/Makefile
95                  tests/aws-kvm-arm/Makefile
96                  tests/aws-kvm-x86/Makefile
97                  tests/aws-xen-x86/Makefile
98                  tests/baremetal/Makefile
99                  tests/bhyve/Makefile
100                  tests/crio/Makefile
101                  tests/docker/Makefile
102                  tests/esx-arm/Makefile
103                  tests/esx4.1/Makefile
104                  tests/google-cloud/Makefile
105                  tests/hyperv/Makefile
106                  tests/illumos-lx/Makefile
107                  tests/kvm/Makefile
108                  tests/kvm-explicit-cpu/Makefile
109                  tests/ldoms/Makefile
110                  tests/linux-vserver/Makefile
111                  tests/lkvm/Makefile
112                  tests/lkvm-arm/Makefile
113                  tests/lx86/Makefile
114                  tests/lxc/Makefile
115                  tests/nutanix-ahv/Makefile
116                  tests/oci/Makefile
117                  tests/parallels-desktop/Makefile
118                  tests/podman/Makefile
119                  tests/ppc64-baremetal/Makefile
120                  tests/ppc64-kvm/Makefile
121                  tests/ppc64-lpar-dedicated/Makefile
122                  tests/ppc64-lpar-shared/Makefile
123                  tests/qemu/Makefile
124                  tests/qemu-arm/Makefile
125                  tests/qemu-smbios/Makefile
126                  tests/qemu-smbios-kvm/Makefile
127                  tests/rhel5-xen-dom0/Makefile
128                  tests/rhel5-xen-domU-hvm/Makefile
129                  tests/rhel5-xen-domU-hvm-ia64/Makefile
130                  tests/rhel5-xen-domU-pv/Makefile
131                  tests/rhev/Makefile
132                  tests/upcloud/Makefile
133                  tests/vmm/Makefile
134                  tests/xen-arm/Makefile
135                  tests/zvm/Makefile
136                  ])
137
138 AC_CHECK_PROG([POD2MAN], [pod2man], [pod2man], [false])
139 if test "$POD2MAN" = "false"; then
140     AC_MSG_WARN([pod2man was not found.  This is needed to build man pages.])
141 fi
142 AM_CONDITIONAL([HAVE_POD2MAN], [test "$POD2MAN" != "false"])
143
144 AC_OUTPUT