annotate configure.ac @ 4328:11eb8719a790

Audacious 1.5.0 release. Yes. Seriously.
author William Pitcock <nenolod@atheme.org>
date Thu, 13 Mar 2008 15:11:09 -0500
parents 8e5d510672ee
children 0b9a75430f6b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3648
5bea21b52a06 Fix installation of Audacious desktop icon.
William Pitcock <nenolod@atheme.org>
parents: 3641
diff changeset
1
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
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
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
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
97f5ebf52a3d [svn] put AM_INIT_AUTOMAKE back
nenolod
parents: 751
diff changeset
31
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32 dnl GNU gettext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34 AM_GNU_GETTEXT
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
35 AM_GNU_GETTEXT_VERSION([0.12.1])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
36
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37 dnl Check for C compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
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
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41 AC_ISC_POSIX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42 AC_C_BIGENDIAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43
2316
c22fe69a842d [svn] Same for -pipe.
js
parents: 2315
diff changeset
44 test x"$GCC" = x"yes" && CFLAGS="$CFLAGS -Wall -pipe"
2315
af0e789e70a7 [svn] Add -Wall to CFLAGS by default if the CC is gcc
js
parents: 2313
diff changeset
45
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 dnl Check for assembler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48 AM_PROG_AS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
50 dnl Checks for various programs
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
51
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52 AC_PROG_LN_S
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53 AC_PROG_MAKE_SET
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54
750
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
55 AC_PATH_PROG(RM, rm)
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
56 AC_PATH_PROG(MV, mv)
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
57 AC_PATH_PROG(CP, cp)
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
58 AC_PATH_PROG(AR, ar)
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
59 AC_PATH_PROG(RANLIB, ranlib)
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
60
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
61 dnl Path settings
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
62
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
63 AC_PATH_PROG(BEEP_PATH, audacious, no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
64
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
65 AC_ARG_WITH(rc-path,
2318
ac9f4d42d848 [svn] Remove old shit.
js
parents: 2316
diff changeset
66 [ --with-rc-path=path Resource and configuration path for audacious relative to $HOME. (deprecated, use XDG)],
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
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
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
69 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
70 AC_DEFINE_UNQUOTED(BMP_RCPATH, "$rc_path",
535
f0464cb2f609 [svn] We now require GTK+ 2.6.x.
nenolod
parents: 527
diff changeset
71 [Resource and configuration path for audacious relative to $HOME.]
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
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
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
74 AC_SUBST(BMP_RCPATH)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
75
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
76 AC_ARG_ENABLE(one-plugin-dir,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
77 [ --enable-one-plugin-dir Use a single plugin dir [default=no]],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
78 [enable_one_plugin_dir=$enableval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
79 [enable_one_plugin_dir=no]
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 AC_ARG_ENABLE(user-plugin-dir,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
83 [ --disable-user-plugin-dir disable per-user plugin dir],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
84 [enable_user_plugin_dir=$enableval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
85 [enable_user_plugin_dir=yes]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
86 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
87
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
88 dnl Check for GTK/GLib/GThread/Pango
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
89
4311
9eee96d071d5 g_timeout_add_seconds() requires glib-2.14.0 or higher.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 4302
diff changeset
90 PKG_CHECK_MODULES(GTK, [glib-2.0 >= 2.14.0 gtk+-2.0 >= 2.10.0 gthread-2.0 pango],
9eee96d071d5 g_timeout_add_seconds() requires glib-2.14.0 or higher.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 4302
diff changeset
91 [ADD_PC_REQUIRES([glib-2.0 >= 2.14.0, gtk+-2.0 >= 2.10.0])],
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
92 [AC_MSG_ERROR([Cannot find glib2/gtk2/pango])]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
93 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
94
2631
a2afa6ca7294 [svn] - integrate libmowgli requirement into buildsystem
nenolod
parents: 2619
diff changeset
95 dnl Check for GLib.
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
96
4311
9eee96d071d5 g_timeout_add_seconds() requires glib-2.14.0 or higher.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 4302
diff changeset
97 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.14.0],
9eee96d071d5 g_timeout_add_seconds() requires glib-2.14.0 or higher.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 4302
diff changeset
98 [ADD_PC_REQUIRES([glib-2.0 >= 2.14.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
99 [AC_MSG_ERROR([Cannot find glib2])]
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
100 )
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
101
2631
a2afa6ca7294 [svn] - integrate libmowgli requirement into buildsystem
nenolod
parents: 2619
diff changeset
102 dnl Check for libmowgli.
a2afa6ca7294 [svn] - integrate libmowgli requirement into buildsystem
nenolod
parents: 2619
diff changeset
103
3376
f7d56abcef56 bump version requirement to fixed release mowgli 0.4.
William Pitcock <nenolod@atheme-project.org>
parents: 3227
diff changeset
104 PKG_CHECK_MODULES(MOWGLI, [libmowgli >= 0.4],
f7d56abcef56 bump version requirement to fixed release mowgli 0.4.
William Pitcock <nenolod@atheme-project.org>
parents: 3227
diff changeset
105 [ADD_PC_REQUIRES([libmowgli >= 0.4])],
3010
2897d744d87a Bump mowgli version requirement (0.3).
William Pitcock <nenolod@atheme-project.org>
parents: 2830
diff changeset
106 [AC_MSG_ERROR([Cannot find libmowgli: try http://www.atheme-project.org/projects/mowgli.shtml])]
2631
a2afa6ca7294 [svn] - integrate libmowgli requirement into buildsystem
nenolod
parents: 2619
diff changeset
107 )
a2afa6ca7294 [svn] - integrate libmowgli requirement into buildsystem
nenolod
parents: 2619
diff changeset
108
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
109 # Check if socklen_t is defined
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
110
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
111 AC_CACHE_CHECK(for socklen_t, beep_cv_type_socklen_t,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
112 [AC_TRY_COMPILE(
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
113 [#include <sys/types.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
114 #include <sys/socket.h>],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
115 [socklen_t s;],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
116 [beep_cv_type_socklen_t=yes],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
117 [beep_cv_type_socklen_t=no]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
118 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
119 ]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
120 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
121
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
122 if test "$beep_cv_type_socklen_t" = "no"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
123 AC_DEFINE(socklen_t, int, [Define to int if the socklen_t type is missing])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
124 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
125
978
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
126 dnl IPv6 support
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
127 dnl ========================
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
128 AC_ARG_ENABLE(ipv6,
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
129 [ --enable-ipv6 enable IPv6 support (default=no)],
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
130 enable_ipv6=$enableval, enable_ipv6=no)
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
131 if test "x$enable_ipv6" = xyes; then
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
132 AC_DEFINE(USE_IPV6,, [Define if building with IPv6 support] )
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
133 fi
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
134 AM_CONDITIONAL(USE_IPV6,test "x$enable_ipv6" = xyes)
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
135 AC_SUBST(USE_IPV6)
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
136
3433
2f96a5ab1916 --enable-pch to use precompiled headers, does not properly work
William Pitcock <nenolod@atheme.org>
parents: 3430
diff changeset
137 dnl PCH support
2f96a5ab1916 --enable-pch to use precompiled headers, does not properly work
William Pitcock <nenolod@atheme.org>
parents: 3430
diff changeset
138 dnl ========================
2f96a5ab1916 --enable-pch to use precompiled headers, does not properly work
William Pitcock <nenolod@atheme.org>
parents: 3430
diff changeset
139 AC_ARG_ENABLE(pch,
2f96a5ab1916 --enable-pch to use precompiled headers, does not properly work
William Pitcock <nenolod@atheme.org>
parents: 3430
diff changeset
140 [ --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
141 enable_pch=$enableval, enable_pch=no)
2f96a5ab1916 --enable-pch to use precompiled headers, does not properly work
William Pitcock <nenolod@atheme.org>
parents: 3430
diff changeset
142 if test "x$enable_pch" = xyes; then
2f96a5ab1916 --enable-pch to use precompiled headers, does not properly work
William Pitcock <nenolod@atheme.org>
parents: 3430
diff changeset
143 PCH="pch"
2f96a5ab1916 --enable-pch to use precompiled headers, does not properly work
William Pitcock <nenolod@atheme.org>
parents: 3430
diff changeset
144 fi
2f96a5ab1916 --enable-pch to use precompiled headers, does not properly work
William Pitcock <nenolod@atheme.org>
parents: 3430
diff changeset
145 AC_SUBST(PCH)
2f96a5ab1916 --enable-pch to use precompiled headers, does not properly work
William Pitcock <nenolod@atheme.org>
parents: 3430
diff changeset
146
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
147 dnl plugin stuff
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
148 dnl ========================
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
149
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
150 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
151 BUILDSYS_PROG_IMPLIB
3641
12500701b6dd Update buildsys (adds ${PROG_SUFFIX}).
Jonathan Schleifer <js@h3c.de>
parents: 3628
diff changeset
152 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
153 IMPLIB_LIBS=''
3657
e83412963c51 More implib stuff.
Jonathan Schleifer <js@h3c.de>
parents: 3656
diff changeset
154 AC_SUBST(IMPLIB_LIBS)
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents: 3515
diff changeset
155
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents: 3515
diff changeset
156 dnl XXX
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents: 3515
diff changeset
157 SHARED_SUFFIX=$PLUGIN_SUFFIX
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
158 AC_SUBST(SHARED_SUFFIX)
1632
978ada910173 [svn] - module fixes
nenolod
parents: 1631
diff changeset
159 AC_DEFINE_UNQUOTED(SHARED_SUFFIX, "${SHARED_SUFFIX}",
1631
20ff61083530 [svn] - make audtool build
nenolod
parents: 1630
diff changeset
160 [Define the shared module suffix extension on your platform.])
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
161
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
162 AC_MSG_CHECKING([if you are running Apple-GCC])
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
163 case "$target" in
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
164 *-apple-*)
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
165 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
166 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework CoreServices -framework Carbon"
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
167 ;;
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
168 *)
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
169 AC_MSG_RESULT([no])
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 esac
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
172
1105
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
173 dnl chardet support
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
174 dnl ========================
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
175 AC_ARG_ENABLE(chardet,
2692
6abffd68fa59 [svn] - make --enable-chardet default.
yaz
parents: 2661
diff changeset
176 [ --enable-chardet enable character set detection support (default=yes)],
6abffd68fa59 [svn] - make --enable-chardet default.
yaz
parents: 2661
diff changeset
177 enable_chardet=$enableval, enable_chardet=yes)
4318
8e5d510672ee minor fix
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 4317
diff changeset
178 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
179 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
180 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
181 fi
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
182 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
183 AC_SUBST(USE_CHARDET)
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
184 AC_SUBST(CHARDET_LIBS)
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
185 AC_SUBST(SUBDIR_GUESS)
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
186
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
187 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
188 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
189 AC_ARG_ENABLE(dbus,
2726
f15dbec2a8ad [svn] - enable dbus support by default
nenolod
parents: 2724
diff changeset
190 [ --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
191 [enable_dbus=$enableval],
2726
f15dbec2a8ad [svn] - enable dbus support by default
nenolod
parents: 2724
diff changeset
192 [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
193 )
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
194
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 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
196 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
197 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
198 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
199 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
200 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
201 ])
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 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
203 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
204 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
205 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
206 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
207 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
208 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
209 [Location of D-Bus services directory])
2771
4585019eb82e [svn] -Renamed MPRIS /TrackList Shuffle method to Random
magma
parents: 2770
diff changeset
210 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
211 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
212 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
213 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
214 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
215 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
216 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
217 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
218 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
219 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
220
2538
719e0898ff3c [svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents: 2535
diff changeset
221 dnl libsamplerate support
719e0898ff3c [svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents: 2535
diff changeset
222 dnl ========================
719e0898ff3c [svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents: 2535
diff changeset
223 AC_ARG_ENABLE(samplerate,
719e0898ff3c [svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents: 2535
diff changeset
224 [ --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
225 [enable_samplerate=$enableval], [enable_samplerate=no])
535bc24a9eb1 [svn] - make configure script show the configuration status of sampling rate conversion.
yaz
parents: 2540
diff changeset
226 if test "x$enable_samplerate" = "xyes"; then
2538
719e0898ff3c [svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents: 2535
diff changeset
227 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
228 PKG_CHECK_MODULES(samplerate, samplerate)
719e0898ff3c [svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents: 2535
diff changeset
229 AC_SUBST(USE_SRC)
719e0898ff3c [svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents: 2535
diff changeset
230 AC_SUBST(samplerate_CFLAGS)
719e0898ff3c [svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents: 2535
diff changeset
231 AC_SUBST(samplerate_LIBS)
719e0898ff3c [svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents: 2535
diff changeset
232 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
233 fi
719e0898ff3c [svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents: 2535
diff changeset
234
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
235 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
236 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
237 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
238 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
239 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
240 [
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 --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
242 ],
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 [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
244 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
245 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
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 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
248 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
249 [
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 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
251 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
252 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
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_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
255 )
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 ;;
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 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
258 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
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 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
261 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
262 ],
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 [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
264 )
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 ;;
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_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
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 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
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_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
272 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
273
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
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
275 dnl GConf support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
276
2535
97a305e550cf [svn] - make libmcs a forced requirement
nenolod
parents: 2503
diff changeset
277 PKG_CHECK_MODULES(LIBMCS, [libmcs >= 0.1],
97a305e550cf [svn] - make libmcs a forced requirement
nenolod
parents: 2503
diff changeset
278 [
97a305e550cf [svn] - make libmcs a forced requirement
nenolod
parents: 2503
diff changeset
279 AC_DEFINE(HAVE_MCS, , [Define if building with libmcs support])
97a305e550cf [svn] - make libmcs a forced requirement
nenolod
parents: 2503
diff changeset
280 ADD_PC_REQUIRES([libmcs >= 0.1])
97a305e550cf [svn] - make libmcs a forced requirement
nenolod
parents: 2503
diff changeset
281 ],
97a305e550cf [svn] - make libmcs a forced requirement
nenolod
parents: 2503
diff changeset
282 [AC_MSG_ERROR([Cannot find libmcs])]
97a305e550cf [svn] - make libmcs a forced requirement
nenolod
parents: 2503
diff changeset
283 )
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
284
4233
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
285 dnl AltiVec support
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
286
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
287 AC_ARG_ENABLE(altivec,
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
288 [ --disable-altivec disable AltiVec support. (default=enabled) ],
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
289 [enable_altivec=$enableval],
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
290 [enable_altivec=yes]
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
291 )
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
292 if test "x$enable_altivec" = "xyes"; then
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
293 AC_CHECK_HEADERS(altivec.h,
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
294 [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
295 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
296 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
297 SIMD_CFLAGS=-maltivec
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
298 AC_SUBST(SIMD_CFLAGS)],
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
299 [enable_altivec="no"]
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
300 )
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
301 fi
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
302
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
303 dnl SSE2 support
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 AC_ARG_ENABLE(sse2,
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
306 [ --disable-sse2 disable SSE2 support. (default=enabled) ],
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
307 [enable_sse2=$enableval],
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
308 [enable_sse2=yes]
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
309 )
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
310 if test "x$enable_sse2" = "xyes"; then
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
311 AC_MSG_CHECKING(SSE2)
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
312 ac_save_CFLAGS="$CFLAGS"
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
313 CFLAGS="-msse2"
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
314 AC_TRY_RUN([
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
315 #include <emmintrin.h>
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
316 int main()
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
317 {
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
318 _mm_setzero_pd();
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
319 return 0;
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
320 }
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 [AC_MSG_RESULT(SSE2 yes)
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
323 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
324 SIMD_CFLAGS=-msse2],
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
325 [AC_MSG_RESULT(SSE2 no)
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
326 enable_sse2="no"],
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
327 )
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
328 fi
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
329 AC_SUBST(SIMD_CFLAGS)
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
330 CFLAGS="$ac_save_CFLAGS"
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
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
333 AC_CHECK_HEADERS(unistd.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
334 AC_CHECK_HEADERS(fcntl.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
335 AC_CHECK_HEADERS(sys/ioctl.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
336 AC_CHECK_HEADERS(fnmatch.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
337 AC_CHECK_HEADERS(limits.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
338 AC_CHECK_HEADERS(wchar.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
339 AC_CHECK_HEADERS(fts.h)
2661
f6c7271df7de [svn] - use execinfo.h to provide more useful information about crashes
nenolod
parents: 2632
diff changeset
340 AC_CHECK_HEADERS(execinfo.h)
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
341
1675
cc5952675fca [svn] Fixes for NetBSD by Jonathan Schleifer <js@h3c.de>
chainsaw
parents: 1671
diff changeset
342 AC_CHECK_FUNCS([mkdtemp getmntinfo statvfs strtoul lrintf])
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
343
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
344 AC_MSG_CHECKING(if __ELF__ is defined)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
345 AC_EGREP_CPP(yes,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
346 [#ifdef __ELF__
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
347 yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
348 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
349 ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
350 [is_elf=yes],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
351 [is_elf=no]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
352 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
353 AC_MSG_RESULT([${is_elf}])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
354
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
355 have_solaris=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
356 have_sun=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
357 ARCH_DEFINES=""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
358 case "$host" in
2018
58ea18909fe7 [svn] - MirBSD support from <bsiegert -at- gmx.de>
nenolod
parents: 2005
diff changeset
359 *-*-openbsd* | *-*-netbsd* | *-*-mirbsd*)
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
360 have_sun=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
361 if test "${is_elf}" = "no"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
362 then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
363 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
364 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
365 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
366 *-*-darwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
367 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
368 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
369 *-hpux-*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
370 ARCH_DEFINES="-DHPUX"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
371 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
372 *-*-solaris* | *-*-sunos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
373 have_solaris=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
374 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
375 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
376
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
377 arch_type=other
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
378 x86_asm=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
379 case "$host" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
380 i386-*-* | i486-*-* | i586-*-* | i686-*-* | i86pc-*-*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
381 arch_type=ix86
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
382 case "$host" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
383 *-*-netbsd* | *-*openbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
384 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
385 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
386 ARCH_DEFINES="-DI386_ASSEM"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
387 x86_asm=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
388 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
389 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
390 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
391 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
392
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
393 AC_SUBST(ARCH_DEFINES)
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
394
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
395 dnl XXX delete ASAP -nenolod
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
396 AM_CONDITIONAL(ARCH_X86, test "x$arch_type" = "xix86")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
397 AM_CONDITIONAL(USE_X86ASM, test "x$x86_asm" = xyes)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
398 AM_CONDITIONAL(HAVE_SOLARIS, test "x$have_solaris" = xyes)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
399 AM_CONDITIONAL(HAVE_SUN, test "x$have_sun" = xyes)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
400
1425
504534b687c0 [svn] - better quoting
nenolod
parents: 1422
diff changeset
401 plugindir="$libdir/audacious"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
402 AC_SUBST(plugindir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
403
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
404 if test "x$enable_one_plugin_dir" = "xyes"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
405 pluginsubs="\\\"Plugins\\\""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
406 INPUT_PLUGIN_DIR=Plugins
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
407 OUTPUT_PLUGIN_DIR=Plugins
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
408 EFFECT_PLUGIN_DIR=Plugins
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
409 GENERAL_PLUGIN_DIR=Plugins
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
410 VISUALIZATION_PLUGIN_DIR=Plugins
1561
079c0268c56c [svn] - bootstrap for ContainerPlugin dir stuff
nenolod
parents: 1537
diff changeset
411 CONTAINER_PLUGIN_DIR=Plugins
3227
2619f4c62abe added Discovery plugin type
Cristi Magherusan <majeru@atheme-project.org>
parents: 3208
diff changeset
412 TRANSPORT_PLUGIN_DIR=Plugins
2619f4c62abe added Discovery plugin type
Cristi Magherusan <majeru@atheme-project.org>
parents: 3208
diff changeset
413 DISCOVERY_PLUGIN_DIR=Plugins
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
414 else
3227
2619f4c62abe added Discovery plugin type
Cristi Magherusan <majeru@atheme-project.org>
parents: 3208
diff changeset
415 pluginsubs="\\\"Output\\\",\\\"Input\\\",\\\"Effect\\\",\\\"General\\\",\\\"Visualization\\\",\\\"Container\\\",\\\"Transport\\\",\\\"Discovery\\\""
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
416 INPUT_PLUGIN_DIR=Input
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
417 OUTPUT_PLUGIN_DIR=Output
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
418 EFFECT_PLUGIN_DIR=Effect
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
419 GENERAL_PLUGIN_DIR=General
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
420 VISUALIZATION_PLUGIN_DIR=Visualization
1561
079c0268c56c [svn] - bootstrap for ContainerPlugin dir stuff
nenolod
parents: 1537
diff changeset
421 CONTAINER_PLUGIN_DIR=Container
2830
5aa0045e787a [svn] - load transport plugins from Transport subdirectory.
yaz
parents: 2771
diff changeset
422 TRANSPORT_PLUGIN_DIR=Transport
3227
2619f4c62abe added Discovery plugin type
Cristi Magherusan <majeru@atheme-project.org>
parents: 3208
diff changeset
423 DISCOVERY_PLUGIN_DIR=Discovery
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
424 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
425
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
426 AC_SUBST(INPUT_PLUGIN_DIR)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
427 AC_SUBST(OUTPUT_PLUGIN_DIR)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
428 AC_SUBST(EFFECT_PLUGIN_DIR)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
429 AC_SUBST(GENERAL_PLUGIN_DIR)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
430 AC_SUBST(VISUALIZATION_PLUGIN_DIR)
1561
079c0268c56c [svn] - bootstrap for ContainerPlugin dir stuff
nenolod
parents: 1537
diff changeset
431 AC_SUBST(CONTAINER_PLUGIN_DIR)
2830
5aa0045e787a [svn] - load transport plugins from Transport subdirectory.
yaz
parents: 2771
diff changeset
432 AC_SUBST(TRANSPORT_PLUGIN_DIR)
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
433 AC_SUBST(pluginsubs)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
434
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
435 dnl setup rpath if prefix or exec-prefix is specified
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
436 if test "$prefix" != "NONE" || test "$exec_prefix" != "NONE" ; then
4317
1d94382f0bde fixed linker arguments to gcc
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 4316
diff changeset
437 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
438 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
439
1421
fe6d04a4019a [svn] - try again
nenolod
parents: 1420
diff changeset
440 dnl XXX Work around some autoconf bugs.
1422
360ab7d8f221 [svn] - try NOW
nenolod
parents: 1421
diff changeset
441 if test "$prefix" = "NONE"; then
1421
fe6d04a4019a [svn] - try again
nenolod
parents: 1420
diff changeset
442 prefix="${ac_default_prefix}"
fe6d04a4019a [svn] - try again
nenolod
parents: 1420
diff changeset
443 fi
fe6d04a4019a [svn] - try again
nenolod
parents: 1420
diff changeset
444
1425
504534b687c0 [svn] - better quoting
nenolod
parents: 1422
diff changeset
445 if test -z "$datadir"; then
504534b687c0 [svn] - better quoting
nenolod
parents: 1422
diff changeset
446 datadir="${prefix}/share"
1418
0d6d938bc936 [svn] - work around a possible autoconf bug causing datadir to be blank
nenolod
parents: 1408
diff changeset
447 fi
0d6d938bc936 [svn] - work around a possible autoconf bug causing datadir to be blank
nenolod
parents: 1408
diff changeset
448
1425
504534b687c0 [svn] - better quoting
nenolod
parents: 1422
diff changeset
449 localedir="$datadir/locale"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
450 AC_SUBST(localedir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
451
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
452 BEEP_DEFINES="$CFLAGS -DDATA_DIR=\\\"$datadir/audacious\\\" -DPLUGIN_DIR=\\\"$plugindir\\\" -DPLUGINSUBS=$pluginsubs -DLOCALEDIR=\\\"$localedir\\\""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
453 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
454
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
455 if test "$enable_user_plugin_dir" = "no"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
456 AC_DEFINE(DISABLE_USER_PLUGIN_DIR,, [Define to disable per user plugin directory])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
457 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
458
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
459 AC_SUBST(BEEP_DEFINES)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
460
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
461 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
462 [ --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
463 [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
464
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 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
466 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
467 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
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
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 if test "$have_xspf" = "yes"; then
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 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
472 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
473
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
474 dnl disable rpath
3628
05648eaa2e1f Don't check for rpath twice.
Jonathan Schleifer <js@h3c.de>
parents: 3616
diff changeset
475 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
476 [ --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
477 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
478 LDFLAGS="$LDFLAGS $RPATH"
3628
05648eaa2e1f Don't check for rpath twice.
Jonathan Schleifer <js@h3c.de>
parents: 3616
diff changeset
479 fi
05648eaa2e1f Don't check for rpath twice.
Jonathan Schleifer <js@h3c.de>
parents: 3616
diff changeset
480
4315
c942eaef7bc6 Implement session management.
Ivan N. Zlatev <contact@i-nz.net>
parents: 4311
diff changeset
481 dnl AUDACIOUS_DESKTOP_FILE check
c942eaef7bc6 Implement session management.
Ivan N. Zlatev <contact@i-nz.net>
parents: 4311
diff changeset
482 dnl ========================
c942eaef7bc6 Implement session management.
Ivan N. Zlatev <contact@i-nz.net>
parents: 4311
diff changeset
483 AS_AC_EXPAND(desktop_file,"${datadir}/applications/audacious.desktop")
c942eaef7bc6 Implement session management.
Ivan N. Zlatev <contact@i-nz.net>
parents: 4311
diff changeset
484 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
485
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
486 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
487 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
488
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
489 AC_SUBST(beepdir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
490 AC_SUBST(plugindir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
491
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
492 AC_CONFIG_FILES([
1656
d05836d18d42 [svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents: 1632
diff changeset
493 audacious.pc
3114
774cc92d936e Add a pkg-config for audclient.
William Pitcock <nenolod@atheme-project.org>
parents: 3035
diff changeset
494 audclient.pc
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents: 3515
diff changeset
495 buildsys.mk
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents: 3515
diff changeset
496 extra.mk
2323
a7a52cbc08fc [svn] - move manpages to subdir man/
nenolod
parents: 2322
diff changeset
497 man/audtool.1
a7a52cbc08fc [svn] - move manpages to subdir man/
nenolod
parents: 2322
diff changeset
498 man/audacious.1
3648
5bea21b52a06 Fix installation of Audacious desktop icon.
William Pitcock <nenolod@atheme.org>
parents: 3641
diff changeset
499 applications/audacious.desktop
1656
d05836d18d42 [svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents: 1632
diff changeset
500 po/Makefile.in
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
501 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
502
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
503 AC_OUTPUT
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
504
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
505
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
506 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
507 echo "Configuration:"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
508 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
509 echo " Install path: ${prefix}"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
510
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
511 if test "$BEEP_PATH" != "no"; then
38
4e0397865a31 [svn] Regenerate a bunch of stuff :)
nenolod
parents: 33
diff changeset
512 echo " Current Audacious executable: $BEEP_PATH"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
513 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
514
2359
75598f596c92 [svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents: 2325
diff changeset
515 echo " Legacy configuration path: \$HOME/$rc_path"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
516 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
517 echo " Use one plugin dir: $enable_one_plugin_dir"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
518 echo " Allow user plugin dir: $enable_user_plugin_dir"
2540
6b2743b54fd7 [svn] - update options printout
nenolod
parents: 2538
diff changeset
519 echo
2692
6abffd68fa59 [svn] - make --enable-chardet default.
yaz
parents: 2661
diff changeset
520 echo " Automatic character code detection: $enable_chardet"
2540
6b2743b54fd7 [svn] - update options printout
nenolod
parents: 2538
diff changeset
521 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
522 echo " D-Bus support: $enable_dbus"
4233
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
523 echo
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
524 echo " SSE2: $enable_sse2"
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
525 echo " AltiVec: $enable_altivec"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
526 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
527
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
528 if test "$beep_cv_lib_xlibs_threadsafe" = "no"; then
32
8aee6a5bcc70 [svn] Libmikmod.
nenolod
parents: 23
diff changeset
529 echo "Note: You need to have thread-safe xlibs to use Audacious."
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
530 echo "If you are using libc5 thread aware Xlibs just skip this."
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
531 echo ""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
532 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
533 echo "ftp://ftp.dent.med.uni-muenchen.de/pub/wmglo/"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
534 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
535
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
536 if test "$BEEP_PATH" != "no" && test "$prefix/bin/audacious" != "$BEEP_PATH" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
537 echo ""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
538 echo "Note: Configure has discovered that you already have Audacious installed"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
539 echo "and it does not match with the given --prefix. You have Audacious installed "
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
540 echo "in $(dirname $BEEP_PATH) and you chose $prefix/bin."
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
541 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
542 echo "If you don't want two copies of Audacious installed, rerun configure with"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
543 echo "the --prefix option set to the location of the old Audacious, or uninstall"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
544 echo "the old Audacious."
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
545 fi