Mercurial > audlegacy
annotate configure.ac @ 2428:e832d4981008 trunk
[svn] - make sure tooltip_file != NULL otherwise filepopup may crash in strcmp().
author | yaz |
---|---|
date | Sat, 27 Jan 2007 08:22:15 -0800 |
parents | 75598f596c92 |
children | 10692383c103 |
rev | line source |
---|---|
0 | 1 dnl Process this file with autoconf to produce a configure script. |
2 | |
1952 | 3 AC_INIT([audacious], [1.3.0], [bugs+audacious@atheme.org]) |
1420 | 4 AC_PREREQ([2.59]) |
0 | 5 |
6 AC_CANONICAL_HOST | |
7 AC_CANONICAL_TARGET | |
8 | |
9 AC_CONFIG_HEADERS([config.h]) | |
10 | |
11 dnl libbeep | |
12 LIBBEEP_MAJOR_VERSION=2 | |
13 LIBBEEP_MINOR_VERSION=0 | |
14 LIBBEEP_MICRO_VERSION=0 | |
15 LIBBEEP_VERSION=$LIBBEEP_MAJOR_VERSION.$LIBBEEP_MINOR_VERSION.$LIBBEEP_MICRO_VERSION | |
16 AC_SUBST(LIBBEEP_MAJOR_VERSION) | |
17 AC_SUBST(LIBBEEP_MINOR_VERSION) | |
18 AC_SUBST(LIBBEEP_MICRO_VERSION) | |
19 | |
38 | 20 dnl XXX kludge for FreeBSD |
21 if test -d "/usr/X11R6/include"; then | |
22 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" | |
23 fi | |
0 | 24 |
2324
2ab9ef1e9544
[svn] - remove leftover remnants of automake from buildsystem
nenolod
parents:
2323
diff
changeset
|
25 dnl OMK bootstrap |
2ab9ef1e9544
[svn] - remove leftover remnants of automake from buildsystem
nenolod
parents:
2323
diff
changeset
|
26 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME]) |
2ab9ef1e9544
[svn] - remove leftover remnants of automake from buildsystem
nenolod
parents:
2323
diff
changeset
|
27 AC_SUBST([VERSION], [AC_PACKAGE_VERSION]) |
2ab9ef1e9544
[svn] - remove leftover remnants of automake from buildsystem
nenolod
parents:
2323
diff
changeset
|
28 |
2ab9ef1e9544
[svn] - remove leftover remnants of automake from buildsystem
nenolod
parents:
2323
diff
changeset
|
29 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
2ab9ef1e9544
[svn] - remove leftover remnants of automake from buildsystem
nenolod
parents:
2323
diff
changeset
|
30 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]) |
756 | 31 |
0 | 32 dnl GNU gettext |
33 | |
34 AM_GNU_GETTEXT | |
35 AM_GNU_GETTEXT_VERSION([0.12.1]) | |
36 | |
37 | |
38 dnl Check for C compiler | |
39 | |
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
|
40 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
|
41 AC_PROG_CXX |
0 | 42 AC_ISC_POSIX |
43 AC_C_BIGENDIAN | |
44 | |
2316 | 45 test x"$GCC" = x"yes" && CFLAGS="$CFLAGS -Wall -pipe" |
2315 | 46 |
0 | 47 dnl Check for assembler |
48 | |
49 AM_PROG_AS | |
50 | |
51 dnl Checks for various programs | |
52 | |
53 AC_PROG_INSTALL | |
54 AC_PROG_LN_S | |
55 AC_PROG_MAKE_SET | |
56 | |
750 | 57 AC_PATH_PROG(RM, rm) |
58 AC_PATH_PROG(MV, mv) | |
59 AC_PATH_PROG(CP, cp) | |
60 AC_PATH_PROG(AR, ar) | |
61 AC_PATH_PROG(RANLIB, ranlib) | |
62 | |
0 | 63 dnl Path settings |
64 | |
65 AC_PATH_PROG(BEEP_PATH, audacious, no) | |
66 | |
67 AC_ARG_WITH(rc-path, | |
2318 | 68 [ --with-rc-path=path Resource and configuration path for audacious relative to $HOME. (deprecated, use XDG)], |
0 | 69 [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
|
70 [rc_path=.audacious] |
0 | 71 ) |
72 AC_DEFINE_UNQUOTED(BMP_RCPATH, "$rc_path", | |
535 | 73 [Resource and configuration path for audacious relative to $HOME.] |
0 | 74 ) |
2325
63c9a2724e73
[svn] - revert r3646 because it is not a user-friendly method of transitioning.
nenolod
parents:
2324
diff
changeset
|
75 AC_DEFINE(DOTAUDACIOUS_COMPAT, 1, [Enable compatibility for $HOME/.audacious]) |
0 | 76 AC_SUBST(BMP_RCPATH) |
77 | |
78 AC_ARG_ENABLE(one-plugin-dir, | |
79 [ --enable-one-plugin-dir Use a single plugin dir [default=no]], | |
80 [enable_one_plugin_dir=$enableval], | |
81 [enable_one_plugin_dir=no] | |
82 ) | |
83 | |
84 AC_ARG_ENABLE(user-plugin-dir, | |
85 [ --disable-user-plugin-dir disable per-user plugin dir], | |
86 [enable_user_plugin_dir=$enableval], | |
87 [enable_user_plugin_dir=yes] | |
88 ) | |
89 | |
90 dnl Check for GTK/GLib/GThread/Pango | |
91 | |
535 | 92 PKG_CHECK_MODULES(GTK, [glib-2.0 >= 2.6.0 gtk+-2.0 >= 2.6.0 gthread-2.0 pango], |
93 [ADD_PC_REQUIRES([glib-2.0 >= 2.6.0, gtk+-2.0 >= 2.6.0])], | |
0 | 94 [AC_MSG_ERROR([Cannot find glib2/gtk2/pango])] |
95 ) | |
96 | |
97 dnl Check for libglade | |
98 | |
99 PKG_CHECK_MODULES(LIBGLADE, [libglade-2.0 >= 2.3.1], | |
100 [], | |
101 [AC_MSG_ERROR([Cannot find libglade])] | |
102 ) | |
103 | |
104 # Check if socklen_t is defined | |
105 | |
106 AC_CACHE_CHECK(for socklen_t, beep_cv_type_socklen_t, | |
107 [AC_TRY_COMPILE( | |
108 [#include <sys/types.h> | |
109 #include <sys/socket.h>], | |
110 [socklen_t s;], | |
111 [beep_cv_type_socklen_t=yes], | |
112 [beep_cv_type_socklen_t=no] | |
113 ) | |
114 ] | |
115 ) | |
116 | |
117 if test "$beep_cv_type_socklen_t" = "no"; then | |
118 AC_DEFINE(socklen_t, int, [Define to int if the socklen_t type is missing]) | |
119 fi | |
120 | |
978 | 121 dnl IPv6 support |
122 dnl ======================== | |
123 AC_ARG_ENABLE(ipv6, | |
124 [ --enable-ipv6 enable IPv6 support (default=no)], | |
125 enable_ipv6=$enableval, enable_ipv6=no) | |
126 if test "x$enable_ipv6" = xyes; then | |
127 AC_DEFINE(USE_IPV6,, [Define if building with IPv6 support] ) | |
128 fi | |
129 AM_CONDITIONAL(USE_IPV6,test "x$enable_ipv6" = xyes) | |
130 AC_SUBST(USE_IPV6) | |
131 | |
1892
9d53c0faac1b
[svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents:
1879
diff
changeset
|
132 dnl rpath stuff |
9d53c0faac1b
[svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents:
1879
diff
changeset
|
133 dnl ======================== |
9d53c0faac1b
[svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents:
1879
diff
changeset
|
134 AC_ARG_ENABLE(rpath, |
9d53c0faac1b
[svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents:
1879
diff
changeset
|
135 [ --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
|
136 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
|
137 |
9d53c0faac1b
[svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents:
1879
diff
changeset
|
138 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
|
139 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
|
140 fi |
9d53c0faac1b
[svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents:
1879
diff
changeset
|
141 |
1622 | 142 dnl plugin stuff |
143 dnl ======================== | |
144 | |
145 dnl Ok, first we find out what flags we need to use. | |
146 AC_MSG_CHECKING([for what extension and flags to use for plugin compilation]) | |
147 case "$target" in | |
148 *-apple-*) | |
1657
81e057e03c1f
[svn] - ensure that the module symtable is consistantly unique on Mach-O bundles
nenolod
parents:
1656
diff
changeset
|
149 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
|
150 PICFLAGS="-fPIC -DPIC" |
1657
81e057e03c1f
[svn] - ensure that the module symtable is consistantly unique on Mach-O bundles
nenolod
parents:
1656
diff
changeset
|
151 PICLDFLAGS="-fPIC -DPIC -bundle -fno-common -flat_namespace -undefined suppress" |
1630 | 152 LIBLDFLAGS="-dynamiclib" |
153 AUDLDFLAGS="" | |
1622 | 154 SHARED_SUFFIX=".dylib" |
155 ;; | |
156 *) | |
157 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
|
158 PICFLAGS="-fPIC -DPIC" |
1622 | 159 PICLDFLAGS="-fPIC -DPIC -shared" |
1630 | 160 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
|
161 AUDLDFLAGS="-Wl,-export-dynamic $RPATH_VAL" |
1622 | 162 SHARED_SUFFIX=".so" |
163 ;; | |
164 esac | |
165 AC_SUBST(PICFLAGS) | |
1626 | 166 AC_SUBST(PICLDFLAGS) |
1630 | 167 AC_SUBST(LIBLDFLAGS) |
168 AC_SUBST(AUDLDFLAGS) | |
1622 | 169 AC_SUBST(SHARED_SUFFIX) |
1632 | 170 AC_DEFINE_UNQUOTED(SHARED_SUFFIX, "${SHARED_SUFFIX}", |
1631 | 171 [Define the shared module suffix extension on your platform.]) |
1622 | 172 |
173 AC_MSG_CHECKING([if you are running Apple-GCC]) | |
174 case "$target" in | |
175 *-apple-*) | |
176 AC_MSG_RESULT([yes, sorry you poor bastard]) | |
177 LDFLAGS="$LDFLAGS -Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices" | |
178 ;; | |
179 *) | |
180 AC_MSG_RESULT([no]) | |
181 ;; | |
182 esac | |
183 | |
1105
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
184 dnl chardet support |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
185 dnl ======================== |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
186 AC_ARG_ENABLE(chardet, |
1758
6b9e1c2b2b32
[svn] - fix for gconf_value_get_string() does not accept null string.
yaz
parents:
1755
diff
changeset
|
187 [ --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
|
188 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
|
189 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
|
190 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
|
191 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
|
192 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
|
193 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
|
194 fi |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
195 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
|
196 AC_SUBST(USE_CHARDET) |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
197 AC_SUBST(CHARDET_LIBS) |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
198 AC_SUBST(SUBDIR_GUESS) |
0 | 199 |
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
|
200 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
|
201 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
|
202 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
|
203 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
|
204 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
|
205 [ |
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 --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
|
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 [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
|
209 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
|
210 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
|
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 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 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
|
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 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
|
216 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
|
217 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
|
218 ], |
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 [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
|
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 ;; |
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 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
|
223 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
|
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_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
|
226 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
|
227 ], |
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 [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
|
229 ) |
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 ;; |
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 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
|
233 ;; |
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
|
234 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
|
235 |
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 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
|
237 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
|
238 |
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 |
0 | 240 dnl GConf support |
241 | |
2359
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
242 CONFIGDB_BACKEND="rcfile" |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
243 |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
244 AC_ARG_ENABLE(gconf, |
0 | 245 [ --enable-gconf enable GConf support (default=disabled)], |
246 [enable_gconf=$enableval], | |
247 [enable_gconf="no"] | |
248 ) | |
249 | |
250 if test "$enable_gconf" = "yes"; then | |
251 PKG_CHECK_MODULES(GCONF, [gconf-2.0 >= 2.6.0], | |
252 [ | |
253 AC_DEFINE(HAVE_GCONF, , [Define if building with GConf support]) | |
254 ADD_PC_REQUIRES([gconf-2.0 >= 2.6.0]) | |
255 ], | |
256 [AC_MSG_ERROR([Cannot find GConf])] | |
257 ) | |
258 fi | |
259 | |
727 | 260 if test "$enable_gconf" = "yes"; then |
261 CONFIGDB_BACKEND="gconf" | |
2359
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
262 fi |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
263 |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
264 dnl libmcs support |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
265 |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
266 AC_ARG_ENABLE(mcs, |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
267 [ --enable-mcs enable mcs support (default=disabled)], |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
268 [enable_mcs=$enableval], |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
269 [enable_mcs="no"] |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
270 ) |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
271 |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
272 if test "$enable_mcs" = "yes"; then |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
273 PKG_CHECK_MODULES(LIBMCS, [libmcs >= 0.1], |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
274 [ |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
275 AC_DEFINE(HAVE_MCS, , [Define if building with libmcs support]) |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
276 ADD_PC_REQUIRES([libmcs >= 0.1]) |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
277 ], |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
278 [AC_MSG_ERROR([Cannot find libmcs])] |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
279 ) |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
280 fi |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
281 |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
282 if test "$enable_mcs" = "yes"; then |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
283 CONFIGDB_BACKEND="libmcs" |
727 | 284 fi |
0 | 285 |
727 | 286 AC_SUBST(CONFIGDB_BACKEND) |
0 | 287 |
288 AC_CHECK_HEADERS(unistd.h) | |
289 AC_CHECK_HEADERS(fcntl.h) | |
290 AC_CHECK_HEADERS(sys/ioctl.h) | |
291 AC_CHECK_HEADERS(fnmatch.h) | |
292 AC_CHECK_HEADERS(limits.h) | |
293 AC_CHECK_HEADERS(wchar.h) | |
294 AC_CHECK_HEADERS(fts.h) | |
295 | |
1675
cc5952675fca
[svn] Fixes for NetBSD by Jonathan Schleifer <js@h3c.de>
chainsaw
parents:
1671
diff
changeset
|
296 AC_CHECK_FUNCS([mkdtemp getmntinfo statvfs strtoul lrintf]) |
0 | 297 |
298 AC_MSG_CHECKING(if __ELF__ is defined) | |
299 AC_EGREP_CPP(yes, | |
300 [#ifdef __ELF__ | |
301 yes | |
302 #endif | |
303 ], | |
304 [is_elf=yes], | |
305 [is_elf=no] | |
306 ) | |
307 AC_MSG_RESULT([${is_elf}]) | |
308 | |
309 have_solaris=no | |
310 have_sun=no | |
311 ARCH_DEFINES="" | |
312 case "$host" in | |
2018
58ea18909fe7
[svn] - MirBSD support from <bsiegert -at- gmx.de>
nenolod
parents:
2005
diff
changeset
|
313 *-*-openbsd* | *-*-netbsd* | *-*-mirbsd*) |
0 | 314 have_sun=yes |
315 if test "${is_elf}" = "no" | |
316 then | |
317 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any]) | |
318 fi | |
319 ;; | |
320 *-*-darwin*) | |
321 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any]) | |
322 ;; | |
323 *-hpux-*) | |
324 ARCH_DEFINES="-DHPUX" | |
325 ;; | |
326 *-*-solaris* | *-*-sunos*) | |
327 have_solaris=yes | |
328 ;; | |
329 esac | |
330 | |
331 arch_type=other | |
332 x86_asm=no | |
333 case "$host" in | |
334 i386-*-* | i486-*-* | i586-*-* | i686-*-* | i86pc-*-*) | |
335 arch_type=ix86 | |
336 case "$host" in | |
337 *-*-netbsd* | *-*openbsd*) | |
338 ;; | |
339 *) | |
340 ARCH_DEFINES="-DI386_ASSEM" | |
341 x86_asm=yes | |
342 ;; | |
343 esac | |
344 ;; | |
345 esac | |
346 | |
347 AC_SUBST(ARCH_DEFINES) | |
1518
0c5dc8ffcc42
[svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents:
1503
diff
changeset
|
348 |
0c5dc8ffcc42
[svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents:
1503
diff
changeset
|
349 dnl XXX delete ASAP -nenolod |
0 | 350 AM_CONDITIONAL(ARCH_X86, test "x$arch_type" = "xix86") |
351 AM_CONDITIONAL(USE_X86ASM, test "x$x86_asm" = xyes) | |
352 AM_CONDITIONAL(HAVE_SOLARIS, test "x$have_solaris" = xyes) | |
353 AM_CONDITIONAL(HAVE_SUN, test "x$have_sun" = xyes) | |
354 | |
1425 | 355 plugindir="$libdir/audacious" |
0 | 356 AC_SUBST(plugindir) |
357 | |
358 if test "x$enable_one_plugin_dir" = "xyes"; then | |
359 pluginsubs="\\\"Plugins\\\"" | |
360 INPUT_PLUGIN_DIR=Plugins | |
361 OUTPUT_PLUGIN_DIR=Plugins | |
362 EFFECT_PLUGIN_DIR=Plugins | |
363 GENERAL_PLUGIN_DIR=Plugins | |
364 VISUALIZATION_PLUGIN_DIR=Plugins | |
1561 | 365 CONTAINER_PLUGIN_DIR=Plugins |
0 | 366 else |
1561 | 367 pluginsubs="\\\"Output\\\",\\\"Input\\\",\\\"Effect\\\",\\\"General\\\",\\\"Visualization\\\",\\\"Container\\\"" |
0 | 368 INPUT_PLUGIN_DIR=Input |
369 OUTPUT_PLUGIN_DIR=Output | |
370 EFFECT_PLUGIN_DIR=Effect | |
371 GENERAL_PLUGIN_DIR=General | |
372 VISUALIZATION_PLUGIN_DIR=Visualization | |
1561 | 373 CONTAINER_PLUGIN_DIR=Container |
0 | 374 fi |
375 | |
376 AC_SUBST(INPUT_PLUGIN_DIR) | |
377 AC_SUBST(OUTPUT_PLUGIN_DIR) | |
378 AC_SUBST(EFFECT_PLUGIN_DIR) | |
379 AC_SUBST(GENERAL_PLUGIN_DIR) | |
380 AC_SUBST(VISUALIZATION_PLUGIN_DIR) | |
1561 | 381 AC_SUBST(CONTAINER_PLUGIN_DIR) |
0 | 382 AC_SUBST(pluginsubs) |
383 | |
1421 | 384 dnl XXX Work around some autoconf bugs. |
1422 | 385 if test "$prefix" = "NONE"; then |
1421 | 386 prefix="${ac_default_prefix}" |
387 fi | |
388 | |
1425 | 389 if test -z "$datadir"; then |
390 datadir="${prefix}/share" | |
1418
0d6d938bc936
[svn] - work around a possible autoconf bug causing datadir to be blank
nenolod
parents:
1408
diff
changeset
|
391 fi |
0d6d938bc936
[svn] - work around a possible autoconf bug causing datadir to be blank
nenolod
parents:
1408
diff
changeset
|
392 |
1425 | 393 localedir="$datadir/locale" |
0 | 394 AC_SUBST(localedir) |
395 | |
396 BEEP_DEFINES="$CFLAGS -DDATA_DIR=\\\"$datadir/audacious\\\" -DPLUGIN_DIR=\\\"$plugindir\\\" -DPLUGINSUBS=$pluginsubs -DLOCALEDIR=\\\"$localedir\\\"" | |
397 CFLAGS="$CFLAGS $EXTRA_CFLAGS" | |
398 | |
399 if test "$enable_user_plugin_dir" = "no"; then | |
400 AC_DEFINE(DISABLE_USER_PLUGIN_DIR,, [Define to disable per user plugin directory]) | |
401 fi | |
402 | |
403 AC_SUBST(BEEP_DEFINES) | |
404 | |
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
|
405 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
|
406 [ --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
|
407 [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
|
408 |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
409 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
|
410 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
|
411 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
|
412 ]) |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
413 |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
414 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
|
415 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
|
416 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
|
417 |
0 | 418 AC_SUBST(beepdir) |
419 AC_SUBST(plugindir) | |
420 | |
421 AC_CONFIG_FILES([ | |
1656
d05836d18d42
[svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents:
1632
diff
changeset
|
422 audacious.pc |
2323 | 423 mk/rules.mk |
424 man/audtool.1 | |
425 man/audacious.1 | |
2313 | 426 src/audacious/audacious.desktop |
1656
d05836d18d42
[svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents:
1632
diff
changeset
|
427 po/Makefile.in |
0 | 428 ]) |
429 | |
430 AC_OUTPUT | |
431 | |
432 | |
433 echo | |
434 echo "Configuration:" | |
435 echo | |
436 echo " Install path: ${prefix}" | |
437 | |
438 if test "$BEEP_PATH" != "no"; then | |
38 | 439 echo " Current Audacious executable: $BEEP_PATH" |
0 | 440 fi |
441 | |
2359
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
442 echo " Legacy configuration path: \$HOME/$rc_path" |
0 | 443 echo |
444 echo " Use one plugin dir: $enable_one_plugin_dir" | |
445 echo " Allow user plugin dir: $enable_user_plugin_dir" | |
446 echo | |
2359
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
447 echo " GConf support: $enable_gconf" |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
448 echo |
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
449 echo " mcs support: $enable_mcs" |
0 | 450 echo |
451 | |
452 if test "$beep_cv_lib_xlibs_threadsafe" = "no"; then | |
32 | 453 echo "Note: You need to have thread-safe xlibs to use Audacious." |
0 | 454 echo "If you are using libc5 thread aware Xlibs just skip this." |
455 echo "" | |
456 echo "If you don't have those libs and you are on a libc5 system get them at:" | |
457 echo "ftp://ftp.dent.med.uni-muenchen.de/pub/wmglo/" | |
458 fi | |
459 | |
460 if test "$BEEP_PATH" != "no" && test "$prefix/bin/audacious" != "$BEEP_PATH" ; then | |
461 echo "" | |
462 echo "Note: Configure has discovered that you already have Audacious installed" | |
463 echo "and it does not match with the given --prefix. You have Audacious installed " | |
464 echo "in $(dirname $BEEP_PATH) and you chose $prefix/bin." | |
465 echo | |
466 echo "If you don't want two copies of Audacious installed, rerun configure with" | |
467 echo "the --prefix option set to the location of the old Audacious, or uninstall" | |
468 echo "the old Audacious." | |
469 fi |