[Asterisk-Dev] Bug in apps/Makefile
Otmar Lendl
lendl at nic.at
Wed Aug 27 23:51:52 MST 2003
On 2003/08/28 02:08, Adam Hart <work at adamhart.net> wrote:
> > > > Should be:
> > > > app_voicemail2.so : app_voicemail2.o
> > > > $(CC) -shared -Xlinker -x -o $@ $(MLFLAGS) -lmysqlclient $<
> > > >
> > > > I assume this is where I send these problems?
> > >
> >
> > since when does VoiceMail require mysqlclient?
> > I have no traces of MYSQL installed on this system, and never had compile
> > issues (unless of course, this is all part of a conditional #define
> >
> Voicemail2 has a mysql option, the -lmysqlclient should actually be part of
> the conditional defines @ the top.
The MySQL support for voicemail2 ist turned on by setting
USE_MYSQL_VM_INTERFACE=1 in the Makefile.
As I've been doing some work on voicemail2 recently, this
is the diff to the Makefile on my box.
As you can see, I've added the feature of using PostgreSQL
as an alternative to MySQL. I'll post the full diff set
to bugs.digium.com when I've finished testing my code.
/ol
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
diff -u -r1.13 Makefile
--- Makefile 25 Aug 2003 15:42:25 -0000 1.13
+++ Makefile 28 Aug 2003 07:05:19 -0000
@@ -12,6 +12,7 @@
#
USE_MYSQL_VM_INTERFACE=0
+USE_POSTGRES_VM_INTERFACE=1
MLFLAGS=
ifeq ($(USE_MYSQL_VM_INTERFACE),1)
@@ -19,10 +20,17 @@
CFLAGS+=$(shell if [ -d /usr/include/mysql ]; then echo "-I/usr/include/mysql"; fi)
CFLAGS+=$(shell if [ -d /usr/local/include/mysql ]; then echo "-I/usr/local/include/mysql"; fi)
CFLAGS+=$(shell if [ -d /opt/mysql/include/mysql ]; then echo "-I/opt/mysql/include/mysql"; fi)
-MLFLAGS+=$(shell if [ -d /usr/lib/mysql ]; then echo "-L/usr/lib/mysql"; fi)
-MLFLAGS+=$(shell if [ -d /usr/local/mysql/lib ]; then echo "-L/usr/local/mysql/lib"; fi)
-MLFLAGS+=$(shell if [ -d /usr/local/lib/mysql ]; then echo "-L/usr/local/lib/mysql"; fi)
-MLFLAGS+=$(shell if [ -d /opt/mysql/lib/mysql ]; then echo "-L/opt/mysql/lib/mysql"; fi)
+CFLAGS+=-DUSEMYSQLVM
+MLMFLAGS+=$(shell if [ -d /usr/lib/mysql ]; then echo "-L/usr/lib/mysql"; fi)
+MLMFLAGS+=$(shell if [ -d /usr/local/mysql/lib ]; then echo "-L/usr/local/mysql/lib"; fi)
+MLMFLAGS+=$(shell if [ -d /usr/local/lib/mysql ]; then echo "-L/usr/local/lib/mysql"; fi)
+MLMFLAGS+=$(shell if [ -d /opt/mysql/lib/mysql ]; then echo "-L/opt/mysql/lib/mysql"; fi)
+MLMFLAGS+=-lmysqlclient
+endif
+
+ifeq ($(USE_POSTGRES_VM_INTERFACE),1)
+CFLAGS+=-DUSEPOSTGRESVM
+MLMFLAGS+=-lpq
endif
#APPS=app_dial.so app_playback.so app_directory.so app_intercom.so app_mp3.so
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--
< Otmar Lendl (lendl at nic.at) | nic.at Systems Engineer >
More information about the asterisk-dev
mailing list