# HG changeset patch # User stekloff@xxxxxxxxxxxxxxxxxxxxxxxxxx # Node ID 330589d5487b42777884978bfaba2ea8f1850f88 # Parent 3a62d89787883bd50e066d584cbfd0ca80f38297 Added dependency check for lilo in configure.ac for vmx enabled builds. Must have lilo version 22.7 or greater. Signed-off-by: Daniel Stekloff diff -r 3a62d8978788 -r 330589d5487b tools/xm-test/configure.ac --- a/tools/xm-test/configure.ac Mon Jan 23 15:27:00 2006 +++ b/tools/xm-test/configure.ac Tue Jan 24 02:25:41 2006 @@ -7,6 +7,7 @@ # Check for dependencies AC_PROG_CC #AC_PROG_INSTALL +AC_CHECK_PROG([LILO], lilo, lilo, "no", [$PATH]) # Right now, we can assume that the lib/ and ramdisk/ directories # are two levels above the tests @@ -21,6 +22,18 @@ ],[ ENABLE_VMX=False ]) + +if test "x$ENABLE_VMX" = "xTrue"; then + if test "$LILO" = "no"; then + AC_MSG_ERROR([lilo not found +lilo version 22.7 or greater must be installed for testing with vmx enabled.]) + else + pass=`$LILO -V | sed -e "s/LILO version //" | awk -F "." '{if ($1 >=22 && $2 >= 7) print "true"; else print "false"}'` + if test "$pass" != "true"; then + AC_MSG_ERROR(Lilo version must be equal or greater to 22.7+.) + fi + fi +fi AM_CONDITIONAL(VMX, test x$ENABLE_VMX = xTrue) AC_SUBST(ENABLE_VMX)