diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2269 |
1 files changed, 161 insertions, 2108 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac Revision: 119796 . +# From configure.ac Revision: 119800 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61 for asterisk 1.6. # @@ -744,6 +744,10 @@ CRYPTO_LIB CRYPTO_INCLUDE CRYPTO_DIR PBX_CRYPTO +DAHDI_LIB +DAHDI_INCLUDE +DAHDI_DIR +PBX_DAHDI FFMPEG_LIB FFMPEG_INCLUDE FFMPEG_DIR @@ -936,10 +940,6 @@ ZLIB_LIB ZLIB_INCLUDE ZLIB_DIR PBX_ZLIB -ZAPTEL_LIB -ZAPTEL_INCLUDE -ZAPTEL_DIR -PBX_ZAPTEL ALLOCA LIBOBJS POW_LIB @@ -969,12 +969,6 @@ OPENH323_SUFFIX OPENH323_BUILD PBX_SPEEX_PREPROCESS CONFIG_GMIME -PBX_ZAPTEL_VLDTMF -PBX_ZAPTEL_ECHOCANPARAMS -PBX_ZAPTEL_TRANSCODE -PBX_ZAPTEL_HWGAIN -PBX_ZAPTEL_NEONMWI -PBX_ZAPTEL_SIG_MTP2 EDITLINE_LIB PBX_H323 PBX_IXJUSER @@ -1584,6 +1578,7 @@ Optional Packages: --with-curl=PATH use cURL files in PATH --with-curses=PATH use curses files in PATH --with-crypto=PATH use OpenSSL Cryptography support files in PATH + --with-dahdi=PATH use DAHDI files in PATH --with-avcodec=PATH use Ffmpeg and avcodec library files in PATH --with-gsm=PATH use External GSM library files in PATH , use 'internal' GSM otherwise @@ -1634,7 +1629,6 @@ Optional Packages: --with-vpb=PATH use Voicetronix API files in PATH --with-x11=PATH use X11 support files in PATH --with-z=PATH use zlib files in PATH - --with-zaptel=PATH use Zaptel files in PATH Some influential environment variables: CC C compiler command @@ -8059,6 +8053,34 @@ fi + DAHDI_DESCRIP="DAHDI" + DAHDI_OPTION="dahdi" + +# Check whether --with-dahdi was given. +if test "${with_dahdi+set}" = set; then + withval=$with_dahdi; + case ${withval} in + n|no) + USE_DAHDI=no + ;; + y|ye|yes) + ac_mandatory_list="${ac_mandatory_list} DAHDI" + ;; + *) + DAHDI_DIR="${withval}" + ac_mandatory_list="${ac_mandatory_list} DAHDI" + ;; + esac + +fi + + PBX_DAHDI=0 + + + + + + FFMPEG_DESCRIP="Ffmpeg and avcodec library" FFMPEG_OPTION="avcodec" @@ -9403,34 +9425,6 @@ fi - ZAPTEL_DESCRIP="Zaptel" - ZAPTEL_OPTION="zaptel" - -# Check whether --with-zaptel was given. -if test "${with_zaptel+set}" = set; then - withval=$with_zaptel; - case ${withval} in - n|no) - USE_ZAPTEL=no - ;; - y|ye|yes) - ac_mandatory_list="${ac_mandatory_list} ZAPTEL" - ;; - *) - ZAPTEL_DIR="${withval}" - ac_mandatory_list="${ac_mandatory_list} ZAPTEL" - ;; - esac - -fi - - PBX_ZAPTEL=0 - - - - - - # check for basic system features and functionality before # checking for package libraries @@ -18891,6 +18885,83 @@ fi fi + + if test "x${PBX_DAHDI}" != "x1"; then + { echo "$as_me:$LINENO: checking for DAHDI_CODE in dahdi/user.h" >&5 +echo $ECHO_N "checking for DAHDI_CODE in dahdi/user.h... $ECHO_C" >&6; } + saved_cppflags="${CPPFLAGS}" + if test "x${DAHDI_DIR}" != "x"; then + DAHDI_INCLUDE="-I${DAHDI_DIR}/include" + fi + CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}" + + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <dahdi/user.h> +int +main () +{ +#if defined(DAHDI_CODE) + int foo = 0; + #else + int foo = bar; + #endif + 0 + + ; + 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_DAHDI=1 + +cat >>confdefs.h <<\_ACEOF +#define HAVE_DAHDI 1 +_ACEOF + + +cat >>confdefs.h <<\_ACEOF +#define HAVE_DAHDI_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 + + + # BSD might not have exp2, and/or log2 if test "x${PBX_EXP2L}" != "x1" -a "${USE_EXP2L}" != "no"; then @@ -45198,285 +45269,23 @@ fi TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include" fi TONEZONE_INCLUDE="${TONEZONE_INCLUDE} " - if test "xzaptel/tonezone.h" = "x" ; then # no header, assume found - TONEZONE_HEADER_FOUND="1" - else # check for the header - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE} " - if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then - { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5 -echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; } -if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5 -echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5 -echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <zaptel/tonezone.h> -_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 - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5 -echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <zaptel/tonezone.h> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -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_cpp conftest.$ac_ext") 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); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5 -echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; } -if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_zaptel_tonezone_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5 -echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; } - -fi -if test $ac_cv_header_zaptel_tonezone_h = yes; then - TONEZONE_HEADER_FOUND=1 -else - TONEZONE_HEADER_FOUND=0 -fi - - - CPPFLAGS="${saved_cppflags}" - fi - if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then - TONEZONE_LIB="" - TONEZONE_INCLUDE="" - else - if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library - TONEZONE_LIB="" - fi - PBX_TONEZONE=1 - # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED - -cat >>confdefs.h <<_ACEOF -#define HAVE_TONEZONE 1 -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define HAVE_TONEZONE_VERSION 140 -_ACEOF - - fi - fi -fi - -# other case, old tonezone (0.80) - -if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then - pbxlibdir="" - # if --with-TONEZONE=DIR has been specified, use it. - if test "x${TONEZONE_DIR}" != "x"; then - if test -d ${TONEZONE_DIR}/lib; then - pbxlibdir="-L${TONEZONE_DIR}/lib" - else - pbxlibdir="-L${TONEZONE_DIR}" - fi - fi - pbxfuncname="tone_zone_find" - if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers - AST_TONEZONE_FOUND=yes - else - as_ac_Lib=`echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltonezone" >&5 -echo $ECHO_N "checking for ${pbxfuncname} in -ltonezone... $ECHO_C" >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char ${pbxfuncname} (); -int -main () -{ -return ${pbxfuncname} (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -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_link") 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_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_Lib=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Lib=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -ac_res=`eval echo '${'$as_ac_Lib'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_Lib'}'` = yes; then - AST_TONEZONE_FOUND=yes -else - AST_TONEZONE_FOUND=no -fi - - fi - - # now check for the header. - if test "${AST_TONEZONE_FOUND}" = "yes"; then - TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra}" - # if --with-TONEZONE=DIR has been specified, use it. - if test "x${TONEZONE_DIR}" != "x"; then - TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include" - fi - TONEZONE_INCLUDE="${TONEZONE_INCLUDE} " - if test "xzaptel/zaptel.h" = "x" ; then # no header, assume found + if test "xdahdi/tonezone.h" = "x" ; then # no header, assume found TONEZONE_HEADER_FOUND="1" else # check for the header saved_cppflags="${CPPFLAGS}" CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE} " - if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then - { echo "$as_me:$LINENO: checking for zaptel/zaptel.h" >&5 -echo $ECHO_N "checking for zaptel/zaptel.h... $ECHO_C" >&6; } -if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then + if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then + { echo "$as_me:$LINENO: checking for dahdi/tonezone.h" >&5 +echo $ECHO_N "checking for dahdi/tonezone.h... $ECHO_C" >&6; } +if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_zaptel_h" >&5 -echo "${ECHO_T}$ac_cv_header_zaptel_zaptel_h" >&6; } +{ echo "$as_me:$LINENO: result: $ac_cv_header_dahdi_tonezone_h" >&5 +echo "${ECHO_T}$ac_cv_header_dahdi_tonezone_h" >&6; } else # Is the header compilable? -{ echo "$as_me:$LINENO: checking zaptel/zaptel.h usability" >&5 -echo $ECHO_N "checking zaptel/zaptel.h usability... $ECHO_C" >&6; } +{ echo "$as_me:$LINENO: checking dahdi/tonezone.h usability" >&5 +echo $ECHO_N "checking dahdi/tonezone.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -45484,7 +45293,7 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default -#include <zaptel/zaptel.h> +#include <dahdi/tonezone.h> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" @@ -45516,15 +45325,15 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? -{ echo "$as_me:$LINENO: checking zaptel/zaptel.h presence" >&5 -echo $ECHO_N "checking zaptel/zaptel.h presence... $ECHO_C" >&6; } +{ echo "$as_me:$LINENO: checking dahdi/tonezone.h presence" >&5 +echo $ECHO_N "checking dahdi/tonezone.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include <zaptel/zaptel.h> +#include <dahdi/tonezone.h> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in @@ -45557,25 +45366,25 @@ echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) - { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: zaptel/zaptel.h: proceeding with the compiler's result" >&2;} + { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: dahdi/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: dahdi/tonezone.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) - { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: zaptel/zaptel.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: zaptel/zaptel.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: zaptel/zaptel.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: zaptel/zaptel.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: zaptel/zaptel.h: in the future, the compiler will take precedence" >&2;} + { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: present but cannot be compiled" >&5 +echo "$as_me: WARNING: dahdi/tonezone.h: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: dahdi/tonezone.h: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: dahdi/tonezone.h: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: dahdi/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: dahdi/tonezone.h: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: dahdi/tonezone.h: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ------------------------------- ## ## Report this to www.asterisk.org ## @@ -45584,18 +45393,18 @@ _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac -{ echo "$as_me:$LINENO: checking for zaptel/zaptel.h" >&5 -echo $ECHO_N "checking for zaptel/zaptel.h... $ECHO_C" >&6; } -if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then +{ echo "$as_me:$LINENO: checking for dahdi/tonezone.h" >&5 +echo $ECHO_N "checking for dahdi/tonezone.h... $ECHO_C" >&6; } +if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_cv_header_zaptel_zaptel_h=$ac_header_preproc + ac_cv_header_dahdi_tonezone_h=$ac_header_preproc fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_zaptel_h" >&5 -echo "${ECHO_T}$ac_cv_header_zaptel_zaptel_h" >&6; } +{ echo "$as_me:$LINENO: result: $ac_cv_header_dahdi_tonezone_h" >&5 +echo "${ECHO_T}$ac_cv_header_dahdi_tonezone_h" >&6; } fi -if test $ac_cv_header_zaptel_zaptel_h = yes; then +if test $ac_cv_header_dahdi_tonezone_h = yes; then TONEZONE_HEADER_FOUND=1 else TONEZONE_HEADER_FOUND=0 @@ -45620,7 +45429,7 @@ _ACEOF cat >>confdefs.h <<_ACEOF -#define HAVE_TONEZONE_VERSION 80 +#define HAVE_TONEZONE_VERSION _ACEOF fi @@ -46512,1756 +46321,6 @@ _ACEOF fi -# Check for various zaptel features and locations. -# The version number, which goes into HAVE_ZAPTEL_VERSION, -# will be used in the system headers to determine the location -# of the zaptel.h header. - - - if test "x${PBX_ZAPTEL}" != "x1"; then - { echo "$as_me:$LINENO: checking for ZT_TONE_DTMF_BASE in zaptel/zaptel.h" >&5 -echo $ECHO_N "checking for ZT_TONE_DTMF_BASE in zaptel/zaptel.h... $ECHO_C" >&6; } - saved_cppflags="${CPPFLAGS}" - if test "x${ZAPTEL_DIR}" != "x"; then - ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include" - fi - CPPFLAGS="${CPPFLAGS} ${ZAPTEL_INCLUDE}" - - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <zaptel/zaptel.h> -int -main () -{ -#if defined(ZT_TONE_DTMF_BASE) - int foo = 0; - #else - int foo = bar; - #endif - 0 - - ; - 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_ZAPTEL=1 - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ZAPTEL 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ZAPTEL_VERSION 140 -_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_ZAPTEL}" != "x1"; then - { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5 -echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; } - saved_cppflags="${CPPFLAGS}" - if test "x${ZAPTEL_DIR}" != "x"; then - ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include" - fi - CPPFLAGS="${CPPFLAGS} ${ZAPTEL_INCLUDE}" - - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <zaptel/zaptel.h> -int -main () -{ -#if defined(ZT_DIAL_OP_CANCEL) - int foo = 0; - #else - int foo = bar; - #endif - 0 - - ; - 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_ZAPTEL=1 - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ZAPTEL 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ZAPTEL_VERSION 90 -_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 - - - -# Check for VLDTMF support - - if test "x${PBX_ZAPTEL_VLDTMF}" != "x1"; then - { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5 -echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; } - saved_cppflags="${CPPFLAGS}" - if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then - ZAPTEL_VLDTMF_INCLUDE="-I${ZAPTEL_VLDTMF_DIR}/include" - fi - CPPFLAGS="${CPPFLAGS} ${ZAPTEL_VLDTMF_INCLUDE}" - - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <zaptel/zaptel.h> -int -main () -{ -#if defined(ZT_EVENT_REMOVED) - int foo = 0; - #else - int foo = bar; - #endif - 0 - - ; - 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_ZAPTEL_VLDTMF=1 - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ZAPTEL_VLDTMF 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ZAPTEL_VLDTMF_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 - - - -# Check for echo canceler parameters support - - if test "x${PBX_ZAPTEL_ECHOCANPARAMS}" != "x1"; then - { echo "$as_me:$LINENO: checking for ZT_ECHOCANCEL_PARAMS in zaptel/zaptel.h" >&5 -echo $ECHO_N "checking for ZT_ECHOCANCEL_PARAMS in zaptel/zaptel.h... $ECHO_C" >&6; } - saved_cppflags="${CPPFLAGS}" - if test "x${ZAPTEL_ECHOCANPARAMS_DIR}" != "x"; then - ZAPTEL_ECHOCANPARAMS_INCLUDE="-I${ZAPTEL_ECHOCANPARAMS_DIR}/include" - fi - CPPFLAGS="${CPPFLAGS} ${ZAPTEL_ECHOCANPARAMS_INCLUDE}" - - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <zaptel/zaptel.h> -int -main () -{ -#if defined(ZT_ECHOCANCEL_PARAMS) - int foo = 0; - #else - int foo = bar; - #endif - 0 - - ; - 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_ZAPTEL_ECHOCANPARAMS=1 - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ZAPTEL_ECHOCANPARAMS 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ZAPTEL_ECHOCANPARAMS_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 - - - -# Check for transcoder support - - if test "x${PBX_ZAPTEL_TRANSCODE}" != "x1"; then - { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5 -echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; } - saved_cppflags="${CPPFLAGS}" - if test "x${ZAPTEL_TRANSCODE_DIR}" != "x"; then - ZAPTEL_TRANSCODE_INCLUDE="-I${ZAPTEL_TRANSCODE_DIR}/include" - fi - CPPFLAGS="${CPPFLAGS} ${ZAPTEL_TRANSCODE_INCLUDE}" - - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <zaptel/zaptel.h> -int -main () -{ -#if defined(ZT_TCOP_ALLOCATE) - int foo = 0; - #else - int foo = bar; - #endif - 0 - - ; - 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_ZAPTEL_TRANSCODE=1 - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ZAPTEL_TRANSCODE 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ZAPTEL_TRANSCODE_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 - - - -# Check for hwgain support - - if test "x${PBX_ZAPTEL_HWGAIN}" != "x1"; then - { echo "$as_me:$LINENO: checking for ZT_SET_HWGAIN in zaptel/zaptel.h" >&5 -echo $ECHO_N "checking for ZT_SET_HWGAIN in zaptel/zaptel.h... $ECHO_C" >&6; } - saved_cppflags="${CPPFLAGS}" - if test "x${ZAPTEL_HWGAIN_DIR}" != "x"; then - ZAPTEL_HWGAIN_INCLUDE="-I${ZAPTEL_HWGAIN_DIR}/include" - fi - CPPFLAGS="${CPPFLAGS} ${ZAPTEL_HWGAIN_INCLUDE}" - - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <zaptel/zaptel.h> -int -main () -{ -#if defined(ZT_SET_HWGAIN) - int foo = 0; - #else - int foo = bar; - #endif - 0 - - ; - 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_ZAPTEL_HWGAIN=1 - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ZAPTEL_HWGAIN 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ZAPTEL_HWGAIN_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 - - - -# Check for neon mwi support - - if test "x${PBX_ZAPTEL_NEONMWI}" != "x1"; then - { echo "$as_me:$LINENO: checking for ZT_EVENT_NEONMWI_ACTIVE in zaptel/zaptel.h" >&5 -echo $ECHO_N "checking for ZT_EVENT_NEONMWI_ACTIVE in zaptel/zaptel.h... $ECHO_C" >&6; } - saved_cppflags="${CPPFLAGS}" - if test "x${ZAPTEL_NEONMWI_DIR}" != "x"; then - ZAPTEL_NEONMWI_INCLUDE="-I${ZAPTEL_NEONMWI_DIR}/include" - fi - CPPFLAGS="${CPPFLAGS} ${ZAPTEL_NEONMWI_INCLUDE}" - - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <zaptel/zaptel.h> -int -main () -{ -#if defined(ZT_EVENT_NEONMWI_ACTIVE) - int foo = 0; - #else - int foo = bar; - #endif - 0 - - ; - 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_ZAPTEL_NEONMWI=1 - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ZAPTEL_NEONMWI 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ZAPTEL_NEONMWI_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 - - - -# Check for channel alarm support - - if test "x${PBX_ZAPTEL_CHANALARMS}" != "x1" -a "${USE_ZAPTEL_CHANALARMS}" != "no"; then - { echo "$as_me:$LINENO: checking if \"size_t foo = sizeof(struct zt_params_v1)\" compiles using zaptel/zaptel.h" >&5 -echo $ECHO_N "checking if \"size_t foo = sizeof(struct zt_params_v1)\" compiles using zaptel/zaptel.h... $ECHO_C" >&6; } - saved_cppflags="${CPPFLAGS}" - if test "x${ZAPTEL_CHANALARMS_DIR}" != "x"; then - ZAPTEL_CHANALARMS_INCLUDE="-I${ZAPTEL_CHANALARMS_DIR}/include" - fi - CPPFLAGS="${CPPFLAGS} ${ZAPTEL_CHANALARMS_INCLUDE}" - - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <zaptel/zaptel.h> -int -main () -{ - size_t foo = sizeof(struct zt_params_v1); - - ; - 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_ZAPTEL_CHANALARMS=1 - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ZAPTEL_CHANALARMS 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ZAPTEL_CHANALARMS_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 - - -# Check for ZT_SIG_MTP2 - - if test "x${PBX_ZAPTEL_SIG_MTP2}" != "x1"; then - { echo "$as_me:$LINENO: checking for ZT_SIG_MTP2 in zaptel/zaptel.h" >&5 -echo $ECHO_N "checking for ZT_SIG_MTP2 in zaptel/zaptel.h... $ECHO_C" >&6; } - saved_cppflags="${CPPFLAGS}" - if test "x${ZAPTEL_SIG_MTP2_DIR}" != "x"; then - ZAPTEL_SIG_MTP2_INCLUDE="-I${ZAPTEL_SIG_MTP2_DIR}/include" - fi - CPPFLAGS="${CPPFLAGS} ${ZAPTEL_SIG_MTP2_INCLUDE}" - - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <zaptel/zaptel.h> -int -main () -{ -#if defined(ZT_SIG_MTP2) - int foo = 0; - #else - int foo = bar; - #endif - 0 - - ; - 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_ZAPTEL_SIG_MTP2=1 - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ZAPTEL_SIG_MTP2 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ZAPTEL_SIG_MTP2_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 - - - -# On FreeBSD, try old zaptel (0.80 or so) and pretend we have vldtmf -case "${host_os}" in - freebsd*) - -if test "x${PBX_ZAPTEL}" != "x1" -a "${USE_ZAPTEL}" != "no"; then - pbxlibdir="" - # if --with-ZAPTEL=DIR has been specified, use it. - if test "x${ZAPTEL_DIR}" != "x"; then - if test -d ${ZAPTEL_DIR}/lib; then - pbxlibdir="-L${ZAPTEL_DIR}/lib" - else - pbxlibdir="-L${ZAPTEL_DIR}" - fi - fi - pbxfuncname="" - if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers - AST_ZAPTEL_FOUND=yes - else - as_ac_Lib=`echo "ac_cv_lib_zaptel_${pbxfuncname}" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lzaptel" >&5 -echo $ECHO_N "checking for ${pbxfuncname} in -lzaptel... $ECHO_C" >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lzaptel ${pbxlibdir} $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char ${pbxfuncname} (); -int -main () -{ -return ${pbxfuncname} (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -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_link") 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_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_Lib=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Lib=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -ac_res=`eval echo '${'$as_ac_Lib'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_Lib'}'` = yes; then - AST_ZAPTEL_FOUND=yes -else - AST_ZAPTEL_FOUND=no -fi - - fi - - # now check for the header. - if test "${AST_ZAPTEL_FOUND}" = "yes"; then - ZAPTEL_LIB="${pbxlibdir} -lzaptel " - # if --with-ZAPTEL=DIR has been specified, use it. - if test "x${ZAPTEL_DIR}" != "x"; then - ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include" - fi - ZAPTEL_INCLUDE="${ZAPTEL_INCLUDE} " - if test "xzaptel.h" = "x" ; then # no header, assume found - ZAPTEL_HEADER_FOUND="1" - else # check for the header - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${ZAPTEL_INCLUDE} " - if test "${ac_cv_header_zaptel_h+set}" = set; then - { echo "$as_me:$LINENO: checking for zaptel.h" >&5 -echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; } -if test "${ac_cv_header_zaptel_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5 -echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking zaptel.h usability" >&5 -echo $ECHO_N "checking zaptel.h usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <zaptel.h> -_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 - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking zaptel.h presence" >&5 -echo $ECHO_N "checking zaptel.h presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <zaptel.h> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -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_cpp conftest.$ac_ext") 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); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: zaptel.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: zaptel.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: zaptel.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: zaptel.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: zaptel.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: zaptel.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: zaptel.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for zaptel.h" >&5 -echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; } -if test "${ac_cv_header_zaptel_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_zaptel_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5 -echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; } - -fi -if test $ac_cv_header_zaptel_h = yes; then - ZAPTEL_HEADER_FOUND=1 -else - ZAPTEL_HEADER_FOUND=0 -fi - - - CPPFLAGS="${saved_cppflags}" - fi - if test "x${ZAPTEL_HEADER_FOUND}" = "x0" ; then - ZAPTEL_LIB="" - ZAPTEL_INCLUDE="" - else - if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library - ZAPTEL_LIB="" - fi - PBX_ZAPTEL=1 - # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED - -cat >>confdefs.h <<_ACEOF -#define HAVE_ZAPTEL 1 -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define HAVE_ZAPTEL_VERSION 80 -_ACEOF - - fi - fi -fi - - -if test "x${PBX_ZAPTEL_VLDTMF}" != "x1" -a "${USE_ZAPTEL_VLDTMF}" != "no"; then - pbxlibdir="" - # if --with-ZAPTEL_VLDTMF=DIR has been specified, use it. - if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then - if test -d ${ZAPTEL_VLDTMF_DIR}/lib; then - pbxlibdir="-L${ZAPTEL_VLDTMF_DIR}/lib" - else - pbxlibdir="-L${ZAPTEL_VLDTMF_DIR}" - fi - fi - pbxfuncname="" - if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers - AST_ZAPTEL_VLDTMF_FOUND=yes - else - as_ac_Lib=`echo "ac_cv_lib_zaptel_${pbxfuncname}" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lzaptel" >&5 -echo $ECHO_N "checking for ${pbxfuncname} in -lzaptel... $ECHO_C" >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lzaptel ${pbxlibdir} $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char ${pbxfuncname} (); -int -main () -{ -return ${pbxfuncname} (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -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_link") 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_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_Lib=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Lib=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -ac_res=`eval echo '${'$as_ac_Lib'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_Lib'}'` = yes; then - AST_ZAPTEL_VLDTMF_FOUND=yes -else - AST_ZAPTEL_VLDTMF_FOUND=no -fi - - fi - - # now check for the header. - if test "${AST_ZAPTEL_VLDTMF_FOUND}" = "yes"; then - ZAPTEL_VLDTMF_LIB="${pbxlibdir} -lzaptel " - # if --with-ZAPTEL_VLDTMF=DIR has been specified, use it. - if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then - ZAPTEL_VLDTMF_INCLUDE="-I${ZAPTEL_VLDTMF_DIR}/include" - fi - ZAPTEL_VLDTMF_INCLUDE="${ZAPTEL_VLDTMF_INCLUDE} " - if test "xzaptel/zaptel.h" = "x" ; then # no header, assume found - ZAPTEL_VLDTMF_HEADER_FOUND="1" - else # check for the header - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${ZAPTEL_VLDTMF_INCLUDE} " - if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then - { echo "$as_me:$LINENO: checking for zaptel/zaptel.h" >&5 -echo $ECHO_N "checking for zaptel/zaptel.h... $ECHO_C" >&6; } -if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_zaptel_h" >&5 -echo "${ECHO_T}$ac_cv_header_zaptel_zaptel_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking zaptel/zaptel.h usability" >&5 -echo $ECHO_N "checking zaptel/zaptel.h usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <zaptel/zaptel.h> -_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 - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking zaptel/zaptel.h presence" >&5 -echo $ECHO_N "checking zaptel/zaptel.h presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <zaptel/zaptel.h> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -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_cpp conftest.$ac_ext") 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); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: zaptel/zaptel.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: zaptel/zaptel.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: zaptel/zaptel.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: zaptel/zaptel.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: zaptel/zaptel.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: zaptel/zaptel.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for zaptel/zaptel.h" >&5 -echo $ECHO_N "checking for zaptel/zaptel.h... $ECHO_C" >&6; } -if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_zaptel_zaptel_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_zaptel_h" >&5 -echo "${ECHO_T}$ac_cv_header_zaptel_zaptel_h" >&6; } - -fi -if test $ac_cv_header_zaptel_zaptel_h = yes; then - ZAPTEL_VLDTMF_HEADER_FOUND=1 -else - ZAPTEL_VLDTMF_HEADER_FOUND=0 -fi - - - CPPFLAGS="${saved_cppflags}" - fi - if test "x${ZAPTEL_VLDTMF_HEADER_FOUND}" = "x0" ; then - ZAPTEL_VLDTMF_LIB="" - ZAPTEL_VLDTMF_INCLUDE="" - else - if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library - ZAPTEL_VLDTMF_LIB="" - fi - PBX_ZAPTEL_VLDTMF=1 - # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED - -cat >>confdefs.h <<_ACEOF -#define HAVE_ZAPTEL_VLDTMF 1 -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define HAVE_ZAPTEL_VLDTMF_VERSION 90 -_ACEOF - - fi - fi -fi - - -if test "x${PBX_ZAPTEL_VLDTMF}" != "x1" -a "${USE_ZAPTEL_VLDTMF}" != "no"; then - pbxlibdir="" - # if --with-ZAPTEL_VLDTMF=DIR has been specified, use it. - if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then - if test -d ${ZAPTEL_VLDTMF_DIR}/lib; then - pbxlibdir="-L${ZAPTEL_VLDTMF_DIR}/lib" - else - pbxlibdir="-L${ZAPTEL_VLDTMF_DIR}" - fi - fi - pbxfuncname="" - if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers - AST_ZAPTEL_VLDTMF_FOUND=yes - else - as_ac_Lib=`echo "ac_cv_lib_zaptel_${pbxfuncname}" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lzaptel" >&5 -echo $ECHO_N "checking for ${pbxfuncname} in -lzaptel... $ECHO_C" >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lzaptel ${pbxlibdir} $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char ${pbxfuncname} (); -int -main () -{ -return ${pbxfuncname} (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -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_link") 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_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_Lib=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Lib=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -ac_res=`eval echo '${'$as_ac_Lib'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_Lib'}'` = yes; then - AST_ZAPTEL_VLDTMF_FOUND=yes -else - AST_ZAPTEL_VLDTMF_FOUND=no -fi - - fi - - # now check for the header. - if test "${AST_ZAPTEL_VLDTMF_FOUND}" = "yes"; then - ZAPTEL_VLDTMF_LIB="${pbxlibdir} -lzaptel " - # if --with-ZAPTEL_VLDTMF=DIR has been specified, use it. - if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then - ZAPTEL_VLDTMF_INCLUDE="-I${ZAPTEL_VLDTMF_DIR}/include" - fi - ZAPTEL_VLDTMF_INCLUDE="${ZAPTEL_VLDTMF_INCLUDE} " - if test "xzaptel.h" = "x" ; then # no header, assume found - ZAPTEL_VLDTMF_HEADER_FOUND="1" - else # check for the header - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${ZAPTEL_VLDTMF_INCLUDE} " - if test "${ac_cv_header_zaptel_h+set}" = set; then - { echo "$as_me:$LINENO: checking for zaptel.h" >&5 -echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; } -if test "${ac_cv_header_zaptel_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5 -echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking zaptel.h usability" >&5 -echo $ECHO_N "checking zaptel.h usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <zaptel.h> -_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 - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking zaptel.h presence" >&5 -echo $ECHO_N "checking zaptel.h presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <zaptel.h> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -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_cpp conftest.$ac_ext") 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); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: zaptel.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: zaptel.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: zaptel.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: zaptel.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: zaptel.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: zaptel.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: zaptel.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for zaptel.h" >&5 -echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; } -if test "${ac_cv_header_zaptel_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_zaptel_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5 -echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; } - -fi -if test $ac_cv_header_zaptel_h = yes; then - ZAPTEL_VLDTMF_HEADER_FOUND=1 -else - ZAPTEL_VLDTMF_HEADER_FOUND=0 -fi - - - CPPFLAGS="${saved_cppflags}" - fi - if test "x${ZAPTEL_VLDTMF_HEADER_FOUND}" = "x0" ; then - ZAPTEL_VLDTMF_LIB="" - ZAPTEL_VLDTMF_INCLUDE="" - else - if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library - ZAPTEL_VLDTMF_LIB="" - fi - PBX_ZAPTEL_VLDTMF=1 - # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED - -cat >>confdefs.h <<_ACEOF -#define HAVE_ZAPTEL_VLDTMF 1 -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define HAVE_ZAPTEL_VLDTMF_VERSION 80 -_ACEOF - - fi - fi -fi - - - # other case, old tonezone (0.80) - -if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then - pbxlibdir="" - # if --with-TONEZONE=DIR has been specified, use it. - if test "x${TONEZONE_DIR}" != "x"; then - if test -d ${TONEZONE_DIR}/lib; then - pbxlibdir="-L${TONEZONE_DIR}/lib" - else - pbxlibdir="-L${TONEZONE_DIR}" - fi - fi - pbxfuncname="tone_zone_find" - if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers - AST_TONEZONE_FOUND=yes - else - as_ac_Lib=`echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltonezone" >&5 -echo $ECHO_N "checking for ${pbxfuncname} in -ltonezone... $ECHO_C" >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char ${pbxfuncname} (); -int -main () -{ -return ${pbxfuncname} (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -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_link") 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_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_Lib=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Lib=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -ac_res=`eval echo '${'$as_ac_Lib'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_Lib'}'` = yes; then - AST_TONEZONE_FOUND=yes -else - AST_TONEZONE_FOUND=no -fi - - fi - - # now check for the header. - if test "${AST_TONEZONE_FOUND}" = "yes"; then - TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra}" - # if --with-TONEZONE=DIR has been specified, use it. - if test "x${TONEZONE_DIR}" != "x"; then - TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include" - fi - TONEZONE_INCLUDE="${TONEZONE_INCLUDE} " - if test "xzaptel.h" = "x" ; then # no header, assume found - TONEZONE_HEADER_FOUND="1" - else # check for the header - saved_cppflags="${CPPFLAGS}" - CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE} " - if test "${ac_cv_header_zaptel_h+set}" = set; then - { echo "$as_me:$LINENO: checking for zaptel.h" >&5 -echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; } -if test "${ac_cv_header_zaptel_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5 -echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking zaptel.h usability" >&5 -echo $ECHO_N "checking zaptel.h usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <zaptel.h> -_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 - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking zaptel.h presence" >&5 -echo $ECHO_N "checking zaptel.h presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <zaptel.h> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -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_cpp conftest.$ac_ext") 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); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: zaptel.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: zaptel.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: zaptel.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: zaptel.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: zaptel.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: zaptel.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: zaptel.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: zaptel.h: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------- ## -## Report this to www.asterisk.org ## -## ------------------------------- ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ echo "$as_me:$LINENO: checking for zaptel.h" >&5 -echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; } -if test "${ac_cv_header_zaptel_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_zaptel_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5 -echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; } - -fi -if test $ac_cv_header_zaptel_h = yes; then - TONEZONE_HEADER_FOUND=1 -else - TONEZONE_HEADER_FOUND=0 -fi - - - CPPFLAGS="${saved_cppflags}" - fi - if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then - TONEZONE_LIB="" - TONEZONE_INCLUDE="" - else - if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library - TONEZONE_LIB="" - fi - PBX_TONEZONE=1 - # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED - -cat >>confdefs.h <<_ACEOF -#define HAVE_TONEZONE 1 -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define HAVE_TONEZONE_VERSION 80 -_ACEOF - - fi - fi -fi - - ;; -esac - EDITLINE_LIB="" if test "x$TERMCAP_LIB" != "x" ; then EDITLINE_LIB="$TERMCAP_LIB" @@ -51291,6 +49350,10 @@ CRYPTO_LIB!$CRYPTO_LIB$ac_delim CRYPTO_INCLUDE!$CRYPTO_INCLUDE$ac_delim CRYPTO_DIR!$CRYPTO_DIR$ac_delim PBX_CRYPTO!$PBX_CRYPTO$ac_delim +DAHDI_LIB!$DAHDI_LIB$ac_delim +DAHDI_INCLUDE!$DAHDI_INCLUDE$ac_delim +DAHDI_DIR!$DAHDI_DIR$ac_delim +PBX_DAHDI!$PBX_DAHDI$ac_delim FFMPEG_LIB!$FFMPEG_LIB$ac_delim FFMPEG_INCLUDE!$FFMPEG_INCLUDE$ac_delim FFMPEG_DIR!$FFMPEG_DIR$ac_delim @@ -51356,10 +49419,6 @@ NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim NCURSES_DIR!$NCURSES_DIR$ac_delim PBX_NCURSES!$PBX_NCURSES$ac_delim NETSNMP_LIB!$NETSNMP_LIB$ac_delim -NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim -NETSNMP_DIR!$NETSNMP_DIR$ac_delim -PBX_NETSNMP!$PBX_NETSNMP$ac_delim -NEWT_LIB!$NEWT_LIB$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then @@ -51401,6 +49460,10 @@ _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF +NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim +NETSNMP_DIR!$NETSNMP_DIR$ac_delim +PBX_NETSNMP!$PBX_NETSNMP$ac_delim +NEWT_LIB!$NEWT_LIB$ac_delim NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim NEWT_DIR!$NEWT_DIR$ac_delim PBX_NEWT!$PBX_NEWT$ac_delim @@ -51494,10 +49557,6 @@ FREETDS_DIR!$FREETDS_DIR$ac_delim PBX_FREETDS!$PBX_FREETDS$ac_delim TERMCAP_LIB!$TERMCAP_LIB$ac_delim TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim -TERMCAP_DIR!$TERMCAP_DIR$ac_delim -PBX_TERMCAP!$PBX_TERMCAP$ac_delim -TINFO_LIB!$TINFO_LIB$ac_delim -TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then @@ -51539,6 +49598,10 @@ _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF +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 @@ -51565,10 +49628,6 @@ ZLIB_LIB!$ZLIB_LIB$ac_delim ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim ZLIB_DIR!$ZLIB_DIR$ac_delim PBX_ZLIB!$PBX_ZLIB$ac_delim -ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim -ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim -ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim -PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim ALLOCA!$ALLOCA$ac_delim LIBOBJS!$LIBOBJS$ac_delim POW_LIB!$POW_LIB$ac_delim @@ -51598,12 +49657,6 @@ OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim OPENH323_BUILD!$OPENH323_BUILD$ac_delim PBX_SPEEX_PREPROCESS!$PBX_SPEEX_PREPROCESS$ac_delim CONFIG_GMIME!$CONFIG_GMIME$ac_delim -PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim -PBX_ZAPTEL_ECHOCANPARAMS!$PBX_ZAPTEL_ECHOCANPARAMS$ac_delim -PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim -PBX_ZAPTEL_HWGAIN!$PBX_ZAPTEL_HWGAIN$ac_delim -PBX_ZAPTEL_NEONMWI!$PBX_ZAPTEL_NEONMWI$ac_delim -PBX_ZAPTEL_SIG_MTP2!$PBX_ZAPTEL_SIG_MTP2$ac_delim EDITLINE_LIB!$EDITLINE_LIB$ac_delim PBX_H323!$PBX_H323$ac_delim PBX_IXJUSER!$PBX_IXJUSER$ac_delim @@ -51614,7 +49667,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` = 73; then + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |