2 # Copyright (C) 2008-2024 Red Hat Inc.
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.
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.
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.
18 AC_INIT([virt-what],[1.26])
19 AM_INIT_AUTOMAKE([foreign])
21 dnl Check for basic C environment.
27 test "x$U" != "x" && AC_MSG_ERROR([Compiler not ANSI compliant])
31 dnl Architecture we are compiling for.
33 AM_CONDITIONAL([HOST_CPU_IA64], [ test "x$host_cpu" = "xia64" ])
68 ppc64-lpar-dedicated \
76 rhel5-xen-domU-hvm-ia64 \
86 dnl Produce output files.
87 AC_CONFIG_HEADERS([config.h])
88 AC_CONFIG_FILES([virt-what],[chmod +x virt-what])
89 AC_CONFIG_FILES([Makefile
91 tests/alibaba-cloud-arm/Makefile
92 tests/alibaba-cloud-x86/Makefile
93 tests/aws-baremetal-x86/Makefile
94 tests/aws-kvm-arm/Makefile
95 tests/aws-kvm-x86/Makefile
96 tests/aws-xen-x86/Makefile
97 tests/baremetal/Makefile
100 tests/docker/Makefile
101 tests/esx-arm/Makefile
102 tests/esx4.1/Makefile
103 tests/google-cloud/Makefile
104 tests/hyperv/Makefile
105 tests/hyperv-arm/Makefile
106 tests/illumos-lx/Makefile
108 tests/kvm-explicit-cpu/Makefile
110 tests/linux-vserver/Makefile
112 tests/lkvm-arm/Makefile
115 tests/nutanix-ahv/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
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
132 tests/upcloud/Makefile
134 tests/xen-arm/Makefile
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.])
142 AM_CONDITIONAL([HAVE_POD2MAN], [test "$POD2MAN" != "false"])