]> granicus.if.org Git - onig/commitdiff
Remove AC_HEADER_TIME
authorPeter Kokot <peterkokot@gmail.com>
Thu, 6 Sep 2018 03:40:25 +0000 (05:40 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Thu, 6 Sep 2018 03:40:25 +0000 (05:40 +0200)
Autoconf 2.59d (released in 2006) [1] started promoting several macros
as not relevant for newer systems anymore, including the `AC_HEADER_TIME`.

This macro checks if both `<sys/time.h>` and `<time.h>` can be included
at the same time and defines the `TIME_WITH_SYS_TIME` and
`HAVE_SYS_TIME_H` symbols. On current system such check is not relevant
anymore because in case both headers are present both can be also
included at the same time.

This patch simplifies this checking.

Refs:
[1] http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
[2] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html

configure.ac

index 91b4c7aa08e59f911cca8fef655a1daf99ef4e12..c39756aec8e23da6b71895fbd8a3ec39fe92ece5 100644 (file)
@@ -57,7 +57,6 @@ AC_CHECK_SIZEOF(int, 4)
 AC_CHECK_SIZEOF(short, 2)
 AC_CHECK_SIZEOF(long, 4)
 AC_C_CONST
-AC_HEADER_TIME
 
 dnl Checks for library functions.
 AC_FUNC_ALLOCA