-# Check GCONF
-PKG_CHECK_MODULES(GCONF, gconf-2.0)
-AC_SUBST(GCONF_CFLAGS)
-AC_SUBST(GCONF_LIBS)
-
-### Optional
-
-# check libatasmart
-PKG_CHECK_MODULES(ATASMART, libatasmart,
- [AC_DEFINE([HAVE_ATASMART],[1],[Use libatasmart])],
- [AC_MSG_WARN("Library atasmart not present")])
-
-AM_CONDITIONAL(ATASMART, test -n "$ATASMART_LIBS")
-AC_SUBST(ATASMART_CFLAGS)
-AC_SUBST(ATASMART_LIBS)
-
-# Check libnotify
-LIBNOTIFY_LIBS=
-PKG_CHECK_MODULES(LIBNOTIFY,
- libnotify,
- [AC_DEFINE([HAVE_LIBNOTIFY],[1],[Use desktop notification])],
- [AC_MSG_WARN("Desktop notification disabled")])
-AM_CONDITIONAL(LIBNOTIFY, test -n "$LIBNOTIFY_LIBS")
-AC_SUBST(LIBNOTIFY_CFLAGS)
-AC_SUBST(LIBNOTIFY_LIBS)
-
-# Checks AppIndicator
-APPINDICATOR_LIBS=
-
-PKG_CHECK_MODULES(APPINDICATOR, appindicator3-0.1,
- [AC_DEFINE([HAVE_APPINDICATOR],[1],[Use AppIndicator3-0.1])],
- [AC_MSG_WARN(AppIndicator 3-0.1 not present")])
-
-if test "$APPINDICATOR_LIBS" == ""; then
- PKG_CHECK_MODULES(APPINDICATOR,
- appindicator-0.1 <= 0.2.9 ,
- [AC_DEFINE([HAVE_APPINDICATOR],[1],[Use AppIndicator 0.2.9])
- AC_DEFINE([HAVE_APPINDICATOR_029],[1],[Use AppIndicator 0.2.9])
- ],
- [AC_MSG_WARN(AppIndicator 0.2.9 not present")])
-fi
-
-if test "$APPINDICATOR_LIBS" == ""; then
- PKG_CHECK_MODULES(APPINDICATOR,
- appindicator-0.1 > 0.2.9,
- [AC_DEFINE([HAVE_APPINDICATOR],[1],[Use AppIndicator > 0.2.9])],
- [AC_MSG_WARN("AppIndicator > 0.2.9 not present")])
-fi
-AM_CONDITIONAL(APPINDICATOR, test -n "$APPINDICATOR_LIBS")
-AC_SUBST(APPINDICATOR_CFLAGS)
-AC_SUBST(APPINDICATOR_LIBS)
-
-# Check CURL, needed for remote monitoring
-CURL_LIBS=
-PKG_CHECK_MODULES(CURL,
- libcurl,
- [AC_DEFINE([HAVE_CURL],[1],[Use CURL])],
- [AC_MSG_WARN("Remote monitoring disabled, curl missing")])
-AM_CONDITIONAL(CURL, test -n "$CURL_LIBS")
-AC_SUBST(CURL_CFLAGS)
-AC_SUBST(CURL_LIBS)
-
-# Check JSON, needed for remote monitoring