+2003-04-05 Bruno Haible <bruno@clisp.org>
+
+ * config/install-reloc: Don't define NO_LIBRARIES.
+
2003-04-01 Bruno Haible <bruno@clisp.org>
* README.mingw: New file.
# Compile wrapper.
installdir=`echo "$destprog" | sed -e 's,/[^/]*$,,'`
-func_verbose $compile_command -I"$builddir" -I"$srcdir" -I"$config_h_dir" -DHAVE_CONFIG_H -DNO_LIBRARIES -DNO_XMALLOC -D"INSTALLPREFIX=\"$prefix\"" -D"INSTALLDIR=\"$installdir\"" -D"LIBPATHVAR=\"$library_path_var\"" -D"LIBDIRS=$libdirs" "$srcdir"/relocwrapper.c "$srcdir"/progname.c "$srcdir"/xreadlink.c "$srcdir"/canonicalize.c "$srcdir"/relocatable.c "$srcdir"/setenv.c "$srcdir"/strerror.c -o $destprog.wrapper || exit $?
+func_verbose $compile_command -I"$builddir" -I"$srcdir" -I"$config_h_dir" -DHAVE_CONFIG_H -DNO_XMALLOC -D"INSTALLPREFIX=\"$prefix\"" -D"INSTALLDIR=\"$installdir\"" -D"LIBPATHVAR=\"$library_path_var\"" -D"LIBDIRS=$libdirs" "$srcdir"/relocwrapper.c "$srcdir"/progname.c "$srcdir"/xreadlink.c "$srcdir"/canonicalize.c "$srcdir"/relocatable.c "$srcdir"/setenv.c "$srcdir"/strerror.c -o $destprog.wrapper || exit $?
# Rename $destprog.wrapper -> $destprog -> $destprog.bin.
ln -f $destprog $destprog.bin || exit 1
+2003-04-05 Bruno Haible <bruno@clisp.org>
+
+ * relocatable.c: Rely on DEPENDS_ON_LIBCHARSET, DEPENDS_ON_LIBICONV,
+ DEPENDS_ON_LIBINTL, not on NO_LIBRARIES.
+ * Makefile.in (DEFS): Define DEPENDS_ON_LIBICONV, for relocatable.c.
+ * Makefile.msvc (CFLAGS): Also define DEPENDS_ON_LIBICONV.
+
2003-04-05 Bruno Haible <bruno@clisp.org>
* relocatable.c (_GNU_SOURCE): Define, to ensure getline() gets
-DLIBDIR=\"$(libdir)\" -DIN_LIBINTL \
-DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \
-Dset_relocation_prefix=libintl_set_relocation_prefix \
--Drelocate=libintl_relocate @DEFS@
+-Drelocate=libintl_relocate \
+-DDEPENDS_ON_LIBICONV=1 @DEFS@
CPPFLAGS = @CPPFLAGS@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
# -DBUILDING_LIBINTL: Change expansion of LIBINTL_DLL_EXPORTED macro.
# -DBUILDING_DLL: Change expansion of RELOCATABLE_DLL_EXPORTED macro.
-CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) -DHAVE_CONFIG_H -DBUILDING_LIBINTL -DBUILDING_DLL -DLOCALEDIR=\"$(IIlocaledir)\" -DLOCALE_ALIAS_PATH=\"$(IIaliaspath)\" -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(IIbindir)\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate
+CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) -DHAVE_CONFIG_H -DBUILDING_LIBINTL -DBUILDING_DLL -DLOCALEDIR=\"$(IIlocaledir)\" -DLOCALE_ALIAS_PATH=\"$(IIaliaspath)\" -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(IIbindir)\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1
INCLUDES = -I. -I.. -I$(includedir)
# include "xmalloc.h"
#endif
-#ifndef NO_LIBRARIES
-# if !defined IN_LIBICONV && HAVE_ICONV
-# include <iconv.h>
-# endif
-# if !defined IN_LIBINTL && !defined IN_LIBICONV && ENABLE_NLS
-# include <libintl.h>
-# endif
+#if DEPENDS_ON_LIBCHARSET
+# include <libcharset.h>
+#endif
+#if DEPENDS_ON_LIBICONV && HAVE_ICONV
+# include <iconv.h>
+#endif
+#if DEPENDS_ON_LIBINTL && ENABLE_NLS
+# include <libintl.h>
#endif
/* Faked cheap 'bool'. */
{
set_this_relocation_prefix (orig_prefix_arg, curr_prefix_arg);
-#ifndef NO_LIBRARIES
/* Now notify all dependent libraries. */
-# if !defined IN_LIBICONV && HAVE_ICONV && _LIBICONV_VERSION >= 0x0109
+#if DEPENDS_ON_LIBCHARSET
+ libcharset_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg);
+#endif
+#if DEPENDS_ON_LIBICONV && HAVE_ICONV && _LIBICONV_VERSION >= 0x0109
libiconv_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg);
-# endif
-# if !defined IN_LIBINTL && !defined IN_LIBICONV && ENABLE_NLS && defined libintl_set_relocation_prefix
+#endif
+#if DEPENDS_ON_LIBINTL && ENABLE_NLS && defined libintl_set_relocation_prefix
libintl_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg);
-# endif
#endif
}
+2003-04-05 Bruno Haible <bruno@clisp.org>
+
+ * Makefile.am (DEFS): Define DEPENDS_ON_LIBINTL, for relocatable.c.
+ * Makefile.msvc (CFLAGS): Also define DEPENDS_ON_LIBINTL.
+
2003-03-30 Bruno Haible <bruno@clisp.org>
* Makefile.vms: New file.
-I../intl -I$(srcdir)/../intl \
-I../../gettext-tools/lib -I$(srcdir)/../../gettext-tools/lib
+DEFS = -DDEPENDS_ON_LIBINTL=1 @DEFS@
+
# List of files to be distributed.
EXTRA_DIST += $(LIBADD_SOURCE)
OPTIMFLAGS = -D_NDEBUG -O1
!endif
-CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) -DHAVE_CONFIG_H
+CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) -DHAVE_CONFIG_H -DDEPENDS_ON_LIBINTL=1
INCLUDES = -I. -I.. -I..\intl -I..\..\gettext-tools\lib -I..\..\gettext-tools\windows -I$(includedir)
+2003-04-05 Bruno Haible <bruno@clisp.org>
+
+ * relocatable.c: Rely on DEPENDS_ON_LIBCHARSET, DEPENDS_ON_LIBICONV,
+ DEPENDS_ON_LIBINTL, not on NO_LIBRARIES.
+ * Makefile.am (DEFS): Define DEPENDS_ON_LIBINTL and DEPENDS_ON_LIBCONV,
+ for relocatable.c.
+ * Makefile.msvc (CFLAGS): Also define DEPENDS_ON_LIBINTL and
+ DEPENDS_ON_LIBCONV.
+
2003-04-05 Bruno Haible <bruno@clisp.org>
* relocatable.c (_GNU_SOURCE): Define, to ensure getline() gets
gen-lbrkprop.c 3level.h Combining.txt \
ChangeLog.0
-DEFS = -DEXEEXT=\"$(EXEEXT)\" @DEFS@
INCLUDES = -I. -I$(srcdir) -I.. -I../intl -I$(top_srcdir)/intl
+DEFS = -DEXEEXT=\"$(EXEEXT)\" -DDEPENDS_ON_LIBINTL=1 -DDEPENDS_ON_LIBCONV=1 @DEFS@
+
DISTCLEANFILES += fnmatch.h
OPTIMFLAGS = -D_NDEBUG -O1
!endif
-CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) -DHAVE_CONFIG_H -DEXEEXT=\".exe\"
+CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) -DHAVE_CONFIG_H -DEXEEXT=\".exe\" -DDEPENDS_ON_LIBINTL=1 -DDEPENDS_ON_LIBCONV=1
INCLUDES = -I. -I.. -I..\intl -I..\windows -I$(includedir)
# include "xmalloc.h"
#endif
-#ifndef NO_LIBRARIES
-# if !defined IN_LIBICONV && HAVE_ICONV
-# include <iconv.h>
-# endif
-# if !defined IN_LIBINTL && !defined IN_LIBICONV && ENABLE_NLS
-# include <libintl.h>
-# endif
+#if DEPENDS_ON_LIBCHARSET
+# include <libcharset.h>
+#endif
+#if DEPENDS_ON_LIBICONV && HAVE_ICONV
+# include <iconv.h>
+#endif
+#if DEPENDS_ON_LIBINTL && ENABLE_NLS
+# include <libintl.h>
#endif
/* Faked cheap 'bool'. */
{
set_this_relocation_prefix (orig_prefix_arg, curr_prefix_arg);
-#ifndef NO_LIBRARIES
/* Now notify all dependent libraries. */
-# if !defined IN_LIBICONV && HAVE_ICONV && _LIBICONV_VERSION >= 0x0109
+#if DEPENDS_ON_LIBCHARSET
+ libcharset_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg);
+#endif
+#if DEPENDS_ON_LIBICONV && HAVE_ICONV && _LIBICONV_VERSION >= 0x0109
libiconv_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg);
-# endif
-# if !defined IN_LIBINTL && !defined IN_LIBICONV && ENABLE_NLS && defined libintl_set_relocation_prefix
+#endif
+#if DEPENDS_ON_LIBINTL && ENABLE_NLS && defined libintl_set_relocation_prefix
libintl_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg);
-# endif
#endif
}