From 7b386cce80d475e3495051e99e9ef180d02fa097 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Fri, 5 Jan 2007 19:58:58 +0000 Subject: Add --enable-debug back, which hasn't been supported for a while. Bump version to 0.17. --- conf/configure.in.in | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'conf') diff --git a/conf/configure.in.in b/conf/configure.in.in index 85deb19..e505104 100644 --- a/conf/configure.in.in +++ b/conf/configure.in.in @@ -4,7 +4,7 @@ AC_INIT(Makefile.am) AC_CONFIG_AUX_DIR(conf) AC_CANONICAL_SYSTEM AM_CONFIG_HEADER(include/config.h) -AM_INIT_AUTOMAKE(plptools, 0.16) +AM_INIT_AUTOMAKE(plptools, 0.17) AM_PROG_LIBTOOL PLP_SET_LIBVERSION @@ -16,6 +16,25 @@ AC_PROG_MAKE_SET AC_PROG_AWK AC_PATH_PROG(SED,sed) +dnl Debugging +AC_MSG_CHECKING([if the debugging code should be included]) +AC_ARG_ENABLE(debug, +AC_HELP_STRING([--enable-debug], [include debugging code]), +[ +if test $enableval = yes; then + CFLAGS="-g" + if test "$GCC" = "yes"; then + CFLAGS="$CFLAGS -ggdb" + fi + AC_MSG_RESULT(yes) + AC_DEFINE(DEBUG, 1, [Define this to include debugging code.]) +else + AC_MSG_RESULT(no) +fi +], [ +AC_MSG_RESULT(no) +]) + dnl NLS support ALL_LINGUAS="de sv" AM_GNU_GETTEXT -- cgit v1.2.3