1 AC_INIT([gmpc-plugins], [11.8.17], [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])
27 #AC_ARG_ENABLE(lastfm,
29 # [ case "${enableval}" in
30 # yes) enable_lastfm=yes;;
31 # no) enable_lastfm=no;;
32 # *) AC_MSG_ERROR([bad value ${enableval} for --enable-lastfm]);;
34 # [enable_lastfm=yes])
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 #enable_coveramazon=una
53 #AM_CONDITIONAL([COVERAMAZON_OPT], [test "$enable_coveramazon" = yes])
54 #if test x${enable_coveramazon} = xyes; then
55 # AC_CONFIG_SUBDIRS([gmpc-coveramazon])
63 AC_ARG_ENABLE(lyricwiki,
64 [ --enable-lyricwiki],
65 [ case "${enableval}" in
66 yes) enable_lyricwiki=yes;;
67 no) enable_lyricwiki=no;;
68 *) AC_MSG_ERROR([bad value ${enableval} for --enable-lyricwiki]);;
70 [enable_lyricwiki=yes])
72 AM_CONDITIONAL([LYRICWIKI_OPT], [test "$enable_lyricwiki" = yes])
73 if test x${enable_lyricwiki} = xyes; then
74 AC_CONFIG_SUBDIRS([gmpc-lyricwiki])
80 #AC_ARG_ENABLE(mdcover,
81 # [ --enable-mdcover],
82 # [ case "${enableval}" in
83 # yes) enable_mdcover=yes;;
84 # no) enable_mdcover=no;;
85 # *) AC_MSG_ERROR([bad value ${enableval} for --enable-mdcover]);;
87 # [enable_mdcover=yes])
90 #AM_CONDITIONAL([MDCOVER_OPT], [test "$enable_mdcover" = yes])
91 #if test x${enable_mdcover} = xyes; then
92 # AC_CONFIG_SUBDIRS([gmpc-mdcover])
100 [ case "${enableval}" in
101 yes) enable_lyrics=yes;;
102 no) enable_lyrics=no;;
103 *) AC_MSG_ERROR([bad value ${enableval} for --enable-lyrics]);;
108 AM_CONDITIONAL([LYRICS_OPT], [test "$enable_lyrics" = yes])
109 if test x${enable_lyrics} = xyes; then
110 AC_CONFIG_SUBDIRS([gmpc-lyrics])
116 #AC_ARG_ENABLE(extraplaylist,
117 # [ --enable-extraplaylist],
118 # [ case "${enableval}" in
119 # yes) enable_extraplaylist=yes;;
120 # no) enable_extraplaylist=no;;
121 # *) AC_MSG_ERROR([bad value ${enableval} for --enable-extraplaylist]);;
123 # [enable_extraplaylist=yes])
126 #AM_CONDITIONAL([EXTRAPLAYLIST_OPT], [test "$enable_extraplaylist" = yes])
127 #if test x${enable_extraplaylist} = xyes; then
128 # AC_CONFIG_SUBDIRS([gmpc-extraplaylist])
136 [ case "${enableval}" in
137 yes) enable_avahi=yes;;
138 no) enable_avahi=no;;
139 *) AC_MSG_ERROR([bad value ${enableval} for --enable-avahi]);;
144 AM_CONDITIONAL([AVAHI_OPT], [test "$enable_avahi" = yes])
145 if test x${enable_avahi} = xyes; then
146 AC_CONFIG_SUBDIRS([gmpc-avahi])
152 AC_ARG_ENABLE(libnotify,
153 [ --enable-libnotify],
154 [ case "${enableval}" in
155 yes) enable_libnotify=yes;;
156 no) enable_libnotify=no;;
157 *) AC_MSG_ERROR([bad value ${enableval} for --enable-libnotify]);;
159 [enable_libnotify=yes])
162 AM_CONDITIONAL([LIBNOTIFY_OPT], [test "$enable_libnotify" = yes])
163 if test x${enable_libnotify} = xyes; then
164 AC_CONFIG_SUBDIRS([gmpc-libnotify])
172 [ case "${enableval}" in
173 yes) enable_alarm=yes;;
174 no) enable_alarm=no;;
175 *) AC_MSG_ERROR([bad value ${enableval} for --enable-alarm]);;
180 AM_CONDITIONAL([ALARM_OPT], [test "$enable_alarm" = yes])
181 if test x${enable_alarm} = xyes; then
182 AC_CONFIG_SUBDIRS([gmpc-alarm])
188 AC_ARG_ENABLE(jamendo,
190 [ case "${enableval}" in
191 yes) enable_jamendo=yes;;
192 no) enable_jamendo=no;;
193 *) AC_MSG_ERROR([bad value ${enableval} for --enable-jamendo]);;
195 [enable_jamendo=yes])
198 AM_CONDITIONAL([JAMENDO_OPT], [test "$enable_jamendo" = yes])
199 if test x${enable_jamendo} = xyes; then
200 AC_CONFIG_SUBDIRS([gmpc-jamendo])
208 # [ case "${enableval}" in
209 # yes) enable_lirc=yes;;
210 # no) enable_lirc=no;;
211 # *) AC_MSG_ERROR([bad value ${enableval} for --enable-lirc]);;
216 #AM_CONDITIONAL([LIRC_OPT], [test "$enable_lirc" = yes])
217 #if test x${enable_lirc} = xyes; then
218 # AC_CONFIG_SUBDIRS([gmpc-lirc])
224 AC_ARG_ENABLE(magnatune,
225 [ --enable-magnatune],
226 [ case "${enableval}" in
227 yes) enable_magnatune=yes;;
228 no) enable_magnatune=no;;
229 *) AC_MSG_ERROR([bad value ${enableval} for --enable-magnatune]);;
231 [enable_magnatune=yes])
234 AM_CONDITIONAL([MAGNATUNE_OPT], [test "$enable_magnatune" = yes])
235 if test x${enable_magnatune} = xyes; then
236 AC_CONFIG_SUBDIRS([gmpc-magnatune])
244 [ case "${enableval}" in
245 yes) enable_shout=yes;;
246 no) enable_shout=no;;
247 *) AC_MSG_ERROR([bad value ${enableval} for --enable-shout]);;
252 AM_CONDITIONAL([SHOUT_OPT], [test "$enable_shout" = yes])
253 if test x${enable_shout} = xyes; then
254 AC_CONFIG_SUBDIRS([gmpc-shout])
259 #AC_ARG_ENABLE(mserver,
260 # [ --enable-mserver],
261 # [ case "${enableval}" in
262 # yes) enable_mserver=yes;;
263 # no) enable_mserver=no;;
264 # *) AC_MSG_ERROR([bad value ${enableval} for --enable-mserver]);;
266 # [enable_mserver=yes])
269 #AM_CONDITIONAL([MSERVER_OPT], [test "$enable_mserver" = yes])
270 #if test x${enable_mserver} = xyes; then
271 # AC_CONFIG_SUBDIRS([gmpc-mserver])
276 #AC_ARG_ENABLE(lastfmradio,
277 # [ --enable-lastfmradio],
278 # [ case "${enableval}" in
279 # yes) enable_lastfmradio=yes;;
280 # no) enable_lastfmradio=no;;
281 # *) AC_MSG_ERROR([bad value ${enableval} for --enable-lastfmradio]);;
283 # [enable_lastfmradio=yes])
286 #AM_CONDITIONAL([LASTFMRADIO_OPT], [test "$enable_lastfmradio" = yes])
287 #if test x${enable_lastfmradio} = xyes; then
288 # AC_CONFIG_SUBDIRS([gmpc-lastfmradio])
293 AC_ARG_ENABLE(tagedit,
295 [ case "${enableval}" in
296 yes) enable_tagedit=yes;;
297 no) enable_tagedit=no;;
298 *) AC_MSG_ERROR([bad value ${enableval} for --enable-tagedit]);;
300 [enable_tagedit=yes])
303 AM_CONDITIONAL([TAGEDIT_OPT], [test "$enable_tagedit" = yes])
304 if test x${enable_tagedit} = xyes; then
305 AC_CONFIG_SUBDIRS([gmpc-tagedit])
311 AC_ARG_ENABLE(wikipedia,
312 [ --enable-wikipedia],
313 [ case "${enableval}" in
314 yes) enable_wikipedia=yes;;
315 no) enable_wikipedia=no;;
316 *) AC_MSG_ERROR([bad value ${enableval} for --enable-wikipedia]);;
318 [enable_wikipedia=yes])
321 AM_CONDITIONAL([WIKIPEDIA_OPT], [test "$enable_wikipedia" = yes])
322 if test x${enable_wikipedia} = xyes; then
323 AC_CONFIG_SUBDIRS([gmpc-wikipedia])
329 AC_ARG_ENABLE(playlistsort,
330 [ --enable-playlistsort],
331 [ case "${enableval}" in
332 yes) enable_playlistsort=yes;;
333 no) enable_playlistsort=no;;
334 *) AC_MSG_ERROR([bad value ${enableval} for --enable-playlistsort]);;
336 [enable_playlistsort=yes])
339 AM_CONDITIONAL([PLAYLISTSORT_OPT], [test "$enable_playlistsort" = yes])
340 if test x${enable_playlistsort} = xyes; then
341 AC_CONFIG_SUBDIRS([gmpc-playlistsort])
347 #AC_ARG_ENABLE(dynamicplaylist,
348 # [ --enable-dynamicplaylist],
349 # [ case "${enableval}" in
350 # yes) enable_dynamicplaylist=yes;;
351 # no) enable_dynamicplaylist=no;;
352 # *) AC_MSG_ERROR([bad value ${enableval} for --enable-dynamicplaylist]);;
354 # [enable_dynamicplaylist=yes])
357 #AM_CONDITIONAL([DYNAMICPLAYLIST_OPT], [test "$enable_dynamicplaylist" = yes])
358 #if test x${enable_dynamicplaylist} = xyes; then
359 # AC_CONFIG_SUBDIRS([gmpc-dynamicplaylist])
365 #AC_ARG_ENABLE(lyricsplugin,
366 # [ --enable-lyricsplugin],
367 # [ case "${enableval}" in
368 # yes) enable_lyricsplugin=yes;;
369 # no) enable_lyricsplugin=no;;
370 # *) AC_MSG_ERROR([bad value ${enableval} for --enable-lyricsplugin]);;
372 # [enable_lyricsplugin=yes])
375 #AM_CONDITIONAL([LYRICSPLUGIN_OPT], [test "$enable_lyricsplugin" = yes])
376 #if test x${enable_lyricsplugin} = xyes; then
377 # AC_CONFIG_SUBDIRS([gmpc-lyricsplugin])
383 AC_ARG_ENABLE(albumview,
384 [ --enable-albumview],
385 [ case "${enableval}" in
386 yes) enable_albumview=yes;;
387 no) enable_albumview=no;;
388 *) AC_MSG_ERROR([bad value ${enableval} for --enable-albumview]);;
390 [enable_albumview=yes])
393 AM_CONDITIONAL([ALBUMVIEW_OPT], [test "$enable_albumview" = yes])
394 if test x${enable_albumview} = xyes; then
395 AC_CONFIG_SUBDIRS([gmpc-albumview])
401 #AC_ARG_ENABLE(discogs,
402 # [ --enable-discogs],
403 # [ case "${enableval}" in
404 # yes) enable_discogs=yes;;
405 # no) enable_discogs=no;;
406 # *) AC_MSG_ERROR([bad value ${enableval} for --enable-discogs]);;
408 # [enable_discogs=yes])
411 #AM_CONDITIONAL([DISCOGS_OPT], [test "$enable_discogs" = yes])
412 #if test x${enable_discogs} = xyes; then
413 # AC_CONFIG_SUBDIRS([gmpc-discogs])
418 #AC_ARG_ENABLE(fullscreeninfo,
419 # [ --enable-fullscreeninfo],
420 # [ case "${enableval}" in
421 # yes) enable_fullscreeninfo=yes;;
422 # no) enable_fullscreeninfo=no;;
423 # *) AC_MSG_ERROR([bad value ${enableval} for --enable-fullscreeninfo]);;
425 # [enable_fullscreeninfo=yes])
428 #AM_CONDITIONAL([FULLSCREENINFO_OPT], [test "$enable_fullscreeninfo" = yes])
429 #if test x${enable_fullscreeninfo} = xyes; then
430 # AC_CONFIG_SUBDIRS([gmpc-fullscreeninfo])
437 AC_ARG_ENABLE(mmkeys,
439 [ case "${enableval}" in
440 yes) enable_mmkeys=yes;;
441 no) enable_mmkeys=no;;
442 *) AC_MSG_ERROR([bad value ${enableval} for --enable-mmkeys]);;
447 AM_CONDITIONAL([MMKEYS_OPT], [test "$enable_mmkeys" = yes])
448 if test x${enable_mmkeys} = xyes; then
449 AC_CONFIG_SUBDIRS([gmpc-mmkeys])
453 AC_CONFIG_FILES([Makefile])
459 # Echo to the console what is updated
462 echo "======================================================"
463 if test x${enable_awn} = xyes; then
468 #if test x${enable_lastfm} = xyes; then
469 # echo "last.fm enabled"
471 # echo "last.fm disabled"
473 #if test x${enable_coveramazon} = xyes; then
474 # echo "Cover amazon enabled"
476 #if test x${enable_lyricwiki} = xno; then
477 # echo "Cover amazon disabled"
479 # echo "Cover amazon unavailable"
483 if test x${enable_lyrics} = xyes; then
484 echo "Lyrics enabled"
486 echo "Lyrics disabled"
488 #if test x${enable_mdcover} = xyes; then
489 # echo "mdcover enabled"
491 # echo "mdcover disabled"
493 if test x${enable_lyricwiki} = xyes; then
494 echo "lyric wiki enabled"
496 if test x${enable_lyricwiki} = xno; then
497 echo "lyric wiki disabled"
499 echo "lyric wiki unavailable"
502 #if test x${enable_extraplaylist} = xyes; then
503 # echo "extraplaylist enabled"
505 # echo "extraplaylist disabled"
507 if test x${enable_avahi} = xyes; then
510 echo "avahi disabled"
512 if test x${enable_libnotify} = xyes; then
513 echo "libnotify enabled"
515 echo "libnotify disabled"
517 if test x${enable_alarm} = xyes; then
520 echo "alarm disabled"
522 if test x${enable_jamendo} = xyes; then
523 echo "jamendo enabled"
525 echo "jamendo disabled"
527 #if test x${enable_lirc} = xyes; then
528 # echo "lirc enabled"
530 # echo "lirc disabled"
532 if test x${enable_magnatune} = xyes; then
533 echo "magnatune enabled"
535 echo "magnatune disabled"
537 if test x${enable_shout} = xyes; then
540 echo "shout disabled"
542 #if test x${enable_mserver} = xyes; then
543 # echo "mserver enabled"
545 # echo "mserver disabled"
547 #if test x${enable_lastfmradio} = xyes; then
548 # echo "lastfmradio enabled"
550 echo "lastfmradio unavailable"
552 if test x${enable_tagedit} = xyes; then
553 echo "tagedit enabled"
555 echo "tagedit disabled"
558 if test x${enable_wikipedia} = xyes; then
559 echo "wikipedia enabled"
561 echo "wikipedia disabled"
563 if test x${enable_playlistsort} = xyes; then
564 echo "playlistsort enabled"
566 echo "playlistsort disabled"
568 #if test x${enable_dynamicplaylist} = xyes; then
569 echo "Dynamic Playlist unavailable"
571 # echo "Dynamic Playlist disabled"
574 #if test x${enable_lyricsplugin} = xyes; then
575 # echo "Lyricsplugin enabled"
577 # echo "Lyricsplugin disabled"
581 if test x${enable_albumview} = xyes; then
582 echo "Albumview enabled"
584 echo "Albumview disabled"
587 #if test x${enable_discogs} = xyes; then
588 # echo "Discogs Playlist enabled"
590 # echo "Discogs Playlist disabled"
593 #if test x${enable_fullscreeninfo} = xyes; then
594 # echo "Fullscreen info enabled"
596 # echo "Fullscreen info disabled"
599 if test x${enable_mmkeys} = xyes; then
600 echo "MMKeys info enabled"
602 echo "MMKeys info disabled"