diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 3ffcde3..9466c7c 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -108,9 +108,9 @@ endif( ) ##### arts ###################################### if( WITH_ARTS ) - pkg_search_module( ARTS arts ) + pkg_search_module( ARTS artsc ) if( NOT ARTS_FOUND ) - tde_message_fatal( "aRts is requested, but was not found on your system" ) + tde_message_fatal( "aRtsC is requested, but was not found on your system" ) endif( ) endif( ) diff --git a/configure.in.in b/configure.in.in index 27cec92..7fe8c4a 100644 --- a/configure.in.in +++ b/configure.in.in @@ -35,13 +35,21 @@ AM_CONDITIONAL(compile_libsamplerate, [test -z "$LIBSAMPLERATE"]) ARTS_LIBS="" if test "x$build_arts" = "xyes"; then dnl Find aRts - KDE_CHECK_HEADERS(artsc/artsc.h, - [arts_available=yes - ARTS_LIBS="-lartsc"], - [arts_available=no] - ) + if $PKG_CONFIG artsc --exists; then + arts_available=yes + ARTS_LIBS="-lartsc" + ARTS_INCLUDES="`$PKG_CONFIG artsc --cflags`" + else + KDE_CHECK_HEADERS(artsc/artsc.h, + [arts_available=yes + ARTS_LIBS="-lartsc" + ARTS_INCLUDES="`$ARTSCCONFIG --cflags`"], + [arts_available=no] + ) + fi fi AC_SUBST(ARTS_LIBS) +AC_SUBST(ARTS_INCLUDES) AM_CONDITIONAL(include_arts, [test -n "$ARTS_LIBS"]) if test "x$build_arts" = "xyes" -a "x$arts_available" = "xyes"; then AC_DEFINE(WITH_ARTS,1,[defined if arts support is compiled in]) diff --git a/plugins/audiooutput/arts/CMakeLists.txt b/plugins/audiooutput/arts/CMakeLists.txt index 58b4a97..ed41002 100644 --- a/plugins/audiooutput/arts/CMakeLists.txt +++ b/plugins/audiooutput/arts/CMakeLists.txt @@ -31,7 +31,7 @@ link_directories( tde_add_kpart( libk3bartsoutputplugin AUTOMOC SOURCES k3bartsoutputplugin.cpp - LINK tdecore-shared k3b-shared ${ARTS_LIBRARIES} artsc + LINK tdecore-shared k3b-shared artsc DESTINATION ${PLUGIN_INSTALL_DIR} ) diff --git a/plugins/audiooutput/arts/Makefile.am b/plugins/audiooutput/arts/Makefile.am index 94c93a0..4577022 100644 --- a/plugins/audiooutput/arts/Makefile.am +++ b/plugins/audiooutput/arts/Makefile.am @@ -1,4 +1,4 @@ -AM_CPPFLAGS = -I$(srcdir)/../../../libk3b/core -I$(srcdir)/../../../libk3b/plugin $(all_includes) +AM_CPPFLAGS = -I$(srcdir)/../../../libk3b/core -I$(srcdir)/../../../libk3b/plugin $(ARTS_INCLUDES) $(all_includes) kde_module_LTLIBRARIES = libk3bartsoutputplugin.la diff --git a/plugins/audiooutput/arts/k3bartsoutputplugin.h b/plugins/audiooutput/arts/k3bartsoutputplugin.h index e1b5499..9a07787 100644 --- a/plugins/audiooutput/arts/k3bartsoutputplugin.h +++ b/plugins/audiooutput/arts/k3bartsoutputplugin.h @@ -18,7 +18,7 @@ #include -#include +#include class K3bArtsOutputPlugin : public K3bAudioOutputPlugin