]> granicus.if.org Git - curl/commitdiff
winbuild/Makefile.vc: Fix check on SSL, MBEDTLS, WINSSL exclusivity
authorJan-E <github@ehrhardt.nl>
Thu, 19 May 2016 20:35:50 +0000 (22:35 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 20 May 2016 14:41:59 +0000 (16:41 +0200)
Closes #818

winbuild/Makefile.vc

index 9e1eb07d0a504f13312e079808e06056834ac756..bd5c8e0323f4f876fb4726db84cca025b004f547 100644 (file)
@@ -38,10 +38,6 @@ CFGSET=true
 
 !ENDIF
 
-!IF DEFINED(WITH_SSL) && DEFINED(ENABLE_WINSSL) || DEFINED(WITH_SSL) && DEFINED(WITH_MBEDTLS) || DEFINED(WITH_MBEDTLS) && DEFINED(ENABLE_WINSSL)
-!ERROR WITH_SSL, WITH_MBEDTLS and ENABLE_WINSSL are mutual exclusive options.
-!ENDIF
-
 !INCLUDE "../lib/Makefile.inc"
 LIBCURL_OBJS=$(CSOURCES:.c=.obj)
 
@@ -118,6 +114,12 @@ USE_MBEDTLS = true
 MBEDTLS     = $(WITH_MBEDTLS)
 !ENDIF
 
+!IF ( "$(USE_SSL)"=="true" && "$(USE_WINSSL)"=="true" ) \
+ || ( "$(USE_SSL)"=="true" && "$(USE_MBEDTLS)"=="true" ) \
+ || ( "$(USE_MBEDTLS)"=="true" && "$(USE_WINSSL)"=="true" )
+!ERROR SSL, MBEDTLS and WINSSL are mutual exclusive options.
+!ENDIF
+
 !IF "$(WITH_CARES)"=="dll"
 USE_CARES = true
 CARES     = dll