Add app_curl from tilghman (bug #3131)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4539 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-12-23 02:55:53 +00:00
parent 3fde2e56b8
commit 7cda0babd2
2 changed files with 152 additions and 0 deletions

View File

@@ -51,6 +51,11 @@ APPS+=$(shell if [ -f /usr/include/linux/zaptel.h ]; then echo "app_zapras.so ap
APPS+=$(shell if [ -f /usr/local/include/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi)
APPS+=$(shell if [ -f /usr/include/osp/osp.h ]; then echo "app_osplookup.so" ; fi)
CURLLIBS=$(shell curl-config --libs)
ifneq (${CURLLIBS},)
APPS+=app_curl.so
endif
CFLAGS+=-fPIC
#
# If you have MySQL 4.1 or later you can use ODBC
@@ -74,6 +79,9 @@ install: all
rm -f $(DESTDIR)$(MODULES_DIR)/app_datetime.so
rm -f $(DESTDIR)$(MODULES_DIR)/app_qcall.so
app_curl.so: app_curl.o
$(CC) $(SOLINK) -o $@ $< $(CURLLIBS)
app_voicemail.so : app_voicemail.o
ifeq ($(USE_MYSQL_VM_INTERFACE),1)
$(CC) $(SOLINK) -o $@ $(MLFLAGS) $< -L/usr/lib/mysql -lmysqlclient -lz