Permalink
Browse files

Renamed the --enable-debug configure option to the more standard --en…

…able-maintainer-mode
  • Loading branch information...
1 parent 84fa912 commit 26844b47691bbb0cb82221e58e37281e576e0174 @njh committed Jan 14, 2011
Showing with 5 additions and 14 deletions.
  1. +1 −1 autogen.sh
  2. +4 −13 configure.ac
View
@@ -66,7 +66,7 @@ automake_args="--gnu --add-missing --force --copy -Wall"
aclocal_args=
autoconf_args=
libtoolize_args="--force --copy --automake $ltdl_args"
-configure_args="--enable-debug"
+configure_args="--enable-maintainer-mode"
# You should not need to edit below here
View
@@ -14,6 +14,8 @@ AM_INIT_AUTOMAKE([1.10])
LT_PREREQ([2.2])
LT_INIT
+AM_MAINTAINER_MODE
+
dnl ############# Library Version
@@ -38,17 +40,6 @@ AC_SUBST(TWOLAME_SO_VERSION)
-
-dnl ############# Configure Arguments
-
-AC_ARG_ENABLE(debug,
- [ --enable-debug=[no/yes] turn on debugging],
- [ Debugging="Enabled"
- AC_DEFINE(DEBUG, 1, [ Define if debugging is enabled. ]) ],
- [ Debugging="Disabled" ]
-)
-
-
dnl ############# Compiler and tools Checks
AC_PROG_CC
@@ -131,8 +122,8 @@ AC_SUBST(TWOLAME_BIN)
dnl ############## Compiler and Linker Flags
-# If debugging is enabled then make warnings errors
-if test "$Debugging" = "Enabled"; then
+# If maintainer mode is enabled then make warnings errors
+if test "$USE_MAINTAINER_MODE" = yes; then
CFLAGS="$CFLAGS -g -O0 -Wall -Werror -pedantic"
CFLAGS="$CFLAGS -Wunused -Wmissing-prototypes -Wmissing-declarations"
else

0 comments on commit 26844b4

Please sign in to comment.