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.])