+2023-01-07 Bruno Haible <bruno@clisp.org>
+
+ gethrxtime: Rename LIB_GETHRXTIME to GETHRXTIME_LIB.
+ * m4/gethrxtime.m4: Rename LIB_GETHRXTIME to GETHRXTIME_LIB.
+ All uses changed.
+ * NEWS: Mention the change.
+
2023-01-07 Bruno Haible <bruno@clisp.org>
fdatasync: Rename LIB_FDATASYNC to FDATASYNC_LIB.
-# gethrxtime.m4 serial 14
+# gethrxtime.m4 serial 15
dnl Copyright (C) 2005-2006, 2008-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,
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
AC_REQUIRE([gl_XTIME])
AC_CHECK_DECLS([gethrtime], [], [], [[#include <time.h>]])
- LIB_GETHRXTIME=
+ GETHRXTIME_LIB=
if test $ac_cv_have_decl_gethrtime = no \
|| test $gl_cv_arithmetic_hrtime_t = no; then
dnl Find libraries needed to link lib/gethrxtime.c.
[gl_cv_have_clock_gettime_macro=yes],
[gl_cv_have_clock_gettime_macro=no])])
if test $gl_cv_have_clock_gettime_macro = yes; then
- LIB_GETHRXTIME=$CLOCK_TIME_LIB
+ GETHRXTIME_LIB=$CLOCK_TIME_LIB
fi
fi
fi
+ AC_SUBST([GETHRXTIME_LIB])
+ dnl For backward compatibility.
+ LIB_GETHRXTIME="$GETHRXTIME_LIB"
AC_SUBST([LIB_GETHRXTIME])
])