diff options
author | Reuben Thomas <rrt@sc3d.org> | 2007-01-05 19:58:58 +0000 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2007-01-05 19:58:58 +0000 |
commit | 7b386cce80d475e3495051e99e9ef180d02fa097 (patch) | |
tree | 381a7baa08edcbb68ae26d5b25aec4f4d54b8ff7 /conf | |
parent | 241d94808bee4c35519ce86fe0b0f64df228d78f (diff) | |
download | plptools-7b386cce80d475e3495051e99e9ef180d02fa097.tar.gz plptools-7b386cce80d475e3495051e99e9ef180d02fa097.tar.bz2 plptools-7b386cce80d475e3495051e99e9ef180d02fa097.zip |
Add --enable-debug back, which hasn't been supported for a while.
Bump version to 0.17.
Diffstat (limited to 'conf')
-rw-r--r-- | conf/configure.in.in | 21 |
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 |