svnno****@sourc*****
svnno****@sourc*****
Fri Apr 13 16:48:34 JST 2007
Revision: 3179 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3179 Author: makeinu Date: 2007-04-13 16:48:34 +0900 (Fri, 13 Apr 2007) Log Message: ----------- Add OS_WIN32 and PLATFORM_WIN32 conditions. Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/configure.ac Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2007-04-13 06:54:31 UTC (rev 3178) +++ kazehakase/trunk/ChangeLog 2007-04-13 07:48:34 UTC (rev 3179) @@ -1,6 +1,8 @@ 2007-04-13 Takuro Ashie <ashie****@homa*****> - * configure.ac: Add AC_LIBTOOL_WIN32_DLL. + * configure.ac: + Add AC_LIBTOOL_WIN32_DLL. + Add OS_WIN32 and PLATFORM_WIN32 conditions. 2007-04-13 Hiroyuki Ikezoe <poinc****@ikezo*****> Modified: kazehakase/trunk/configure.ac =================================================================== --- kazehakase/trunk/configure.ac 2007-04-13 06:54:31 UTC (rev 3178) +++ kazehakase/trunk/configure.ac 2007-04-13 07:48:34 UTC (rev 3179) @@ -5,6 +5,31 @@ AM_INIT_AUTOMAKE(1.6) AM_CONFIG_HEADER(config.h) +AC_MSG_CHECKING([for native Win32]) +case "$host" in + *-*-mingw*) + os_win32=yes + ;; + *) + os_win32=no + ;; +esac +AC_MSG_RESULT([$os_win32]) + +AC_MSG_CHECKING([for some Win32 platform]) +case "$host" in + *-*-mingw*|*-*-cygwin*) + platform_win32=yes + ;; + *) + platform_win32=no + ;; +esac +AC_MSG_RESULT([$platform_win32]) + +AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes") +AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes") + AC_ENABLE_SHARED(yes) AC_ENABLE_STATIC(no)