Mercurial > audlegacy
annotate configure.ac @ 4364:695e1c91be36
Reset op_state after calling close_audio to prevent possible future flushing.
author | Sascha Hlusiak <contact@saschahlusiak.de> |
---|---|
date | Mon, 24 Mar 2008 17:02:26 +0100 |
parents | 52902b89e1dd |
children | 6a26dabad84f |
rev | line source |
---|---|
3648
5bea21b52a06
Fix installation of Audacious desktop icon.
William Pitcock <nenolod@atheme.org>
parents:
3641
diff
changeset
|
1 |
0 | 2 dnl Process this file with autoconf to produce a configure script. |
4328
11eb8719a790
Audacious 1.5.0 release. Yes. Seriously.
William Pitcock <nenolod@atheme.org>
parents:
4318
diff
changeset
|
3 AC_INIT([audacious], [1.5.0], [bugs+audacious@atheme.org]) |
1420 | 4 AC_PREREQ([2.59]) |
0 | 5 |
6 AC_CANONICAL_HOST | |
7 AC_CANONICAL_TARGET | |
8 | |
9 AC_CONFIG_HEADERS([config.h]) | |
10 | |
11 dnl libbeep | |
12 LIBBEEP_MAJOR_VERSION=2 | |
13 LIBBEEP_MINOR_VERSION=0 | |
14 LIBBEEP_MICRO_VERSION=0 | |
15 LIBBEEP_VERSION=$LIBBEEP_MAJOR_VERSION.$LIBBEEP_MINOR_VERSION.$LIBBEEP_MICRO_VERSION | |
16 AC_SUBST(LIBBEEP_MAJOR_VERSION) | |
17 AC_SUBST(LIBBEEP_MINOR_VERSION) | |
18 AC_SUBST(LIBBEEP_MICRO_VERSION) | |
19 | |
38 | 20 dnl XXX kludge for FreeBSD |
21 if test -d "/usr/X11R6/include"; then | |
22 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" | |
23 fi | |
0 | 24 |
2324
2ab9ef1e9544
[svn] - remove leftover remnants of automake from buildsystem
nenolod
parents:
2323
diff
changeset
|
25 dnl OMK bootstrap |
2ab9ef1e9544
[svn] - remove leftover remnants of automake from buildsystem
nenolod
parents:
2323
diff
changeset
|
26 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME]) |
2ab9ef1e9544
[svn] - remove leftover remnants of automake from buildsystem
nenolod
parents:
2323
diff
changeset
|
27 AC_SUBST([VERSION], [AC_PACKAGE_VERSION]) |
2ab9ef1e9544
[svn] - remove leftover remnants of automake from buildsystem
nenolod
parents:
2323
diff
changeset
|
28 |
2ab9ef1e9544
[svn] - remove leftover remnants of automake from buildsystem
nenolod
parents:
2323
diff
changeset
|
29 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
2ab9ef1e9544
[svn] - remove leftover remnants of automake from buildsystem
nenolod
parents:
2323
diff
changeset
|
30 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]) |
756 | 31 |
0 | 32 dnl GNU gettext |
33 | |
34 AM_GNU_GETTEXT | |
35 AM_GNU_GETTEXT_VERSION([0.12.1]) | |
36 | |
37 dnl Check for C compiler | |
38 | |
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
|
39 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
|
40 AC_PROG_CXX |
0 | 41 AC_ISC_POSIX |
42 AC_C_BIGENDIAN | |
43 | |
4353 | 44 test "x$GCC" = "xyes" && CFLAGS="$CFLAGS -Wall -pipe" |
2315 | 45 |
0 | 46 dnl Check for assembler |
47 | |
48 AM_PROG_AS | |
49 | |
50 dnl Checks for various programs | |
51 | |
52 AC_PROG_LN_S | |
53 AC_PROG_MAKE_SET | |
54 | |
750 | 55 AC_PATH_PROG(RM, rm) |
56 AC_PATH_PROG(MV, mv) | |
57 AC_PATH_PROG(CP, cp) | |
58 AC_PATH_PROG(AR, ar) | |
59 AC_PATH_PROG(RANLIB, ranlib) | |
60 | |
0 | 61 dnl Path settings |
62 | |
63 AC_PATH_PROG(BEEP_PATH, audacious, no) | |
64 | |
65 AC_ARG_WITH(rc-path, | |
2318 | 66 [ --with-rc-path=path Resource and configuration path for audacious relative to $HOME. (deprecated, use XDG)], |
0 | 67 [rc_path=$withval], |
2302
a73097e58abb
[svn] Revert stupid commit by js, because that does not make us XDG basedir compliant.
kiyoshi
parents:
2301
diff
changeset
|
68 [rc_path=.audacious] |
0 | 69 ) |
70 AC_DEFINE_UNQUOTED(BMP_RCPATH, "$rc_path", | |
535 | 71 [Resource and configuration path for audacious relative to $HOME.] |
0 | 72 ) |
2325
63c9a2724e73
[svn] - revert r3646 because it is not a user-friendly method of transitioning.
nenolod
parents:
2324
diff
changeset
|
73 AC_DEFINE(DOTAUDACIOUS_COMPAT, 1, [Enable compatibility for $HOME/.audacious]) |
0 | 74 AC_SUBST(BMP_RCPATH) |
75 | |
76 AC_ARG_ENABLE(one-plugin-dir, | |
77 [ --enable-one-plugin-dir Use a single plugin dir [default=no]], | |
78 [enable_one_plugin_dir=$enableval], | |
79 [enable_one_plugin_dir=no] | |
80 ) | |
81 | |
82 AC_ARG_ENABLE(user-plugin-dir, | |
83 [ --disable-user-plugin-dir disable per-user plugin dir], | |
84 [enable_user_plugin_dir=$enableval], | |
85 [enable_user_plugin_dir=yes] | |
86 ) | |
87 | |
88 dnl Check for GTK/GLib/GThread/Pango | |
89 | |
4337 | 90 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.14.0 gthread-2.0], |
91 [ADD_PC_REQUIRES([glib-2.0 >= 2.14.0])], | |
92 [AC_MSG_ERROR([Cannot find Glib2 >= 2.14.0])] | |
0 | 93 ) |
94 | |
4337 | 95 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.10.0], |
96 [ADD_PC_REQUIRES([gtk+-2.0 >= 2.10.0])], | |
97 [AC_MSG_ERROR([Cannot find Gtk+2 >= 2.10.0])] | |
98 ) | |
2503
10692383c103
[svn] first try for libid3tag integration. this improved libid3tag supports vfs operations and is capable of adding id3v2 tag to files which doesn't have id3v2 tag ever.
yaz
parents:
2359
diff
changeset
|
99 |
4337 | 100 PKG_CHECK_MODULES(PANGO, [pango >= 1.8.0], |
101 [ADD_PC_REQUIRES([pango >= 1.8.0])], | |
102 [AC_MSG_ERROR([Cannot find Pango >= 1.8.0])] | |
2503
10692383c103
[svn] first try for libid3tag integration. this improved libid3tag supports vfs operations and is capable of adding id3v2 tag to files which doesn't have id3v2 tag ever.
yaz
parents:
2359
diff
changeset
|
103 ) |
10692383c103
[svn] first try for libid3tag integration. this improved libid3tag supports vfs operations and is capable of adding id3v2 tag to files which doesn't have id3v2 tag ever.
yaz
parents:
2359
diff
changeset
|
104 |
4337 | 105 |
2631
a2afa6ca7294
[svn] - integrate libmowgli requirement into buildsystem
nenolod
parents:
2619
diff
changeset
|
106 dnl Check for libmowgli. |
a2afa6ca7294
[svn] - integrate libmowgli requirement into buildsystem
nenolod
parents:
2619
diff
changeset
|
107 |
4337 | 108 PKG_CHECK_MODULES(MOWGLI, [libmowgli >= 0.4.0], |
109 [ADD_PC_REQUIRES([libmowgli >= 0.4.0])], | |
110 [AC_MSG_ERROR([Cannot find libmowgli, try http://www.atheme.org/projects/mowgli.shtml])] | |
2631
a2afa6ca7294
[svn] - integrate libmowgli requirement into buildsystem
nenolod
parents:
2619
diff
changeset
|
111 ) |
a2afa6ca7294
[svn] - integrate libmowgli requirement into buildsystem
nenolod
parents:
2619
diff
changeset
|
112 |
0 | 113 # Check if socklen_t is defined |
114 | |
115 AC_CACHE_CHECK(for socklen_t, beep_cv_type_socklen_t, | |
116 [AC_TRY_COMPILE( | |
117 [#include <sys/types.h> | |
118 #include <sys/socket.h>], | |
119 [socklen_t s;], | |
120 [beep_cv_type_socklen_t=yes], | |
121 [beep_cv_type_socklen_t=no] | |
122 ) | |
123 ] | |
124 ) | |
125 | |
126 if test "$beep_cv_type_socklen_t" = "no"; then | |
127 AC_DEFINE(socklen_t, int, [Define to int if the socklen_t type is missing]) | |
128 fi | |
129 | |
978 | 130 dnl IPv6 support |
131 dnl ======================== | |
132 AC_ARG_ENABLE(ipv6, | |
133 [ --enable-ipv6 enable IPv6 support (default=no)], | |
134 enable_ipv6=$enableval, enable_ipv6=no) | |
4353 | 135 if test "x$enable_ipv6" = "xyes"; then |
978 | 136 AC_DEFINE(USE_IPV6,, [Define if building with IPv6 support] ) |
137 fi | |
4353 | 138 AM_CONDITIONAL(USE_IPV6,test "x$enable_ipv6" = "xyes") |
978 | 139 AC_SUBST(USE_IPV6) |
140 | |
3433
2f96a5ab1916
--enable-pch to use precompiled headers, does not properly work
William Pitcock <nenolod@atheme.org>
parents:
3430
diff
changeset
|
141 dnl PCH support |
2f96a5ab1916
--enable-pch to use precompiled headers, does not properly work
William Pitcock <nenolod@atheme.org>
parents:
3430
diff
changeset
|
142 dnl ======================== |
2f96a5ab1916
--enable-pch to use precompiled headers, does not properly work
William Pitcock <nenolod@atheme.org>
parents:
3430
diff
changeset
|
143 AC_ARG_ENABLE(pch, |
2f96a5ab1916
--enable-pch to use precompiled headers, does not properly work
William Pitcock <nenolod@atheme.org>
parents:
3430
diff
changeset
|
144 [ --enable-pch use GCC precompiled headers (experimental) (default=no)], |
2f96a5ab1916
--enable-pch to use precompiled headers, does not properly work
William Pitcock <nenolod@atheme.org>
parents:
3430
diff
changeset
|
145 enable_pch=$enableval, enable_pch=no) |
4353 | 146 if test "x$enable_pch" = "xyes"; then |
3433
2f96a5ab1916
--enable-pch to use precompiled headers, does not properly work
William Pitcock <nenolod@atheme.org>
parents:
3430
diff
changeset
|
147 PCH="pch" |
2f96a5ab1916
--enable-pch to use precompiled headers, does not properly work
William Pitcock <nenolod@atheme.org>
parents:
3430
diff
changeset
|
148 fi |
2f96a5ab1916
--enable-pch to use precompiled headers, does not properly work
William Pitcock <nenolod@atheme.org>
parents:
3430
diff
changeset
|
149 AC_SUBST(PCH) |
2f96a5ab1916
--enable-pch to use precompiled headers, does not properly work
William Pitcock <nenolod@atheme.org>
parents:
3430
diff
changeset
|
150 |
1622 | 151 dnl plugin stuff |
152 dnl ======================== | |
153 | |
154 dnl Ok, first we find out what flags we need to use. | |
3656
db04d0916c22
implib for ${PROG} should finally work.
Jonathan Schleifer <js@h3c.de>
parents:
3655
diff
changeset
|
155 BUILDSYS_PROG_IMPLIB |
3641
12500701b6dd
Update buildsys (adds ${PROG_SUFFIX}).
Jonathan Schleifer <js@h3c.de>
parents:
3628
diff
changeset
|
156 BUILDSYS_SHARED_LIB |
3763
6bec10770466
static import libraries on Win32/BeOS/etc (-Wl,--out-implib) and dynamic import libraries (POSIX) are no longer needed.
William Pitcock <nenolod@atheme.org>
parents:
3657
diff
changeset
|
157 IMPLIB_LIBS='' |
3657 | 158 AC_SUBST(IMPLIB_LIBS) |
3535 | 159 |
160 dnl XXX | |
161 SHARED_SUFFIX=$PLUGIN_SUFFIX | |
1622 | 162 AC_SUBST(SHARED_SUFFIX) |
1632 | 163 AC_DEFINE_UNQUOTED(SHARED_SUFFIX, "${SHARED_SUFFIX}", |
1631 | 164 [Define the shared module suffix extension on your platform.]) |
1622 | 165 |
166 AC_MSG_CHECKING([if you are running Apple-GCC]) | |
167 case "$target" in | |
168 *-apple-*) | |
169 AC_MSG_RESULT([yes, sorry you poor bastard]) | |
3420
7b8eb1035978
macos: Add framework dependency on Carbon.
William Pitcock <nenolod@atheme.org>
parents:
3376
diff
changeset
|
170 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework CoreServices -framework Carbon" |
1622 | 171 ;; |
172 *) | |
173 AC_MSG_RESULT([no]) | |
174 ;; | |
175 esac | |
176 | |
1105
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
177 dnl chardet support |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
178 dnl ======================== |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
179 AC_ARG_ENABLE(chardet, |
2692 | 180 [ --enable-chardet enable character set detection support (default=yes)], |
181 enable_chardet=$enableval, enable_chardet=yes) | |
4318 | 182 if test "x$enable_chardet" = "xyes"; then |
1105
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
183 AC_DEFINE(USE_CHARDET, 1, [Define if character set detection enabled] ) |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
184 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
|
185 fi |
4353 | 186 AM_CONDITIONAL(USE_CHARDET,test "x$enable_chardet" = "xyes") |
1105
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
187 AC_SUBST(USE_CHARDET) |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
188 AC_SUBST(CHARDET_LIBS) |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
189 AC_SUBST(SUBDIR_GUESS) |
0 | 190 |
2694
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
191 dnl D-Bus support |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
192 dnl ======================== |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
193 AC_ARG_ENABLE(dbus, |
2726 | 194 [ --enable-dbus enable D-Bus support (default=yes)], |
2694
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
195 [enable_dbus=$enableval], |
2726 | 196 [enable_dbus="yes"] |
2694
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
197 ) |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
198 |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
199 AM_CONDITIONAL(USE_DBUS, test "x$enable_dbus" = "xyes") |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
200 if test "x$enable_dbus" = "xyes"; then |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
201 PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60 dbus-glib-1 >= 0.60 gthread-2.0], |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
202 enable_dbus="yes", [ |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
203 AC_MSG_RESULT(no) |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
204 enable_dbus="no" |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
205 ]) |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
206 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool, no) |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
207 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal, no) |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
208 if test "x$DBUS_BINDING_TOOL" = "xno" || test "x$GLIB_GENMARSHAL" = "xno" || test "x$enable_dbus" = "xno" ; then |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
209 enable_dbus="no" |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
210 else |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
211 AC_DEFINE(USE_DBUS, 1, [Define if D-Bus support enabled]) |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
212 AC_DEFINE(DBUS_SERVICES_DIR, "$datadir/dbus-1/services", |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
213 [Location of D-Bus services directory]) |
2771
4585019eb82e
[svn] -Renamed MPRIS /TrackList Shuffle method to Random
magma
parents:
2770
diff
changeset
|
214 USE_DBUS=1 |
2770
e21a9128e683
[svn] - remove -laudacious from audacious.pc.in. -laudclient will be put into audacious.pc if --enable-dbus is specified.
yaz
parents:
2732
diff
changeset
|
215 LIBAUDCLIENT_LDFLAGS="-laudclient" |
2694
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
216 AC_SUBST(USE_DBUS) |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
217 AC_SUBST(DBUS_CFLAGS) |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
218 AC_SUBST(DBUS_LIBS) |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
219 AC_SUBST(DBUS_SERVICES_DIR) |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
220 AC_SUBST(DBUS_BINDING_TOOL) |
2770
e21a9128e683
[svn] - remove -laudacious from audacious.pc.in. -laudclient will be put into audacious.pc if --enable-dbus is specified.
yaz
parents:
2732
diff
changeset
|
221 AC_SUBST(LIBAUDCLIENT_LDFLAGS) |
2694
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
222 fi |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
223 fi |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
224 |
2538
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
225 dnl libsamplerate support |
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
226 dnl ======================== |
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
227 AC_ARG_ENABLE(samplerate, |
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
228 [ --enable-samplerate enable libsamplerate support (default=no)], |
2543
535bc24a9eb1
[svn] - make configure script show the configuration status of sampling rate conversion.
yaz
parents:
2540
diff
changeset
|
229 [enable_samplerate=$enableval], [enable_samplerate=no]) |
535bc24a9eb1
[svn] - make configure script show the configuration status of sampling rate conversion.
yaz
parents:
2540
diff
changeset
|
230 if test "x$enable_samplerate" = "xyes"; then |
2538
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
231 AC_DEFINE(USE_SRC, 1, [Define if libsamplerate enabled] ) |
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
232 PKG_CHECK_MODULES(samplerate, samplerate) |
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
233 AC_SUBST(USE_SRC) |
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
234 AC_SUBST(samplerate_CFLAGS) |
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
235 AC_SUBST(samplerate_LIBS) |
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
236 AC_CHECK_LIB(samplerate, src_process,,AC_MSG_ERROR([*** Unable to find libsamplerate library!])) |
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
237 fi |
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
238 |
2168
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
239 dnl regex support (gnu/oniguruma/pcre) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
240 dnl ======================== |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
241 REGEX_LIBS= |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
242 REGEX_CFLAGS= |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
243 AC_ARG_WITH(regexlib, |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
244 [ |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
245 --with-regexlib[[=gnu/oniguruma/pcre]] use the chosen regex library (default: gnu) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
246 ], |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
247 [case "${withval}" in |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
248 gnu) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
249 AC_DEFINE(USE_REGEX_GNU,[1],[If this macro is defined, use GNU regex library.]) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
250 ;; |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
251 pcre) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
252 PKG_CHECK_MODULES(LIBPCRE, [libpcre >= 6.7], |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
253 [ |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
254 AC_DEFINE(USE_REGEX_PCRE,[1],[If this macro is defined, use PCRE regex library.]) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
255 REGEX_LIBS="-lpcreposix $LIBPCRE_LIBS" |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
256 REGEX_CFLAGS=$LIBPCRE_CFLAGS |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
257 ], |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
258 [AC_MSG_ERROR([Cannot find PCRE])] |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
259 ) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
260 ;; |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
261 oniguruma) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
262 AC_CHECK_LIB( onig , onig_new , |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
263 [ |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
264 AC_DEFINE(USE_REGEX_ONIGURUMA,[1],[If this macro is defined, use Oniguruma regex library.]) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
265 REGEX_LIBS=['-lonig'] |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
266 ], |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
267 [AC_MSG_ERROR([Cannot find Oniguruma])] |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
268 ) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
269 ;; |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
270 *) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
271 AC_DEFINE(USE_REGEX_GNU,[1],[If this macro is defined, use GNU regex library.]) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
272 ;; |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
273 esac],AC_DEFINE(USE_REGEX_GNU,[1],[If this macro is defined, use GNU regex library.])) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
274 |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
275 AC_SUBST(REGEX_LIBS) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
276 AC_SUBST(REGEX_CFLAGS) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
277 |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
278 |
0 | 279 dnl GConf support |
280 | |
2535 | 281 PKG_CHECK_MODULES(LIBMCS, [libmcs >= 0.1], |
282 [ | |
283 AC_DEFINE(HAVE_MCS, , [Define if building with libmcs support]) | |
284 ADD_PC_REQUIRES([libmcs >= 0.1]) | |
285 ], | |
4330
0b9a75430f6b
Update URLs to libmcs and libmowgli and few typomatic things.
Matti Hamalainen <ccr@tnsp.org>
parents:
4328
diff
changeset
|
286 [AC_MSG_ERROR([Cannot find libmcs, try http://www.atheme.org/projects/mcs.shtml])] |
2535 | 287 ) |
0 | 288 |
4233
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
289 dnl AltiVec support |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
290 |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
291 AC_ARG_ENABLE(altivec, |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
292 [ --disable-altivec disable AltiVec support. (default=enabled) ], |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
293 [enable_altivec=$enableval], |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
294 [enable_altivec=yes] |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
295 ) |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
296 if test "x$enable_altivec" = "xyes"; then |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
297 AC_CHECK_HEADERS(altivec.h, |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
298 [AC_DEFINE(HAVE_ALTIVEC, 1, [Define to 1 if your system has AltiVec.]) |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
299 AC_DEFINE(HAVE_ALTIVEC_H, 1, [Define to 1 if your system has an altivec.h file.]) |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
300 AC_DEFINE(ARCH_POWERPC, 1, [Define to 1 if your system is a PowerPC.]) |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
301 SIMD_CFLAGS=-maltivec |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
302 AC_SUBST(SIMD_CFLAGS)], |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
303 [enable_altivec="no"] |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
304 ) |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
305 fi |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
306 |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
307 dnl SSE2 support |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
308 |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
309 AC_ARG_ENABLE(sse2, |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
310 [ --disable-sse2 disable SSE2 support. (default=enabled) ], |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
311 [enable_sse2=$enableval], |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
312 [enable_sse2=yes] |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
313 ) |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
314 if test "x$enable_sse2" = "xyes"; then |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
315 AC_MSG_CHECKING(SSE2) |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
316 ac_save_CFLAGS="$CFLAGS" |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
317 CFLAGS="-msse2" |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
318 AC_TRY_RUN([ |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
319 #include <emmintrin.h> |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
320 int main() |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
321 { |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
322 _mm_setzero_pd(); |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
323 return 0; |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
324 } |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
325 ], |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
326 [AC_MSG_RESULT(SSE2 yes) |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
327 AC_DEFINE(HAVE_SSE2, 1, [Define to 1 if your system has SSE2]) |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
328 SIMD_CFLAGS=-msse2], |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
329 [AC_MSG_RESULT(SSE2 no) |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
330 enable_sse2="no"], |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
331 ) |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
332 fi |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
333 AC_SUBST(SIMD_CFLAGS) |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
334 CFLAGS="$ac_save_CFLAGS" |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
335 |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
336 |
0 | 337 AC_CHECK_HEADERS(unistd.h) |
338 AC_CHECK_HEADERS(fcntl.h) | |
339 AC_CHECK_HEADERS(sys/ioctl.h) | |
340 AC_CHECK_HEADERS(fnmatch.h) | |
341 AC_CHECK_HEADERS(limits.h) | |
342 AC_CHECK_HEADERS(wchar.h) | |
343 AC_CHECK_HEADERS(fts.h) | |
2661
f6c7271df7de
[svn] - use execinfo.h to provide more useful information about crashes
nenolod
parents:
2632
diff
changeset
|
344 AC_CHECK_HEADERS(execinfo.h) |
0 | 345 |
1675
cc5952675fca
[svn] Fixes for NetBSD by Jonathan Schleifer <js@h3c.de>
chainsaw
parents:
1671
diff
changeset
|
346 AC_CHECK_FUNCS([mkdtemp getmntinfo statvfs strtoul lrintf]) |
0 | 347 |
348 AC_MSG_CHECKING(if __ELF__ is defined) | |
349 AC_EGREP_CPP(yes, | |
350 [#ifdef __ELF__ | |
351 yes | |
352 #endif | |
353 ], | |
354 [is_elf=yes], | |
355 [is_elf=no] | |
356 ) | |
357 AC_MSG_RESULT([${is_elf}]) | |
358 | |
359 have_solaris=no | |
360 have_sun=no | |
361 ARCH_DEFINES="" | |
362 case "$host" in | |
2018
58ea18909fe7
[svn] - MirBSD support from <bsiegert -at- gmx.de>
nenolod
parents:
2005
diff
changeset
|
363 *-*-openbsd* | *-*-netbsd* | *-*-mirbsd*) |
0 | 364 have_sun=yes |
365 if test "${is_elf}" = "no" | |
366 then | |
367 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any]) | |
368 fi | |
369 ;; | |
370 *-*-darwin*) | |
371 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any]) | |
372 ;; | |
373 *-hpux-*) | |
374 ARCH_DEFINES="-DHPUX" | |
375 ;; | |
376 *-*-solaris* | *-*-sunos*) | |
377 have_solaris=yes | |
378 ;; | |
379 esac | |
380 | |
381 arch_type=other | |
382 x86_asm=no | |
383 case "$host" in | |
384 i386-*-* | i486-*-* | i586-*-* | i686-*-* | i86pc-*-*) | |
385 arch_type=ix86 | |
386 case "$host" in | |
387 *-*-netbsd* | *-*openbsd*) | |
388 ;; | |
389 *) | |
390 ARCH_DEFINES="-DI386_ASSEM" | |
391 x86_asm=yes | |
392 ;; | |
393 esac | |
394 ;; | |
395 esac | |
396 | |
397 AC_SUBST(ARCH_DEFINES) | |
1518
0c5dc8ffcc42
[svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents:
1503
diff
changeset
|
398 |
0c5dc8ffcc42
[svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents:
1503
diff
changeset
|
399 dnl XXX delete ASAP -nenolod |
0 | 400 AM_CONDITIONAL(ARCH_X86, test "x$arch_type" = "xix86") |
4353 | 401 AM_CONDITIONAL(USE_X86ASM, test "x$x86_asm" = "xyes") |
402 AM_CONDITIONAL(HAVE_SOLARIS, test "x$have_solaris" = "xyes") | |
403 AM_CONDITIONAL(HAVE_SUN, test "x$have_sun" = "xyes") | |
0 | 404 |
1425 | 405 plugindir="$libdir/audacious" |
0 | 406 AC_SUBST(plugindir) |
407 | |
408 if test "x$enable_one_plugin_dir" = "xyes"; then | |
409 pluginsubs="\\\"Plugins\\\"" | |
410 INPUT_PLUGIN_DIR=Plugins | |
411 OUTPUT_PLUGIN_DIR=Plugins | |
412 EFFECT_PLUGIN_DIR=Plugins | |
413 GENERAL_PLUGIN_DIR=Plugins | |
414 VISUALIZATION_PLUGIN_DIR=Plugins | |
1561 | 415 CONTAINER_PLUGIN_DIR=Plugins |
3227
2619f4c62abe
added Discovery plugin type
Cristi Magherusan <majeru@atheme-project.org>
parents:
3208
diff
changeset
|
416 TRANSPORT_PLUGIN_DIR=Plugins |
2619f4c62abe
added Discovery plugin type
Cristi Magherusan <majeru@atheme-project.org>
parents:
3208
diff
changeset
|
417 DISCOVERY_PLUGIN_DIR=Plugins |
0 | 418 else |
3227
2619f4c62abe
added Discovery plugin type
Cristi Magherusan <majeru@atheme-project.org>
parents:
3208
diff
changeset
|
419 pluginsubs="\\\"Output\\\",\\\"Input\\\",\\\"Effect\\\",\\\"General\\\",\\\"Visualization\\\",\\\"Container\\\",\\\"Transport\\\",\\\"Discovery\\\"" |
0 | 420 INPUT_PLUGIN_DIR=Input |
421 OUTPUT_PLUGIN_DIR=Output | |
422 EFFECT_PLUGIN_DIR=Effect | |
423 GENERAL_PLUGIN_DIR=General | |
424 VISUALIZATION_PLUGIN_DIR=Visualization | |
1561 | 425 CONTAINER_PLUGIN_DIR=Container |
2830
5aa0045e787a
[svn] - load transport plugins from Transport subdirectory.
yaz
parents:
2771
diff
changeset
|
426 TRANSPORT_PLUGIN_DIR=Transport |
3227
2619f4c62abe
added Discovery plugin type
Cristi Magherusan <majeru@atheme-project.org>
parents:
3208
diff
changeset
|
427 DISCOVERY_PLUGIN_DIR=Discovery |
0 | 428 fi |
429 | |
430 AC_SUBST(INPUT_PLUGIN_DIR) | |
431 AC_SUBST(OUTPUT_PLUGIN_DIR) | |
432 AC_SUBST(EFFECT_PLUGIN_DIR) | |
433 AC_SUBST(GENERAL_PLUGIN_DIR) | |
434 AC_SUBST(VISUALIZATION_PLUGIN_DIR) | |
1561 | 435 AC_SUBST(CONTAINER_PLUGIN_DIR) |
2830
5aa0045e787a
[svn] - load transport plugins from Transport subdirectory.
yaz
parents:
2771
diff
changeset
|
436 AC_SUBST(TRANSPORT_PLUGIN_DIR) |
0 | 437 AC_SUBST(pluginsubs) |
438 | |
3655
047829635612
- -rpath will be automatically set up when --prefix or --exec-prefix is specified. it can be forced to be disabled through --disable-rpath.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3653
diff
changeset
|
439 dnl setup rpath if prefix or exec-prefix is specified |
4353 | 440 if test "x$prefix" != "xNONE" || test "x$exec_prefix" != "xNONE" ; then |
441 test "x`$CC -dM -E - </dev/null | grep __ELF__`" != "x" && RPATH="-Wl,-rpath,$libdir" | |
3655
047829635612
- -rpath will be automatically set up when --prefix or --exec-prefix is specified. it can be forced to be disabled through --disable-rpath.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3653
diff
changeset
|
442 fi |
047829635612
- -rpath will be automatically set up when --prefix or --exec-prefix is specified. it can be forced to be disabled through --disable-rpath.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3653
diff
changeset
|
443 |
1421 | 444 dnl XXX Work around some autoconf bugs. |
4353 | 445 if test "x$prefix" = "xNONE"; then |
1421 | 446 prefix="${ac_default_prefix}" |
447 fi | |
448 | |
1425 | 449 if test -z "$datadir"; then |
450 datadir="${prefix}/share" | |
1418
0d6d938bc936
[svn] - work around a possible autoconf bug causing datadir to be blank
nenolod
parents:
1408
diff
changeset
|
451 fi |
0d6d938bc936
[svn] - work around a possible autoconf bug causing datadir to be blank
nenolod
parents:
1408
diff
changeset
|
452 |
1425 | 453 localedir="$datadir/locale" |
0 | 454 AC_SUBST(localedir) |
455 | |
456 BEEP_DEFINES="$CFLAGS -DDATA_DIR=\\\"$datadir/audacious\\\" -DPLUGIN_DIR=\\\"$plugindir\\\" -DPLUGINSUBS=$pluginsubs -DLOCALEDIR=\\\"$localedir\\\"" | |
457 CFLAGS="$CFLAGS $EXTRA_CFLAGS" | |
458 | |
459 if test "$enable_user_plugin_dir" = "no"; then | |
460 AC_DEFINE(DISABLE_USER_PLUGIN_DIR,, [Define to disable per user plugin directory]) | |
461 fi | |
462 | |
463 AC_SUBST(BEEP_DEFINES) | |
464 | |
1747
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
465 AC_ARG_ENABLE(xspf, |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
466 [ --disable-xspf disable XSPF support. (default=enabled)], |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
467 [have_xspf=$enableval], [have_xspf=yes]) |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
468 |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
469 AM_PATH_XML2(2.0.0, , [ |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
470 AC_MSG_WARN([*** libxml2 is not installed. Paranormal nor XSPF support will not be built. ***]) |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
471 have_xspf="no" |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
472 ]) |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
473 |
4353 | 474 if test "x$have_xspf" = "xyes"; then |
1747
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
475 AC_DEFINE(HAVE_XSPF_PLAYLIST, 1, [Define if XSPF playlists are available.]) |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
476 fi |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
477 |
3655
047829635612
- -rpath will be automatically set up when --prefix or --exec-prefix is specified. it can be forced to be disabled through --disable-rpath.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3653
diff
changeset
|
478 dnl disable rpath |
3628
05648eaa2e1f
Don't check for rpath twice.
Jonathan Schleifer <js@h3c.de>
parents:
3616
diff
changeset
|
479 AC_ARG_ENABLE(rpath, |
3655
047829635612
- -rpath will be automatically set up when --prefix or --exec-prefix is specified. it can be forced to be disabled through --disable-rpath.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3653
diff
changeset
|
480 [ --disable-rpath force to disable -rpath. (-rpath is required and automatically appended when --prefix or --exec-prefix is specified on ELF systems.)], [enable_rpath=$enableval], [enable_rpath=yes]) |
3628
05648eaa2e1f
Don't check for rpath twice.
Jonathan Schleifer <js@h3c.de>
parents:
3616
diff
changeset
|
481 if test "x$enable_rpath" = "xyes"; then |
3655
047829635612
- -rpath will be automatically set up when --prefix or --exec-prefix is specified. it can be forced to be disabled through --disable-rpath.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3653
diff
changeset
|
482 LDFLAGS="$LDFLAGS $RPATH" |
3628
05648eaa2e1f
Don't check for rpath twice.
Jonathan Schleifer <js@h3c.de>
parents:
3616
diff
changeset
|
483 fi |
05648eaa2e1f
Don't check for rpath twice.
Jonathan Schleifer <js@h3c.de>
parents:
3616
diff
changeset
|
484 |
4315
c942eaef7bc6
Implement session management.
Ivan N. Zlatev <contact@i-nz.net>
parents:
4311
diff
changeset
|
485 dnl AUDACIOUS_DESKTOP_FILE check |
c942eaef7bc6
Implement session management.
Ivan N. Zlatev <contact@i-nz.net>
parents:
4311
diff
changeset
|
486 dnl ======================== |
c942eaef7bc6
Implement session management.
Ivan N. Zlatev <contact@i-nz.net>
parents:
4311
diff
changeset
|
487 AS_AC_EXPAND(desktop_file,"${datadir}/applications/audacious.desktop") |
c942eaef7bc6
Implement session management.
Ivan N. Zlatev <contact@i-nz.net>
parents:
4311
diff
changeset
|
488 AC_DEFINE_UNQUOTED(AUDACIOUS_DESKTOP_FILE,"${desktop_file}",["The location of the desktop file"]) |
c942eaef7bc6
Implement session management.
Ivan N. Zlatev <contact@i-nz.net>
parents:
4311
diff
changeset
|
489 |
4316
e55ecfc55d06
linkage to libSM should use pkg-config otherwise link error might occur on x86_64 dual libs environment.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
4315
diff
changeset
|
490 dnl libSM check |
e55ecfc55d06
linkage to libSM should use pkg-config otherwise link error might occur on x86_64 dual libs environment.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
4315
diff
changeset
|
491 PKG_CHECK_MODULES(sm, sm) |
e55ecfc55d06
linkage to libSM should use pkg-config otherwise link error might occur on x86_64 dual libs environment.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
4315
diff
changeset
|
492 |
0 | 493 AC_SUBST(beepdir) |
494 AC_SUBST(plugindir) | |
495 | |
496 AC_CONFIG_FILES([ | |
1656
d05836d18d42
[svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents:
1632
diff
changeset
|
497 audacious.pc |
3114
774cc92d936e
Add a pkg-config for audclient.
William Pitcock <nenolod@atheme-project.org>
parents:
3035
diff
changeset
|
498 audclient.pc |
3535 | 499 buildsys.mk |
500 extra.mk | |
2323 | 501 man/audtool.1 |
502 man/audacious.1 | |
3648
5bea21b52a06
Fix installation of Audacious desktop icon.
William Pitcock <nenolod@atheme.org>
parents:
3641
diff
changeset
|
503 applications/audacious.desktop |
1656
d05836d18d42
[svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents:
1632
diff
changeset
|
504 po/Makefile.in |
0 | 505 ]) |
506 | |
507 AC_OUTPUT | |
508 | |
509 | |
510 echo | |
511 echo "Configuration:" | |
512 echo | |
513 echo " Install path: ${prefix}" | |
514 | |
4353 | 515 if test "x$BEEP_PATH" != "xno"; then |
38 | 516 echo " Current Audacious executable: $BEEP_PATH" |
0 | 517 fi |
518 | |
2359
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
519 echo " Legacy configuration path: \$HOME/$rc_path" |
0 | 520 echo |
521 echo " Use one plugin dir: $enable_one_plugin_dir" | |
522 echo " Allow user plugin dir: $enable_user_plugin_dir" | |
2540 | 523 echo |
2692 | 524 echo " Automatic character code detection: $enable_chardet" |
2540 | 525 echo " Sample rate upconversion: $enable_samplerate" |
2694
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
526 echo " D-Bus support: $enable_dbus" |
4233
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
527 echo |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
528 echo " SSE2: $enable_sse2" |
74c6f3d3cf1d
it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents:
3993
diff
changeset
|
529 echo " AltiVec: $enable_altivec" |
0 | 530 echo |
531 | |
532 if test "$BEEP_PATH" != "no" && test "$prefix/bin/audacious" != "$BEEP_PATH" ; then | |
533 echo "" | |
534 echo "Note: Configure has discovered that you already have Audacious installed" | |
535 echo "and it does not match with the given --prefix. You have Audacious installed " | |
536 echo "in $(dirname $BEEP_PATH) and you chose $prefix/bin." | |
537 echo | |
538 echo "If you don't want two copies of Audacious installed, rerun configure with" | |
539 echo "the --prefix option set to the location of the old Audacious, or uninstall" | |
540 echo "the old Audacious." | |
541 fi |