comparison auto/lib/md5/conf @ 6397:78f8ac479735

Win32: simplified and improved handling of MSVC versions. Now we always set NGX_CC_NAME to "msvc", and additionally test compiler version as reported by "cl" in auto/cc/msvc (the same version is also available via the _MSC_VER define). In particular, this approach allows to properly check for C99 variadic macros support, which previously was not used with MSVC versions not explicitly recognized. Now unneeded wildcards in NGX_CC_NAME tests for msvc removed accordingly, as well as unused wildcards for owc and icc.
author Maxim Dounin <mdounin@mdounin.ru>
date Sat, 13 Feb 2016 06:47:34 +0300
parents b0a616778038
children
comparison
equal deleted inserted replaced
6396:dcfe355dfda4 6397:78f8ac479735
18 have=NGX_HAVE_MD5 . auto/have 18 have=NGX_HAVE_MD5 . auto/have
19 CORE_INCS="$CORE_INCS $MD5" 19 CORE_INCS="$CORE_INCS $MD5"
20 20
21 case "$NGX_CC_NAME" in 21 case "$NGX_CC_NAME" in
22 22
23 msvc* | owc* | bcc) 23 msvc | owc | bcc)
24 LINK_DEPS="$LINK_DEPS $MD5/md5.lib" 24 LINK_DEPS="$LINK_DEPS $MD5/md5.lib"
25 CORE_LIBS="$CORE_LIBS $MD5/md5.lib" 25 CORE_LIBS="$CORE_LIBS $MD5/md5.lib"
26 ;; 26 ;;
27 27
28 icc*) 28 icc)
29 LINK_DEPS="$LINK_DEPS $MD5/libmd5.a" 29 LINK_DEPS="$LINK_DEPS $MD5/libmd5.a"
30 30
31 # to allow -ipo optimization we link with the *.o but not library 31 # to allow -ipo optimization we link with the *.o but not library
32 CORE_LIBS="$CORE_LIBS $MD5/md5_dgst.o" 32 CORE_LIBS="$CORE_LIBS $MD5/md5_dgst.o"
33 33