Allow using things that were deprecated in gtk+-3.22.
[freeciv.git] / m4 / web-client.m4
blobcc56152024f5ac0472671753a897e91b7764532d
1 # Configure checks for freeciv-web
3 AC_DEFUN([FC_WEB_CLIENT],
5   AM_CONDITIONAL([FREECIV_WEB], [test "x$fcweb" = "xtrue"])
7   if test "x$fcweb" = "xtrue" ; then
8     AC_DEFINE([FREECIV_WEB], [1], [Build freeciv-web version])
10     AC_CHECK_LIB([jansson], [json_object_set_new],
11 [SERVER_LIBS="${SERVER_LIBS} -ljansson"],
12 [AC_MSG_ERROR([cannot find libjansson])])
14     AC_CHECK_HEADER([jansson.h], [],
15 [AC_MSG_ERROR([libjansson found but not jansson.h])])
17     AC_DEFINE([FREECIV_JSON_CONNECTION], [1], [jansson network protocol in use])
18   fi