aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conf/configure.in.in21
1 files changed, 20 insertions, 1 deletions
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