updated changelog
[platform/upstream/evolution-data-server.git] / m4 / evo_purify_support.m4
1 dnl EVO_PURIFY_SUPPORT
2 dnl Add --enable-purify. If the user turns it on, subst PURIFY and set
3 dnl the automake conditional ENABLE_PURIFY
4 #serial 0.1
5 AC_DEFUN([EVO_PURIFY_SUPPORT],
6         [AC_ARG_ENABLE([purify],
7                 [AS_HELP_STRING([--enable-purify],
8                 [Enable support for building executables with Purify.])],
9                 [enable_purify=yes],[enable_purify=no])
10         AC_PATH_PROG(PURIFY, purify, impure)
11         AC_ARG_WITH([purify-options],
12                 [AS_HELP_STRING([--with-purify-options@<:@=OPTIONS@:>@],
13                 [Options passed to the purify command line (defaults to PURIFYOPTIONS variable).])])
14         if test "x$with_purify_options" = "xno"; then
15                 with_purify_options="-always-use-cache-dir=yes -cache-dir=/gnome/lib/purify"
16         fi
17         if test "x$PURIFYOPTIONS" = "x"; then
18                 PURIFYOPTIONS=$with_purify_options
19         fi
20         AC_SUBST(PURIFY)
21         AM_CONDITIONAL(ENABLE_PURIFY, [test x$enable_purify = xyes -a x$PURIFY != ximpure])
22         PURIFY="$PURIFY $PURIFYOPTIONS"
23 ])