[asterisk-commits] branch group/autoconf_and_menuselect r22154 -
/team/group/autoconf_and_menuse...
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sat Apr 22 06:14:24 MST 2006
Author: russell
Date: Sat Apr 22 08:14:23 2006
New Revision: 22154
URL: http://svn.digium.com/view/asterisk?rev=22154&view=rev
Log:
- fix the first argment to AC_ARG_ENABLE so that developer mode can actually
be enabled
- change the option from --enable-developer-mode to --enable-dev-mode
because i'm lazy
- rename the result variable from PBX_DEBUG to AST_DEV_MODE
- add -Werror and -Wunused to the CFLAGS when dev mode is enabled
Modified:
team/group/autoconf_and_menuselect/Makefile
team/group/autoconf_and_menuselect/configure.ac
team/group/autoconf_and_menuselect/makeopts.in
Modified: team/group/autoconf_and_menuselect/Makefile
URL: http://svn.digium.com/view/asterisk/team/group/autoconf_and_menuselect/Makefile?rev=22154&r1=22153&r2=22154&view=diff
==============================================================================
--- team/group/autoconf_and_menuselect/Makefile (original)
+++ team/group/autoconf_and_menuselect/Makefile Sat Apr 22 08:14:23 2006
@@ -255,7 +255,11 @@
INCLUDE+=-Iinclude -I../include
ASTCFLAGS+=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) #-DMAKE_VALGRIND_HAPPY
ASTCFLAGS+=$(OPTIMIZE)
-ASTCFLAGS+=# -Werror -Wunused
+
+ifeq ($(AST_DEVMODE),yes)
+ ASTCFLAGS+=-Werror -Wunused
+endif
+
ifeq ($(shell gcc -v 2>&1 | grep 'gcc version' | cut -f3 -d' ' | cut -f1 -d.),4)
ASTCFLAGS+= -Wno-pointer-sign
endif
Modified: team/group/autoconf_and_menuselect/configure.ac
URL: http://svn.digium.com/view/asterisk/team/group/autoconf_and_menuselect/configure.ac?rev=22154&r1=22153&r2=22154&view=diff
==============================================================================
--- team/group/autoconf_and_menuselect/configure.ac (original)
+++ team/group/autoconf_and_menuselect/configure.ac Sat Apr 22 08:14:23 2006
@@ -148,14 +148,14 @@
AC_LANG(C)
-# turn on/off developer mode...
-AC_ARG_ENABLE(debug,
- [ --enable-developer-mode Turn on developer mode],
+AC_ARG_ENABLE(dev-mode,
+ [ --enable-dev-mode Turn on developer mode],
[case "${enableval}" in
- yes) PBX_DEBUG=Yes ;;
- no) PBX_DEBUG=No ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-developer-mode) ;;
+ y|ye|yes) AST_DEVMODE=yes ;;
+ n|no) AST_DEVMODE=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-dev-mode) ;;
esac])
+AC_SUBST(AST_DEVMODE)
AST_EXT_LIB([asound], [snd_spcm_init], [alsa/asoundlib.h], [ALSA], [Advanced Linux Sound Architecture], [-lm -ldl])
AST_EXT_LIB([mfcr2], [mfcr2_MakeCall], [libmfcr2.h], [MFCR2], [MFCR2])
Modified: team/group/autoconf_and_menuselect/makeopts.in
URL: http://svn.digium.com/view/asterisk/team/group/autoconf_and_menuselect/makeopts.in?rev=22154&r1=22153&r2=22154&view=diff
==============================================================================
--- team/group/autoconf_and_menuselect/makeopts.in (original)
+++ team/group/autoconf_and_menuselect/makeopts.in Sat Apr 22 08:14:23 2006
@@ -22,7 +22,7 @@
INSTALL_PREFIX=@prefix@
-PBX_DEBUG=@PBX_DEBUG@
+AST_DEVMODE=@AST_DEVMODE@
OGG_LIB=@ogg_LIB@
OGG_INCLUDE=@ogg_INCLUDE@
More information about the asterisk-commits
mailing list