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]),
2018-02-16 14:53:48 +00:00
[jolly@eversberg.eu])
2016-03-01 17:40:38 +00:00
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-18 12:51:26 +00:00
with_sdr=no
2018-01-21 09:43:45 +00:00
AC_ARG_WITH([alsa], [AS_HELP_STRING([--with-alsa], [compile with Alsa driver @<:@default=check@:>@]) ], [], [with_alsa="check"])
2017-02-18 12:51:26 +00:00
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"])
2018-02-16 14:53:48 +00:00
AC_ARG_WITH([imagemagick], [AS_HELP_STRING([--with-imagemagick], [compile with ImageMagick support @<:@default=check@:>@]) ], [], [with_imagemagick="check"])
2018-01-21 09:43:45 +00:00
AS_IF([test "x$with_alsa" != xno], [PKG_CHECK_MODULES(ALSA, alsa >= 1.0, with_alsa=yes, with_alsa=no)])
2017-02-18 12:51:26 +00:00
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)])
2018-02-16 14:53:48 +00:00
AS_IF([test "x$with_imagemagick" != xno], [PKG_CHECK_MODULES(IMAGEMAGICK, ImageMagick >= 6.0.0, with_imagemagick=yes, with_imagemagick=no)])
2018-01-21 09:43:45 +00:00
AM_CONDITIONAL(HAVE_ALSA, test "x$with_alsa" == "xyes" )
2017-02-18 12:51:26 +00:00
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" )
2018-02-16 14:53:48 +00:00
AM_CONDITIONAL(HAVE_MAGICK, test "x$with_imagemagick" == "xyes" )
2018-01-21 09:43:45 +00:00
AS_IF([test "x$with_alsa" == "xyes"],[AC_MSG_NOTICE( Compiling with Alsa support )], [AC_MSG_NOTICE( Alsa sound card not supported. Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. )])
2017-09-11 18:31:29 +00:00
AS_IF([test "x$with_uhd" == "xyes"],[AC_MSG_NOTICE( Compiling with UHD SDR support )], [AC_MSG_NOTICE( UHD SDR not supported. Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. )])
AS_IF([test "x$with_soapy" == "xyes"],[AC_MSG_NOTICE( Compiling with SoapySDR support )], [AC_MSG_NOTICE( SoapySDR not supported. Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. )])
2018-02-16 14:53:48 +00:00
AS_IF([test "x$with_imagemagick" == "xyes"],[AC_MSG_NOTICE( Compiling with ImageMagick )],[AC_MSG_NOTICE( ImageMagick not supported. Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. )])
AS_IF([test "x$with_alsa" != "xyes" -a "x$with_sdr" != "xyes"],[AC_MSG_FAILURE( Without sound nor SDR support this project does not make sense. Please support sound card for analog transceivers or better SDR!" )],[])
2017-01-04 13:21:49 +00:00
2016-03-01 17:40:38 +00:00
AC_OUTPUT(
2017-11-18 07:58:57 +00:00
src/libdebug/Makefile
2017-11-18 07:33:07 +00:00
src/libmobile/Makefile
2017-11-18 07:49:13 +00:00
src/libdisplay/Makefile
2017-11-17 08:06:57 +00:00
src/libimage/Makefile
2017-11-18 11:54:12 +00:00
src/libsendevolumenregler/Makefile
2017-11-16 20:13:28 +00:00
src/libcompandor/Makefile
2017-11-16 06:34:16 +00:00
src/libgoertzel/Makefile
2017-11-15 19:21:57 +00:00
src/libjitter/Makefile
2017-11-15 18:08:37 +00:00
src/libsquelch/Makefile
2017-11-15 18:03:29 +00:00
src/libhagelbarger/Makefile
2017-11-15 17:45:56 +00:00
src/libdtmf/Makefile
2017-11-13 19:00:52 +00:00
src/libtimer/Makefile
2017-11-13 18:34:05 +00:00
src/libsamplerate/Makefile
2017-11-14 20:04:58 +00:00
src/libscrambler/Makefile
2017-11-16 17:16:53 +00:00
src/libemphasis/Makefile
2017-11-16 20:04:23 +00:00
src/libfsk/Makefile
2018-01-20 15:01:41 +00:00
src/libam/Makefile
2017-11-16 18:18:42 +00:00
src/libfm/Makefile
2017-11-13 18:15:09 +00:00
src/libfilter/Makefile
2017-11-15 17:56:39 +00:00
src/libwave/Makefile
2017-11-16 17:37:25 +00:00
src/libfft/Makefile
2017-11-17 08:01:44 +00:00
src/libmncc/Makefile
2017-11-17 11:16:39 +00:00
src/libsound/Makefile
2017-11-17 21:51:18 +00:00
src/libsdr/Makefile
2017-11-18 07:06:06 +00:00
src/libsample/Makefile
2018-01-20 14:59:39 +00:00
src/libclipper/Makefile
2016-03-01 17:40:38 +00:00
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
2017-08-27 16:02:43 +00:00
src/jtacs/Makefile
2017-06-10 13:30:20 +00:00
src/r2000/Makefile
2017-11-12 14:59:48 +00:00
src/jolly/Makefile
2017-08-20 05:43:41 +00:00
src/tv/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)