diff --git a/ChangeLog b/ChangeLog index f0dfbcfdf6..1caabab8fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,11 @@ -Wed Mar 4 19:35:26 2009 Nobuyoshi Nakada +Wed Mar 4 20:27:10 2009 Nobuyoshi Nakada + + * configure.in (mingw): checks if unicows.lib is available. * include/ruby/win32.h (WIN95): moved to config.h + * win32/Makefile.sub (LIBS): links unicows.lib if available. + * win32/Makefile.sub (config.h): defines WIN95 only if unicows.lib is available. diff --git a/configure.in b/configure.in index ab9f1c4e4b..1946ffcead 100644 --- a/configure.in +++ b/configure.in @@ -709,6 +709,8 @@ when(mingw*) LIBS="-lshell32 -lws2_32 $LIBS" ac_cv_func_fcntl=yes ac_cv_func_flock=yes AC_LIBOBJ([langinfo]) + AC_HAVE_LIBRARY(unicows, [LIBS="-lunicows $LIBS" + AC_DEFINE(WIN95)]) ;; when(os2-emx*) LIBS="-lm $LIBS" ac_cv_lib_dir_opendir=no;; diff --git a/win32/Makefile.sub b/win32/Makefile.sub index b79c351db9..2f264eeb92 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -178,6 +178,9 @@ EXTLIBS = !if !defined(LIBS) LIBS = oldnames.lib user32.lib advapi32.lib shell32.lib ws2_32.lib $(EXTLIBS) !endif +!if defined(HAVE_UNICOWS) +LIBS = unicows.lib $(LIBS) +!endif !if !defined(MISSING) MISSING = acosh.obj cbrt.obj crypt.obj erf.obj lgamma_r.obj strlcat.obj strlcpy.obj tgamma.obj win32.obj langinfo.obj !endif