annotate configure.ac @ 1745:225d3ee03de8 trunk

[svn] - add a bugs@ address for audacious - remove some unused --with/--enable arguments
author nenolod
date Mon, 18 Sep 2006 12:59:14 -0700
parents d22d28e52b58
children 40e2d429a1f1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1 dnl Process this file with autoconf to produce a configure script.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2
1745
225d3ee03de8 [svn] - add a bugs@ address for audacious
nenolod
parents: 1743
diff changeset
3 AC_INIT([audacious], [1.2.0], [bugs+audacious@atheme.org])
1420
0aa4bee03747 [svn] - ok, move this fix down a little
nenolod
parents: 1419
diff changeset
4 AC_PREREQ([2.59])
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6 AC_CANONICAL_HOST
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7 AC_CANONICAL_TARGET
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
8
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9 AC_CONFIG_HEADERS([config.h])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11 dnl libbeep
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
12 LIBBEEP_MAJOR_VERSION=2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13 LIBBEEP_MINOR_VERSION=0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 LIBBEEP_MICRO_VERSION=0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 LIBBEEP_VERSION=$LIBBEEP_MAJOR_VERSION.$LIBBEEP_MINOR_VERSION.$LIBBEEP_MICRO_VERSION
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16 AC_SUBST(LIBBEEP_MAJOR_VERSION)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17 AC_SUBST(LIBBEEP_MINOR_VERSION)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18 AC_SUBST(LIBBEEP_MICRO_VERSION)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19
38
4e0397865a31 [svn] Regenerate a bunch of stuff :)
nenolod
parents: 33
diff changeset
20 dnl XXX kludge for FreeBSD
4e0397865a31 [svn] Regenerate a bunch of stuff :)
nenolod
parents: 33
diff changeset
21 if test -d "/usr/X11R6/include"; then
4e0397865a31 [svn] Regenerate a bunch of stuff :)
nenolod
parents: 33
diff changeset
22 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
4e0397865a31 [svn] Regenerate a bunch of stuff :)
nenolod
parents: 33
diff changeset
23 fi
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24
756
97f5ebf52a3d [svn] put AM_INIT_AUTOMAKE back
nenolod
parents: 751
diff changeset
25 AM_INIT_AUTOMAKE
97f5ebf52a3d [svn] put AM_INIT_AUTOMAKE back
nenolod
parents: 751
diff changeset
26
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27 dnl GNU gettext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
28
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
29 AM_GNU_GETTEXT
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
30 AM_GNU_GETTEXT_VERSION([0.12.1])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
31
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33 dnl Check for C compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34
1353
35ef03569852 [svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents: 1317
diff changeset
35 AC_PROG_CC
35ef03569852 [svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents: 1317
diff changeset
36 AC_PROG_CXX
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37 AC_ISC_POSIX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
38 AC_C_BIGENDIAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
39
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
40 dnl Check for assembler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42 AM_PROG_AS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44 dnl Checks for various programs
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 AC_PROG_INSTALL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47 AC_PROG_LN_S
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48 AC_PROG_MAKE_SET
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49
750
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
50 AC_PATH_PROG(RM, rm)
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
51 AC_PATH_PROG(MV, mv)
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
52 AC_PATH_PROG(CP, cp)
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
53 AC_PATH_PROG(AR, ar)
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
54 AC_PATH_PROG(RANLIB, ranlib)
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
55
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56 dnl Path settings
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58 AC_PATH_PROG(BEEP_PATH, audacious, no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
59
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
60 AC_ARG_WITH(rc-path,
523
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents: 487
diff changeset
61 [ --rc-path=path Resource and configuration path for audacious relative to $HOME.],
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
62 [rc_path=$withval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
63 [rc_path=.audacious]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
64 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
65 AC_DEFINE_UNQUOTED(BMP_RCPATH, "$rc_path",
535
f0464cb2f609 [svn] We now require GTK+ 2.6.x.
nenolod
parents: 527
diff changeset
66 [Resource and configuration path for audacious relative to $HOME.]
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
67 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
68 AC_SUBST(BMP_RCPATH)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
69
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
70 AC_ARG_ENABLE(one-plugin-dir,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
71 [ --enable-one-plugin-dir Use a single plugin dir [default=no]],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
72 [enable_one_plugin_dir=$enableval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
73 [enable_one_plugin_dir=no]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
74 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
75
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
76 AC_ARG_ENABLE(user-plugin-dir,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
77 [ --disable-user-plugin-dir disable per-user plugin dir],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
78 [enable_user_plugin_dir=$enableval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
79 [enable_user_plugin_dir=yes]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
80 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
81
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
82 dnl Check for GTK/GLib/GThread/Pango
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
83
535
f0464cb2f609 [svn] We now require GTK+ 2.6.x.
nenolod
parents: 527
diff changeset
84 PKG_CHECK_MODULES(GTK, [glib-2.0 >= 2.6.0 gtk+-2.0 >= 2.6.0 gthread-2.0 pango],
f0464cb2f609 [svn] We now require GTK+ 2.6.x.
nenolod
parents: 527
diff changeset
85 [ADD_PC_REQUIRES([glib-2.0 >= 2.6.0, gtk+-2.0 >= 2.6.0])],
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
86 [AC_MSG_ERROR([Cannot find glib2/gtk2/pango])]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
87 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
88
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
89 dnl Check for libglade
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
90
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
91 PKG_CHECK_MODULES(LIBGLADE, [libglade-2.0 >= 2.3.1],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
92 [],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
93 [AC_MSG_ERROR([Cannot find libglade])]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
94 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
95
967
55757f96ef5d [svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents: 960
diff changeset
96 AC_PATH_PROG(TAGLIB_CONFIG, taglib-config, [no], [$PATH:$prefix/bin])
55757f96ef5d [svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents: 960
diff changeset
97 if test "x$TAGLIB_CONFIG" = "xno" ; then
55757f96ef5d [svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents: 960
diff changeset
98 AC_MSG_ERROR([Cannot find taglib])
55757f96ef5d [svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents: 960
diff changeset
99 else
55757f96ef5d [svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents: 960
diff changeset
100 TAGLIB_CFLAGS=[`$TAGLIB_CONFIG --cflags`]
55757f96ef5d [svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents: 960
diff changeset
101 TAGLIB_LIBS=[`$TAGLIB_CONFIG --libs`]
55757f96ef5d [svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents: 960
diff changeset
102 fi
55757f96ef5d [svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents: 960
diff changeset
103 AC_SUBST(TAGLIB_CFLAGS)
55757f96ef5d [svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents: 960
diff changeset
104 AC_SUBST(TAGLIB_LIBS)
55757f96ef5d [svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents: 960
diff changeset
105
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
106 # Check if socklen_t is defined
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
107
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
108 AC_CACHE_CHECK(for socklen_t, beep_cv_type_socklen_t,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
109 [AC_TRY_COMPILE(
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
110 [#include <sys/types.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
111 #include <sys/socket.h>],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
112 [socklen_t s;],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
113 [beep_cv_type_socklen_t=yes],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
114 [beep_cv_type_socklen_t=no]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
115 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
116 ]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
117 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
118
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
119 if test "$beep_cv_type_socklen_t" = "no"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
120 AC_DEFINE(socklen_t, int, [Define to int if the socklen_t type is missing])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
121 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
122
978
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
123 dnl IPv6 support
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
124 dnl ========================
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
125 AC_ARG_ENABLE(ipv6,
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
126 [ --enable-ipv6 enable IPv6 support (default=no)],
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
127 enable_ipv6=$enableval, enable_ipv6=no)
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
128 if test "x$enable_ipv6" = xyes; then
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
129 AC_DEFINE(USE_IPV6,, [Define if building with IPv6 support] )
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
130 fi
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
131 AM_CONDITIONAL(USE_IPV6,test "x$enable_ipv6" = xyes)
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
132 AC_SUBST(USE_IPV6)
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
133
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
134 dnl plugin stuff
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
135 dnl ========================
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
136
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
137 dnl Ok, first we find out what flags we need to use.
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
138 AC_MSG_CHECKING([for what extension and flags to use for plugin compilation])
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
139 case "$target" in
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
140 *-apple-*)
1657
81e057e03c1f [svn] - ensure that the module symtable is consistantly unique on Mach-O bundles
nenolod
parents: 1656
diff changeset
141 AC_MSG_RESULT([Mac OS X: -fPIC -bundle -fno-common -flat_namespace -undefined suppress, .dylib])
1624
d863bca9b6d7 [svn] - PICFLAGS should not call -shared/-bundle as some versions of GCC will misinterpret that. Only PICLDFLAGS should.
nenolod
parents: 1622
diff changeset
142 PICFLAGS="-fPIC -DPIC"
1657
81e057e03c1f [svn] - ensure that the module symtable is consistantly unique on Mach-O bundles
nenolod
parents: 1656
diff changeset
143 PICLDFLAGS="-fPIC -DPIC -bundle -fno-common -flat_namespace -undefined suppress"
1630
842667773cc0 [svn] - audacious now builds on OS X
nenolod
parents: 1629
diff changeset
144 LIBLDFLAGS="-dynamiclib"
842667773cc0 [svn] - audacious now builds on OS X
nenolod
parents: 1629
diff changeset
145 AUDLDFLAGS=""
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
146 SHARED_SUFFIX=".dylib"
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
147 ;;
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
148 *)
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
149 AC_MSG_RESULT([libdl-compatible: -fPIC -DPIC -shared, .so])
1624
d863bca9b6d7 [svn] - PICFLAGS should not call -shared/-bundle as some versions of GCC will misinterpret that. Only PICLDFLAGS should.
nenolod
parents: 1622
diff changeset
150 PICFLAGS="-fPIC -DPIC"
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
151 PICLDFLAGS="-fPIC -DPIC -shared"
1630
842667773cc0 [svn] - audacious now builds on OS X
nenolod
parents: 1629
diff changeset
152 LIBLDFLAGS="-fPIC -DPIC -shared"
842667773cc0 [svn] - audacious now builds on OS X
nenolod
parents: 1629
diff changeset
153 AUDLDFLAGS="-Wl,-export-dynamic -Wl,-rpath=\${libdir}"
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
154 SHARED_SUFFIX=".so"
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
155 ;;
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
156 esac
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
157 AC_SUBST(PICFLAGS)
1626
83769dcca55e [svn] - AC_SUBST(PICLDFLAGS) sorry
nenolod
parents: 1624
diff changeset
158 AC_SUBST(PICLDFLAGS)
1630
842667773cc0 [svn] - audacious now builds on OS X
nenolod
parents: 1629
diff changeset
159 AC_SUBST(LIBLDFLAGS)
842667773cc0 [svn] - audacious now builds on OS X
nenolod
parents: 1629
diff changeset
160 AC_SUBST(AUDLDFLAGS)
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
161 AC_SUBST(SHARED_SUFFIX)
1632
978ada910173 [svn] - module fixes
nenolod
parents: 1631
diff changeset
162 AC_DEFINE_UNQUOTED(SHARED_SUFFIX, "${SHARED_SUFFIX}",
1631
20ff61083530 [svn] - make audtool build
nenolod
parents: 1630
diff changeset
163 [Define the shared module suffix extension on your platform.])
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
164
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
165 AC_MSG_CHECKING([if you are running Apple-GCC])
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
166 case "$target" in
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
167 *-apple-*)
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
168 AC_MSG_RESULT([yes, sorry you poor bastard])
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
169 LDFLAGS="$LDFLAGS -Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
170 ;;
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
171 *)
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
172 AC_MSG_RESULT([no])
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
173 ;;
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
174 esac
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
175
1105
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
176 dnl chardet support
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
177 dnl ========================
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
178 AC_ARG_ENABLE(chardet,
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
179 [ --enable-chardet enable character set detection support (default=no)],
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
180 enable_chardet=$enableval, enable_chardet=no)
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
181 if test "x$enable_chardet" = xyes; then
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
182 AC_DEFINE(USE_CHARDET, 1, [Define if character set detection enabled] )
1317
a698348c5155 [svn] - libaac: potential buffer overflow vulnerability fix
nenolod
parents: 1265
diff changeset
183 AC_CHECK_LIB(guess, guess_jp, [SUBDIR_GUESS=[''] CHARDET_LIBS=['-lguess']], [SUBDIR_GUESS=['libguess'] CHARDET_LIBS=['../libguess/libguess.a']])
1613
9becbe564217 [svn] - chardet patch for Russian language witten by Valentine Sinitsyn.
yaz
parents: 1603
diff changeset
184 AC_CHECK_LIB(rcd, rcdGetRussianCharset, [CHARDET_LIBS=["$CHARDET_LIBS -lrcd"]], [SUBDIR_GUESS=["$SUBDIR_GUESS librcd"] CHARDET_LIBS=["$CHARDET_LIBS ../librcd/librcd.a"]])
1105
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
185 AC_CHECK_LIB(udet_c, detectCharset, [AC_DEFINE(HAVE_UDET, 1,[Define if the system has Mozilla universal character detector library]) CHARDET_LIBS=["$CHARDET_LIBS -ludet -ludet_c"]])
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
186 fi
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
187 AM_CONDITIONAL(USE_CHARDET,test "x$enable_chardet" = xyes)
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
188 AC_SUBST(USE_CHARDET)
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
189 AC_SUBST(CHARDET_LIBS)
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
190 AC_SUBST(SUBDIR_GUESS)
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
191
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
192 dnl GConf support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
193
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
194 AC_ARG_ENABLE( gconf,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
195 [ --enable-gconf enable GConf support (default=disabled)],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
196 [enable_gconf=$enableval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
197 [enable_gconf="no"]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
198 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
199
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
200 if test "$enable_gconf" = "yes"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
201 PKG_CHECK_MODULES(GCONF, [gconf-2.0 >= 2.6.0],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
202 [
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
203 AC_DEFINE(HAVE_GCONF, , [Define if building with GConf support])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
204 ADD_PC_REQUIRES([gconf-2.0 >= 2.6.0])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
205 ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
206 [AC_MSG_ERROR([Cannot find GConf])]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
207 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
208 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
209
727
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
210 if test "$enable_gconf" = "yes"; then
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
211 CONFIGDB_BACKEND="gconf"
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
212 else
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
213 CONFIGDB_BACKEND="rcfile"
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
214 fi
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
215
727
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
216 AC_SUBST(CONFIGDB_BACKEND)
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
217
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
218 dnl GnomeVFS support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
219
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
220 AC_ARG_ENABLE( gnome-vfs,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
221 [ --enable-gnome-vfs enable GnomeVFS support (default=disabled)],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
222 [enable_gnomevfs=$enableval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
223 [enable_gnomevfs="no"]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
224 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
225
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
226 if test "$enable_gnomevfs" = "yes"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
227 PKG_CHECK_MODULES(GNOMEVFS, [gnome-vfs-2.0 >= 2.6.0],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
228 [
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
229 AC_DEFINE(HAVE_GNOME_VFS, , [Define if building with GnomeVFS support])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
230 ADD_PC_REQUIRES([gnome-vfs-2.0 >= 2.6.0])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
231 ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
232 [AC_MSG_ERROR([Cannot find GnomeVFS])]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
233 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
234 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
235
726
b50d5337a8ce [svn] - gnomevfs
nenolod
parents: 725
diff changeset
236 if test "$enable_gnomevfs" = "yes"; then
b50d5337a8ce [svn] - gnomevfs
nenolod
parents: 725
diff changeset
237 VFS_BACKEND="gnome"
b50d5337a8ce [svn] - gnomevfs
nenolod
parents: 725
diff changeset
238 else
b50d5337a8ce [svn] - gnomevfs
nenolod
parents: 725
diff changeset
239 VFS_BACKEND="stdio"
b50d5337a8ce [svn] - gnomevfs
nenolod
parents: 725
diff changeset
240 fi
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
241
727
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
242 AC_SUBST(VFS_BACKEND)
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
243
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
244 AC_CHECK_HEADERS(linux/cdrom.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
245 AC_CHECK_HEADERS(sys/cdio.h)
1675
cc5952675fca [svn] Fixes for NetBSD by Jonathan Schleifer <js@h3c.de>
chainsaw
parents: 1671
diff changeset
246 AC_CHECK_HEADERS(sys/cdrio.h)
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
247 AC_CHECK_HEADERS(linux/joystick.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
248 AC_CHECK_HEADERS(unistd.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
249 AC_CHECK_HEADERS(fcntl.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
250 AC_CHECK_HEADERS(sys/ioctl.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
251 AC_CHECK_HEADERS(fnmatch.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
252 AC_CHECK_HEADERS(limits.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
253 AC_CHECK_HEADERS(wchar.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
254 AC_CHECK_HEADERS(fts.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
255
1675
cc5952675fca [svn] Fixes for NetBSD by Jonathan Schleifer <js@h3c.de>
chainsaw
parents: 1671
diff changeset
256 AC_CHECK_FUNCS([mkdtemp getmntinfo statvfs strtoul lrintf])
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
257
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
258 AM_CONDITIONAL(HAVE_CDROM, test "${ac_cv_header_linux_cdrom_h}" = "yes" || test "${ac_cv_header_sys_cdio_h}" = "yes")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
259 AM_CONDITIONAL(HAVE_LINUX_JOYSTICK,test "${ac_cv_header_linux_joystick_h}" = "yes")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
260
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
261 AC_MSG_CHECKING(if __ELF__ is defined)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
262 AC_EGREP_CPP(yes,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
263 [#ifdef __ELF__
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
264 yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
265 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
266 ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
267 [is_elf=yes],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
268 [is_elf=no]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
269 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
270 AC_MSG_RESULT([${is_elf}])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
271
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
272 have_solaris=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
273 have_sun=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
274 ARCH_DEFINES=""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
275 case "$host" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
276 *-*-openbsd* | *-*-netbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
277 have_sun=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
278 if test "${is_elf}" = "no"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
279 then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
280 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
281 fi
758
f9e8807ea6e5 [svn] - Initial port of the bsd/sun audio output plugin from XMMS. Needs testing.
nenolod
parents: 756
diff changeset
282 OUTPUT_PLUGINS="$OUTPUT_PLUGINS sun"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
283 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
284 *-*-darwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
285 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
286 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
287 *-hpux-*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
288 ARCH_DEFINES="-DHPUX"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
289 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
290 *-*-solaris* | *-*-sunos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
291 have_solaris=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
292 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
293 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
294
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
295 arch_type=other
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
296 x86_asm=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
297 case "$host" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
298 i386-*-* | i486-*-* | i586-*-* | i686-*-* | i86pc-*-*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
299 arch_type=ix86
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
300 case "$host" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
301 *-*-netbsd* | *-*openbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
302 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
303 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
304 ARCH_DEFINES="-DI386_ASSEM"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
305 x86_asm=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
306 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
307 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
308 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
309 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
310
688
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
311 dnl *** Scrobbler ***
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
312
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
313 scrobbler="yes"
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
314
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
315 dnl Checks for libmusicbrainz
692
eaf0dfa9e995 [svn] - Use pkg-config to detect libmusicbrainz.
nenolod
parents: 688
diff changeset
316 PKG_CHECK_MODULES(MUSICBRAINZ, [libmusicbrainz >= 2.0.0], , [scrobbler="no"])
688
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
317
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
318 dnl libcurl check
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
319
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
320 my_cv_curl_vers=NONE
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
321 dnl check is the plain-text version of the required version
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
322 check="7.9.7"
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
323 dnl check_hex must be UPPERCASE if any hex letters are present
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
324 check_hex="070907"
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
325
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
326 AC_MSG_CHECKING([for curl >= $check])
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
327
960
0c5d8ffeba88 [svn] - sync configure.ac with stable
nenolod
parents: 937
diff changeset
328 PKG_CHECK_MODULES(CURL, [libcurl >= 7.9.7], , [scrobbler="no"])
688
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
329
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
330 if test "x$scrobbler" = "xyes"; then
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
331 GENERAL_PLUGINS="$GENERAL_PLUGINS scrobbler"
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
332 fi
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
333
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
334 AC_SUBST(CURL_CFLAGS)
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
335 AC_SUBST(CURL_LIBS)
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
336 AC_SUBST(MUSICBRAINZ_LIBS)
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
337
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
338 dnl *** End of Scrobbler checks ***
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
339
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
340 dnl *** libparanormal checks
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
341
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
342 AC_ARG_ENABLE(paranormal,
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
343 [ --disable-paranormal disable paranormal vis plugin. (default=enabled)],
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
344 [have_paranormal=$enableval],
1568
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
345 [have_paranormal=yes])
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
346
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
347 if test "x$ap_disable_paranormal" = "xyes"; then
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
348 have_paranormal=no
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
349 AC_MSG_RESULT([*** paranormal plugin disabled by request ***])
1568
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
350 else
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
351 have_paranormal=yes
1519
1ffc2670d6b0 [svn] - oh, define an actual SDL version here. :P
nenolod
parents: 1518
diff changeset
352 AM_PATH_SDL(1.2.5, , [
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
353 AC_MSG_WARN([*** SDL is not installed. Paranormal will not be built. ***])
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
354 have_paranormal="no"
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
355 ])
1568
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
356 fi
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
357
1568
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
358 AC_ARG_ENABLE(xspf,
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
359 [ --disable-xspf disable XSPF support. (default=enabled)],
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
360 [have_xspf=$enableval], [have_xspf=yes])
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
361
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
362 AM_PATH_XML2(2.0.0, , [
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
363 AC_MSG_WARN([*** libxml2 is not installed. Paranormal nor XSPF support will not be built. ***])
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
364 have_paranormal="no"
1568
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
365 have_xspf="no"
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
366 ])
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
367
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
368 if test "$have_paranormal" = "yes"; then
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
369 VISUALIZATION_PLUGINS="$VISUALIZATION_PLUGINS paranormal"
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
370 fi
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
371
1568
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
372 if test "$have_xspf" = "yes"; then
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
373 CONTAINER_PLUGINS="$CONTAINER_PLUGINS xspf"
1569
3af18d169044 [svn] - Plugins/Container/xspf/xspf.c: xspf cleanups
nenolod
parents: 1568
diff changeset
374 AC_DEFINE(HAVE_XSPF_PLAYLIST, 1, [Define if XSPF playlists are available.])
1568
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
375 fi
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
376
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
377 dnl *** End of all plugin checks ***
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
378
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
379 AC_SUBST(ARCH_DEFINES)
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
380
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
381 dnl XXX delete ASAP -nenolod
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
382 AM_CONDITIONAL(ARCH_X86, test "x$arch_type" = "xix86")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
383 AM_CONDITIONAL(USE_X86ASM, test "x$x86_asm" = xyes)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
384 AM_CONDITIONAL(HAVE_SOLARIS, test "x$have_solaris" = xyes)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
385 AM_CONDITIONAL(HAVE_SUN, test "x$have_sun" = xyes)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
386
1425
504534b687c0 [svn] - better quoting
nenolod
parents: 1422
diff changeset
387 plugindir="$libdir/audacious"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
388 AC_SUBST(plugindir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
389
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
390 if test "x$enable_one_plugin_dir" = "xyes"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
391 pluginsubs="\\\"Plugins\\\""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
392 INPUT_PLUGIN_DIR=Plugins
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
393 OUTPUT_PLUGIN_DIR=Plugins
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
394 EFFECT_PLUGIN_DIR=Plugins
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
395 GENERAL_PLUGIN_DIR=Plugins
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
396 VISUALIZATION_PLUGIN_DIR=Plugins
1561
079c0268c56c [svn] - bootstrap for ContainerPlugin dir stuff
nenolod
parents: 1537
diff changeset
397 CONTAINER_PLUGIN_DIR=Plugins
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
398 else
1561
079c0268c56c [svn] - bootstrap for ContainerPlugin dir stuff
nenolod
parents: 1537
diff changeset
399 pluginsubs="\\\"Output\\\",\\\"Input\\\",\\\"Effect\\\",\\\"General\\\",\\\"Visualization\\\",\\\"Container\\\""
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
400 INPUT_PLUGIN_DIR=Input
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
401 OUTPUT_PLUGIN_DIR=Output
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
402 EFFECT_PLUGIN_DIR=Effect
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
403 GENERAL_PLUGIN_DIR=General
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
404 VISUALIZATION_PLUGIN_DIR=Visualization
1561
079c0268c56c [svn] - bootstrap for ContainerPlugin dir stuff
nenolod
parents: 1537
diff changeset
405 CONTAINER_PLUGIN_DIR=Container
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
406 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
407
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
408 AC_SUBST(INPUT_PLUGIN_DIR)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
409 AC_SUBST(OUTPUT_PLUGIN_DIR)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
410 AC_SUBST(EFFECT_PLUGIN_DIR)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
411 AC_SUBST(GENERAL_PLUGIN_DIR)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
412 AC_SUBST(VISUALIZATION_PLUGIN_DIR)
1561
079c0268c56c [svn] - bootstrap for ContainerPlugin dir stuff
nenolod
parents: 1537
diff changeset
413 AC_SUBST(CONTAINER_PLUGIN_DIR)
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
414 AC_SUBST(pluginsubs)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
415
1421
fe6d04a4019a [svn] - try again
nenolod
parents: 1420
diff changeset
416 dnl XXX Work around some autoconf bugs.
1422
360ab7d8f221 [svn] - try NOW
nenolod
parents: 1421
diff changeset
417 if test "$prefix" = "NONE"; then
1421
fe6d04a4019a [svn] - try again
nenolod
parents: 1420
diff changeset
418 prefix="${ac_default_prefix}"
fe6d04a4019a [svn] - try again
nenolod
parents: 1420
diff changeset
419 fi
fe6d04a4019a [svn] - try again
nenolod
parents: 1420
diff changeset
420
1425
504534b687c0 [svn] - better quoting
nenolod
parents: 1422
diff changeset
421 if test -z "$datadir"; then
504534b687c0 [svn] - better quoting
nenolod
parents: 1422
diff changeset
422 datadir="${prefix}/share"
1418
0d6d938bc936 [svn] - work around a possible autoconf bug causing datadir to be blank
nenolod
parents: 1408
diff changeset
423 fi
0d6d938bc936 [svn] - work around a possible autoconf bug causing datadir to be blank
nenolod
parents: 1408
diff changeset
424
1425
504534b687c0 [svn] - better quoting
nenolod
parents: 1422
diff changeset
425 localedir="$datadir/locale"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
426 AC_SUBST(localedir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
427
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
428 BEEP_DEFINES="$CFLAGS -DDATA_DIR=\\\"$datadir/audacious\\\" -DPLUGIN_DIR=\\\"$plugindir\\\" -DPLUGINSUBS=$pluginsubs -DLOCALEDIR=\\\"$localedir\\\""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
429 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
430
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
431 if test "$enable_user_plugin_dir" = "no"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
432 AC_DEFINE(DISABLE_USER_PLUGIN_DIR,, [Define to disable per user plugin directory])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
433 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
434
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
435 AC_SUBST(BEEP_DEFINES)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
436
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
437 AC_SUBST(beepdir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
438 AC_SUBST(plugindir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
439
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
440 AC_SUBST(EFFECT_PLUGINS)
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
441 AC_SUBST(GENERAL_PLUGINS)
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
442 AC_SUBST(INPUT_PLUGINS)
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
443 AC_SUBST(OUTPUT_PLUGINS)
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
444 AC_SUBST(VISUALIZATION_PLUGINS)
1562
71c91ebdb55c [svn] - further progress
nenolod
parents: 1561
diff changeset
445 AC_SUBST(CONTAINER_PLUGINS)
38
4e0397865a31 [svn] Regenerate a bunch of stuff :)
nenolod
parents: 33
diff changeset
446
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
447 AC_CONFIG_FILES([
1656
d05836d18d42 [svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents: 1632
diff changeset
448 audacious.1
d05836d18d42 [svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents: 1632
diff changeset
449 audacious.spec
d05836d18d42 [svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents: 1632
diff changeset
450 audacious.pc
d05836d18d42 [svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents: 1632
diff changeset
451 audacious/audacious.desktop
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
452 audacious/images/Makefile
1656
d05836d18d42 [svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents: 1632
diff changeset
453 libaudacious/Makefile
d05836d18d42 [svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents: 1632
diff changeset
454 libguess/Makefile
1613
9becbe564217 [svn] - chardet patch for Russian language witten by Valentine Sinitsyn.
yaz
parents: 1603
diff changeset
455 librcd/Makefile
1656
d05836d18d42 [svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents: 1632
diff changeset
456 po/Makefile.in
d05836d18d42 [svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents: 1632
diff changeset
457 intl/Makefile
d05836d18d42 [svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents: 1632
diff changeset
458 icons/Makefile
d05836d18d42 [svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents: 1632
diff changeset
459 skin/Makefile
562
5cdadcf74ec3 [svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents: 539
diff changeset
460 mk/rules.mk
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
461 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
462
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
463 AC_OUTPUT
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
464
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
465
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
466 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
467 echo "Configuration:"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
468 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
469 echo " Install path: ${prefix}"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
470
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
471 if test "$BEEP_PATH" != "no"; then
38
4e0397865a31 [svn] Regenerate a bunch of stuff :)
nenolod
parents: 33
diff changeset
472 echo " Current Audacious executable: $BEEP_PATH"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
473 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
474
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
475 echo " Configuration path: \$HOME/$rc_path"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
476 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
477 echo " Use one plugin dir: $enable_one_plugin_dir"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
478 echo " Allow user plugin dir: $enable_user_plugin_dir"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
479 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
480 echo " GNOME support"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
481 echo " -------------"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
482 echo " GConf support $enable_gconf"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
483 echo " VFS support $enable_gnomevfs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
484 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
485
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
486 if test "$beep_cv_lib_xlibs_threadsafe" = "no"; then
32
8aee6a5bcc70 [svn] Libmikmod.
nenolod
parents: 23
diff changeset
487 echo "Note: You need to have thread-safe xlibs to use Audacious."
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
488 echo "If you are using libc5 thread aware Xlibs just skip this."
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
489 echo ""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
490 echo "If you don't have those libs and you are on a libc5 system get them at:"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
491 echo "ftp://ftp.dent.med.uni-muenchen.de/pub/wmglo/"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
492 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
493
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
494 if test "$BEEP_PATH" != "no" && test "$prefix/bin/audacious" != "$BEEP_PATH" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
495 echo ""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
496 echo "Note: Configure has discovered that you already have Audacious installed"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
497 echo "and it does not match with the given --prefix. You have Audacious installed "
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
498 echo "in $(dirname $BEEP_PATH) and you chose $prefix/bin."
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
499 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
500 echo "If you don't want two copies of Audacious installed, rerun configure with"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
501 echo "the --prefix option set to the location of the old Audacious, or uninstall"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
502 echo "the old Audacious."
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
503 fi