Skip to content

Commit

Permalink
configure.ac: comment that _GNU_SOURCE may be needed for strptime() d…
Browse files Browse the repository at this point in the history
…etection

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Sep 2, 2023
1 parent 6f4c1bf commit dd30c67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -840,8 +840,10 @@ if (p == NULL || *p != '\0') return 1])],
)])
AS_IF([test x"${ac_cv_func_strptime}" = xyes],
[AC_DEFINE([HAVE_STRPTIME], 1, [defined if standard library has, and C standard allows, the strptime(s1,s2,tm) method])],
[AC_MSG_WARN([Optional C library routine strptime not found; a fallback implementation will be built in])]
[AC_MSG_WARN([Optional C library routine strptime not found; try adding _GNU_SOURCE; a fallback implementation will be built in])]
)
dnl Note: per Linux headers, this may need __USE_XOPEN (features.h)
dnl which is enabled by _XOPEN_SOURCE via _GNU_SOURCE on the platform.
AM_CONDITIONAL([HAVE_STRPTIME], [test x"${ac_cv_func_strptime}" = "xyes"])

AC_CACHE_CHECK([for clock_gettime(CLOCK_MONOTONIC,ts)],
Expand Down

0 comments on commit dd30c67

Please sign in to comment.