summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-10-06 02:24:26 +0000
committerRussell Bryant <russell@russellbryant.com>2006-10-06 02:24:26 +0000
commit283e7369eacf853e73e46f76d2ede565e703e903 (patch)
tree7e67fe3f508931a259ca843471d5c5bae79395ca /configure
parent9565f72ad34a76c7055ef4aa8dc93291f30e204f (diff)
regenerate the configure script to reflect the latest changes done by
Luigi Rizzo git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44527 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3631
1 files changed, 2405 insertions, 1226 deletions
diff --git a/configure b/configure
index c32a38a95..dd84a65ed 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.ac Revision: 44013 .
+# From configure.ac Revision: 44467 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.60a.
#
@@ -2034,6 +2034,8 @@ ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
case "${host_os}" in
freebsd*)
ac_default_prefix=/usr/local
+ CPPFLAGS=-I/usr/local/include
+ LDFLAGS=-L/usr/local/lib
;;
*)
ac_default_prefix=/usr
@@ -5351,11 +5353,11 @@ case ${withval} in
USE_ALSA=no
;;
y|ye|yes)
- ALSA_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} ALSA"
;;
*)
ALSA_DIR="${withval}"
- ALSA_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} ALSA"
;;
esac
@@ -5378,11 +5380,11 @@ case ${withval} in
USE_CAP=no
;;
y|ye|yes)
- CAP_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} CAP"
;;
*)
CAP_DIR="${withval}"
- CAP_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} CAP"
;;
esac
@@ -5405,11 +5407,11 @@ case ${withval} in
USE_CURL=no
;;
y|ye|yes)
- CURL_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} CURL"
;;
*)
CURL_DIR="${withval}"
- CURL_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} CURL"
;;
esac
@@ -5432,11 +5434,11 @@ case ${withval} in
USE_CURSES=no
;;
y|ye|yes)
- CURSES_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} CURSES"
;;
*)
CURSES_DIR="${withval}"
- CURSES_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} CURSES"
;;
esac
@@ -5459,11 +5461,11 @@ case ${withval} in
USE_GNUTLS=no
;;
y|ye|yes)
- GNUTLS_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} GNUTLS"
;;
*)
GNUTLS_DIR="${withval}"
- GNUTLS_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} GNUTLS"
;;
esac
@@ -5486,11 +5488,11 @@ case ${withval} in
USE_GSM=no
;;
y|ye|yes)
- GSM_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} GSM"
;;
*)
GSM_DIR="${withval}"
- GSM_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} GSM"
;;
esac
@@ -5513,11 +5515,11 @@ case ${withval} in
USE_IKSEMEL=no
;;
y|ye|yes)
- IKSEMEL_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
;;
*)
IKSEMEL_DIR="${withval}"
- IKSEMEL_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
;;
esac
@@ -5540,11 +5542,11 @@ case ${withval} in
USE_IMAP_TK=no
;;
y|ye|yes)
- IMAP_TK_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
;;
*)
IMAP_TK_DIR="${withval}"
- IMAP_TK_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
;;
esac
@@ -5567,11 +5569,11 @@ case ${withval} in
USE_ISDNNET=no
;;
y|ye|yes)
- ISDNNET_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} ISDNNET"
;;
*)
ISDNNET_DIR="${withval}"
- ISDNNET_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} ISDNNET"
;;
esac
@@ -5594,11 +5596,11 @@ case ${withval} in
USE_KDE=no
;;
y|ye|yes)
- KDE_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} KDE"
;;
*)
KDE_DIR="${withval}"
- KDE_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} KDE"
;;
esac
@@ -5621,11 +5623,11 @@ case ${withval} in
USE_MISDN=no
;;
y|ye|yes)
- MISDN_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} MISDN"
;;
*)
MISDN_DIR="${withval}"
- MISDN_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} MISDN"
;;
esac
@@ -5648,11 +5650,11 @@ case ${withval} in
USE_NBS=no
;;
y|ye|yes)
- NBS_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} NBS"
;;
*)
NBS_DIR="${withval}"
- NBS_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} NBS"
;;
esac
@@ -5675,11 +5677,11 @@ case ${withval} in
USE_NCURSES=no
;;
y|ye|yes)
- NCURSES_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} NCURSES"
;;
*)
NCURSES_DIR="${withval}"
- NCURSES_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} NCURSES"
;;
esac
@@ -5702,11 +5704,11 @@ case ${withval} in
USE_NETSNMP=no
;;
y|ye|yes)
- NETSNMP_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} NETSNMP"
;;
*)
NETSNMP_DIR="${withval}"
- NETSNMP_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} NETSNMP"
;;
esac
@@ -5729,11 +5731,11 @@ case ${withval} in
USE_NEWT=no
;;
y|ye|yes)
- NEWT_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} NEWT"
;;
*)
NEWT_DIR="${withval}"
- NEWT_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} NEWT"
;;
esac
@@ -5756,11 +5758,11 @@ case ${withval} in
USE_UNIXODBC=no
;;
y|ye|yes)
- UNIXODBC_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
;;
*)
UNIXODBC_DIR="${withval}"
- UNIXODBC_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
;;
esac
@@ -5783,11 +5785,11 @@ case ${withval} in
USE_OGG=no
;;
y|ye|yes)
- OGG_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} OGG"
;;
*)
OGG_DIR="${withval}"
- OGG_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} OGG"
;;
esac
@@ -5810,11 +5812,11 @@ case ${withval} in
USE_OSPTK=no
;;
y|ye|yes)
- OSPTK_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} OSPTK"
;;
*)
OSPTK_DIR="${withval}"
- OSPTK_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} OSPTK"
;;
esac
@@ -5837,11 +5839,11 @@ case ${withval} in
USE_OSS=no
;;
y|ye|yes)
- OSS_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} OSS"
;;
*)
OSS_DIR="${withval}"
- OSS_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} OSS"
;;
esac
@@ -5864,11 +5866,11 @@ case ${withval} in
USE_POPT=no
;;
y|ye|yes)
- POPT_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} POPT"
;;
*)
POPT_DIR="${withval}"
- POPT_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} POPT"
;;
esac
@@ -5891,11 +5893,11 @@ case ${withval} in
USE_PGSQL=no
;;
y|ye|yes)
- PGSQL_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} PGSQL"
;;
*)
PGSQL_DIR="${withval}"
- PGSQL_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} PGSQL"
;;
esac
@@ -5918,11 +5920,11 @@ case ${withval} in
USE_PRI=no
;;
y|ye|yes)
- PRI_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} PRI"
;;
*)
PRI_DIR="${withval}"
- PRI_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} PRI"
;;
esac
@@ -5945,11 +5947,11 @@ case ${withval} in
USE_SS7=no
;;
y|ye|yes)
- SS7_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} SS7"
;;
*)
SS7_DIR="${withval}"
- SS7_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} SS7"
;;
esac
@@ -5972,11 +5974,11 @@ case ${withval} in
USE_PWLIB=no
;;
y|ye|yes)
- PWLIB_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} PWLIB"
;;
*)
PWLIB_DIR="${withval}"
- PWLIB_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} PWLIB"
;;
esac
@@ -5999,11 +6001,11 @@ case ${withval} in
USE_OPENH323=no
;;
y|ye|yes)
- OPENH323_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} OPENH323"
;;
*)
OPENH323_DIR="${withval}"
- OPENH323_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} OPENH323"
;;
esac
@@ -6026,11 +6028,11 @@ case ${withval} in
USE_QT=no
;;
y|ye|yes)
- QT_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} QT"
;;
*)
QT_DIR="${withval}"
- QT_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} QT"
;;
esac
@@ -6053,11 +6055,11 @@ case ${withval} in
USE_RADIUS=no
;;
y|ye|yes)
- RADIUS_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} RADIUS"
;;
*)
RADIUS_DIR="${withval}"
- RADIUS_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} RADIUS"
;;
esac
@@ -6080,11 +6082,11 @@ case ${withval} in
USE_SPEEX=no
;;
y|ye|yes)
- SPEEX_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} SPEEX"
;;
*)
SPEEX_DIR="${withval}"
- SPEEX_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} SPEEX"
;;
esac
@@ -6107,11 +6109,11 @@ case ${withval} in
USE_SQLITE=no
;;
y|ye|yes)
- SQLITE_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} SQLITE"
;;
*)
SQLITE_DIR="${withval}"
- SQLITE_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} SQLITE"
;;
esac
@@ -6134,11 +6136,11 @@ case ${withval} in
USE_SUPPSERV=no
;;
y|ye|yes)
- SUPPSERV_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
;;
*)
SUPPSERV_DIR="${withval}"
- SUPPSERV_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
;;
esac
@@ -6161,11 +6163,11 @@ case ${withval} in
USE_OPENSSL=no
;;
y|ye|yes)
- OPENSSL_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} OPENSSL"
;;
*)
OPENSSL_DIR="${withval}"
- OPENSSL_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} OPENSSL"
;;
esac
@@ -6188,11 +6190,11 @@ case ${withval} in
USE_FREETDS=no
;;
y|ye|yes)
- FREETDS_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} FREETDS"
;;
*)
FREETDS_DIR="${withval}"
- FREETDS_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} FREETDS"
;;
esac
@@ -6215,11 +6217,11 @@ case ${withval} in
USE_TERMCAP=no
;;
y|ye|yes)
- TERMCAP_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} TERMCAP"
;;
*)
TERMCAP_DIR="${withval}"
- TERMCAP_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} TERMCAP"
;;
esac
@@ -6242,11 +6244,11 @@ case ${withval} in
USE_TINFO=no
;;
y|ye|yes)
- TINFO_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} TINFO"
;;
*)
TINFO_DIR="${withval}"
- TINFO_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} TINFO"
;;
esac
@@ -6269,11 +6271,11 @@ case ${withval} in
USE_TONEZONE=no
;;
y|ye|yes)
- TONEZONE_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} TONEZONE"
;;
*)
TONEZONE_DIR="${withval}"
- TONEZONE_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} TONEZONE"
;;
esac
@@ -6296,11 +6298,11 @@ case ${withval} in
USE_VORBIS=no
;;
y|ye|yes)
- VORBIS_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} VORBIS"
;;
*)
VORBIS_DIR="${withval}"
- VORBIS_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} VORBIS"
;;
esac
@@ -6323,11 +6325,11 @@ case ${withval} in
USE_VPB=no
;;
y|ye|yes)
- VPB_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} VPB"
;;
*)
VPB_DIR="${withval}"
- VPB_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} VPB"
;;
esac
@@ -6350,11 +6352,11 @@ case ${withval} in
USE_ZLIB=no
;;
y|ye|yes)
- ZLIB_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} ZLIB"
;;
*)
ZLIB_DIR="${withval}"
- ZLIB_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} ZLIB"
;;
esac
@@ -6377,11 +6379,11 @@ case ${withval} in
USE_ZAPTEL=no
;;
y|ye|yes)
- ZAPTEL_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} ZAPTEL"
;;
*)
ZAPTEL_DIR="${withval}"
- ZAPTEL_MANDATORY="yes"
+ ac_mandatory_list="${ac_mandatory_list} ZAPTEL"
;;
esac
@@ -14340,10 +14342,18 @@ fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
-{ echo "$as_me:$LINENO: checking for RTLD_NOLOAD" >&5
-echo $ECHO_N "checking for RTLD_NOLOAD... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
+
+ if test "x${PBX_RTLD_NOLOAD}" != "x1" -a "${USE_RTLD_NOLOAD}" != "no"; then
+ { echo "$as_me:$LINENO: checking for RTLD_NOLOAD in dlfcn.h" >&5
+echo $ECHO_N "checking for RTLD_NOLOAD in dlfcn.h... $ECHO_C" >&6; }
+ saved_cppflags="${CPPFLAGS}"
+ if test "x${RTLD_NOLOAD_DIR}" != "x"; then
+ RTLD_NOLOAD_INCLUDE= "-I${RTLD_NOLOAD_DIR}/include"
+ fi
+ CPPFLAGS="${CPPFLAGS} ${RTLD_NOLOAD_INCLUDE}"
+
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
@@ -14357,14 +14367,14 @@ int foo = RTLD_NOLOAD;
return 0;
}
_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
+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_link") 2>conftest.er1
+ (eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
@@ -14381,7 +14391,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
+ { ac_try='test -s conftest.$ac_objext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
@@ -14391,24 +14401,33 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- { echo "$as_me:$LINENO: result: yes" >&5
+ { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
+ PBX_RTLD_NOLOAD=1
cat >>confdefs.h <<\_ACEOF
#define HAVE_RTLD_NOLOAD 1
_ACEOF
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_RTLD_NOLOAD_VERSION
+_ACEOF
+
+
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- { echo "$as_me:$LINENO: result: no" >&5
+ { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
- conftest$ac_exeext conftest.$ac_ext
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CPPFLAGS="${saved_cppflags}"
+ fi
+
if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
{ echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
@@ -15086,7 +15105,7 @@ _ACEOF
# do the package library checks now
-if test "${USE_ALSA}" != "no"; then
+if test "x${PBX_ALSA}" != "x1" -a "${USE_ALSA}" != "no"; then
pbxlibdir=""
if test "x${ALSA_DIR}" != "x"; then
if test -d ${ALSA_DIR}/lib; then
@@ -15095,9 +15114,14 @@ if test "${USE_ALSA}" != "no"; then
pbxlibdir="-L${ALSA_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for snd_spcm_init in -lasound" >&5
-echo $ECHO_N "checking for snd_spcm_init in -lasound... $ECHO_C" >&6; }
-if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
+ pbxfuncname="snd_spcm_init"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_ALSA_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_asound_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lasound" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lasound... $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
@@ -15115,11 +15139,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char snd_spcm_init ();
+char ${pbxfuncname} ();
int
main ()
{
-return snd_spcm_init ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -15158,26 +15182,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_asound_snd_spcm_init=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_asound_snd_spcm_init=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_spcm_init" >&5
-echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
-if test $ac_cv_lib_asound_snd_spcm_init = yes; then
+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_ALSA_FOUND=yes
else
AST_ALSA_FOUND=no
fi
+ fi
if test "${AST_ALSA_FOUND}" = "yes"; then
ALSA_LIB="-lasound -lm -ldl"
@@ -15507,46 +15533,31 @@ fi
fi
fi
if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${ALSA_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the asound development package installed." >&5
-echo "$as_me: *** It appears that you do not have the asound development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${ALSA_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${ALSA_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
- exit 1
- fi
ALSA_LIB=""
ALSA_INCLUDE=""
- PBX_ALSA=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ ALSA_LIB=""
+ fi
PBX_ALSA=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_ALSA 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ALSA_VERSION
+_ACEOF
+
fi
- elif test ! -z "${ALSA_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${ALSA_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ALSA_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${ALSA_OPTION}" >&6;}
- exit 1
fi
fi
-if test "${USE_CURSES}" != "no"; then
+if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
pbxlibdir=""
if test "x${CURSES_DIR}" != "x"; then
if test -d ${CURSES_DIR}/lib; then
@@ -15555,9 +15566,14 @@ if test "${USE_CURSES}" != "no"; then
pbxlibdir="-L${CURSES_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
-echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
-if test "${ac_cv_lib_curses_initscr+set}" = set; then
+ pbxfuncname="initscr"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_CURSES_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_curses_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcurses" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lcurses... $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
@@ -15575,11 +15591,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char initscr ();
+char ${pbxfuncname} ();
int
main ()
{
-return initscr ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -15618,26 +15634,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_curses_initscr=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_curses_initscr=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
-echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
-if test $ac_cv_lib_curses_initscr = yes; then
+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_CURSES_FOUND=yes
else
AST_CURSES_FOUND=no
fi
+ fi
if test "${AST_CURSES_FOUND}" = "yes"; then
CURSES_LIB="-lcurses "
@@ -15967,47 +15985,32 @@ fi
fi
fi
if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${CURSES_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the curses development package installed." >&5
-echo "$as_me: *** It appears that you do not have the curses development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${CURSES_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${CURSES_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
- exit 1
- fi
CURSES_LIB=""
CURSES_INCLUDE=""
- PBX_CURSES=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ CURSES_LIB=""
+ fi
PBX_CURSES=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_CURSES 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CURSES_VERSION
+_ACEOF
+
fi
- elif test ! -z "${CURSES_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${CURSES_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CURSES_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${CURSES_OPTION}" >&6;}
- exit 1
fi
fi
if test "x${host_os}" = "xlinux-gnu" ; then
-if test "${USE_CAP}" != "no"; then
+if test "x${PBX_CAP}" != "x1" -a "${USE_CAP}" != "no"; then
pbxlibdir=""
if test "x${CAP_DIR}" != "x"; then
if test -d ${CAP_DIR}/lib; then
@@ -16016,9 +16019,14 @@ if test "${USE_CAP}" != "no"; then
pbxlibdir="-L${CAP_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for cap_from_text in -lcap" >&5
-echo $ECHO_N "checking for cap_from_text in -lcap... $ECHO_C" >&6; }
-if test "${ac_cv_lib_cap_cap_from_text+set}" = set; then
+ pbxfuncname="cap_from_text"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_CAP_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_cap_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcap" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lcap... $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
@@ -16036,11 +16044,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char cap_from_text ();
+char ${pbxfuncname} ();
int
main ()
{
-return cap_from_text ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -16079,26 +16087,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_cap_cap_from_text=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_cap_cap_from_text=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_from_text" >&5
-echo "${ECHO_T}$ac_cv_lib_cap_cap_from_text" >&6; }
-if test $ac_cv_lib_cap_cap_from_text = yes; then
+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_CAP_FOUND=yes
else
AST_CAP_FOUND=no
fi
+ fi
if test "${AST_CAP_FOUND}" = "yes"; then
CAP_LIB="-lcap "
@@ -16428,40 +16438,25 @@ fi
fi
fi
if test "x${CAP_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${CAP_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the cap development package installed." >&5
-echo "$as_me: *** It appears that you do not have the cap development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${CAP_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${CAP_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
- exit 1
- fi
CAP_LIB=""
CAP_INCLUDE=""
- PBX_CAP=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ CAP_LIB=""
+ fi
PBX_CAP=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_CAP 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CAP_VERSION
+_ACEOF
+
fi
- elif test ! -z "${CAP_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${CAP_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${CAP_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${CAP_OPTION}" >&6;}
- exit 1
fi
fi
@@ -16586,7 +16581,7 @@ fi
fi
-if test "${USE_IKSEMEL}" != "no"; then
+if test "x${PBX_IKSEMEL}" != "x1" -a "${USE_IKSEMEL}" != "no"; then
pbxlibdir=""
if test "x${IKSEMEL_DIR}" != "x"; then
if test -d ${IKSEMEL_DIR}/lib; then
@@ -16595,9 +16590,14 @@ if test "${USE_IKSEMEL}" != "no"; then
pbxlibdir="-L${IKSEMEL_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for iks_start_sasl in -liksemel" >&5
-echo $ECHO_N "checking for iks_start_sasl in -liksemel... $ECHO_C" >&6; }
-if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
+ pbxfuncname="iks_start_sasl"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_IKSEMEL_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_iksemel_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liksemel" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -liksemel... $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
@@ -16615,11 +16615,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char iks_start_sasl ();
+char ${pbxfuncname} ();
int
main ()
{
-return iks_start_sasl ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -16658,26 +16658,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_iksemel_iks_start_sasl=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_iksemel_iks_start_sasl=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
-echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
-if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
+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_IKSEMEL_FOUND=yes
else
AST_IKSEMEL_FOUND=no
fi
+ fi
if test "${AST_IKSEMEL_FOUND}" = "yes"; then
IKSEMEL_LIB="-liksemel "
@@ -17007,47 +17009,32 @@ fi
fi
fi
if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${IKSEMEL_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the iksemel development package installed." >&5
-echo "$as_me: *** It appears that you do not have the iksemel development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${IKSEMEL_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${IKSEMEL_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
- exit 1
- fi
IKSEMEL_LIB=""
IKSEMEL_INCLUDE=""
- PBX_IKSEMEL=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ IKSEMEL_LIB=""
+ fi
PBX_IKSEMEL=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_IKSEMEL 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_IKSEMEL_VERSION
+_ACEOF
+
fi
- elif test ! -z "${IKSEMEL_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${IKSEMEL_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${IKSEMEL_OPTION}" >&6;}
- exit 1
fi
fi
if test "${PBX_IKSEMEL}" = 1; then
-if test "${USE_GNUTLS}" != "no"; then
+if test "x${PBX_GNUTLS}" != "x1" -a "${USE_GNUTLS}" != "no"; then
pbxlibdir=""
if test "x${GNUTLS_DIR}" != "x"; then
if test -d ${GNUTLS_DIR}/lib; then
@@ -17056,9 +17043,14 @@ if test "${USE_GNUTLS}" != "no"; then
pbxlibdir="-L${GNUTLS_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for gnutls_bye in -lgnutls" >&5
-echo $ECHO_N "checking for gnutls_bye in -lgnutls... $ECHO_C" >&6; }
-if test "${ac_cv_lib_gnutls_gnutls_bye+set}" = set; then
+ pbxfuncname="gnutls_bye"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_GNUTLS_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_gnutls_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lgnutls" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lgnutls... $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
@@ -17076,11 +17068,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char gnutls_bye ();
+char ${pbxfuncname} ();
int
main ()
{
-return gnutls_bye ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -17119,26 +17111,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_gnutls_gnutls_bye=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_gnutls_gnutls_bye=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_bye" >&5
-echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_bye" >&6; }
-if test $ac_cv_lib_gnutls_gnutls_bye = yes; then
+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_GNUTLS_FOUND=yes
else
AST_GNUTLS_FOUND=no
fi
+ fi
if test "${AST_GNUTLS_FOUND}" = "yes"; then
GNUTLS_LIB="-lgnutls "
@@ -17468,40 +17462,25 @@ fi
fi
fi
if test "x${GNUTLS_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${GNUTLS_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the gnutls development package installed." >&5
-echo "$as_me: *** It appears that you do not have the gnutls development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${GNUTLS_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${GNUTLS_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
- exit 1
- fi
GNUTLS_LIB=""
GNUTLS_INCLUDE=""
- PBX_GNUTLS=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ GNUTLS_LIB=""
+ fi
PBX_GNUTLS=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_GNUTLS 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_GNUTLS_VERSION
+_ACEOF
+
fi
- elif test ! -z "${GNUTLS_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${GNUTLS_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${GNUTLS_OPTION}" >&6;}
- exit 1
fi
fi
@@ -17761,18 +17740,6 @@ cat >>confdefs.h <<\_ACEOF
_ACEOF
fi
- elif test ! -z "${IMAP_TK_MANDATORY}"; then
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The UW IMAP Toolkit installation on this system appears to be broken." >&5
-echo "$as_me: *** The UW IMAP Toolkit installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** including --without-imap." >&5
-echo "$as_me: *** including --without-imap." >&6;}
- exit 1
else
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
@@ -17878,18 +17845,6 @@ cat >>confdefs.h <<\_ACEOF
#define HAVE_LIBKDE 1
_ACEOF
- elif test ! -z "${KDE_MANDATORY}"; then
- { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The KDE installation on this system appears to be broken." >&5
-echo "$as_me: *** The KDE installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** including --without-kde." >&5
-echo "$as_me: *** including --without-kde." >&6;}
- exit 1
else
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
@@ -18013,7 +17968,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
-if test "${USE_MISDN}" != "no"; then
+if test "x${PBX_MISDN}" != "x1" -a "${USE_MISDN}" != "no"; then
pbxlibdir=""
if test "x${MISDN_DIR}" != "x"; then
if test -d ${MISDN_DIR}/lib; then
@@ -18022,9 +17977,14 @@ if test "${USE_MISDN}" != "no"; then
pbxlibdir="-L${MISDN_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for mISDN_open in -lmISDN" >&5
-echo $ECHO_N "checking for mISDN_open in -lmISDN... $ECHO_C" >&6; }
-if test "${ac_cv_lib_mISDN_mISDN_open+set}" = set; then
+ pbxfuncname="mISDN_open"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_MISDN_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_mISDN_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lmISDN" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lmISDN... $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
@@ -18042,11 +18002,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char mISDN_open ();
+char ${pbxfuncname} ();
int
main ()
{
-return mISDN_open ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -18085,26 +18045,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_mISDN_mISDN_open=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_mISDN_mISDN_open=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_mISDN_mISDN_open" >&5
-echo "${ECHO_T}$ac_cv_lib_mISDN_mISDN_open" >&6; }
-if test $ac_cv_lib_mISDN_mISDN_open = yes; then
+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_MISDN_FOUND=yes
else
AST_MISDN_FOUND=no
fi
+ fi
if test "${AST_MISDN_FOUND}" = "yes"; then
MISDN_LIB="-lmISDN "
@@ -18434,47 +18396,32 @@ fi
fi
fi
if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${MISDN_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the mISDN development package installed." >&5
-echo "$as_me: *** It appears that you do not have the mISDN development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${MISDN_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${MISDN_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
- exit 1
- fi
MISDN_LIB=""
MISDN_INCLUDE=""
- PBX_MISDN=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ MISDN_LIB=""
+ fi
PBX_MISDN=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_MISDN 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_MISDN_VERSION
+_ACEOF
+
fi
- elif test ! -z "${MISDN_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${MISDN_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${MISDN_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${MISDN_OPTION}" >&6;}
- exit 1
fi
fi
if test "${PBX_MISDN}" = 1; then
-if test "${USE_ISDNNET}" != "no"; then
+if test "x${PBX_ISDNNET}" != "x1" -a "${USE_ISDNNET}" != "no"; then
pbxlibdir=""
if test "x${ISDNNET_DIR}" != "x"; then
if test -d ${ISDNNET_DIR}/lib; then
@@ -18483,9 +18430,14 @@ if test "${USE_ISDNNET}" != "no"; then
pbxlibdir="-L${ISDNNET_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for init_manager in -lisdnnet" >&5
-echo $ECHO_N "checking for init_manager in -lisdnnet... $ECHO_C" >&6; }
-if test "${ac_cv_lib_isdnnet_init_manager+set}" = set; then
+ pbxfuncname="init_manager"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_ISDNNET_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_isdnnet_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lisdnnet" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lisdnnet... $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
@@ -18503,11 +18455,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char init_manager ();
+char ${pbxfuncname} ();
int
main ()
{
-return init_manager ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -18546,26 +18498,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_isdnnet_init_manager=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_isdnnet_init_manager=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_isdnnet_init_manager" >&5
-echo "${ECHO_T}$ac_cv_lib_isdnnet_init_manager" >&6; }
-if test $ac_cv_lib_isdnnet_init_manager = yes; then
+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_ISDNNET_FOUND=yes
else
AST_ISDNNET_FOUND=no
fi
+ fi
if test "${AST_ISDNNET_FOUND}" = "yes"; then
ISDNNET_LIB="-lisdnnet -lmISDN -lpthread"
@@ -18895,45 +18849,30 @@ fi
fi
fi
if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${ISDNNET_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the isdnnet development package installed." >&5
-echo "$as_me: *** It appears that you do not have the isdnnet development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${ISDNNET_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${ISDNNET_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
- exit 1
- fi
ISDNNET_LIB=""
ISDNNET_INCLUDE=""
- PBX_ISDNNET=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ ISDNNET_LIB=""
+ fi
PBX_ISDNNET=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_ISDNNET 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ISDNNET_VERSION
+_ACEOF
+
fi
- elif test ! -z "${ISDNNET_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${ISDNNET_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${ISDNNET_OPTION}" >&6;}
- exit 1
fi
fi
-if test "${USE_SUPPSERV}" != "no"; then
+if test "x${PBX_SUPPSERV}" != "x1" -a "${USE_SUPPSERV}" != "no"; then
pbxlibdir=""
if test "x${SUPPSERV_DIR}" != "x"; then
if test -d ${SUPPSERV_DIR}/lib; then
@@ -18942,9 +18881,14 @@ if test "${USE_SUPPSERV}" != "no"; then
pbxlibdir="-L${SUPPSERV_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for encodeFac in -lsuppserv" >&5
-echo $ECHO_N "checking for encodeFac in -lsuppserv... $ECHO_C" >&6; }
-if test "${ac_cv_lib_suppserv_encodeFac+set}" = set; then
+ pbxfuncname="encodeFac"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_SUPPSERV_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_suppserv_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsuppserv" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lsuppserv... $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
@@ -18962,11 +18906,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char encodeFac ();
+char ${pbxfuncname} ();
int
main ()
{
-return encodeFac ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -19005,26 +18949,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_suppserv_encodeFac=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_suppserv_encodeFac=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_suppserv_encodeFac" >&5
-echo "${ECHO_T}$ac_cv_lib_suppserv_encodeFac" >&6; }
-if test $ac_cv_lib_suppserv_encodeFac = yes; then
+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_SUPPSERV_FOUND=yes
else
AST_SUPPSERV_FOUND=no
fi
+ fi
if test "${AST_SUPPSERV_FOUND}" = "yes"; then
SUPPSERV_LIB="-lsuppserv "
@@ -19354,47 +19300,32 @@ fi
fi
fi
if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${SUPPSERV_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the suppserv development package installed." >&5
-echo "$as_me: *** It appears that you do not have the suppserv development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${SUPPSERV_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${SUPPSERV_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
- exit 1
- fi
SUPPSERV_LIB=""
SUPPSERV_INCLUDE=""
- PBX_SUPPSERV=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ SUPPSERV_LIB=""
+ fi
PBX_SUPPSERV=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_SUPPSERV 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_SUPPSERV_VERSION
+_ACEOF
+
fi
- elif test ! -z "${SUPPSERV_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${SUPPSERV_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${SUPPSERV_OPTION}" >&6;}
- exit 1
fi
fi
fi
-if test "${USE_NBS}" != "no"; then
+if test "x${PBX_NBS}" != "x1" -a "${USE_NBS}" != "no"; then
pbxlibdir=""
if test "x${NBS_DIR}" != "x"; then
if test -d ${NBS_DIR}/lib; then
@@ -19403,9 +19334,14 @@ if test "${USE_NBS}" != "no"; then
pbxlibdir="-L${NBS_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
-echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
-if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
+ pbxfuncname="nbs_connect"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_NBS_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_nbs_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnbs" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lnbs... $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
@@ -19423,11 +19359,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char nbs_connect ();
+char ${pbxfuncname} ();
int
main ()
{
-return nbs_connect ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -19466,26 +19402,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_nbs_nbs_connect=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_nbs_nbs_connect=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
-echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
-if test $ac_cv_lib_nbs_nbs_connect = yes; then
+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_NBS_FOUND=yes
else
AST_NBS_FOUND=no
fi
+ fi
if test "${AST_NBS_FOUND}" = "yes"; then
NBS_LIB="-lnbs "
@@ -19815,46 +19753,31 @@ fi
fi
fi
if test "x${NBS_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${NBS_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the nbs development package installed." >&5
-echo "$as_me: *** It appears that you do not have the nbs development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${NBS_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${NBS_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
- exit 1
- fi
NBS_LIB=""
NBS_INCLUDE=""
- PBX_NBS=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ NBS_LIB=""
+ fi
PBX_NBS=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_NBS 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_NBS_VERSION
+_ACEOF
+
fi
- elif test ! -z "${NBS_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${NBS_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NBS_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${NBS_OPTION}" >&6;}
- exit 1
fi
fi
-if test "${USE_NCURSES}" != "no"; then
+if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
pbxlibdir=""
if test "x${NCURSES_DIR}" != "x"; then
if test -d ${NCURSES_DIR}/lib; then
@@ -19863,9 +19786,14 @@ if test "${USE_NCURSES}" != "no"; then
pbxlibdir="-L${NCURSES_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
-echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
-if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
+ pbxfuncname="initscr"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_NCURSES_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_ncurses_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lncurses" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lncurses... $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
@@ -19883,11 +19811,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char initscr ();
+char ${pbxfuncname} ();
int
main ()
{
-return initscr ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -19926,26 +19854,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_ncurses_initscr=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_ncurses_initscr=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
-echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
-if test $ac_cv_lib_ncurses_initscr = yes; then
+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_NCURSES_FOUND=yes
else
AST_NCURSES_FOUND=no
fi
+ fi
if test "${AST_NCURSES_FOUND}" = "yes"; then
NCURSES_LIB="-lncurses "
@@ -20275,40 +20205,25 @@ fi
fi
fi
if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${NCURSES_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the ncurses development package installed." >&5
-echo "$as_me: *** It appears that you do not have the ncurses development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${NCURSES_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${NCURSES_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
- exit 1
- fi
NCURSES_LIB=""
NCURSES_INCLUDE=""
- PBX_NCURSES=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ NCURSES_LIB=""
+ fi
PBX_NCURSES=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_NCURSES 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_NCURSES_VERSION
+_ACEOF
+
fi
- elif test ! -z "${NCURSES_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${NCURSES_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NCURSES_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${NCURSES_OPTION}" >&6;}
- exit 1
fi
fi
@@ -20628,33 +20543,11 @@ fi
if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
NETSNMP_LIB="${NETSNMP_libs}"
PBX_NETSNMP=1
- elif test ! -z "${NETSNMP_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
-echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
-echo "$as_me: *** including --without-netsnmp" >&6;}
- exit 1
fi
-elif test ! -z "${NETSNMP_MANDATORY}";
-then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The Net-SNMP installation on this system appears to be broken." >&5
-echo "$as_me: *** The Net-SNMP installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** including --without-netsnmp" >&5
-echo "$as_me: *** including --without-netsnmp" >&6;}
- exit 1
fi
-if test "${USE_NEWT}" != "no"; then
+if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
pbxlibdir=""
if test "x${NEWT_DIR}" != "x"; then
if test -d ${NEWT_DIR}/lib; then
@@ -20663,9 +20556,14 @@ if test "${USE_NEWT}" != "no"; then
pbxlibdir="-L${NEWT_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
-echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
-if test "${ac_cv_lib_newt_newtBell+set}" = set; then
+ pbxfuncname="newtBell"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_NEWT_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnewt" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lnewt... $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
@@ -20683,11 +20581,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char newtBell ();
+char ${pbxfuncname} ();
int
main ()
{
-return newtBell ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -20726,26 +20624,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_newt_newtBell=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_newt_newtBell=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
-echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
-if test $ac_cv_lib_newt_newtBell = yes; then
+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_NEWT_FOUND=yes
else
AST_NEWT_FOUND=no
fi
+ fi
if test "${AST_NEWT_FOUND}" = "yes"; then
NEWT_LIB="-lnewt "
@@ -21075,46 +20975,31 @@ fi
fi
fi
if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${NEWT_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the newt development package installed." >&5
-echo "$as_me: *** It appears that you do not have the newt development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${NEWT_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${NEWT_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
- exit 1
- fi
NEWT_LIB=""
NEWT_INCLUDE=""
- PBX_NEWT=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ NEWT_LIB=""
+ fi
PBX_NEWT=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_NEWT 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_NEWT_VERSION
+_ACEOF
+
fi
- elif test ! -z "${NEWT_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${NEWT_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${NEWT_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${NEWT_OPTION}" >&6;}
- exit 1
fi
fi
-if test "${USE_UNIXODBC}" != "no"; then
+if test "x${PBX_UNIXODBC}" != "x1" -a "${USE_UNIXODBC}" != "no"; then
pbxlibdir=""
if test "x${UNIXODBC_DIR}" != "x"; then
if test -d ${UNIXODBC_DIR}/lib; then
@@ -21123,9 +21008,14 @@ if test "${USE_UNIXODBC}" != "no"; then
pbxlibdir="-L${UNIXODBC_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
-echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
-if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
+ pbxfuncname="SQLConnect"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_UNIXODBC_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_odbc_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lodbc" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lodbc... $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
@@ -21143,11 +21033,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char SQLConnect ();
+char ${pbxfuncname} ();
int
main ()
{
-return SQLConnect ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -21186,26 +21076,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_odbc_SQLConnect=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_odbc_SQLConnect=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
-echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
-if test $ac_cv_lib_odbc_SQLConnect = yes; then
+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_UNIXODBC_FOUND=yes
else
AST_UNIXODBC_FOUND=no
fi
+ fi
if test "${AST_UNIXODBC_FOUND}" = "yes"; then
UNIXODBC_LIB="-lodbc -lltdl"
@@ -21535,46 +21427,31 @@ fi
fi
fi
if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${UNIXODBC_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the odbc development package installed." >&5
-echo "$as_me: *** It appears that you do not have the odbc development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${UNIXODBC_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${UNIXODBC_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
- exit 1
- fi
UNIXODBC_LIB=""
UNIXODBC_INCLUDE=""
- PBX_UNIXODBC=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ UNIXODBC_LIB=""
+ fi
PBX_UNIXODBC=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_UNIXODBC 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_UNIXODBC_VERSION
+_ACEOF
+
fi
- elif test ! -z "${UNIXODBC_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${UNIXODBC_OPTION}" >&6;}
- exit 1
fi
fi
-if test "${USE_OGG}" != "no"; then
+if test "x${PBX_OGG}" != "x1" -a "${USE_OGG}" != "no"; then
pbxlibdir=""
if test "x${OGG_DIR}" != "x"; then
if test -d ${OGG_DIR}/lib; then
@@ -21583,9 +21460,14 @@ if test "${USE_OGG}" != "no"; then
pbxlibdir="-L${OGG_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
-echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
-if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
+ pbxfuncname="ogg_sync_init"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_OGG_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_ogg_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -logg" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -logg... $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
@@ -21603,11 +21485,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char ogg_sync_init ();
+char ${pbxfuncname} ();
int
main ()
{
-return ogg_sync_init ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -21646,26 +21528,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_ogg_ogg_sync_init=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_ogg_ogg_sync_init=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
-echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
-if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
+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_OGG_FOUND=yes
else
AST_OGG_FOUND=no
fi
+ fi
if test "${AST_OGG_FOUND}" = "yes"; then
OGG_LIB="-logg "
@@ -21995,46 +21879,31 @@ fi
fi
fi
if test "x${OGG_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${OGG_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the ogg development package installed." >&5
-echo "$as_me: *** It appears that you do not have the ogg development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${OGG_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${OGG_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
- exit 1
- fi
OGG_LIB=""
OGG_INCLUDE=""
- PBX_OGG=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ OGG_LIB=""
+ fi
PBX_OGG=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_OGG 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_OGG_VERSION
+_ACEOF
+
fi
- elif test ! -z "${OGG_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${OGG_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OGG_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${OGG_OPTION}" >&6;}
- exit 1
fi
fi
-if test "${USE_OSPTK}" != "no"; then
+if test "x${PBX_OSPTK}" != "x1" -a "${USE_OSPTK}" != "no"; then
pbxlibdir=""
if test "x${OSPTK_DIR}" != "x"; then
if test -d ${OSPTK_DIR}/lib; then
@@ -22043,9 +21912,14 @@ if test "${USE_OSPTK}" != "no"; then
pbxlibdir="-L${OSPTK_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
-echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
-if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
+ pbxfuncname="OSPPCryptoDecrypt"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_OSPTK_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_osptk_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -losptk" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -losptk... $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
@@ -22063,11 +21937,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char OSPPCryptoDecrypt ();
+char ${pbxfuncname} ();
int
main ()
{
-return OSPPCryptoDecrypt ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -22106,26 +21980,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_osptk_OSPPCryptoDecrypt=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_osptk_OSPPCryptoDecrypt=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
-echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
-if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
+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_OSPTK_FOUND=yes
else
AST_OSPTK_FOUND=no
fi
+ fi
if test "${AST_OSPTK_FOUND}" = "yes"; then
OSPTK_LIB="-losptk -lcrypto -lssl"
@@ -22455,46 +22331,301 @@ fi
fi
fi
if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${OSPTK_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the osptk development package installed." >&5
-echo "$as_me: *** It appears that you do not have the osptk development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${OSPTK_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${OSPTK_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
- exit 1
- fi
OSPTK_LIB=""
OSPTK_INCLUDE=""
- PBX_OSPTK=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ OSPTK_LIB=""
+ fi
PBX_OSPTK=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_OSPTK 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_OSPTK_VERSION
+_ACEOF
+
fi
- elif test ! -z "${OSPTK_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${OSPTK_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSPTK_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${OSPTK_OPTION}" >&6;}
- exit 1
fi
fi
-PBX_OSS=0
-if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
+# possible places for oss definitions
+
+if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
+ pbxlibdir=""
+ if test "x${OSS_DIR}" != "x"; then
+ if test -d ${OSS_DIR}/lib; then
+ pbxlibdir="-L${OSS_DIR}/lib"
+ else
+ pbxlibdir="-L${OSS_DIR}"
+ fi
+ fi
+ pbxfuncname=""
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_OSS_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $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="-lossaudio ${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); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (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_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; 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_OSS_FOUND=yes
+else
+ AST_OSS_FOUND=no
+fi
+
+ fi
+
+ if test "${AST_OSS_FOUND}" = "yes"; then
+ OSS_LIB="-lossaudio "
+ OSS_HEADER_FOUND="1"
+ if test "x${OSS_DIR}" != "x"; then
+ OSS_LIB="${pbxlibdir} ${OSS_LIB}"
+ OSS_INCLUDE="-I${OSS_DIR}/include"
+ if test "xlinux/soundcard.h" != "x" ; then
+ as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/linux/soundcard.h" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/linux/soundcard.h" >&5
+echo $ECHO_N "checking for ${OSS_DIR}/include/linux/soundcard.h... $ECHO_C" >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+ac_res=`eval echo '${'$as_ac_Header'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ echo "$as_me:$LINENO: checking ${OSS_DIR}/include/linux/soundcard.h usability" >&5
+echo $ECHO_N "checking ${OSS_DIR}/include/linux/soundcard.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 <${OSS_DIR}/include/linux/soundcard.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); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (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_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; 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 ${OSS_DIR}/include/linux/soundcard.h presence" >&5
+echo $ECHO_N "checking ${OSS_DIR}/include/linux/soundcard.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 <${OSS_DIR}/include/linux/soundcard.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; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_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: ${OSS_DIR}/include/linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: ${OSS_DIR}/include/linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/linux/soundcard.h: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: ${OSS_DIR}/include/linux/soundcard.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/linux/soundcard.h: present but cannot be compiled" >&5
+echo "$as_me: WARNING: ${OSS_DIR}/include/linux/soundcard.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/linux/soundcard.h: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: ${OSS_DIR}/include/linux/soundcard.h: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/linux/soundcard.h: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: ${OSS_DIR}/include/linux/soundcard.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: ${OSS_DIR}/include/linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/linux/soundcard.h: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: ${OSS_DIR}/include/linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/linux/soundcard.h: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: ${OSS_DIR}/include/linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
+
+ ;;
+esac
+{ echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/linux/soundcard.h" >&5
+echo $ECHO_N "checking for ${OSS_DIR}/include/linux/soundcard.h... $ECHO_C" >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval echo '${'$as_ac_Header'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ OSS_HEADER_FOUND=1
+else
+ OSS_HEADER_FOUND=0
+fi
+
+
+ fi
+ else
+ if test "xlinux/soundcard.h" != "x" ; then
+ if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
{ echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
@@ -22644,19 +22775,308 @@ echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
fi
if test $ac_cv_header_linux_soundcard_h = yes; then
+ OSS_HEADER_FOUND=1
+else
+ OSS_HEADER_FOUND=0
+fi
- PBX_OSS=1
+
+ fi
+ fi
+ if test "x${OSS_HEADER_FOUND}" = "x0" ; then
+ OSS_LIB=""
+ OSS_INCLUDE=""
+ else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ OSS_LIB=""
+ fi
+ PBX_OSS=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_OSS 1
_ACEOF
+cat >>confdefs.h <<_ACEOF
+#define HAVE_OSS_VERSION
+_ACEOF
+
+ fi
+ fi
+fi
+
+
+if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
+ pbxlibdir=""
+ if test "x${OSS_DIR}" != "x"; then
+ if test -d ${OSS_DIR}/lib; then
+ pbxlibdir="-L${OSS_DIR}/lib"
+ else
+ pbxlibdir="-L${OSS_DIR}"
+ fi
+ fi
+ pbxfuncname=""
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_OSS_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $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="-lossaudio ${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); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (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_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; 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_OSS_FOUND=yes
+else
+ AST_OSS_FOUND=no
+fi
+
+ fi
+
+ if test "${AST_OSS_FOUND}" = "yes"; then
+ OSS_LIB="-lossaudio "
+ OSS_HEADER_FOUND="1"
+ if test "x${OSS_DIR}" != "x"; then
+ OSS_LIB="${pbxlibdir} ${OSS_LIB}"
+ OSS_INCLUDE="-I${OSS_DIR}/include"
+ if test "xsys/soundcard.h" != "x" ; then
+ as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/sys/soundcard.h" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/sys/soundcard.h" >&5
+echo $ECHO_N "checking for ${OSS_DIR}/include/sys/soundcard.h... $ECHO_C" >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+ac_res=`eval echo '${'$as_ac_Header'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ echo "$as_me:$LINENO: checking ${OSS_DIR}/include/sys/soundcard.h usability" >&5
+echo $ECHO_N "checking ${OSS_DIR}/include/sys/soundcard.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 <${OSS_DIR}/include/sys/soundcard.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); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (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_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; 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 ${OSS_DIR}/include/sys/soundcard.h presence" >&5
+echo $ECHO_N "checking ${OSS_DIR}/include/sys/soundcard.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 <${OSS_DIR}/include/sys/soundcard.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; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_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: ${OSS_DIR}/include/sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: ${OSS_DIR}/include/sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/sys/soundcard.h: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: ${OSS_DIR}/include/sys/soundcard.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/sys/soundcard.h: present but cannot be compiled" >&5
+echo "$as_me: WARNING: ${OSS_DIR}/include/sys/soundcard.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/sys/soundcard.h: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: ${OSS_DIR}/include/sys/soundcard.h: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/sys/soundcard.h: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: ${OSS_DIR}/include/sys/soundcard.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: ${OSS_DIR}/include/sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/sys/soundcard.h: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: ${OSS_DIR}/include/sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/sys/soundcard.h: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: ${OSS_DIR}/include/sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
+
+ ;;
+esac
+{ echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/sys/soundcard.h" >&5
+echo $ECHO_N "checking for ${OSS_DIR}/include/sys/soundcard.h... $ECHO_C" >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval echo '${'$as_ac_Header'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ OSS_HEADER_FOUND=1
+else
+ OSS_HEADER_FOUND=0
fi
-if test "$PBX_OSS" = "0"; then
- if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
+ fi
+ else
+ if test "xsys/soundcard.h" != "x" ; then
+ if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
{ echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
@@ -22806,21 +23226,39 @@ echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
fi
if test $ac_cv_header_sys_soundcard_h = yes; then
+ OSS_HEADER_FOUND=1
+else
+ OSS_HEADER_FOUND=0
+fi
- PBX_OSS=1
+
+ fi
+ fi
+ if test "x${OSS_HEADER_FOUND}" = "x0" ; then
+ OSS_LIB=""
+ OSS_INCLUDE=""
+ else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ OSS_LIB=""
+ fi
+ PBX_OSS=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_OSS 1
_ACEOF
-fi
-
+cat >>confdefs.h <<_ACEOF
+#define HAVE_OSS_VERSION
+_ACEOF
+ fi
+ fi
fi
-if test "$PBX_OSS" = "0"; then
-if test "${USE_OSS}" != "no"; then
+
+if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
pbxlibdir=""
if test "x${OSS_DIR}" != "x"; then
if test -d ${OSS_DIR}/lib; then
@@ -22829,9 +23267,14 @@ if test "${USE_OSS}" != "no"; then
pbxlibdir="-L${OSS_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
-echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
-if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
+ pbxfuncname="oss_ioctl_mixer"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_OSS_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $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
@@ -22849,11 +23292,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char oss_ioctl_mixer ();
+char ${pbxfuncname} ();
int
main ()
{
-return oss_ioctl_mixer ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -22892,26 +23335,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_ossaudio_oss_ioctl_mixer=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
-echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
-if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
+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_OSS_FOUND=yes
else
AST_OSS_FOUND=no
fi
+ fi
if test "${AST_OSS_FOUND}" = "yes"; then
OSS_LIB="-lossaudio "
@@ -23241,44 +23686,28 @@ fi
fi
fi
if test "x${OSS_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${OSS_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the ossaudio development package installed." >&5
-echo "$as_me: *** It appears that you do not have the ossaudio development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${OSS_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${OSS_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
- exit 1
- fi
OSS_LIB=""
OSS_INCLUDE=""
- PBX_OSS=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ OSS_LIB=""
+ fi
PBX_OSS=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_OSS 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_OSS_VERSION
+_ACEOF
+
fi
- elif test ! -z "${OSS_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${OSS_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OSS_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${OSS_OPTION}" >&6;}
- exit 1
fi
fi
-fi
PG_CONFIG=No
if test "${USE_PGSQL}" != "no"; then
@@ -23597,33 +24026,11 @@ fi
PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz -lcrypt"
PGSQL_INCLUDE="-I${PGSQL_includedir}"
PBX_PGSQL=1
- elif test ! -z "${PGSQL_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
-echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** including --without-postgres" >&5
-echo "$as_me: *** including --without-postgres" >&6;}
- exit 1
fi
-elif test ! -z "${PGSQL_MANDATORY}";
-then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
-echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** including --without-postgres" >&5
-echo "$as_me: *** including --without-postgres" >&6;}
- exit 1
fi
-if test "${USE_POPT}" != "no"; then
+if test "x${PBX_POPT}" != "x1" -a "${USE_POPT}" != "no"; then
pbxlibdir=""
if test "x${POPT_DIR}" != "x"; then
if test -d ${POPT_DIR}/lib; then
@@ -23632,9 +24039,14 @@ if test "${USE_POPT}" != "no"; then
pbxlibdir="-L${POPT_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
-echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
-if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
+ pbxfuncname="poptStrerror"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_POPT_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_popt_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpopt" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lpopt... $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
@@ -23652,11 +24064,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char poptStrerror ();
+char ${pbxfuncname} ();
int
main ()
{
-return poptStrerror ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -23695,26 +24107,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_popt_poptStrerror=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_popt_poptStrerror=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
-echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
-if test $ac_cv_lib_popt_poptStrerror = yes; then
+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_POPT_FOUND=yes
else
AST_POPT_FOUND=no
fi
+ fi
if test "${AST_POPT_FOUND}" = "yes"; then
POPT_LIB="-lpopt "
@@ -24044,46 +24458,31 @@ fi
fi
fi
if test "x${POPT_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${POPT_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the popt development package installed." >&5
-echo "$as_me: *** It appears that you do not have the popt development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${POPT_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${POPT_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
- exit 1
- fi
POPT_LIB=""
POPT_INCLUDE=""
- PBX_POPT=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ POPT_LIB=""
+ fi
PBX_POPT=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_POPT 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_POPT_VERSION
+_ACEOF
+
fi
- elif test ! -z "${POPT_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${POPT_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${POPT_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${POPT_OPTION}" >&6;}
- exit 1
fi
fi
-if test "${USE_PRI}" != "no"; then
+if test "x${PBX_PRI}" != "x1" -a "${USE_PRI}" != "no"; then
pbxlibdir=""
if test "x${PRI_DIR}" != "x"; then
if test -d ${PRI_DIR}/lib; then
@@ -24092,9 +24491,14 @@ if test "${USE_PRI}" != "no"; then
pbxlibdir="-L${PRI_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for pri_call in -lpri" >&5
-echo $ECHO_N "checking for pri_call in -lpri... $ECHO_C" >&6; }
-if test "${ac_cv_lib_pri_pri_call+set}" = set; then
+ pbxfuncname="pri_call"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_PRI_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lpri... $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
@@ -24112,11 +24516,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char pri_call ();
+char ${pbxfuncname} ();
int
main ()
{
-return pri_call ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -24155,26 +24559,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_pri_pri_call=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_pri_pri_call=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_call" >&5
-echo "${ECHO_T}$ac_cv_lib_pri_pri_call" >&6; }
-if test $ac_cv_lib_pri_pri_call = yes; then
+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_PRI_FOUND=yes
else
AST_PRI_FOUND=no
fi
+ fi
if test "${AST_PRI_FOUND}" = "yes"; then
PRI_LIB="-lpri "
@@ -24504,46 +24910,31 @@ fi
fi
fi
if test "x${PRI_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${PRI_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the pri development package installed." >&5
-echo "$as_me: *** It appears that you do not have the pri development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${PRI_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${PRI_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
- exit 1
- fi
PRI_LIB=""
PRI_INCLUDE=""
- PBX_PRI=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ PRI_LIB=""
+ fi
PBX_PRI=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_PRI 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_PRI_VERSION
+_ACEOF
+
fi
- elif test ! -z "${PRI_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${PRI_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${PRI_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${PRI_OPTION}" >&6;}
- exit 1
fi
fi
-if test "${USE_SS7}" != "no"; then
+if test "x${PBX_SS7}" != "x1" -a "${USE_SS7}" != "no"; then
pbxlibdir=""
if test "x${SS7_DIR}" != "x"; then
if test -d ${SS7_DIR}/lib; then
@@ -24552,9 +24943,14 @@ if test "${USE_SS7}" != "no"; then
pbxlibdir="-L${SS7_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for ss7_new in -lss7" >&5
-echo $ECHO_N "checking for ss7_new in -lss7... $ECHO_C" >&6; }
-if test "${ac_cv_lib_ss7_ss7_new+set}" = set; then
+ pbxfuncname="ss7_new"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_SS7_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_ss7_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lss7" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lss7... $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
@@ -24572,11 +24968,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char ss7_new ();
+char ${pbxfuncname} ();
int
main ()
{
-return ss7_new ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -24615,26 +25011,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_ss7_ss7_new=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_ss7_ss7_new=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_ss7_ss7_new" >&5
-echo "${ECHO_T}$ac_cv_lib_ss7_ss7_new" >&6; }
-if test $ac_cv_lib_ss7_ss7_new = yes; then
+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_SS7_FOUND=yes
else
AST_SS7_FOUND=no
fi
+ fi
if test "${AST_SS7_FOUND}" = "yes"; then
SS7_LIB="-lss7 "
@@ -24964,40 +25362,25 @@ fi
fi
fi
if test "x${SS7_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${SS7_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the ss7 development package installed." >&5
-echo "$as_me: *** It appears that you do not have the ss7 development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${SS7_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${SS7_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SS7_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${SS7_OPTION}" >&6;}
- exit 1
- fi
SS7_LIB=""
SS7_INCLUDE=""
- PBX_SS7=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ SS7_LIB=""
+ fi
PBX_SS7=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_SS7 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_SS7_VERSION
+_ACEOF
+
fi
- elif test ! -z "${SS7_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${SS7_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${SS7_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SS7_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${SS7_OPTION}" >&6;}
- exit 1
fi
fi
@@ -25547,18 +25930,6 @@ _ACEOF
fi
fi
-if test "${USE_PWLIB}" != "no" -a "x${ac_cv_lib_PWLIB}" != "xyes" -a ! -z "${PWLIB_MANDATORY}"; then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
-echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
-echo "$as_me: *** including --without-pwlib" >&6;}
- exit 1
-fi
-
if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
if test ! -z "${OPENH323_DIR}"; then
OPENH323DIR="${OPENH323_DIR}"
@@ -25919,18 +26290,6 @@ _ACEOF
fi
fi
-if test "${USE_OPENH323}" != "no" -a "x${ac_cv_lib_OPENH323}" != "xyes" -a ! -z "${OPENH323_MANDATORY}"; then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The PWLIB installation on this system appears to be broken." >&5
-echo "$as_me: *** The PWLIB installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** including --without-pwlib" >&5
-echo "$as_me: *** including --without-pwlib" >&6;}
- exit 1
-fi
-
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
@@ -26210,17 +26569,6 @@ else
QTMOC="$ac_cv_path_QTMOC"
fi
- elif test ! -z "${QT_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The Qt installation on this system appears to be broken." >&5
-echo "$as_me: *** The Qt installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** including --without-qt." >&5
-echo "$as_me: *** including --without-qt." >&6;}
- exit 1
fi
fi
@@ -26232,7 +26580,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
-if test "${USE_RADIUS}" != "no"; then
+if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
pbxlibdir=""
if test "x${RADIUS_DIR}" != "x"; then
if test -d ${RADIUS_DIR}/lib; then
@@ -26241,9 +26589,14 @@ if test "${USE_RADIUS}" != "no"; then
pbxlibdir="-L${RADIUS_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
-echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
-if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
+ pbxfuncname="rc_read_config"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_RADIUS_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_radiusclient-ng_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lradiusclient-ng" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lradiusclient-ng... $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
@@ -26261,11 +26614,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char rc_read_config ();
+char ${pbxfuncname} ();
int
main ()
{
-return rc_read_config ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -26304,26 +26657,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_radiusclient_ng_rc_read_config=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_radiusclient_ng_rc_read_config=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
-echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
-if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
+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_RADIUS_FOUND=yes
else
AST_RADIUS_FOUND=no
fi
+ fi
if test "${AST_RADIUS_FOUND}" = "yes"; then
RADIUS_LIB="-lradiusclient-ng "
@@ -26653,46 +27008,31 @@ fi
fi
fi
if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${RADIUS_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the radiusclient-ng development package installed." >&5
-echo "$as_me: *** It appears that you do not have the radiusclient-ng development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${RADIUS_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${RADIUS_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
- exit 1
- fi
RADIUS_LIB=""
RADIUS_INCLUDE=""
- PBX_RADIUS=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ RADIUS_LIB=""
+ fi
PBX_RADIUS=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_RADIUS 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_RADIUS_VERSION
+_ACEOF
+
fi
- elif test ! -z "${RADIUS_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${RADIUS_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${RADIUS_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${RADIUS_OPTION}" >&6;}
- exit 1
fi
fi
-if test "${USE_SPEEX}" != "no"; then
+if test "x${PBX_SPEEX}" != "x1" -a "${USE_SPEEX}" != "no"; then
pbxlibdir=""
if test "x${SPEEX_DIR}" != "x"; then
if test -d ${SPEEX_DIR}/lib; then
@@ -26701,9 +27041,14 @@ if test "${USE_SPEEX}" != "no"; then
pbxlibdir="-L${SPEEX_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
-echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
-if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
+ pbxfuncname="speex_encode"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_SPEEX_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lspeex... $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
@@ -26721,11 +27066,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char speex_encode ();
+char ${pbxfuncname} ();
int
main ()
{
-return speex_encode ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -26764,26 +27109,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_speex_speex_encode=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_speex_speex_encode=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
-echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
-if test $ac_cv_lib_speex_speex_encode = yes; then
+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_SPEEX_FOUND=yes
else
AST_SPEEX_FOUND=no
fi
+ fi
if test "${AST_SPEEX_FOUND}" = "yes"; then
SPEEX_LIB="-lspeex -lm"
@@ -27113,46 +27460,31 @@ fi
fi
fi
if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${SPEEX_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the speex development package installed." >&5
-echo "$as_me: *** It appears that you do not have the speex development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${SPEEX_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${SPEEX_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
- exit 1
- fi
SPEEX_LIB=""
SPEEX_INCLUDE=""
- PBX_SPEEX=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ SPEEX_LIB=""
+ fi
PBX_SPEEX=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_SPEEX 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_SPEEX_VERSION
+_ACEOF
+
fi
- elif test ! -z "${SPEEX_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${SPEEX_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SPEEX_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${SPEEX_OPTION}" >&6;}
- exit 1
fi
fi
-if test "${USE_SQLITE}" != "no"; then
+if test "x${PBX_SQLITE}" != "x1" -a "${USE_SQLITE}" != "no"; then
pbxlibdir=""
if test "x${SQLITE_DIR}" != "x"; then
if test -d ${SQLITE_DIR}/lib; then
@@ -27161,9 +27493,14 @@ if test "${USE_SQLITE}" != "no"; then
pbxlibdir="-L${SQLITE_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
-echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
-if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
+ pbxfuncname="sqlite_exec"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_SQLITE_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_sqlite_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lsqlite... $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
@@ -27181,11 +27518,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char sqlite_exec ();
+char ${pbxfuncname} ();
int
main ()
{
-return sqlite_exec ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -27224,26 +27561,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_sqlite_sqlite_exec=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_sqlite_sqlite_exec=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
-echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
-if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
+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_SQLITE_FOUND=yes
else
AST_SQLITE_FOUND=no
fi
+ fi
if test "${AST_SQLITE_FOUND}" = "yes"; then
SQLITE_LIB="-lsqlite "
@@ -27573,46 +27912,31 @@ fi
fi
fi
if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${SQLITE_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the sqlite development package installed." >&5
-echo "$as_me: *** It appears that you do not have the sqlite development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${SQLITE_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${SQLITE_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
- exit 1
- fi
SQLITE_LIB=""
SQLITE_INCLUDE=""
- PBX_SQLITE=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ SQLITE_LIB=""
+ fi
PBX_SQLITE=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_SQLITE 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_SQLITE_VERSION
+_ACEOF
+
fi
- elif test ! -z "${SQLITE_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${SQLITE_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${SQLITE_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${SQLITE_OPTION}" >&6;}
- exit 1
fi
fi
-if test "${USE_OPENSSL}" != "no"; then
+if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
pbxlibdir=""
if test "x${OPENSSL_DIR}" != "x"; then
if test -d ${OPENSSL_DIR}/lib; then
@@ -27621,9 +27945,14 @@ if test "${USE_OPENSSL}" != "no"; then
pbxlibdir="-L${OPENSSL_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
-echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
-if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
+ pbxfuncname="ssl2_connect"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_OPENSSL_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lssl" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lssl... $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
@@ -27641,11 +27970,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char ssl2_connect ();
+char ${pbxfuncname} ();
int
main ()
{
-return ssl2_connect ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -27684,26 +28013,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_ssl_ssl2_connect=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_ssl_ssl2_connect=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
-echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
-if test $ac_cv_lib_ssl_ssl2_connect = yes; then
+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_OPENSSL_FOUND=yes
else
AST_OPENSSL_FOUND=no
fi
+ fi
if test "${AST_OPENSSL_FOUND}" = "yes"; then
OPENSSL_LIB="-lssl -lcrypto"
@@ -28033,46 +28364,31 @@ fi
fi
fi
if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${OPENSSL_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the ssl development package installed." >&5
-echo "$as_me: *** It appears that you do not have the ssl development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${OPENSSL_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${OPENSSL_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
- exit 1
- fi
OPENSSL_LIB=""
OPENSSL_INCLUDE=""
- PBX_OPENSSL=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ OPENSSL_LIB=""
+ fi
PBX_OPENSSL=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_OPENSSL 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_OPENSSL_VERSION
+_ACEOF
+
fi
- elif test ! -z "${OPENSSL_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${OPENSSL_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${OPENSSL_OPTION}" >&6;}
- exit 1
fi
fi
-if test "${USE_FREETDS}" != "no"; then
+if test "x${PBX_FREETDS}" != "x1" -a "${USE_FREETDS}" != "no"; then
pbxlibdir=""
if test "x${FREETDS_DIR}" != "x"; then
if test -d ${FREETDS_DIR}/lib; then
@@ -28081,9 +28397,14 @@ if test "${USE_FREETDS}" != "no"; then
pbxlibdir="-L${FREETDS_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
-echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
-if test "${ac_cv_lib_tds_tds_version+set}" = set; then
+ pbxfuncname="tds_version"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_FREETDS_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_tds_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltds" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -ltds... $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
@@ -28101,11 +28422,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char tds_version ();
+char ${pbxfuncname} ();
int
main ()
{
-return tds_version ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -28144,26 +28465,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_tds_tds_version=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_tds_tds_version=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
-echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
-if test $ac_cv_lib_tds_tds_version = yes; then
+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_FREETDS_FOUND=yes
else
AST_FREETDS_FOUND=no
fi
+ fi
if test "${AST_FREETDS_FOUND}" = "yes"; then
FREETDS_LIB="-ltds "
@@ -28493,40 +28816,25 @@ fi
fi
fi
if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${FREETDS_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the tds development package installed." >&5
-echo "$as_me: *** It appears that you do not have the tds development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${FREETDS_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${FREETDS_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
- exit 1
- fi
FREETDS_LIB=""
FREETDS_INCLUDE=""
- PBX_FREETDS=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ FREETDS_LIB=""
+ fi
PBX_FREETDS=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_FREETDS 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_FREETDS_VERSION
+_ACEOF
+
fi
- elif test ! -z "${FREETDS_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${FREETDS_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${FREETDS_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${FREETDS_OPTION}" >&6;}
- exit 1
fi
fi
@@ -28549,7 +28857,7 @@ then
fi
-if test "${USE_TERMCAP}" != "no"; then
+if test "x${PBX_TERMCAP}" != "x1" -a "${USE_TERMCAP}" != "no"; then
pbxlibdir=""
if test "x${TERMCAP_DIR}" != "x"; then
if test -d ${TERMCAP_DIR}/lib; then
@@ -28558,9 +28866,14 @@ if test "${USE_TERMCAP}" != "no"; then
pbxlibdir="-L${TERMCAP_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
-echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
-if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
+ pbxfuncname="tgetent"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_TERMCAP_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_termcap_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltermcap" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -ltermcap... $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
@@ -28578,11 +28891,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char tgetent ();
+char ${pbxfuncname} ();
int
main ()
{
-return tgetent ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -28621,26 +28934,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_termcap_tgetent=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_termcap_tgetent=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
-echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
-if test $ac_cv_lib_termcap_tgetent = yes; then
+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_TERMCAP_FOUND=yes
else
AST_TERMCAP_FOUND=no
fi
+ fi
if test "${AST_TERMCAP_FOUND}" = "yes"; then
TERMCAP_LIB="-ltermcap "
@@ -28970,46 +29285,31 @@ fi
fi
fi
if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${TERMCAP_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the termcap development package installed." >&5
-echo "$as_me: *** It appears that you do not have the termcap development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${TERMCAP_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${TERMCAP_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
- exit 1
- fi
TERMCAP_LIB=""
TERMCAP_INCLUDE=""
- PBX_TERMCAP=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ TERMCAP_LIB=""
+ fi
PBX_TERMCAP=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_TERMCAP 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_TERMCAP_VERSION
+_ACEOF
+
fi
- elif test ! -z "${TERMCAP_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${TERMCAP_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${TERMCAP_OPTION}" >&6;}
- exit 1
fi
fi
-if test "${USE_TINFO}" != "no"; then
+if test "x${PBX_TINFO}" != "x1" -a "${USE_TINFO}" != "no"; then
pbxlibdir=""
if test "x${TINFO_DIR}" != "x"; then
if test -d ${TINFO_DIR}/lib; then
@@ -29018,9 +29318,14 @@ if test "${USE_TINFO}" != "no"; then
pbxlibdir="-L${TINFO_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
-echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
-if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
+ pbxfuncname="tgetent"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_TINFO_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_tinfo_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltinfo" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -ltinfo... $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
@@ -29038,11 +29343,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char tgetent ();
+char ${pbxfuncname} ();
int
main ()
{
-return tgetent ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -29081,26 +29386,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_tinfo_tgetent=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_tinfo_tgetent=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
-echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
-if test $ac_cv_lib_tinfo_tgetent = yes; then
+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_TINFO_FOUND=yes
else
AST_TINFO_FOUND=no
fi
+ fi
if test "${AST_TINFO_FOUND}" = "yes"; then
TINFO_LIB="-ltinfo "
@@ -29430,40 +29737,25 @@ fi
fi
fi
if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${TINFO_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the tinfo development package installed." >&5
-echo "$as_me: *** It appears that you do not have the tinfo development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${TINFO_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${TINFO_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
- exit 1
- fi
TINFO_LIB=""
TINFO_INCLUDE=""
- PBX_TINFO=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ TINFO_LIB=""
+ fi
PBX_TINFO=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_TINFO 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_TINFO_VERSION
+_ACEOF
+
fi
- elif test ! -z "${TINFO_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${TINFO_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TINFO_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${TINFO_OPTION}" >&6;}
- exit 1
fi
fi
@@ -29472,8 +29764,9 @@ if test "${host_os}" != "linux-gnu" ; then
tonezone_extra="-lm"
fi
+# new tonezone, version 1.4.0
-if test "${USE_TONEZONE}" != "no"; then
+if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
pbxlibdir=""
if test "x${TONEZONE_DIR}" != "x"; then
if test -d ${TONEZONE_DIR}/lib; then
@@ -29482,9 +29775,14 @@ if test "${USE_TONEZONE}" != "no"; then
pbxlibdir="-L${TONEZONE_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
-echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
-if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
+ 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
@@ -29502,11 +29800,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char tone_zone_find ();
+char ${pbxfuncname} ();
int
main ()
{
-return tone_zone_find ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -29545,26 +29843,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_tonezone_tone_zone_find=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_tonezone_tone_zone_find=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
-echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
-if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
+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
if test "${AST_TONEZONE_FOUND}" = "yes"; then
TONEZONE_LIB="-ltonezone ${tonezone_extra}"
@@ -29894,46 +30194,483 @@ fi
fi
fi
if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${TONEZONE_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the tonezone development package installed." >&5
-echo "$as_me: *** It appears that you do not have the tonezone development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${TONEZONE_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${TONEZONE_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
- exit 1
- fi
TONEZONE_LIB=""
TONEZONE_INCLUDE=""
- PBX_TONEZONE=0
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
- elif test ! -z "${TONEZONE_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${TONEZONE_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${TONEZONE_OPTION}" >&6;}
- exit 1
fi
fi
+# other case, old tonezone (0.80)
+
+if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
+ pbxlibdir=""
+ 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); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (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_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; 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
+
+ if test "${AST_TONEZONE_FOUND}" = "yes"; then
+ TONEZONE_LIB="-ltonezone ${tonezone_extra}"
+ TONEZONE_HEADER_FOUND="1"
+ if test "x${TONEZONE_DIR}" != "x"; then
+ TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
+ TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
+ if test "xzaptel/zaptel.h" != "x" ; then
+ as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/zaptel.h" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/zaptel.h" >&5
+echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/zaptel.h... $ECHO_C" >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+ac_res=`eval echo '${'$as_ac_Header'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/zaptel.h usability" >&5
+echo $ECHO_N "checking ${TONEZONE_DIR}/include/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 <${TONEZONE_DIR}/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); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (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_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; 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 ${TONEZONE_DIR}/include/zaptel/zaptel.h presence" >&5
+echo $ECHO_N "checking ${TONEZONE_DIR}/include/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 <${TONEZONE_DIR}/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; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_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: ${TONEZONE_DIR}/include/zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/zaptel.h: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/zaptel.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/zaptel.h: present but cannot be compiled" >&5
+echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/zaptel.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/zaptel.h: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/zaptel.h: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/zaptel.h: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/zaptel.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/zaptel.h: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/zaptel.h: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/zaptel.h: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/zaptel.h: in the future, the compiler will take precedence" >&2;}
+
+ ;;
+esac
+{ echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/zaptel.h" >&5
+echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/zaptel.h... $ECHO_C" >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval echo '${'$as_ac_Header'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ TONEZONE_HEADER_FOUND=1
+else
+ TONEZONE_HEADER_FOUND=0
+fi
+
+
+ fi
+ else
+ if test "xzaptel/zaptel.h" != "x" ; then
+ 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); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (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_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; 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; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_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;}
+
+ ;;
+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
+ TONEZONE_HEADER_FOUND=1
+else
+ TONEZONE_HEADER_FOUND=0
+fi
+
+
+ fi
+ 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
-if test "${USE_VORBIS}" != "no"; then
+cat >>confdefs.h <<_ACEOF
+#define HAVE_TONEZONE_VERSION 80
+_ACEOF
+
+ fi
+ fi
+fi
+
+
+
+if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
pbxlibdir=""
if test "x${VORBIS_DIR}" != "x"; then
if test -d ${VORBIS_DIR}/lib; then
@@ -29942,9 +30679,14 @@ if test "${USE_VORBIS}" != "no"; then
pbxlibdir="-L${VORBIS_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
-echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
-if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
+ pbxfuncname="vorbis_info_init"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_VORBIS_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lvorbis" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lvorbis... $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
@@ -29962,11 +30704,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char vorbis_info_init ();
+char ${pbxfuncname} ();
int
main ()
{
-return vorbis_info_init ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -30005,26 +30747,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_vorbis_vorbis_info_init=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_vorbis_vorbis_info_init=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
-echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
-if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
+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_VORBIS_FOUND=yes
else
AST_VORBIS_FOUND=no
fi
+ fi
if test "${AST_VORBIS_FOUND}" = "yes"; then
VORBIS_LIB="-lvorbis -lm -lvorbisenc"
@@ -30354,40 +31098,25 @@ fi
fi
fi
if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${VORBIS_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the vorbis development package installed." >&5
-echo "$as_me: *** It appears that you do not have the vorbis development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${VORBIS_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${VORBIS_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
- exit 1
- fi
VORBIS_LIB=""
VORBIS_INCLUDE=""
- PBX_VORBIS=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ VORBIS_LIB=""
+ fi
PBX_VORBIS=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_VORBIS 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_VORBIS_VERSION
+_ACEOF
+
fi
- elif test ! -z "${VORBIS_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${VORBIS_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${VORBIS_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${VORBIS_OPTION}" >&6;}
- exit 1
fi
fi
@@ -30496,16 +31225,6 @@ cat >>confdefs.h <<\_ACEOF
#define HAVE_VPB 1
_ACEOF
- elif test ! -z "${VPB_MANDATORY}"; then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&5
-echo "$as_me: *** The VoiceTronix (vpb) installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** including --without-vpb." >&5
-echo "$as_me: *** including --without-vpb." >&6;}
- exit 1
fi
fi
@@ -30517,7 +31236,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
-if test "${USE_ZLIB}" != "no"; then
+if test "x${PBX_ZLIB}" != "x1" -a "${USE_ZLIB}" != "no"; then
pbxlibdir=""
if test "x${ZLIB_DIR}" != "x"; then
if test -d ${ZLIB_DIR}/lib; then
@@ -30526,9 +31245,14 @@ if test "${USE_ZLIB}" != "no"; then
pbxlibdir="-L${ZLIB_DIR}"
fi
fi
- { echo "$as_me:$LINENO: checking for compress in -lz" >&5
-echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
-if test "${ac_cv_lib_z_compress+set}" = set; then
+ pbxfuncname="compress"
+ if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
+ AST_ZLIB_FOUND=yes
+ else
+ as_ac_Lib=`echo "ac_cv_lib_z_${pbxfuncname}" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lz" >&5
+echo $ECHO_N "checking for ${pbxfuncname} in -lz... $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
@@ -30546,11 +31270,11 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef __cplusplus
extern "C"
#endif
-char compress ();
+char ${pbxfuncname} ();
int
main ()
{
-return compress ();
+return ${pbxfuncname} ();
;
return 0;
}
@@ -30589,26 +31313,28 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_z_compress=yes
+ eval "$as_ac_Lib=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_z_compress=no
+ 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
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
-echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
-if test $ac_cv_lib_z_compress = yes; then
+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_ZLIB_FOUND=yes
else
AST_ZLIB_FOUND=no
fi
+ fi
if test "${AST_ZLIB_FOUND}" = "yes"; then
ZLIB_LIB="-lz "
@@ -30938,54 +31664,42 @@ fi
fi
fi
if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
- if test ! -z "${ZLIB_MANDATORY}" ;
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** It appears that you do not have the z development package installed." >&5
-echo "$as_me: *** It appears that you do not have the z development package installed." >&6;}
- { echo "$as_me:$LINENO: *** Please install it to include ${ZLIB_DESCRIP} support" >&5
-echo "$as_me: *** Please install it to include ${ZLIB_DESCRIP} support" >&or re-run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
- exit 1
- fi
ZLIB_LIB=""
ZLIB_INCLUDE=""
- PBX_ZLIB=0
else
+ if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
+ ZLIB_LIB=""
+ fi
PBX_ZLIB=1
+ # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
cat >>confdefs.h <<_ACEOF
#define HAVE_ZLIB 1
_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ZLIB_VERSION
+_ACEOF
+
fi
- elif test ! -z "${ZLIB_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&5
-echo "$as_me: *** The ${ZLIB_DESCRIP} installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** without explicitly specifying --with-${ZLIB_OPTION}" >&5
-echo "$as_me: *** without explicitly specifying --with-${ZLIB_OPTION}" >&6;}
- exit 1
fi
fi
-if test "${USE_ZAPTEL}" != "no"; then
- { echo "$as_me:$LINENO: checking for ZT_TONE_DTMF_BASE in zaptel.h" >&5
-echo $ECHO_N "checking for ZT_TONE_DTMF_BASE in zaptel.h... $ECHO_C" >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${ZAPTEL_DIR}" != "x"; then
- CPPFLAGS="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
- fi
- cat >conftest.$ac_ext <<_ACEOF
+# check for zaptel 1.4.0
- /* confdefs.h. */
+ if test "x${PBX_ZAPTEL}" != "x1" -a "${USE_ZAPTEL}" != "no"; 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
@@ -30998,7 +31712,6 @@ int foo = ZT_TONE_DTMF_BASE;
;
return 0;
}
-
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
@@ -31034,47 +31747,486 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- { echo "$as_me:$LINENO: result: yes" >&5
+ { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
- ac_cv_zaptel_h="yes"
+ 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 "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
- ac_cv_zaptel_h="no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CPPFLAGS="${saved_cppflags}"
+ fi
+
+# or, try old zaptel (0.80 or so)
+
+if test "x${PBX_ZAPTEL}" != "x1" -a "${USE_ZAPTEL}" != "no"; then
+ pbxlibdir=""
+ 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); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (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_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; 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
+
+ if test "${AST_ZAPTEL_FOUND}" = "yes"; then
+ ZAPTEL_LIB="-lzaptel "
+ ZAPTEL_HEADER_FOUND="1"
+ if test "x${ZAPTEL_DIR}" != "x"; then
+ ZAPTEL_LIB="${pbxlibdir} ${ZAPTEL_LIB}"
+ ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
+ if test "xzaptel.h" != "x" ; then
+ as_ac_Header=`echo "ac_cv_header_${ZAPTEL_DIR}/include/zaptel.h" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { echo "$as_me:$LINENO: checking for ${ZAPTEL_DIR}/include/zaptel.h" >&5
+echo $ECHO_N "checking for ${ZAPTEL_DIR}/include/zaptel.h... $ECHO_C" >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+ac_res=`eval echo '${'$as_ac_Header'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ echo "$as_me:$LINENO: checking ${ZAPTEL_DIR}/include/zaptel.h usability" >&5
+echo $ECHO_N "checking ${ZAPTEL_DIR}/include/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_DIR}/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); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (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_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; 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
- CPPFLAGS="${saved_cppflags}"
- if test "${ac_cv_zaptel_h}" = "yes"; then
- if test "${ZAPTEL_DIR}" != ""; then
- ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
- fi
- PBX_ZAPTEL=1
+{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6; }
-cat >>confdefs.h <<\_ACEOF
+# Is the header present?
+{ echo "$as_me:$LINENO: checking ${ZAPTEL_DIR}/include/zaptel.h presence" >&5
+echo $ECHO_N "checking ${ZAPTEL_DIR}/include/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_DIR}/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; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_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_DIR}/include/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: present but cannot be compiled" >&5
+echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: ${ZAPTEL_DIR}/include/zaptel.h: in the future, the compiler will take precedence" >&2;}
+
+ ;;
+esac
+{ echo "$as_me:$LINENO: checking for ${ZAPTEL_DIR}/include/zaptel.h" >&5
+echo $ECHO_N "checking for ${ZAPTEL_DIR}/include/zaptel.h... $ECHO_C" >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval echo '${'$as_ac_Header'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ ZAPTEL_HEADER_FOUND=1
+else
+ ZAPTEL_HEADER_FOUND=0
+fi
+
+
+ fi
+ else
+ if test "xzaptel.h" != "x" ; then
+ 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); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (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_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; 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; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_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;}
+
+ ;;
+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
+
+
+ fi
+ 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
- elif test ! -z "${ZAPTEL_MANDATORY}";
- then
- { echo "$as_me:$LINENO: ***" >&5
-echo "$as_me: ***" >&6;}
- { echo "$as_me:$LINENO: *** The Zaptel installation on this system appears to be broken." >&5
-echo "$as_me: *** The Zaptel installation on this system appears to be broken." >&6;}
- { echo "$as_me:$LINENO: *** Either correct the installation" >&5
-echo "$as_me: *** Either correct the installation" >&or run configure;}
- { echo "$as_me:$LINENO: *** including --without-zaptel." >&5
-echo "$as_me: *** including --without-zaptel." >&6;}
- exit 1
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ZAPTEL_VERSION 80
+_ACEOF
+
+ fi
fi
fi
+
EDITLINE_LIB=""
if test "x$TERMCAP_LIB" != "x" ; then
EDITLINE_LIB="$TERMCAP_LIB"
@@ -31568,6 +32720,33 @@ fi
ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
+
+ { echo "$as_me:$LINENO: checking for mandatory modules: ${ac_mandatory_list}" >&5
+echo $ECHO_N "checking for mandatory modules: ${ac_mandatory_list}... $ECHO_C" >&6; }
+ err=0;
+ for i in ${ac_mandatory_list}; do
+ eval "a=\${PBX_$i}"
+ if test "x${a}" = "x1" ; then continue; fi
+ if test ${err} = "0" ; then { echo "$as_me:$LINENO: result: fail" >&5
+echo "${ECHO_T}fail" >&6; } ; fi
+ { echo "$as_me:$LINENO: result: " >&5
+echo "${ECHO_T}" >&6; }
+ eval "a=\${${i}_OPTION}"
+ { echo "$as_me:$LINENO: ***" >&5
+echo "$as_me: ***" >&6;}
+ { echo "$as_me:$LINENO: *** The $i installation appears to be missing or broken." >&5
+echo "$as_me: *** The $i installation appears to be missing or broken." >&6;}
+ { echo "$as_me:$LINENO: *** Either correct the installation" >&5
+echo "$as_me: *** Either correct the installation" >&or run configure;}
+ { echo "$as_me:$LINENO: *** including --without-${a}." >&5
+echo "$as_me: *** including --without-${a}." >&6;}
+ err=1
+ done
+ if test $err = 1 ; then exit 1; fi
+ { echo "$as_me:$LINENO: result: ok" >&5
+echo "${ECHO_T}ok" >&6; }
+
+
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure