From f55357cd0bcbc0a86f4ea9056584885897a8ec6c Mon Sep 17 00:00:00 2001 From: Diego Elio 'Flameeyes' Pettenò Date: Wed, 7 Oct 2009 19:30:11 +0200 Subject: Add check for FFTW, and add option to disable it at build-time. This way there will be a message at configure if FFTW is not found, and this gets in-line with the rest of the modules' dependencies. --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index fd10c83e..77ec8846 100644 --- a/configure.ac +++ b/configure.ac @@ -1273,6 +1273,16 @@ AC_SUBST(OPENSSL_LIBS) AC_SUBST(HAVE_OPENSSL) AM_CONDITIONAL([HAVE_OPENSSL], [test "x$HAVE_OPENSSL" = x1]) +#### FFTW (optional) #### +AC_ARG_WITH( + [fftw], + AS_HELP_STRING([--without-fftw], [Omit FFTW-using modules (equalizer)])) + +if test "x${with_fftw}" != "xno"; then + PKG_CHECK_MODULES([FFTW], [fftw3f], [HAVE_FFTW=1], [HAVE_FFTW=0]) +fi +AM_CONDITIONAL([HAVE_FFTW], [test "x$HAVE_FFTW" = "x1"]) + ### Build and Install man pages ### AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages],[Disable building and installation of man pages]), -- cgit