From 0728afad48a51e389aa62523f581407fd2a24e52 Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Wed, 14 Jan 1998 04:28:29 +0000 Subject: * configure.in (--with-mmalloc): Add new configure arg to use the mmalloc package. Default is to not use it. (START_INFERIOR_TRAPS_EXPECTED): Define to the integer 2, not the string "2". * acconfig.h (USE_MMALLOC, FORCE_MMCHECK): Add #undef. * configure: Regenerated. * config.in: Regenerated. * Makefile.in (MMALLOC_DIR, MMALLOC_SRC): Remove. (MMALLOC): Set using configure. (MMALLOC_CFLAGS): Set using configure. * config/i386/tm-linux.h (sys_quotactl): Define to 1 rather than just defining it. * mpw-make.sed: Undefine USE_MMALLOC rather than defining NO_MMALLOC. * utils.c (NO_MMALLOC): Use USE_MMALLOC instead. * objfiles.c: ditto. * defs.h: ditto. * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Remove. * config/m68k/sun3os4.mh (MMALLOC_CFLAGS): Remove. * config/i386/cygwin32.mh (MMALLOC_CFLAGS): Remove. * config/alpha/alpha-osf3.mh (MMALLOC_CFLAGS): Remove. * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Remove. * gdbserver/Makefile.in (MMALLOC_*): Remove. * config/rs6000/rs6000.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/rs6000/aix4.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/powerpc/aix4.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/powerpc/aix.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/ns32k/ns32km3.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/mips/mipsm3.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/mips/decstation.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/m88k/cxux.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/i386/xm-windows.h (NO_MMALLOC, NO_MMCHECK): Remove. * config/i386/i386mk.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/i386/i386m3.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/i386/i386gnu.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/alpha/alpha-osf1.mh (MMALLOC, MMALLOC_CFLAGS): Remove. * config/alpha/alpha-linux.mh (MMALLOC, MMALLOC_CFLAGS): Remove. --- gdb/configure.in | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'gdb/configure.in') diff --git a/gdb/configure.in b/gdb/configure.in index 5dcb025..438796e 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -73,7 +73,7 @@ AC_CHECK_FUNCS(setpgid sbrk select poll sigaction) if test "${target}" = "${host}"; then case "${host}" in i[[3456]]86-*-linux*) - AC_DEFINE(START_INFERIOR_TRAPS_EXPECTED,"2") + AC_DEFINE(START_INFERIOR_TRAPS_EXPECTED,2) AC_DEFINE(sys_quotactl) ;; esac @@ -250,6 +250,26 @@ if test "${enable_netrom}" = "yes"; then CONFIG_OBS="${CONFIG_OBS} remote-nrom.o" fi +MMALLOC_CFLAGS= +MMALLOC= +AC_SUBST(MMALLOC_CFLAGS) +AC_SUBST(MMALLOC) + +AC_ARG_WITH(mmalloc, +[ --with-mmalloc use memory mapped malloc package], +[case "${withval}" in + yes) want_mmalloc=true ;; + no) want_mmalloc=false;; + *) AC_MSG_ERROR(bad value ${withval} for GDB with-mmalloc option) ;; +esac],[want_mmalloc=false])dnl + +if test x$want_mmalloc = xtrue; then + AC_DEFINE(USE_MMALLOC) + AC_DEFINE(FORCE_MMCHECK) + MMALLOC_CFLAGS="-I$srcdir/../mmalloc" + MMALLOC='../mmalloc/libmmalloc.a' +fi + # start-sanitize-gdbtk ENABLE_IDE= AC_ARG_ENABLE(ide, [ --enable-ide Enable IDE support]) -- cgit v1.1