aboutsummaryrefslogtreecommitdiffstats
path: root/m4/evo_purify_support.m4
diff options
context:
space:
mode:
authorH.Habighorst <tearofadragon@googlemail.com>2009-08-11 03:31:21 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-08-12 06:15:32 +0800
commitc8464aecbb1691947d8fd7a54e9b9adac85271ed (patch)
treeaebf8b10f35a7653380769865b10a754af419e1e /m4/evo_purify_support.m4
parent9362a0f9854790a487481dd487985733af73be2c (diff)
downloadgsoc2013-evolution-c8464aecbb1691947d8fd7a54e9b9adac85271ed.tar
gsoc2013-evolution-c8464aecbb1691947d8fd7a54e9b9adac85271ed.tar.gz
gsoc2013-evolution-c8464aecbb1691947d8fd7a54e9b9adac85271ed.tar.bz2
gsoc2013-evolution-c8464aecbb1691947d8fd7a54e9b9adac85271ed.tar.lz
gsoc2013-evolution-c8464aecbb1691947d8fd7a54e9b9adac85271ed.tar.xz
gsoc2013-evolution-c8464aecbb1691947d8fd7a54e9b9adac85271ed.tar.zst
gsoc2013-evolution-c8464aecbb1691947d8fd7a54e9b9adac85271ed.zip
Bug 591326 – Keep m4 macros in their own folder
Diffstat (limited to 'm4/evo_purify_support.m4')
-rw-r--r--m4/evo_purify_support.m423
1 files changed, 23 insertions, 0 deletions
diff --git a/m4/evo_purify_support.m4 b/m4/evo_purify_support.m4
new file mode 100644
index 0000000000..b64f2ebc04
--- /dev/null
+++ b/m4/evo_purify_support.m4
@@ -0,0 +1,23 @@
+dnl EVO_PURIFY_SUPPORT
+dnl Add --enable-purify. If the user turns it on, subst PURIFY and set
+dnl the automake conditional ENABLE_PURIFY
+#serial 0.1
+AC_DEFUN([EVO_PURIFY_SUPPORT],
+ [AC_ARG_ENABLE([purify],
+ [AS_HELP_STRING([--enable-purify],
+ [Enable support for building executables with Purify.])],
+ [enable_purify=yes],[enable_purify=no])
+ AC_PATH_PROG(PURIFY, purify, impure)
+ AC_ARG_WITH([purify-options],
+ [AS_HELP_STRING([--with-purify-options@<:@=OPTIONS@:>@],
+ [Options passed to the purify command line (defaults to PURIFYOPTIONS variable).])])
+ if test "x$with_purify_options" = "xno"; then
+ with_purify_options="-always-use-cache-dir=yes -cache-dir=/gnome/lib/purify"
+ fi
+ if test "x$PURIFYOPTIONS" = "x"; then
+ PURIFYOPTIONS=$with_purify_options
+ fi
+ AC_SUBST(PURIFY)
+ AM_CONDITIONAL(ENABLE_PURIFY, [test x$enable_purify = xyes -a x$PURIFY != ximpure])
+ PURIFY="$PURIFY $PURIFYOPTIONS"
+])