Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vsipl++] [patch] Fix FFT macros when neutral_acconfig = n


  • To: VSIPL++ Developers List <vsipl++@xxxxxxxxxxxxxxxx>
  • Subject: [vsipl++] [patch] Fix FFT macros when neutral_acconfig = n
  • From: Jules Bergmann <jules@xxxxxxxxxxxxxxxx>
  • Date: Mon, 30 Jun 2008 15:54:09 -0400

This patch avoids defining VSIP_IMPL_FFTW3_HAVE_{TYPE} when TYPE is not supported. This is necessary since the macro users check for definition (#ifdef).

Patch applied.

				-- Jules

--
Jules Bergmann
CodeSourcery
jules@xxxxxxxxxxxxxxxx
(650) 331-3385 x705
Index: m4/fft.m4
===================================================================
--- m4/fft.m4	(revision 212863)
+++ m4/fft.m4	(working copy)
@@ -362,12 +362,18 @@
     CPPFLAGS="$CPPFLAGS -DVSIP_IMPL_FFTW3_HAVE_LONG_DOUBLE"
   fi
 else
-  AC_DEFINE_UNQUOTED(VSIP_IMPL_FFTW3_HAVE_FLOAT, $fftw_has_float,
-     [Define to 1 if -lfftw3f was found.])
-  AC_DEFINE_UNQUOTED(VSIP_IMPL_FFTW3_HAVE_DOUBLE, $fftw_has_double, 
-    [Define to 1 if -lfftw3d was found.])
-  AC_DEFINE_UNQUOTED(VSIP_IMPL_FFTW3_HAVE_LONG_DOUBLE, $fftw_has_long_double,
-     [Define to 1 if -lfftw3l was found.])
+  if test "$fftw_has_float" = 1; then
+    AC_DEFINE_UNQUOTED(VSIP_IMPL_FFTW3_HAVE_FLOAT, $fftw_has_float,
+      [Define to 1 if -lfftw3f was found.])
+  fi
+  if test "$fftw_has_double" = 1; then
+    AC_DEFINE_UNQUOTED(VSIP_IMPL_FFTW3_HAVE_DOUBLE, $fftw_has_double, 
+      [Define to 1 if -lfftw3d was found.])
+  fi
+  if test "$fftw_has_long_double" = 1; then
+    AC_DEFINE_UNQUOTED(VSIP_IMPL_FFTW3_HAVE_LONG_DOUBLE, $fftw_has_long_double,
+      [Define to 1 if -lfftw3l was found.])
+  fi
 fi
 
 ])