X-Git-Url: http://git.wpitchoune.net/gitweb/?p=ppastats-pkg-ubuntu.git;a=blobdiff_plain;f=configure.ac;h=e6ca635d93d9fa4d0cc1fc556f8cf5471a8147b1;hp=0df89b98639e06af822d05a2ae30131c79ea9dff;hb=HEAD;hpb=c976207a7ee09e141ba349e57fcaad0038c79df5 diff --git a/configure.ac b/configure.ac index 0df89b9..e6ca635 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([ppastats], [1.2.0],[jeanfi@gmail.com],[ppastats],[http://wpitchoune.net/ppastats]) +AC_INIT([ppastats], [1.3.3],[jeanfi@gmail.com],[ppastats],[http://wpitchoune.net/ppastats]) AM_INIT_AUTOMAKE([-Wall gnu]) @@ -32,13 +32,13 @@ AC_SUBST(CURL_LIBS) # Checks JSON JSON_LIBS= PKG_CHECK_MODULES(JSON, - json-c, + json-c >= 0.11.99, [AC_DEFINE([HAVE_JSON],[1],[Use JSON])], [AC_MSG_WARN("json-c missing")]) if test "$JSON_LIBS" == ""; then PKG_CHECK_MODULES(JSON, - json, + json >= 0.11.99, [AC_DEFINE([HAVE_JSON],[1],[Use JSON]) AC_DEFINE([HAVE_JSON_0],[1],[Use JSON0])], [AC_MSG_WARN("json0 missing")]) @@ -64,5 +64,6 @@ AC_CONFIG_FILES([ po/Makefile.in AC_CHECK_PROGS([HELP2MAN], [help2man]) AC_CHECK_PROG(HAVE_CPPCHECK, cppcheck, yes) +AM_CONDITIONAL(CPPCHECK, test -n "$HAVE_CPPCHECK") AC_OUTPUT