X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=7c7fa968fe9c937e6c12fac0cb136383b451eefc;hb=4b13d9cf4d0d6df54d6eae207258569ccfe0cd3c;hp=cd5e47b52aa596b736f50d22cfa68198117f656a;hpb=eedd895bb3d8d65de98dbdc4e032853c66958f30;p=qemu-sanity-check.git diff --git a/configure.ac b/configure.ac index cd5e47b..7c7fa96 100644 --- a/configure.ac +++ b/configure.ac @@ -20,7 +20,7 @@ AM_INIT_AUTOMAKE([foreign]) dnl Only used temporarily while the spec file is contained in the dnl tarball. We will remove this later. -AC_SUBST([RPM_RELEASE],[1]) +AC_SUBST([RPM_RELEASE],[2]) dnl Check for basic C environment. AC_PROG_CC_STDC @@ -32,6 +32,20 @@ test "x$U" != "x" && AC_MSG_ERROR([Compiler not ANSI compliant]) AM_PROG_CC_C_O +dnl Allow the package to override the default list of qemu binary +dnl names which are tried, since this heavily depends on how qemu +dnl has been packaged in the downstream distro. +dnl +dnl Note that "$canonical_arch" and "$arch" are variables in the +dnl qemu-sanity-check shell script. Absolute paths could be used +dnl here as well. +AC_ARG_WITH([qemu-list], + [AS_HELP_STRING([--with-qemu-list], + [list of qemu binaries to try @<:@default=qemu-kvm qemu-system-\$canonical_arch qemu kvm@:>@])], + [QEMU_LIST="$withval"], + [QEMU_LIST="qemu-kvm qemu-system-\$canonical_arch qemu kvm"]) +AC_SUBST([QEMU_LIST]) + AC_PROG_SED AC_MSG_CHECKING([that a static binary can be built])