diff options
author | Slávek Banko <[email protected]> | 2018-06-08 02:08:01 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-06-08 02:08:08 +0200 |
commit | b42e97be7195ea6106468a70cb68981a6472ad0e (patch) | |
tree | a69d729fe7cc7f325af28e82a25a8a15c19d5965 /ConfigureChecks.cmake | |
parent | 68c89a9ce90e6911364e2e69305dcb43274eb650 (diff) | |
download | tdemultimedia-b42e97be7195ea6106468a70cb68981a6472ad0e.tar.gz tdemultimedia-b42e97be7195ea6106468a70cb68981a6472ad0e.zip |
cmake: Add other missing checks
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit e67c454194b6b4a2ed68b4e1124613a0b05a4d69)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 12c977ef..c5b7c0fe 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -85,7 +85,11 @@ find_package( TDE ) check_include_file( stdint.h HAVE_STDINT_H ) check_include_file( inttypes.h HAVE_INTTYPES_H ) +check_include_file( getopt.h HAVE_GETOPT_H ) +check_include_file( pthread.h HAVE_LIBPTHREAD ) +check_include_file( alsa/asoundlib.h HAVE_ALSA_ASOUNDLIB_H ) +check_include_file( sys/asoundlib.h HAVE_SYS_ASOUNDLIB_H ) check_include_file( soundcard.h HAVE_SOUNDCARD_H ) check_include_file( sys/soundcard.h HAVE_SYS_SOUNDCARD_H ) check_include_file( machine/soundcard.h HAVE_MACHINE_SOUNDCARD_H ) @@ -106,11 +110,16 @@ endif( NOT HAVE_LIBDL ) # ALSA if( WITH_ALSA ) - find_package( ALSA ) + pkg_check_modules( ALSA alsa>=0.5 ) if( NOT ALSA_FOUND ) tde_message_fatal( "ALSA support is requested, but was not found on your system" ) endif( NOT ALSA_FOUND ) - set( HAVE_LIBASOUND2 1 ) + if( NOT ALSA_VERSION VERSION_LESS "0.9" ) + set( HAVE_LIBASOUND2 1 ) + set( HAVE_ARTS_LIBASOUND2 1 ) + else() + set( HAVE_ARTS_LIBASOUND 1 ) + endif() endif( WITH_ALSA ) |