(TESTS_ENVIRONMENT): Add `pwd`/ prefix to exported PATH value (though not strictly...
[coreutils.git] / m4 / jm-mktime.m4
blob5bb73576271648eefcf97790493210d7cb6d8b87
1 #serial 7
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_UNQUOTED(mktime, rpl_mktime,
14     [Define to rpl_mktime if the replacement function should be used.])
15  fi