annotate m4/sid.m4 @ 2601:f9ccfae6a5f6

Oops, forgot to link scrobbler plugin with libaudutil. Fixed.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 21 May 2008 09:08:05 +0300
parents f0c34c3b61c0
children ca2e5680b74e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 AC_DEFUN([AM_PATH_SIDPLAY],
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 [
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 XS_ARG_WITH([sidplay1], [libSIDPlay1], [XS_PATH_LIBSIDPLAY1])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5 if test "x$xs_have_sidplay1" = "xyes"; then
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6 AC_DEFINE([HAVE_SIDPLAY1])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 fi
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9 XS_ARG_WITH([sidplay2], [libSIDPlay2], [XS_PATH_LIBSIDPLAY2])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10 if test "x$xs_have_sidplay2" = "xyes"; then
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 AC_DEFINE([HAVE_SIDPLAY2])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 AC_LANG_PUSH([C++])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 XS_BUILDERS_CHECK
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 XS_BUILDERS_FIND([reSID], [resid-builder], [resid.h], [ReSIDBuilder])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 XS_BUILDERS_FIND([HardSID], [hardsid-builder], [hardsid.h], [HardSID])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 AC_LANG_POP([C++])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17 if test "x$xs_builders_available" = "xno"; then
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18 AC_MSG_ERROR([No builder modules were found in the sidbuilders directory!]);
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19 fi
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20 fi
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22 if test "x$xs_have_sidplay1" = "xyes" || test "x$xs_have_sidplay2" = "xyes"; then
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23 m4_ifvaln([$1], [$1], [:])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24 m4_ifvaln([$2], [else $2])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25 fi
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26 ])