From: Michael Jerris Date: Tue, 6 Feb 2007 16:11:25 +0000 (+0000) Subject: make mysql cdr build conditional on mysql being installed. Fixes auto build of mod_c... X-Git-Tag: v1.0-beta1~1228 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40e96b94d6b0f3801c33ea9ed16ae580f20a930a;p=thirdparty%2Ffreeswitch.git make mysql cdr build conditional on mysql being installed. Fixes auto build of mod_cdr on machines without mysql git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4132 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/event_handlers/mod_cdr/Makefile b/src/mod/event_handlers/mod_cdr/Makefile index bc86663d24..26f0928e1a 100644 --- a/src/mod/event_handlers/mod_cdr/Makefile +++ b/src/mod/event_handlers/mod_cdr/Makefile @@ -1,11 +1,13 @@ - -#CFLAGS += $(shell mysql_config --include) #CFLAGS += -DSWITCH_QUEUE_ENHANCED -#LDFLAGS += $(shell mysql_config --libs) #LDFLAGS += -lcurl - CPPCC = g++ -OBJS=cdrcontainer.o basecdr.o baseregistry.o mysqlcdr.o pddcdr.o csvcdr.o xmlcdr.o sqlitecdr.o +OBJS=cdrcontainer.o basecdr.o baseregistry.o pddcdr.o csvcdr.o xmlcdr.o sqlitecdr.o + +ifneq ($(shell which mysql_config),) + CFLAGS += $(shell mysql_config --include) + LDFLAGS += $(shell mysql_config --libs) + OBJS += mysqlcdr.o +endif all: depends $(OBJS) $(MODNAME).$(DYNAMIC_LIB_EXTEN)