summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake23
1 files changed, 23 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 7dad9c85..592f0c57 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -70,6 +70,29 @@ if( WITH_VCS_SUBVERSION )
endif( )
+##### check for gnu tar extensions #############
+if( NOT TAR )
+ message( STATUS "Checking if tar supports GNU extensions" )
+ foreach( TAR_CMD tar gtar gnutar )
+ if( NOT TAR )
+ execute_process(
+ COMMAND ${TAR_CMD} --version
+ OUTPUT_VARIABLE TAR_VERSION
+ ERROR_VARIABLE TAR_VERSION
+ )
+ if( "${TAR_VERSION}" MATCHES "(GNU tar)" )
+ set( TAR "${TAR_CMD}" CACHE INTERNAL "" FORCE )
+ endif( )
+ endif( )
+ endforeach( TAR_CMD )
+ if( TAR )
+ message( STATUS "Checking if tar supports GNU extensions - ${TAR}" )
+ else( )
+ tde_message_fatal( "tar with GNU extensions is required but not found on your system" )
+ endif( )
+endif( )
+
+
# required stuff
find_package( TQt )
find_package( TDE )