[Freeswitch-svn] [commit] r4634 - in freeswitch/trunk: libs/libdingaling src/mod/endpoints/mod_dingaling

Freeswitch SVN mikej at freeswitch.org
Sat Mar 17 18:21:27 EDT 2007


Author: mikej
Date: Sat Mar 17 18:21:27 2007
New Revision: 4634

Added:
   freeswitch/trunk/libs/libdingaling/configure.gnu
Modified:
   freeswitch/trunk/libs/libdingaling/Makefile.am
   freeswitch/trunk/libs/libdingaling/Makefile.in
   freeswitch/trunk/src/mod/endpoints/mod_dingaling/Makefile

Log:
make libdingaling static and have it properly handle building it's own deps.  Use in tree static apr, apr-utils, iksemel with libdingaling

Modified: freeswitch/trunk/libs/libdingaling/Makefile.am
==============================================================================
--- freeswitch/trunk/libs/libdingaling/Makefile.am	(original)
+++ freeswitch/trunk/libs/libdingaling/Makefile.am	Sat Mar 17 18:21:27 2007
@@ -1,32 +1,39 @@
 EXTRA_DIST =
 SUBDIRS = 
-AUTOMAKE_OPTS= gnu
+AUTOMAKE_OPTS=foreign
 NAME=dingaling
 PREFIX=$(prefix)
+TOUCH_TARGET=@if test -f "$@" ; then touch "$@" ; fi ;
 
 AM_CFLAGS   = $(new_AM_CFLAGS) -I./src -I$(prefix)/include
 AM_CPPFLAGS = $(AM_CFLAGS)
 AM_LDFLAGS  = $(new_AM_LDFLAGS)
 
-APR_CONFIG= $(shell which ../apr/apr-1-config || which $(prefix)/bin/apr-1-config )
-APU_CONFIG= $(shell which ../apr-util/apu-1-config || which $(prefix)/bin/apu-1-config)
-AM_CFLAGS  += -I$(PREFIX)/include $(shell $(APR_CONFIG) --cflags --cppflags --includes)
-AM_LDFLAGS += -L$(PREFIX)/lib
-AM_LDFLAGS += $(shell $(APR_CONFIG) --link-ld --libs )
-AM_CFLAGS  += $(shell $(APU_CONFIG) --includes) 
-AM_LDFLAGS += $(shell $(APU_CONFIG) --link-ld --libs )
+AM_CFLAGS  += `../apr/apr-1-config --cflags --cppflags --includes || $(prefix)/bin/apr-1-config --cflags --cppflags --includes`
+AM_CFLAGS  += `../apr-util/apu-1-config --includes || $(prefix)/bin/apu-1-config --includes`
 AM_CFLAGS  += -I../iksemel/include
 
-
 lib_LTLIBRARIES		= libdingaling.la
 libdingaling_la_SOURCES	= src/libdingaling.c src/sha1.c
 libdingaling_la_CFLAGS	= $(AM_CFLAGS)
-libdingaling_la_LDFLAGS	= 
-libdingaling_la_LIBADD  = ../iksemel/src/libiksemel.la
+libdingaling_la_LDFLAGS	= $(AM_LDFLAGS)
+libdingaling_la_LIBADD  = ../iksemel/src/libiksemel.la ../apr/libapr-1.la ../apr-util/libaprutil-1.la
 library_includedir	= $(prefix)/include
 library_include_HEADERS = src/libdingaling.h
 
+$(libdingaling_la_SOURCES): $(libdingaling_la_LIBADD)
 
+../apr/libapr-1.la: ../apr ../apr/.update
+	cd ../apr && $(MAKE)
+	$(TOUCH_TARGET)
+
+../apr-util/libaprutil-1.la: ../apr-util ../apr-util/.update
+	cd ../apr-util && $(MAKE)
+	$(TOUCH_TARGET)
+
+../iksemel/src/libiksemel.la: ../iksemel ../iksemel/.update
+	cd ../iksemel && $(MAKE)
+	$(TOUCH_TARGET)
 
 dox:
 	cd docs && doxygen $(PWD)/docs/Doxygen.conf

Modified: freeswitch/trunk/libs/libdingaling/Makefile.in
==============================================================================
--- freeswitch/trunk/libs/libdingaling/Makefile.in	(original)
+++ freeswitch/trunk/libs/libdingaling/Makefile.in	Sat Mar 17 18:21:27 2007
@@ -74,7 +74,8 @@
 	"$(DESTDIR)$(library_includedir)"
 libLTLIBRARIES_INSTALL = $(INSTALL)
 LTLIBRARIES = $(lib_LTLIBRARIES)
-libdingaling_la_DEPENDENCIES = ../iksemel/src/libiksemel.la
+libdingaling_la_DEPENDENCIES = ../iksemel/src/libiksemel.la \
+	../apr/libapr-1.la ../apr-util/libaprutil-1.la
 am_libdingaling_la_OBJECTS = libdingaling_la-libdingaling.lo \
 	libdingaling_la-sha1.lo
 libdingaling_la_OBJECTS = $(am_libdingaling_la_OBJECTS)
@@ -218,23 +219,22 @@
 target_alias = @target_alias@
 EXTRA_DIST = 
 SUBDIRS = 
-AUTOMAKE_OPTS = gnu
+AUTOMAKE_OPTS = foreign
 NAME = dingaling
 PREFIX = $(prefix)
+TOUCH_TARGET = @if test -f "$@" ; then touch "$@" ; fi ;
 AM_CFLAGS = $(new_AM_CFLAGS) -I./src -I$(prefix)/include \
-	-I$(PREFIX)/include $(shell $(APR_CONFIG) --cflags --cppflags \
-	--includes) $(shell $(APU_CONFIG) --includes) \
-	-I../iksemel/include
+	`../apr/apr-1-config --cflags --cppflags --includes || \
+	$(prefix)/bin/apr-1-config --cflags --cppflags --includes` \
+	`../apr-util/apu-1-config --includes || \
+	$(prefix)/bin/apu-1-config --includes` -I../iksemel/include
 AM_CPPFLAGS = $(AM_CFLAGS)
-AM_LDFLAGS = $(new_AM_LDFLAGS) -L$(PREFIX)/lib $(shell $(APR_CONFIG) \
-	--link-ld --libs ) $(shell $(APU_CONFIG) --link-ld --libs )
-APR_CONFIG = $(shell which ../apr/apr-1-config || which $(prefix)/bin/apr-1-config )
-APU_CONFIG = $(shell which ../apr-util/apu-1-config || which $(prefix)/bin/apu-1-config)
+AM_LDFLAGS = $(new_AM_LDFLAGS)
 lib_LTLIBRARIES = libdingaling.la
 libdingaling_la_SOURCES = src/libdingaling.c src/sha1.c
 libdingaling_la_CFLAGS = $(AM_CFLAGS)
-libdingaling_la_LDFLAGS = 
-libdingaling_la_LIBADD = ../iksemel/src/libiksemel.la
+libdingaling_la_LDFLAGS = $(AM_LDFLAGS)
+libdingaling_la_LIBADD = ../iksemel/src/libiksemel.la ../apr/libapr-1.la ../apr-util/libaprutil-1.la
 library_includedir = $(prefix)/include
 library_include_HEADERS = src/libdingaling.h
 all: all-recursive
@@ -763,6 +763,20 @@
 	uninstall-library_includeHEADERS
 
 
+$(libdingaling_la_SOURCES): $(libdingaling_la_LIBADD)
+
+../apr/libapr-1.la: ../apr ../apr/.update
+	cd ../apr && $(MAKE)
+	$(TOUCH_TARGET)
+
+../apr-util/libaprutil-1.la: ../apr-util ../apr-util/.update
+	cd ../apr-util && $(MAKE)
+	$(TOUCH_TARGET)
+
+../iksemel/src/libiksemel.la: ../iksemel ../iksemel/.update
+	cd ../iksemel && $(MAKE)
+	$(TOUCH_TARGET)
+
 dox:
 	cd docs && doxygen $(PWD)/docs/Doxygen.conf
 

Added: freeswitch/trunk/libs/libdingaling/configure.gnu
==============================================================================
--- (empty file)
+++ freeswitch/trunk/libs/libdingaling/configure.gnu	Sat Mar 17 18:21:27 2007
@@ -0,0 +1,3 @@
+#! /bin/sh
+./configure "$@" --disable-shared
+

Modified: freeswitch/trunk/src/mod/endpoints/mod_dingaling/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_dingaling/Makefile	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_dingaling/Makefile	Sat Mar 17 18:21:27 2007
@@ -1,8 +1,6 @@
 BASE=../../../..
 
-IKSEMEL_DIR=$(BASE)/libs/iksemel
 DING_DIR=$(BASE)/libs/libdingaling
-IKSEMELLA=$(IKSEMEL_DIR)/src/libiksemel.la
 DINGLA=$(DING_DIR)/libdingaling.la
 
 LOCAL_CFLAGS=-I$(DING_DIR)/src
@@ -10,18 +8,6 @@
 
 include $(BASE)/build/modmake.rules
 
-INST_DINGLA=$(PREFIX)/lib/libdingaling.la
-
-$(IKSEMELLA): $(IKSEMEL_DIR) $(IKSEMEL_DIR)/.update
-	cd $(IKSEMEL_DIR) && $(MAKE)
-	$(TOUCH_TARGET)
-
-$(DINGLA): $(IKSEMELLA) $(DING_DIR) $(DING_DIR)/.update
+$(DINGLA): $(DING_DIR) $(DING_DIR)/.update
 	cd $(DING_DIR) && $(MAKE)
 	$(TOUCH_TARGET)
-
-depend_install: $(INST_DINGLA)
-
-$(INST_DINGLA): $(DINGLA)
-	cd $(DING_DIR) && $(MAKE) install
-



More information about the Freeswitch-svn mailing list