[asterisk-commits] pcadach: branch pcadach/chan_h323-live r44067 - in /team/pcadach/chan_h323-li...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Sep 29 20:16:13 MST 2006


Author: pcadach
Date: Fri Sep 29 22:16:13 2006
New Revision: 44067

URL: http://svn.digium.com/view/asterisk?rev=44067&view=rev
Log:
Merged revisions 44054,44056,44058 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
r44054 | qwell | 2006-09-30 04:36:29 +0600 (Сбт, 30 Сен 2006) | 11 lines

Merged revisions 44053 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44053 | qwell | 2006-09-29 15:35:09 -0700 (Fri, 29 Sep 2006) | 3 lines

Fix a bug with the removal of 'atleast' argument to 'core verbose' and 'core debug'.
Add that argument back in.

........

................
r44056 | kpfleming | 2006-09-30 04:48:43 +0600 (Сбт, 30 Сен 2006) | 10 lines

Merged revisions 44055 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44055 | kpfleming | 2006-09-29 17:47:40 -0500 (Fri, 29 Sep 2006) | 2 lines

fix a few build system bugs, and convert Makefiles to be compatible with GNU make 3.80

........

................
r44058 | kpfleming | 2006-09-30 04:52:11 +0600 (Сбт, 30 Сен 2006) | 10 lines

Merged revisions 44057 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44057 | kpfleming | 2006-09-29 17:51:53 -0500 (Fri, 29 Sep 2006) | 2 lines

ignore temporary files made by the Makefiles during a build

........

................

Modified:
    team/pcadach/chan_h323-live/   (props changed)
    team/pcadach/chan_h323-live/Makefile.moddir_rules
    team/pcadach/chan_h323-live/Makefile.rules
    team/pcadach/chan_h323-live/agi/   (props changed)
    team/pcadach/chan_h323-live/agi/Makefile
    team/pcadach/chan_h323-live/build_tools/embed_modules.xml
    team/pcadach/chan_h323-live/channels/Makefile
    team/pcadach/chan_h323-live/codecs/Makefile
    team/pcadach/chan_h323-live/codecs/gsm/Makefile
    team/pcadach/chan_h323-live/codecs/ilbc/Makefile
    team/pcadach/chan_h323-live/codecs/lpc10/Makefile
    team/pcadach/chan_h323-live/configure
    team/pcadach/chan_h323-live/configure.ac
    team/pcadach/chan_h323-live/main/asterisk.c
    team/pcadach/chan_h323-live/main/cli.c
    team/pcadach/chan_h323-live/main/db1-ast/Makefile
    team/pcadach/chan_h323-live/pbx/Makefile
    team/pcadach/chan_h323-live/res/Makefile
    team/pcadach/chan_h323-live/utils/   (props changed)
    team/pcadach/chan_h323-live/utils/Makefile

Propchange: team/pcadach/chan_h323-live/
------------------------------------------------------------------------------
    automerge = *

Propchange: team/pcadach/chan_h323-live/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Propchange: team/pcadach/chan_h323-live/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Fri Sep 29 22:16:13 2006
@@ -1,1 +1,1 @@
-/trunk:1-44044
+/trunk:1-44066

Modified: team/pcadach/chan_h323-live/Makefile.moddir_rules
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/Makefile.moddir_rules?rev=44067&r1=44066&r2=44067&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/Makefile.moddir_rules (original)
+++ team/pcadach/chan_h323-live/Makefile.moddir_rules Fri Sep 29 22:16:13 2006
@@ -27,35 +27,18 @@
 
 comma:=,
 
-define module_o_template
-$(2): $(3)
-$(2): ASTCFLAGS+=-DAST_MODULE=\"$(1)\" $$(MENUSELECT_OPTS_$(1):%=-D%) $(foreach dep,$(MENUSELECT_DEPENDS_$(1)),$$(value $(dep)_INCLUDE))
-endef
+$(addsuffix .o,$(C_MODS)): ASTCFLAGS+=-DAST_MODULE=\"$*\" $(MENUSELECT_OPTS_$*:%=-D%) $(foreach dep,$(MENUSELECT_DEPENDS_$*),$(value $(dep)_INCLUDE))
+$(addsuffix .oo,$(CC_MODS)): ASTCFLAGS+=-DAST_MODULE=\"$*\" $(MENUSELECT_OPTS_$*:%=-D%) $(foreach dep,$(MENUSELECT_DEPENDS_$*),$(value $(dep)_INCLUDE))
 
-define module_so_template
-$(1)=$(1).so
-$(1).so: ASTCFLAGS+=-fPIC
-$(1).so: LIBS+=$(foreach dep,$(MENUSELECT_DEPENDS_$(1)),$$(value $(dep)_LIB))
-$(1).so: ASTLDFLAGS+=$(foreach dep,$(MENUSELECT_DEPENDS_$(1)),$$(value $(dep)_LDFLAGS))
-$(1).so: $(2)
-endef
+$(LOADABLE_MODS:%=%.so): ASTCFLAGS+=-fPIC
+$(LOADABLE_MODS:%=%.so): LIBS+=$(foreach dep,$(MENUSELECT_DEPENDS_$*),$(value $(dep)_LIB))
+$(LOADABLE_MODS:%=%.so): ASTLDFLAGS+=$(foreach dep,$(MENUSELECT_DEPENDS_$*),$(value $(dep)_LDFLAGS))
 
-define module_a_template
-$(1)=modules.link
-modules.link: $(2)
-endef
+$(addsuffix .so,$(filter $(LOADABLE_MODS),$(C_MODS))): %.so: %.o
+$(addsuffix .so,$(filter $(LOADABLE_MODS),$(CC_MODS))): %.so: %.oo
 
-$(foreach mod,$(C_MODS),$(eval $(call module_o_template,$(mod),$(mod).o,$(mod).c)))
-
-$(foreach mod,$(CC_MODS),$(eval $(call module_o_template,$(mod),$(mod).oo,$(mod).cc)))
-
-$(foreach mod,$(filter-out $(EMBEDDED_MODS),$(C_MODS)),$(eval $(call module_so_template,$(mod),$(mod).o)))
-
-$(foreach mod,$(filter-out $(EMBEDDED_MODS),$(CC_MODS)),$(eval $(call module_so_template,$(mod),$(mod).oo)))
-
-$(foreach mod,$(filter $(EMBEDDED_MODS),$(C_MODS)),$(eval $(call module_a_template,$(mod),$(mod).o)))
-
-$(foreach mod,$(filter $(EMBEDDED_MODS),$(CC_MODS)),$(eval $(call module_a_template,$(mod),$(mod).oo)))
+modules.link: $(addsuffix .o,$(filter $(EMBEDDED_MODS),$(C_MODS)))
+modules.link: $(addsuffix .oo,$(filter $(EMBEDDED_MODS),$(CC_MODS)))
 
 .PHONY: clean clean-depend depend uninstall _all
 
@@ -81,7 +64,8 @@
 
 modules.link:
 	@rm -f $@
-	@for file in $(patsubst $(ASTTOPDIR)/%,%,$(realpath $^)); do echo "INPUT (../$${file})" >> $@; done
+	@for file in $(patsubst %,$(SUBDIR)/%,$(filter %.o,$^)); do echo "INPUT (../$${file})" >> $@; done
+	@for file in $(patsubst %,$(SUBDIR)/%,$(filter-out %.o,$^)); do echo "INPUT (../$${file})" >> $@; done
 
 clean-depend::
 	rm -f .depend

Modified: team/pcadach/chan_h323-live/Makefile.rules
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/Makefile.rules?rev=44067&r1=44066&r2=44067&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/Makefile.rules (original)
+++ team/pcadach/chan_h323-live/Makefile.rules Fri Sep 29 22:16:13 2006
@@ -36,65 +36,30 @@
 ASTCFLAGS+=$(OPTIMIZE)
 endif
 
-define ast_make_o_c
-$(1): $(2)
-	$(ECHO_PREFIX) echo "   [CC] $$< -> $$@"
-	$(CMD_PREFIX) $$(CC) -o $$@ -c $$< $$(ASTCFLAGS)
-endef
+%.o: %.c
+	$(ECHO_PREFIX) echo "   [CC] $< -> $@"
+	$(CMD_PREFIX) $(CC) -o $@ -c $< $(ASTCFLAGS)
 
-define ast_make_oo_cc
-$(1): $(2)
-	$(ECHO_PREFIX) echo "   [CXX] $$< -> $$@"
-	$(CMD_PREFIX) $$(CXX) -o $$@ -c $$< $$(ASTCFLAGS)
-endef
+%.oo: %.cc
+	$(ECHO_PREFIX) echo "   [CXX] $< -> $@"
+	$(CMD_PREFIX) $(CXX) -o $@ -c $< $(ASTCFLAGS)
 
-define ast_make_c_y
-$(1): $(2)
-	$(ECHO_PREFIX) echo "   [BISON] $$< -> $$@"
-	$(CMD_PREFIX) bison -o $$@ -d --name-prefix=ast_yy $$<
-endef
+%.c: %.y
+	$(ECHO_PREFIX) echo "   [BISON] $< -> $@"
+	$(CMD_PREFIX) bison -o $@ -d --name-prefix=ast_yy $<
 
-define ast_make_c_fl
-$(1): $(2)
-	$(ECHO_PREFIX) echo "   [FLEX] $$< -> $$@"
-	$(CMD_PREFIX) flex -o $$@ --full $$<
-endef
+%.c: %.fl
+	$(ECHO_PREFIX) echo "   [FLEX] $< -> $@"
+	$(CMD_PREFIX) flex -o $@ --full $<
 
-define ast_make_so_o
-$(1): $(2)
-	$(ECHO_PREFIX) echo "   [LD] $$^ -> $$@"
-	$(CMD_PREFIX) $$(CC) $$(STATIC_BUILD) -o $$@ $$(ASTLDFLAGS) $$(SOLINK) $$^ $$(LIBS)
-endef
+%.so: %.o
+	$(ECHO_PREFIX) echo "   [LD] $^ -> $@"
+	$(CMD_PREFIX) $(CC) $(STATIC_BUILD) -o $@ $(ASTLDFLAGS) $(SOLINK) $^ $(LIBS)
 
-define ast_make_so_oo
-$(1): $(2)
-	$(ECHO_PREFIX) echo "   [LDXX] $$^ -> $$@"
-	$(CMD_PREFIX) $$(CXX) $$(STATIC_BUILD) -o $$@ $$(ASTLDFLAGS) $$(SOLINK) $$^ $$(LIBS)
-endef
+%.soo: %.oo
+	$(ECHO_PREFIX) echo "   [LDXX] $^ -> $@"
+	$(CMD_PREFIX) $(CXX) $(STATIC_BUILD) -o $@ $(ASTLDFLAGS) $(SOLINK) $^ $(LIBS)
 
-define ast_make_a_o
-$(1): $(2)
-	$(ECHO_PREFIX) echo "   [AR] $$^ -> $$@"
-	$(CMD_PREFIX) $$(AR) cr $$@ $$^
-	$(CMD_PREFIX) $$(RANLIB) $$@
-endef
-
-define ast_make_final
-$(1): $(2)
-	$(ECHO_PREFIX) echo "   [LD] $$^ -> $$@"
-	$(CMD_PREFIX) $$(CXX) $$(STATIC_BUILD) -o $$@ $$(ASTLDFLAGS) $$^ $$(LIBS)
-endef
-
-define ast_make_final_host
-$(1): $(2)
-	$(ECHO_PREFIX) echo "   [LD] $$^ -> $$@"
-	$(CMD_PREFIX) $$(HOST_CC) $$(STATIC_BUILD) -o $$@ $$(HOST_CFLAGS) $$(HOST_LDFLAGS) $$^ $$(LIBS)
-endef
-
-$(eval $(call ast_make_o_c,%.o,%.c))
-
-$(eval $(call ast_make_oo_cc,%.oo,%.cc))
-
-$(eval $(call ast_make_so_o,%.so,%.o))
-
-$(eval $(call ast_make_final,%,%.o))
+%: %.o
+	$(ECHO_PREFIX) echo "   [LD] $^ -> $@"
+	$(CMD_PREFIX) $(CXX) $(STATIC_BUILD) -o $@ $(ASTLDFLAGS) $^ $(LIBS)

Propchange: team/pcadach/chan_h323-live/agi/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Sep 29 22:16:13 2006
@@ -1,3 +1,4 @@
 eagi-test
 eagi-sphinx-test
 .depend
+strcompat.c

Modified: team/pcadach/chan_h323-live/agi/Makefile
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/agi/Makefile?rev=44067&r1=44066&r2=44067&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/agi/Makefile (original)
+++ team/pcadach/chan_h323-live/agi/Makefile Fri Sep 29 22:16:13 2006
@@ -23,11 +23,12 @@
 
 all: $(AGIS)
 
+strcompat.c: ../main/strcompat.c
+	@cp $< $@
+
 eagi-test: eagi-test.o strcompat.o
 
 eagi-sphinx-test: eagi-sphinx-test.o
-
-$(eval $(call ast_make_o_c,strcompat.o,../main/strcompat.c))
 
 install: all
 	mkdir -p $(DESTDIR)$(AGI_DIR)
@@ -41,6 +42,7 @@
 
 clean: clean-depend
 	rm -f *.so *.o look eagi-test eagi-sphinx-test
+	rm -f strcompat.c
 
 ifneq ($(wildcard .depend),)
   include .depend

Modified: team/pcadach/chan_h323-live/build_tools/embed_modules.xml
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/build_tools/embed_modules.xml?rev=44067&r1=44066&r2=44067&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/build_tools/embed_modules.xml (original)
+++ team/pcadach/chan_h323-live/build_tools/embed_modules.xml Fri Sep 29 22:16:13 2006
@@ -5,7 +5,7 @@
 		</member>
 		<member name="channels" displayname="Channels" remove_on_change="channels/*.o channels/misdn/*.o">
 		</member>
-		<member name="codecs" displayname="Coders/Decoders" remove_on_change="codecs/*.o">
+		<member name="codecs" displayname="Coders/Decoders" remove_on_change="codecs/*.o codecs/gsm/src/*.o codecs/ilbc/*.o codecs/lpc10/*.o codecs/gsm/lib/libgsm.a codecs/lpc10/liblpc10.a codecs/ilbc/libilbc.a">
 		</member>
 		<member name="formats" displayname="File Formats" remove_on_change="formats/*.o">
 		</member>

Modified: team/pcadach/chan_h323-live/channels/Makefile
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/channels/Makefile?rev=44067&r1=44066&r2=44067&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/channels/Makefile (original)
+++ team/pcadach/chan_h323-live/channels/Makefile Fri Sep 29 22:16:13 2006
@@ -80,7 +80,9 @@
 	$(CMD_PREFIX) exit 1
 endif
 
-$(eval $(call ast_make_final_host,gentone,gentone.c))
+gentone: gentone.c
+	$(ECHO_PREFIX) echo "   [LD] $^ -> $@"
+	$(CMD_PREFIX) $(HOST_CC) $(STATIC_BUILD) -o $@ $(HOST_CFLAGS) $(HOST_LDFLAGS) $^ $(LIBS)
 gentone: LIBS+=-lm
 
 busy.h: gentone
@@ -91,7 +93,7 @@
 
 chan_oss.o: busy.h ringtone.h
 
-$(chan_iax2): iax2-parser.o iax2-provision.o
+$(if $(filter chan_iax2,$(EMBEDDED_MODS)),modules.link,chan_iax2.so): iax2-parser.o iax2-provision.o
 
 chan_alsa.o: busy.h ringtone.h
 
@@ -109,4 +111,4 @@
 
 misdn_config.o: ASTCFLAGS+=-Imisdn 
 
-$(chan_misdn): chan_misdn.o misdn_config.o misdn/isdn_lib.o misdn/isdn_msg_parser.o
+$(if $(filter chan_misdn,$(EMBEDDED_MODS)),modules.link,chan_misdn.so): chan_misdn.o misdn_config.o misdn/isdn_lib.o misdn/isdn_msg_parser.o

Modified: team/pcadach/chan_h323-live/codecs/Makefile
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/codecs/Makefile?rev=44067&r1=44066&r2=44067&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/codecs/Makefile (original)
+++ team/pcadach/chan_h323-live/codecs/Makefile Fri Sep 29 22:16:13 2006
@@ -32,7 +32,7 @@
 
 ifneq ($(GSM_INTERNAL),)
 GSM_INCLUDE:=-Igsm/inc
-$(codec_gsm): gsm/lib/libgsm.a
+$(if $(filter codec_gsm,$(EMBEDDED_MODS)),modules.link,codec_gsm.so): gsm/lib/libgsm.a
 endif
 
 clean::
@@ -47,9 +47,9 @@
 $(LIBLPC10):
 	@$(MAKE) -C lpc10 all
 
-$(codec_lpc10): $(LIBLPC10)
+$(if $(filter codec_lpc10,$(EMBEDDED_MODS)),modules.link,codec_lpc10.so): $(LIBLPC10)
 
 $(LIBILBC):
 	@$(MAKE) -C ilbc all
 
-$(codec_ilbc): $(LIBILBC)
+$(if $(filter codec_ilbc,$(EMBEDDED_MODS)),modules.link,codec_ilbc.so): $(LIBILBC)

Modified: team/pcadach/chan_h323-live/codecs/gsm/Makefile
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/codecs/gsm/Makefile?rev=44067&r1=44066&r2=44067&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/codecs/gsm/Makefile (original)
+++ team/pcadach/chan_h323-live/codecs/gsm/Makefile Fri Sep 29 22:16:13 2006
@@ -347,7 +347,11 @@
 		ln -fs libgsm.so.1.0.10 lib/libgsm.so.1
 		ln -fs libgsm.so.1.0.10 lib/libgsm.so
 
-$(eval $(call ast_make_a_o,$(LIBGSM),$(GSM_OBJECTS)))
+$(LIBGSM): $(GSM_OBJECTS)
+	$(ECHO_PREFIX) echo "   [AR] $^ -> $@"
+	$(CMD_PREFIX) $(AR) cr $@ $^
+	$(CMD_PREFIX) $(RANLIB) $@
+
 
 # Toast, Untoast and Tcat -- the compress-like frontends to gsm.
 

Modified: team/pcadach/chan_h323-live/codecs/ilbc/Makefile
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/codecs/ilbc/Makefile?rev=44067&r1=44066&r2=44067&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/codecs/ilbc/Makefile (original)
+++ team/pcadach/chan_h323-live/codecs/ilbc/Makefile Fri Sep 29 22:16:13 2006
@@ -11,7 +11,10 @@
 
 all: $(LIB)
 
-$(eval $(call ast_make_a_o,$(LIB),$(OBJS)))
+$(LIB): $(OBJS)
+	$(ECHO_PREFIX) echo "   [AR] $^ -> $@"
+	$(CMD_PREFIX) $(AR) cr $@ $^
+	$(CMD_PREFIX) $(RANLIB) $@
 
 clean:
 	rm -f $(LIB) *.o

Modified: team/pcadach/chan_h323-live/codecs/lpc10/Makefile
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/codecs/lpc10/Makefile?rev=44067&r1=44066&r2=44067&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/codecs/lpc10/Makefile (original)
+++ team/pcadach/chan_h323-live/codecs/lpc10/Makefile Fri Sep 29 22:16:13 2006
@@ -64,7 +64,10 @@
     placea.o placev.o preemp.o prepro.o random.o rcchk.o \
     synths.o tbdm.o voicin.o vparms.o
 
-$(eval $(call ast_make_a_o,$(LIB),$(OBJ)))
+$(LIB): $(OBJ)
+	$(ECHO_PREFIX) echo "   [AR] $^ -> $@"
+	$(CMD_PREFIX) $(AR) cr $@ $^
+	$(CMD_PREFIX) $(RANLIB) $@
 
 clean:
 	rm -f *.o $(LIB)

Modified: team/pcadach/chan_h323-live/configure
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/configure?rev=44067&r1=44066&r2=44067&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/configure (original)
+++ team/pcadach/chan_h323-live/configure Fri Sep 29 22:16:13 2006
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Revision: 43835 .
+# From configure.ac Revision: 44045 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.60.
 #
@@ -4901,35 +4901,6 @@
 
 
 
-# http://www.mail-archive.com/bug-make@gnu.org/msg02871.html
-echo 'define A' > testMakefile
-echo '12345: $(1:.idl=.hh) $(1:.idl=S.h) $(1:.idl=C.h) $(1:.idl=SK.cc) $(1:.idl=DynSK.cc)' >> testMakefile
-echo 'endef' >> testMakefile
-echo '$(eval $(call A,01234567890123456789012345678901.idl))' >> testMakefile
-echo '01234567890123456789012345678901.hh:' >> testMakefile
-echo '01234567890123456789012345678901S.h:' >> testMakefile
-echo '01234567890123456789012345678901C.h:' >> testMakefile
-echo '01234567890123456789012345678901SK.cc:' >> testMakefile
-echo '01234567890123456789012345678901DynSK.cc:' >> testMakefile
-$GNU_MAKE -r -f testMakefile 2>&1 > /dev/null
-if test "$?" != "0" ; then
-  rm -f testMakefile
-  { echo "$as_me:$LINENO: ********** ERROR **********" >&5
-echo "$as_me: ********** ERROR **********" >&6;}
-  { echo "$as_me:$LINENO: Your version of GNU Make contains a bug that will cause the Asterisk build" >&5
-echo "$as_me: Your version of GNU Make contains a bug that will cause the Asterisk build" >&6;}
-  { echo "$as_me:$LINENO: system to not function properly.  This bug is known to be fixed in version" >&5
-echo "$as_me: system to not function properly.  This bug is known to be fixed in version" >&6;}
-  { echo "$as_me:$LINENO: 3.81 as well as distributions of 3.80 that contain backported bug fixes.  You" >&5
-echo "$as_me: 3.81 as well as distributions of 3.80 that contain backported bug fixes.  You" >&6;}
-  { echo "$as_me:$LINENO: must update GNU make to build Asterisk." >&5
-echo "$as_me: must update GNU make to build Asterisk." >&6;}
-  { echo "$as_me:$LINENO: ***************************" >&5
-echo "$as_me: ***************************" >&6;}
-  exit 1
-fi
-rm -f testMakefile
-
 # Extract the first word of "grep", so it can be a program name with args.
 set dummy grep; ac_word=$2
 { echo "$as_me:$LINENO: checking for $ac_word" >&5

Modified: team/pcadach/chan_h323-live/configure.ac
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/configure.ac?rev=44067&r1=44066&r2=44067&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/configure.ac (original)
+++ team/pcadach/chan_h323-live/configure.ac Fri Sep 29 22:16:13 2006
@@ -125,29 +125,6 @@
 AC_PROG_LN_S
 AC_PROG_RANLIB
 AST_CHECK_GNU_MAKE
-
-# http://www.mail-archive.com/bug-make@gnu.org/msg02871.html
-echo 'define A' > testMakefile
-echo '12345: $(1:.idl=.hh) $(1:.idl=S.h) $(1:.idl=C.h) $(1:.idl=SK.cc) $(1:.idl=DynSK.cc)' >> testMakefile
-echo 'endef' >> testMakefile
-echo '$(eval $(call A,01234567890123456789012345678901.idl))' >> testMakefile
-echo '01234567890123456789012345678901.hh:' >> testMakefile
-echo '01234567890123456789012345678901S.h:' >> testMakefile
-echo '01234567890123456789012345678901C.h:' >> testMakefile
-echo '01234567890123456789012345678901SK.cc:' >> testMakefile
-echo '01234567890123456789012345678901DynSK.cc:' >> testMakefile
-$GNU_MAKE -r -f testMakefile 2>&1 > /dev/null
-if test "$?" != "0" ; then
-  rm -f testMakefile
-  AC_MSG_NOTICE(********** ERROR **********)
-  AC_MSG_NOTICE(Your version of GNU Make contains a bug that will cause the Asterisk build)
-  AC_MSG_NOTICE(system to not function properly.  This bug is known to be fixed in version)
-  AC_MSG_NOTICE(3.81 as well as distributions of 3.80 that contain backported bug fixes.  You)
-  AC_MSG_NOTICE(must update GNU make to build Asterisk.)
-  AC_MSG_NOTICE(***************************)
-  exit 1
-fi
-rm -f testMakefile
 
 AC_PATH_PROG([GREP], [grep], :)
 AC_PATH_PROG([AR], [ar], :)

Modified: team/pcadach/chan_h323-live/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/main/asterisk.c?rev=44067&r1=44066&r2=44067&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/main/asterisk.c (original)
+++ team/pcadach/chan_h323-live/main/asterisk.c Fri Sep 29 22:16:13 2006
@@ -2074,9 +2074,9 @@
 		pid = atoi(cpid);
 	else
 		pid = -1;
-	snprintf(tmp, sizeof(tmp), "core verbose %d", option_verbose);
+	snprintf(tmp, sizeof(tmp), "core verbose atleast %d", option_verbose);
 	fdprint(ast_consock, tmp);
-	snprintf(tmp, sizeof(tmp), "core debug %d", option_debug);
+	snprintf(tmp, sizeof(tmp), "core debug atleast %d", option_debug);
 	fdprint(ast_consock, tmp);
 	if (ast_opt_mute) {
 		snprintf(tmp, sizeof(tmp), "log and verbose output currently muted ('logger unmute' to unmute)");

Modified: team/pcadach/chan_h323-live/main/cli.c
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/main/cli.c?rev=44067&r1=44066&r2=44067&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/main/cli.c (original)
+++ team/pcadach/chan_h323-live/main/cli.c Fri Sep 29 22:16:13 2006
@@ -175,12 +175,28 @@
 static int handle_verbose(int fd, int argc, char *argv[])
 {
 	int oldval = option_verbose;
-
-	if (argc == 3)
+	int newlevel;
+	int atleast = 0;
+
+	if ((argc < 3) || (argc > 4))
+		return RESULT_SHOWUSAGE;
+
+	if (!strcasecmp(argv[2], "atleast"))
+		atleast = 1;
+
+	if (!atleast) {
+		if (argc > 3)
+			return RESULT_SHOWUSAGE;
+
 		option_verbose = atoi(argv[2]);
-	else
-		return RESULT_SHOWUSAGE;
-
+	} else {
+		if (argc < 4)
+			return RESULT_SHOWUSAGE;
+
+		newlevel = atoi(argv[3]);
+		if (newlevel > option_verbose)
+			option_verbose = newlevel;
+        }
 	if (oldval > 0 && option_verbose == 0)
 		ast_cli(fd, "Verbosity is now OFF\n");
 	else if (option_verbose > 0) {
@@ -197,21 +213,46 @@
 {
 	int oldval = option_debug;
 	int newlevel;
+	int atleast = 0;
 	char *filename = '\0';
 
-	if ((argc < 3) || (argc > 4))
-		return RESULT_SHOWUSAGE;
-
-	if (sscanf(argv[2], "%d", &newlevel) != 1)
-		return RESULT_SHOWUSAGE;
-
-	option_debug = newlevel;
-
-	if (argc == 4) {
-		filename = argv[3];
-		ast_copy_string(debug_filename, filename, sizeof(debug_filename));
+	if ((argc < 3) || (argc > 5))
+		return RESULT_SHOWUSAGE;
+
+	if (!strcasecmp(argv[2], "atleast"))
+		atleast = 1;
+
+	if (!atleast) {
+		if (argc > 4)
+			return RESULT_SHOWUSAGE;
+
+		if (sscanf(argv[2], "%d", &newlevel) != 1)
+			return RESULT_SHOWUSAGE;
+
+		if (argc == 3) {
+			debug_filename[0] = '\0';
+		} else {
+			filename = argv[3];
+			ast_copy_string(debug_filename, filename, sizeof(debug_filename));
+		}
+
+		option_debug = newlevel;
 	} else {
-		debug_filename[0] = '\0';
+		if (argc < 4)
+			return RESULT_SHOWUSAGE;
+
+		if (sscanf(argv[3], "%d", &newlevel) != 1)
+			return RESULT_SHOWUSAGE;
+
+		if (argc == 4) {
+			debug_filename[0] = '\0';
+		} else {
+			filename = argv[4];
+			ast_copy_string(debug_filename, filename, sizeof(debug_filename));
+		}
+
+		if (newlevel > option_debug)
+			option_debug = newlevel;
 	}
 
 	if (oldval > 0 && option_debug == 0)

Modified: team/pcadach/chan_h323-live/main/db1-ast/Makefile
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/main/db1-ast/Makefile?rev=44067&r1=44066&r2=44067&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/main/db1-ast/Makefile (original)
+++ team/pcadach/chan_h323-live/main/db1-ast/Makefile Fri Sep 29 22:16:13 2006
@@ -36,7 +36,10 @@
 
 all: $(LIBDB) #$(LIBDBSO) $(PROG)
 
-$(eval $(call ast_make_a_o,$(LIBDB),$(OBJS)))
+$(LIBDB): $(OBJS)
+	$(ECHO_PREFIX) echo "   [AR] $^ -> $@"
+	$(CMD_PREFIX) $(AR) cr $@ $^
+	$(CMD_PREFIX) $(RANLIB) $@
 
 $(LIBDBSO): $(SHOBJS)
 	$(CC) -Wl,-O1 -Wl,--version-script=libdb.map -Wl,-soname=$(LIBDBSO) -shared -o $@ $^

Modified: team/pcadach/chan_h323-live/pbx/Makefile
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/pbx/Makefile?rev=44067&r1=44066&r2=44067&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/pbx/Makefile (original)
+++ team/pcadach/chan_h323-live/pbx/Makefile Fri Sep 29 22:16:13 2006
@@ -28,13 +28,13 @@
 clean::
 	rm -f ael/*.o
 
-$(eval $(call ast_make_o_c,ael/aelflex.o,ael/ael_lex.c ../include/asterisk/ael_structs.h ael/ael.tab.h))
-ael/aelflex.o: ASTCFLAGS+=-I.
+ael/ael_lex.o: ael/ael_lex.c ../include/asterisk/ael_structs.h ael/ael.tab.h
+ael/ael_lex.o: ASTCFLAGS+=-I.
 
-$(eval $(call ast_make_o_c,ael/aelbison.o,ael/ael.tab.c ael/ael.tab.h ../include/asterisk/ael_structs.h))
-ael/aelbison.o: ASTCFLAGS+=-I.
+ael/ael.tab.o: ael/ael.tab.c ael/ael.tab.h ../include/asterisk/ael_structs.h
+ael/ael.tab.o: ASTCFLAGS+=-I.
 
-$(pbx_ael): ael/aelbison.o ael/aelflex.o
+$(if $(filter pbx_ael,$(EMBEDDED_MODS)),modules.link,pbx_ael.so): ael/ael.tab.o ael/ael_lex.o
 
 ael/ael_lex.c:
 	(cd ael; flex ael.flex; sed -i -e "/begin standard C headers/i#include \"asterisk.h\"" ael_lex.c)
@@ -45,4 +45,4 @@
 dundi-parser.o: dundi-parser.h
 dundi-parser.o: ASTCFLAGS+=-I.
 
-$(pbx_dundi): dundi-parser.o
+$(if $(filter pbx_dundi,$(EMBEDDED_MODS)),modules.link,pbx_dundi.so): dundi-parser.o

Modified: team/pcadach/chan_h323-live/res/Makefile
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/res/Makefile?rev=44067&r1=44066&r2=44067&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/res/Makefile (original)
+++ team/pcadach/chan_h323-live/res/Makefile Fri Sep 29 22:16:13 2006
@@ -25,7 +25,7 @@
 
 include $(ASTTOPDIR)/Makefile.moddir_rules
 
-$(res_snmp): snmp/agent.o
+$(if $(filter res_snmp,$(EMBEDDED_MODS)),modules.link,res_snmp.so): snmp/agent.o
 
 clean::
 	rm -f snmp/*.o

Propchange: team/pcadach/chan_h323-live/utils/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Sep 29 22:16:13 2006
@@ -6,3 +6,10 @@
 streamplayer
 aelparse
 muted
+strcompat.c
+ast_expr2f.c
+md5.c
+ast_expr2.c
+pbx_ael.c
+aelbison.c
+aelparse.c

Modified: team/pcadach/chan_h323-live/utils/Makefile
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/utils/Makefile?rev=44067&r1=44066&r2=44067&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/utils/Makefile (original)
+++ team/pcadach/chan_h323-live/utils/Makefile Fri Sep 29 22:16:13 2006
@@ -13,7 +13,10 @@
 
 .PHONY: clean clean-depend all depend uninstall
 
-UTILS:=astman smsq stereorize streamplayer aelparse muted
+ALL_UTILS:=astman smsq stereorize streamplayer aelparse muted
+UTILS:=$(ALL_UTILS)
+
+include $(ASTTOPDIR)/Makefile.rules
 
 ifeq ($(OSARCH),SunOS)
   LIBS+=-lsocket -lnsl
@@ -32,8 +35,6 @@
   UTILS:=$(filter-out aelparse,$(UTILS))
 endif
 
-include $(ASTTOPDIR)/Makefile.rules
-
 all: $(UTILS)
 
 install:
@@ -44,21 +45,27 @@
 	done 
 
 uninstall:
-	for x in $(UTILS); do rm -f $$x $(DESTDIR)$(ASTSBINDIR)/$$x; done
+	for x in $(ALL_UTILS); do rm -f $$x $(DESTDIR)$(ASTSBINDIR)/$$x; done
 
 clean-depend:
 	rm -f .depend
 
 clean: clean-depend
-	rm -f *.o $(UTILS) check_expr
+	rm -f *.o $(ALL_UTILS) check_expr
+	rm -f md5.c strcompat.c ast_expr2.c ast_expr2f.c pbx_ael.c
+	rm -f aelparse.c aelbison.c
 
-$(eval $(call ast_make_final,astman,astman.o ../main/md5.o))
+md5.c: ../main/md5.c
+	@cp $< $@
+
+astman: astman.o md5.o
 astman: LIBS+=-lnewt -lslang -ldl
 
-$(eval $(call ast_make_final,stereorize,stereorize.o frame.o))
+stereorize: stereorize.o frame.o
 stereorize: LIBS+=-lm
 
-$(eval $(call ast_make_o_c,strcompat.o,../main/strcompat.c))
+strcompat.c: ../main/strcompat.c
+	@cp $< $@
 
 ../main/ast_expr2.c:
 	@echo "   [BISON] ../main/ast_expr2.y -> $@"
@@ -68,25 +75,33 @@
 	@echo "   [FLEX] ../main/ast_expr2.fl -> $@"
 	@flex -o $@ --full ../main/ast_expr2.fl
 
-$(eval $(call ast_make_o_c,ast_expr2.o,../main/ast_expr2.c))
+ast_expr2.c: ../main/ast_expr2.c
+	@cp $< $@
 
-$(eval $(call ast_make_o_c,ast_expr2f.o,../main/ast_expr2f.c))
-ast_expr2f.o: ASTCFLAGS+=-DSTANDALONE_AEL
+ast_expr2f.c: ../main/ast_expr2f.c
+	@cp $< $@
 
-$(eval $(call ast_make_final,check_expr,check_expr.c ast_expr2.o ast_expr2f.o))
+ast_expr2f.o: ASTCFLAGS+=-DSTANDALONE_AEL -I../main
 
-$(eval $(call ast_make_o_c,aelflex.o,../pbx/ael/ael_lex.c ../include/asterisk/ael_structs.h ../pbx/ael/ael.tab.h))
-aelflex.o: ASTCFLAGS+=-I../pbx -DSTANDALONE_AEL
+check_expr: check_expr.c ast_expr2.o ast_expr2f.o
 
-$(eval $(call ast_make_o_c,aelbison.o,../pbx/ael/ael.tab.c ../pbx/ael/ael.tab.h ../include/asterisk/ael_structs.h))
+aelbison.c: ../pbx/ael/ael.tab.c
+	@cp $< $@
+aelbison.o: aelbison.c ../pbx/ael/ael.tab.h ../include/asterisk/ael_structs.h
 aelbison.o: ASTCFLAGS+=-I../pbx
 
-$(eval $(call ast_make_o_c,pbx_ael.o,../pbx/pbx_ael.c))
+pbx_ael.c: ../pbx/pbx_ael.c
+	@cp $< $@
 pbx_ael.o: ASTCFLAGS+=-DSTANDALONE_AEL
 
-$(eval $(call ast_make_final,aelparse,aelflex.o aelbison.o pbx_ael.o ael_main.o ast_expr2f.o ast_expr2.o strcompat.o))
+ael_main.o: ael_main.c ../include/asterisk/ael_structs.h
 
-$(eval $(call ast_make_o_c,ael_main.o,ael_main.c ../include/asterisk/ael_structs.h))
+aelparse.c: ../pbx/ael/ael_lex.c
+	@cp $< $@
+aelparse.o: aelparse.c ../include/asterisk/ael_structs.h ../pbx/ael/ael.tab.h
+aelparse.o: ASTCFLAGS+=-I../pbx -DSTANDALONE_AEL
+
+aelparse: aelparse.o aelbison.o pbx_ael.o ael_main.o ast_expr2f.o ast_expr2.o strcompat.o
 
 testexpr2s: ../main/ast_expr2f.c ../main/ast_expr2.c ../main/ast_expr2.h
 	$(CC) -g -c -I../include -DSTANDALONE_AEL ../main/ast_expr2f.c -o ast_expr2f.o



More information about the asterisk-commits mailing list