From 9334f7b749b882d775f421c06e9a6c056fe02e95 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Tue, 30 Dec 2008 01:33:42 +0000 Subject: [PATCH] Added PURIFY commands to top layer --- config.h.in | 4 ++++ configure.in | 9 +++++++++ preconfig | 11 +++++++++++ 3 files changed, 24 insertions(+) diff --git a/config.h.in b/config.h.in index a99ec20ff..509bbae54 100755 --- a/config.h.in +++ b/config.h.in @@ -12,6 +12,9 @@ // This just compiles in the code. #undef DEBUG_MODE +// Compiling with PURIFY instrumentation +#undef PURIFY_MODE + //------------------------ Fortran settings -------------------// @@ -74,6 +77,7 @@ typedef int ftnlen; // Fortran hidden string length type // Identify whether the operating system is solaris // with a native compiler #undef SOLARIS +o //--------- Fonts for reaction path diagrams ---------------------- #undef RXNPATH_FONT diff --git a/configure.in b/configure.in index 18a530fb9..fe260fc8a 100755 --- a/configure.in +++ b/configure.in @@ -718,6 +718,15 @@ fi echo " " +########################################################## +# PURIFY +########################################################## + +AC_SUBST(PURIFY) +if test "x$PURIFY" != "x"; then + AC_DEFINE(PURIFY_MODE) +fi + ######################################################## # BLAS and LAPACK ######################################################## diff --git a/preconfig b/preconfig index 74df3d398..1568678fb 100755 --- a/preconfig +++ b/preconfig @@ -145,6 +145,15 @@ F90=${F90:="n"} # flags here. F90FLAGS=${F90FLAGS:='-O3'} +#--------------------------------------------------------------------- +# Purify +#--------------------------------------------------------------------- + +# Add entries here for compiling Cantera with Purify extensions +# This command is put in front of every compilation and linking +# step +PURIFY=${PURIFY:=""} + #---------------------------------------------------------------------- # Customizations / Extensions #---------------------------------------------------------------------- @@ -553,6 +562,8 @@ export BOOST_THREAD_LIB export WITH_HTML_LOG_FILES +export PURIFY + chmod -f +x ./configure chmod -f +x config/config.guess chmod -f +x config/config.sub