summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2022-08-11 14:51:11 +0300
committerArnold D. Robbins <arnold@skeeve.com>2022-08-11 14:51:11 +0300
commit39657bcb1042369fd63f9f1fb5c9f161b89e69ce (patch)
tree50ace6bdec09cb31e2f74517dc8f377277db950e /m4
parent4b1b9a159a1661ba399a642af72ad6f41eaca7d3 (diff)
downloadgawk-39657bcb1042369fd63f9f1fb5c9f161b89e69ce.tar.gz
Fix logic in m4/pma.m4.
Diffstat (limited to 'm4')
-rw-r--r--m4/ChangeLog5
-rw-r--r--m4/pma.m45
2 files changed, 9 insertions, 1 deletions
diff --git a/m4/ChangeLog b/m4/ChangeLog
index 3c044267..6addbf1a 100644
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,8 @@
+2022-08-11 Arnold D. Robbins <arnold@skeeve.com>
+
+ * pma.m4: Logic fix. Don't define USE_PERSITENT_MALLOC until
+ after all the tests.
+
2022-07-21 Arnold D. Robbins <arnold@skeeve.com>
* libtool.m4, ltoptions.m4, ltsugar.m4, ltversion.m4,
diff --git a/m4/pma.m4 b/m4/pma.m4
index cb87597a..452cc8c4 100644
--- a/m4/pma.m4
+++ b/m4/pma.m4
@@ -15,7 +15,6 @@ then
AC_CHECK_FUNC([munmap])
if test $ac_cv_func_mmap = yes && test $ac_cv_func_munmap = yes
then
- AC_DEFINE(USE_PERSISTENT_MALLOC, 1, [Define to 1 if we can use the pma allocator])
use_persistent_malloc=yes
case $host_os in
linux-*)
@@ -50,3 +49,7 @@ then
fi
AM_CONDITIONAL([USE_PERSISTENT_MALLOC], [test "$use_persistent_malloc" = "yes"])
])
+if test "$use_persistent_malloc" = "yes"
+then
+ AC_DEFINE(USE_PERSISTENT_MALLOC, 1, [Define to 1 if we can use the pma allocator])
+fi