mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 08:31:02 +00:00
make the AIS checking a little more generic, and have a more useful configure script command line option for OpenAIS
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@127017 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -30,8 +30,7 @@ PGSQL=@PBX_PGSQL@
|
|||||||
POPT=@PBX_POPT@
|
POPT=@PBX_POPT@
|
||||||
PORTAUDIO=@PBX_PORTAUDIO@
|
PORTAUDIO=@PBX_PORTAUDIO@
|
||||||
PRI=@PBX_PRI@
|
PRI=@PBX_PRI@
|
||||||
SACLM=@PBX_SACLM@
|
AIS=@PBX_AIS@
|
||||||
SAEVT=@PBX_SAEVT@
|
|
||||||
RADIUS=@PBX_RADIUS@
|
RADIUS=@PBX_RADIUS@
|
||||||
SPANDSP=@PBX_SPANDSP@
|
SPANDSP=@PBX_SPANDSP@
|
||||||
SPEEX=@PBX_SPEEX@
|
SPEEX=@PBX_SPEEX@
|
||||||
|
32
configure.ac
32
configure.ac
@@ -241,8 +241,7 @@ AST_EXT_LIB_SETUP([OPENH323], [OpenH323], [h323])
|
|||||||
AST_EXT_LIB_SETUP([RADIUS], [Radius Client], [radius])
|
AST_EXT_LIB_SETUP([RADIUS], [Radius Client], [radius])
|
||||||
AST_EXT_LIB_SETUP([SDL], [Sdl], [sdl])
|
AST_EXT_LIB_SETUP([SDL], [Sdl], [sdl])
|
||||||
AST_EXT_LIB_SETUP([SDL_IMAGE], [Sdl Image library], [SDL_image])
|
AST_EXT_LIB_SETUP([SDL_IMAGE], [Sdl Image library], [SDL_image])
|
||||||
AST_EXT_LIB_SETUP([SACLM], [SAForum AIS CLM], [SaClm])
|
AST_EXT_LIB_SETUP([OPENAIS], [OpenAIS], [openais])
|
||||||
AST_EXT_LIB_SETUP([SAEVT], [SAForum AIS EVT], [SaEvt])
|
|
||||||
AST_EXT_LIB_SETUP([SPEEX], [Speex], [speex])
|
AST_EXT_LIB_SETUP([SPEEX], [Speex], [speex])
|
||||||
AST_EXT_LIB_SETUP([SPEEXDSP], [Speexdsp], [speexdsp])
|
AST_EXT_LIB_SETUP([SPEEXDSP], [Speexdsp], [speexdsp])
|
||||||
AST_EXT_LIB_SETUP([SQLITE], [SQLite], [sqlite])
|
AST_EXT_LIB_SETUP([SQLITE], [SQLite], [sqlite])
|
||||||
@@ -1351,10 +1350,31 @@ AST_EXT_LIB_CHECK([LUA], [lua5.1], [luaL_newstate], [lua5.1/lua.h])
|
|||||||
|
|
||||||
AST_EXT_LIB_CHECK([RADIUS], [radiusclient-ng], [rc_read_config], [radiusclient-ng.h])
|
AST_EXT_LIB_CHECK([RADIUS], [radiusclient-ng], [rc_read_config], [radiusclient-ng.h])
|
||||||
|
|
||||||
AST_EXT_LIB_CHECK([SACLM], [SaClm], [saClmInitialize], [openais/saClm.h], [-L/usr/lib/openais])
|
# This is a bit complex... in reality, Asterisk's AIS support is dependent on finding
|
||||||
AST_EXT_LIB_CHECK([SACLM], [SaClm], [saClmInitialize], [openais/saClm.h])
|
# *any* implementation of AIS, not just OpenAIS. However, the configure script needs
|
||||||
AST_EXT_LIB_CHECK([SAEVT], [SaEvt], [saEvtInitialize], [openais/saEvt.h], [-L/usr/lib/openais])
|
# to know the specifics of each possible implementation, and then represent the one
|
||||||
AST_EXT_LIB_CHECK([SAEVT], [SaEvt], [saEvtInitialize], [openais/saEvt.h])
|
# that was found as 'AIS'.
|
||||||
|
|
||||||
|
PBX_AIS=0
|
||||||
|
|
||||||
|
# OpenAIS installs its libraries into /usr/lib/openais by default, so check there
|
||||||
|
|
||||||
|
AST_EXT_LIB_CHECK([OPENAIS], [SaClm], [saClmInitialize], [openais/saClm.h], [-L/usr/lib/openais])
|
||||||
|
|
||||||
|
if test "${PBX_OPENAIS}" = 1; then
|
||||||
|
PBX_AIS=1
|
||||||
|
if test -n "${OPENAIS_DIR}"; then
|
||||||
|
AIS_INCLUDE="${OPENAIS_INCLUDE}/openais"
|
||||||
|
AIS_LIB="-lSaEvt ${OPENAIS_LIB}"
|
||||||
|
else
|
||||||
|
AIS_INCLUDE="-I/usr/include/openais"
|
||||||
|
AIS_LIB="-lSaClm -lSaEvt -L/usr/lib/openais"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST(PBX_AIS)
|
||||||
|
AC_SUBST(AIS_INCLUDE)
|
||||||
|
AC_SUBST(AIS_LIB)
|
||||||
|
|
||||||
AST_EXT_LIB_CHECK([SPEEX], [speex], [speex_encode], [speex/speex.h], [-lm])
|
AST_EXT_LIB_CHECK([SPEEX], [speex], [speex_encode], [speex/speex.h], [-lm])
|
||||||
|
|
||||||
|
@@ -539,6 +539,12 @@
|
|||||||
/* Define to indicate the ${OGG_DESCRIP} library version */
|
/* Define to indicate the ${OGG_DESCRIP} library version */
|
||||||
#undef HAVE_OGG_VERSION
|
#undef HAVE_OGG_VERSION
|
||||||
|
|
||||||
|
/* Define this to indicate the ${OPENAIS_DESCRIP} library */
|
||||||
|
#undef HAVE_OPENAIS
|
||||||
|
|
||||||
|
/* Define to indicate the ${OPENAIS_DESCRIP} library version */
|
||||||
|
#undef HAVE_OPENAIS_VERSION
|
||||||
|
|
||||||
/* Define if your system has the OpenH323 libraries. */
|
/* Define if your system has the OpenH323 libraries. */
|
||||||
#undef HAVE_OPENH323
|
#undef HAVE_OPENH323
|
||||||
|
|
||||||
@@ -692,18 +698,6 @@
|
|||||||
/* Define RTLD_NOLOAD headers version */
|
/* Define RTLD_NOLOAD headers version */
|
||||||
#undef HAVE_RTLD_NOLOAD_VERSION
|
#undef HAVE_RTLD_NOLOAD_VERSION
|
||||||
|
|
||||||
/* Define this to indicate the ${SACLM_DESCRIP} library */
|
|
||||||
#undef HAVE_SACLM
|
|
||||||
|
|
||||||
/* Define to indicate the ${SACLM_DESCRIP} library version */
|
|
||||||
#undef HAVE_SACLM_VERSION
|
|
||||||
|
|
||||||
/* Define this to indicate the ${SAEVT_DESCRIP} library */
|
|
||||||
#undef HAVE_SAEVT
|
|
||||||
|
|
||||||
/* Define to indicate the ${SAEVT_DESCRIP} library version */
|
|
||||||
#undef HAVE_SAEVT_VERSION
|
|
||||||
|
|
||||||
/* Define to 1 if your system has /sbin/launchd. */
|
/* Define to 1 if your system has /sbin/launchd. */
|
||||||
#undef HAVE_SBIN_LAUNCHD
|
#undef HAVE_SBIN_LAUNCHD
|
||||||
|
|
||||||
@@ -1176,6 +1170,9 @@
|
|||||||
#ifndef _POSIX_PTHREAD_SEMANTICS
|
#ifndef _POSIX_PTHREAD_SEMANTICS
|
||||||
# undef _POSIX_PTHREAD_SEMANTICS
|
# undef _POSIX_PTHREAD_SEMANTICS
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef _TANDEM_SOURCE
|
||||||
|
# undef _TANDEM_SOURCE
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||||
#undef __PROTOTYPES
|
#undef __PROTOTYPES
|
||||||
|
@@ -154,11 +154,8 @@ SS7_LIB=@SS7_LIB@
|
|||||||
PWLIB_INCLUDE=@PWLIB_INCLUDE@
|
PWLIB_INCLUDE=@PWLIB_INCLUDE@
|
||||||
PWLIB_LIB=@PWLIB_LIB@
|
PWLIB_LIB=@PWLIB_LIB@
|
||||||
|
|
||||||
SACLM_INCLUDE=@SACLM_INCLUDE@
|
AIS_INCLUDE=@AIS_INCLUDE@
|
||||||
SACLM_LIB=@SACLM_LIB@
|
AIS_LIB=@AIS_LIB@
|
||||||
|
|
||||||
SAEVT_INCLUDE=@SAEVT_INCLUDE@
|
|
||||||
SAEVT_LIB=@SAEVT_LIB@
|
|
||||||
|
|
||||||
RADIUS_INCLUDE=@RADIUS_INCLUDE@
|
RADIUS_INCLUDE=@RADIUS_INCLUDE@
|
||||||
RADIUS_LIB=@RADIUS_LIB@
|
RADIUS_LIB=@RADIUS_LIB@
|
||||||
|
@@ -35,6 +35,8 @@ ael/ael_lex.o: ASTCFLAGS+=-I. -Iael -Wno-unused
|
|||||||
ael/ael.tab.o: ael/ael.tab.c ael/ael.tab.h ../include/asterisk/ael_structs.h
|
ael/ael.tab.o: ael/ael.tab.c ael/ael.tab.h ../include/asterisk/ael_structs.h
|
||||||
ael/ael.tab.o: ASTCFLAGS+=-I. -Iael -DYYENABLE_NLS=0
|
ael/ael.tab.o: ASTCFLAGS+=-I. -Iael -DYYENABLE_NLS=0
|
||||||
|
|
||||||
|
ais/clm.o ais/evt.o: ASTCFLAGS+=${AIS_INCLUDE}
|
||||||
|
|
||||||
$(if $(filter res_ais,$(EMBEDDED_MODS)),modules.link,res_ais.so): ais/clm.o ais/evt.o
|
$(if $(filter res_ais,$(EMBEDDED_MODS)),modules.link,res_ais.so): ais/clm.o ais/evt.o
|
||||||
|
|
||||||
$(if $(filter res_snmp,$(EMBEDDED_MODS)),modules.link,res_snmp.so): snmp/agent.o
|
$(if $(filter res_snmp,$(EMBEDDED_MODS)),modules.link,res_snmp.so): snmp/agent.o
|
||||||
|
@@ -25,12 +25,12 @@
|
|||||||
* \arg http://www.openais.org/
|
* \arg http://www.openais.org/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef AST_AIS_H
|
#ifndef RES_AIS_AIS_H
|
||||||
#define AST_AIS_H
|
#define RES_AIS_AIS_H
|
||||||
|
|
||||||
#include <openais/saAis.h>
|
#include <saAis.h>
|
||||||
#include <openais/saClm.h>
|
#include <saClm.h>
|
||||||
#include <openais/saEvt.h>
|
#include <saEvt.h>
|
||||||
|
|
||||||
extern SaVersionT ais_version;
|
extern SaVersionT ais_version;
|
||||||
|
|
||||||
@@ -45,4 +45,4 @@ int ast_ais_evt_unload_module(void);
|
|||||||
|
|
||||||
const char *ais_err2str(SaAisErrorT error);
|
const char *ais_err2str(SaAisErrorT error);
|
||||||
|
|
||||||
#endif /* AST_AIS_H */
|
#endif /* RES_AIS_AIS_H */
|
||||||
|
@@ -29,8 +29,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*** MODULEINFO
|
/*** MODULEINFO
|
||||||
<depend>SaClm</depend>
|
<depend>ais</depend>
|
||||||
<depend>SaEvt</depend>
|
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#include "asterisk.h"
|
#include "asterisk.h"
|
||||||
|
Reference in New Issue
Block a user