diff options
author | Richard Jones <rjones@trick.home.annexia.org> | 2009-06-15 11:37:58 +0100 |
---|---|---|
committer | Richard Jones <rjones@trick.home.annexia.org> | 2009-06-15 16:09:12 +0100 |
commit | eebec43a15a5de3a5b9f1281654f9cbdd44e19cf (patch) | |
tree | 79df93782c0ae57c4a0931f64b78325fa661d1fa | |
parent | d6ca37a95b5ed5b7e5c8e0a54fa5a5bbf0fa2075 (diff) | |
download | libguestfs-eebec43a15a5de3a5b9f1281654f9cbdd44e19cf.tar.gz libguestfs-eebec43a15a5de3a5b9f1281654f9cbdd44e19cf.tar.xz libguestfs-eebec43a15a5de3a5b9f1281654f9cbdd44e19cf.zip |
Check for febootstrap-to-initramfs --files option.
-rw-r--r-- | configure.ac | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index c83f8561..e73799a6 100644 --- a/configure.ac +++ b/configure.ac @@ -188,6 +188,24 @@ AC_ARG_ENABLE([supermin], [enable_supermin=no]) AM_CONDITIONAL([SUPERMIN],[test "x$enable_supermin" = "xyes"]) +if test "x$enable_supermin" = "xyes"; then + dnl Check febootstrap-to-initramfs accepts the --files option + dnl (febootstrap >= 2.2). + AC_MSG_CHECKING([for --files support in $FEBOOTSTRAP_TO_INITRAMFS]) + out=`$FEBOOTSTRAP_TO_INITRAMFS 2>&1 ||:` + echo "febootstrap_to_initramfs test command output: $out" >&AS_MESSAGE_LOG_FD + if ! echo $out | grep -sq -- "--files" ; then + AC_MSG_RESULT([no]) + AC_MSG_FAILURE( +[febootstrap-to-initramfs does not support the --files option. + +To build the supermin appliance, you need to upgrade to the latest +version of febootstrap. +]) + fi + AC_MSG_RESULT([yes]) +fi + dnl Readline. AC_ARG_WITH([readline], [AS_HELP_STRING([--with-readline], |