cf: Fix typo in test for enable-shared/with-swig

The commit cf: Disable swig if shared libraries are disabled (0e84b7405)
contains a typo in a test: "x$enable_shared" != "yes".  This causes
configure to exit due to incorrectly testing --enable-shared.

Update swig.m4 to correct the typo.

Change-Id: I0d769ec41e2e7896f2232965b5eaa19734033c83
Reviewed-on: https://gerrit.openafs.org/14628
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: Benjamin Kaduk <kaduk@mit.edu>
This commit is contained in:
Cheyenne Wills 2021-06-01 12:17:01 -06:00 committed by Benjamin Kaduk
parent ed15b0d5b3
commit a73d337a55

View File

@ -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