summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake17
1 files changed, 14 insertions, 3 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 3a6eae15..d4f8ee17 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -11,7 +11,7 @@
# required stuff
-tde_setup_architecture_flags( )
+tde_setup_compiler_flags( )
include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
@@ -29,12 +29,23 @@ if( WITH_GCC_VISIBILITY )
endif( )
-# freetype2
+##### check for freetype #####################
if( BUILD_KDVI OR BUILD_KPDF OR BUILD_KSVG )
pkg_search_module( FREETYPE freetype2 )
if( FREETYPE_FOUND )
set( HAVE_FREETYPE 1 )
else( )
- tde_message_fatal( "freetype2 is required, but was not found on your system" )
+ tde_message_fatal( "freetype is required, but was not found on your system" )
endif( )
endif( )
+
+
+##### check for fontconfig ######################
+if( BUILD_KPDF OR BUILD_KSVG )
+ pkg_search_module( FONTCONFIG fontconfig )
+ if( FONTCONFIG_FOUND )
+ set( HAVE_FONTCONFIG 1 CACHE INTERNAL "" FORCE )
+ else( )
+ message(FATAL_ERROR "fontconfig is required, but not found on your system" )
+ endif( )
+endif( )