+2005-08-03 Bruno Haible <bruno@clisp.org>
+
+ * Makefile.in: Add comments about VPATH.
+
2005-07-31 Bruno Haible <bruno@clisp.org>
* lock.h (gl_lock_initializer): New macro.
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = ..
+
+# The VPATH variables allows builds with $builddir != $srcdir, assuming a
+# 'make' program that supports VPATH (such as GNU make). This line is removed
+# by autoconf automatically when "$(srcdir)" = ".".
+# In this directory, the VPATH handling is particular:
+# 1. If INTL_LIBTOOL_SUFFIX_PREFIX is 'l' (indicating a build with libtool),
+# the .c -> .lo rules carefully use $(srcdir), so that VPATH can be omitted.
+# 2. If PACKAGE = gettext-tools, VPATH _must_ be omitted, because otherwise
+# 'make' does the wrong thing if GNU gettext was configured with
+# "./configure --srcdir=`pwd`", namely it gets confused by the .lo and .la
+# files it finds in srcdir = ../../gettext-runtime/intl.
VPATH = $(srcdir)
prefix = @prefix@
+2005-08-03 Bruno Haible <bruno@clisp.org>
+
+ * configure.ac (intl/Makefile): Remove the VPATH line.
+ Reported by Jason Keltz <jas@cs.yorku.ca>.
+
2005-07-26 Bruno Haible <bruno@clisp.org>
* configure.ac: Move the AM_GNU_GETTEXT invocation early, since it
AC_CONFIG_FILES([intl/Makefile:../gettext-runtime/intl/Makefile.in], [
# Change srcdir variable so that it points to ../gettext-runtime/intl.
sed -e 's|^srcdir =.*$|srcdir = $(top_srcdir)/../gettext-runtime/intl|' \
+ -e 's|^VPATH =.*$||' \
< intl/Makefile > intl/Makefile.tmp
mv intl/Makefile.tmp intl/Makefile
])