]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: cleanup BUILD_HWCLOCK
authorKarel Zak <kzak@redhat.com>
Thu, 27 Oct 2011 15:04:49 +0000 (17:04 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 3 Nov 2011 11:32:51 +0000 (12:32 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac

index 55a78175b5fc3ea81b3102f6a97fede1bd238d43..d2c1d8e2999773457b66ca27b13f68d7c40e5e28 100644 (file)
@@ -286,9 +286,7 @@ AC_CHECK_FUNCS(
 AC_FUNC_FSEEKO
 
 AC_CHECK_FUNCS([openat fstatat unlinkat], [have_openat=yes], [have_openat=no])
-
 AC_CHECK_FUNCS([ioperm iopl], [have_io=yes])
-AM_CONDITIONAL([BUILD_HWCLOCK], test "x$have_io" = xyes -o "x$linux_os" = xyes)
 
 AC_CHECK_MEMBER(struct sockaddr.sa_len,
                AC_DEFINE_UNQUOTED(HAVE_SA_LEN,1,[Define if struct sockaddr contains sa_len]),,
@@ -832,6 +830,12 @@ UL_REQUIRES_HAVE([cramfs], [z], [z library])
 AM_CONDITIONAL(BUILD_CRAMFS, test "x$build_cramfs" = xyes)
 
 
+if test "x$have_io" = xyes -o "x$linux_os" = xyes; then
+  build_hwclock=yes
+fi
+AM_CONDITIONAL(BUILD_HWCLOCK, test "x$build_hwclock" = xyes)
+
+
 enable_lsblk=check
 build_lsblk=yes
 UL_REQUIRES_LINUX([lsblk])