diff options
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 377fa4d3..d6891aa7 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -222,3 +222,23 @@ if( WITH_KONQSIDEBAR ) tde_message_fatal( "konqsidebarplugin.h are requested, but not found on your system" ) endif( ) endif( ) + +##### check for mp4v2 ########################### + +if( WITH_MP4V2 ) + check_include_file( "mp4v2/mp4v2.h" MP4V2_H_FOUND ) + if( MP4V2_H_FOUND ) + set( HAVE_MP4V2_H 1) + else( MP4V2_H_FOUND ) + check_include_file( "mp4.h" MP4_H_FOUND ) + if( MP4_H_FOUND ) + set( HAVE_MP4_H 1) + endif( MP4_H_FOUND ) + endif( MP4V2_H_FOUND ) + + if( HAVE_MP4V2_H OR HAVE_MP4_H ) + set( HAVE_MP4V2 1 ) + else( ) + tde_message_fatal( "MP4V2 support was requested, but not found on your system" ) + endif( ) +endif( ) |