cmake: Add other missing checks

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit e67c454194)
pull/20/head
Slávek Banko 7 years ago
parent 68c89a9ce9
commit b42e97be71

@ -85,7 +85,11 @@ find_package( TDE )
check_include_file( stdint.h HAVE_STDINT_H ) check_include_file( stdint.h HAVE_STDINT_H )
check_include_file( inttypes.h HAVE_INTTYPES_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( soundcard.h HAVE_SOUNDCARD_H )
check_include_file( sys/soundcard.h HAVE_SYS_SOUNDCARD_H ) check_include_file( sys/soundcard.h HAVE_SYS_SOUNDCARD_H )
check_include_file( machine/soundcard.h HAVE_MACHINE_SOUNDCARD_H ) check_include_file( machine/soundcard.h HAVE_MACHINE_SOUNDCARD_H )
@ -106,11 +110,16 @@ endif( NOT HAVE_LIBDL )
# ALSA # ALSA
if( WITH_ALSA ) if( WITH_ALSA )
find_package( ALSA ) pkg_check_modules( ALSA alsa>=0.5 )
if( NOT ALSA_FOUND ) if( NOT ALSA_FOUND )
tde_message_fatal( "ALSA support is requested, but was not found on your system" ) tde_message_fatal( "ALSA support is requested, but was not found on your system" )
endif( NOT ALSA_FOUND ) endif( NOT ALSA_FOUND )
if( NOT ALSA_VERSION VERSION_LESS "0.9" )
set( HAVE_LIBASOUND2 1 ) set( HAVE_LIBASOUND2 1 )
set( HAVE_ARTS_LIBASOUND2 1 )
else()
set( HAVE_ARTS_LIBASOUND 1 )
endif()
endif( WITH_ALSA ) endif( WITH_ALSA )

@ -39,7 +39,7 @@ tde_add_executable( artsbuilder AUTOMOC
execdlg.cpp qttableview.cpp interfacedlg.cpp execdlg.cpp qttableview.cpp interfacedlg.cpp
LINK LINK
tdecore-shared tdeui-shared tdeio-shared artsbuilder-shared artskde-shared tdecore-shared tdeui-shared tdeio-shared artsbuilder-shared artskde-shared
mcop qtmcop artsflow_idl soundserver_idl mcop qtmcop artsflow_idl soundserver_idl pthread
DEPENDENCIES DEPENDENCIES
arts_builder_headers arts_builder_headers
DESTINATION ${BIN_INSTALL_DIR} DESTINATION ${BIN_INSTALL_DIR}

@ -15,10 +15,16 @@
#cmakedefine HAVE_STDINT_H 1 #cmakedefine HAVE_STDINT_H 1
#cmakedefine HAVE_INTTYPES_H 1 #cmakedefine HAVE_INTTYPES_H 1
#cmakedefine HAVE_GETOPT_H 1
#cmakedefine HAVE_LIBPTHREAD 1
#cmakedefine HAVE_ARTS 1 #cmakedefine HAVE_ARTS 1
#cmakedefine HAVE_AKODE 1 #cmakedefine HAVE_AKODE 1
#cmakedefine HAVE_LIBASOUND2 1 #cmakedefine HAVE_LIBASOUND2 1
#cmakedefine HAVE_ARTS_LIBASOUND 1
#cmakedefine HAVE_ARTS_LIBASOUND2 1
#cmakedefine HAVE_ALSA_ASOUNDLIB_H 1
#cmakedefine HAVE_SYS_ASOUNDLIB_H 1
#cmakedefine HAVE_SOUNDCARD_H 1 #cmakedefine HAVE_SOUNDCARD_H 1
#cmakedefine HAVE_SYS_SOUNDCARD_H 1 #cmakedefine HAVE_SYS_SOUNDCARD_H 1

@ -34,5 +34,5 @@ tde_add_library( workman STATIC_PIC
EMBED EMBED
workmanaudio-static workmanaudio-static
LINK LINK
pthread ${ALSA_LIBRARIES} pthread
) )

Loading…
Cancel
Save