* CMakeLists.txt [!BUILD_SHARED_LIBS && WIN32] (DONT_USE_USER32_DLL):
Define C macro; add comment.
* configure.ac [($enable_static=yes || $enable_shared=no)
&& $host=*-*-cygwin*|*-*-mingw*|*-*-msys*] (DONT_USE_USER32_DLL):
Likewise.
add_definitions("-DGC_DLL")
else()
add_definitions("-DGC_NOT_DLL")
+ if (WIN32)
+ # Do not require the clients to link with "user32" system library.
+ add_definitions("-DDONT_USE_USER32_DLL")
+ endif(WIN32)
endif()
add_library(gc ${SRC})
fi
fi
+# Do not require the clients to link with "user32" system library.
+if test "${enable_static}" = yes -o "${enable_shared}" = no; then
+ case "$host" in
+ *-*-cygwin* | *-*-mingw* | *-*-msys*)
+ AC_DEFINE([DONT_USE_USER32_DLL], 1,
+ [Do not use user32.dll import library (Win32).])
+ ;;
+ esac
+fi
+
# Configuration of machine-dependent code
#
AC_MSG_CHECKING(which machine-dependent code should be used)