Mercurial > audlegacy
diff configure.ac @ 1493:c5bb3813fbd8 trunk
[svn] - autodetect libnotify, and if found, build the notify plugin
author | nenolod |
---|---|
date | Fri, 04 Aug 2006 00:58:45 -0700 |
parents | bbd5869239e5 |
children | 5679777b7a3f |
line wrap: on
line diff
--- a/configure.ac Fri Aug 04 00:49:40 2006 -0700 +++ b/configure.ac Fri Aug 04 00:58:45 2006 -0700 @@ -318,6 +318,25 @@ GENERAL_PLUGINS="$GENERAL_PLUGINS lirc" fi +dnl *** libnotify requirement + +AC_ARG_ENABLE(notify, + [ --disable-notify disable libnotify plugin (default=enabled)], + [enable_libnotify=$enableval], + [enable_libnotify="yes"] +) + +if test "$enable_libnotify" = "yes"; then + PKG_CHECK_MODULES(LIBNOTIFY, [libnotify >= 0.4.2], + [have_libnotify=yes + GENERAL_PLUGINS="$GENERAL_PLUGINS notify"], + [have_libnotify=no] + ) +else + AC_MSG_RESULT([*** libnotify plugin disabled per user request ***]) + have_libnotify="no" +fi + dnl *** AdPlug requirement (libbinio) AC_ARG_ENABLE(adplug, @@ -1082,6 +1101,7 @@ echo " Song Change: yes" echo " LIRC: $have_lirc" echo " AudioScrobbler Client: $scrobbler" +echo " libnotify Plugin: $have_libnotify" echo echo " Effect" echo " ------"