diff --git a/configure b/configure index 0d0694cf..310aa9dd 100755 --- a/configure +++ b/configure @@ -5143,7 +5143,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: restconf mode ${with_restconf}" >&5 $as_echo "restconf mode ${with_restconf}" >&6; } # Actions for each specific package -if test "x${with_restconf}" == xfcgi; then +if test "x${with_restconf}" = xfcgi; then # Lives in libfcgi-dev { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCGX_Init in -lfcgi" >&5 $as_echo_n "checking for FCGX_Init in -lfcgi... " >&6; } @@ -5195,7 +5195,7 @@ fi $as_echo "#define WITH_RESTCONF_FCGI 1" >>confdefs.h # 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_n "checking for OPENSSL_init_ssl in -lssl... " >&6; } if ${ac_cv_lib_ssl_OPENSSL_init_ssl_+:} false; then : @@ -5397,7 +5397,7 @@ fi $as_echo "#define WITH_RESTCONF_NATIVE 1" >>confdefs.h # 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 with_restconf= else diff --git a/configure.ac b/configure.ac index 337e378c..35fa1302 100644 --- a/configure.ac +++ b/configure.ac @@ -260,11 +260,11 @@ AC_ARG_WITH([restconf], [with_restconf=native]) AC_MSG_RESULT(restconf mode ${with_restconf}) # Actions for each specific package -if test "x${with_restconf}" == xfcgi; then +if test "x${with_restconf}" = xfcgi; then # Lives in libfcgi-dev 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 -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(crypto, CRYPTO_new_ex_data, , AC_MSG_ERROR([libcrypto missing])) # Check if http/1 enabled @@ -299,7 +299,7 @@ elif test "x${with_restconf}" == xnative; then HAVE_LIBNGHTTP2=true fi 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 with_restconf= else @@ -385,7 +385,7 @@ AC_ARG_WITH( [with_sigaction=yes] ) -if test "x${with_sigaction}" == "xyes"; then +if test "x${with_sigaction}" = "xyes"; then AC_CHECK_FUNCS(sigaction) fi