From 51657ac870c1b49b625aa2216d36290c905f555b Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 8 Jun 2021 02:32:41 +0200 Subject: [PATCH] dynarray, scratch_buffer: Fix VPATH builds (regression from yesterday). * modules/dynarray (configure.ac): Invoke AC_PROG_MKDIR_P. (Makefile.am): Create malloc/ directory before creating malloc/dynarray.gl.h and malloc/dynarray-skeleton.gl.h. * modules/scratch_buffer (configure.ac): Invoke AC_PROG_MKDIR_P. (Makefile.am): Create malloc/ directory before creating malloc/scratch_buffer.gl.h. --- ChangeLog | 10 ++++++++++ modules/dynarray | 3 +++ modules/scratch_buffer | 2 ++ 3 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6ca3a6c1ae..661e289b5f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2021-06-07 Bruno Haible + + dynarray, scratch_buffer: Fix VPATH builds (regression from yesterday). + * modules/dynarray (configure.ac): Invoke AC_PROG_MKDIR_P. + (Makefile.am): Create malloc/ directory before creating + malloc/dynarray.gl.h and malloc/dynarray-skeleton.gl.h. + * modules/scratch_buffer (configure.ac): Invoke AC_PROG_MKDIR_P. + (Makefile.am): Create malloc/ directory before creating + malloc/scratch_buffer.gl.h. + 2021-06-07 Bruno Haible ptsname_r: Add support for DragonFly BSD 6.0. diff --git a/modules/dynarray b/modules/dynarray index 7fd444f522..fa608ded0e 100644 --- a/modules/dynarray +++ b/modules/dynarray @@ -20,11 +20,13 @@ stddef intprops configure.ac: +AC_PROG_MKDIR_P Makefile.am: BUILT_SOURCES += malloc/dynarray.gl.h malloc/dynarray-skeleton.gl.h malloc/dynarray.gl.h: malloc/dynarray.h + $(AM_V_at)$(MKDIR_P) malloc $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e '/libc_hidden_proto/d' < $(srcdir)/malloc/dynarray.h; \ @@ -33,6 +35,7 @@ malloc/dynarray.gl.h: malloc/dynarray.h MOSTLYCLEANFILES += malloc/dynarray.gl.h malloc/dynarray.gl.h-t malloc/dynarray-skeleton.gl.h: malloc/dynarray-skeleton.c + $(AM_V_at)$(MKDIR_P) malloc $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|||g' \ diff --git a/modules/scratch_buffer b/modules/scratch_buffer index ede77a9924..184f0b6bf1 100644 --- a/modules/scratch_buffer +++ b/modules/scratch_buffer @@ -20,11 +20,13 @@ realloc-posix free-posix configure.ac: +AC_PROG_MKDIR_P Makefile.am: BUILT_SOURCES += malloc/scratch_buffer.gl.h malloc/scratch_buffer.gl.h: malloc/scratch_buffer.h + $(AM_V_at)$(MKDIR_P) malloc $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|__always_inline|inline _GL_ATTRIBUTE_ALWAYS_INLINE|g' \ -- 2.39.5