[Freeswitch-svn] [commit] r4132 - freeswitch/trunk/src/mod/event_handlers/mod_cdr
Freeswitch SVN
mikej at freeswitch.org
Tue Feb 6 11:11:26 EST 2007
Author: mikej
Date: Tue Feb 6 11:11:25 2007
New Revision: 4132
Modified:
freeswitch/trunk/src/mod/event_handlers/mod_cdr/Makefile
Log:
make mysql cdr build conditional on mysql being installed. Fixes auto build of mod_cdr on machines without mysql
Modified: freeswitch/trunk/src/mod/event_handlers/mod_cdr/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_cdr/Makefile (original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_cdr/Makefile Tue Feb 6 11:11:25 2007
@@ -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)
More information about the Freeswitch-svn
mailing list