mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
Fix so that asterisk continues to build if libcurl is not present or the correct
version. bug #3982. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5463 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -57,12 +57,14 @@ APPS+=$(shell if [ -f $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h ]; then
|
|||||||
APPS+=$(shell if [ -f $(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h ]; then echo "app_osplookup.so" ; fi)
|
APPS+=$(shell if [ -f $(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h ]; then echo "app_osplookup.so" ; fi)
|
||||||
|
|
||||||
CURLLIBS=$(shell $(CROSS_COMPILE_BIN)curl-config --libs)
|
CURLLIBS=$(shell $(CROSS_COMPILE_BIN)curl-config --libs)
|
||||||
ifneq (${CURLLIBS},)
|
ifneq ($(shell if [[ 0x`$(CROSS_COMPILE_BIN)curl-config --vernum` -ge 0x70907 ]]; then echo "OK" ; fi),)
|
||||||
APPS+=app_curl.so
|
ifneq (${CURLLIBS},)
|
||||||
ifeq (${OSARCH},OpenBSD)
|
APPS+=app_curl.so
|
||||||
CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include
|
ifeq (${OSARCH},OpenBSD)
|
||||||
endif
|
CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
CFLAGS+=-fPIC
|
CFLAGS+=-fPIC
|
||||||
#
|
#
|
||||||
# If you have MySQL 4.1 or later you can use ODBC
|
# If you have MySQL 4.1 or later you can use ODBC
|
||||||
|
Reference in New Issue
Block a user