[Libsysio-commit] strided-io: libsysio Rules.make configure.in
Brought to you by:
lward
|
From: Lee W. <lw...@us...> - 2004-01-27 21:34:50
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2222 Modified Files: Tag: strided-io Rules.make configure.in Log Message: Added --with-zero-sum-memory which causes _sysio_shutdown to have various global (variable sized) tables deallocated at shutdown time. This in order to make *all* memory dynamically allocated during the run is free'd. This is really a debugging only option. These tables, normally, need not be freed. Once that was accomplished valgrind was run. No errors/leaks are reported now. Index: Rules.make =================================================================== RCS file: /cvsroot/libsysio/libsysio/Rules.make,v retrieving revision 1.4.16.1 retrieving revision 1.4.16.2 diff -u -w -b -B -p -r1.4.16.1 -r1.4.16.2 --- Rules.make 26 Jan 2004 16:27:46 -0000 1.4.16.1 +++ Rules.make 27 Jan 2004 21:33:44 -0000 1.4.16.2 @@ -14,5 +14,5 @@ endif DEV_CPPFLAGS = $(STDFD_DEV_CPPFLAGS) AM_CPPFLAGS = \ - $(AUTOMOUNT) $(DEV_CPPFLAGS) $(SOCKETS_CPPFLAGS) \ + $(AUTOMOUNT) $(ZERO_SUM_MEMORY) $(DEV_CPPFLAGS) $(SOCKETS_CPPFLAGS) \ -I$(top_srcdir)/include Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.12.6.2 retrieving revision 1.12.6.3 diff -u -w -b -B -p -r1.12.6.2 -r1.12.6.3 --- configure.in 26 Jan 2004 16:27:46 -0000 1.12.6.2 +++ configure.in 27 Jan 2004 21:33:44 -0000 1.12.6.3 @@ -90,6 +90,17 @@ AC_ARG_WITH(stdfd-dev, [with_stdfd_dev=yes]) AM_CONDITIONAL(WITH_STDFD_DEV, test x$with_stdfd_dev = xyes) +AC_ARG_WITH(zero-sum-memory, + AC_HELP_STRING([--with-zero-sum-memory], + [free all dynamically allocated memory at the end -- useful for debugging]), + [ case "${withval}" in + yes) ZERO_SUM_MEMORY=-DZERO_SUM_MEMORY=1 ;; + no) ;; + *) AC_MSG_ERROR(bad value ${withval} for --with-zero-sum-memory) ;; + esac], + [with_zero-sum-memory=no]) +AC_SUBST(ZERO_SUM_MEMORY) + AC_ARG_WITH(cplant_yod, AC_HELP_STRING([--with-cplant-yod],[build cplant yod I/O driver]), [ case "${withval}" in |