X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=configure.ac;h=456ed4d74c92354f55c10b7eeda3bfaa0838f985;hp=905921d77bfce34a12f9e48dfb4faed1301b9672;hb=d82438431c1551610eb7d9945fa76d6387534582;hpb=21c118a20e625dccd7cbd454f67a9f9c360c53f1 diff --git a/configure.ac b/configure.ac index 905921d..456ed4d 100644 --- a/configure.ac +++ b/configure.ac @@ -18,7 +18,7 @@ # major/minor/release must be numbers m4_define([libguestfs_major], [1]) m4_define([libguestfs_minor], [11]) -m4_define([libguestfs_release], [12]) +m4_define([libguestfs_release], [20]) # extra can be any string m4_define([libguestfs_extra], []) @@ -310,8 +310,31 @@ AC_DEFINE_UNQUOTED([QEMU],["$QEMU"],[Location of qemu binary.]) dnl Check that the chosen qemu has virtio-serial support. if test "x$vmchannel_test" != "xno"; then + AC_MSG_CHECKING([that $QEMU -help works]) + if $QEMU -help > /dev/null 2>&1; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + AC_MSG_FAILURE( +[$QEMU -help: command failed. + +This could be a very old version of qemu, or qemu might not be +working. +]) + fi + + # qemu since 0.15 requires the -machine accel=tcg option, otherwise + # it won't start up. QEMU DEVELOPERS, PLEASE ADD CAPABILITIES TESTING. + AC_MSG_CHECKING([if this qemu has the -machine accel=tcg option]) + if $QEMU -help 2>&1 | grep -sq -- '-machine.*accel.*tcg'; then + qemu_machine_accel_tcg="-machine accel=tcg" + AC_MSG_RESULT([$qemu_machine_accel_tcg]) + else + AC_MSG_RESULT([no]) + fi + AC_MSG_CHECKING([for virtio-serial support in $QEMU]) - if $QEMU -nographic -device \? 2>&1 | grep -sq virtio-serial; then + if $QEMU $qemu_machine_accel_tcg -nographic -device \? 2>&1 | grep -sq virtio-serial; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) @@ -484,6 +507,8 @@ AM_CONDITIONAL([HAVE_OCAML], [test "x$OCAMLC" != "xno" && test "x$OCAMLFIND" != "xno"]) AM_CONDITIONAL([HAVE_OCAML_PCRE], [test "x$OCAMLC" != "xno" && test "x$OCAMLFIND" != "xno" && test "x$OCAML_PKG_pcre" != "xno"]) +AM_CONDITIONAL([HAVE_OCAMLDOC], + [test "x$OCAMLDOC" != "xno"]) dnl Check for Perl (optional, for Perl bindings). PERL=no @@ -802,6 +827,7 @@ AC_CONFIG_FILES([Makefile appliance/Makefile capitests/Makefile cat/Makefile + caution/Makefile csharp/Makefile debian/changelog df/Makefile @@ -816,6 +842,7 @@ AC_CONFIG_FILES([Makefile images/Makefile inspector/Makefile java/Makefile + java/examples/Makefile libguestfs.pc ocaml/META ocaml/Makefile