comparison configure.in @ 410:4ba6416227e2

Cleanups
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 02 Jun 2006 15:03:05 +0000
parents c4e5604a8257
children a5ebf8595154
comparison
equal deleted inserted replaced
409:711ef8d16f56 410:4ba6416227e2
84 --disable-themetune Disable XMMS-SID theme song-related code and 84 --disable-themetune Disable XMMS-SID theme song-related code and
85 installation of the SID-tune file. The tune is 85 installation of the SID-tune file. The tune is
86 not under GNU GPL, refer to README for license. 86 not under GNU GPL, refer to README for license.
87 ], 87 ],
88 [ 88 [
89 if test "x$enableval" = xyes; then 89 if test "x$enableval" = "xyes"; then
90 OPT_THEMETUNE=yes 90 OPT_THEMETUNE=yes
91 else 91 else
92 if test "x$enableval" = xno; then 92 if test "x$enableval" = "xno"; then
93 OPT_THEMETUNE=no 93 OPT_THEMETUNE=no
94 else 94 else
95 OPT_THEMETUNE=no 95 OPT_THEMETUNE=no
96 fi 96 fi
97 fi 97 fi
98 ],[ 98 ],[
99 OPT_THEMETUNE=yes 99 OPT_THEMETUNE=yes
100 ]) 100 ])
101 101
102 dnl *** Bits and pieces stolen from Glade generated configure.in 102 dnl *** Bits and pieces stolen from Glade generated configure.in
103 if test "x$OPT_THEMETUNE" = xyes; then 103 if test "x$OPT_THEMETUNE" = "xyes"; then
104 THEMETUNE_FILE="Kummatti_City.sid" 104 THEMETUNE_FILE="Kummatti_City.sid"
105 105
106 if test "x${datadir}" = 'x${prefix}/share'; then 106 if test "x${datadir}" = 'x${prefix}/share'; then
107 if test "x${prefix}" = "xNONE"; then 107 if test "x${prefix}" = "xNONE"; then
108 AC_DEFINE_UNQUOTED([THEMETUNE_FILE], "${ac_default_prefix}/share/${PACKAGE}/${THEMETUNE_FILE}") 108 AC_DEFINE_UNQUOTED([THEMETUNE_FILE], "${ac_default_prefix}/share/${PACKAGE}/${THEMETUNE_FILE}")
125 dnl *** 125 dnl ***
126 AC_ARG_WITH(sidplay1, 126 AC_ARG_WITH(sidplay1,
127 [ 127 [
128 --with-sidplay1=PREFIX Enable SIDPlay1 with install-PREFIX], 128 --with-sidplay1=PREFIX Enable SIDPlay1 with install-PREFIX],
129 [ 129 [
130 if test "x$withval" = xyes; then 130 if test "x$withval" = "xyes"; then
131 xs_sidplay1=yes 131 xs_sidplay1=yes
132 xs_sidplay1_library="" 132 xs_sidplay1_library=""
133 xs_sidplay1_includes="" 133 xs_sidplay1_includes=""
134 else 134 else
135 if test "x$withval" = xno; then 135 if test "x$withval" = "xno"; then
136 xs_sidplay1=no 136 xs_sidplay1=no
137 else 137 else
138 xs_sidplay1=yes 138 xs_sidplay1=yes
139 xs_sidplay1_includes="$withval/include" 139 xs_sidplay1_includes="$withval/include"
140 xs_sidplay1_library="$withval/lib" 140 xs_sidplay1_library="$withval/lib"
161 dnl *** 161 dnl ***
162 AC_ARG_WITH(sidplay2, 162 AC_ARG_WITH(sidplay2,
163 [ 163 [
164 --with-sidplay2=PREFIX Enable SIDPlay2 with install-PREFIX], 164 --with-sidplay2=PREFIX Enable SIDPlay2 with install-PREFIX],
165 [ 165 [
166 if test "x$withval" = xyes; then 166 if test "x$withval" = "xyes"; then
167 xs_sidplay2=yes 167 xs_sidplay2=yes
168 xs_sidplay2_library="" 168 xs_sidplay2_library=""
169 xs_sidplay2_includes="" 169 xs_sidplay2_includes=""
170 else 170 else
171 if test "x$withval" = xno; then 171 if test "x$withval" = "xno"; then
172 xs_sidplay2=no 172 xs_sidplay2=no
173 else 173 else
174 xs_sidplay2=yes 174 xs_sidplay2=yes
175 xs_sidplay2_includes="$withval/include" 175 xs_sidplay2_includes="$withval/include"
176 xs_sidplay2_library="$withval/lib" 176 xs_sidplay2_library="$withval/lib"
195 195
196 dnl *** 196 dnl ***
197 dnl *** Determine if libraries are wanted and available 197 dnl *** Determine if libraries are wanted and available
198 dnl *** 198 dnl ***
199 OPT_SIDPLAY1="no" 199 OPT_SIDPLAY1="no"
200 if test "x$xs_sidplay1" = xtry; then 200 if test "x$xs_sidplay1" = "xtry"; then
201 XS_PATH_LIBSIDPLAY1 201 XS_PATH_LIBSIDPLAY1
202 else 202 else
203 if test "x$xs_sidplay1" = xyes; then 203 if test "x$xs_sidplay1" = "xyes"; then
204 XS_PATH_LIBSIDPLAY1 204 XS_PATH_LIBSIDPLAY1
205 if test "x$xs_have_sidplay1" = xno; then 205 if test "x$xs_have_sidplay1" = "xno"; then
206 AC_MSG_ERROR([libSIDPlay1 library and/or headers were not found!]) 206 AC_MSG_ERROR([libSIDPlay1 library and/or headers were not found!])
207 fi 207 fi
208 fi 208 fi
209 fi 209 fi
210 if test "x$xs_have_sidplay1" = xyes; then 210 if test "x$xs_have_sidplay1" = "xyes"; then
211 AC_DEFINE([HAVE_SIDPLAY1]) 211 AC_DEFINE([HAVE_SIDPLAY1])
212 OPT_SIDPLAY1="yes" 212 OPT_SIDPLAY1="yes"
213 fi 213 fi
214 214
215 215
216 216
217 OPT_SIDPLAY2="no" 217 OPT_SIDPLAY2="no"
218 LIBSIDPLAY2_REQUIRED_VERSION="2.1.0" 218 LIBSIDPLAY2_REQUIRED_VERSION="2.1.0"
219 if test "x$xs_sidplay2" = xtry; then 219 if test "x$xs_sidplay2" = "xtry"; then
220 XS_PATH_LIBSIDPLAY2 220 XS_PATH_LIBSIDPLAY2
221 else 221 else
222 if test "x$xs_sidplay2" = xyes; then 222 if test "x$xs_sidplay2" = "xyes"; then
223 XS_PATH_LIBSIDPLAY2 223 XS_PATH_LIBSIDPLAY2
224 if test "x$xs_have_sidplay2" = xno; then 224 if test "x$xs_have_sidplay2" = "xno"; then
225 AC_MSG_ERROR([libSIDPlay2 library and/or headers were not found!]) 225 AC_MSG_ERROR([libSIDPlay2 library and/or headers were not found!])
226 fi 226 fi
227 fi 227 fi
228 fi 228 fi
229 if test "x$xs_have_sidplay2" = xyes; then 229 if test "x$xs_have_sidplay2" = "xyes"; then
230 AC_DEFINE([HAVE_SIDPLAY2]) 230 AC_DEFINE([HAVE_SIDPLAY2])
231 OPT_SIDPLAY2="yes" 231 OPT_SIDPLAY2="yes"
232 BUILDERS_FIND 232 BUILDERS_FIND
233 BUILDERS_FIND_RESID 233 BUILDERS_FIND_RESID
234 BUILDERS_FIND_HARDSID 234 BUILDERS_FIND_HARDSID
235 if test "x$builders_available" = xno; then 235 if test "x$builders_available" = "xno"; then
236 AC_MSG_ERROR([No builder modules were found in the sidbuilders directory!]); 236 AC_MSG_ERROR([No builder modules were found in the sidbuilders directory!]);
237 fi 237 fi
238 fi 238 fi
239 239
240 240
241 dnl *** 241 dnl ***
242 dnl *** Check if we have some emulator library available? 242 dnl *** Check if we have some emulator library available?
243 dnl *** 243 dnl ***
244 if test "x$OPT_SIDPLAY1" = xno; then 244 if test "x$OPT_SIDPLAY1" = "xno"; then
245 if test "x$OPT_SIDPLAY2" = xno; then 245 if test "x$OPT_SIDPLAY2" = "xno"; then
246 AC_MSG_ERROR([Either libSIDPlay1 or libSIDPlay2 is required! Please read INSTALL for more information!]) 246 AC_MSG_ERROR([Either libSIDPlay1 or libSIDPlay2 is required! Please read INSTALL for more information!])
247 fi 247 fi
248 fi 248 fi
249 249
250 250
251 dnl *** 251 dnl ***
252 dnl *** Song position patch check 252 dnl *** Song position patch check
253 dnl *** 253 dnl ***
254 AC_MSG_CHECKING([for song position patch]) 254 AC_MSG_CHECKING([for song position patch])
255 tmp_CPPFLAGS=$CPPFLAGS 255 tmp_CPPFLAGS=$CPPFLAGS
256 if test -d "$prefix" ;then 256 if test -d "$prefix"; then
257 CPPFLAGS="$CPPFLAGS -I${prefix}/include" 257 CPPFLAGS="$CPPFLAGS -I${prefix}/include"
258 fi 258 fi
259 259
260 AC_EGREP_HEADER([set_song_position],[xmms/plugin.h], 260 AC_EGREP_HEADER([set_song_position],[xmms/plugin.h],[
261 [
262 OPT_SONGPOS="yes" 261 OPT_SONGPOS="yes"
263 AC_DEFINE(HAVE_SONG_POSITION) 262 AC_DEFINE(HAVE_SONG_POSITION)
264 AC_MSG_RESULT([yes]) 263 AC_MSG_RESULT([yes])
265 ],[ 264 ],[
266 OPT_SONGPOS="no" 265 OPT_SONGPOS="no"