Commit 77614a37 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Added --disable-malloc-guards. This is useful when combined with

--with-valgrind, but should not be used in a production setting.
parent 9f2a9bc6
dnl $Id: configure.in,v 1.83 2002/08/02 12:05:24 ceder Exp $
dnl $Id: configure.in,v 1.84 2002/08/02 21:26:50 ceder Exp $
dnl Configuration for LysKOM
dnl Copyright (C) 1993-2002 Lysator Academic Computer Association.
dnl
......@@ -18,7 +18,7 @@ dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
dnl
dnl Please mail bug reports to bug-lyskom@lysator.liu.se.
dnl
AC_REVISION($Revision: 1.83 $)
AC_REVISION($Revision: 1.84 $)
AC_PREREQ(2.53)
AC_INIT([lyskom-server], [2.0.6])
AC_CONFIG_SRCDIR([src/server/lyskomd.h])
......@@ -53,6 +53,12 @@ AC_ARG_WITH([valgrind],
[use_valgrind=$withval],
[use_valgrind=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])
AC_ARG_WITH([gcov],
AC_HELP_STRING([--with-gcov], [instrument for gcov (requires gcc)]),
[use_gcov=$withval],
......@@ -96,6 +102,13 @@ else
esac
fi]
[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]
AC_PREFIX_DEFAULT(/usr/lyskom)
AC_PROG_CC
AC_AIX
......
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