diff options
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 ) |