mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Add a configure script check for spandsp
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@119795 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -30,6 +30,7 @@ POPT=@PBX_POPT@
|
||||
PORTAUDIO=@PBX_PORTAUDIO@
|
||||
PRI=@PBX_PRI@
|
||||
RADIUS=@PBX_RADIUS@
|
||||
SPANDSP=@PBX_SPANDSP@
|
||||
SPEEX=@PBX_SPEEX@
|
||||
SPEEXDSP=@PBX_SPEEXDSP@
|
||||
SPEEX_PREPROCESS=@PBX_SPEEX_PREPROCESS@
|
||||
|
132
configure
vendored
132
configure
vendored
@@ -1,5 +1,5 @@
|
||||
#! /bin/sh
|
||||
# From configure.ac Revision: 115580 .
|
||||
# From configure.ac Revision: 115600 .
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.61 for asterisk 1.6.
|
||||
#
|
||||
@@ -848,6 +848,10 @@ PRI_LIB
|
||||
PRI_INCLUDE
|
||||
PRI_DIR
|
||||
PBX_PRI
|
||||
SPANDSP_LIB
|
||||
SPANDSP_INCLUDE
|
||||
SPANDSP_DIR
|
||||
PBX_SPANDSP
|
||||
SS7_LIB
|
||||
SS7_INCLUDE
|
||||
SS7_DIR
|
||||
@@ -1607,6 +1611,7 @@ Optional Packages:
|
||||
--with-popt=PATH use popt files in PATH
|
||||
--with-portaudio=PATH use PortAudio files in PATH
|
||||
--with-pri=PATH use ISDN PRI files in PATH
|
||||
--with-spandsp=PATH use SPANDSP files in PATH
|
||||
--with-ss7=PATH use ISDN SS7 files in PATH
|
||||
--with-pwlib=PATH use PWlib files in PATH
|
||||
--with-h323=PATH use OpenH323 files in PATH
|
||||
@@ -8782,6 +8787,34 @@ fi
|
||||
|
||||
|
||||
|
||||
SPANDSP_DESCRIP="SPANDSP"
|
||||
SPANDSP_OPTION="spandsp"
|
||||
|
||||
# Check whether --with-spandsp was given.
|
||||
if test "${with_spandsp+set}" = set; then
|
||||
withval=$with_spandsp;
|
||||
case ${withval} in
|
||||
n|no)
|
||||
USE_SPANDSP=no
|
||||
;;
|
||||
y|ye|yes)
|
||||
ac_mandatory_list="${ac_mandatory_list} SPANDSP"
|
||||
;;
|
||||
*)
|
||||
SPANDSP_DIR="${withval}"
|
||||
ac_mandatory_list="${ac_mandatory_list} SPANDSP"
|
||||
;;
|
||||
esac
|
||||
|
||||
fi
|
||||
|
||||
PBX_SPANDSP=0
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
SS7_DESCRIP="ISDN SS7"
|
||||
SS7_OPTION="ss7"
|
||||
|
||||
@@ -38835,6 +38868,89 @@ fi
|
||||
|
||||
|
||||
|
||||
if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
|
||||
{ echo "$as_me:$LINENO: checking if \"
|
||||
#if SPANDSP_RELEASE_DATE < 20080516
|
||||
#error \"spandsp 0.0.5 or greater is required\"
|
||||
#endif
|
||||
\" compiles using spandsp/version.h" >&5
|
||||
echo $ECHO_N "checking if \"
|
||||
#if SPANDSP_RELEASE_DATE < 20080516
|
||||
#error \"spandsp 0.0.5 or greater is required\"
|
||||
#endif
|
||||
\" compiles using spandsp/version.h... $ECHO_C" >&6; }
|
||||
saved_cppflags="${CPPFLAGS}"
|
||||
if test "x${SPANDSP_DIR}" != "x"; then
|
||||
SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
|
||||
fi
|
||||
CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
|
||||
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
#include <spandsp/version.h>
|
||||
int
|
||||
main ()
|
||||
{
|
||||
|
||||
#if SPANDSP_RELEASE_DATE < 20080516
|
||||
#error "spandsp 0.0.5 or greater is required"
|
||||
#endif
|
||||
;
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext
|
||||
if { (ac_try="$ac_compile"
|
||||
case "(($ac_try" in
|
||||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
*) ac_try_echo=$ac_try;;
|
||||
esac
|
||||
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
||||
(eval "$ac_compile") 2>conftest.er1
|
||||
ac_status=$?
|
||||
grep -v '^ *+' conftest.er1 >conftest.err
|
||||
rm -f conftest.er1
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } && {
|
||||
test -z "$ac_c_werror_flag" ||
|
||||
test ! -s conftest.err
|
||||
} && test -s conftest.$ac_objext; then
|
||||
{ echo "$as_me:$LINENO: result: yes" >&5
|
||||
echo "${ECHO_T}yes" >&6; }
|
||||
PBX_SPANDSP=1
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define HAVE_SPANDSP 1
|
||||
_ACEOF
|
||||
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define HAVE_SPANDSP_VERSION
|
||||
_ACEOF
|
||||
|
||||
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
{ echo "$as_me:$LINENO: result: no" >&5
|
||||
echo "${ECHO_T}no" >&6; }
|
||||
|
||||
fi
|
||||
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
CPPFLAGS="${saved_cppflags}"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
if test "x${PBX_SS7}" != "x1" -a "${USE_SS7}" != "no"; then
|
||||
pbxlibdir=""
|
||||
# if --with-SS7=DIR has been specified, use it.
|
||||
@@ -51109,6 +51225,10 @@ PRI_LIB!$PRI_LIB$ac_delim
|
||||
PRI_INCLUDE!$PRI_INCLUDE$ac_delim
|
||||
PRI_DIR!$PRI_DIR$ac_delim
|
||||
PBX_PRI!$PBX_PRI$ac_delim
|
||||
SPANDSP_LIB!$SPANDSP_LIB$ac_delim
|
||||
SPANDSP_INCLUDE!$SPANDSP_INCLUDE$ac_delim
|
||||
SPANDSP_DIR!$SPANDSP_DIR$ac_delim
|
||||
PBX_SPANDSP!$PBX_SPANDSP$ac_delim
|
||||
SS7_LIB!$SS7_LIB$ac_delim
|
||||
SS7_INCLUDE!$SS7_INCLUDE$ac_delim
|
||||
SS7_DIR!$SS7_DIR$ac_delim
|
||||
@@ -51167,10 +51287,6 @@ TERMCAP_DIR!$TERMCAP_DIR$ac_delim
|
||||
PBX_TERMCAP!$PBX_TERMCAP$ac_delim
|
||||
TINFO_LIB!$TINFO_LIB$ac_delim
|
||||
TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
|
||||
TINFO_DIR!$TINFO_DIR$ac_delim
|
||||
PBX_TINFO!$PBX_TINFO$ac_delim
|
||||
TONEZONE_LIB!$TONEZONE_LIB$ac_delim
|
||||
TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
|
||||
_ACEOF
|
||||
|
||||
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
|
||||
@@ -51212,6 +51328,10 @@ _ACEOF
|
||||
ac_delim='%!_!# '
|
||||
for ac_last_try in false false false false false :; do
|
||||
cat >conf$$subs.sed <<_ACEOF
|
||||
TINFO_DIR!$TINFO_DIR$ac_delim
|
||||
PBX_TINFO!$PBX_TINFO$ac_delim
|
||||
TONEZONE_LIB!$TONEZONE_LIB$ac_delim
|
||||
TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
|
||||
TONEZONE_DIR!$TONEZONE_DIR$ac_delim
|
||||
PBX_TONEZONE!$PBX_TONEZONE$ac_delim
|
||||
USB_LIB!$USB_LIB$ac_delim
|
||||
@@ -51283,7 +51403,7 @@ CURL_CONFIG!$CURL_CONFIG$ac_delim
|
||||
LTLIBOBJS!$LTLIBOBJS$ac_delim
|
||||
_ACEOF
|
||||
|
||||
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 69; then
|
||||
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
|
||||
break
|
||||
elif $ac_last_try; then
|
||||
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
||||
|
@@ -233,6 +233,7 @@ AST_EXT_LIB_SETUP([PGSQL], [PostgreSQL], [postgres])
|
||||
AST_EXT_LIB_SETUP([POPT], [popt], [popt])
|
||||
AST_EXT_LIB_SETUP([PORTAUDIO], [PortAudio], [portaudio])
|
||||
AST_EXT_LIB_SETUP([PRI], [ISDN PRI], [pri])
|
||||
AST_EXT_LIB_SETUP([SPANDSP], [SPANDSP], [spandsp])
|
||||
AST_EXT_LIB_SETUP([SS7], [ISDN SS7], [ss7])
|
||||
AST_EXT_LIB_SETUP([PWLIB], [PWlib], [pwlib])
|
||||
AST_EXT_LIB_SETUP([OPENH323], [OpenH323], [h323])
|
||||
@@ -1290,6 +1291,12 @@ AST_EXT_LIB_CHECK([PORTAUDIO], [portaudio], [Pa_GetDeviceCount], [portaudio.h])
|
||||
|
||||
AST_EXT_LIB_CHECK([PRI], [pri], [pri_get_version], [libpri.h])
|
||||
|
||||
AST_C_COMPILE_CHECK([SPANDSP], [
|
||||
#if SPANDSP_RELEASE_DATE < 20080516
|
||||
#error "spandsp 0.0.5 or greater is required"
|
||||
#endif
|
||||
], [spandsp/version.h])
|
||||
|
||||
AST_EXT_LIB_CHECK([SS7], [ss7], [ss7_pollflags], [libss7.h])
|
||||
|
||||
if test "${USE_PWLIB}" != "no"; then
|
||||
|
@@ -718,6 +718,12 @@
|
||||
/* Define to 1 if your system has soxmix application. */
|
||||
#undef HAVE_SOXMIX
|
||||
|
||||
/* Define if your system has the SPANDSP headers. */
|
||||
#undef HAVE_SPANDSP
|
||||
|
||||
/* Define SPANDSP headers version */
|
||||
#undef HAVE_SPANDSP_VERSION
|
||||
|
||||
/* Define this to indicate the ${SPEEX_DESCRIP} library */
|
||||
#undef HAVE_SPEEX
|
||||
|
||||
|
@@ -169,6 +169,9 @@ SDL_LIB=@SDL_LIB@
|
||||
SDL_IMAGE_INCLUDE=@SDL_IMAGE_INCLUDE@
|
||||
SDL_IMAGE_LIB=@SDL_IMAGE_LIB@
|
||||
|
||||
SPANDSP_INCLUDE=@SPANDSP_INCLUDE@
|
||||
SPANDSP_LIB=@SPANDSP_LIB@
|
||||
|
||||
SPEEX_INCLUDE=@SPEEX_INCLUDE@
|
||||
SPEEX_LIB=@SPEEX_LIB@
|
||||
|
||||
|
Reference in New Issue
Block a user