X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=configure.ac;h=b240057094291826a7009cf0d7fbd8c3cdabc38f;hb=3e2d6e618439af4d2d985b999fc225b1248d5aad;hp=b9292c76f91f778103ded83e5ae3b320ecfa0871;hpb=8433816fae0e04baf1cb3f53e87ad7ed52210915;p=psensor.git diff --git a/configure.ac b/configure.ac index b9292c7..b240057 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.64]) -AC_INIT([psensor], [0.8.0.x],[jeanfi@gmail.com],[psensor],[http://wpitchoune.net/psensor]) +AC_INIT([psensor], [0.8.0.3],[jeanfi@gmail.com],[psensor],[http://wpitchoune.net/psensor]) AM_INIT_AUTOMAKE([-Wall -Werror gnu]) @@ -53,16 +53,19 @@ AC_SUBST(SENSORS_LIBS) ### Required -PKG_CHECK_MODULES(X11, x11) +PKG_CHECK_MODULES(X11, x11,,[AC_MSG_WARN("x11 missing psensor will not be built")]) +AM_CONDITIONAL(X11, test -n "$X11_LIBS") AC_SUBST(X11_CFLAGS) AC_SUBST(X11_LIBS) -PKG_CHECK_MODULES(XEXT, xext) +PKG_CHECK_MODULES(XEXT, xext,,[AC_MSG_WARN("xext missing psensor will not be built")]) +AM_CONDITIONAL(XEXT, test -n "$XEXT_LIBS") AC_SUBST(XEXT_CFLAGS) AC_SUBST(XEXT_LIBS) # Checks GTK+ 3.0 -PKG_CHECK_MODULES(GTK, gtk+-3.0) +PKG_CHECK_MODULES(GTK, gtk+-3.0,,[AC_MSG_WARN("gtk missing psensor will not be built")]) +AM_CONDITIONAL(GTK, test -n "$GTK_LIBS") # ensure that only allowed headers are included GTK_CFLAGS+=" -DGTK_DISABLE_SINGLE_INCLUDES " # ensure that no gtk deprecated symbols are used @@ -76,7 +79,7 @@ AC_SUBST(GTK_LIBS) # Check GCONF PKG_CHECK_MODULES(GCONF, gconf-2.0, [AC_DEFINE([HAVE_GCONF2],[1],[Use gconf2])], - [AC_MSG_WARN("gconf2 not present")]) + [AC_MSG_WARN("gconf2 missing psensor will not be built")]) AM_CONDITIONAL(GCONF, test -n "$GCONF_LIBS") AC_SUBST(GCONF_CFLAGS) AC_SUBST(GCONF_LIBS) @@ -145,7 +148,7 @@ PKG_CHECK_MODULES(JSON, [AC_DEFINE([HAVE_JSON],[1],[Use JSON])], [AC_MSG_WARN("json-c missing")]) -if test "JSON_LIBS" == ""; then +if test "$JSON_LIBS" == ""; then PKG_CHECK_MODULES(JSON, json, [AC_DEFINE([HAVE_JSON],[1],[Use JSON])