diff options
author | Slávek Banko <[email protected]> | 2019-01-25 14:47:48 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-01-25 14:47:48 +0100 |
commit | 4b43800596822ad53b9c4e0ae5d4fe0130d73ad3 (patch) | |
tree | 46fa77e9c8f43981436012620739c24b3e6574b3 /kdat/ConfigureChecks.cmake | |
parent | b04989e564b12fd2be5fd7b35055021b280f8f6a (diff) | |
download | tdeadmin-4b43800596822ad53b9c4e0ae5d4fe0130d73ad3.tar.gz tdeadmin-4b43800596822ad53b9c4e0ae5d4fe0130d73ad3.zip |
KDat: Add CMake test if the mtget contains mt_gstat.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'kdat/ConfigureChecks.cmake')
-rw-r--r-- | kdat/ConfigureChecks.cmake | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/kdat/ConfigureChecks.cmake b/kdat/ConfigureChecks.cmake new file mode 100644 index 0000000..89facde --- /dev/null +++ b/kdat/ConfigureChecks.cmake @@ -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( ) |