annotate configure.ac @ 2313:3149d4b1a9a9 trunk

[svn] - objective-make autodepend fixes - move all sourcecode into src/ and adjust Makefiles accordingly
author nenolod
date Fri, 12 Jan 2007 11:43:40 -0800
parents e1a5a66fb9cc
children af0e789e70a7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1 dnl Process this file with autoconf to produce a configure script.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2
1952
52dda29aa5e0 [svn] - bump to 1.3.0
nenolod
parents: 1936
diff changeset
3 AC_INIT([audacious], [1.3.0], [bugs+audacious@atheme.org])
1420
0aa4bee03747 [svn] - ok, move this fix down a little
nenolod
parents: 1419
diff changeset
4 AC_PREREQ([2.59])
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6 AC_CANONICAL_HOST
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7 AC_CANONICAL_TARGET
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
8
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9 AC_CONFIG_HEADERS([config.h])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11 dnl libbeep
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
12 LIBBEEP_MAJOR_VERSION=2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13 LIBBEEP_MINOR_VERSION=0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 LIBBEEP_MICRO_VERSION=0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 LIBBEEP_VERSION=$LIBBEEP_MAJOR_VERSION.$LIBBEEP_MINOR_VERSION.$LIBBEEP_MICRO_VERSION
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16 AC_SUBST(LIBBEEP_MAJOR_VERSION)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17 AC_SUBST(LIBBEEP_MINOR_VERSION)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18 AC_SUBST(LIBBEEP_MICRO_VERSION)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19
38
4e0397865a31 [svn] Regenerate a bunch of stuff :)
nenolod
parents: 33
diff changeset
20 dnl XXX kludge for FreeBSD
4e0397865a31 [svn] Regenerate a bunch of stuff :)
nenolod
parents: 33
diff changeset
21 if test -d "/usr/X11R6/include"; then
4e0397865a31 [svn] Regenerate a bunch of stuff :)
nenolod
parents: 33
diff changeset
22 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
4e0397865a31 [svn] Regenerate a bunch of stuff :)
nenolod
parents: 33
diff changeset
23 fi
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24
756
97f5ebf52a3d [svn] put AM_INIT_AUTOMAKE back
nenolod
parents: 751
diff changeset
25 AM_INIT_AUTOMAKE
97f5ebf52a3d [svn] put AM_INIT_AUTOMAKE back
nenolod
parents: 751
diff changeset
26
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27 dnl GNU gettext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
28
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
29 AM_GNU_GETTEXT
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
30 AM_GNU_GETTEXT_VERSION([0.12.1])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
31
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33 dnl Check for C compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34
1353
35ef03569852 [svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents: 1317
diff changeset
35 AC_PROG_CC
35ef03569852 [svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents: 1317
diff changeset
36 AC_PROG_CXX
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37 AC_ISC_POSIX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
38 AC_C_BIGENDIAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
39
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
40 dnl Check for assembler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42 AM_PROG_AS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44 dnl Checks for various programs
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 AC_PROG_INSTALL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47 AC_PROG_LN_S
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48 AC_PROG_MAKE_SET
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49
750
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
50 AC_PATH_PROG(RM, rm)
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
51 AC_PATH_PROG(MV, mv)
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
52 AC_PATH_PROG(CP, cp)
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
53 AC_PATH_PROG(AR, ar)
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
54 AC_PATH_PROG(RANLIB, ranlib)
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
55
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56 dnl Path settings
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58 AC_PATH_PROG(BEEP_PATH, audacious, no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
59
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
60 AC_ARG_WITH(rc-path,
2005
f4d7be3f1e05 [svn] Fixed wrong help, it has to be --with-rc-path.
js
parents: 1952
diff changeset
61 [ --with-rc-path=path Resource and configuration path for audacious relative to $HOME.],
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
62 [rc_path=$withval],
2302
a73097e58abb [svn] Revert stupid commit by js, because that does not make us XDG basedir compliant.
kiyoshi
parents: 2301
diff changeset
63 [rc_path=.audacious]
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
64 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
65 AC_DEFINE_UNQUOTED(BMP_RCPATH, "$rc_path",
535
f0464cb2f609 [svn] We now require GTK+ 2.6.x.
nenolod
parents: 527
diff changeset
66 [Resource and configuration path for audacious relative to $HOME.]
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
67 )
2312
e1a5a66fb9cc [svn] Added #ifdefs around $HOME/.audacious compatibility code
js
parents: 2302
diff changeset
68 AC_DEFINE(DOTAUDACIOUS_COMPAT, 1, [Enable compatibility for $HOME/.audacious])
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
69 AC_SUBST(BMP_RCPATH)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
70
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
71 AC_ARG_ENABLE(one-plugin-dir,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
72 [ --enable-one-plugin-dir Use a single plugin dir [default=no]],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
73 [enable_one_plugin_dir=$enableval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
74 [enable_one_plugin_dir=no]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
75 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
76
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
77 AC_ARG_ENABLE(user-plugin-dir,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
78 [ --disable-user-plugin-dir disable per-user plugin dir],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
79 [enable_user_plugin_dir=$enableval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
80 [enable_user_plugin_dir=yes]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
81 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
82
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
83 dnl Check for GTK/GLib/GThread/Pango
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
84
535
f0464cb2f609 [svn] We now require GTK+ 2.6.x.
nenolod
parents: 527
diff changeset
85 PKG_CHECK_MODULES(GTK, [glib-2.0 >= 2.6.0 gtk+-2.0 >= 2.6.0 gthread-2.0 pango],
f0464cb2f609 [svn] We now require GTK+ 2.6.x.
nenolod
parents: 527
diff changeset
86 [ADD_PC_REQUIRES([glib-2.0 >= 2.6.0, gtk+-2.0 >= 2.6.0])],
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
87 [AC_MSG_ERROR([Cannot find glib2/gtk2/pango])]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
88 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
89
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
90 dnl Check for libglade
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
91
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
92 PKG_CHECK_MODULES(LIBGLADE, [libglade-2.0 >= 2.3.1],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
93 [],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
94 [AC_MSG_ERROR([Cannot find libglade])]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
95 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
96
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
97 # Check if socklen_t is defined
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
98
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
99 AC_CACHE_CHECK(for socklen_t, beep_cv_type_socklen_t,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
100 [AC_TRY_COMPILE(
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
101 [#include <sys/types.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
102 #include <sys/socket.h>],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
103 [socklen_t s;],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
104 [beep_cv_type_socklen_t=yes],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
105 [beep_cv_type_socklen_t=no]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
106 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
107 ]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
108 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
109
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
110 if test "$beep_cv_type_socklen_t" = "no"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
111 AC_DEFINE(socklen_t, int, [Define to int if the socklen_t type is missing])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
112 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
113
978
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
114 dnl IPv6 support
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
115 dnl ========================
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
116 AC_ARG_ENABLE(ipv6,
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
117 [ --enable-ipv6 enable IPv6 support (default=no)],
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
118 enable_ipv6=$enableval, enable_ipv6=no)
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
119 if test "x$enable_ipv6" = xyes; then
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
120 AC_DEFINE(USE_IPV6,, [Define if building with IPv6 support] )
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
121 fi
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
122 AM_CONDITIONAL(USE_IPV6,test "x$enable_ipv6" = xyes)
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
123 AC_SUBST(USE_IPV6)
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
124
1892
9d53c0faac1b [svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents: 1879
diff changeset
125 dnl rpath stuff
9d53c0faac1b [svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents: 1879
diff changeset
126 dnl ========================
9d53c0faac1b [svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents: 1879
diff changeset
127 AC_ARG_ENABLE(rpath,
9d53c0faac1b [svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents: 1879
diff changeset
128 [ --disable-rpath disable hardcoded rpath (default=enabled)],
9d53c0faac1b [svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents: 1879
diff changeset
129 enable_rpath=$enableval, enable_rpath=yes)
9d53c0faac1b [svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents: 1879
diff changeset
130
9d53c0faac1b [svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents: 1879
diff changeset
131 if test "x$enable_rpath" = xyes; then
9d53c0faac1b [svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents: 1879
diff changeset
132 RPATH_VAL="-Wl,-rpath=\${libdir}"
9d53c0faac1b [svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents: 1879
diff changeset
133 fi
9d53c0faac1b [svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents: 1879
diff changeset
134
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
135 dnl plugin stuff
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
136 dnl ========================
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
137
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
138 dnl Ok, first we find out what flags we need to use.
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
139 AC_MSG_CHECKING([for what extension and flags to use for plugin compilation])
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
140 case "$target" in
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
141 *-apple-*)
1657
81e057e03c1f [svn] - ensure that the module symtable is consistantly unique on Mach-O bundles
nenolod
parents: 1656
diff changeset
142 AC_MSG_RESULT([Mac OS X: -fPIC -bundle -fno-common -flat_namespace -undefined suppress, .dylib])
1624
d863bca9b6d7 [svn] - PICFLAGS should not call -shared/-bundle as some versions of GCC will misinterpret that. Only PICLDFLAGS should.
nenolod
parents: 1622
diff changeset
143 PICFLAGS="-fPIC -DPIC"
1657
81e057e03c1f [svn] - ensure that the module symtable is consistantly unique on Mach-O bundles
nenolod
parents: 1656
diff changeset
144 PICLDFLAGS="-fPIC -DPIC -bundle -fno-common -flat_namespace -undefined suppress"
1630
842667773cc0 [svn] - audacious now builds on OS X
nenolod
parents: 1629
diff changeset
145 LIBLDFLAGS="-dynamiclib"
842667773cc0 [svn] - audacious now builds on OS X
nenolod
parents: 1629
diff changeset
146 AUDLDFLAGS=""
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
147 SHARED_SUFFIX=".dylib"
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
148 ;;
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
149 *)
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
150 AC_MSG_RESULT([libdl-compatible: -fPIC -DPIC -shared, .so])
1624
d863bca9b6d7 [svn] - PICFLAGS should not call -shared/-bundle as some versions of GCC will misinterpret that. Only PICLDFLAGS should.
nenolod
parents: 1622
diff changeset
151 PICFLAGS="-fPIC -DPIC"
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
152 PICLDFLAGS="-fPIC -DPIC -shared"
1630
842667773cc0 [svn] - audacious now builds on OS X
nenolod
parents: 1629
diff changeset
153 LIBLDFLAGS="-fPIC -DPIC -shared"
1892
9d53c0faac1b [svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents: 1879
diff changeset
154 AUDLDFLAGS="-Wl,-export-dynamic $RPATH_VAL"
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
155 SHARED_SUFFIX=".so"
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
156 ;;
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
157 esac
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
158 AC_SUBST(PICFLAGS)
1626
83769dcca55e [svn] - AC_SUBST(PICLDFLAGS) sorry
nenolod
parents: 1624
diff changeset
159 AC_SUBST(PICLDFLAGS)
1630
842667773cc0 [svn] - audacious now builds on OS X
nenolod
parents: 1629
diff changeset
160 AC_SUBST(LIBLDFLAGS)
842667773cc0 [svn] - audacious now builds on OS X
nenolod
parents: 1629
diff changeset
161 AC_SUBST(AUDLDFLAGS)
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
162 AC_SUBST(SHARED_SUFFIX)
1632
978ada910173 [svn] - module fixes
nenolod
parents: 1631
diff changeset
163 AC_DEFINE_UNQUOTED(SHARED_SUFFIX, "${SHARED_SUFFIX}",
1631
20ff61083530 [svn] - make audtool build
nenolod
parents: 1630
diff changeset
164 [Define the shared module suffix extension on your platform.])
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
165
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
166 AC_MSG_CHECKING([if you are running Apple-GCC])
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
167 case "$target" in
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
168 *-apple-*)
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
169 AC_MSG_RESULT([yes, sorry you poor bastard])
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
170 LDFLAGS="$LDFLAGS -Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
171 ;;
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
172 *)
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
173 AC_MSG_RESULT([no])
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
174 ;;
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
175 esac
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
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,
1758
6b9e1c2b2b32 [svn] - fix for gconf_value_get_string() does not accept null string.
yaz
parents: 1755
diff changeset
180 [ --enable-chardet enable character set detection support (default=no)],
1105
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
181 enable_chardet=$enableval, enable_chardet=no)
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
182 if test "x$enable_chardet" = xyes; then
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
183 AC_DEFINE(USE_CHARDET, 1, [Define if character set detection enabled] )
1317
a698348c5155 [svn] - libaac: potential buffer overflow vulnerability fix
nenolod
parents: 1265
diff changeset
184 AC_CHECK_LIB(guess, guess_jp, [SUBDIR_GUESS=[''] CHARDET_LIBS=['-lguess']], [SUBDIR_GUESS=['libguess'] CHARDET_LIBS=['../libguess/libguess.a']])
1613
9becbe564217 [svn] - chardet patch for Russian language witten by Valentine Sinitsyn.
yaz
parents: 1603
diff changeset
185 AC_CHECK_LIB(rcd, rcdGetRussianCharset, [CHARDET_LIBS=["$CHARDET_LIBS -lrcd"]], [SUBDIR_GUESS=["$SUBDIR_GUESS librcd"] CHARDET_LIBS=["$CHARDET_LIBS ../librcd/librcd.a"]])
1105
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
186 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
187 fi
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
188 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
189 AC_SUBST(USE_CHARDET)
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
190 AC_SUBST(CHARDET_LIBS)
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
191 AC_SUBST(SUBDIR_GUESS)
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
192
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
193 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
194 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
195 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
196 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
197 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
198 [
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
199 --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
200 ],
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
201 [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
202 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
203 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
204 ;;
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
205 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
206 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
207 [
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
208 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
209 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
210 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
211 ],
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
212 [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
213 )
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
214 ;;
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
215 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
216 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
217 [
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
218 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
219 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
220 ],
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
221 [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
222 )
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
223 ;;
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
224 *)
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
225 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
226 ;;
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
227 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
228
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
229 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
230 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
231
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
232
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
233 dnl GConf support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
234
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
235 AC_ARG_ENABLE( gconf,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
236 [ --enable-gconf enable GConf support (default=disabled)],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
237 [enable_gconf=$enableval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
238 [enable_gconf="no"]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
239 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
240
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
241 if test "$enable_gconf" = "yes"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
242 PKG_CHECK_MODULES(GCONF, [gconf-2.0 >= 2.6.0],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
243 [
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
244 AC_DEFINE(HAVE_GCONF, , [Define if building with GConf support])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
245 ADD_PC_REQUIRES([gconf-2.0 >= 2.6.0])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
246 ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
247 [AC_MSG_ERROR([Cannot find GConf])]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
248 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
249 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
250
727
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
251 if test "$enable_gconf" = "yes"; then
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
252 CONFIGDB_BACKEND="gconf"
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
253 else
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
254 CONFIGDB_BACKEND="rcfile"
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
255 fi
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
256
727
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
257 AC_SUBST(CONFIGDB_BACKEND)
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
258
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
259 AC_CHECK_HEADERS(unistd.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
260 AC_CHECK_HEADERS(fcntl.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
261 AC_CHECK_HEADERS(sys/ioctl.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
262 AC_CHECK_HEADERS(fnmatch.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
263 AC_CHECK_HEADERS(limits.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
264 AC_CHECK_HEADERS(wchar.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
265 AC_CHECK_HEADERS(fts.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
266
1675
cc5952675fca [svn] Fixes for NetBSD by Jonathan Schleifer <js@h3c.de>
chainsaw
parents: 1671
diff changeset
267 AC_CHECK_FUNCS([mkdtemp getmntinfo statvfs strtoul lrintf])
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
268
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
269 AC_MSG_CHECKING(if __ELF__ is defined)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
270 AC_EGREP_CPP(yes,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
271 [#ifdef __ELF__
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
272 yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
273 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
274 ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
275 [is_elf=yes],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
276 [is_elf=no]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
277 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
278 AC_MSG_RESULT([${is_elf}])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
279
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
280 have_solaris=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
281 have_sun=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
282 ARCH_DEFINES=""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
283 case "$host" in
2018
58ea18909fe7 [svn] - MirBSD support from <bsiegert -at- gmx.de>
nenolod
parents: 2005
diff changeset
284 *-*-openbsd* | *-*-netbsd* | *-*-mirbsd*)
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
285 have_sun=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
286 if test "${is_elf}" = "no"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
287 then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
288 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
289 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
290 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
291 *-*-darwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
292 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
293 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
294 *-hpux-*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
295 ARCH_DEFINES="-DHPUX"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
296 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
297 *-*-solaris* | *-*-sunos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
298 have_solaris=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
299 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
300 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
301
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
302 arch_type=other
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
303 x86_asm=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
304 case "$host" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
305 i386-*-* | i486-*-* | i586-*-* | i686-*-* | i86pc-*-*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
306 arch_type=ix86
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
307 case "$host" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
308 *-*-netbsd* | *-*openbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
309 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
310 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
311 ARCH_DEFINES="-DI386_ASSEM"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
312 x86_asm=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
313 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
314 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
315 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
316 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
317
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
318 AC_SUBST(ARCH_DEFINES)
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
319
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
320 dnl XXX delete ASAP -nenolod
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
321 AM_CONDITIONAL(ARCH_X86, test "x$arch_type" = "xix86")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
322 AM_CONDITIONAL(USE_X86ASM, test "x$x86_asm" = xyes)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
323 AM_CONDITIONAL(HAVE_SOLARIS, test "x$have_solaris" = xyes)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
324 AM_CONDITIONAL(HAVE_SUN, test "x$have_sun" = xyes)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
325
1425
504534b687c0 [svn] - better quoting
nenolod
parents: 1422
diff changeset
326 plugindir="$libdir/audacious"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
327 AC_SUBST(plugindir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
328
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
329 if test "x$enable_one_plugin_dir" = "xyes"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
330 pluginsubs="\\\"Plugins\\\""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
331 INPUT_PLUGIN_DIR=Plugins
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
332 OUTPUT_PLUGIN_DIR=Plugins
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
333 EFFECT_PLUGIN_DIR=Plugins
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
334 GENERAL_PLUGIN_DIR=Plugins
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
335 VISUALIZATION_PLUGIN_DIR=Plugins
1561
079c0268c56c [svn] - bootstrap for ContainerPlugin dir stuff
nenolod
parents: 1537
diff changeset
336 CONTAINER_PLUGIN_DIR=Plugins
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
337 else
1561
079c0268c56c [svn] - bootstrap for ContainerPlugin dir stuff
nenolod
parents: 1537
diff changeset
338 pluginsubs="\\\"Output\\\",\\\"Input\\\",\\\"Effect\\\",\\\"General\\\",\\\"Visualization\\\",\\\"Container\\\""
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
339 INPUT_PLUGIN_DIR=Input
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
340 OUTPUT_PLUGIN_DIR=Output
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
341 EFFECT_PLUGIN_DIR=Effect
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
342 GENERAL_PLUGIN_DIR=General
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
343 VISUALIZATION_PLUGIN_DIR=Visualization
1561
079c0268c56c [svn] - bootstrap for ContainerPlugin dir stuff
nenolod
parents: 1537
diff changeset
344 CONTAINER_PLUGIN_DIR=Container
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
345 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
346
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
347 AC_SUBST(INPUT_PLUGIN_DIR)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
348 AC_SUBST(OUTPUT_PLUGIN_DIR)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
349 AC_SUBST(EFFECT_PLUGIN_DIR)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
350 AC_SUBST(GENERAL_PLUGIN_DIR)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
351 AC_SUBST(VISUALIZATION_PLUGIN_DIR)
1561
079c0268c56c [svn] - bootstrap for ContainerPlugin dir stuff
nenolod
parents: 1537
diff changeset
352 AC_SUBST(CONTAINER_PLUGIN_DIR)
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
353 AC_SUBST(pluginsubs)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
354
1421
fe6d04a4019a [svn] - try again
nenolod
parents: 1420
diff changeset
355 dnl XXX Work around some autoconf bugs.
1422
360ab7d8f221 [svn] - try NOW
nenolod
parents: 1421
diff changeset
356 if test "$prefix" = "NONE"; then
1421
fe6d04a4019a [svn] - try again
nenolod
parents: 1420
diff changeset
357 prefix="${ac_default_prefix}"
fe6d04a4019a [svn] - try again
nenolod
parents: 1420
diff changeset
358 fi
fe6d04a4019a [svn] - try again
nenolod
parents: 1420
diff changeset
359
1425
504534b687c0 [svn] - better quoting
nenolod
parents: 1422
diff changeset
360 if test -z "$datadir"; then
504534b687c0 [svn] - better quoting
nenolod
parents: 1422
diff changeset
361 datadir="${prefix}/share"
1418
0d6d938bc936 [svn] - work around a possible autoconf bug causing datadir to be blank
nenolod
parents: 1408
diff changeset
362 fi
0d6d938bc936 [svn] - work around a possible autoconf bug causing datadir to be blank
nenolod
parents: 1408
diff changeset
363
1425
504534b687c0 [svn] - better quoting
nenolod
parents: 1422
diff changeset
364 localedir="$datadir/locale"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
365 AC_SUBST(localedir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
366
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
367 BEEP_DEFINES="$CFLAGS -DDATA_DIR=\\\"$datadir/audacious\\\" -DPLUGIN_DIR=\\\"$plugindir\\\" -DPLUGINSUBS=$pluginsubs -DLOCALEDIR=\\\"$localedir\\\""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
368 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
369
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
370 if test "$enable_user_plugin_dir" = "no"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
371 AC_DEFINE(DISABLE_USER_PLUGIN_DIR,, [Define to disable per user plugin directory])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
372 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
373
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
374 AC_SUBST(BEEP_DEFINES)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
375
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
376 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
377 [ --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
378 [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
379
44ed31f63ee4 [svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents: 1746
diff changeset
380 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
381 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
382 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
383 ])
44ed31f63ee4 [svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents: 1746
diff changeset
384
44ed31f63ee4 [svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents: 1746
diff changeset
385 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
386 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
387 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
388
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
389 AC_SUBST(beepdir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
390 AC_SUBST(plugindir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
391
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
392 AC_CONFIG_FILES([
1879
104fe1a701b9 [svn] - add audtool(1) manpage; mostly written by Kiyoshi Aman.
nenolod
parents: 1877
diff changeset
393 audtool.1
1656
d05836d18d42 [svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents: 1632
diff changeset
394 audacious.1
d05836d18d42 [svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents: 1632
diff changeset
395 audacious.spec
d05836d18d42 [svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents: 1632
diff changeset
396 audacious.pc
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents: 2312
diff changeset
397 src/audacious/audacious.desktop
1656
d05836d18d42 [svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents: 1632
diff changeset
398 po/Makefile.in
562
5cdadcf74ec3 [svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents: 539
diff changeset
399 mk/rules.mk
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
400 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
401
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
402 AC_OUTPUT
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
403
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
404
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
405 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
406 echo "Configuration:"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
407 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
408 echo " Install path: ${prefix}"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
409
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
410 if test "$BEEP_PATH" != "no"; then
38
4e0397865a31 [svn] Regenerate a bunch of stuff :)
nenolod
parents: 33
diff changeset
411 echo " Current Audacious executable: $BEEP_PATH"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
412 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
413
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
414 echo " Configuration path: \$HOME/$rc_path"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
415 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
416 echo " Use one plugin dir: $enable_one_plugin_dir"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
417 echo " Allow user plugin dir: $enable_user_plugin_dir"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
418 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
419 echo " GNOME support"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
420 echo " -------------"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
421 echo " GConf support $enable_gconf"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
422 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
423
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
424 if test "$beep_cv_lib_xlibs_threadsafe" = "no"; then
32
8aee6a5bcc70 [svn] Libmikmod.
nenolod
parents: 23
diff changeset
425 echo "Note: You need to have thread-safe xlibs to use Audacious."
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
426 echo "If you are using libc5 thread aware Xlibs just skip this."
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
427 echo ""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
428 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
429 echo "ftp://ftp.dent.med.uni-muenchen.de/pub/wmglo/"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
430 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
431
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
432 if test "$BEEP_PATH" != "no" && test "$prefix/bin/audacious" != "$BEEP_PATH" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
433 echo ""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
434 echo "Note: Configure has discovered that you already have Audacious installed"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
435 echo "and it does not match with the given --prefix. You have Audacious installed "
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
436 echo "in $(dirname $BEEP_PATH) and you chose $prefix/bin."
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
437 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
438 echo "If you don't want two copies of Audacious installed, rerun configure with"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
439 echo "the --prefix option set to the location of the old Audacious, or uninstall"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
440 echo "the old Audacious."
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
441 fi