diff --git a/public-trunk/Transceiver52M/Makefile.am b/public-trunk/Transceiver52M/Makefile.am index 395d7e9..7b40c6e 100644 --- a/public-trunk/Transceiver52M/Makefile.am +++ b/public-trunk/Transceiver52M/Makefile.am @@ -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 \ diff --git a/public-trunk/configure.ac b/public-trunk/configure.ac index 2b2a9a6..7b3424a 100644 --- a/public-trunk/configure.ac +++ b/public-trunk/configure.ac @@ -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