This code uses clock-relevant functions only on platforms
that do not need -lrt.
* m4/readutmp.m4 (gl_READUTMP): Do not require gl_CLOCK_TIME
or add CLOCK_TIME_LIB to READUTMP_LIB.
* modules/boot-time (Link): No need to link with CLOCK_TIME_LIB.
2023-08-12 Paul Eggert <eggert@cs.ucla.edu>
+ boot-time,readutmp: remove -lrt usage
+ This code uses clock-relevant functions only on platforms
+ that do not need -lrt.
+ * m4/readutmp.m4 (gl_READUTMP): Do not require gl_CLOCK_TIME
+ or add CLOCK_TIME_LIB to READUTMP_LIB.
+ * modules/boot-time (Link): No need to link with CLOCK_TIME_LIB.
+
boot-time,readutmp: do not depend on fopen-gnu
These modules should work well enough even if fopen is not fixed
to conform to fopen-gnu standards. The only gotcha I can see is
-# readutmp.m4 serial 27
+# readutmp.m4 serial 28
dnl Copyright (C) 2002-2023 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
fi
fi
fi
- AC_REQUIRE([gl_CLOCK_TIME])
- READUTMP_LIB="$READUTMP_LIB $CLOCK_TIME_LIB"
AC_SUBST([READUTMP_LIB])
gl_PREREQ_READUTMP_H
"boot-time.h"
Link:
-$(CLOCK_TIME_LIB)
License:
GPL