Add support for Alibaba cloud on aarch64
[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 dnl List of tests.
36 tests="\
37         alibaba-cloud-arm \
38         alibaba-cloud-x86 \
39         aws-baremetal-x86 \
40         aws-kvm-arm \
41         aws-kvm-x86 \
42         aws-xen-x86 \
43         baremetal \
44         bhyve \
45         docker \
46         esx-arm \
47         esx4.1 \
48         google-cloud \
49         hyperv \
50         illumos-lx \
51         kvm \
52         kvm-explicit-cpu \
53         ldoms \
54         linux-vserver \
55         lkvm \
56         lkvm-arm \
57         lx86 \
58         lxc \
59         nutanix-ahv \
60         oci \
61         parallels-desktop \
62         podman \
63         ppc64-baremetal \
64         ppc64-kvm \
65         ppc64-lpar-dedicated \
66         ppc64-lpar-shared \
67         qemu \
68         qemu-arm \
69         qemu-smbios \
70         qemu-smbios-kvm \
71         rhel5-xen-dom0 \
72         rhel5-xen-domU-hvm \
73         rhel5-xen-domU-hvm-ia64 \
74         rhel5-xen-domU-pv \
75         rhev \
76         upcloud \
77         vmm \
78         xen-arm \
79         zvm \
80         "
81 AC_SUBST([tests])
82
83 dnl Produce output files.
84 AC_CONFIG_HEADERS([config.h])
85 AC_CONFIG_FILES([virt-what],[chmod +x virt-what])
86 AC_CONFIG_FILES([Makefile
87                  tests/Makefile
88                  tests/alibaba-cloud-arm/Makefile
89                  tests/alibaba-cloud-x86/Makefile
90                  tests/aws-baremetal-x86/Makefile
91                  tests/aws-kvm-arm/Makefile
92                  tests/aws-kvm-x86/Makefile
93                  tests/aws-xen-x86/Makefile
94                  tests/baremetal/Makefile
95                  tests/bhyve/Makefile
96                  tests/docker/Makefile
97                  tests/esx-arm/Makefile
98                  tests/esx4.1/Makefile
99                  tests/google-cloud/Makefile
100                  tests/hyperv/Makefile
101                  tests/illumos-lx/Makefile
102                  tests/kvm/Makefile
103                  tests/kvm-explicit-cpu/Makefile
104                  tests/ldoms/Makefile
105                  tests/linux-vserver/Makefile
106                  tests/lkvm/Makefile
107                  tests/lkvm-arm/Makefile
108                  tests/lx86/Makefile
109                  tests/lxc/Makefile
110                  tests/nutanix-ahv/Makefile
111                  tests/oci/Makefile
112                  tests/parallels-desktop/Makefile
113                  tests/podman/Makefile
114                  tests/ppc64-baremetal/Makefile
115                  tests/ppc64-kvm/Makefile
116                  tests/ppc64-lpar-dedicated/Makefile
117                  tests/ppc64-lpar-shared/Makefile
118                  tests/qemu/Makefile
119                  tests/qemu-arm/Makefile
120                  tests/qemu-smbios/Makefile
121                  tests/qemu-smbios-kvm/Makefile
122                  tests/rhel5-xen-dom0/Makefile
123                  tests/rhel5-xen-domU-hvm/Makefile
124                  tests/rhel5-xen-domU-hvm-ia64/Makefile
125                  tests/rhel5-xen-domU-pv/Makefile
126                  tests/rhev/Makefile
127                  tests/upcloud/Makefile
128                  tests/vmm/Makefile
129                  tests/xen-arm/Makefile
130                  tests/zvm/Makefile
131                  ])
132
133 AC_CHECK_PROG([POD2MAN], [pod2man], [pod2man], [false])
134 if test "$POD2MAN" = "false"; then
135     AC_MSG_WARN([pod2man was not found.  This is needed to build man pages.])
136 fi
137 AM_CONDITIONAL([HAVE_POD2MAN], [test "$POD2MAN" != "false"])
138
139 AC_OUTPUT