From c34fa140d0c16ce688e42947a8668049ce22cdb7 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Tue, 26 Feb 2008 10:09:38 +0000 Subject: configure.ac: Detect and indicate if GCC inline assembly syntax is available. Original commit message from CVS: * configure.ac: Detect and indicate if GCC inline assembly syntax is available. * gst/goom/Makefile.am: * gst/goom/convolve_fx.c: * gst/goom/flying_stars_fx.c: * gst/goom/goom_config.h: * gst/goom/goom_core.c: * gst/goom/goomsl.c: * gst/goom/ifs.c: * gst/goom/mmx.c: * gst/goom/plugin_info.c: * gst/goom/xmmx.c: Fix various GCC-isms, and only build the inline assembly with compilers that support GCC inline assembly. Fix a couple of other warnings shown with Forte. --- gst/goom/plugin_info.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'gst/goom/plugin_info.c') diff --git a/gst/goom/plugin_info.c b/gst/goom/plugin_info.c index 420f45a1..1218b78f 100644 --- a/gst/goom/plugin_info.c +++ b/gst/goom/plugin_info.c @@ -1,7 +1,11 @@ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #include +#include "goom_config.h" + #include "goom_plugin_info.h" #include "goom_fx.h" #include "default_scripts.h" @@ -18,9 +22,9 @@ #endif /* HAVE_CPU_PPC64 || HAVE_CPU_PPC */ -#ifdef HAVE_CPU_I386 +#ifdef HAVE_MMX #include "mmx.h" -#endif /* HAVE_CPU_I386 */ +#endif /* HAVE_MMX */ #include #include @@ -44,6 +48,7 @@ setOptimizedMethods (PluginInfo * p) /* FIXME: what about HAVE_CPU_X86_64 ? */ #ifdef HAVE_CPU_I386 +#ifdef HAVE_MMX GST_INFO ("have an x86"); if (cpuFlavour & OIL_IMPL_FLAG_MMXEXT) { GST_INFO ("Extended MMX detected. Using the fastest methods!"); @@ -56,6 +61,7 @@ setOptimizedMethods (PluginInfo * p) } else { GST_INFO ("Too bad ! No SIMD optimization available for your CPU."); } +#endif #endif /* HAVE_CPU_I386 */ #ifdef HAVE_CPU_PPC64 -- cgit