diff --git a/src/cf/swig.m4 b/src/cf/swig.m4 index 1d1eae2f84..e88cf7fb75 100644 --- a/src/cf/swig.m4 +++ b/src/cf/swig.m4 @@ -18,7 +18,7 @@ LIBUAFS_BUILD_PERL= dnl Building with swig requires shared library support. If --disable-shared dnl was specified, turn off auto detection (with a notice). If --with-swig=yes dnl generate an error message -AS_IF([test "x$enable_shared" != "yes" && test "x$with_swig" != "xno"], +AS_IF([test "x$enable_shared" != "xyes" && test "x$with_swig" != "xno"], [AS_IF([test "x$with_swig" = "xyes"], [AC_MSG_ERROR([--with-swig is incompatible with --disable-shared])], [with_swig=no