Skip to content
Snippets Groups Projects
Commit 4dc18479 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

autotools: fix build without proxy server

parent 3a616926
No related branches found
No related tags found
No related merge requests found
...@@ -134,18 +134,17 @@ AM_COND_IF([ENABLE_PROXY_SERVER], [ ...@@ -134,18 +134,17 @@ AM_COND_IF([ENABLE_PROXY_SERVER], [
AC_CHECK_LIB(restbed, exit,, AC_MSG_ERROR([Missing restbed files])) AC_CHECK_LIB(restbed, exit,, AC_MSG_ERROR([Missing restbed files]))
PKG_CHECK_MODULES([Jsoncpp], [jsoncpp >= 1.7.4]) PKG_CHECK_MODULES([Jsoncpp], [jsoncpp >= 1.7.4])
CPPFLAGS+=" -DOPENDHT_PROXY_SERVER=true -ljsoncpp -lrestbed" CPPFLAGS+=" -DOPENDHT_PROXY_SERVER=true -ljsoncpp -lrestbed"
], [
CPPFLAGS+=" -DOPENDHT_PROXY_SERVER=false"
])
AC_ARG_ENABLE([proxy_server_identity], AS_HELP_STRING([--enable-proxy-server-identity], AC_ARG_ENABLE([proxy_server_identity], AS_HELP_STRING([--enable-proxy-server-identity],
[Enable proxy server ability]), proxy_server_identity=yes, proxy_server_identity=no) [Enable proxy server ability]), proxy_server_identity=yes, proxy_server_identity=no)
AM_CONDITIONAL(ENABLE_PROXY_SERVER_IDENTITY, test x$proxy_server_identity == xyes) AM_CONDITIONAL(ENABLE_PROXY_SERVER_IDENTITY, test x$proxy_server_identity == xyes -a x$proxy_server == xyes)
AM_COND_IF([ENABLE_PROXY_SERVER_IDENTITY], [ AM_COND_IF([ENABLE_PROXY_SERVER_IDENTITY], [
CPPFLAGS+=" -DOPENDHT_PROXY_SERVER_IDENTITY=true" CPPFLAGS+=" -DOPENDHT_PROXY_SERVER_IDENTITY=true"
], [ ], [
CPPFLAGS+=" -DOPENDHT_PROXY_SERVER_IDENTITY=false" CPPFLAGS+=" -DOPENDHT_PROXY_SERVER_IDENTITY=false"
]) ])
], [
CPPFLAGS+=" -DOPENDHT_PROXY_SERVER=false"
])
AC_CONFIG_FILES([doc/Doxyfile doc/Makefile]) AC_CONFIG_FILES([doc/Doxyfile doc/Makefile])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment