]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: require lastlog.h for liblastlog2
authorWanBingjiang <wanbingjiang@webray.com.cn>
Tue, 30 Jun 2026 06:59:45 +0000 (14:59 +0800)
committerWanBingjiang <wanbingjiang@webray.com.cn>
Tue, 30 Jun 2026 07:00:38 +0000 (15:00 +0800)
Signed-off-by: WanBingjiang <wanbingjiang@webray.com.cn>
configure.ac

index 89e05a45d686415598096641c307f6c5e9f1c108..9dd5721a9e9975c4b3b2e9b7130500a967b99536 100644 (file)
@@ -533,6 +533,7 @@ have_sys_signalfd_h=$ac_cv_header_sys_signalfd_h
 have_utmpx_h=$ac_cv_header_utmpx_h
 have_mntent_h=$ac_cv_header_mntent_h
 have_sys_vfs_h=$ac_cv_header_sys_vfs_h
+have_lastlog_h=$ac_cv_header_lastlog_h
 have_linux_bpf_h=$ac_cv_header_linux_bpf_h
 
 AS_CASE([$linux_os:$have_linux_version_h],
@@ -1339,6 +1340,7 @@ AS_IF([test "x$build_liblastlog2" != xno], [
   PKG_CHECK_MODULES([SQLITE3], [sqlite3], [have_sqlite3=yes], [have_sqlite3=no])
 ])
 UL_REQUIRES_HAVE([liblastlog2], [sqlite3], [sqlite3 library])
+UL_REQUIRES_HAVE([liblastlog2], [lastlog_h], [lastlog.h header file])
 AC_SUBST([SQLITE3_LIBS])
 
 AC_SUBST([LIBLASTLOG2_VERSION])