aboutsummaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--acinclude.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 352fbdd..57a1c98 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -28,6 +28,7 @@
28# - MINGW_AC_MSVC_IMPORT_LIBS: 28# - MINGW_AC_MSVC_IMPORT_LIBS:
29# - Renamed the option to --enable-msvc for compatibility with the old 29# - Renamed the option to --enable-msvc for compatibility with the old
30# configure script. 30# configure script.
31# - Error if shared lib is not enabled.
31# - Cosmetics: 32# - Cosmetics:
32# - Use '' instead of `' 33# - Use '' instead of `'
33 34
@@ -48,7 +49,10 @@ AC_DEFUN([MINGW_AC_MSVC_IMPORT_LIBS],
48 [enable building of MSVC compatible import libraries]),[], 49 [enable building of MSVC compatible import libraries]),[],
49 [enable_msvc=no]) 50 [enable_msvc=no])
50 AC_CHECK_TOOL([MSVCLIB], [lib]) 51 AC_CHECK_TOOL([MSVCLIB], [lib])
51 if test "x$enable_msvc" = xyes && test -n "$MSVCLIB" 52
53 if test "x$enable_msvc" = xyes && test "x$enable_shared" != xyes
54 then AC_MSG_ERROR([MSVC import lib requested but shared lib not enabled.])
55 elif test "x$enable_msvc" = xyes && test -n "$MSVCLIB"
52 then $1="$2" 56 then $1="$2"
53 elif test "x$enable_msvc" = xyes 57 elif test "x$enable_msvc" = xyes
54 then AC_MSG_WARN([no MSVC compatible 'lib' program found in \$PATH 58 then AC_MSG_WARN([no MSVC compatible 'lib' program found in \$PATH