From b42e97be7195ea6106468a70cb68981a6472ad0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 8 Jun 2018 02:08:01 +0200 Subject: cmake: Add other missing checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit e67c454194b6b4a2ed68b4e1124613a0b05a4d69) --- ConfigureChecks.cmake | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'ConfigureChecks.cmake') 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 ) -- cgit v1.2.1