[PATCH] configure: Fix the check for CAPI support.

Zebediah Figura zfigura at codeweavers.com
Fri Mar 4 18:22:18 CST 2022


AC_CHECK_LIB sets the variable to "no", not an empty string. Hence compilation
would fail if headers were present but libraries were missing.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index c668127187b..29e8058a24c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1646,7 +1646,7 @@ then
         AC_CHECK_LIB(capi20,capi20_register,[:],[CAPI20_LIBS=""],[$CAPI20_LIBS])
     fi])
 fi
-WINE_NOTICE_WITH(capi,[test "x$ac_cv_lib_capi20_capi20_register" = "x"],
+WINE_NOTICE_WITH(capi,[test "x$ac_cv_lib_capi20_capi20_register" != xyes],
                  [libcapi20 ${notice_platform}development files not found, ISDN won't be supported.],
                  [enable_capi2032])
 
-- 
2.35.1




More information about the wine-devel mailing list