]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: build libmount everywhere
authorAndreas Henriksson <andreas@fatal.se>
Thu, 18 Sep 2014 23:36:35 +0000 (01:36 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 22 Sep 2014 10:54:10 +0000 (12:54 +0200)
This enables libmount to build on non-linux, which also
means we can build fsck on non-linux again.
(Since the context part of libmount still needs porting,
building the mount utility has instead been restricted
to only build on Linux.)

This has been build-tested on Debian GNU/kFreeBSD.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
configure.ac

index 387372fd9efeb695b667b714407361dff73fbf03..ed3a65d06edd4289f2579856ff93db4d6268cc00 100644 (file)
@@ -799,7 +799,6 @@ AC_ARG_ENABLE([libmount],
   [], [UL_DEFAULT_ENABLE([libmount], [check])]
 )
 UL_BUILD_INIT([libmount])
-UL_REQUIRES_LINUX([libmount])
 UL_REQUIRES_BUILD([libmount], [libblkid])
 UL_REQUIRES_HAVE([libmount], [scanf_alloc_modifier], [scanf string alloc modifier])
 AM_CONDITIONAL([BUILD_LIBMOUNT], [test "x$build_libmount" = xyes])
@@ -856,6 +855,7 @@ AC_ARG_ENABLE([mount],
   [], [UL_DEFAULT_ENABLE([mount], [check])]
 )
 UL_BUILD_INIT([mount])
+UL_REQUIRES_LINUX([mount])
 UL_REQUIRES_BUILD([mount], [libmount])
 AM_CONDITIONAL([BUILD_MOUNT], [test "x$build_mount" = xyes])