2016-03-01 17:40:38 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script
|
|
|
|
AC_INIT([abcnetz],
|
|
|
|
m4_esyscmd([./git-version-gen .tarball-version]),
|
|
|
|
[authors@their.domains])
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE([dist-bzip2])
|
|
|
|
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
|
|
|
|
dnl kernel style compile messages
|
|
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|
|
|
|
|
|
|
dnl checks for programs
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CXX
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
LT_INIT
|
|
|
|
|
|
|
|
dnl checks for header files
|
|
|
|
AC_HEADER_STDC
|
|
|
|
|
|
|
|
dnl Checks for typedefs, structures and compiler characteristics
|
|
|
|
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
|
2017-02-25 05:29:09 +00:00
|
|
|
AC_CHECK_LIB([m], [main])
|
|
|
|
AC_CHECK_LIB([pthread], [main])
|
2016-03-01 17:40:38 +00:00
|
|
|
|
2017-02-25 05:29:09 +00:00
|
|
|
PKG_CHECK_MODULES(ALSA, alsa >= 1.0)
|
2017-02-18 12:51:26 +00:00
|
|
|
|
|
|
|
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" )
|
2017-07-11 18:26:40 +00:00
|
|
|
AS_IF([test "x$with_uhd" == "xyes"],[AC_MSG_NOTICE( Compiling with UHD SDR support )], [AC_MSG_NOTICE( UHD SDR not support )])
|
|
|
|
AS_IF([test "x$with_soapy" == "xyes"],[AC_MSG_NOTICE( Compiling with SoapySDR support )], [AC_MSG_NOTICE( SoapySDR not support )])
|
2017-01-04 13:21:49 +00:00
|
|
|
|
2016-03-01 17:40:38 +00:00
|
|
|
AC_OUTPUT(
|
|
|
|
src/common/Makefile
|
|
|
|
src/anetz/Makefile
|
|
|
|
src/bnetz/Makefile
|
2016-02-16 17:56:55 +00:00
|
|
|
src/cnetz/Makefile
|
2016-02-21 17:13:30 +00:00
|
|
|
src/nmt/Makefile
|
2016-05-01 17:51:56 +00:00
|
|
|
src/amps/Makefile
|
2017-05-30 10:49:40 +00:00
|
|
|
src/tacs/Makefile
|
2016-04-23 12:33:02 +00:00
|
|
|
src/test/Makefile
|
2016-03-01 17:40:38 +00:00
|
|
|
src/Makefile
|
2016-07-25 16:40:27 +00:00
|
|
|
sim/Makefile
|
2016-03-01 17:40:38 +00:00
|
|
|
Makefile)
|
|
|
|
|
|
|
|
|