From 40e96b94d6b0f3801c33ea9ed16ae580f20a930a Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 6 Feb 2007 16:11:25 +0000 Subject: [PATCH] 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 --- src/mod/event_handlers/mod_cdr/Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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)