From: Matthias Bolte Date: Sat, 13 Nov 2010 11:33:44 +0000 (+0100) Subject: configure: Disable FS storage driver if mntent.h is not available X-Git-Tag: v0.8.6~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bc0679f90f5cfe066c52f14dda50576cac075a7;p=thirdparty%2Flibvirt.git configure: Disable FS storage driver if mntent.h is not available This is the case on FreeBSD. --- diff --git a/configure.ac b/configure.ac index 66237e10da..d21d558a70 100644 --- a/configure.ac +++ b/configure.ac @@ -1496,6 +1496,18 @@ if test "$with_osx" = "yes"; then with_storage_fs=no fi +if test "$with_storage_fs" = "yes" || test "$with_storage_fs" = "check"; then + AC_CHECK_HEADER([mntent.h],, + [ + if test "$with_storage_fs" = "check"; then + with_storage_fs=no + AC_MSG_NOTICE([ is required for the FS storage driver, disabling it]) + else + AC_MSG_ERROR([ is required for the FS storage driver]) + fi + ]) +fi + if test "$with_storage_fs" = "yes" || test "$with_storage_fs" = "check"; then AC_PATH_PROG([MOUNT], [mount], [], [$PATH:/sbin:/usr/sbin]) AC_PATH_PROG([UMOUNT], [umount], [], [$PATH:/sbin:/usr/sbin])