Force the use of specific versions of OpenH.323 and PWlib (Bug #3386 with mods)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4909 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Jeremy McNamara 21 years ago
parent c3f8e1fe08
commit 4e158e372c

@ -16,6 +16,16 @@ ifndef ASTETCDIR
ASTETCDIR=/etc/asterisk
endif
PWLIB_MAJOR_VERSION=$(shell cat ${PWLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' ')
PWLIB_MINOR_VERSION=$(shell cat ${PWLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' ')
PWLIB_BUILD_NUMBER=$(shell cat ${PWLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' ')
PWLIB_VERSION="${PWLIB_MAJOR_VERSION}.${PWLIB_MINOR_VERSION}.${PWLIB_BUILD_NUMBER}"
OPENH323_MAJOR_VERSION=$(shell cat ${OPENH323DIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' ')
OPENH323_MINOR_VERSION=$(shell cat ${OPENH323DIR}/version.h | grep MINOR_VERSION | cut -f3 -d' ')
OPENH323_BUILD_NUMBER=$(shell cat ${OPENH323DIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' ')
OPENH323_VERSION="${OPENH323_MAJOR_VERSION}.${OPENH323_MINOR_VERSION}.${OPENH323_BUILD_NUMBER}"
#
# This needs to be updated to deal with more than just little endian machines
#
@ -46,7 +56,7 @@ CFLAGS += -I../../include
CFLAGS += -I$(PWLIBDIR)/include
CFLAGS += -I$(OPENH323DIR)/include -Wno-missing-prototypes
all: depend libchanh323.a
all: checkversion depend libchanh323.a
samples:
if [ -f $(ASTETCDIR)/h323.conf ]; then \
@ -82,4 +92,24 @@ depend: .depend
.depend:
../../mkdep $(CFLAGS) `ls *.cpp`
checkversion:
@echo -n "PWLib version is ${PWLIB_VERSION}... "
@if [ ${PWLIB_VERSION} == "1.8.1" ]; then \
echo "ok" ; \
else \
echo "BAD" ; \
echo ; \
echo "Please read README for further details!" ; \
echo ; \
exit 1 ; \
fi
@echo -n "OpenH323 version is ${OPENH323_VERSION}... "
@if [ ${OPENH323_VERSION} == "1.15.1" ]; then \
echo "ok" ; \
else \
echo "BAD" ; \
echo ; \
echo "Please read README for further details!" ; \
echo ; \
exit 1 ; \
fi

@ -9,13 +9,11 @@
expat-1.95+
expat-dev-1.95+
This code was recently updated to deal with Open H.323 v1.14.4 and PWLib
v1.7.5. Not much testing has been done, please test and report your findings.
You must run Open H.323 v1.15.1 and PWLib v1.8.1. All other versions are not supported.
You can find the Open H.323 source here: http://www.sf.net/projects/openh323/
NOTICE: Whatever you do, DO NOT USE distrubution specific installs
of Open H.323 and PWLib. In fact you should check to make sure
of Open H.323 and PWLib. In fact, you should check to make sure
your distro did not install them for you without your knowledge.

Loading…
Cancel
Save