* configure.in (mingw): checks if unicows.lib is available.

* win32/Makefile.sub (LIBS): links unicows.lib if available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-03-04 11:27:12 +00:00
Родитель 6e7d7bf5dd
Коммит 43ba7d0058
3 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

@ -1,7 +1,11 @@
Wed Mar 4 19:35:26 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
Wed Mar 4 20:27:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* 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.

Просмотреть файл

@ -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;;

Просмотреть файл

@ -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