KDat: Add CMake test if the mtget contains mt_gstat.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/9/head
Slávek Banko 6 years ago
parent b04989e564
commit 4b43800596
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1,5 +1,10 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer # This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
##### configure checks
include( ConfigureChecks.cmake )
add_subdirectory( pics ) add_subdirectory( pics )
include_directories( include_directories(

@ -0,0 +1,19 @@
#################################################
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 3
#
#################################################
check_cxx_source_compiles("
#include <sys/mtio.h>
int main() {
struct mtget tapeStatus;
return GMT_EOF ( tapeStatus.mt_gstat );
}"
HAVE_MTGET_GSTAT
)
if( NOT HAVE_MTGET_GSTAT )
tde_message_fatal( "It is required to build kdat, but mtget does not contain mt_gstat." )
endif( )
Loading…
Cancel
Save