2 # Copyright (C) 2008-2018 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.21])
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" ])
61 ppc64-lpar-dedicated \
69 rhel5-xen-domU-hvm-ia64 \
78 dnl Produce output files.
79 AC_CONFIG_HEADERS([config.h])
80 AC_CONFIG_FILES([virt-what],[chmod +x virt-what])
81 AC_CONFIG_FILES([Makefile
83 tests/alibaba-cloud-x86/Makefile
84 tests/aws-baremetal-x86/Makefile
85 tests/aws-kvm-arm/Makefile
86 tests/aws-kvm-x86/Makefile
87 tests/aws-xen-x86/Makefile
88 tests/baremetal/Makefile
91 tests/esx-arm/Makefile
95 tests/kvm-explicit-cpu/Makefile
97 tests/linux-vserver/Makefile
99 tests/lkvm-arm/Makefile
102 tests/nutanix-ahv/Makefile
103 tests/parallels-desktop/Makefile
104 tests/podman/Makefile
105 tests/ppc64-baremetal/Makefile
106 tests/ppc64-kvm/Makefile
107 tests/ppc64-lpar-dedicated/Makefile
108 tests/ppc64-lpar-shared/Makefile
110 tests/qemu-arm/Makefile
111 tests/qemu-smbios/Makefile
112 tests/qemu-smbios-kvm/Makefile
113 tests/rhel5-xen-dom0/Makefile
114 tests/rhel5-xen-domU-hvm/Makefile
115 tests/rhel5-xen-domU-hvm-ia64/Makefile
116 tests/rhel5-xen-domU-pv/Makefile
119 tests/xen-arm/Makefile
123 AC_CHECK_PROG([POD2MAN], [pod2man], [pod2man], [false])
124 if test "$POD2MAN" = "false"; then
125 AC_MSG_WARN([pod2man was not found. This is needed to build man pages.])
127 AM_CONDITIONAL([HAVE_POD2MAN], [test "$POD2MAN" != "false"])