[asterisk-commits] russell: branch 1.4 r77410 - in /branches/1.4: ./ build_tools/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 26 16:23:24 CDT 2007


Author: russell
Date: Thu Jul 26 16:23:23 2007
New Revision: 77410

URL: http://svn.digium.com/view/asterisk?view=rev&rev=77410
Log:
AST_DEVMODE was defined in trunk, but not in 1.4.  When Asterisk is compiled
under dev mode, AST_DEVMODE will get defined in buildopts.h.  Change 1.4 to
define it in the same way that trunk does.  Also, revert the change that added
this define in the Makefile

The advantage to doing it this way is that buildopts.h gets installed when
you install Asterisk.  Then, when building any out of tree modules, or
building asterisk-addons, these modules know which options the rest of Asterisk
was built with.

Modified:
    branches/1.4/Makefile
    branches/1.4/build_tools/make_buildopts_h

Modified: branches/1.4/Makefile
URL: http://svn.digium.com/view/asterisk/branches/1.4/Makefile?view=diff&rev=77410&r1=77409&r2=77410
==============================================================================
--- branches/1.4/Makefile (original)
+++ branches/1.4/Makefile Thu Jul 26 16:23:23 2007
@@ -192,7 +192,7 @@
 ASTCFLAGS+=-include $(ASTTOPDIR)/include/asterisk/autoconfig.h
 
 ifeq ($(AST_DEVMODE),yes)
-  ASTCFLAGS+=-Werror  -Wunused $(AST_DECLARATION_AFTER_STATEMENT) -DAST_DEVMODE
+  ASTCFLAGS+=-Werror  -Wunused $(AST_DECLARATION_AFTER_STATEMENT)
 endif
 
 ifneq ($(findstring BSD,$(OSARCH)),)

Modified: branches/1.4/build_tools/make_buildopts_h
URL: http://svn.digium.com/view/asterisk/branches/1.4/build_tools/make_buildopts_h?view=diff&rev=77410&r1=77409&r2=77410
==============================================================================
--- branches/1.4/build_tools/make_buildopts_h (original)
+++ branches/1.4/build_tools/make_buildopts_h Thu Jul 26 16:23:23 2007
@@ -11,3 +11,7 @@
 for x in ${TMP}; do
      echo "#define ${x} 1"
 done
+if grep AST_DEVMODE makeopts | grep -q yes
+then
+	echo "#define AST_DEVMODE 1"
+fi




More information about the asterisk-commits mailing list