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