tomh / rpms / asterisk

Forked from rpms/asterisk 6 years ago
Clone
a6e2eac
From b308f69dd658b51c5535251b7296d5680d421e52 Mon Sep 17 00:00:00 2001
e712aab
From: Jeffrey C. Ollie <jeff@ocjtech.us>
a6e2eac
Date: Tue, 25 Mar 2008 00:51:35 -0500
e712aab
Subject: [PATCH] Update autoconf.
e712aab
e712aab
---
a6e2eac
 configure                        |  983 +++++++++++++++++++++++++++++++-------
a6e2eac
 include/asterisk/autoconfig.h.in |   20 +-
a6e2eac
 2 files changed, 820 insertions(+), 183 deletions(-)
e712aab
e712aab
diff --git a/configure b/configure
a6e2eac
index 4199e72..011c661 100755
e712aab
--- a/configure
e712aab
+++ b/configure
e712aab
@@ -1,5 +1,5 @@
e712aab
 #! /bin/sh
e12c6ae
-# From configure.ac Revision: 109282 .
e712aab
+# From configure.ac Revision.
e712aab
 # Guess values for system-dependent variables and create Makefiles.
e712aab
 # Generated by GNU Autoconf 2.61 for asterisk 1.6.
e712aab
 #
e12c6ae
@@ -728,14 +728,18 @@ BKTR_LIB
e712aab
 BKTR_INCLUDE
e712aab
 BKTR_DIR
e712aab
 PBX_BKTR
e712aab
-CAP_LIB
e712aab
-CAP_INCLUDE
e712aab
-CAP_DIR
e712aab
-PBX_CAP
e712aab
+BLUETOOTH_LIB
e712aab
+BLUETOOTH_INCLUDE
e712aab
+BLUETOOTH_DIR
e712aab
+PBX_BLUETOOTH
e712aab
 CURL_LIB
e712aab
 CURL_INCLUDE
e712aab
 CURL_DIR
e712aab
 PBX_CURL
e712aab
+CAP_LIB
e712aab
+CAP_INCLUDE
e712aab
+CAP_DIR
e712aab
+PBX_CAP
e712aab
 CURSES_LIB
e712aab
 CURSES_INCLUDE
e712aab
 CURSES_DIR
a6e2eac
@@ -788,6 +792,10 @@ LDAP_LIB
a6e2eac
 LDAP_INCLUDE
a6e2eac
 LDAP_DIR
a6e2eac
 PBX_LDAP
a6e2eac
+LIBEDIT_LIB
a6e2eac
+LIBEDIT_INCLUDE
a6e2eac
+LIBEDIT_DIR
a6e2eac
+PBX_LIBEDIT
a6e2eac
 LTDL_LIB
a6e2eac
 LTDL_INCLUDE
a6e2eac
 LTDL_DIR
a6e2eac
@@ -872,6 +880,10 @@ SDL_IMAGE_LIB
e12c6ae
 SDL_IMAGE_INCLUDE
e12c6ae
 SDL_IMAGE_DIR
e12c6ae
 PBX_SDL_IMAGE
e712aab
+SPANDSP_LIB
e712aab
+SPANDSP_INCLUDE
e712aab
+SPANDSP_DIR
e712aab
+PBX_SPANDSP
e712aab
 SPEEX_LIB
e712aab
 SPEEX_INCLUDE
e712aab
 SPEEX_DIR
a6e2eac
@@ -963,6 +975,7 @@ OPENH323_INCDIR
e712aab
 OPENH323_LIBDIR
e712aab
 OPENH323_SUFFIX
e712aab
 OPENH323_BUILD
e712aab
+PKGCONFIG
e12c6ae
 CONFIG_GMIME
e12c6ae
 PBX_ZAPTEL_VLDTMF
e12c6ae
 PBX_ZAPTEL_ECHOCANPARAMS
a6e2eac
@@ -974,7 +987,7 @@ PBX_H323
e712aab
 PBX_IXJUSER
e712aab
 CONFIG_SDL
e712aab
 CONFIG_GTK
e712aab
-PKGCONFIG
a6e2eac
+LIBEDIT_OBJ
e712aab
 CURL_CONFIG
e712aab
 LTLIBOBJS'
e712aab
 ac_subst_files=''
a6e2eac
@@ -1574,8 +1587,9 @@ Optional Packages:
e712aab
   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
e712aab
   --with-asound=PATH      use Advanced Linux Sound Architecture files in PATH
e712aab
   --with-execinfo=PATH    use Stack Backtrace support files in PATH
e712aab
-  --with-cap=PATH         use POSIX 1.e capabilities files in PATH
e712aab
+  --with-bluetooth=PATH   use Bluetooth Support files in PATH
e712aab
   --with-curl=PATH        use cURL files in PATH
e712aab
+  --with-cap=PATH         use POSIX 1.e capabilities files in PATH
e712aab
   --with-curses=PATH      use curses files in PATH
e712aab
   --with-crypto=PATH      use OpenSSL Cryptography support files in PATH
e12c6ae
   --with-avcodec=PATH     use Ffmpeg and avcodec library files in PATH
a6e2eac
@@ -1590,6 +1604,7 @@ Optional Packages:
a6e2eac
   --with-isdnnet=PATH     use ISDN4Linux Library files in PATH
a6e2eac
   --with-jack=PATH        use Jack Audio Connection Kit files in PATH
a6e2eac
   --with-ldap=PATH        use OpenLDAP files in PATH
a6e2eac
+  --with-libedit=PATH     use NetBSD Editline library files in PATH
a6e2eac
   --with-ltdl=PATH        use libtool files in PATH
a6e2eac
   --with-lua=PATH         use Lua files in PATH
a6e2eac
   --with-misdn=PATH       use mISDN User Library files in PATH
a6e2eac
@@ -1611,6 +1626,7 @@ Optional Packages:
e712aab
   --with-radius=PATH      use Radius Client files in PATH
e12c6ae
   --with-sdl=PATH         use Sdl files in PATH
e12c6ae
   --with-SDL_image=PATH   use Sdl Image library files in PATH
e712aab
+  --with-spandsp=PATH     use spandsp Library files in PATH
e712aab
   --with-speex=PATH       use Speex files in PATH
e712aab
   --with-speexdsp=PATH    use Speexdsp files in PATH
e712aab
   --with-sqlite=PATH      use SQLite files in PATH
a6e2eac
@@ -7940,6 +7956,62 @@ fi
e712aab
 
e712aab
 
e712aab
 
e712aab
+    BLUETOOTH_DESCRIP="Bluetooth Support"
e712aab
+    BLUETOOTH_OPTION="bluetooth"
e712aab
+
e712aab
+# Check whether --with-bluetooth was given.
e712aab
+if test "${with_bluetooth+set}" = set; then
e712aab
+  withval=$with_bluetooth;
e712aab
+	case ${withval} in
e712aab
+	n|no)
e712aab
+	USE_BLUETOOTH=no
e712aab
+	;;
e712aab
+	y|ye|yes)
e712aab
+	ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
e712aab
+	;;
e712aab
+	*)
e712aab
+	BLUETOOTH_DIR="${withval}"
e712aab
+	ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
e712aab
+	;;
e712aab
+	esac
e712aab
+
e712aab
+fi
e712aab
+
e712aab
+    PBX_BLUETOOTH=0
e712aab
+
e712aab
+
e712aab
+
e712aab
+
e712aab
+
e712aab
+
e712aab
+    CURL_DESCRIP="cURL"
e712aab
+    CURL_OPTION="curl"
e712aab
+
e712aab
+# Check whether --with-curl was given.
e712aab
+if test "${with_curl+set}" = set; then
e712aab
+  withval=$with_curl;
e712aab
+	case ${withval} in
e712aab
+	n|no)
e712aab
+	USE_CURL=no
e712aab
+	;;
e712aab
+	y|ye|yes)
e712aab
+	ac_mandatory_list="${ac_mandatory_list} CURL"
e712aab
+	;;
e712aab
+	*)
e712aab
+	CURL_DIR="${withval}"
e712aab
+	ac_mandatory_list="${ac_mandatory_list} CURL"
e712aab
+	;;
e712aab
+	esac
e712aab
+
e712aab
+fi
e712aab
+
e712aab
+    PBX_CURL=0
e712aab
+
e712aab
+
e712aab
+
e712aab
+
e712aab
+
e712aab
+
e712aab
     CAP_DESCRIP="POSIX 1.e capabilities"
e712aab
     CAP_OPTION="cap"
e712aab
 
a6e2eac
@@ -8360,6 +8432,34 @@ fi
a6e2eac
 
a6e2eac
 
a6e2eac
 
a6e2eac
+    LIBEDIT_DESCRIP="NetBSD Editline library"
a6e2eac
+    LIBEDIT_OPTION="libedit"
a6e2eac
+
a6e2eac
+# Check whether --with-libedit was given.
a6e2eac
+if test "${with_libedit+set}" = set; then
a6e2eac
+  withval=$with_libedit;
a6e2eac
+	case ${withval} in
a6e2eac
+	n|no)
a6e2eac
+	USE_LIBEDIT=no
a6e2eac
+	;;
a6e2eac
+	y|ye|yes)
a6e2eac
+	ac_mandatory_list="${ac_mandatory_list} LIBEDIT"
a6e2eac
+	;;
a6e2eac
+	*)
a6e2eac
+	LIBEDIT_DIR="${withval}"
a6e2eac
+	ac_mandatory_list="${ac_mandatory_list} LIBEDIT"
a6e2eac
+	;;
a6e2eac
+	esac
a6e2eac
+
a6e2eac
+fi
a6e2eac
+
a6e2eac
+    PBX_LIBEDIT=0
a6e2eac
+
a6e2eac
+
a6e2eac
+
a6e2eac
+
a6e2eac
+
a6e2eac
+
a6e2eac
     LTDL_DESCRIP="libtool"
a6e2eac
     LTDL_OPTION="ltdl"
a6e2eac
 
a6e2eac
@@ -8948,6 +9048,34 @@ fi
e712aab
 
e712aab
 
e712aab
 
e712aab
+    SPANDSP_DESCRIP="spandsp Library"
e712aab
+    SPANDSP_OPTION="spandsp"
e712aab
+
e712aab
+# Check whether --with-spandsp was given.
e712aab
+if test "${with_spandsp+set}" = set; then
e712aab
+  withval=$with_spandsp;
e712aab
+	case ${withval} in
e712aab
+	n|no)
e712aab
+	USE_SPANDSP=no
e712aab
+	;;
e712aab
+	y|ye|yes)
e712aab
+	ac_mandatory_list="${ac_mandatory_list} SPANDSP"
e712aab
+	;;
e712aab
+	*)
e712aab
+	SPANDSP_DIR="${withval}"
e712aab
+	ac_mandatory_list="${ac_mandatory_list} SPANDSP"
e712aab
+	;;
e712aab
+	esac
e712aab
+
e712aab
+fi
e712aab
+
e712aab
+    PBX_SPANDSP=0
e712aab
+
e712aab
+
e712aab
+
e712aab
+
e712aab
+
e712aab
+
e712aab
     SPEEX_DESCRIP="Speex"
e712aab
     SPEEX_OPTION="speex"
e712aab
 
a6e2eac
@@ -12769,13 +12897,11 @@ _ACEOF
e712aab
 cat confdefs.h >>conftest.$ac_ext
e712aab
 cat >>conftest.$ac_ext <<_ACEOF
e712aab
 /* end confdefs.h.  */
e712aab
-#include <sys/types.h> /* for off_t */
e712aab
-     #include <stdio.h>
e712aab
+#include <stdio.h>
e712aab
 int
e712aab
 main ()
e712aab
 {
e712aab
-int (*fp) (FILE *, off_t, int) = fseeko;
e712aab
-     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
e712aab
+return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
e712aab
   ;
e712aab
   return 0;
e712aab
 }
a6e2eac
@@ -12815,13 +12941,11 @@ cat confdefs.h >>conftest.$ac_ext
e712aab
 cat >>conftest.$ac_ext <<_ACEOF
e712aab
 /* end confdefs.h.  */
e712aab
 #define _LARGEFILE_SOURCE 1
e712aab
-#include <sys/types.h> /* for off_t */
e712aab
-     #include <stdio.h>
e712aab
+#include <stdio.h>
e712aab
 int
e712aab
 main ()
e712aab
 {
e712aab
-int (*fp) (FILE *, off_t, int) = fseeko;
e712aab
-     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
e712aab
+return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
e712aab
   ;
e712aab
   return 0;
e712aab
 }
a6e2eac
@@ -18120,6 +18244,268 @@ fi
e712aab
 
e712aab
 
e712aab
 
e712aab
+if test "x${PBX_BLUETOOTH}" != "x1" -a "${USE_BLUETOOTH}" != "no"; then
e712aab
+   pbxlibdir=""
e712aab
+   # if --with-BLUETOOTH=DIR has been specified, use it.
e712aab
+   if test "x${BLUETOOTH_DIR}" != "x"; then
e712aab
+      if test -d ${BLUETOOTH_DIR}/lib; then
e712aab
+      	 pbxlibdir="-L${BLUETOOTH_DIR}/lib"
e712aab
+      else
e712aab
+      	 pbxlibdir="-L${BLUETOOTH_DIR}"
e712aab
+      fi
e712aab
+   fi
e712aab
+   pbxfuncname="ba2str"
e712aab
+   if test "x${pbxfuncname}" = "x" ; then   # empty lib, assume only headers
e712aab
+      AST_BLUETOOTH_FOUND=yes
e712aab
+   else
e712aab
+      as_ac_Lib=`echo "ac_cv_lib_bluetooth_${pbxfuncname}" | $as_tr_sh`
e712aab
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lbluetooth" >&5
e712aab
+echo $ECHO_N "checking for ${pbxfuncname} in -lbluetooth... $ECHO_C" >&6; }
e712aab
+if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
e712aab
+  echo $ECHO_N "(cached) $ECHO_C" >&6
e712aab
+else
e712aab
+  ac_check_lib_save_LIBS=$LIBS
e712aab
+LIBS="-lbluetooth ${pbxlibdir}  $LIBS"
e712aab
+cat >conftest.$ac_ext <<_ACEOF
e712aab
+/* confdefs.h.  */
e712aab
+_ACEOF
e712aab
+cat confdefs.h >>conftest.$ac_ext
e712aab
+cat >>conftest.$ac_ext <<_ACEOF
e712aab
+/* end confdefs.h.  */
e712aab
+
e712aab
+/* Override any GCC internal prototype to avoid an error.
e712aab
+   Use char because int might match the return type of a GCC
e712aab
+   builtin and then its argument prototype would still apply.  */
e712aab
+#ifdef __cplusplus
e712aab
+extern "C"
e712aab
+#endif
e712aab
+char ${pbxfuncname} ();
e712aab
+int
e712aab
+main ()
e712aab
+{
e712aab
+return ${pbxfuncname} ();
e712aab
+  ;
e712aab
+  return 0;
e712aab
+}
e712aab
+_ACEOF
e712aab
+rm -f conftest.$ac_objext conftest$ac_exeext
e712aab
+if { (ac_try="$ac_link"
e712aab
+case "(($ac_try" in
e712aab
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
e712aab
+  *) ac_try_echo=$ac_try;;
e712aab
+esac
e712aab
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
e712aab
+  (eval "$ac_link") 2>conftest.er1
e712aab
+  ac_status=$?
e712aab
+  grep -v '^ *+' conftest.er1 >conftest.err
e712aab
+  rm -f conftest.er1
e712aab
+  cat conftest.err >&5
e712aab
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
e712aab
+  (exit $ac_status); } && {
e712aab
+	 test -z "$ac_c_werror_flag" ||
e712aab
+	 test ! -s conftest.err
e712aab
+       } && test -s conftest$ac_exeext &&
e712aab
+       $as_test_x conftest$ac_exeext; then
e712aab
+  eval "$as_ac_Lib=yes"
e712aab
+else
e712aab
+  echo "$as_me: failed program was:" >&5
e712aab
+sed 's/^/| /' conftest.$ac_ext >&5
e712aab
+
e712aab
+	eval "$as_ac_Lib=no"
e712aab
+fi
e712aab
+
e712aab
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
e712aab
+      conftest$ac_exeext conftest.$ac_ext
e712aab
+LIBS=$ac_check_lib_save_LIBS
e712aab
+fi
e712aab
+ac_res=`eval echo '${'$as_ac_Lib'}'`
e712aab
+	       { echo "$as_me:$LINENO: result: $ac_res" >&5
e712aab
+echo "${ECHO_T}$ac_res" >&6; }
e712aab
+if test `eval echo '${'$as_ac_Lib'}'` = yes; then
e712aab
+  AST_BLUETOOTH_FOUND=yes
e712aab
+else
e712aab
+  AST_BLUETOOTH_FOUND=no
e712aab
+fi
e712aab
+
e712aab
+   fi
e712aab
+
e712aab
+   # now check for the header.
e712aab
+   if test "${AST_BLUETOOTH_FOUND}" = "yes"; then
e712aab
+      BLUETOOTH_LIB="${pbxlibdir} -lbluetooth "
e712aab
+      # if --with-BLUETOOTH=DIR has been specified, use it.
e712aab
+      if test "x${BLUETOOTH_DIR}" != "x"; then
e712aab
+	 BLUETOOTH_INCLUDE="-I${BLUETOOTH_DIR}/include"
e712aab
+      fi
e712aab
+      BLUETOOTH_INCLUDE="${BLUETOOTH_INCLUDE} "
e712aab
+      if test "xbluetooth/bluetooth.h" = "x" ; then	# no header, assume found
e712aab
+         BLUETOOTH_HEADER_FOUND="1"
e712aab
+      else				# check for the header
e712aab
+         saved_cppflags="${CPPFLAGS}"
e712aab
+         CPPFLAGS="${CPPFLAGS} ${BLUETOOTH_INCLUDE} "
e712aab
+	 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
e712aab
+  { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
e712aab
+echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
e712aab
+if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
e712aab
+  echo $ECHO_N "(cached) $ECHO_C" >&6
e712aab
+fi
e712aab
+{ echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
e712aab
+echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
e712aab
+else
e712aab
+  # Is the header compilable?
e712aab
+{ echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
e712aab
+echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
e712aab
+cat >conftest.$ac_ext <<_ACEOF
e712aab
+/* confdefs.h.  */
e712aab
+_ACEOF
e712aab
+cat confdefs.h >>conftest.$ac_ext
e712aab
+cat >>conftest.$ac_ext <<_ACEOF
e712aab
+/* end confdefs.h.  */
e712aab
+$ac_includes_default
e712aab
+#include <bluetooth/bluetooth.h>
e712aab
+_ACEOF
e712aab
+rm -f conftest.$ac_objext
e712aab
+if { (ac_try="$ac_compile"
e712aab
+case "(($ac_try" in
e712aab
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
e712aab
+  *) ac_try_echo=$ac_try;;
e712aab
+esac
e712aab
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
e712aab
+  (eval "$ac_compile") 2>conftest.er1
e712aab
+  ac_status=$?
e712aab
+  grep -v '^ *+' conftest.er1 >conftest.err
e712aab
+  rm -f conftest.er1
e712aab
+  cat conftest.err >&5
e712aab
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
e712aab
+  (exit $ac_status); } && {
e712aab
+	 test -z "$ac_c_werror_flag" ||
e712aab
+	 test ! -s conftest.err
e712aab
+       } && test -s conftest.$ac_objext; then
e712aab
+  ac_header_compiler=yes
e712aab
+else
e712aab
+  echo "$as_me: failed program was:" >&5
e712aab
+sed 's/^/| /' conftest.$ac_ext >&5
e712aab
+
e712aab
+	ac_header_compiler=no
e712aab
+fi
e712aab
+
e712aab
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e712aab
+{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
e712aab
+echo "${ECHO_T}$ac_header_compiler" >&6; }
e712aab
+
e712aab
+# Is the header present?
e712aab
+{ echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
e712aab
+echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
e712aab
+cat >conftest.$ac_ext <<_ACEOF
e712aab
+/* confdefs.h.  */
e712aab
+_ACEOF
e712aab
+cat confdefs.h >>conftest.$ac_ext
e712aab
+cat >>conftest.$ac_ext <<_ACEOF
e712aab
+/* end confdefs.h.  */
e712aab
+#include <bluetooth/bluetooth.h>
e712aab
+_ACEOF
e712aab
+if { (ac_try="$ac_cpp conftest.$ac_ext"
e712aab
+case "(($ac_try" in
e712aab
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
e712aab
+  *) ac_try_echo=$ac_try;;
e712aab
+esac
e712aab
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
e712aab
+  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
e712aab
+  ac_status=$?
e712aab
+  grep -v '^ *+' conftest.er1 >conftest.err
e712aab
+  rm -f conftest.er1
e712aab
+  cat conftest.err >&5
e712aab
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
e712aab
+  (exit $ac_status); } >/dev/null && {
e712aab
+	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
e712aab
+	 test ! -s conftest.err
e712aab
+       }; then
e712aab
+  ac_header_preproc=yes
e712aab
+else
e712aab
+  echo "$as_me: failed program was:" >&5
e712aab
+sed 's/^/| /' conftest.$ac_ext >&5
e712aab
+
e712aab
+  ac_header_preproc=no
e712aab
+fi
e712aab
+
e712aab
+rm -f conftest.err conftest.$ac_ext
e712aab
+{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
e712aab
+echo "${ECHO_T}$ac_header_preproc" >&6; }
e712aab
+
e712aab
+# So?  What about this header?
e712aab
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
e712aab
+  yes:no: )
e712aab
+    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
e712aab
+echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
e712aab
+echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
e712aab
+    ac_header_preproc=yes
e712aab
+    ;;
e712aab
+  no:yes:* )
e712aab
+    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
e712aab
+echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h:     check for missing prerequisite headers?" >&5
e712aab
+echo "$as_me: WARNING: bluetooth/bluetooth.h:     check for missing prerequisite headers?" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
e712aab
+echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h:     section \"Present But Cannot Be Compiled\"" >&5
e712aab
+echo "$as_me: WARNING: bluetooth/bluetooth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
e712aab
+echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
e712aab
+echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
e712aab
+    ( cat <<\_ASBOX
e712aab
+## ------------------------------- ##
e712aab
+## Report this to www.asterisk.org ##
e712aab
+## ------------------------------- ##
e712aab
+_ASBOX
e712aab
+     ) | sed "s/^/$as_me: WARNING:     /" >&2
e712aab
+    ;;
e712aab
+esac
e712aab
+{ echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
e712aab
+echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
e712aab
+if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
e712aab
+  echo $ECHO_N "(cached) $ECHO_C" >&6
e712aab
+else
e712aab
+  ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
e712aab
+fi
e712aab
+{ echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
e712aab
+echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
e712aab
+
e712aab
+fi
e712aab
+if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
e712aab
+  BLUETOOTH_HEADER_FOUND=1
e712aab
+else
e712aab
+  BLUETOOTH_HEADER_FOUND=0
e712aab
+fi
e712aab
+
e712aab
+
e712aab
+         CPPFLAGS="${saved_cppflags}"
e712aab
+      fi
e712aab
+      if test "x${BLUETOOTH_HEADER_FOUND}" = "x0" ; then
e712aab
+         BLUETOOTH_LIB=""
e712aab
+         BLUETOOTH_INCLUDE=""
e712aab
+      else
e712aab
+         if test "x${pbxfuncname}" = "x" ; then		# only checking headers -> no library
e712aab
+	    BLUETOOTH_LIB=""
e712aab
+	 fi
e712aab
+         PBX_BLUETOOTH=1
e712aab
+         # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
e712aab
+
e712aab
+cat >>confdefs.h <<_ACEOF
e712aab
+#define HAVE_BLUETOOTH 1
e712aab
+_ACEOF
e712aab
+
e712aab
+
e712aab
+cat >>confdefs.h <<_ACEOF
e712aab
+#define HAVE_BLUETOOTH_VERSION
e712aab
+_ACEOF
e712aab
+
e712aab
+      fi
e712aab
+   fi
e712aab
+fi
e712aab
+
e712aab
+
e712aab
+
e712aab
 if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
e712aab
    pbxlibdir=""
e712aab
    # if --with-CURSES=DIR has been specified, use it.
a6e2eac
@@ -40874,31 +41260,137 @@ _ACEOF
e712aab
 
e712aab
 fi
e712aab
 
e712aab
-LUA_INCLUDE="-I/usr/include/lua5.1"
e712aab
-LUA_LIB="-llua5.1"
e712aab
+PBX_LUA=0
e712aab
+if test -n "$ac_tool_prefix"; then
e712aab
+  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
e712aab
+set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
e712aab
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
e712aab
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
e712aab
+if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
e712aab
+  echo $ECHO_N "(cached) $ECHO_C" >&6
e712aab
+else
e712aab
+  if test -n "$PKGCONFIG"; then
e712aab
+  ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
e712aab
+else
e712aab
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e712aab
+for as_dir in $PATH
e712aab
+do
e712aab
+  IFS=$as_save_IFS
e712aab
+  test -z "$as_dir" && as_dir=.
e712aab
+  for ac_exec_ext in '' $ac_executable_extensions; do
e712aab
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e712aab
+    ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
e712aab
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
e712aab
+    break 2
e712aab
+  fi
e712aab
+done
e712aab
+done
e712aab
+IFS=$as_save_IFS
e712aab
+
e712aab
+fi
e712aab
+fi
e712aab
+PKGCONFIG=$ac_cv_prog_PKGCONFIG
e712aab
+if test -n "$PKGCONFIG"; then
e712aab
+  { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
e712aab
+echo "${ECHO_T}$PKGCONFIG" >&6; }
e712aab
+else
e712aab
+  { echo "$as_me:$LINENO: result: no" >&5
e712aab
+echo "${ECHO_T}no" >&6; }
e712aab
+fi
e712aab
+
a6e2eac
+
e712aab
+fi
e712aab
+if test -z "$ac_cv_prog_PKGCONFIG"; then
e712aab
+  ac_ct_PKGCONFIG=$PKGCONFIG
e712aab
+  # Extract the first word of "pkg-config", so it can be a program name with args.
e712aab
+set dummy pkg-config; ac_word=$2
e712aab
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
e712aab
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
e712aab
+if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
e712aab
+  echo $ECHO_N "(cached) $ECHO_C" >&6
e712aab
+else
e712aab
+  if test -n "$ac_ct_PKGCONFIG"; then
e712aab
+  ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
e712aab
+else
e712aab
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e712aab
+for as_dir in $PATH
e712aab
+do
e712aab
+  IFS=$as_save_IFS
e712aab
+  test -z "$as_dir" && as_dir=.
e712aab
+  for ac_exec_ext in '' $ac_executable_extensions; do
e712aab
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e712aab
+    ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
e712aab
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
e712aab
+    break 2
e712aab
+  fi
e712aab
+done
e712aab
+done
e712aab
+IFS=$as_save_IFS
e712aab
+
e712aab
+fi
e712aab
+fi
e712aab
+ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
e712aab
+if test -n "$ac_ct_PKGCONFIG"; then
e712aab
+  { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
e712aab
+echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
e712aab
+else
e712aab
+  { echo "$as_me:$LINENO: result: no" >&5
e712aab
+echo "${ECHO_T}no" >&6; }
e712aab
+fi
e712aab
+
e712aab
+  if test "x$ac_ct_PKGCONFIG" = x; then
e712aab
+    PKGCONFIG="No"
e712aab
+  else
e712aab
+    case $cross_compiling:$ac_tool_warned in
e712aab
+yes:)
e712aab
+{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
e712aab
+whose name does not start with the host triplet.  If you think this
e712aab
+configuration is useful to you, please write to autoconf@gnu.org." >&5
e712aab
+echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
e712aab
+whose name does not start with the host triplet.  If you think this
e712aab
+configuration is useful to you, please write to autoconf@gnu.org." >&2;}
e712aab
+ac_tool_warned=yes ;;
e712aab
+esac
e712aab
+    PKGCONFIG=$ac_ct_PKGCONFIG
e712aab
+  fi
e712aab
+else
e712aab
+  PKGCONFIG="$ac_cv_prog_PKGCONFIG"
e712aab
+fi
e712aab
+
e712aab
+if test ! "x${PKGCONFIG}" = xNo; then
e712aab
+   LUA_INCLUDE=$(${PKGCONFIG} lua --cflags 2>/dev/null)
e712aab
+   LUA_LIB=$(${PKGCONFIG} lua --libs 2>/dev/null)
e712aab
+   PBX_LUA=1
e712aab
+
e712aab
+cat >>confdefs.h <<\_ACEOF
e712aab
+#define HAVE_LUA 1
e712aab
+_ACEOF
e712aab
+
e712aab
+fi
e712aab
+
a6e2eac
 
a6e2eac
-if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
e712aab
+if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
e712aab
    pbxlibdir=""
e712aab
-   # if --with-LUA=DIR has been specified, use it.
e712aab
-   if test "x${LUA_DIR}" != "x"; then
e712aab
-      if test -d ${LUA_DIR}/lib; then
e712aab
-      	 pbxlibdir="-L${LUA_DIR}/lib"
e712aab
+   # if --with-RADIUS=DIR has been specified, use it.
e712aab
+   if test "x${RADIUS_DIR}" != "x"; then
e712aab
+      if test -d ${RADIUS_DIR}/lib; then
e712aab
+      	 pbxlibdir="-L${RADIUS_DIR}/lib"
e712aab
       else
e712aab
-      	 pbxlibdir="-L${LUA_DIR}"
e712aab
+      	 pbxlibdir="-L${RADIUS_DIR}"
e712aab
       fi
e712aab
    fi
e712aab
-   pbxfuncname="luaL_newstate"
e712aab
+   pbxfuncname="rc_read_config"
e712aab
    if test "x${pbxfuncname}" = "x" ; then   # empty lib, assume only headers
e712aab
-      AST_LUA_FOUND=yes
e712aab
+      AST_RADIUS_FOUND=yes
e712aab
    else
e712aab
-      as_ac_Lib=`echo "ac_cv_lib_lua5.1_${pbxfuncname}" | $as_tr_sh`
e712aab
-{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -llua5.1" >&5
e712aab
-echo $ECHO_N "checking for ${pbxfuncname} in -llua5.1... $ECHO_C" >&6; }
e712aab
+      as_ac_Lib=`echo "ac_cv_lib_radiusclient-ng_${pbxfuncname}" | $as_tr_sh`
e712aab
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lradiusclient-ng" >&5
e712aab
+echo $ECHO_N "checking for ${pbxfuncname} in -lradiusclient-ng... $ECHO_C" >&6; }
e712aab
 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
e712aab
   echo $ECHO_N "(cached) $ECHO_C" >&6
e712aab
 else
e712aab
   ac_check_lib_save_LIBS=$LIBS
e712aab
-LIBS="-llua5.1 ${pbxlibdir}  $LIBS"
e712aab
+LIBS="-lradiusclient-ng ${pbxlibdir}  $LIBS"
e712aab
 cat >conftest.$ac_ext <<_ACEOF
e712aab
 /* confdefs.h.  */
e712aab
 _ACEOF
a6e2eac
@@ -40955,38 +41447,38 @@ ac_res=`eval echo '${'$as_ac_Lib'}'`
e712aab
 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
e712aab
 echo "${ECHO_T}$ac_res" >&6; }
e712aab
 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
e712aab
-  AST_LUA_FOUND=yes
e712aab
+  AST_RADIUS_FOUND=yes
e712aab
 else
e712aab
-  AST_LUA_FOUND=no
e712aab
+  AST_RADIUS_FOUND=no
e712aab
 fi
e712aab
 
e712aab
    fi
e712aab
 
e712aab
    # now check for the header.
e712aab
-   if test "${AST_LUA_FOUND}" = "yes"; then
e712aab
-      LUA_LIB="${pbxlibdir} -llua5.1 "
e712aab
-      # if --with-LUA=DIR has been specified, use it.
e712aab
-      if test "x${LUA_DIR}" != "x"; then
e712aab
-	 LUA_INCLUDE="-I${LUA_DIR}/include"
e712aab
-      fi
e712aab
-      LUA_INCLUDE="${LUA_INCLUDE} "
e712aab
-      if test "xlua5.1/lua.h" = "x" ; then	# no header, assume found
e712aab
-         LUA_HEADER_FOUND="1"
e712aab
+   if test "${AST_RADIUS_FOUND}" = "yes"; then
e712aab
+      RADIUS_LIB="${pbxlibdir} -lradiusclient-ng "
e712aab
+      # if --with-RADIUS=DIR has been specified, use it.
e712aab
+      if test "x${RADIUS_DIR}" != "x"; then
e712aab
+	 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
e712aab
+      fi
e712aab
+      RADIUS_INCLUDE="${RADIUS_INCLUDE} "
e712aab
+      if test "xradiusclient-ng.h" = "x" ; then	# no header, assume found
e712aab
+         RADIUS_HEADER_FOUND="1"
e712aab
       else				# check for the header
e712aab
          saved_cppflags="${CPPFLAGS}"
e712aab
-         CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE} "
e712aab
-	 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
e712aab
-  { echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
e712aab
-echo $ECHO_N "checking for lua5.1/lua.h... $ECHO_C" >&6; }
e712aab
-if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
e712aab
+         CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE} "
e712aab
+	 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
e712aab
+  { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
e712aab
+echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
e712aab
+if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
e712aab
   echo $ECHO_N "(cached) $ECHO_C" >&6
e712aab
 fi
e712aab
-{ echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
e712aab
-echo "${ECHO_T}$ac_cv_header_lua5_1_lua_h" >&6; }
e712aab
+{ echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
e712aab
+echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
e712aab
 else
e712aab
   # Is the header compilable?
e712aab
-{ echo "$as_me:$LINENO: checking lua5.1/lua.h usability" >&5
e712aab
-echo $ECHO_N "checking lua5.1/lua.h usability... $ECHO_C" >&6; }
e712aab
+{ echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
e712aab
+echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
e712aab
 cat >conftest.$ac_ext <<_ACEOF
e712aab
 /* confdefs.h.  */
e712aab
 _ACEOF
a6e2eac
@@ -40994,7 +41486,7 @@ cat confdefs.h >>conftest.$ac_ext
e712aab
 cat >>conftest.$ac_ext <<_ACEOF
e712aab
 /* end confdefs.h.  */
e712aab
 $ac_includes_default
e712aab
-#include <lua5.1/lua.h>
e712aab
+#include <radiusclient-ng.h>
e712aab
 _ACEOF
e712aab
 rm -f conftest.$ac_objext
e712aab
 if { (ac_try="$ac_compile"
a6e2eac
@@ -41026,15 +41518,15 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e712aab
 echo "${ECHO_T}$ac_header_compiler" >&6; }
e712aab
 
e712aab
 # Is the header present?
e712aab
-{ echo "$as_me:$LINENO: checking lua5.1/lua.h presence" >&5
e712aab
-echo $ECHO_N "checking lua5.1/lua.h presence... $ECHO_C" >&6; }
e712aab
+{ echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
e712aab
+echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
e712aab
 cat >conftest.$ac_ext <<_ACEOF
e712aab
 /* confdefs.h.  */
e712aab
 _ACEOF
e712aab
 cat confdefs.h >>conftest.$ac_ext
e712aab
 cat >>conftest.$ac_ext <<_ACEOF
e712aab
 /* end confdefs.h.  */
e712aab
-#include <lua5.1/lua.h>
e712aab
+#include <radiusclient-ng.h>
e712aab
 _ACEOF
e712aab
 if { (ac_try="$ac_cpp conftest.$ac_ext"
e712aab
 case "(($ac_try" in
a6e2eac
@@ -41067,25 +41559,25 @@ echo "${ECHO_T}$ac_header_preproc" >&6; }
e712aab
 # So?  What about this header?
e712aab
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
e712aab
   yes:no: )
e712aab
-    { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&5
e712aab
-echo "$as_me: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
e712aab
-    { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&5
e712aab
-echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
e712aab
+echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
e712aab
+echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
e712aab
     ac_header_preproc=yes
e712aab
     ;;
e712aab
   no:yes:* )
e712aab
-    { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: present but cannot be compiled" >&5
e712aab
-echo "$as_me: WARNING: lua5.1/lua.h: present but cannot be compiled" >&2;}
e712aab
-    { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h:     check for missing prerequisite headers?" >&5
e712aab
-echo "$as_me: WARNING: lua5.1/lua.h:     check for missing prerequisite headers?" >&2;}
e712aab
-    { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&5
e712aab
-echo "$as_me: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&2;}
e712aab
-    { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h:     section \"Present But Cannot Be Compiled\"" >&5
e712aab
-echo "$as_me: WARNING: lua5.1/lua.h:     section \"Present But Cannot Be Compiled\"" >&2;}
e712aab
-    { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&5
e712aab
-echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&2;}
e712aab
-    { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&5
e712aab
-echo "$as_me: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
e712aab
+echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h:     check for missing prerequisite headers?" >&5
e712aab
+echo "$as_me: WARNING: radiusclient-ng.h:     check for missing prerequisite headers?" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
e712aab
+echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h:     section \"Present But Cannot Be Compiled\"" >&5
e712aab
+echo "$as_me: WARNING: radiusclient-ng.h:     section \"Present But Cannot Be Compiled\"" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
e712aab
+echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
e712aab
+echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
e712aab
     ( cat <<\_ASBOX
e712aab
 ## ------------------------------- ##
e712aab
 ## Report this to www.asterisk.org ##
a6e2eac
@@ -41094,43 +41586,43 @@ _ASBOX
e712aab
      ) | sed "s/^/$as_me: WARNING:     /" >&2
e712aab
     ;;
e712aab
 esac
e712aab
-{ echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
e712aab
-echo $ECHO_N "checking for lua5.1/lua.h... $ECHO_C" >&6; }
e712aab
-if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
e712aab
+{ echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
e712aab
+echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
e712aab
+if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
e712aab
   echo $ECHO_N "(cached) $ECHO_C" >&6
e712aab
 else
e712aab
-  ac_cv_header_lua5_1_lua_h=$ac_header_preproc
e712aab
+  ac_cv_header_radiusclient_ng_h=$ac_header_preproc
e712aab
 fi
e712aab
-{ echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
e712aab
-echo "${ECHO_T}$ac_cv_header_lua5_1_lua_h" >&6; }
e712aab
+{ echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
e712aab
+echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
e712aab
 
e712aab
 fi
e712aab
-if test $ac_cv_header_lua5_1_lua_h = yes; then
e712aab
-  LUA_HEADER_FOUND=1
e712aab
+if test $ac_cv_header_radiusclient_ng_h = yes; then
e712aab
+  RADIUS_HEADER_FOUND=1
e712aab
 else
e712aab
-  LUA_HEADER_FOUND=0
e712aab
+  RADIUS_HEADER_FOUND=0
e712aab
 fi
e712aab
 
e712aab
 
e712aab
          CPPFLAGS="${saved_cppflags}"
e712aab
       fi
e712aab
-      if test "x${LUA_HEADER_FOUND}" = "x0" ; then
e712aab
-         LUA_LIB=""
e712aab
-         LUA_INCLUDE=""
e712aab
+      if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
e712aab
+         RADIUS_LIB=""
e712aab
+         RADIUS_INCLUDE=""
e712aab
       else
e712aab
          if test "x${pbxfuncname}" = "x" ; then		# only checking headers -> no library
e712aab
-	    LUA_LIB=""
e712aab
+	    RADIUS_LIB=""
e712aab
 	 fi
e712aab
-         PBX_LUA=1
e712aab
+         PBX_RADIUS=1
e712aab
          # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
e712aab
 
e712aab
 cat >>confdefs.h <<_ACEOF
e712aab
-#define HAVE_LUA 1
e712aab
+#define HAVE_RADIUS 1
e712aab
 _ACEOF
e712aab
 
e712aab
 
e712aab
 cat >>confdefs.h <<_ACEOF
e712aab
-#define HAVE_LUA_VERSION
e712aab
+#define HAVE_RADIUS_VERSION
e712aab
 _ACEOF
e712aab
 
e712aab
       fi
a6e2eac
@@ -41139,28 +41631,28 @@ fi
e712aab
 
e712aab
 
e712aab
 
e712aab
-if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
e712aab
+if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
e712aab
    pbxlibdir=""
e712aab
-   # if --with-RADIUS=DIR has been specified, use it.
e712aab
-   if test "x${RADIUS_DIR}" != "x"; then
e712aab
-      if test -d ${RADIUS_DIR}/lib; then
e712aab
-      	 pbxlibdir="-L${RADIUS_DIR}/lib"
e712aab
+   # if --with-SPANDSP=DIR has been specified, use it.
e712aab
+   if test "x${SPANDSP_DIR}" != "x"; then
e712aab
+      if test -d ${SPANDSP_DIR}/lib; then
e712aab
+      	 pbxlibdir="-L${SPANDSP_DIR}/lib"
e712aab
       else
e712aab
-      	 pbxlibdir="-L${RADIUS_DIR}"
e712aab
+      	 pbxlibdir="-L${SPANDSP_DIR}"
e712aab
       fi
e712aab
    fi
e712aab
-   pbxfuncname="rc_read_config"
e712aab
+   pbxfuncname="fax_init"
e712aab
    if test "x${pbxfuncname}" = "x" ; then   # empty lib, assume only headers
e712aab
-      AST_RADIUS_FOUND=yes
e712aab
+      AST_SPANDSP_FOUND=yes
e712aab
    else
e712aab
-      as_ac_Lib=`echo "ac_cv_lib_radiusclient-ng_${pbxfuncname}" | $as_tr_sh`
e712aab
-{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lradiusclient-ng" >&5
e712aab
-echo $ECHO_N "checking for ${pbxfuncname} in -lradiusclient-ng... $ECHO_C" >&6; }
e712aab
+      as_ac_Lib=`echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
e712aab
+{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspandsp" >&5
e712aab
+echo $ECHO_N "checking for ${pbxfuncname} in -lspandsp... $ECHO_C" >&6; }
e712aab
 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
e712aab
   echo $ECHO_N "(cached) $ECHO_C" >&6
e712aab
 else
e712aab
   ac_check_lib_save_LIBS=$LIBS
e712aab
-LIBS="-lradiusclient-ng ${pbxlibdir}  $LIBS"
e712aab
+LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
e712aab
 cat >conftest.$ac_ext <<_ACEOF
e712aab
 /* confdefs.h.  */
e712aab
 _ACEOF
a6e2eac
@@ -41217,38 +41709,38 @@ ac_res=`eval echo '${'$as_ac_Lib'}'`
e712aab
 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
e712aab
 echo "${ECHO_T}$ac_res" >&6; }
e712aab
 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
e712aab
-  AST_RADIUS_FOUND=yes
e712aab
+  AST_SPANDSP_FOUND=yes
e712aab
 else
e712aab
-  AST_RADIUS_FOUND=no
e712aab
+  AST_SPANDSP_FOUND=no
e712aab
 fi
e712aab
 
e712aab
    fi
e712aab
 
e712aab
    # now check for the header.
e712aab
-   if test "${AST_RADIUS_FOUND}" = "yes"; then
e712aab
-      RADIUS_LIB="${pbxlibdir} -lradiusclient-ng "
e712aab
-      # if --with-RADIUS=DIR has been specified, use it.
e712aab
-      if test "x${RADIUS_DIR}" != "x"; then
e712aab
-	 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
e712aab
-      fi
e712aab
-      RADIUS_INCLUDE="${RADIUS_INCLUDE} "
e712aab
-      if test "xradiusclient-ng.h" = "x" ; then	# no header, assume found
e712aab
-         RADIUS_HEADER_FOUND="1"
e712aab
+   if test "${AST_SPANDSP_FOUND}" = "yes"; then
e712aab
+      SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
e712aab
+      # if --with-SPANDSP=DIR has been specified, use it.
e712aab
+      if test "x${SPANDSP_DIR}" != "x"; then
e712aab
+	 SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
e712aab
+      fi
e712aab
+      SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
e712aab
+      if test "xspandsp.h" = "x" ; then	# no header, assume found
e712aab
+         SPANDSP_HEADER_FOUND="1"
e712aab
       else				# check for the header
e712aab
          saved_cppflags="${CPPFLAGS}"
e712aab
-         CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE} "
e712aab
-	 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
e712aab
-  { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
e712aab
-echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
e712aab
-if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
e712aab
+         CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE} "
e712aab
+	 if test "${ac_cv_header_spandsp_h+set}" = set; then
e712aab
+  { echo "$as_me:$LINENO: checking for spandsp.h" >&5
e712aab
+echo $ECHO_N "checking for spandsp.h... $ECHO_C" >&6; }
e712aab
+if test "${ac_cv_header_spandsp_h+set}" = set; then
e712aab
   echo $ECHO_N "(cached) $ECHO_C" >&6
e712aab
 fi
e712aab
-{ echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
e712aab
-echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
e712aab
+{ echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
e712aab
+echo "${ECHO_T}$ac_cv_header_spandsp_h" >&6; }
e712aab
 else
e712aab
   # Is the header compilable?
e712aab
-{ echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
e712aab
-echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
e712aab
+{ echo "$as_me:$LINENO: checking spandsp.h usability" >&5
e712aab
+echo $ECHO_N "checking spandsp.h usability... $ECHO_C" >&6; }
e712aab
 cat >conftest.$ac_ext <<_ACEOF
e712aab
 /* confdefs.h.  */
e712aab
 _ACEOF
a6e2eac
@@ -41256,7 +41748,7 @@ cat confdefs.h >>conftest.$ac_ext
e712aab
 cat >>conftest.$ac_ext <<_ACEOF
e712aab
 /* end confdefs.h.  */
e712aab
 $ac_includes_default
e712aab
-#include <radiusclient-ng.h>
e712aab
+#include <spandsp.h>
e712aab
 _ACEOF
e712aab
 rm -f conftest.$ac_objext
e712aab
 if { (ac_try="$ac_compile"
a6e2eac
@@ -41288,15 +41780,15 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e712aab
 echo "${ECHO_T}$ac_header_compiler" >&6; }
e712aab
 
e712aab
 # Is the header present?
e712aab
-{ echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
e712aab
-echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
e712aab
+{ echo "$as_me:$LINENO: checking spandsp.h presence" >&5
e712aab
+echo $ECHO_N "checking spandsp.h presence... $ECHO_C" >&6; }
e712aab
 cat >conftest.$ac_ext <<_ACEOF
e712aab
 /* confdefs.h.  */
e712aab
 _ACEOF
e712aab
 cat confdefs.h >>conftest.$ac_ext
e712aab
 cat >>conftest.$ac_ext <<_ACEOF
e712aab
 /* end confdefs.h.  */
e712aab
-#include <radiusclient-ng.h>
e712aab
+#include <spandsp.h>
e712aab
 _ACEOF
e712aab
 if { (ac_try="$ac_cpp conftest.$ac_ext"
e712aab
 case "(($ac_try" in
a6e2eac
@@ -41329,25 +41821,25 @@ echo "${ECHO_T}$ac_header_preproc" >&6; }
e712aab
 # So?  What about this header?
e712aab
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
e712aab
   yes:no: )
e712aab
-    { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
e712aab
-echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
e712aab
-    { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
e712aab
-echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
e712aab
+echo "$as_me: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the compiler's result" >&5
e712aab
+echo "$as_me: WARNING: spandsp.h: proceeding with the compiler's result" >&2;}
e712aab
     ac_header_preproc=yes
e712aab
     ;;
e712aab
   no:yes:* )
e712aab
-    { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
e712aab
-echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
e712aab
-    { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h:     check for missing prerequisite headers?" >&5
e712aab
-echo "$as_me: WARNING: radiusclient-ng.h:     check for missing prerequisite headers?" >&2;}
e712aab
-    { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
e712aab
-echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
e712aab
-    { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h:     section \"Present But Cannot Be Compiled\"" >&5
e712aab
-echo "$as_me: WARNING: radiusclient-ng.h:     section \"Present But Cannot Be Compiled\"" >&2;}
e712aab
-    { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
e712aab
-echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
e712aab
-    { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
e712aab
-echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: spandsp.h: present but cannot be compiled" >&5
e712aab
+echo "$as_me: WARNING: spandsp.h: present but cannot be compiled" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: spandsp.h:     check for missing prerequisite headers?" >&5
e712aab
+echo "$as_me: WARNING: spandsp.h:     check for missing prerequisite headers?" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: spandsp.h: see the Autoconf documentation" >&5
e712aab
+echo "$as_me: WARNING: spandsp.h: see the Autoconf documentation" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: spandsp.h:     section \"Present But Cannot Be Compiled\"" >&5
e712aab
+echo "$as_me: WARNING: spandsp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the preprocessor's result" >&5
e712aab
+echo "$as_me: WARNING: spandsp.h: proceeding with the preprocessor's result" >&2;}
e712aab
+    { echo "$as_me:$LINENO: WARNING: spandsp.h: in the future, the compiler will take precedence" >&5
e712aab
+echo "$as_me: WARNING: spandsp.h: in the future, the compiler will take precedence" >&2;}
e712aab
     ( cat <<\_ASBOX
e712aab
 ## ------------------------------- ##
e712aab
 ## Report this to www.asterisk.org ##
a6e2eac
@@ -41356,43 +41848,43 @@ _ASBOX
e712aab
      ) | sed "s/^/$as_me: WARNING:     /" >&2
e712aab
     ;;
e712aab
 esac
e712aab
-{ echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
e712aab
-echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
e712aab
-if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
e712aab
+{ echo "$as_me:$LINENO: checking for spandsp.h" >&5
e712aab
+echo $ECHO_N "checking for spandsp.h... $ECHO_C" >&6; }
e712aab
+if test "${ac_cv_header_spandsp_h+set}" = set; then
e712aab
   echo $ECHO_N "(cached) $ECHO_C" >&6
e712aab
 else
e712aab
-  ac_cv_header_radiusclient_ng_h=$ac_header_preproc
e712aab
+  ac_cv_header_spandsp_h=$ac_header_preproc
e712aab
 fi
e712aab
-{ echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
e712aab
-echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
e712aab
+{ echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
e712aab
+echo "${ECHO_T}$ac_cv_header_spandsp_h" >&6; }
e712aab
 
e712aab
 fi
e712aab
-if test $ac_cv_header_radiusclient_ng_h = yes; then
e712aab
-  RADIUS_HEADER_FOUND=1
e712aab
+if test $ac_cv_header_spandsp_h = yes; then
e712aab
+  SPANDSP_HEADER_FOUND=1
e712aab
 else
e712aab
-  RADIUS_HEADER_FOUND=0
e712aab
+  SPANDSP_HEADER_FOUND=0
e712aab
 fi
e712aab
 
e712aab
 
e712aab
          CPPFLAGS="${saved_cppflags}"
e712aab
       fi
e712aab
-      if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
e712aab
-         RADIUS_LIB=""
e712aab
-         RADIUS_INCLUDE=""
e712aab
+      if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
e712aab
+         SPANDSP_LIB=""
e712aab
+         SPANDSP_INCLUDE=""
e712aab
       else
e712aab
          if test "x${pbxfuncname}" = "x" ; then		# only checking headers -> no library
e712aab
-	    RADIUS_LIB=""
e712aab
+	    SPANDSP_LIB=""
e712aab
 	 fi
e712aab
-         PBX_RADIUS=1
e712aab
+         PBX_SPANDSP=1
e712aab
          # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
e712aab
 
e712aab
 cat >>confdefs.h <<_ACEOF
e712aab
-#define HAVE_RADIUS 1
e712aab
+#define HAVE_SPANDSP 1
e712aab
 _ACEOF
e712aab
 
e712aab
 
e712aab
 cat >>confdefs.h <<_ACEOF
e712aab
-#define HAVE_RADIUS_VERSION
e712aab
+#define HAVE_SPANDSP_VERSION
e712aab
 _ACEOF
e712aab
 
e712aab
       fi
a6e2eac
@@ -49346,6 +49838,126 @@ fi
a6e2eac
 
a6e2eac
 
a6e2eac
 
a6e2eac
+PBX_LIBEDIT=0
a6e2eac
+LIBEDIT_INCLUDE=-Ieditline/readline
a6e2eac
+LIBEDIT_LIB=
a6e2eac
+LIBEDIT_OBJ=editline/libedit.a
a6e2eac
+if test  "${USE_LIBEDIT}" != "no"; then
a6e2eac
+   if test -n "$ac_tool_prefix"; then
a6e2eac
+  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
a6e2eac
+set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
a6e2eac
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
a6e2eac
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a6e2eac
+if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
a6e2eac
+  echo $ECHO_N "(cached) $ECHO_C" >&6
a6e2eac
+else
a6e2eac
+  if test -n "$PKGCONFIG"; then
a6e2eac
+  ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
a6e2eac
+else
a6e2eac
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a6e2eac
+for as_dir in $PATH
a6e2eac
+do
a6e2eac
+  IFS=$as_save_IFS
a6e2eac
+  test -z "$as_dir" && as_dir=.
a6e2eac
+  for ac_exec_ext in '' $ac_executable_extensions; do
a6e2eac
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a6e2eac
+    ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
a6e2eac
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a6e2eac
+    break 2
a6e2eac
+  fi
a6e2eac
+done
a6e2eac
+done
a6e2eac
+IFS=$as_save_IFS
a6e2eac
+
a6e2eac
+fi
a6e2eac
+fi
a6e2eac
+PKGCONFIG=$ac_cv_prog_PKGCONFIG
a6e2eac
+if test -n "$PKGCONFIG"; then
a6e2eac
+  { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
a6e2eac
+echo "${ECHO_T}$PKGCONFIG" >&6; }
a6e2eac
+else
a6e2eac
+  { echo "$as_me:$LINENO: result: no" >&5
a6e2eac
+echo "${ECHO_T}no" >&6; }
a6e2eac
+fi
a6e2eac
+
a6e2eac
+
a6e2eac
+fi
a6e2eac
+if test -z "$ac_cv_prog_PKGCONFIG"; then
a6e2eac
+  ac_ct_PKGCONFIG=$PKGCONFIG
a6e2eac
+  # Extract the first word of "pkg-config", so it can be a program name with args.
a6e2eac
+set dummy pkg-config; ac_word=$2
a6e2eac
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
a6e2eac
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a6e2eac
+if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
a6e2eac
+  echo $ECHO_N "(cached) $ECHO_C" >&6
a6e2eac
+else
a6e2eac
+  if test -n "$ac_ct_PKGCONFIG"; then
a6e2eac
+  ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
a6e2eac
+else
a6e2eac
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a6e2eac
+for as_dir in $PATH
a6e2eac
+do
a6e2eac
+  IFS=$as_save_IFS
a6e2eac
+  test -z "$as_dir" && as_dir=.
a6e2eac
+  for ac_exec_ext in '' $ac_executable_extensions; do
a6e2eac
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a6e2eac
+    ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
a6e2eac
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a6e2eac
+    break 2
a6e2eac
+  fi
a6e2eac
+done
a6e2eac
+done
a6e2eac
+IFS=$as_save_IFS
a6e2eac
+
a6e2eac
+fi
a6e2eac
+fi
a6e2eac
+ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
a6e2eac
+if test -n "$ac_ct_PKGCONFIG"; then
a6e2eac
+  { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
a6e2eac
+echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
a6e2eac
+else
a6e2eac
+  { echo "$as_me:$LINENO: result: no" >&5
a6e2eac
+echo "${ECHO_T}no" >&6; }
a6e2eac
+fi
a6e2eac
+
a6e2eac
+  if test "x$ac_ct_PKGCONFIG" = x; then
a6e2eac
+    PKGCONFIG="no"
a6e2eac
+  else
a6e2eac
+    case $cross_compiling:$ac_tool_warned in
a6e2eac
+yes:)
a6e2eac
+{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
a6e2eac
+whose name does not start with the host triplet.  If you think this
a6e2eac
+configuration is useful to you, please write to autoconf@gnu.org." >&5
a6e2eac
+echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
a6e2eac
+whose name does not start with the host triplet.  If you think this
a6e2eac
+configuration is useful to you, please write to autoconf@gnu.org." >&2;}
a6e2eac
+ac_tool_warned=yes ;;
a6e2eac
+esac
a6e2eac
+    PKGCONFIG=$ac_ct_PKGCONFIG
a6e2eac
+  fi
a6e2eac
+else
a6e2eac
+  PKGCONFIG="$ac_cv_prog_PKGCONFIG"
a6e2eac
+fi
a6e2eac
+
a6e2eac
+   if test "${PKGCONFIG}" != "no"; then
a6e2eac
+      if ${PKGCONFIG} --exists libedit; then
a6e2eac
+         LIBEDIT_INCLUDE=$(${PKGCONFIG} libedit --cflags)
a6e2eac
+	 LIBEDIT_LIB=$(${PKGCONFIG} libedit --libs)
a6e2eac
+         LIBEDIT_OBJ=
a6e2eac
+         PBX_LIBEDIT=1
a6e2eac
+
a6e2eac
+cat >>confdefs.h <<\_ACEOF
a6e2eac
+#define HAVE_LIBEDIT 1
a6e2eac
+_ACEOF
a6e2eac
+
a6e2eac
+      fi
a6e2eac
+   fi
a6e2eac
+fi
a6e2eac
+
a6e2eac
+
a6e2eac
+
a6e2eac
+
a6e2eac
+
a6e2eac
 if test "${USE_CURL}" != "no"; then
a6e2eac
    if test -n "$ac_tool_prefix"; then
a6e2eac
   # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
a6e2eac
@@ -50320,14 +50932,18 @@ BKTR_LIB!$BKTR_LIB$ac_delim
e712aab
 BKTR_INCLUDE!$BKTR_INCLUDE$ac_delim
e712aab
 BKTR_DIR!$BKTR_DIR$ac_delim
e712aab
 PBX_BKTR!$PBX_BKTR$ac_delim
e712aab
-CAP_LIB!$CAP_LIB$ac_delim
e712aab
-CAP_INCLUDE!$CAP_INCLUDE$ac_delim
e712aab
-CAP_DIR!$CAP_DIR$ac_delim
e712aab
-PBX_CAP!$PBX_CAP$ac_delim
e712aab
+BLUETOOTH_LIB!$BLUETOOTH_LIB$ac_delim
e712aab
+BLUETOOTH_INCLUDE!$BLUETOOTH_INCLUDE$ac_delim
e712aab
+BLUETOOTH_DIR!$BLUETOOTH_DIR$ac_delim
e712aab
+PBX_BLUETOOTH!$PBX_BLUETOOTH$ac_delim
e712aab
 CURL_LIB!$CURL_LIB$ac_delim
e712aab
 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
e712aab
 CURL_DIR!$CURL_DIR$ac_delim
e712aab
 PBX_CURL!$PBX_CURL$ac_delim
e712aab
+CAP_LIB!$CAP_LIB$ac_delim
e712aab
+CAP_INCLUDE!$CAP_INCLUDE$ac_delim
e712aab
+CAP_DIR!$CAP_DIR$ac_delim
e712aab
+PBX_CAP!$PBX_CAP$ac_delim
e712aab
 CURSES_LIB!$CURSES_LIB$ac_delim
e712aab
 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
e712aab
 CURSES_DIR!$CURSES_DIR$ac_delim
a6e2eac
@@ -50380,6 +50996,10 @@ LDAP_LIB!$LDAP_LIB$ac_delim
a6e2eac
 LDAP_INCLUDE!$LDAP_INCLUDE$ac_delim
a6e2eac
 LDAP_DIR!$LDAP_DIR$ac_delim
a6e2eac
 PBX_LDAP!$PBX_LDAP$ac_delim
a6e2eac
+LIBEDIT_LIB!$LIBEDIT_LIB$ac_delim
a6e2eac
+LIBEDIT_INCLUDE!$LIBEDIT_INCLUDE$ac_delim
a6e2eac
+LIBEDIT_DIR!$LIBEDIT_DIR$ac_delim
a6e2eac
+PBX_LIBEDIT!$PBX_LIBEDIT$ac_delim
a6e2eac
 LTDL_LIB!$LTDL_LIB$ac_delim
a6e2eac
 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
a6e2eac
 LTDL_DIR!$LTDL_DIR$ac_delim
a6e2eac
@@ -50397,14 +51017,6 @@ NBS_INCLUDE!$NBS_INCLUDE$ac_delim
a6e2eac
 NBS_DIR!$NBS_DIR$ac_delim
a6e2eac
 PBX_NBS!$PBX_NBS$ac_delim
a6e2eac
 NCURSES_LIB!$NCURSES_LIB$ac_delim
a6e2eac
-NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
a6e2eac
-NCURSES_DIR!$NCURSES_DIR$ac_delim
a6e2eac
-PBX_NCURSES!$PBX_NCURSES$ac_delim
a6e2eac
-NETSNMP_LIB!$NETSNMP_LIB$ac_delim
e12c6ae
-NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
e12c6ae
-NETSNMP_DIR!$NETSNMP_DIR$ac_delim
e12c6ae
-PBX_NETSNMP!$PBX_NETSNMP$ac_delim
e12c6ae
-NEWT_LIB!$NEWT_LIB$ac_delim
e712aab
 _ACEOF
e712aab
 
e712aab
   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
a6e2eac
@@ -50446,6 +51058,14 @@ _ACEOF
e712aab
 ac_delim='%!_!# '
e712aab
 for ac_last_try in false false false false false :; do
e712aab
   cat >conf$$subs.sed <<_ACEOF
a6e2eac
+NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
a6e2eac
+NCURSES_DIR!$NCURSES_DIR$ac_delim
a6e2eac
+PBX_NCURSES!$PBX_NCURSES$ac_delim
a6e2eac
+NETSNMP_LIB!$NETSNMP_LIB$ac_delim
e12c6ae
+NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
e12c6ae
+NETSNMP_DIR!$NETSNMP_DIR$ac_delim
e12c6ae
+PBX_NETSNMP!$PBX_NETSNMP$ac_delim
e12c6ae
+NEWT_LIB!$NEWT_LIB$ac_delim
e12c6ae
 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
e12c6ae
 NEWT_DIR!$NEWT_DIR$ac_delim
e12c6ae
 PBX_NEWT!$PBX_NEWT$ac_delim
a6e2eac
@@ -50505,6 +51125,10 @@ SDL_IMAGE_LIB!$SDL_IMAGE_LIB$ac_delim
e12c6ae
 SDL_IMAGE_INCLUDE!$SDL_IMAGE_INCLUDE$ac_delim
e12c6ae
 SDL_IMAGE_DIR!$SDL_IMAGE_DIR$ac_delim
e12c6ae
 PBX_SDL_IMAGE!$PBX_SDL_IMAGE$ac_delim
e712aab
+SPANDSP_LIB!$SPANDSP_LIB$ac_delim
e712aab
+SPANDSP_INCLUDE!$SPANDSP_INCLUDE$ac_delim
e712aab
+SPANDSP_DIR!$SPANDSP_DIR$ac_delim
e712aab
+PBX_SPANDSP!$PBX_SPANDSP$ac_delim
e712aab
 SPEEX_LIB!$SPEEX_LIB$ac_delim
e712aab
 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
e712aab
 SPEEX_DIR!$SPEEX_DIR$ac_delim
a6e2eac
@@ -50531,18 +51155,6 @@ OPENSSL_DIR!$OPENSSL_DIR$ac_delim
a6e2eac
 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
a6e2eac
 FREETDS_LIB!$FREETDS_LIB$ac_delim
a6e2eac
 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
a6e2eac
-FREETDS_DIR!$FREETDS_DIR$ac_delim
a6e2eac
-PBX_FREETDS!$PBX_FREETDS$ac_delim
a6e2eac
-TERMCAP_LIB!$TERMCAP_LIB$ac_delim
a6e2eac
-TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
e12c6ae
-TERMCAP_DIR!$TERMCAP_DIR$ac_delim
e12c6ae
-PBX_TERMCAP!$PBX_TERMCAP$ac_delim
e12c6ae
-TINFO_LIB!$TINFO_LIB$ac_delim
e12c6ae
-TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
e12c6ae
-TINFO_DIR!$TINFO_DIR$ac_delim
e12c6ae
-PBX_TINFO!$PBX_TINFO$ac_delim
e12c6ae
-TONEZONE_LIB!$TONEZONE_LIB$ac_delim
e12c6ae
-TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
e712aab
 _ACEOF
e712aab
 
e712aab
   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
a6e2eac
@@ -50584,6 +51196,18 @@ _ACEOF
e712aab
 ac_delim='%!_!# '
e712aab
 for ac_last_try in false false false false false :; do
e712aab
   cat >conf$$subs.sed <<_ACEOF
a6e2eac
+FREETDS_DIR!$FREETDS_DIR$ac_delim
a6e2eac
+PBX_FREETDS!$PBX_FREETDS$ac_delim
a6e2eac
+TERMCAP_LIB!$TERMCAP_LIB$ac_delim
a6e2eac
+TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
e12c6ae
+TERMCAP_DIR!$TERMCAP_DIR$ac_delim
e12c6ae
+PBX_TERMCAP!$PBX_TERMCAP$ac_delim
e12c6ae
+TINFO_LIB!$TINFO_LIB$ac_delim
e12c6ae
+TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
e12c6ae
+TINFO_DIR!$TINFO_DIR$ac_delim
e12c6ae
+PBX_TINFO!$PBX_TINFO$ac_delim
e12c6ae
+TONEZONE_LIB!$TONEZONE_LIB$ac_delim
e12c6ae
+TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
e12c6ae
 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
e12c6ae
 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
e12c6ae
 USB_LIB!$USB_LIB$ac_delim
a6e2eac
@@ -50637,6 +51261,7 @@ OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
e712aab
 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
e712aab
 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
e712aab
 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
e712aab
+PKGCONFIG!$PKGCONFIG$ac_delim
e12c6ae
 CONFIG_GMIME!$CONFIG_GMIME$ac_delim
e12c6ae
 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
e12c6ae
 PBX_ZAPTEL_ECHOCANPARAMS!$PBX_ZAPTEL_ECHOCANPARAMS$ac_delim
a6e2eac
@@ -50648,12 +51273,12 @@ PBX_H323!$PBX_H323$ac_delim
e712aab
 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
e712aab
 CONFIG_SDL!$CONFIG_SDL$ac_delim
e712aab
 CONFIG_GTK!$CONFIG_GTK$ac_delim
e712aab
-PKGCONFIG!$PKGCONFIG$ac_delim
a6e2eac
+LIBEDIT_OBJ!$LIBEDIT_OBJ$ac_delim
e712aab
 CURL_CONFIG!$CURL_CONFIG$ac_delim
e712aab
 LTLIBOBJS!$LTLIBOBJS$ac_delim
e712aab
 _ACEOF
e712aab
 
e12c6ae
-  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
a6e2eac
+  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
e712aab
     break
e712aab
   elif $ac_last_try; then
e712aab
     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
e712aab
diff --git a/include/asterisk/autoconfig.h.in b/include/asterisk/autoconfig.h.in
a6e2eac
index 087a6a0..1fb7355 100644
e712aab
--- a/include/asterisk/autoconfig.h.in
e712aab
+++ b/include/asterisk/autoconfig.h.in
e12c6ae
@@ -113,6 +113,12 @@
e712aab
 /* Define to indicate the ${BKTR_DESCRIP} library version */
e712aab
 #undef HAVE_BKTR_VERSION
e712aab
 
e712aab
+/* Define this to indicate the ${BLUETOOTH_DESCRIP} library */
e712aab
+#undef HAVE_BLUETOOTH
e712aab
+
e712aab
+/* Define to indicate the ${BLUETOOTH_DESCRIP} library version */
e712aab
+#undef HAVE_BLUETOOTH_VERSION
e712aab
+
e712aab
 /* Define to 1 if byteswap.h macros are available. */
e712aab
 #undef HAVE_BYTESWAP_H
e712aab
 
a6e2eac
@@ -382,6 +388,9 @@
a6e2eac
 /* Define to indicate the ${LDAP_DESCRIP} library version */
a6e2eac
 #undef HAVE_LDAP_VERSION
a6e2eac
 
a6e2eac
+/* Define if your system has the NetBSD Editline libraries. */
a6e2eac
+#undef HAVE_LIBEDIT
a6e2eac
+
a6e2eac
 /* Define to 1 if you have the <libintl.h> header file. */
a6e2eac
 #undef HAVE_LIBINTL_H
a6e2eac
 
a6e2eac
@@ -439,12 +448,9 @@
e712aab
 /* Define to indicate the ${LTDL_DESCRIP} library version */
e712aab
 #undef HAVE_LTDL_VERSION
e712aab
 
e712aab
-/* Define this to indicate the ${LUA_DESCRIP} library */
e712aab
+/* Define if your system has the LUA libraries. */
e712aab
 #undef HAVE_LUA
e712aab
 
e712aab
-/* Define to indicate the ${LUA_DESCRIP} library version */
e712aab
-#undef HAVE_LUA_VERSION
e712aab
-
e712aab
 /* Define to 1 if you have the <malloc.h> header file. */
e712aab
 #undef HAVE_MALLOC_H
e712aab
 
a6e2eac
@@ -712,6 +718,12 @@
e712aab
 /* Define to 1 if your system has soxmix application. */
e712aab
 #undef HAVE_SOXMIX
e712aab
 
e712aab
+/* Define this to indicate the ${SPANDSP_DESCRIP} library */
e712aab
+#undef HAVE_SPANDSP
e712aab
+
e712aab
+/* Define to indicate the ${SPANDSP_DESCRIP} library version */
e712aab
+#undef HAVE_SPANDSP_VERSION
e712aab
+
e712aab
 /* Define this to indicate the ${SPEEX_DESCRIP} library */
e712aab
 #undef HAVE_SPEEX
e712aab
 
e712aab
-- 
d04ded6
1.5.4.3
e712aab