summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake20
1 files changed, 18 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 90da6aa..1030fef 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -105,7 +105,7 @@ endif ( )
if( WITH_TDEHWLIB )
tde_save_and_set( CMAKE_REQUIRED_INCLUDES "${TDE_INCLUDE_DIR}" )
check_cxx_source_compiles( "
- #include <kdemacros.h>
+ #include <tdemacros.h>
#ifndef __TDE_HAVE_TDEHWLIB
#error tdecore is not build with tdehwlib
#endif
@@ -183,13 +183,14 @@ if( WITH_TAGLIB )
if( NOT TAGLIB_FOUND )
tde_message_fatal( "taglib is requested, but was not found on your system" )
endif( )
+ set( HAVE_TAGLIB 1 )
endif( )
##### mad #######################################
if( WITH_MAD )
- pkg_search_module( MAD mad )
+ pkg_search_module( MAD libmad mad )
if( NOT MAD_FOUND )
tde_message_fatal( "mad is requested, but was not found on your system" )
endif( )
@@ -242,3 +243,18 @@ if( WITH_LAME )
tde_message_fatal( "lame is requested, but was not found on your system" )
endif( )
endif( )
+
+
+##### check specific architecture dependant support
+
+if( CMAKE_SYSTEM_PROCESSOR MATCHES "i.86" )
+
+ # MMX support
+ message( STATUS "Performing MMX support test" )
+ cmake_host_system_information( RESULT HAVE_X86_MMX QUERY HAS_MMX )
+ if( HAVE_X86_MMX )
+ message( STATUS "Performing MMX support test - Success" )
+ set( CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -DHAVE_X86_MMX" )
+ endif( )
+
+endif( )