+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
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
+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
-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@
-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; \
+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.
-# 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,
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,
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([
+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.
# Cygwin support.
-EXTRA_DIST += cygwin/export.h
+EXTRA_DIST += woe32dll/export.h
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,
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.
#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
+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.
-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
+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.
-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
# 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
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