changeset 31219:2d57c5098a68

Make it possible for the first build to be a VPATH build.
author Bruno Haible <bruno@clisp.org>
date Fri, 01 May 2009 23:36:40 +0200
parents b686168069fd
children 0040b1d2dca5
files ChangeLog lib/uninorm/composition.c modules/unicase/locale-language modules/unicase/special-casing modules/unictype/property-byname modules/unictype/scripts modules/uninorm/composition
diffstat 7 files changed, 36 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri May 01 18:01:52 2009 +0200
+++ b/ChangeLog	Fri May 01 23:36:40 2009 +0200
@@ -1,3 +1,28 @@
+2009-05-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+            Bruno Haible  <bruno@clisp.org>
+
+	Make it possible for the first build to be a VPATH build.
+	* modules/unicase/locale-language (configure.ac): Invoke
+	AC_PROG_MKDIR_P.
+	(Makefile.am): When invoking gperf, ensure the destination file's
+	subdirectory exists also in the build tree.
+	* modules/unicase/special-casing (configure.ac): Invoke
+	AC_PROG_MKDIR_P.
+	(Makefile.am): When invoking gperf, ensure the destination file's
+	subdirectory exists also in the build tree.
+	* modules/unictype/property-byname (configure.ac): Invoke
+	AC_PROG_MKDIR_P.
+	(Makefile.am): When invoking gperf, ensure the destination file's
+	subdirectory exists also in the build tree.
+	* modules/unictype/scripts (configure.ac): Invoke AC_PROG_MKDIR_P.
+	(Makefile.am): When invoking gperf, ensure the destination file's
+	subdirectory exists also in the build tree.
+	* modules/uninorm/composition (configure.ac): Invoke AC_PROG_MKDIR_P.
+	(Makefile.am): When invoking gperf, ensure the destination file's
+	subdirectory exists also in the build tree.
+	* lib/uninorm/composition.c: Include "uninorm/composition-table.h", not
+	"composition-table.h".
+
 2009-05-01  Bruno Haible  <bruno@clisp.org>
 
 	* lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
--- a/lib/uninorm/composition.c	Fri May 01 18:01:52 2009 +0200
+++ b/lib/uninorm/composition.c	Fri May 01 23:36:40 2009 +0200
@@ -24,7 +24,7 @@
 
 struct composition_rule { char codes[4]; unsigned short combined; };
 
-#include "composition-table.h"
+#include "uninorm/composition-table.h"
 
 ucs4_t
 uc_composition (ucs4_t uc1, ucs4_t uc2)
--- a/modules/unicase/locale-language	Fri May 01 18:01:52 2009 +0200
+++ b/modules/unicase/locale-language	Fri May 01 23:36:40 2009 +0200
@@ -11,11 +11,13 @@
 gperf
 
 configure.ac:
+AC_PROG_MKDIR_P
 
 Makefile.am:
 lib_SOURCES += unicase/locale-language.c
 
 unicase/locale-languages.h: $(srcdir)/unicase/locale-languages.gperf
+	@MKDIR_P@ unicase
 	$(GPERF) -m 10 $(srcdir)/unicase/locale-languages.gperf > $@-t
 	mv $@-t $@
 BUILT_SOURCES        += unicase/locale-languages.h
--- a/modules/unicase/special-casing	Fri May 01 18:01:52 2009 +0200
+++ b/modules/unicase/special-casing	Fri May 01 23:36:40 2009 +0200
@@ -10,11 +10,13 @@
 gperf
 
 configure.ac:
+AC_PROG_MKDIR_P
 
 Makefile.am:
 lib_SOURCES += unicase/special-casing.c
 
 unicase/special-casing-table.h: $(srcdir)/unicase/special-casing-table.gperf
+	@MKDIR_P@ unicase
 	$(GPERF) -m 10 $(srcdir)/unicase/special-casing-table.gperf > $@-t
 	mv $@-t $@
 BUILT_SOURCES        += unicase/special-casing-table.h
--- a/modules/unictype/property-byname	Fri May 01 18:01:52 2009 +0200
+++ b/modules/unictype/property-byname	Fri May 01 23:36:40 2009 +0200
@@ -89,11 +89,13 @@
 gperf
 
 configure.ac:
+AC_PROG_MKDIR_P
 
 Makefile.am:
 lib_SOURCES += unictype/pr_byname.c
 
 unictype/pr_byname.h: unictype/pr_byname.gperf
+	@MKDIR_P@ unictype
 	$(GPERF) -m 10 $(srcdir)/unictype/pr_byname.gperf > $@-t
 	mv $@-t $@
 BUILT_SOURCES        += unictype/pr_byname.h
--- a/modules/unictype/scripts	Fri May 01 18:01:52 2009 +0200
+++ b/modules/unictype/scripts	Fri May 01 23:36:40 2009 +0200
@@ -11,11 +11,13 @@
 gperf
 
 configure.ac:
+AC_PROG_MKDIR_P
 
 Makefile.am:
 lib_SOURCES += unictype/scripts.c
 
 unictype/scripts_byname.h: unictype/scripts_byname.gperf
+	@MKDIR_P@ unictype
 	$(GPERF) -m 10 $(srcdir)/unictype/scripts_byname.gperf > $@-t
 	mv $@-t $@
 BUILT_SOURCES        += unictype/scripts_byname.h
--- a/modules/uninorm/composition	Fri May 01 18:01:52 2009 +0200
+++ b/modules/uninorm/composition	Fri May 01 23:36:40 2009 +0200
@@ -10,11 +10,13 @@
 gperf
 
 configure.ac:
+AC_PROG_MKDIR_P
 
 Makefile.am:
 lib_SOURCES += uninorm/composition.c
 
 uninorm/composition-table.h: $(srcdir)/uninorm/composition-table.gperf
+	@MKDIR_P@ uninorm
 	$(GPERF) -m 1 $(srcdir)/uninorm/composition-table.gperf > $@-t
 	mv $@-t $@
 BUILT_SOURCES        += uninorm/composition-table.h