src/temporal/filter.c: reset filter memory in filtfilt
[aubio.git] / configure.ac
index 7fb40c691e01bc0a776460a465a86c6a57abfe1a..5c3c19be87f1b56a95c3073f2546c936b66cc993 100644 (file)
@@ -36,6 +36,16 @@ AC_PROG_INSTALL
 
 AUBIO_CFLAGS=
 
+dnl Enable double precision (no)
+AC_ARG_ENABLE(double,
+  AC_HELP_STRING([--enable-double],[compile in double precision [[default=no]]]),
+  with_double_precision="yes",
+  with_double_precision="no")
+if test "$with_double_precision" = "yes"
+then
+  AC_DEFINE(HAVE_AUBIO_DOUBLE,1,[Define to enable double precision])
+fi
+
 dnl Enable debugging (no)
 AC_ARG_ENABLE(debug,
   AC_HELP_STRING([--enable-debug],[compile in debug mode [[default=no]]]),
@@ -156,17 +166,24 @@ AC_ARG_ENABLE(samplerate,
   [with_samplerate=$enableval],
   with_samplerate="yes")
 if test "$with_samplerate" = "yes"; then
-  PKG_CHECK_MODULES(SAMPLERATE, samplerate  >= 0.0.15,  HAVE_SAMPLERATE=1)
+  PKG_CHECK_MODULES(SAMPLERATE, samplerate  >= 0.0.15,  HAVE_SAMPLERATE=1,
+                    HAVE_SAMPLERATE=0)
   if test "${HAVE_SAMPLERATE}" = "1"; then
     AC_DEFINE(HAVE_SAMPLERATE,1,[Define to enable libsamplerate support])
   fi
 fi
 
 dnl Check for fftw3 (required)
+dnl if we compile in double precsion, default to fftw3, else fftw3f
+if test "$with_double_precision" = "yes"; then
+    default_fftw3f="no"
+else
+    default_fftw3f="yes"
+fi
 AC_ARG_ENABLE(fftw3f,
   AC_HELP_STRING([--enable-fftw3f],[compile with fftw3f [[default=auto]]]),
   [with_fftw3f=$enableval],
-  with_fftw3f="yes")
+  [with_fftw3f=$default_fftw3f])
 if test "$with_fftw3f" = "yes"; then
   PKG_CHECK_MODULES(FFTWLIB,    fftw3f >= 3.0.0,     HAVE_FFTW3F=1, HAVE_FFTW3F=0)
 else
@@ -240,7 +257,6 @@ dnl Create Makefiles
 AC_OUTPUT([
     Makefile
     src/Makefile
-    ext/Makefile
     examples/Makefile
     tests/Makefile
     tests/src/Makefile