From a2bc7838159c2f26eae21c47e3e09d84384a0ac7 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Tue, 16 Jul 2024 08:55:22 +0200 Subject: [PATCH] Autotools: Add missing sigil in AC_CASE and fix Autoconf syntax (#14967) --- build/php.m4 | 4 ++-- ext/opcache/config.m4 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/php.m4 b/build/php.m4 index a882bec8ac2..b804eea1426 100644 --- a/build/php.m4 +++ b/build/php.m4 @@ -1103,9 +1103,9 @@ int main(void) { [php_cv_time_r_type=POSIX])], [php_cv_time_r_type=POSIX]) ]) -AS_CASE([php_cv_time_r_type], +AS_CASE([$php_cv_time_r_type], [hpux], [AC_DEFINE([PHP_HPUX_TIME_R], [1], - [Define to 1 if you have HP-UX 10.x.-style reentrant time functions.])] + [Define to 1 if you have HP-UX 10.x.-style reentrant time functions.])], [irix], [AC_DEFINE([PHP_IRIX_TIME_R], [1], [Define to 1 you have IRIX-style reentrant time functions.])]) ]) diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4 index 891efae9613..57d992a1538 100644 --- a/ext/opcache/config.m4 +++ b/ext/opcache/config.m4 @@ -228,7 +228,7 @@ int main(void) { ]])], [php_cv_shm_mmap_anon=yes], [php_cv_shm_mmap_anon=no], -[AS_CASE([host_alias], +[AS_CASE([$host_alias], [*linux*|*midipix], [php_cv_shm_mmap_anon=yes], [php_cv_shm_mmap_anon=no])])]) AS_VAR_IF([php_cv_shm_mmap_anon], [yes],