mirror of
https://github.com/RangeNetworks/openbts.git
synced 2025-10-23 07:42:01 +00:00
Remove the built time resampling selection and link both options. Move the normal push/pullBuffer() calls back to the base class and overload them in the inherited resampling class. USRP2/N2xx devices are the only devices that require resampling so return that resampling is necessary on the device open(), which is the point at which the device type will be known. The GSM transceiver only operates at a whole number multiple of the GSM rate and doesn't care about the actual device rate and if resampling is used. Therefore GSM specific portion of the transceiver should only need to submit the samples-per-symbol value to the device interface. Then, the device should be able to determine the appropriate sample rate (400 ksps or 270.833 ksps) and if resampling is appropriate. Signed-off-by: Thomas Tsou <tom@tsou.cc> git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@6723 19bc5d8c-e614-43d4-8b26-e1612bc8e597
140 lines
3.9 KiB
Plaintext
140 lines
3.9 KiB
Plaintext
dnl
|
|
dnl Copyright 2008, 2009, 2010 Free Software Foundation, Inc.
|
|
dnl
|
|
dnl This software is distributed under the terms of the GNU Public License.
|
|
dnl See the COPYING file in the main directory for details.
|
|
dnl
|
|
dnl This program is free software: you can redistribute it and/or modify
|
|
dnl it under the terms of the GNU General Public License as published by
|
|
dnl the Free Software Foundation, either version 3 of the License, or
|
|
dnl (at your option) any later version.
|
|
dnl
|
|
dnl This program is distributed in the hope that it will be useful,
|
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
dnl GNU General Public License for more details.
|
|
dnl
|
|
dnl You should have received a copy of the GNU General Public License
|
|
dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
dnl
|
|
|
|
AC_INIT(openbts-public,TRUNK)
|
|
AC_PREREQ(2.57)
|
|
AC_CONFIG_SRCDIR([config/Makefile.am])
|
|
AC_CONFIG_AUX_DIR([.])
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
AC_CANONICAL_BUILD
|
|
AC_CANONICAL_HOST
|
|
AC_CANONICAL_TARGET
|
|
|
|
AM_INIT_AUTOMAKE
|
|
|
|
AM_PROG_AS
|
|
AC_PROG_CXX
|
|
AC_PROG_LN_S
|
|
AC_PROG_MAKE_SET
|
|
AC_PROG_INSTALL
|
|
AC_PATH_PROG([RM_PROG], [rm])
|
|
|
|
AC_LIBTOOL_WIN32_DLL
|
|
AC_ENABLE_SHARED dnl do build shared libraries
|
|
AC_DISABLE_STATIC dnl don't build static libraries
|
|
AC_PROG_LIBTOOL
|
|
|
|
dnl Checks for header files.
|
|
AC_HEADER_STDC
|
|
dnl This is required for GnuRadio includes to understand endianess correctly:
|
|
AC_CHECK_HEADERS([byteswap.h])
|
|
|
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
|
AC_C_CONST
|
|
AC_C_INLINE
|
|
AC_TYPE_SIZE_T
|
|
AC_HEADER_TIME
|
|
AC_C_BIGENDIAN
|
|
|
|
AC_ARG_WITH(usrp1, [
|
|
AS_HELP_STRING([--with-usrp1],
|
|
[enable USRP1 gnuradio based transceiver])
|
|
])
|
|
|
|
AC_ARG_WITH(uhd, [
|
|
AS_HELP_STRING([--with-uhd],
|
|
[enable UHD based transceiver])
|
|
])
|
|
|
|
AC_ARG_WITH(singledb, [
|
|
AS_HELP_STRING([--with-singledb],
|
|
[enable single daughterboard use on USRP1])
|
|
])
|
|
|
|
AC_ARG_WITH(extref, [
|
|
AS_HELP_STRING([--with-extref],
|
|
[enable external reference on UHD devices])
|
|
])
|
|
|
|
AS_IF([test "x$with_usrp1" = "xyes"], [
|
|
# Defines USRP_CFLAGS, USRP_INCLUDEDIR, and USRP_LIBS
|
|
PKG_CHECK_MODULES(USRP, usrp > 3.1)
|
|
# Check whether we have libusrp >= 3.2
|
|
PKG_CHECK_EXISTS(usrp >= 3.2, libusrp_3_2=yes, libusrp_3_2=no)
|
|
if test "x$libusrp_3_2" = "xyes";then
|
|
AC_DEFINE(HAVE_LIBUSRP_3_2, 1, Define to 1 if you have libusrp >= 3.2)
|
|
fi
|
|
# Check whether we have libusrp >= 3.3
|
|
PKG_CHECK_EXISTS(usrp >= 3.3, libusrp_3_3=yes, libusrp_3_3=no)
|
|
if test "x$libusrp_3_3" = "xyes";then
|
|
AC_DEFINE(HAVE_LIBUSRP_3_3, 1, Define to 1 if you have libusrp >= 3.3)
|
|
fi
|
|
])
|
|
|
|
AS_IF([test "x$with_uhd" = "xyes"],[
|
|
PKG_CHECK_MODULES(UHD, uhd >= 003.004.000)
|
|
AC_DEFINE(USE_UHD, 1, Define to 1 if using UHD)
|
|
])
|
|
|
|
AS_IF([test "x$with_extref" = "xyes"], [
|
|
AC_DEFINE(EXTREF, 1, Define to 1 for external reference)
|
|
])
|
|
|
|
AS_IF([test "x$with_singledb" = "xyes"], [
|
|
AC_DEFINE(SINGLEDB, 1, Define to 1 for single daughterboard)
|
|
])
|
|
|
|
AM_CONDITIONAL(UHD, [test "x$with_uhd" = "xyes"])
|
|
AM_CONDITIONAL(USRP1, [test "x$with_usrp1" = "xyes"])
|
|
|
|
|
|
# Defines LIBUSB_TRANSFER_CANCELLED, LIBUSB_TRANSFER_COMPLETED, LIBUSB_SUCCESS, LIBUSB_ERROR_*
|
|
PKG_CHECK_MODULES(LIBUSB, libusb-1.0)
|
|
|
|
# Check for glibc-specific network functions
|
|
AC_CHECK_FUNC(gethostbyname_r, [AC_DEFINE(HAVE_GETHOSTBYNAME_R, 1, Define if libc implements gethostbyname_r)])
|
|
AC_CHECK_FUNC(gethostbyname2_r, [AC_DEFINE(HAVE_GETHOSTBYNAME2_R, 1, Define if libc implements gethostbyname2_r)])
|
|
|
|
dnl Output files
|
|
AC_CONFIG_FILES([\
|
|
Makefile \
|
|
apps/Makefile \
|
|
config/Makefile \
|
|
doc/Makefile \
|
|
CommonLibs/Makefile \
|
|
Globals/Makefile \
|
|
Control/Makefile \
|
|
GSM/Makefile \
|
|
GPRS/Makefile \
|
|
SGSNGGSN/Makefile \
|
|
SIP/Makefile \
|
|
SMS/Makefile \
|
|
TransceiverRAD1/Makefile \
|
|
Transceiver52M/Makefile \
|
|
TRXManager/Makefile \
|
|
CLI/Makefile \
|
|
Peering/Makefile \
|
|
SR/Makefile \
|
|
sqlite3/Makefile \
|
|
])
|
|
|
|
AC_OUTPUT
|