X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=bc46cabef230d038bf52886c62d834232bd4ef74;hb=79cdf81e2fb717ea4372a55170d16800cdbddf23;hp=b1398770163a8952f88c296f5fc7375d4b790d31;hpb=f52bc724a30e45c28f231b48bca5fe0eb22592f0;p=libguestfs.git diff --git a/configure.ac b/configure.ac index b139877..bc46cab 100644 --- a/configure.ac +++ b/configure.ac @@ -15,7 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -AC_INIT([libguestfs],[1.0.5]) +AC_INIT([libguestfs],[1.0.9]) AM_INIT_AUTOMAKE AC_CONFIG_MACRO_DIR([m4]) @@ -54,8 +54,18 @@ test "x$POD2TEXT" = "xno" && AC_MSG_ERROR([pod2text must be installed]) dnl Check for QEMU for running binaries on this $host_cpu, fall -dnl back to basic 'qemu'. -AC_PATH_PROGS([QEMU],[qemu-system-$host_cpu qemu],[no], +dnl back to basic 'qemu'. Allow the user to override it. +default_qemu="qemu-system-$host_cpu qemu" +# On x86-64, try using KVM first. +if test "x$host_cpu" = "xx86_64"; then + default_qemu="qemu-kvm $default_qemu" +fi +AC_ARG_WITH([qemu], + [AS_HELP_STRING([--with-qemu], + [set default QEMU binary @<:@default=[qemu-kvm] qemu-system- qemu@:>@])], + [], + [with_qemu="$default_qemu"]) +AC_PATH_PROGS([QEMU],[$with_qemu],[no], [$PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin]) test "x$QEMU" = "xno" && AC_MSG_ERROR([qemu must be installed]) AC_DEFINE_UNQUOTED([QEMU],["$QEMU"],[Location of qemu binary.]) @@ -210,7 +220,7 @@ if test "x$with_java_home" != "xno"; then if test -d "$with_java_home"; then JAVA_HOME="$with_java_home" else - AC_MSG_FAILURE([$with_java_home is not a directory]) + AC_MSG_FAILURE([$with_java_home is not a directory (use --with-java-home=no to disable Java support)]) fi fi if test "x$JAVA_HOME" = "x"; then @@ -218,7 +228,7 @@ if test "x$with_java_home" != "xno"; then fi AC_MSG_CHECKING(for JDK in $JAVA_HOME) if test ! -x "$JAVA_HOME/bin/java"; then - AC_MSG_ERROR([missing $JAVA_HOME/bin/java binary]) + AC_MSG_ERROR([missing $JAVA_HOME/bin/java binary (use --with-java-home=no to disable Java support)]) else JAVA="$JAVA_HOME/bin/java" fi @@ -330,7 +340,7 @@ AC_CONFIG_FILES([Makefile src/Makefile fish/Makefile examples/Makefile ruby/Makefile ruby/Rakefile java/Makefile make-initramfs.sh update-initramfs.sh - libguestfs.spec + libguestfs.spec libguestfs.pc ocaml/META perl/Makefile.PL]) AC_OUTPUT @@ -345,6 +355,7 @@ echo "Thank you for downloading $PACKAGE_STRING" echo echo "This is how we have configured the optional components for you today:" echo +echo "QEMU ................................ $QEMU" echo -n "OCaml bindings ...................... " if test "x$HAVE_OCAML_TRUE" = "x"; then echo "yes"; else echo "no"; fi echo -n "Perl bindings ....................... "