Mercurial > hg > xmms-sid
comparison acinclude.m4 @ 795:3e305ce076e8
Make old libSIDPlay2 support work again, the one available in most distros, such as Debian.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 07 Nov 2012 11:05:24 +0200 |
parents | c7fa50576c70 |
children | 1fe6005ed58c |
comparison
equal
deleted
inserted
replaced
794:3012740d014c | 795:3e305ce076e8 |
---|---|
226 else | 226 else |
227 xs_sidplay2_builders=`$PKG_CONFIG --variable=builders libsidplay2` | 227 xs_sidplay2_builders=`$PKG_CONFIG --variable=builders libsidplay2` |
228 fi | 228 fi |
229 | 229 |
230 dnl *** Check for new COMI API | 230 dnl *** Check for new COMI API |
231 xs_api_ok="no" | 231 xs_api_ok="yes" |
232 AC_MSG_CHECKING([libSIDPlay2 API compatibility]) | 232 AC_MSG_CHECKING([libSIDPlay2 API compatibility]) |
233 tmp_CPPFLAGS="$CPPFLAGS" | 233 tmp_CPPFLAGS="$CPPFLAGS" |
234 if test -d "$xs_sidplay2_includes"; then | 234 if test -d "$xs_sidplay2_includes"; then |
235 CPPFLAGS="$CPPFLAGS -I${xs_sidplay2_includes}" | 235 CPPFLAGS="$CPPFLAGS -I${xs_sidplay2_includes}" |
236 fi | 236 fi |
237 AC_EGREP_HEADER([::Iid], [sidplay/sidplay2.h], | 237 AC_EGREP_HEADER([::Iid], [sidplay/sidplay2.h], |
238 [xs_have_sidplay2_api="yes"], [ | 238 [xs_api_ok="no"], [ |
239 AC_EGREP_HEADER([SIDIID], [sidplay/sidplay2.h], [ | 239 AC_EGREP_HEADER([SIDIID], [sidplay/sidplay2.h], [ |
240 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <sidplay/sidunknown.h>], [ISidUnknown *i;])], [xs_api_ok="yes"], [])]) | 240 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <sidplay/sidunknown.h>], [ISidUnknown *i;])], [xs_api_ok="no"], [])]) |
241 ]) | 241 ]) |
242 | 242 |
243 if test "x$xs_api_ok" = "xyes"; then | 243 if test "x$xs_api_ok" = "xyes"; then |
244 XS_TRY_LIBRARY([sidplay2], | 244 XS_TRY_LIBRARY([sidplay2], |
245 [$xs_sidplay2_cxxflags -DHAVE_UNIX], [$xs_sidplay2_ldflags], | 245 [$xs_sidplay2_cxxflags -DHAVE_UNIX], [$xs_sidplay2_ldflags], |