1 AC_INIT([gmpc-plugins], [0.18.101], [qball@sarine.nl])
3 AC_CONFIG_MACRO_DIR([m4])
13 [ case "${enableval}" in
16 *) AC_MSG_ERROR([bad value ${enableval} for --enable-awn]);;
20 AM_CONDITIONAL([AWN_OPT],[test x"$enable_awn" = xyes])
21 if test x${enable_awn} = xyes; then
22 AC_CONFIG_SUBDIRS([gmpc-awn])
29 [ case "${enableval}" in
30 yes) enable_lastfm=yes;;
31 no) enable_lastfm=no;;
32 *) AC_MSG_ERROR([bad value ${enableval} for --enable-lastfm]);;
36 AM_CONDITIONAL([LAST_FM_OPT],[test x"$enable_lastfm" = xyes])
37 if test x${enable_lastfm} = xyes; then
38 AC_CONFIG_SUBDIRS([gmpc-last.fm])
44 AC_ARG_ENABLE(coveramazon,
45 [ --enable-coveramazon],
46 [ case "${enableval}" in
47 yes) enable_coveramazon=yes;;
48 no) enable_coveramazon=no;;
49 *) AC_MSG_ERROR([bad value ${enableval} for --enable-coveramazon]);;
51 [enable_coveramazon=yes])
52 AM_CONDITIONAL([COVERAMAZON_OPT], [test "$enable_coveramazon" = yes])
53 if test x${enable_coveramazon} = xyes; then
54 AC_CONFIG_SUBDIRS([gmpc-coveramazon])
62 #AC_ARG_ENABLE(lyricwiki,
63 # [ --enable-lyricwiki],
64 # [ case "${enableval}" in
65 # yes) enable_lyricwiki=yes;;
66 # no) enable_lyricwiki=no;;
67 # *) AC_MSG_ERROR([bad value ${enableval} for --enable-lyricwiki]);;
69 # [enable_lyricwiki=yes])
71 AM_CONDITIONAL([LYRICWIKI_OPT], [test "$enable_lyricwiki" = yes])
72 if test x${enable_lyricwiki} = xyes; then
73 AC_CONFIG_SUBDIRS([gmpc-lyricwiki])
79 AC_ARG_ENABLE(mdcover,
81 [ case "${enableval}" in
82 yes) enable_mdcover=yes;;
83 no) enable_mdcover=no;;
84 *) AC_MSG_ERROR([bad value ${enableval} for --enable-mdcover]);;
89 AM_CONDITIONAL([MDCOVER_OPT], [test "$enable_mdcover" = yes])
90 if test x${enable_mdcover} = xyes; then
91 AC_CONFIG_SUBDIRS([gmpc-mdcover])
99 [ case "${enableval}" in
100 yes) enable_lyrics=yes;;
101 no) enable_lyrics=no;;
102 *) AC_MSG_ERROR([bad value ${enableval} for --enable-lyrics]);;
107 AM_CONDITIONAL([LYRICS_OPT], [test "$enable_lyrics" = yes])
108 if test x${enable_lyrics} = xyes; then
109 AC_CONFIG_SUBDIRS([gmpc-lyrics])
115 AC_ARG_ENABLE(extraplaylist,
116 [ --enable-extraplaylist],
117 [ case "${enableval}" in
118 yes) enable_extraplaylist=yes;;
119 no) enable_extraplaylist=no;;
120 *) AC_MSG_ERROR([bad value ${enableval} for --enable-extraplaylist]);;
122 [enable_extraplaylist=yes])
125 AM_CONDITIONAL([EXTRAPLAYLIST_OPT], [test "$enable_extraplaylist" = yes])
126 if test x${enable_extraplaylist} = xyes; then
127 AC_CONFIG_SUBDIRS([gmpc-extraplaylist])
135 [ case "${enableval}" in
136 yes) enable_avahi=yes;;
137 no) enable_avahi=no;;
138 *) AC_MSG_ERROR([bad value ${enableval} for --enable-avahi]);;
143 AM_CONDITIONAL([AVAHI_OPT], [test "$enable_avahi" = yes])
144 if test x${enable_avahi} = xyes; then
145 AC_CONFIG_SUBDIRS([gmpc-avahi])
151 AC_ARG_ENABLE(libnotify,
152 [ --enable-libnotify],
153 [ case "${enableval}" in
154 yes) enable_libnotify=yes;;
155 no) enable_libnotify=no;;
156 *) AC_MSG_ERROR([bad value ${enableval} for --enable-libnotify]);;
158 [enable_libnotify=yes])
161 AM_CONDITIONAL([LIBNOTIFY_OPT], [test "$enable_libnotify" = yes])
162 if test x${enable_libnotify} = xyes; then
163 AC_CONFIG_SUBDIRS([gmpc-libnotify])
171 [ case "${enableval}" in
172 yes) enable_alarm=yes;;
173 no) enable_alarm=no;;
174 *) AC_MSG_ERROR([bad value ${enableval} for --enable-alarm]);;
179 AM_CONDITIONAL([ALARM_OPT], [test "$enable_alarm" = yes])
180 if test x${enable_alarm} = xyes; then
181 AC_CONFIG_SUBDIRS([gmpc-alarm])
187 AC_ARG_ENABLE(jamendo,
189 [ case "${enableval}" in
190 yes) enable_jamendo=yes;;
191 no) enable_jamendo=no;;
192 *) AC_MSG_ERROR([bad value ${enableval} for --enable-jamendo]);;
194 [enable_jamendo=yes])
197 AM_CONDITIONAL([JAMENDO_OPT], [test "$enable_jamendo" = yes])
198 if test x${enable_jamendo} = xyes; then
199 AC_CONFIG_SUBDIRS([gmpc-jamendo])
207 [ case "${enableval}" in
208 yes) enable_lirc=yes;;
210 *) AC_MSG_ERROR([bad value ${enableval} for --enable-lirc]);;
215 AM_CONDITIONAL([LIRC_OPT], [test "$enable_lirc" = yes])
216 if test x${enable_lirc} = xyes; then
217 AC_CONFIG_SUBDIRS([gmpc-lirc])
223 AC_ARG_ENABLE(magnatune,
224 [ --enable-magnatune],
225 [ case "${enableval}" in
226 yes) enable_magnatune=yes;;
227 no) enable_magnatune=no;;
228 *) AC_MSG_ERROR([bad value ${enableval} for --enable-magnatune]);;
230 [enable_magnatune=yes])
233 AM_CONDITIONAL([MAGNATUNE_OPT], [test "$enable_magnatune" = yes])
234 if test x${enable_magnatune} = xyes; then
235 AC_CONFIG_SUBDIRS([gmpc-magnatune])
243 [ case "${enableval}" in
244 yes) enable_shout=yes;;
245 no) enable_shout=no;;
246 *) AC_MSG_ERROR([bad value ${enableval} for --enable-shout]);;
251 AM_CONDITIONAL([SHOUT_OPT], [test "$enable_shout" = yes])
252 if test x${enable_shout} = xyes; then
253 AC_CONFIG_SUBDIRS([gmpc-shout])
258 AC_ARG_ENABLE(mserver,
260 [ case "${enableval}" in
261 yes) enable_mserver=yes;;
262 no) enable_mserver=no;;
263 *) AC_MSG_ERROR([bad value ${enableval} for --enable-mserver]);;
265 [enable_mserver=yes])
268 AM_CONDITIONAL([MSERVER_OPT], [test "$enable_mserver" = yes])
269 if test x${enable_mserver} = xyes; then
270 AC_CONFIG_SUBDIRS([gmpc-mserver])
275 #AC_ARG_ENABLE(lastfmradio,
276 # [ --enable-lastfmradio],
277 # [ case "${enableval}" in
278 # yes) enable_lastfmradio=yes;;
279 # no) enable_lastfmradio=no;;
280 # *) AC_MSG_ERROR([bad value ${enableval} for --enable-lastfmradio]);;
282 # [enable_lastfmradio=yes])
285 #AM_CONDITIONAL([LASTFMRADIO_OPT], [test "$enable_lastfmradio" = yes])
286 #if test x${enable_lastfmradio} = xyes; then
287 # AC_CONFIG_SUBDIRS([gmpc-lastfmradio])
292 AC_ARG_ENABLE(tagedit,
294 [ case "${enableval}" in
295 yes) enable_tagedit=yes;;
296 no) enable_tagedit=no;;
297 *) AC_MSG_ERROR([bad value ${enableval} for --enable-tagedit]);;
299 [enable_tagedit=yes])
302 AM_CONDITIONAL([TAGEDIT_OPT], [test "$enable_tagedit" = yes])
303 if test x${enable_tagedit} = xyes; then
304 AC_CONFIG_SUBDIRS([gmpc-tagedit])
310 AC_ARG_ENABLE(wikipedia,
311 [ --enable-wikipedia],
312 [ case "${enableval}" in
313 yes) enable_wikipedia=yes;;
314 no) enable_wikipedia=no;;
315 *) AC_MSG_ERROR([bad value ${enableval} for --enable-wikipedia]);;
317 [enable_wikipedia=yes])
320 AM_CONDITIONAL([WIKIPEDIA_OPT], [test "$enable_wikipedia" = yes])
321 if test x${enable_wikipedia} = xyes; then
322 AC_CONFIG_SUBDIRS([gmpc-wikipedia])
328 AC_ARG_ENABLE(playlistsort,
329 [ --enable-playlistsort],
330 [ case "${enableval}" in
331 yes) enable_playlistsort=yes;;
332 no) enable_playlistsort=no;;
333 *) AC_MSG_ERROR([bad value ${enableval} for --enable-playlistsort]);;
335 [enable_playlistsort=yes])
338 AM_CONDITIONAL([PLAYLISTSORT_OPT], [test "$enable_playlistsort" = yes])
339 if test x${enable_playlistsort} = xyes; then
340 AC_CONFIG_SUBDIRS([gmpc-playlistsort])
346 #AC_ARG_ENABLE(dynamicplaylist,
347 # [ --enable-dynamicplaylist],
348 # [ case "${enableval}" in
349 # yes) enable_dynamicplaylist=yes;;
350 # no) enable_dynamicplaylist=no;;
351 # *) AC_MSG_ERROR([bad value ${enableval} for --enable-dynamicplaylist]);;
353 # [enable_dynamicplaylist=yes])
356 #AM_CONDITIONAL([DYNAMICPLAYLIST_OPT], [test "$enable_dynamicplaylist" = yes])
357 #if test x${enable_dynamicplaylist} = xyes; then
358 # AC_CONFIG_SUBDIRS([gmpc-dynamicplaylist])
364 AC_ARG_ENABLE(lyricsplugin,
365 [ --enable-lyricsplugin],
366 [ case "${enableval}" in
367 yes) enable_lyricsplugin=yes;;
368 no) enable_lyricsplugin=no;;
369 *) AC_MSG_ERROR([bad value ${enableval} for --enable-lyricsplugin]);;
371 [enable_lyricsplugin=yes])
374 AM_CONDITIONAL([LYRICSPLUGIN_OPT], [test "$enable_lyricsplugin" = yes])
375 if test x${enable_lyricsplugin} = xyes; then
376 AC_CONFIG_SUBDIRS([gmpc-lyricsplugin])
382 AC_ARG_ENABLE(albumview,
383 [ --enable-albumview],
384 [ case "${enableval}" in
385 yes) enable_albumview=yes;;
386 no) enable_albumview=no;;
387 *) AC_MSG_ERROR([bad value ${enableval} for --enable-albumview]);;
389 [enable_albumview=yes])
392 AM_CONDITIONAL([ALBUMVIEW_OPT], [test "$enable_albumview" = yes])
393 if test x${enable_albumview} = xyes; then
394 AC_CONFIG_SUBDIRS([gmpc-albumview])
400 AC_ARG_ENABLE(discogs,
402 [ case "${enableval}" in
403 yes) enable_discogs=yes;;
404 no) enable_discogs=no;;
405 *) AC_MSG_ERROR([bad value ${enableval} for --enable-discogs]);;
407 [enable_discogs=yes])
410 AM_CONDITIONAL([DISCOGS_OPT], [test "$enable_discogs" = yes])
411 if test x${enable_discogs} = xyes; then
412 AC_CONFIG_SUBDIRS([gmpc-discogs])
417 AC_ARG_ENABLE(fullscreeninfo,
418 [ --enable-fullscreeninfo],
419 [ case "${enableval}" in
420 yes) enable_fullscreeninfo=yes;;
421 no) enable_fullscreeninfo=no;;
422 *) AC_MSG_ERROR([bad value ${enableval} for --enable-fullscreeninfo]);;
424 [enable_fullscreeninfo=yes])
427 AM_CONDITIONAL([FULLSCREENINFO_OPT], [test "$enable_fullscreeninfo" = yes])
428 if test x${enable_fullscreeninfo} = xyes; then
429 AC_CONFIG_SUBDIRS([gmpc-fullscreeninfo])
434 AC_CONFIG_FILES([Makefile])
440 # Echo to the console what is updated
443 echo "======================================================"
444 if test x${enable_awn} = xyes; then
449 if test x${enable_lastfm} = xyes; then
450 echo "last.fm enabled"
452 echo "last.fm disabled"
454 if test x${enable_coveramazon} = xyes; then
455 echo "Cover amazon enabled"
457 echo "Cover amazon disabled"
459 if test x${enable_lyrics} = xyes; then
460 echo "Lyrics enabled"
462 echo "Lyrics disabled"
464 if test x${enable_mdcover} = xyes; then
465 echo "mdcover enabled"
467 echo "mdcover disabled"
469 if test x${enable_lyricwiki} = xyes; then
470 echo "lyric wiki enabled"
472 if test x${enable_lyricwiki} = xno; then
473 echo "lyric wiki disabled"
475 echo "lyric wiki unavailable"
477 if test x${enable_extraplaylist} = xyes; then
478 echo "extraplaylist enabled"
480 echo "extraplaylist disabled"
482 if test x${enable_avahi} = xyes; then
485 echo "avahi disabled"
487 if test x${enable_libnotify} = xyes; then
488 echo "libnotify enabled"
490 echo "libnotify disabled"
492 if test x${enable_alarm} = xyes; then
495 echo "alarm disabled"
497 if test x${enable_jamendo} = xyes; then
498 echo "jamendo enabled"
500 echo "jamendo disabled"
502 if test x${enable_lirc} = xyes; then
507 if test x${enable_magnatune} = xyes; then
508 echo "magnatune enabled"
510 echo "magnatune disabled"
512 if test x${enable_shout} = xyes; then
515 echo "shout disabled"
517 if test x${enable_mserver} = xyes; then
518 echo "mserver enabled"
520 echo "mserver disabled"
522 #if test x${enable_lastfmradio} = xyes; then
523 # echo "lastfmradio enabled"
525 echo "lastfmradio unavailable"
527 if test x${enable_tagedit} = xyes; then
528 echo "tagedit enabled"
530 echo "tagedit disabled"
533 if test x${enable_wikipedia} = xyes; then
534 echo "wikipedia enabled"
536 echo "wikipedia disabled"
538 if test x${enable_playlistsort} = xyes; then
539 echo "playlistsort enabled"
541 echo "playlistsort disabled"
543 #if test x${enable_dynamicplaylist} = xyes; then
544 echo "Dynamic Playlist unavailable"
546 # echo "Dynamic Playlist disabled"
549 if test x${enable_lyricsplugin} = xyes; then
550 echo "Lyricsplugin enabled"
552 echo "Lyricsplugin disabled"
556 if test x${enable_albumview} = xyes; then
557 echo "Albumview enabled"
559 echo "Albumview disabled"
562 if test x${enable_discogs} = xyes; then
563 echo "Discogs Playlist enabled"
565 echo "Discogs Playlist disabled"
568 if test x${enable_fullscreeninfo} = xyes; then
569 echo "Fullscreen info enabled"
571 echo "Fullscreen info disabled"