aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-02-18 13:51:26 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2017-02-18 21:02:55 +0100
commit438ce08add20e8c5daa0377273a84e868844a6b5 (patch)
tree77d88aaf1f3b222bf4b502910484deef88cd5650 /configure.ac
parent17b61241224631142ffb5e560ae527b853996bba (diff)
SoapySDR support
There is no time stamp handling. It is just TX'ing in advance and synchronous to received RX rate.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac15
1 files changed, 11 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 58543f3..63175a7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,10 +26,17 @@ AC_CANONICAL_HOST
PKG_CHECK_MODULES(ALSA, alsa >= 1.0)
-have_sdr=no
-PKG_CHECK_MODULES(UHD, uhd >= 3.0.0, have_sdr=yes have_uhd=yes, have_uhd=no)
-AM_CONDITIONAL(HAVE_UHD, test "x$have_uhd" == "xyes" )
-AM_CONDITIONAL(HAVE_SDR, test "x$have_sdr" == "xyes" )
+
+with_sdr=no
+AC_ARG_WITH([uhd], [AS_HELP_STRING([--with-uhd], [compile with UHD driver @<:@default=check@:>@]) ], [], [with_uhd="check"])
+AC_ARG_WITH([soapy], [AS_HELP_STRING([--with-soapy], [compile with SoapySDR driver @<:@default=check@:>@]) ], [], [with_soapy="check"])
+AS_IF([test "x$with_uhd" != xno], [PKG_CHECK_MODULES(UHD, uhd >= 3.0.0, with_sdr=yes with_uhd=yes, with_uhd=no)])
+AS_IF([test "x$with_soapy" != xno], [PKG_CHECK_MODULES(SOAPY, SoapySDR >= 0.6.0, with_sdr=yes with_soapy=yes, with_soapy=no)])
+AM_CONDITIONAL(HAVE_UHD, test "x$with_uhd" == "xyes" )
+AM_CONDITIONAL(HAVE_SOAPY, test "x$with_soapy" == "xyes" )
+AM_CONDITIONAL(HAVE_SDR, test "x$with_sdr" == "xyes" )
+AS_IF([test "x$with_uhd" == "xyes"],[AC_MSG_NOTICE( Compiling with UHD SDR support )], [])
+AS_IF([test "x$with_soapy" == "xyes"],[AC_MSG_NOTICE( Compiling with SoapySDR support )], [])
AC_OUTPUT(
src/common/Makefile