diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2015-10-11 09:27:47 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2015-10-11 09:27:47 +0000 |
commit | 15f13cc7f9b59269a8b5ee8c750b5729b2c359ae (patch) | |
tree | d0689fa0c056ae7a56beffb1a36140a79d771c9b /configure.ac | |
parent | 2d6f7ad88e58cea86852bbe798a425ef8ac8cb3e (diff) | |
download | gnunet-15f13cc7f9b59269a8b5ee8c750b5729b2c359ae.tar.gz gnunet-15f13cc7f9b59269a8b5ee8c750b5729b2c359ae.zip |
- implicitly enable rest functions in experimental if jansson.h present
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index baf7a5517..f1a30ead2 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -382,6 +382,16 @@ else | |||
382 | AC_DEFINE([HAVE_LIBBLUETOOTH],[0],[Lacking bluetooth library]) | 382 | AC_DEFINE([HAVE_LIBBLUETOOTH],[0],[Lacking bluetooth library]) |
383 | fi | 383 | fi |
384 | 384 | ||
385 | # check for jansson library | ||
386 | jansson=0 | ||
387 | AC_CHECK_HEADER([jansson.h],jansson=1) | ||
388 | AM_CONDITIONAL(HAVE_REST, [test "$jansson" = 1]) | ||
389 | if test "$jansson" = 1 | ||
390 | then | ||
391 | AC_DEFINE([HAVE_REST],[1],[Have jansson library]) | ||
392 | else | ||
393 | AC_DEFINE([HAVE_REST],[0],[Lacking jansson library]) | ||
394 | fi | ||
385 | 395 | ||
386 | # check for libpulse(audio) library | 396 | # check for libpulse(audio) library |
387 | pulse=0 | 397 | pulse=0 |
@@ -1288,15 +1298,6 @@ AC_ARG_ENABLE([wachs], | |||
1288 | AC_MSG_RESULT($enable_wachs) | 1298 | AC_MSG_RESULT($enable_wachs) |
1289 | AM_CONDITIONAL([HAVE_WACHS], [test "x$enable_wachs" = "xyes"]) | 1299 | AM_CONDITIONAL([HAVE_WACHS], [test "x$enable_wachs" = "xyes"]) |
1290 | 1300 | ||
1291 | # REST API | ||
1292 | AC_MSG_CHECKING(whether to compile REST API) | ||
1293 | AC_ARG_ENABLE([rest], | ||
1294 | [AS_HELP_STRING([--enable-rest], [enable REST])], | ||
1295 | [enable_rest=${enableval}], | ||
1296 | [enable_rest=no]) | ||
1297 | AC_MSG_RESULT($enable_rest) | ||
1298 | AM_CONDITIONAL([HAVE_REST], [test "x$enable_rest" = "xyes"]) | ||
1299 | |||
1300 | # should malicious code be compiled (should only be used for testing)? | 1301 | # should malicious code be compiled (should only be used for testing)? |
1301 | AC_MSG_CHECKING(whether to compile malicious code) | 1302 | AC_MSG_CHECKING(whether to compile malicious code) |
1302 | AC_ARG_ENABLE([malicious], | 1303 | AC_ARG_ENABLE([malicious], |