configure: check for SEC_I_CONTEXT_EXPIRED before enabling SChannel
authorHendrik Leppkes <h.leppkes@gmail.com>
Wed, 16 Mar 2016 14:23:28 +0000 (15:23 +0100)
committerHendrik Leppkes <h.leppkes@gmail.com>
Wed, 16 Mar 2016 14:32:50 +0000 (15:32 +0100)
Fixes build on mingw32, which lacks this constant.

configure

index 2148f11..475c087 100755 (executable)
--- a/configure
+++ b/configure
@@ -5659,7 +5659,7 @@ disabled securetransport || { check_func SecIdentityCreate "-Wl,-framework,CoreF
     enable securetransport; }
 
 disabled schannel || { check_func_headers "windows.h Security.h" InitializeSecurityContext -DSECURITY_WIN32 -lSecur32 &&
-                       enable schannel && add_extralibs -lSecur32; }
+                       check_cpp_condition winerror.h "defined(SEC_I_CONTEXT_EXPIRED)" && enable schannel && add_extralibs -lSecur32; }
 
 makeinfo --version > /dev/null 2>&1 && enable makeinfo  || disable makeinfo
 enabled makeinfo \