* Native Restconf is now default, not fcgi/nginx
* That is, to configure with fcgi, you need to explicitly configure: `--with-restconf=fcgi` * Updated main example to native restconf and several other fixes
This commit is contained in:
parent
98c5fcd20f
commit
fe0541959f
7 changed files with 169 additions and 250 deletions
|
|
@ -206,11 +206,12 @@ AC_CHECK_LIB(cligen, cligen_init,, AC_MSG_ERROR([CLIgen missing. Try: git clone
|
|||
# This is for restconf. There are three options:
|
||||
# --without-restconf No restconf support
|
||||
# --with-restconf=fcgi FCGI interface for separate web reverse proxy like nginx
|
||||
# --with-restconf=native Integration with embedded web server
|
||||
# --with-restconf=native Integration with embedded web server (DEFAULT)
|
||||
AC_ARG_WITH([restconf],
|
||||
AS_HELP_STRING([--with-restconf=fcgi],[FCGI interface for stand-alone web rev-proxy eg nginx (default)]),
|
||||
AS_HELP_STRING([--with-restconf=native],[Integration with embedded web server (DEFAULT)]),
|
||||
,
|
||||
[with_restconf=fcgi])
|
||||
[with_restconf=native])
|
||||
AC_MSG_RESULT(restconf mode ${with_restconf})
|
||||
# Actions for each specific package
|
||||
if test "x${with_restconf}" == xfcgi; then
|
||||
# Lives in libfcgi-dev
|
||||
|
|
@ -218,6 +219,7 @@ if test "x${with_restconf}" == xfcgi; then
|
|||
AC_DEFINE(WITH_RESTCONF_FCGI, 1, [Use fcgi restconf mode]) # For c-code that cant use strings
|
||||
AC_DEFINE_UNQUOTED(WWWDIR, "$wwwdir", [WWW dir for fcgi stuff / nginx])
|
||||
elif test "x${with_restconf}" == xnative; then
|
||||
|
||||
AC_CHECK_LIB(ssl, OPENSSL_init_ssl ,, AC_MSG_ERROR([libssl missing]))
|
||||
AC_CHECK_LIB(crypto, CRYPTO_new_ex_data, , AC_MSG_ERROR([libcrypto missing]))
|
||||
# Check if evhtp is enabled for http/1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue