build: insert autofoo for usrp transceiver and options
Usage: ./configure --with-usrp1 Enable non-UHD USRP1 support through the gnuradio-based driver. Requires gnuradio (libusrp) to be installed. ./configure --with-resample Enable host-based 400ksps to 270.833ksps resampling. Only supported for UHD devices. If not enabled, the GSM sample rate is requested directly from the device. Signed-off-by: Thomas Tsou <ttsou@vt.edu>
This commit is contained in:
parent
ba7a18d80d
commit
44fe0df73f
|
@ -46,9 +46,15 @@ COMMON_SOURCES = \
|
|||
sigProcLib.cpp \
|
||||
Transceiver.cpp
|
||||
|
||||
if RESAMPLE
|
||||
libtransceiver_la_SOURCES = \
|
||||
$(COMMON_SOURCES) \
|
||||
radioIOResamp.cpp
|
||||
else
|
||||
libtransceiver_la_SOURCES = \
|
||||
$(COMMON_SOURCES) \
|
||||
radioIO.cpp
|
||||
endif
|
||||
|
||||
noinst_PROGRAMS = \
|
||||
USRPping \
|
||||
|
|
|
@ -62,6 +62,11 @@ AC_ARG_WITH(usrp1, [
|
|||
[enable USRP1 gnuradio based transceiver])
|
||||
])
|
||||
|
||||
AC_ARG_WITH(resamp, [
|
||||
AS_HELP_STRING([--with-resamp],
|
||||
[enable resampling for non-52MHz devices])
|
||||
])
|
||||
|
||||
AS_IF([test "x$with_usrp1" = "xyes"], [
|
||||
# Defines USRP_CFLAGS, USRP_INCLUDEDIR, and USRP_LIBS
|
||||
PKG_CHECK_MODULES(USRP, usrp > 3.1)
|
||||
|
@ -80,6 +85,11 @@ AS_IF([test "x$with_usrp1" = "xyes"], [
|
|||
AC_DEFINE(USE_UHD, 1, Define to 1 if using UHD)
|
||||
])
|
||||
|
||||
AS_IF([test "x$with_resamp" = "xyes"], [
|
||||
AC_DEFINE(RESAMPLE, 1, Define to 1 for resampling)
|
||||
])
|
||||
|
||||
AM_CONDITIONAL(RESAMPLE, [test "x$with_resamp" = "xyes"])
|
||||
AM_CONDITIONAL(UHD, [test "x$with_usrp1" != "xyes"])
|
||||
|
||||
# Defines OSIP_CFLAGS, OSIP_INCLUDEDIR, and OSIP_LIBS
|
||||
|
|
Reference in New Issue