diff options
-rw-r--r-- | configure.in.in | 18 |
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="" |