configure.ac: fix string comparison operator, == vs =
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
parent
726394d97c
commit
1283270504
2 changed files with 7 additions and 7 deletions
6
configure
vendored
6
configure
vendored
|
|
@ -5143,7 +5143,7 @@ fi
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: restconf mode ${with_restconf}" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: restconf mode ${with_restconf}" >&5
|
||||||
$as_echo "restconf mode ${with_restconf}" >&6; }
|
$as_echo "restconf mode ${with_restconf}" >&6; }
|
||||||
# Actions for each specific package
|
# Actions for each specific package
|
||||||
if test "x${with_restconf}" == xfcgi; then
|
if test "x${with_restconf}" = xfcgi; then
|
||||||
# Lives in libfcgi-dev
|
# Lives in libfcgi-dev
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCGX_Init in -lfcgi" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCGX_Init in -lfcgi" >&5
|
||||||
$as_echo_n "checking for FCGX_Init in -lfcgi... " >&6; }
|
$as_echo_n "checking for FCGX_Init in -lfcgi... " >&6; }
|
||||||
|
|
@ -5195,7 +5195,7 @@ fi
|
||||||
|
|
||||||
$as_echo "#define WITH_RESTCONF_FCGI 1" >>confdefs.h
|
$as_echo "#define WITH_RESTCONF_FCGI 1" >>confdefs.h
|
||||||
# For c-code that cant use strings
|
# For c-code that cant use strings
|
||||||
elif test "x${with_restconf}" == xnative; then
|
elif test "x${with_restconf}" = xnative; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_init_ssl in -lssl" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_init_ssl in -lssl" >&5
|
||||||
$as_echo_n "checking for OPENSSL_init_ssl in -lssl... " >&6; }
|
$as_echo_n "checking for OPENSSL_init_ssl in -lssl... " >&6; }
|
||||||
if ${ac_cv_lib_ssl_OPENSSL_init_ssl_+:} false; then :
|
if ${ac_cv_lib_ssl_OPENSSL_init_ssl_+:} false; then :
|
||||||
|
|
@ -5397,7 +5397,7 @@ fi
|
||||||
|
|
||||||
$as_echo "#define WITH_RESTCONF_NATIVE 1" >>confdefs.h
|
$as_echo "#define WITH_RESTCONF_NATIVE 1" >>confdefs.h
|
||||||
# For c-code that cant use strings
|
# For c-code that cant use strings
|
||||||
elif test "x${with_restconf}" == xno; then
|
elif test "x${with_restconf}" = xno; then
|
||||||
# Cant get around "no" as an answer for --without-restconf that is reset here to undefined
|
# Cant get around "no" as an answer for --without-restconf that is reset here to undefined
|
||||||
with_restconf=
|
with_restconf=
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -260,11 +260,11 @@ AC_ARG_WITH([restconf],
|
||||||
[with_restconf=native])
|
[with_restconf=native])
|
||||||
AC_MSG_RESULT(restconf mode ${with_restconf})
|
AC_MSG_RESULT(restconf mode ${with_restconf})
|
||||||
# Actions for each specific package
|
# Actions for each specific package
|
||||||
if test "x${with_restconf}" == xfcgi; then
|
if test "x${with_restconf}" = xfcgi; then
|
||||||
# Lives in libfcgi-dev
|
# Lives in libfcgi-dev
|
||||||
AC_CHECK_LIB(fcgi, FCGX_Init,, AC_MSG_ERROR([libfcgi-dev missing]))
|
AC_CHECK_LIB(fcgi, FCGX_Init,, AC_MSG_ERROR([libfcgi-dev missing]))
|
||||||
AC_DEFINE(WITH_RESTCONF_FCGI, 1, [Use fcgi restconf mode]) # For c-code that cant use strings
|
AC_DEFINE(WITH_RESTCONF_FCGI, 1, [Use fcgi restconf mode]) # For c-code that cant use strings
|
||||||
elif test "x${with_restconf}" == xnative; then
|
elif test "x${with_restconf}" = xnative; then
|
||||||
AC_CHECK_LIB(ssl, OPENSSL_init_ssl ,, AC_MSG_ERROR([libssl missing]))
|
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]))
|
AC_CHECK_LIB(crypto, CRYPTO_new_ex_data, , AC_MSG_ERROR([libcrypto missing]))
|
||||||
# Check if http/1 enabled
|
# Check if http/1 enabled
|
||||||
|
|
@ -299,7 +299,7 @@ elif test "x${with_restconf}" == xnative; then
|
||||||
HAVE_LIBNGHTTP2=true
|
HAVE_LIBNGHTTP2=true
|
||||||
fi
|
fi
|
||||||
AC_DEFINE(WITH_RESTCONF_NATIVE, 1, [Use native restconf mode]) # For c-code that cant use strings
|
AC_DEFINE(WITH_RESTCONF_NATIVE, 1, [Use native restconf mode]) # For c-code that cant use strings
|
||||||
elif test "x${with_restconf}" == xno; then
|
elif test "x${with_restconf}" = xno; then
|
||||||
# Cant get around "no" as an answer for --without-restconf that is reset here to undefined
|
# Cant get around "no" as an answer for --without-restconf that is reset here to undefined
|
||||||
with_restconf=
|
with_restconf=
|
||||||
else
|
else
|
||||||
|
|
@ -385,7 +385,7 @@ AC_ARG_WITH(
|
||||||
[with_sigaction=yes]
|
[with_sigaction=yes]
|
||||||
)
|
)
|
||||||
|
|
||||||
if test "x${with_sigaction}" == "xyes"; then
|
if test "x${with_sigaction}" = "xyes"; then
|
||||||
AC_CHECK_FUNCS(sigaction)
|
AC_CHECK_FUNCS(sigaction)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue