(strnlen): Define-away/undef so that an inconsistent prototype in
[gnulib.git] / m4 / jm-mktime.m4
blobd687c999a268d7ff9717b90986edcbd97f22dc3b
1 #serial 8
3 dnl From Jim Meyering.
4 dnl A wrapper around AC_FUNC_MKTIME.
6 AC_DEFUN([jm_FUNC_MKTIME],
7 [AC_REQUIRE([AC_FUNC_MKTIME])dnl
9  dnl mktime.c uses localtime_r if it exists.  Check for it.
10  AC_CHECK_FUNCS(localtime_r)
12  if test $ac_cv_func_working_mktime = no; then
13    AC_DEFINE(mktime, rpl_mktime,
14     [Define to rpl_mktime if the replacement function should be used.])
15  fi