Mercurial > hg > octave-kai > gnulib-hg
comparison m4/timegm.m4 @ 14794:cf441162a7a1
timegm: Simplify autoconf macro.
* m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 22 May 2011 15:17:29 +0200 |
parents | 97fc9a21a8fb |
children | d62488163e76 |
comparison
equal
deleted
inserted
replaced
14793:1c8ef4361784 | 14794:cf441162a7a1 |
---|---|
1 # timegm.m4 serial 8 | 1 # timegm.m4 serial 9 |
2 dnl Copyright (C) 2003, 2007, 2009-2011 Free Software Foundation, Inc. | 2 dnl Copyright (C) 2003, 2007, 2009-2011 Free Software Foundation, Inc. |
3 dnl This file is free software; the Free Software Foundation | 3 dnl This file is free software; the Free Software Foundation |
4 dnl gives unlimited permission to copy and/or distribute it, | 4 dnl gives unlimited permission to copy and/or distribute it, |
5 dnl with or without modifications, as long as this notice is preserved. | 5 dnl with or without modifications, as long as this notice is preserved. |
6 | 6 |
24 fi | 24 fi |
25 ]) | 25 ]) |
26 | 26 |
27 # Prerequisites of lib/timegm.c. | 27 # Prerequisites of lib/timegm.c. |
28 AC_DEFUN([gl_PREREQ_TIMEGM], [ | 28 AC_DEFUN([gl_PREREQ_TIMEGM], [ |
29 AC_REQUIRE([gl_TIME_R]) | |
30 AC_REQUIRE([gl_FUNC_MKTIME]) | 29 AC_REQUIRE([gl_FUNC_MKTIME]) |
31 if test $ac_cv_func_working_mktime = yes; then | 30 if test $ac_cv_func_working_mktime = yes; then |
32 AC_CHECK_FUNC([__mktime_internal], , | 31 AC_CHECK_FUNC([__mktime_internal], , |
33 [# mktime works but it doesn't export __mktime_internal, | 32 [# mktime works but it doesn't export __mktime_internal, |
34 # so we need to substitute our own mktime implementation. | 33 # so we need to substitute our own mktime implementation. |