summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2014-11-26 19:52:12 +0100
committerSlávek Banko <slavek.banko@axis.cz>2014-11-26 19:52:12 +0100
commit7e00eb197c8e0932d079678bab6fe43cd05dd21a (patch)
tree90335f83517c7d2d5bb8c63b18e0eb86af147283
parentebafa74dc01fc4be6087e36bcd139b01d5a9a9e4 (diff)
downloadtdemultimedia-7e00eb197c8e0932d079678bab6fe43cd05dd21a.tar.gz
tdemultimedia-7e00eb197c8e0932d079678bab6fe43cd05dd21a.zip
Fix arts detection
Add sndio detection Signed-off-by: François Andriot <francois.andriot@free.fr>
-rw-r--r--configure.in.in18
1 files changed, 16 insertions, 2 deletions
diff --git a/configure.in.in b/configure.in.in
index b25704d3..f7aa24ef 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -547,10 +547,24 @@ AC_PATH_PROG(ARTSCCONFIG, artsc-config, no, $artsc_config_test_path)
if test "x$build_arts" = "xyes" && test "x$ARTSCCONFIG" != "xno" ; then
LIB_ARTS="-lartskde"
- ARTS_PREFIX=[`$ARTSCCONFIG --arts-prefix`]
- ARTS_CFLAGS="-I$ARTS_PREFIX/include/arts"
+ ARTS_CFLAGS=[`$PKG_CONFIG --cflags arts`]
ARTS_LIBS=[`$PKG_CONFIG --libs-only-l arts`]
AC_DEFINE(HAVE_ARTS, 1, [have arts support in juk])
+
+ AC_TRY_COMPILE([
+ #include <sndio.h>
+ ],[
+ #ifdef SNDIO_H
+ /* We have sndio library */
+ #else
+ # Error no sndio library
+ #endif
+ ],
+ have_sndio=yes,
+ have_sndio=no);
+ if test "x$have_sndio" = "xyes" ; then
+ ARTS_LIBS="$ARTS_LIBS -lsndio"
+ fi
else
build_arts="no"
LIB_ARTS=""