Commit 46821311 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Handle --disable-malloc-guards. Check for intptr_t, intmax_t and

size_t.
parent d0d65560
......@@ -19,7 +19,7 @@ dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
dnl Process this file with autoconf to produce a configure script.
AC_REVISION($Revision: 1.22 $)dnl
AC_REVISION($Revision: 1.23 $)dnl
AC_PREREQ(2.56)
AC_INIT([isc],[1.01])
AC_CONFIG_SRCDIR([src/isc_master.c])
......@@ -47,6 +47,18 @@ AC_ARG_ENABLE([ipv6],
[use_inet6=yes],
[use_inet6=no])
AC_ARG_ENABLE([malloc-guards],
AC_HELP_STRING([--disable-malloc-guards],
[disable defensive guard areas (may crash lyskomd)]),
[use_malloc_guards=$enableval],
[use_malloc_guards=yes])
[if test "$use_malloc_guards" = "yes"
then]
AC_DEFINE([USE_MALLOC_GUARDS], 1,
[Insert magic number before and after malloced areas.
This can help detect buffer overruns.])
[fi]
dnl Checks for programs.
......@@ -114,6 +126,10 @@ then]
AC_CHECK_SIZEOF(long)
[fi]
AC_CHECK_TYPE(intptr_t)
AC_CHECK_TYPE(intmax_t)
AC_CHECK_TYPE(size_t)
CMOD_C_WORKING_ATTRIBUTE_UNUSED
[if test -n "$GCC"; then]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment