summaryrefslogtreecommitdiff
path: root/infrastructure/m4/ax_check_malloc_workaround.m4
diff options
context:
space:
mode:
Diffstat (limited to 'infrastructure/m4/ax_check_malloc_workaround.m4')
-rw-r--r--infrastructure/m4/ax_check_malloc_workaround.m412
1 files changed, 6 insertions, 6 deletions
diff --git a/infrastructure/m4/ax_check_malloc_workaround.m4 b/infrastructure/m4/ax_check_malloc_workaround.m4
index 9b1c9848..7655c0f7 100644
--- a/infrastructure/m4/ax_check_malloc_workaround.m4
+++ b/infrastructure/m4/ax_check_malloc_workaround.m4
@@ -10,16 +10,16 @@ dnl @license AllPermissive
AC_DEFUN([AX_CHECK_MALLOC_WORKAROUND], [
if test "x$GXX" = "xyes"; then
- AC_CACHE_CHECK([for gcc version 3 or later], [gcc_3_plus],
+ AC_CACHE_CHECK([for gcc version 3 or later], [box_cv_gcc_3_plus],
[AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
#if __GNUC__ < 3
#error "Old GNU C"
#endif
]])],
- [gcc_3_plus=yes], [gcc_3_plus=no]
+ [box_cv_gcc_3_plus=yes], [box_cv_gcc_3_plus=no]
)])
- if test "x$gcc_3_plus" = "xno"; then
- AC_CACHE_CHECK([for malloc workaround], [malloc_workaround],
+ if test "x$box_cv_gcc_3_plus" = "xno"; then
+ AC_CACHE_CHECK([for malloc workaround], [box_cv_malloc_workaround],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#define __USE_MALLOC
#include <string>
@@ -27,9 +27,9 @@ AC_DEFUN([AX_CHECK_MALLOC_WORKAROUND], [
std::string s;
s = "test";
]])],
- [malloc_workaround=yes], [malloc_workaround=no]
+ [box_cv_malloc_workaround=yes], [box_cv_malloc_workaround=no]
)])
- if test "x$malloc_workaround" = "xyes"; then
+ if test "x$box_cv_malloc_workaround" = "xyes"; then
AC_DEFINE([__USE_MALLOC], 1,
[Define to 1 if __USE_MALLOC is required work around STL memory leaks])
fi