]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Treat mingw like Cygwin.
authorBruno Haible <bruno@clisp.org>
Mon, 15 May 2006 20:33:22 +0000 (20:33 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:13:20 +0000 (12:13 +0200)
13 files changed:
gettext-runtime/ChangeLog
gettext-runtime/configure.ac
gettext-runtime/intl/ChangeLog
gettext-runtime/intl/Makefile.in
gettext-runtime/m4/ChangeLog
gettext-runtime/m4/gettext.m4
gettext-tools/ChangeLog
gettext-tools/Makefile.am
gettext-tools/configure.ac
gettext-tools/lib/ChangeLog
gettext-tools/lib/Makefile.am
gettext-tools/src/ChangeLog
gettext-tools/src/Makefile.am

index 15f351c82368f8abe44cdf8cdaa8bc118772f14a..ba0a2d8329b5ee9c25d9c9b45f33d6da966bb5dc 100644 (file)
@@ -1,3 +1,8 @@
+2006-05-15  Bruno Haible  <bruno@clisp.org>
+
+       * configure.ac (DLL_VARIABLE): Define as empty on mingw, like on
+       Cygwin.
+
 2006-05-01  Bruno Haible  <bruno@clisp.org>
 
        * configure.ac: Pass a source-version and a target-version to
index f71faf89a09abe01ec0735c93070d9fcc4814809..630c382bfa0c26a33223d80131f3f34a0da66a1f 100644 (file)
@@ -107,7 +107,7 @@ gl_CANONICALIZE
 dnl Put some default definitions into config.h.
 AH_BOTTOM([
 /* On Windows, variables that may be in a DLL must be marked specially.  */
-#if (defined _MSC_VER && defined _DLL) || (defined __MINGW32__ && defined DLL_EXPORT)
+#if (defined _MSC_VER && defined _DLL)
 # define DLL_VARIABLE __declspec (dllimport)
 #else
 # define DLL_VARIABLE
index 262075e0140b6c68ec2e8c9739e644be62358747..452c29a65e21d7b5d8305c473a5be12fd0d50f6d 100644 (file)
@@ -1,3 +1,7 @@
+2006-05-15  Bruno Haible  <bruno@clisp.org>
+
+       * Makefile.in (LDFLAGS, libgnuintl.h): Treat mingw like Cygwin.
+
 2006-05-15  Bruno Haible  <bruno@clisp.org>
 
        * libgnuintl.h.in: Move the _INTL_MAY_RETURN_STRING_ARG annotations
index 520db2bb8ebd36ec7aaa084eb6c1cb431d323ca6..dc18b331595f2daeb211e7d53b13bf7a1f3ae4a3 100644 (file)
@@ -72,7 +72,7 @@ DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \
 -DDEPENDS_ON_LIBICONV=1 @DEFS@
 CPPFLAGS = @CPPFLAGS@
 CFLAGS = @CFLAGS@ @CFLAG_VISIBILITY@
-LDFLAGS = @LDFLAGS@ $(LDFLAGS_@CYGWINDLL@)
+LDFLAGS = @LDFLAGS@ $(LDFLAGS_@WOE32DLL@)
 LDFLAGS_yes = -Wl,--export-all-symbols
 LDFLAGS_no =
 LIBS = @LIBS@
@@ -273,7 +273,7 @@ libgnuintl.h: $(srcdir)/libgnuintl.h.in
            -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \
            -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \
          < $(srcdir)/libgnuintl.h.in \
-       | if test '@CYGWINDLL@' = yes; then \
+       | if test '@WOE32DLL@' = yes; then \
            sed -e 's/extern \([^()]*\);/extern __declspec (dllimport) \1;/'; \
          else \
            cat; \
index a374de098c348352684907d48704e2925f1f459e..e8ea2349f666b92d9a84014fb18f5d7c4e2f370f 100644 (file)
@@ -1,3 +1,8 @@
+2006-05-15  Bruno Haible  <bruno@clisp.org>
+
+       * gettext.m4 (AM_INTL_SUBDIR): Set variable WOE32DLL instead of
+       CYGWINDLL.
+
 2006-05-11  Bruno Haible  <bruno@clisp.org>
 
        * gettext.m4 (AM_INTL_SUBDIR): Set variable CYGWINDLL.
index 3d8800a8c8619d67c96d1b5c66065b34a0d59070..67e1b3ae46654393bc903f02aa848672d23f0c72 100644 (file)
@@ -1,4 +1,4 @@
-# gettext.m4 serial 48 (gettext-0.15)
+# gettext.m4 serial 49 (gettext-0.15)
 dnl Copyright (C) 1995-2006 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -419,7 +419,7 @@ AC_DEFUN([AM_INTL_SUBDIR],
   AM_LANGINFO_CODESET
   gt_LC_MESSAGES
 
-  dnl Compilation on Cygwin needs special Makefile rules, because
+  dnl Compilation on mingw and Cygwin needs special Makefile rules, because
   dnl 1. when we install a shared library, we must arrange to export
   dnl    auxiliary pointer variables for every exported variable,
   dnl 2. when we install a shared library and a static library simultaneously,
@@ -428,14 +428,14 @@ AC_DEFUN([AM_INTL_SUBDIR],
   dnl    exported variables _also_ in the static library.
   if test "$enable_shared" = yes; then
     case "$host_os" in
-      cygwin*) is_cygwindll=yes ;;
-      *) is_cygwindll=no ;;
+      cygwin*) is_woe32dll=yes ;;
+      *) is_woe32dll=no ;;
     esac
   else
-    is_cygwindll=no
+    is_woe32dll=no
   fi
-  CYGWINDLL=$is_cygwindll
-  AC_SUBST([CYGWINDLL])
+  WOE32DLL=$is_woe32dll
+  AC_SUBST([WOE32DLL])
 
   dnl Rename some macros and functions used for locking.
   AH_BOTTOM([
index 088a54c26c10cafc71737391453af1261c0ae707..6a1e0461c097166e5993f03c169c4ef5a8f9c1ea 100644 (file)
@@ -1,3 +1,14 @@
+2006-05-15  Bruno Haible  <bruno@clisp.org>
+
+       * woe32dll/export.h: Renamed from cygwin/export.h.
+       * woe32dll/gettextlib-exports: Renamed from cygwin/gettextlib-exports.h.
+       * woe32dll/gettextsrc-exports: Renamed from cygwin/gettextsrc-exports.h.
+       * woe32dll/gettextpo-exports: Renamed from cygwin/gettextpo-exports.h.
+       * configure.ac (WOE32DLL): Renamed from CYGWINDLL.
+       (DLL_VARIABLE): Define as nonempty on mingw if and only if
+       --enable-shared was specified.
+       * Makefile.am (EXTRA_DIST): Update.
+
 2006-05-11  Bruno Haible  <bruno@clisp.org>
 
        * woe32dll: Directory renamed from mingw.
index e29e7ebc77fc64458daef6201ec580033f2092ed..5b08fe4985ec3baea6e373ce8e38dcb497620466 100644 (file)
@@ -241,4 +241,4 @@ EXTRA_DIST += README.woe32 Makefile.msvc config.h.msvc windows/alloca.h windows/
 
 # Cygwin support.
 
-EXTRA_DIST += cygwin/export.h
+EXTRA_DIST += woe32dll/export.h
index d10cb43b0d52283bc77e461220a32a77fc5ca216..5900f38bfa04d4d8e3b7b873400f1fd387014059 100644 (file)
@@ -204,19 +204,7 @@ AC_DEFINE_UNQUOTED([ENDIANNESS], [$endianness],
 
 gt_PREREQ_HOSTNAME
 
-dnl Compilation on mingw and Cygwin needs special Makefile rules, because of
-dnl variables being exported from or imported into shared libraries.
-if test "$enable_shared" = yes; then
-  case "$host_os" in
-    mingw* | cygwin*) is_woe32dll=yes ;;
-    *) is_woe32dll=no ;;
-  esac
-else
-  is_woe32dll=no
-fi
-AM_CONDITIONAL([WOE32DLL], [test $is_woe32dll = yes])
-
-dnl Compilation on Cygwin needs special Makefile rules, because
+dnl Compilation on mingw and Cygwin needs special Makefile rules, because
 dnl 1. when we install a shared library, we must arrange to export
 dnl    auxiliary pointer variables for every exported variable,
 dnl 2. when we install a shared library and a static library simultaneously,
@@ -225,15 +213,16 @@ dnl    must arrange to define the auxiliary pointer variables for the
 dnl    exported variables _also_ in the static library.
 if test "$enable_shared" = yes; then
   case "$host_os" in
-    cygwin*) is_cygwindll=yes ;;
-    *) is_cygwindll=no ;;
+    mingw* | cygwin*) is_woe32dll=yes ;;
+    *) is_woe32dll=no ;;
   esac
 else
-  is_cygwindll=no
+  is_woe32dll=no
 fi
-AM_CONDITIONAL([CYGWINDLL], [test $is_cygwindll = yes])
-if test $is_cygwindll = yes; then
-  AC_DEFINE([CYGWINDLL], 1, [Define when --enable-shared is used on Cygwin.])
+AM_CONDITIONAL([WOE32DLL], [test $is_woe32dll = yes])
+if test $is_woe32dll = yes; then
+  AC_DEFINE([WOE32DLL], 1,
+    [Define when --enable-shared is used on mingw or Cygwin.])
 fi
 
 dnl Put some default definitions into config.h.
@@ -267,7 +256,7 @@ AH_BOTTOM([
 #define PAGE_WIDTH 79
 
 /* On Windows, variables that may be in a DLL must be marked specially.  */
-#if (defined _MSC_VER && defined _DLL) || (defined __MINGW32__ && defined DLL_EXPORT) || defined CYGWINDLL
+#if (defined _MSC_VER && defined _DLL) || defined WOE32DLL
 # define DLL_VARIABLE __declspec (dllimport)
 #else
 # define DLL_VARIABLE
index f8489f46b46ac5d8865d141c1775ce8d78edc8d0..ea605620f313d152486d0770970faadbc38a991b 100644 (file)
@@ -1,3 +1,7 @@
+2006-05-15  Bruno Haible  <bruno@clisp.org>
+
+       * Makefile.am: Test flag WOE32DLL instead of CYGWINDLL.
+
 2006-04-30  Bruno Haible  <bruno@clisp.org>
 
        * progreloc.c: Include <mach-o/dyld.h> if available.
index 424fa926320150c18a6cd22381c73b52470be501..5b725f479351e41066031834f538ac9d5cea9a54 100644 (file)
@@ -128,9 +128,9 @@ libgettextlib_la_LDFLAGS = \
   -release @VERSION@ \
   @LTLIBINTL@ @LTLIBICONV@ -lc @LTNOUNDEF@
 
-# Tell the Cygwin linker which symbols to export.
-if CYGWINDLL
-libgettextlib_la_SOURCES += ../cygwin/gettextlib-exports.c
+# Tell the mingw or Cygwin linker which symbols to export.
+if WOE32DLL
+libgettextlib_la_SOURCES += ../woe32dll/gettextlib-exports.c
 libgettextlib_la_LDFLAGS += -Wl,--export-all-symbols
 endif
 
index 3126e2a4b41517aa46bf04c606182fa10d0e9fa9..a9cf4bc3fc033366e6d1197946dc5ae9a0ce0596 100644 (file)
@@ -1,3 +1,7 @@
+2006-05-15  Bruno Haible  <bruno@clisp.org>
+
+       * Makefile.am: Test flag WOE32DLL instead of CYGWINDLL.
+
 2006-05-14  Bruno Haible  <bruno@clisp.org>
 
        * x-php.c (x_php_lex): Fix handling of here documents.
index 9d7d1121ef9028da4cec171cd57275cad73200d4..b0189fcebd4a3cf1b1043c4d4c8fd48ae89efb86 100644 (file)
@@ -223,9 +223,9 @@ libgettextsrc_la_LDFLAGS = \
   -release @VERSION@ \
   ../lib/libgettextlib.la @LTLIBINTL@ @LTLIBICONV@ -lc @LTNOUNDEF@
 
-# Tell the Cygwin linker which symbols to export.
-if CYGWINDLL
-libgettextsrc_la_SOURCES += ../cygwin/gettextsrc-exports.c
+# Tell the mingw or Cygwin linker which symbols to export.
+if WOE32DLL
+libgettextsrc_la_SOURCES += ../woe32dll/gettextsrc-exports.c
 libgettextsrc_la_LDFLAGS += -Wl,--export-all-symbols
 endif
 
@@ -247,9 +247,9 @@ libgettextpo_la_LDFLAGS = \
 # Build order. Only needed for "make -j[N]".
 libgettextpo_la_DEPENDENCIES = libgettextsrc.la
 
-# Tell the Cygwin linker which symbols to export.
-if CYGWINDLL
-libgettextpo_la_SOURCES += ../cygwin/gettextpo-exports.c
+# Tell the mingw or Cygwin linker which symbols to export.
+if WOE32DLL
+libgettextpo_la_SOURCES += ../woe32dll/gettextpo-exports.c
 libgettextpo_la_LDFLAGS += -Wl,--export-all-symbols
 endif
 
@@ -330,7 +330,7 @@ po-gram-gen2.h: po-gram-gen.h
 EXTRA_DIST += gettext-po.h.in
 BUILT_SOURCES += gettext-po.h
 gettext-po.h: gettext-po.h.in
-if CYGWINDLL
+if WOE32DLL
        sed -e 's/extern \([^()]*\);/extern __declspec (dllimport) \1;/' $(srcdir)/gettext-po.h.in > gettext-po.h-tmp
 else
        cp $(srcdir)/gettext-po.h.in gettext-po.h-tmp