diff options
author | Peter Kokot <peterkokot@gmail.com> | 2019-02-28 00:41:30 +0100 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2019-03-01 19:22:44 +0100 |
commit | a700451706b1a6da75f08a6a7e331635e17a6e99 (patch) | |
tree | 5b5f7920c647e6e8123a6bb053876623c7150ece /Zend | |
parent | 7c351ba65ca861470373dd1467138d668dcac5f3 (diff) | |
download | php-git-a700451706b1a6da75f08a6a7e331635e17a6e99.tar.gz |
Remove obsolescent AC_HEADER_STDC and memcpy check
Autoconf 2.59d (released in 2006) [1] started promoting several macros
as not relevant for newer systems anymore, including the `AC_HEADER_STDC`.
This macro checks if given system has C89 compliant header files such
as `<string.h>`, `<stdlib.h>`, `<stdarg.h>`, `<float.h>`,... and defines
the `STDC_HEADERS` symbol [2]. Case is that current systems should be
well supported with at least C89 standard headers [3].
Given headers are still additionally checked with the `AC_PROG_CC`
macro, yet not needed anyway.
Additionally, the HAVE_MEMCPY check has been removed. The memcpy
function is standardized by C89 and later.
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
[3] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
Diffstat (limited to 'Zend')
-rw-r--r-- | Zend/Zend.m4 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Zend/Zend.m4 b/Zend/Zend.m4 index 885af154fa..392d28ef72 100644 --- a/Zend/Zend.m4 +++ b/Zend/Zend.m4 @@ -29,7 +29,6 @@ AC_DEFUN([LIBZEND_BASIC_CHECKS],[ AC_REQUIRE([AC_PROG_YACC]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_PROG_CC_C_O]) -AC_REQUIRE([AC_HEADER_STDC]) LIBZEND_BISON_CHECK @@ -79,7 +78,7 @@ LIBZEND_CHECK_INT_TYPE(uint32_t) dnl Checks for library functions. AC_FUNC_ALLOCA -AC_CHECK_FUNCS(memcpy strdup getpid kill strtod strtol finite fpclass sigsetjmp) +AC_CHECK_FUNCS(strdup getpid kill strtod strtol finite fpclass sigsetjmp) AC_CHECK_DECLS([isfinite, isnan, isinf], [], [], [[#include <math.h>]]) |