mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Move Asterisk-addons modules into the main Asterisk source tree.
Someone asked yesterday, "is there a good reason why we can't just put these modules in Asterisk?". After a brief discussion, as long as the modules are clearly set aside in their own directory and not enabled by default, it is perfectly fine. For more information about why a module goes in addons, see README-addons.txt. chan_ooh323 does not currently compile as it is behind some trunk API updates. However, it will not build by default, so it should be okay for now. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@204413 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
567
configure
vendored
567
configure
vendored
@@ -1,5 +1,5 @@
|
||||
#! /bin/sh
|
||||
# From configure.ac Revision: 203569 .
|
||||
# From configure.ac Revision: 204392 .
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.61 for asterisk 1.6.
|
||||
#
|
||||
@@ -731,6 +731,10 @@ BKTR_LIB
|
||||
BKTR_INCLUDE
|
||||
BKTR_DIR
|
||||
PBX_BKTR
|
||||
BLUETOOTH_LIB
|
||||
BLUETOOTH_INCLUDE
|
||||
BLUETOOTH_DIR
|
||||
PBX_BLUETOOTH
|
||||
CAP_LIB
|
||||
CAP_INCLUDE
|
||||
CAP_DIR
|
||||
@@ -827,6 +831,10 @@ MISDN_LIB
|
||||
MISDN_INCLUDE
|
||||
MISDN_DIR
|
||||
PBX_MISDN
|
||||
MYSQLCLIENT_LIB
|
||||
MYSQLCLIENT_INCLUDE
|
||||
MYSQLCLIENT_DIR
|
||||
PBX_MYSQLCLIENT
|
||||
NBS_LIB
|
||||
NBS_INCLUDE
|
||||
NBS_DIR
|
||||
@@ -1008,6 +1016,7 @@ GSM_INTERNAL
|
||||
CONFIG_LIBXML2
|
||||
PBX_MISDN_FAC_RESULT
|
||||
PBX_MISDN_FAC_ERROR
|
||||
CONFIG_MYSQLCLIENT
|
||||
CONFIG_NEON
|
||||
CONFIG_NETSNMP
|
||||
PG_CONFIG
|
||||
@@ -1647,6 +1656,7 @@ Optional Packages:
|
||||
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
||||
--with-asound=PATH use Advanced Linux Sound Architecture files in PATH
|
||||
--with-execinfo=PATH use Stack Backtrace support files in PATH
|
||||
--with-bluetooth=PATH use Bluetooth Support files in PATH
|
||||
--with-cap=PATH use POSIX 1.e capabilities files in PATH
|
||||
--with-curl=PATH use cURL files in PATH
|
||||
--with-curses=PATH use curses files in PATH
|
||||
@@ -1672,6 +1682,7 @@ Optional Packages:
|
||||
--with-ltdl=PATH use libtool files in PATH
|
||||
--with-lua=PATH use Lua files in PATH
|
||||
--with-misdn=PATH use mISDN User Library files in PATH
|
||||
--with-mysqlclient=PATH use mysqlclient files in PATH
|
||||
--with-nbs=PATH use Network Broadcast Sound files in PATH
|
||||
--with-ncurses=PATH use ncurses files in PATH
|
||||
--with-neon=PATH use neon files in PATH
|
||||
@@ -8187,6 +8198,37 @@ fi
|
||||
|
||||
|
||||
|
||||
BLUETOOTH_DESCRIP="Bluetooth Support"
|
||||
BLUETOOTH_OPTION="bluetooth"
|
||||
PBX_BLUETOOTH=0
|
||||
|
||||
# Check whether --with-bluetooth was given.
|
||||
if test "${with_bluetooth+set}" = set; then
|
||||
withval=$with_bluetooth;
|
||||
case ${withval} in
|
||||
n|no)
|
||||
USE_BLUETOOTH=no
|
||||
# -1 is a magic value used by menuselect to know that the package
|
||||
# was disabled, other than 'not found'
|
||||
PBX_BLUETOOTH=-1
|
||||
;;
|
||||
y|ye|yes)
|
||||
ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
|
||||
;;
|
||||
*)
|
||||
BLUETOOTH_DIR="${withval}"
|
||||
ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
|
||||
;;
|
||||
esac
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
CAP_DESCRIP="POSIX 1.e capabilities"
|
||||
CAP_OPTION="cap"
|
||||
PBX_CAP=0
|
||||
@@ -8931,6 +8973,37 @@ fi
|
||||
|
||||
|
||||
|
||||
MYSQLCLIENT_DESCRIP="mysqlclient"
|
||||
MYSQLCLIENT_OPTION="mysqlclient"
|
||||
PBX_MYSQLCLIENT=0
|
||||
|
||||
# Check whether --with-mysqlclient was given.
|
||||
if test "${with_mysqlclient+set}" = set; then
|
||||
withval=$with_mysqlclient;
|
||||
case ${withval} in
|
||||
n|no)
|
||||
USE_MYSQLCLIENT=no
|
||||
# -1 is a magic value used by menuselect to know that the package
|
||||
# was disabled, other than 'not found'
|
||||
PBX_MYSQLCLIENT=-1
|
||||
;;
|
||||
y|ye|yes)
|
||||
ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
|
||||
;;
|
||||
*)
|
||||
MYSQLCLIENT_DIR="${withval}"
|
||||
ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
|
||||
;;
|
||||
esac
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
NBS_DESCRIP="Network Broadcast Sound"
|
||||
NBS_OPTION="nbs"
|
||||
PBX_NBS=0
|
||||
@@ -38129,6 +38202,185 @@ fi
|
||||
fi
|
||||
|
||||
|
||||
if test "x${PBX_MYSQLCLIENT}" != "x1" -a "${USE_MYSQLCLIENT}" != "no"; then
|
||||
PBX_MYSQLCLIENT=0
|
||||
if test -n "$ac_tool_prefix"; then
|
||||
# Extract the first word of "${ac_tool_prefix}mysql_config", so it can be a program name with args.
|
||||
set dummy ${ac_tool_prefix}mysql_config; ac_word=$2
|
||||
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
||||
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
||||
if test "${ac_cv_prog_CONFIG_MYSQLCLIENT+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
if test -n "$CONFIG_MYSQLCLIENT"; then
|
||||
ac_cv_prog_CONFIG_MYSQLCLIENT="$CONFIG_MYSQLCLIENT" # Let the user override the test.
|
||||
else
|
||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
||||
for as_dir in $PATH
|
||||
do
|
||||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
ac_cv_prog_CONFIG_MYSQLCLIENT="${ac_tool_prefix}mysql_config"
|
||||
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
fi
|
||||
done
|
||||
done
|
||||
IFS=$as_save_IFS
|
||||
|
||||
fi
|
||||
fi
|
||||
CONFIG_MYSQLCLIENT=$ac_cv_prog_CONFIG_MYSQLCLIENT
|
||||
if test -n "$CONFIG_MYSQLCLIENT"; then
|
||||
{ echo "$as_me:$LINENO: result: $CONFIG_MYSQLCLIENT" >&5
|
||||
echo "${ECHO_T}$CONFIG_MYSQLCLIENT" >&6; }
|
||||
else
|
||||
{ echo "$as_me:$LINENO: result: no" >&5
|
||||
echo "${ECHO_T}no" >&6; }
|
||||
fi
|
||||
|
||||
|
||||
fi
|
||||
if test -z "$ac_cv_prog_CONFIG_MYSQLCLIENT"; then
|
||||
ac_ct_CONFIG_MYSQLCLIENT=$CONFIG_MYSQLCLIENT
|
||||
# Extract the first word of "mysql_config", so it can be a program name with args.
|
||||
set dummy mysql_config; ac_word=$2
|
||||
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
||||
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
||||
if test "${ac_cv_prog_ac_ct_CONFIG_MYSQLCLIENT+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
if test -n "$ac_ct_CONFIG_MYSQLCLIENT"; then
|
||||
ac_cv_prog_ac_ct_CONFIG_MYSQLCLIENT="$ac_ct_CONFIG_MYSQLCLIENT" # Let the user override the test.
|
||||
else
|
||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
||||
for as_dir in $PATH
|
||||
do
|
||||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
||||
ac_cv_prog_ac_ct_CONFIG_MYSQLCLIENT="mysql_config"
|
||||
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
fi
|
||||
done
|
||||
done
|
||||
IFS=$as_save_IFS
|
||||
|
||||
fi
|
||||
fi
|
||||
ac_ct_CONFIG_MYSQLCLIENT=$ac_cv_prog_ac_ct_CONFIG_MYSQLCLIENT
|
||||
if test -n "$ac_ct_CONFIG_MYSQLCLIENT"; then
|
||||
{ echo "$as_me:$LINENO: result: $ac_ct_CONFIG_MYSQLCLIENT" >&5
|
||||
echo "${ECHO_T}$ac_ct_CONFIG_MYSQLCLIENT" >&6; }
|
||||
else
|
||||
{ echo "$as_me:$LINENO: result: no" >&5
|
||||
echo "${ECHO_T}no" >&6; }
|
||||
fi
|
||||
|
||||
if test "x$ac_ct_CONFIG_MYSQLCLIENT" = x; then
|
||||
CONFIG_MYSQLCLIENT="No"
|
||||
else
|
||||
case $cross_compiling:$ac_tool_warned in
|
||||
yes:)
|
||||
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
||||
whose name does not start with the host triplet. If you think this
|
||||
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
||||
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
||||
whose name does not start with the host triplet. If you think this
|
||||
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
||||
ac_tool_warned=yes ;;
|
||||
esac
|
||||
CONFIG_MYSQLCLIENT=$ac_ct_CONFIG_MYSQLCLIENT
|
||||
fi
|
||||
else
|
||||
CONFIG_MYSQLCLIENT="$ac_cv_prog_CONFIG_MYSQLCLIENT"
|
||||
fi
|
||||
|
||||
if test ! "x${CONFIG_MYSQLCLIENT}" = xNo; then
|
||||
if test x"" = x ; then A=--cflags ; else A="" ; fi
|
||||
MYSQLCLIENT_INCLUDE=$(${CONFIG_MYSQLCLIENT} $A)
|
||||
if test x"" = x ; then A=--libs ; else A="" ; fi
|
||||
MYSQLCLIENT_LIB=$(${CONFIG_MYSQLCLIENT} $A)
|
||||
if test x"" != x ; then
|
||||
saved_cppflags="${CPPFLAGS}"
|
||||
if test "x${MYSQLCLIENT_DIR}" != "x"; then
|
||||
MYSQLCLIENT_INCLUDE="-I${MYSQLCLIENT_DIR}/include"
|
||||
fi
|
||||
CPPFLAGS="${CPPFLAGS} ${MYSQLCLIENT_INCLUDE}"
|
||||
|
||||
saved_libs="${LIBS}"
|
||||
LIBS="${MYSQLCLIENT_LIB}"
|
||||
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
;
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext conftest$ac_exeext
|
||||
if { (ac_try="$ac_link"
|
||||
case "(($ac_try" in
|
||||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
*) ac_try_echo=$ac_try;;
|
||||
esac
|
||||
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
||||
(eval "$ac_link") 2>conftest.er1
|
||||
ac_status=$?
|
||||
grep -v '^ *+' conftest.er1 >conftest.err
|
||||
rm -f conftest.er1
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } && {
|
||||
test -z "$ac_c_werror_flag" ||
|
||||
test ! -s conftest.err
|
||||
} && test -s conftest$ac_exeext &&
|
||||
$as_test_x conftest$ac_exeext; then
|
||||
PBX_MYSQLCLIENT=1
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define HAVE_MYSQLCLIENT 1
|
||||
_ACEOF
|
||||
|
||||
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
|
||||
|
||||
fi
|
||||
|
||||
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
CPPFLAGS="${saved_cppflags}"
|
||||
LIBS="${saved_libs}"
|
||||
else
|
||||
PBX_MYSQLCLIENT=1
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define HAVE_MYSQLCLIENT 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
||||
if test "x${PBX_NBS}" != "x1" -a "${USE_NBS}" != "no"; then
|
||||
pbxlibdir=""
|
||||
# if --with-NBS=DIR has been specified, use it.
|
||||
@@ -40325,6 +40577,268 @@ _ACEOF
|
||||
fi
|
||||
|
||||
|
||||
|
||||
if test "x${PBX_BLUETOOTH}" != "x1" -a "${USE_BLUETOOTH}" != "no"; then
|
||||
pbxlibdir=""
|
||||
# if --with-BLUETOOTH=DIR has been specified, use it.
|
||||
if test "x${BLUETOOTH_DIR}" != "x"; then
|
||||
if test -d ${BLUETOOTH_DIR}/lib; then
|
||||
pbxlibdir="-L${BLUETOOTH_DIR}/lib"
|
||||
else
|
||||
pbxlibdir="-L${BLUETOOTH_DIR}"
|
||||
fi
|
||||
fi
|
||||
pbxfuncname="ba2str"
|
||||
if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
|
||||
AST_BLUETOOTH_FOUND=yes
|
||||
else
|
||||
as_ac_Lib=`echo "ac_cv_lib_bluetooth_${pbxfuncname}" | $as_tr_sh`
|
||||
{ echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lbluetooth" >&5
|
||||
echo $ECHO_N "checking for ${pbxfuncname} in -lbluetooth... $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="-lbluetooth ${pbxlibdir} $LIBS"
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
|
||||
/* Override any GCC internal prototype to avoid an error.
|
||||
Use char because int might match the return type of a GCC
|
||||
builtin and then its argument prototype would still apply. */
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
char ${pbxfuncname} ();
|
||||
int
|
||||
main ()
|
||||
{
|
||||
return ${pbxfuncname} ();
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext conftest$ac_exeext
|
||||
if { (ac_try="$ac_link"
|
||||
case "(($ac_try" in
|
||||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
*) ac_try_echo=$ac_try;;
|
||||
esac
|
||||
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
||||
(eval "$ac_link") 2>conftest.er1
|
||||
ac_status=$?
|
||||
grep -v '^ *+' conftest.er1 >conftest.err
|
||||
rm -f conftest.er1
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } && {
|
||||
test -z "$ac_c_werror_flag" ||
|
||||
test ! -s conftest.err
|
||||
} && test -s conftest$ac_exeext &&
|
||||
$as_test_x conftest$ac_exeext; then
|
||||
eval "$as_ac_Lib=yes"
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
eval "$as_ac_Lib=no"
|
||||
fi
|
||||
|
||||
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
LIBS=$ac_check_lib_save_LIBS
|
||||
fi
|
||||
ac_res=`eval echo '${'$as_ac_Lib'}'`
|
||||
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
||||
echo "${ECHO_T}$ac_res" >&6; }
|
||||
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
|
||||
AST_BLUETOOTH_FOUND=yes
|
||||
else
|
||||
AST_BLUETOOTH_FOUND=no
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
# now check for the header.
|
||||
if test "${AST_BLUETOOTH_FOUND}" = "yes"; then
|
||||
BLUETOOTH_LIB="${pbxlibdir} -lbluetooth "
|
||||
# if --with-BLUETOOTH=DIR has been specified, use it.
|
||||
if test "x${BLUETOOTH_DIR}" != "x"; then
|
||||
BLUETOOTH_INCLUDE="-I${BLUETOOTH_DIR}/include"
|
||||
fi
|
||||
BLUETOOTH_INCLUDE="${BLUETOOTH_INCLUDE} "
|
||||
if test "xbluetooth/bluetooth.h" = "x" ; then # no header, assume found
|
||||
BLUETOOTH_HEADER_FOUND="1"
|
||||
else # check for the header
|
||||
saved_cppflags="${CPPFLAGS}"
|
||||
CPPFLAGS="${CPPFLAGS} ${BLUETOOTH_INCLUDE}"
|
||||
if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
|
||||
{ echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
|
||||
echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
|
||||
if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
fi
|
||||
{ echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
|
||||
echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
|
||||
else
|
||||
# Is the header compilable?
|
||||
{ echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
|
||||
echo $ECHO_N "checking bluetooth/bluetooth.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 <bluetooth/bluetooth.h>
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext
|
||||
if { (ac_try="$ac_compile"
|
||||
case "(($ac_try" in
|
||||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
*) ac_try_echo=$ac_try;;
|
||||
esac
|
||||
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
||||
(eval "$ac_compile") 2>conftest.er1
|
||||
ac_status=$?
|
||||
grep -v '^ *+' conftest.er1 >conftest.err
|
||||
rm -f conftest.er1
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } && {
|
||||
test -z "$ac_c_werror_flag" ||
|
||||
test ! -s conftest.err
|
||||
} && test -s conftest.$ac_objext; then
|
||||
ac_header_compiler=yes
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
ac_header_compiler=no
|
||||
fi
|
||||
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
||||
echo "${ECHO_T}$ac_header_compiler" >&6; }
|
||||
|
||||
# Is the header present?
|
||||
{ echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
|
||||
echo $ECHO_N "checking bluetooth/bluetooth.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 <bluetooth/bluetooth.h>
|
||||
_ACEOF
|
||||
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
||||
case "(($ac_try" in
|
||||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
*) ac_try_echo=$ac_try;;
|
||||
esac
|
||||
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
||||
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
||||
ac_status=$?
|
||||
grep -v '^ *+' conftest.er1 >conftest.err
|
||||
rm -f conftest.er1
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } >/dev/null && {
|
||||
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
||||
test ! -s conftest.err
|
||||
}; then
|
||||
ac_header_preproc=yes
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
ac_header_preproc=no
|
||||
fi
|
||||
|
||||
rm -f conftest.err conftest.$ac_ext
|
||||
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
||||
echo "${ECHO_T}$ac_header_preproc" >&6; }
|
||||
|
||||
# So? What about this header?
|
||||
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
||||
yes:no: )
|
||||
{ echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
||||
echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
||||
{ echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
|
||||
echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
|
||||
ac_header_preproc=yes
|
||||
;;
|
||||
no:yes:* )
|
||||
{ echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
|
||||
echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
|
||||
{ echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
|
||||
echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
|
||||
{ echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
|
||||
echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
|
||||
{ echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
|
||||
echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
||||
{ echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
|
||||
echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
|
||||
{ echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
|
||||
echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
|
||||
( cat <<\_ASBOX
|
||||
## ------------------------------- ##
|
||||
## Report this to www.asterisk.org ##
|
||||
## ------------------------------- ##
|
||||
_ASBOX
|
||||
) | sed "s/^/$as_me: WARNING: /" >&2
|
||||
;;
|
||||
esac
|
||||
{ echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
|
||||
echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
|
||||
if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
|
||||
fi
|
||||
{ echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
|
||||
echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
|
||||
|
||||
fi
|
||||
if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
|
||||
BLUETOOTH_HEADER_FOUND=1
|
||||
else
|
||||
BLUETOOTH_HEADER_FOUND=0
|
||||
fi
|
||||
|
||||
|
||||
CPPFLAGS="${saved_cppflags}"
|
||||
fi
|
||||
if test "x${BLUETOOTH_HEADER_FOUND}" = "x0" ; then
|
||||
BLUETOOTH_LIB=""
|
||||
BLUETOOTH_INCLUDE=""
|
||||
else
|
||||
if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
|
||||
BLUETOOTH_LIB=""
|
||||
fi
|
||||
PBX_BLUETOOTH=1
|
||||
# XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_BLUETOOTH 1
|
||||
_ACEOF
|
||||
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_BLUETOOTH_VERSION
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# possible places for oss definitions
|
||||
|
||||
if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
|
||||
@@ -56160,6 +56674,10 @@ BKTR_LIB!$BKTR_LIB$ac_delim
|
||||
BKTR_INCLUDE!$BKTR_INCLUDE$ac_delim
|
||||
BKTR_DIR!$BKTR_DIR$ac_delim
|
||||
PBX_BKTR!$PBX_BKTR$ac_delim
|
||||
BLUETOOTH_LIB!$BLUETOOTH_LIB$ac_delim
|
||||
BLUETOOTH_INCLUDE!$BLUETOOTH_INCLUDE$ac_delim
|
||||
BLUETOOTH_DIR!$BLUETOOTH_DIR$ac_delim
|
||||
PBX_BLUETOOTH!$PBX_BLUETOOTH$ac_delim
|
||||
CAP_LIB!$CAP_LIB$ac_delim
|
||||
CAP_INCLUDE!$CAP_INCLUDE$ac_delim
|
||||
CAP_DIR!$CAP_DIR$ac_delim
|
||||
@@ -56238,10 +56756,6 @@ JACK_DIR!$JACK_DIR$ac_delim
|
||||
PBX_JACK!$PBX_JACK$ac_delim
|
||||
LDAP_LIB!$LDAP_LIB$ac_delim
|
||||
LDAP_INCLUDE!$LDAP_INCLUDE$ac_delim
|
||||
LDAP_DIR!$LDAP_DIR$ac_delim
|
||||
PBX_LDAP!$PBX_LDAP$ac_delim
|
||||
LIBXML2_LIB!$LIBXML2_LIB$ac_delim
|
||||
LIBXML2_INCLUDE!$LIBXML2_INCLUDE$ac_delim
|
||||
_ACEOF
|
||||
|
||||
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
|
||||
@@ -56283,6 +56797,10 @@ _ACEOF
|
||||
ac_delim='%!_!# '
|
||||
for ac_last_try in false false false false false :; do
|
||||
cat >conf$$subs.sed <<_ACEOF
|
||||
LDAP_DIR!$LDAP_DIR$ac_delim
|
||||
PBX_LDAP!$PBX_LDAP$ac_delim
|
||||
LIBXML2_LIB!$LIBXML2_LIB$ac_delim
|
||||
LIBXML2_INCLUDE!$LIBXML2_INCLUDE$ac_delim
|
||||
LIBXML2_DIR!$LIBXML2_DIR$ac_delim
|
||||
PBX_LIBXML2!$PBX_LIBXML2$ac_delim
|
||||
LTDL_LIB!$LTDL_LIB$ac_delim
|
||||
@@ -56297,6 +56815,10 @@ MISDN_LIB!$MISDN_LIB$ac_delim
|
||||
MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
|
||||
MISDN_DIR!$MISDN_DIR$ac_delim
|
||||
PBX_MISDN!$PBX_MISDN$ac_delim
|
||||
MYSQLCLIENT_LIB!$MYSQLCLIENT_LIB$ac_delim
|
||||
MYSQLCLIENT_INCLUDE!$MYSQLCLIENT_INCLUDE$ac_delim
|
||||
MYSQLCLIENT_DIR!$MYSQLCLIENT_DIR$ac_delim
|
||||
PBX_MYSQLCLIENT!$PBX_MYSQLCLIENT$ac_delim
|
||||
NBS_LIB!$NBS_LIB$ac_delim
|
||||
NBS_INCLUDE!$NBS_INCLUDE$ac_delim
|
||||
NBS_DIR!$NBS_DIR$ac_delim
|
||||
@@ -56372,14 +56894,6 @@ PBX_OPENH323!$PBX_OPENH323$ac_delim
|
||||
RADIUS_LIB!$RADIUS_LIB$ac_delim
|
||||
RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
|
||||
RADIUS_DIR!$RADIUS_DIR$ac_delim
|
||||
PBX_RADIUS!$PBX_RADIUS$ac_delim
|
||||
SDL_LIB!$SDL_LIB$ac_delim
|
||||
SDL_INCLUDE!$SDL_INCLUDE$ac_delim
|
||||
SDL_DIR!$SDL_DIR$ac_delim
|
||||
PBX_SDL!$PBX_SDL$ac_delim
|
||||
SDL_IMAGE_LIB!$SDL_IMAGE_LIB$ac_delim
|
||||
SDL_IMAGE_INCLUDE!$SDL_IMAGE_INCLUDE$ac_delim
|
||||
SDL_IMAGE_DIR!$SDL_IMAGE_DIR$ac_delim
|
||||
_ACEOF
|
||||
|
||||
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
|
||||
@@ -56421,6 +56935,14 @@ _ACEOF
|
||||
ac_delim='%!_!# '
|
||||
for ac_last_try in false false false false false :; do
|
||||
cat >conf$$subs.sed <<_ACEOF
|
||||
PBX_RADIUS!$PBX_RADIUS$ac_delim
|
||||
SDL_LIB!$SDL_LIB$ac_delim
|
||||
SDL_INCLUDE!$SDL_INCLUDE$ac_delim
|
||||
SDL_DIR!$SDL_DIR$ac_delim
|
||||
PBX_SDL!$PBX_SDL$ac_delim
|
||||
SDL_IMAGE_LIB!$SDL_IMAGE_LIB$ac_delim
|
||||
SDL_IMAGE_INCLUDE!$SDL_IMAGE_INCLUDE$ac_delim
|
||||
SDL_IMAGE_DIR!$SDL_IMAGE_DIR$ac_delim
|
||||
PBX_SDL_IMAGE!$PBX_SDL_IMAGE$ac_delim
|
||||
OPENAIS_LIB!$OPENAIS_LIB$ac_delim
|
||||
OPENAIS_INCLUDE!$OPENAIS_INCLUDE$ac_delim
|
||||
@@ -56510,14 +57032,6 @@ GC_LDFLAGS!$GC_LDFLAGS$ac_delim
|
||||
AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
|
||||
AST_FORTIFY_SOURCE!$AST_FORTIFY_SOURCE$ac_delim
|
||||
AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
|
||||
AST_SHADOW_WARNINGS!$AST_SHADOW_WARNINGS$ac_delim
|
||||
PBX_GLOB_NOMAGIC!$PBX_GLOB_NOMAGIC$ac_delim
|
||||
PBX_GLOB_BRACE!$PBX_GLOB_BRACE$ac_delim
|
||||
PBX_IP_MTU_DISCOVER!$PBX_IP_MTU_DISCOVER$ac_delim
|
||||
PBX_DAHDI_HALF_FULL!$PBX_DAHDI_HALF_FULL$ac_delim
|
||||
GSM_INTERNAL!$GSM_INTERNAL$ac_delim
|
||||
CONFIG_LIBXML2!$CONFIG_LIBXML2$ac_delim
|
||||
PBX_MISDN_FAC_RESULT!$PBX_MISDN_FAC_RESULT$ac_delim
|
||||
_ACEOF
|
||||
|
||||
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
|
||||
@@ -56559,7 +57073,16 @@ _ACEOF
|
||||
ac_delim='%!_!# '
|
||||
for ac_last_try in false false false false false :; do
|
||||
cat >conf$$subs.sed <<_ACEOF
|
||||
AST_SHADOW_WARNINGS!$AST_SHADOW_WARNINGS$ac_delim
|
||||
PBX_GLOB_NOMAGIC!$PBX_GLOB_NOMAGIC$ac_delim
|
||||
PBX_GLOB_BRACE!$PBX_GLOB_BRACE$ac_delim
|
||||
PBX_IP_MTU_DISCOVER!$PBX_IP_MTU_DISCOVER$ac_delim
|
||||
PBX_DAHDI_HALF_FULL!$PBX_DAHDI_HALF_FULL$ac_delim
|
||||
GSM_INTERNAL!$GSM_INTERNAL$ac_delim
|
||||
CONFIG_LIBXML2!$CONFIG_LIBXML2$ac_delim
|
||||
PBX_MISDN_FAC_RESULT!$PBX_MISDN_FAC_RESULT$ac_delim
|
||||
PBX_MISDN_FAC_ERROR!$PBX_MISDN_FAC_ERROR$ac_delim
|
||||
CONFIG_MYSQLCLIENT!$CONFIG_MYSQLCLIENT$ac_delim
|
||||
CONFIG_NEON!$CONFIG_NEON$ac_delim
|
||||
CONFIG_NETSNMP!$CONFIG_NETSNMP$ac_delim
|
||||
PG_CONFIG!$PG_CONFIG$ac_delim
|
||||
@@ -56602,7 +57125,7 @@ PBX_SYSLOG!$PBX_SYSLOG$ac_delim
|
||||
LTLIBOBJS!$LTLIBOBJS$ac_delim
|
||||
_ACEOF
|
||||
|
||||
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 41; then
|
||||
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
|
||||
break
|
||||
elif $ac_last_try; then
|
||||
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
||||
|
Reference in New Issue
Block a user