annotate m4/sidplay.m4 @ 2573:c0b08527b121

allow loading compressed skins
author Tomasz Mon <desowin@gmail.com>
date Sun, 18 May 2008 16:27:48 +0200
parents f0c34c3b61c0
children ad10080d5005
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: 0
diff changeset
1 dnl *** These m4-macros are originally based on XSIDPLAY v1.6.5's acinclude.m4
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
2 dnl *** (C) Copyright 2002 Michael Schwendt, licensed under GNU GPL v2.
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
3 dnl ***
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
4 dnl *** Updated for new autotools, plus namespace, added portability
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
5 dnl *** fixes and other minor changes by Matti 'ccr' Hamalainen
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
6 dnl *** (C) Copyright 2003-2008 Tecnic Software productions (TNSP)
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
7
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
8 AC_DEFUN([XS_FIND_FILE],
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
9 [
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
10 $3=""
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
11 for i in $2; do
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
12 for j in $1; do
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
13 if test -r "$i/$j"; then
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
14 $3="$i"
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
15 break 2
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
16 fi
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
17 done
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
18 done
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
19 ])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
20
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
21
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
22 AC_DEFUN([XS_TRY_LIBRARY],
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
23 [
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
24 # xs_try_library ( $1:$2:$3:$4:$5:$6 )
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
25 AC_LANG_ASSERT([C++])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
26 m4_ifvaln([$2], [xs_cxxflags_save="$CXXFLAGS"
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
27 CXXFLAGS="$CXXFLAGS $2"])dnl
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
28 m4_ifvaln([$3], [xs_ldflags_save="$LDFLAGS"
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
29 LDFLAGS="$LDFLAGS $3"])dnl
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
30 m4_ifvaln([$4], [xs_libs_save="$LIBS"
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
31 LIBS="$LIBS -l$4"])dnl
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
32 AC_LINK_IFELSE(
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
33 [
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
34 AC_LANG_PROGRAM(
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
35 [#include <$5>],
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
36 [$6]
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
37 )],
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
38 [xs_$1_works="yes"],
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
39 [xs_$1_works="no"]
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
40 )
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
41 m4_ifvaln([$2], [CXXFLAGS="$xs_cxxflags_save"])dnl
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
42 m4_ifvaln([$3], [LDFLAGS="$xs_ldflags_save"])dnl
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
43 m4_ifvaln([$4], [LIBS="$xs_libs_save"])dnl
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
44 ])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
45
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
46
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
47 AC_DEFUN([XS_LIB_RESULT],
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
48 [
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
49 # xs_lib_result ( $1:$2:$3 )
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
50 define([Name], [translit([$1], [a-z], [A-Z])])dnl
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
51 if test "x$xs_have_$1" = "xyes"; then
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
52 if test "x$xs_$1_cxxflags" != "x" || test "x$xs_$1_ldflags" != "x"; then
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
53 AC_MSG_RESULT([$xs_$1_cxxflags $2 $xs_$1_ldflags $3])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
54 else
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
55 AC_MSG_RESULT([yes])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
56 fi
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
57
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
58 Name[]_LIBS="$xs_$1_ldflags $2"
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
59 Name[]_CFLAGS="$xs_$1_cxxflags $3"
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
60 AC_SUBST(Name[]_LIBS)dnl
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
61 AC_SUBST(Name[]_CFLAGS)dnl
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
62 else
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
63 AC_MSG_RESULT([no])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
64 fi
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
65 ])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
66
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
67
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
68 AC_DEFUN([XS_PROG_PKGCONFIG],
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
69 [
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
70 AC_PATH_PROG([PKG_CONFIG], [pkg-config])dnl
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
71 ])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
72
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
73
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
74 AC_DEFUN([XS_ARG_WITH], [dnl
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
75 # xs_arg_with ( $1:$2:$3 )
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
76 define([Name], [translit([$1], [a-z], [A-Z])])dnl
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
77 AH_TEMPLATE(HAVE_[]Name, [Define if you have and want to use $2])dnl
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
78 AC_ARG_WITH([$1],
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
79 [ --with-$1=PREFIX Enable $2 with install-PREFIX], [dnl
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
80 if test "x$withval" = "xyes"; then
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
81 xs_use_$1="yes"
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
82 xs_$1_library=""
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
83 xs_$1_includes=""
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
84 else
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
85 if test "x$withval" = "xno"; then
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
86 xs_use_$1="no"
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
87 else
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
88 xs_use_$1="yes"
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
89 xs_$1_includes="$withval/include"
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
90 xs_$1_library="$withval/lib"
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
91 fi
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
92 fi
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
93 ],[dnl
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
94 xs_use_$1="try"
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
95 xs_$1_library=""
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
96 xs_$1_includes=""
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
97 ])dnl
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
98 AC_ARG_WITH([$1-inc],
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
99 [ --with-$1-inc=DIR Where the $2 headers are located],
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
100 [xs_$1_includes="$withval"])dnl
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
101 AC_ARG_WITH([$1-lib],
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
102 [ --with-$1-lib=DIR Where the $2 library is installed],
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
103 [xs_$1_library="$withval"])dnl
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
104
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
105 dnl Okay, handle this
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
106 xs_have_$1="no"
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
107 if test "x$xs_use_$1" = "xtry"; then
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
108 $3
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
109 elif test "x$xs_use_$1" = "xyes"; then
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
110 $3
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
111 if test "x$xs_have_$1" = "xno"; then
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
112 AC_MSG_ERROR([$2 library and/or headers were not found!])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
113 fi
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
114 fi
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
115 ])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
116
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
117
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
118 dnl -------------------------------------------------------------------------
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
119 dnl Try to find SIDPLAY library and header files.
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
120 dnl $xs_have_sidplay1 will be "yes" or "no"
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
121 dnl @SIDPLAY1_LIBS@ will be substituted with linker parameters
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
122 dnl @SIDPLAY1_INCLUDES@ will be substituted with compiler parameters
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
123 dnl -------------------------------------------------------------------------
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
124
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
125 AC_DEFUN([XS_PATH_LIBSIDPLAY1],
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
126 [
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
127 AC_MSG_CHECKING([for working SIDPlay1 library and headers])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
128
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
129 AC_LANG_PUSH([C++])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
130
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
131 dnl Use include path given by user (if any).
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
132 if test "x$xs_sidplay1_includes" != "x"; then
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
133 xs_sidplay1_cxxflags="-I$xs_sidplay1_includes"
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
134 else
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
135 xs_sidplay1_cxxflags=""
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
136 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
137
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
138 dnl Use library path given by user (if any).
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
139 if test "x$xs_sidplay1_library" != "x"; then
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
140 xs_sidplay1_ldflags="-L$xs_sidplay1_library"
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
141 else
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
142 xs_sidplay1_ldflags=""
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
143 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
144
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
145 AC_CACHE_VAL([xs_cv_have_sidplay1],
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
146 [
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
147 dnl Run test compilation with either standard search path
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
148 dnl or user-defined paths.
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
149 XS_TRY_LIBSIDPLAY1
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
150 if test "x$xs_sidplay1_works" = "xyes"; then
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
151 xs_cv_have_sidplay1="xs_have_sidplay1=yes \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
152 xs_sidplay1_cxxflags=\"$xs_sidplay1_cxxflags\" \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
153 xs_sidplay1_ldflags=\"$xs_sidplay1_ldflags\" "
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
154 else
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
155 XS_FIND_LIBSIDPLAY1
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
156 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
157 ])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
158 eval "$xs_cv_have_sidplay1"
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
159 XS_LIB_RESULT([sidplay1], [-lsidplay], [])
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
160 AC_LANG_POP([C++])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
161 ])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
162
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
163 dnl Functions used by XS_PATH_LIBSIDPLAY1.
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
164
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
165 AC_DEFUN([XS_FIND_LIBSIDPLAY1],
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
166 [
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
167 dnl Search common locations where header files might be stored.
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
168 XS_FIND_FILE([xs_sidplay1_includes], [sidplay/sidtune.h],
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
169 [$xs_sidplay1_includes /usr/include /usr/local/include /usr/lib/sidplay/include /usr/local/lib/sidplay/include /opt/sfw/include /opt/csw/include])
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
170
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
171 dnl Search common locations where library might be stored.
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
172 XS_FIND_FILE([xs_sidplay1_library],
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
173 [libsidplay.a libsidplay.so libsidplay.so.1 libsidplay.so.1.36 libsidplay.so.1.37],
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
174 [$xs_sidplay1_library /usr/lib /usr/lib/sidplay /usr/local/lib/sidplay /opt/sfw/lib /opt/csw/lib])
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
175
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
176 if test "x$xs_sidplay1_includes" = "x" || test "x$xs_sidplay1_library" = "x"; then
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
177 xs_cv_have_sidplay1="xs_have_sidplay1=no \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
178 xs_sidplay1_ldflags=\"\" xs_sidplay1_cxxflags=\"\" "
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
179 else
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
180 dnl Test compilation with found paths.
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
181 xs_sidplay1_ldflags="-L$xs_sidplay1_library"
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
182 xs_sidplay1_cxxflags="-I$xs_sidplay1_includes"
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
183 XS_TRY_LIBSIDPLAY1
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
184 xs_cv_have_sidplay1="xs_have_sidplay1=$xs_sidplay1_works \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
185 xs_sidplay1_ldflags=\"$xs_sidplay1_ldflags\" \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
186 xs_sidplay1_cxxflags=\"$xs_sidplay1_cxxflags\" "
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
187 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
188 ])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
189
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
190 AC_DEFUN([XS_TRY_LIBSIDPLAY1],[
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
191 XS_TRY_LIBRARY([sidplay1], [$xs_sidplay1_cxxflags], [$xs_sidplay1_ldflags],
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
192 [sidplay], [sidplay/sidtune.h], [sidTune* myTest = new sidTune(0);])
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
193 ])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
194
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
195
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
196 dnl -------------------------------------------------------------------------
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
197 dnl Try to find SIDPLAY2 library and header files.
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
198 dnl $xs_have_sidplay2 will be "yes" or "no"
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
199 dnl @SIDPLAY_LIBS@ will be substituted with linker parameters
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
200 dnl @SIDPLAY_INCLUDES@ will be substituted with compiler parameters
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
201 dnl -------------------------------------------------------------------------
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
202 AC_DEFUN([XS_PATH_LIBSIDPLAY2],
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
203 [
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
204 AC_MSG_CHECKING([for working SIDPlay2 library and headers])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
205
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
206 AC_LANG_PUSH([C++])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
207
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
208 AC_REQUIRE([XS_PROG_PKGCONFIG])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
209 if test "x$PKG_CONFIG" != "x" && $PKG_CONFIG --atleast-version m4_ifval([$1], [$1], [2.1.0]) libsidplay2; then
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
210 xs_pkgcfg_knows="yes"
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
211 else
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
212 xs_pkgcfg_knows="no"
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
213 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
214
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
215 dnl Derive sidbuilders path from libsidplay2 root.
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
216 if test "x$xs_sidplay2_library" != "x"; then
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
217 xs_sidplay2_builders="$xs_sidplay2_library/sidplay/builders"
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
218 elif test "x$xs_pkgcfg_knows" = "xyes" ; then
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
219 xs_sidplay2_builders=`$PKG_CONFIG --variable=builders libsidplay2`
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
220 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
221
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
222 AC_CACHE_VAL([xs_cv_have_sidplay2],
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
223 [
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
224 dnl Run test compilation with either standard search path
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
225 dnl or user-defined paths.
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
226 xs_sidplay2_ldflags="-lsidplay2"
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
227 XS_TRY_LIBSIDPLAY2
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
228 if test "x$xs_sidplay2_works" = "xyes"; then
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
229 xs_cv_have_sidplay2="xs_have_sidplay2=yes \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
230 xs_sidplay2_cxxflags=\"$xs_sidplay2_cxxflags\" \
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
231 xs_sidplay2_ldflags=\"$xs_sidplay2_ldflags\" \
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
232 xs_sidplay2_builders=\"$xs_sidplay2_builders\" "
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
233 else
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
234 XS_FIND_LIBSIDPLAY2
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
235 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
236 ])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
237 eval "$xs_cv_have_sidplay2"
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
238 XS_LIB_RESULT([sidplay2], [], [])
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
239 AC_LANG_POP([C++])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
240 ])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
241
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
242
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
243 dnl Functions used by XS_PATH_LIBSIDPLAY2.
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
244 AC_DEFUN([XS_FIND_LIBSIDPLAY2],
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
245 [
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
246 dnl See whether user didn't provide paths.
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
247 if test "x$xs_sidplay2_includes" = "x"; then
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
248 if test "x$xs_pkgcfg_knows" = "xyes" ; then
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
249 xs_sidplay2_includes=`$PKG_CONFIG --variable=includedir libsidplay2`
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
250 xs_sidplay2_cxxflags=`$PKG_CONFIG --cflags libsidplay2`
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
251 else
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
252 dnl Search common locations where header files might be stored.
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
253 XS_FIND_FILE([xs_sidplay2_includes], [sidplay/sidplay2.h],
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
254 [$xs_sidplay2_includes $xs_sidplay2_includes/include /usr/include /usr/local/include /usr/lib/sidplay/include /usr/local/lib/sidplay/include /opt/sfw/include /opt/csw/include])
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
255 xs_sidplay2_cxxflags="-I$xs_sidplay2_includes"
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
256 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
257 else
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
258 xs_sidplay2_cxxflags="-I$xs_sidplay2_includes"
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
259 fi
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
260 if test "x$xs_sidplay2_library" = "x"; then
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
261 if test "x$xs_pkgcfg_knows" = "xyes" ; then
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
262 xs_sidplay2_library=`$PKG_CONFIG --variable=libdir libsidplay2`
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
263 xs_sidplay2_ldflags=`$PKG_CONFIG --libs libsidplay2`
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
264 xs_sidplay2_builders=`$PKG_CONFIG --variable=builders libsidplay2`
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
265 else
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
266 dnl Search common locations where library might be stored.
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
267 XS_FIND_FILE([xs_sidplay2_library], [libsidplay2.la],
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
268 [$xs_sidplay2_library $xs_sidplay2_library/lib $xs_sidplay2_library/src /usr/lib /usr/lib/sidplay /usr/local/lib/sidplay /opt/sfw/lib /opt/csw/lib])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
269 xs_sidplay2_ldflags="-L$xs_sidplay2_library -lsidplay2"
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
270 xs_sidplay2_builders="$xs_sidplay2_library/sidplay/builders"
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
271 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
272 else
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
273 xs_sidplay2_ldflags="-L$xs_sidplay2_library -lsidplay2"
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
274 fi
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
275 if test "x$xs_sidplay2_includes" = "x" || test "x$xs_sidplay2_library" = "x"; then
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
276 xs_cv_have_sidplay2="xs_have_sidplay2=no \
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
277 xs_sidplay2_ldflags=\"\" xs_sidplay2_cxxflags=\"\" \
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
278 xs_sidplay2_builders=\"\" "
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
279 else
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
280 dnl Test compilation with found paths.
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
281 xs_sidplay2_ldflags="-L$xs_sidplay2_library -lsidplay2"
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
282 xs_sidplay2_cxxflags="-I$xs_sidplay2_includes"
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
283 XS_TRY_LIBSIDPLAY2
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
284 xs_cv_have_sidplay2="xs_have_sidplay2=$xs_sidplay2_works \
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
285 xs_sidplay2_ldflags=\"$xs_sidplay2_ldflags\" \
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
286 xs_sidplay2_cxxflags=\"$xs_sidplay2_cxxflags\" \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
287 xs_sidplay2_builders=\"$xs_sidplay2_builders\" "
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
288 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
289 ])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
290
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
291
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
292 AC_DEFUN([XS_TRY_LIBSIDPLAY2],
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
293 [
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
294 XS_TRY_LIBRARY([sidplay2],
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
295 [$xs_sidplay2_cxxflags -DHAVE_UNIX], [$xs_sidplay2_ldflags],
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
296 [sidplay2], [sidplay/sidplay2.h], [sidplay2 *myEngine;])
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
297 ])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
298
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
299
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
300 dnl -------------------------------------------------------------------------
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
301 dnl Find libsidplay2 builders (sidbuilders) dir.
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
302 dnl @BUILDERS_CFLAGS@
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
303 dnl @BUILDERS_LDFLAGS@
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
304 dnl -------------------------------------------------------------------------
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
305 AC_DEFUN([XS_BUILDERS_CHECK],
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
306 [
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
307 AC_MSG_CHECKING([for SIDPlay2 builders directory])
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
308 AC_LANG_ASSERT([C++])
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
309 AC_REQUIRE([XS_PATH_LIBSIDPLAY2])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
310
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
311 dnl Be pessimistic.
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
312 builders_available="no"
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
313
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
314 dnl Sidbuilder headers are included with "builders" prefix.
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
315 builders_includedir="$xs_sidplay2_includes"
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
316 builders_libdir="$xs_sidplay2_builders"
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
317
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
318 dnl If libsidplay2 is in standard library search path, we need
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
319 dnl to get an argument whether /usr, /usr/local, etc. Else we
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
320 dnl can only use ${libdir}/sidplay/builders, but then are
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
321 dnl unable to check whether files exist as long as ${exec_prefix}
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
322 dnl is not defined in the configure script. So, this is a bit
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
323 dnl ugly, but a satisfactory fallback default for those who
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
324 dnl define ${prefix} and ${exec_prefix}.
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
325 if test "x$builders_libdir" = "x"; then
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
326 eval "builders_libdir=$libdir/sidplay/builders"
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
327 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
328
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
329 AC_ARG_WITH([sidbuilders],
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
330 [ --with-sidbuilders=DIR what the SIDPlay2 builders install PREFIX is],
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
331 [builders_includedir="$withval/include"
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
332 builders_libdir="$withval/lib/sidplay/builders"])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
333
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
334 AC_ARG_WITH([builders-inc],
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
335 [ --with-builders-inc=DIR where the SIDPlay2 builders headers are located],
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
336 [builders_includedir="$withval"])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
337
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
338 AC_ARG_WITH([builders-lib],
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
339 [ --with-builders-lib=DIR where the SIDPlay2 builders libraries are installed],
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
340 [builders_libdir="$withval"])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
341
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
342 if test "x$builders_includedir" != "x"; then
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
343 BUILDERS_CFLAGS="-I$builders_includedir"
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
344 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
345
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
346 if test "x$builders_libdir" != "x"; then
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
347 BUILDERS_LDFLAGS="-L$builders_libdir"
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
348 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
349
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
350 if test -d "$builders_libdir"; then
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
351 xs_have_sidbuilders_dir="yes"
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
352 AC_MSG_RESULT([$builders_libdir])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
353 else
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
354 xs_have_sidbuilders_dir="no"
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
355 AC_MSG_RESULT([$xs_have_sidbuilders_dir])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
356 AC_MSG_ERROR([$builders_libdir not found!
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
357 Check --help on how to specify SIDPlay2 and/or builders library and
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
358 header path, or set --exec-prefix to the same prefix as your installation
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
359 of libsidplay2.
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
360 ])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
361 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
362
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
363 AC_SUBST([BUILDERS_CFLAGS])
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
364 AC_SUBST([BUILDERS_LDFLAGS])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
365 ])
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
366
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
367
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
368 dnl -------------------------------------------------------------------------
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
369 dnl Test for working builders
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
370 dnl -------------------------------------------------------------------------
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
371 AC_DEFUN([XS_BUILDERS_FIND], [dnl
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
372 define([Name], [translit([$1], [a-z], [A-Z])])dnl
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
373 AH_TEMPLATE(HAVE_[]Name[]_BUILDER, [Define if you have $1 for libSIDPlay 2])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
374 AC_MSG_CHECKING([for $1 builder module])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
375 XS_TRY_LIBRARY([builders], [$BUILDERS_CFLAGS], [$BUILDERS_LDFLAGS],
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
376 [$2], [sidplay/builders/$3], [$4 *sid;])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
377 if test "x$xs_builders_works" = "xyes"; then
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
378 xs_builders_available="yes"
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
379 xs_builders="$1 $xs_builders"
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
380 AC_DEFINE(HAVE_[]Name[]_BUILDER)
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
381 BUILDERS_LIBS="$BUILDERS_LIBS -l$2"
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
382 fi
2557
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
383 AC_MSG_RESULT([$xs_builders_works])
f0c34c3b61c0 Synchronized Autoconf/m4 cleanups from XMMS-SID.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
384 AC_SUBST([BUILDERS_LIBS])
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
385 ])