]> Savannah Git Hosting - gnulib.git/commitdiff
Fix creation of build directories with non-recursive-gnulib-prefix-hack.
authorBruno Haible <bruno@clisp.org>
Wed, 15 Dec 2021 18:18:20 +0000 (19:18 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Dec 2021 18:18:20 +0000 (19:18 +0100)
This is necessary for executing "make" in a VPATH build of a package
that uses prefix-gnulib-mk and a module such as alloca-opt.

* modules/alloca-opt (Makefile.am): Before generating the .h-t file,
ensure that the directory in which we want to create it exists.
(configure.ac): Invoke AC_PROG_MKDIR_P.
* modules/argz: Likewise.
* modules/arpa_inet: Likewise.
* modules/assert-h: Likewise.
* modules/byteswap: Likewise.
* modules/configmake: Likewise.
* modules/ctype: Likewise.
* modules/dirent: Likewise.
* modules/dynarray: Likewise.
* modules/errno: Likewise.
* modules/execinfo: Likewise.
* modules/fcntl-h: Likewise.
* modules/float: Likewise.
* modules/fnmatch-h: Likewise.
* modules/getopt-posix: Likewise.
* modules/glob-h: Likewise.
* modules/iconv-h: Likewise.
* modules/ieee754-h: Likewise.
* modules/inttypes-incomplete: Likewise.
* modules/langinfo: Likewise.
* modules/libgmp: Likewise.
* modules/libtextstyle-optional: Likewise.
* modules/limits-h: Likewise.
* modules/locale: Likewise.
* modules/malloc-h: Likewise.
* modules/math: Likewise.
* modules/monetary: Likewise.
* modules/net_if: Likewise.
* modules/netdb: Likewise.
* modules/netinet_in: Likewise.
* modules/openmp-init: Likewise.
* modules/poll-h: Likewise.
* modules/posix-shell: Likewise.
* modules/pthread-h: Likewise.
* modules/pty: Likewise.
* modules/sched: Likewise.
* modules/scratch_buffer: Likewise.
* modules/search: Likewise.
* modules/selinux-h: Likewise.
* modules/signal-h: Likewise.
* modules/sigsegv: Likewise.
* modules/snippet/link-warning: Likewise.
* modules/spawn: Likewise.
* modules/stdalign: Likewise.
* modules/stdarg: Likewise.
* modules/stdbool: Likewise.
* modules/stddef: Likewise.
* modules/stdint: Likewise.
* modules/stdio: Likewise.
* modules/stdlib: Likewise.
* modules/stdnoreturn: Likewise.
* modules/string: Likewise.
* modules/strings: Likewise.
* modules/sys_file: Likewise.
* modules/sys_ioctl: Likewise.
* modules/sys_random: Likewise.
* modules/sys_resource: Likewise.
* modules/sys_select: Likewise.
* modules/sys_socket: Likewise.
* modules/sys_stat: Likewise.
* modules/sys_time: Likewise.
* modules/sys_times: Likewise.
* modules/sys_types: Likewise.
* modules/sys_uio: Likewise.
* modules/sys_utsname: Likewise.
* modules/sys_wait: Likewise.
* modules/sysexits: Likewise.
* modules/termios: Likewise.
* modules/threads-h: Likewise.
* modules/time: Likewise.
* modules/uchar: Likewise.
* modules/unicase/base: Likewise.
* modules/unicase/special-casing: Likewise.
* modules/uniconv/base: Likewise.
* modules/unictype/base: Likewise.
* modules/unigbrk/base: Likewise.
* modules/unilbrk/base: Likewise.
* modules/uniname/base: Likewise.
* modules/uninorm/base: Likewise.
* modules/unistd: Likewise.
* modules/unistdio/base: Likewise.
* modules/unistr/base: Likewise.
* modules/unitypes: Likewise.
* modules/uniwbrk/base: Likewise.
* modules/uniwidth/base: Likewise.
* modules/utime-h: Likewise.
* modules/wchar: Likewise.
* modules/wctype-h: Likewise.
* gnulib-tool (func_emit_lib_Makefile_am): When producing output for
GNU make, eliminate %reldir% tokens.

90 files changed:
ChangeLog
gnulib-tool
modules/alloca-opt
modules/argz
modules/arpa_inet
modules/assert-h
modules/byteswap
modules/configmake
modules/ctype
modules/dirent
modules/dynarray
modules/errno
modules/execinfo
modules/fcntl-h
modules/float
modules/fnmatch-h
modules/getopt-posix
modules/glob-h
modules/iconv-h
modules/ieee754-h
modules/inttypes-incomplete
modules/langinfo
modules/libgmp
modules/libtextstyle-optional
modules/limits-h
modules/locale
modules/malloc-h
modules/math
modules/monetary
modules/net_if
modules/netdb
modules/netinet_in
modules/openmp-init
modules/poll-h
modules/posix-shell
modules/pthread-h
modules/pty
modules/sched
modules/scratch_buffer
modules/search
modules/selinux-h
modules/signal-h
modules/sigsegv
modules/snippet/link-warning
modules/spawn
modules/stdalign
modules/stdarg
modules/stdbool
modules/stddef
modules/stdint
modules/stdio
modules/stdlib
modules/stdnoreturn
modules/string
modules/strings
modules/sys_file
modules/sys_ioctl
modules/sys_random
modules/sys_resource
modules/sys_select
modules/sys_socket
modules/sys_stat
modules/sys_time
modules/sys_times
modules/sys_types
modules/sys_uio
modules/sys_utsname
modules/sys_wait
modules/sysexits
modules/termios
modules/threads-h
modules/time
modules/uchar
modules/unicase/base
modules/unicase/special-casing
modules/uniconv/base
modules/unictype/base
modules/unigbrk/base
modules/unilbrk/base
modules/uniname/base
modules/uninorm/base
modules/unistd
modules/unistdio/base
modules/unistr/base
modules/unitypes
modules/uniwbrk/base
modules/uniwidth/base
modules/utime-h
modules/wchar
modules/wctype-h

index cbb66c2bbe326ecc6bc0ac9128605609c09f0a0a..29296575b10dea0529645d1368436ac1f0549c66 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,101 @@
+2021-12-15  Bruno Haible  <bruno@clisp.org>
+
+       Fix creation of build directories with non-recursive-gnulib-prefix-hack.
+       This is necessary for executing "make" in a VPATH build of a package
+       that uses prefix-gnulib-mk and a module such as alloca-opt.
+       * modules/alloca-opt (Makefile.am): Before generating the .h-t file,
+       ensure that the directory in which we want to create it exists.
+       (configure.ac): Invoke AC_PROG_MKDIR_P.
+       * modules/argz: Likewise.
+       * modules/arpa_inet: Likewise.
+       * modules/assert-h: Likewise.
+       * modules/byteswap: Likewise.
+       * modules/configmake: Likewise.
+       * modules/ctype: Likewise.
+       * modules/dirent: Likewise.
+       * modules/dynarray: Likewise.
+       * modules/errno: Likewise.
+       * modules/execinfo: Likewise.
+       * modules/fcntl-h: Likewise.
+       * modules/float: Likewise.
+       * modules/fnmatch-h: Likewise.
+       * modules/getopt-posix: Likewise.
+       * modules/glob-h: Likewise.
+       * modules/iconv-h: Likewise.
+       * modules/ieee754-h: Likewise.
+       * modules/inttypes-incomplete: Likewise.
+       * modules/langinfo: Likewise.
+       * modules/libgmp: Likewise.
+       * modules/libtextstyle-optional: Likewise.
+       * modules/limits-h: Likewise.
+       * modules/locale: Likewise.
+       * modules/malloc-h: Likewise.
+       * modules/math: Likewise.
+       * modules/monetary: Likewise.
+       * modules/net_if: Likewise.
+       * modules/netdb: Likewise.
+       * modules/netinet_in: Likewise.
+       * modules/openmp-init: Likewise.
+       * modules/poll-h: Likewise.
+       * modules/posix-shell: Likewise.
+       * modules/pthread-h: Likewise.
+       * modules/pty: Likewise.
+       * modules/sched: Likewise.
+       * modules/scratch_buffer: Likewise.
+       * modules/search: Likewise.
+       * modules/selinux-h: Likewise.
+       * modules/signal-h: Likewise.
+       * modules/sigsegv: Likewise.
+       * modules/snippet/link-warning: Likewise.
+       * modules/spawn: Likewise.
+       * modules/stdalign: Likewise.
+       * modules/stdarg: Likewise.
+       * modules/stdbool: Likewise.
+       * modules/stddef: Likewise.
+       * modules/stdint: Likewise.
+       * modules/stdio: Likewise.
+       * modules/stdlib: Likewise.
+       * modules/stdnoreturn: Likewise.
+       * modules/string: Likewise.
+       * modules/strings: Likewise.
+       * modules/sys_file: Likewise.
+       * modules/sys_ioctl: Likewise.
+       * modules/sys_random: Likewise.
+       * modules/sys_resource: Likewise.
+       * modules/sys_select: Likewise.
+       * modules/sys_socket: Likewise.
+       * modules/sys_stat: Likewise.
+       * modules/sys_time: Likewise.
+       * modules/sys_times: Likewise.
+       * modules/sys_types: Likewise.
+       * modules/sys_uio: Likewise.
+       * modules/sys_utsname: Likewise.
+       * modules/sys_wait: Likewise.
+       * modules/sysexits: Likewise.
+       * modules/termios: Likewise.
+       * modules/threads-h: Likewise.
+       * modules/time: Likewise.
+       * modules/uchar: Likewise.
+       * modules/unicase/base: Likewise.
+       * modules/unicase/special-casing: Likewise.
+       * modules/uniconv/base: Likewise.
+       * modules/unictype/base: Likewise.
+       * modules/unigbrk/base: Likewise.
+       * modules/unilbrk/base: Likewise.
+       * modules/uniname/base: Likewise.
+       * modules/uninorm/base: Likewise.
+       * modules/unistd: Likewise.
+       * modules/unistdio/base: Likewise.
+       * modules/unistr/base: Likewise.
+       * modules/unitypes: Likewise.
+       * modules/uniwbrk/base: Likewise.
+       * modules/uniwidth/base: Likewise.
+       * modules/utime-h: Likewise.
+       * modules/wchar: Likewise.
+       * modules/wctype-h: Likewise.
+       * gnulib-tool (func_emit_lib_Makefile_am): When producing output for
+       GNU make, eliminate %reldir% tokens.
+
 2021-12-15  Bruno Haible  <bruno@clisp.org>
 
        non-recursive-gnulib-prefix-hack: Remove obsolete code.
index 58e1859c547d3c72c89603fffe847bf408aea921..25df157dcaf59a73475e34fc3d8d38a7b66b6ab0 100755 (executable)
@@ -3737,9 +3737,9 @@ func_emit_lib_Makefile_am ()
           echo "## begin gnulib module $module"
           if $gnu_make; then
             echo "ifeq (,\$(OMIT_GNULIB_MODULE_$module))"
-            convert_to_gnu_make='s/^if \(.*\)/ifneq (,$(\1))/'
-          else
-            convert_to_gnu_make=
+            convert_to_gnu_make_1='s/^if \(.*\)/ifneq (,$(\1))/'
+            convert_to_gnu_make_2='s|%reldir%/||g'
+            convert_to_gnu_make_3='s|%reldir%|.|g'
           fi
           echo
           if test "$cond_dependencies" = true; then
@@ -3752,13 +3752,27 @@ func_emit_lib_Makefile_am ()
               fi
             fi
           fi
-          sed "$convert_to_gnu_make" "$tmp"/amsnippet1
+          if $gnu_make; then
+            sed -e "$convert_to_gnu_make_1" \
+                -e "$convert_to_gnu_make_2" \
+                -e "$convert_to_gnu_make_3" \
+                "$tmp"/amsnippet1
+          else
+            cat "$tmp"/amsnippet1
+          fi
           if test "$cond_dependencies" = true; then
             if func_cond_module_p "$module"; then
               echo "endif"
             fi
           fi
-          sed "$convert_to_gnu_make" "$tmp"/amsnippet2
+          if $gnu_make; then
+            sed -e "$convert_to_gnu_make_1" \
+                -e "$convert_to_gnu_make_2" \
+                -e "$convert_to_gnu_make_3" \
+                "$tmp"/amsnippet2
+          else
+            cat "$tmp"/amsnippet2
+          fi
           if $gnu_make; then
             echo "endif"
           fi
index 53bb28dba80ba393d254d88dcb34bc2aee31db8a..ec3250dc4e036b5d782755542881bcbad99577b0 100644 (file)
@@ -11,6 +11,7 @@ Depends-on:
 
 configure.ac:
 gl_FUNC_ALLOCA
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(ALLOCA_H)
@@ -20,6 +21,7 @@ BUILT_SOURCES += $(ALLOCA_H)
 if GL_GENERATE_ALLOCA_H
 alloca.h: alloca.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''HAVE_ALLOCA_H''@|$(HAVE_ALLOCA_H)|g' < $(srcdir)/alloca.in.h; \
        } > $@-t && \
index a8eb55e9444931034e53858f785549b2cf1c84b1..a20a214d4847e5d188fefb93e8abdefe2bbc82d0 100644 (file)
@@ -16,6 +16,7 @@ strstr          [test -n "$ARGZ_H"]
 
 configure.ac:
 gl_FUNC_ARGZ
+AC_PROG_MKDIR_P
 if test -n "$ARGZ_H"; then
   AC_LIBOBJ([argz])
 fi
@@ -28,6 +29,7 @@ BUILT_SOURCES += $(ARGZ_H)
 if GL_GENERATE_ARGZ_H
 argz.h: argz.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/argz.in.h; \
        } > $@-t && \
index 7e630427eb7ad62c3479a84377b5111fe1b81399..4655998c81fb656c95be0d1bcc6d588daa94c8f3 100644 (file)
@@ -25,7 +25,7 @@ BUILT_SOURCES += arpa/inet.h
 # We need the following in order to create <arpa/inet.h> when the system
 # doesn't have one.
 arpa/inet.h: arpa_inet.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
-       $(AM_V_at)$(MKDIR_P) arpa
+       $(AM_V_at)$(MKDIR_P) '%reldir%/arpa'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
index 402586f2f78fd5d8c0d8232317e109f52b24870a..aec3aae7d1fe95f673112355f46145c1f31b529c 100644 (file)
@@ -11,6 +11,7 @@ include_next
 
 configure.ac:
 gl_ASSERT_H
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(ASSERT_H)
@@ -20,6 +21,7 @@ BUILT_SOURCES += $(ASSERT_H)
 if GL_GENERATE_ASSERT_H
 assert.h: assert.in.h verify.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
index c1da40074c30f45fa0142b98941c63cc4753edeb..43391572f281a308a136022af0f3595c319bb12d 100644 (file)
@@ -9,6 +9,7 @@ Depends-on:
 
 configure.ac:
 gl_BYTESWAP
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(BYTESWAP_H)
@@ -18,6 +19,7 @@ BUILT_SOURCES += $(BYTESWAP_H)
 if GL_GENERATE_BYTESWAP_H
 byteswap.h: byteswap.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/byteswap.in.h; \
        } > $@-t && \
index f2bbed654f4d25171329742c8fb4209b62deea8b..05a0f4a7efb9b5fe3258ad7a305e92cc7faafc3e 100644 (file)
@@ -8,6 +8,7 @@ Depends-on:
 
 configure.ac:
 gl_CONFIGMAKE_PREP
+AC_PROG_MKDIR_P
 
 Makefile.am:
 # Listed in the same order as the GNU makefile conventions, and
@@ -16,6 +17,7 @@ Makefile.am:
 # listed in the Automake 1.10a+ documentation.
 configmake.h: Makefile
        $(AM_V_GEN)rm -f $@-t && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          echo '#if HAVE_WINSOCK2_H'; \
          echo '# include <winsock2.h> /* avoid mingw pollution on DATADIR */'; \
index 60d7d5fb462923668b2c142b78a9fd173ca7e416..4d35c8ae02feb9c6075ceaceeffd5910ebe70922 100644 (file)
@@ -14,6 +14,7 @@ snippet/warn-on-use
 configure.ac:
 gl_CTYPE_H
 gl_CTYPE_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += ctype.h
@@ -22,6 +23,7 @@ BUILT_SOURCES += ctype.h
 # doesn't have one that works with the given compiler.
 ctype.h: ctype.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
index 80e3843ce4f0bdd049276cf2f8eb1e116cff4d37..3d56548c4b76715d7e6521b5dd75e206c55b3870 100644 (file)
@@ -16,6 +16,7 @@ snippet/warn-on-use
 configure.ac:
 gl_DIRENT_H
 gl_DIRENT_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += dirent.h
@@ -24,6 +25,7 @@ BUILT_SOURCES += dirent.h
 # doesn't have one that works with the given compiler.
 dirent.h: dirent.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''HAVE_DIRENT_H''@|$(HAVE_DIRENT_H)|g' \
index fa608ded0e3822c8c99973054bbd155ed2aada0a..37d1f6c753293d1bfce566ee493ff190ee778d4e 100644 (file)
@@ -26,7 +26,7 @@ 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_at)$(MKDIR_P) '%reldir%/malloc'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e '/libc_hidden_proto/d' < $(srcdir)/malloc/dynarray.h; \
@@ -35,7 +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_at)$(MKDIR_P) '%reldir%/malloc'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|<malloc/dynarray\.h>|<malloc/dynarray.gl.h>|g' \
index 27810f159e13c4bfd84565629d240e371b05c6f5..35fe9ada9cecc62ace90ee7e040aec2d2da4d3e8 100644 (file)
@@ -10,6 +10,7 @@ include_next
 
 configure.ac:
 gl_HEADER_ERRNO_H
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(ERRNO_H)
@@ -19,6 +20,7 @@ BUILT_SOURCES += $(ERRNO_H)
 if GL_GENERATE_ERRNO_H
 errno.h: errno.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
index 2a49f88f61a1cd75cf60f08036c3e9d294d7e421..89426bb55d530ea1003f3357f685e5614faf22bb 100644 (file)
@@ -11,6 +11,7 @@ extern-inline
 
 configure.ac:
 gl_EXECINFO_H
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(EXECINFO_H)
@@ -20,6 +21,7 @@ BUILT_SOURCES += $(EXECINFO_H)
 if GL_GENERATE_EXECINFO_H
 execinfo.h: execinfo.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/execinfo.in.h; \
        } > $@-t && \
index 2277789d937e38bf1caf0d4d54dba0f31a684d92..41dc983087c64973cc8ff95c40d37e2520a0cecd 100644 (file)
@@ -19,6 +19,7 @@ unistd
 configure.ac:
 gl_FCNTL_H
 gl_FCNTL_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += fcntl.h
@@ -27,6 +28,7 @@ BUILT_SOURCES += fcntl.h
 # doesn't have one that works with the given compiler.
 fcntl.h: fcntl.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
index a24e80d05cc6e81fcd84927adab8056434048c9f..ff68615a2f40480e2e1aa6b6219f329f37150324 100644 (file)
@@ -12,6 +12,7 @@ include_next
 
 configure.ac:
 gl_FLOAT_H
+AC_PROG_MKDIR_P
 if test $REPLACE_FLOAT_LDBL = 1; then
   AC_LIBOBJ([float])
 fi
@@ -27,6 +28,7 @@ BUILT_SOURCES += $(FLOAT_H)
 if GL_GENERATE_FLOAT_H
 float.h: float.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
index 43800764c577746485438ed199eacd4abde48748..cfabc8cd51407eddfc256e33e28fcb9624e313a1 100644 (file)
@@ -15,6 +15,7 @@ snippet/warn-on-use
 configure.ac:
 gl_FNMATCH_H
 gl_FNMATCH_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(FNMATCH_H)
@@ -23,6 +24,7 @@ BUILT_SOURCES += $(FNMATCH_H)
 if GL_GENERATE_FNMATCH_H
 fnmatch.h: fnmatch.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''HAVE_FNMATCH_H''@|$(HAVE_FNMATCH_H)|g' \
index 1a665e13b45ff9a42b625668d2cce884b9f52ba7..0e8e667d5a591b11a4e2079792a57a0fb1fda87f 100644 (file)
@@ -22,6 +22,7 @@ snippet/arg-nonnull
 
 configure.ac:
 gl_FUNC_GETOPT_POSIX
+AC_PROG_MKDIR_P
 if test $REPLACE_GETOPT = 1; then
   AC_LIBOBJ([getopt])
   AC_LIBOBJ([getopt1])
@@ -38,6 +39,7 @@ BUILT_SOURCES += $(GETOPT_H) $(GETOPT_CDEFS_H)
 # doesn't have one that works with the given compiler.
 getopt.h: getopt.in.h $(top_builddir)/config.status $(ARG_NONNULL_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
index c48c91c486949a1edca064d76ffc75b9d9c03f67..891db9d10cb54f09a39b40f86bfec41dc67216bd 100644 (file)
@@ -19,6 +19,7 @@ sys_stat
 configure.ac:
 gl_GLOB_H
 gl_GLOB_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(GLOB_H)
@@ -27,6 +28,7 @@ BUILT_SOURCES += $(GLOB_H)
 if GL_GENERATE_GLOB_H
 glob.h: glob.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''HAVE_GLOB_H''@|$(HAVE_GLOB_H)|g' \
index b7a6045270993c0fa1f0c6e2718c296ec5eb3b00..66faaed5dd4e3d2fce5e8956d0487ff03bd734a2 100644 (file)
@@ -14,6 +14,7 @@ snippet/warn-on-use
 configure.ac:
 gl_ICONV_H
 gl_ICONV_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(ICONV_H)
@@ -23,6 +24,7 @@ BUILT_SOURCES += $(ICONV_H)
 if GL_GENERATE_ICONV_H
 iconv.h: iconv.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
index e830023aa64d93ec89e33dbe0506f4ca3eaa8e0b..4ccf4208fadea754156c9c3f6eeb908e2eb5f768 100644 (file)
@@ -9,6 +9,7 @@ Depends-on:
 
 configure.ac:
 gl_IEEE754_H
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(IEEE754_H)
@@ -18,6 +19,7 @@ BUILT_SOURCES += $(IEEE754_H)
 if GL_GENERATE_IEEE754_H
 ieee754.h: ieee754.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's/ifndef _GL_GNULIB_HEADER/if 0/g' \
            $(srcdir)/ieee754.in.h; \
index 0e73c90020118c269389be455cccecb1c1b30ffb..af4990814765aeda95a264229b4ee3c50c0a5ebe 100644 (file)
@@ -16,6 +16,7 @@ stdint
 configure.ac:
 gl_INTTYPES_INCOMPLETE
 gl_INTTYPES_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += inttypes.h
@@ -24,6 +25,7 @@ BUILT_SOURCES += inttypes.h
 # doesn't have one that works with the given compiler.
 inttypes.h: inttypes.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
index 0e4aa964ad9ee72ba31847687adf84027ed91e7a..9c1665da89ec81726b76e4fb0e31af8db589c634 100644 (file)
@@ -14,6 +14,7 @@ snippet/warn-on-use
 configure.ac:
 gl_LANGINFO_H
 gl_LANGINFO_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += langinfo.h
@@ -22,6 +23,7 @@ BUILT_SOURCES += langinfo.h
 # <langinfo.h> when the system doesn't have one.
 langinfo.h: langinfo.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''HAVE_LANGINFO_H''@|$(HAVE_LANGINFO_H)|g' \
index bfc62f8d8623e9709c6209758f3f4ee6d740b58a..1c347617bb4ed74cce2bda23c94bf7cc13b1694d 100644 (file)
@@ -11,6 +11,7 @@ Depends-on:
 
 configure.ac:
 gl_LIBGMP
+AC_PROG_MKDIR_P
 if test $HAVE_LIBGMP != yes; then
   AC_LIBOBJ([mini-gmp-gnulib])
 fi
@@ -21,13 +22,15 @@ BUILT_SOURCES += $(GMP_H)
 if GL_GENERATE_MINI_GMP_H
 # Build gmp.h as a wrapper for mini-gmp.h when using mini-gmp.
 gmp.h: $(top_builddir)/config.status
-       echo '#include "mini-gmp.h"' >$@-t
+       $(MKDIR_P) '%reldir%'
+       echo '#include "mini-gmp.h"' > $@-t
        mv $@-t $@
 else
 if GL_GENERATE_GMP_GMP_H
 # Build gmp.h as a wrapper for gmp/gmp.h.
 gmp.h: $(top_builddir)/config.status
-       echo '#include <gmp/gmp.h>' >$@-t
+       $(MKDIR_P) '%reldir%'
+       echo '#include <gmp/gmp.h>' > $@-t
        mv $@-t $@
 else
 gmp.h: $(top_builddir)/config.status
index c0935e1f5651eb059477a84f6bbaa785b5119998..342d718890e8ee25cd68a71244b3577287c87e9f 100644 (file)
@@ -15,6 +15,7 @@ vasprintf-posix
 
 configure.ac:
 # You need to invoke gl_LIBTEXTSTYLE_OPTIONAL yourself, possibly with arguments.
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(TEXTSTYLE_H)
@@ -24,6 +25,7 @@ BUILT_SOURCES += $(TEXTSTYLE_H)
 if GL_GENERATE_TEXTSTYLE_H
 textstyle.h: textstyle.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/textstyle.in.h; \
        } > $@-t && \
index 9c60ec9c043a09f0b1c4bb488e7f15d2477cb0ae..3f5dcf9e305ce7860fe4ff3d44eabf867a74342b 100644 (file)
@@ -10,6 +10,7 @@ include_next
 
 configure.ac:
 gl_LIMITS_H
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(LIMITS_H)
@@ -19,6 +20,7 @@ BUILT_SOURCES += $(LIMITS_H)
 if GL_GENERATE_LIMITS_H
 limits.h: limits.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
index b2773c8a19cb36a4783609857f495ea0e9392361..7bb7cfc98b680473c4ecf2dcae3ec72b68aa457f 100644 (file)
@@ -16,6 +16,7 @@ stddef
 configure.ac:
 gl_LOCALE_H
 gl_LOCALE_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += locale.h
@@ -24,6 +25,7 @@ BUILT_SOURCES += locale.h
 # doesn't have one that provides all definitions.
 locale.h: locale.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
index f79fa3ed82e3a8af7d27613806bdaf737cbb647f..9a902e02c805461c77c3b055e97d8032f441ce27 100644 (file)
@@ -13,6 +13,7 @@ snippet/warn-on-use
 configure.ac:
 gl_MALLOC_H
 gl_MALLOC_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += malloc.h
@@ -20,6 +21,7 @@ BUILT_SOURCES += malloc.h
 # We need the following in order to create <malloc.h> when we add workarounds.
 malloc.h: malloc.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''HAVE_MALLOC_H''@|$(HAVE_MALLOC_H)|g' \
index 30416091251524662167da8bce1628d11dadd407..da8445524770df9023994806a7d85b591fd638d3 100644 (file)
@@ -17,6 +17,7 @@ float
 configure.ac:
 gl_MATH_H
 gl_MATH_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += math.h
@@ -26,6 +27,7 @@ lib_SOURCES += math.c
 # doesn't have one that works with the given compiler.
 math.h: math.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''INCLUDE_NEXT_AS_FIRST_DIRECTIVE''@|$(INCLUDE_NEXT_AS_FIRST_DIRECTIVE)|g' \
index 451323b6ace778d13d55c9aab3287bcfca7066f0..645062c68d1caeabef4bfeb40498759fb368b92d 100644 (file)
@@ -14,6 +14,7 @@ snippet/warn-on-use
 configure.ac:
 gl_MONETARY_H
 gl_MONETARY_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(MONETARY_H)
@@ -23,6 +24,7 @@ BUILT_SOURCES += $(MONETARY_H)
 if GL_GENERATE_MONETARY_H
 monetary.h: monetary.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''HAVE_MONETARY_H''@|$(HAVE_MONETARY_H)|g' \
index 9e30f01512b94eec0b5c25d9617022cade624901..467544e4d08ba9a185d2b3d1c06e704686bfc95a 100644 (file)
@@ -20,7 +20,7 @@ BUILT_SOURCES += $(NET_IF_H)
 # doesn't have one.
 if GL_GENERATE_NET_IF_H
 net/if.h: net_if.in.h $(top_builddir)/config.status
-       $(AM_V_at)$(MKDIR_P) net
+       $(AM_V_at)$(MKDIR_P) '%reldir%/net'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
index 8c589df669171c0c4982f9bd2b0f48bb0a0206ad..9ad12eb93c9ab98b954980e5338fa7e13f099c5e 100644 (file)
@@ -15,6 +15,7 @@ sys_socket
 configure.ac:
 gl_NETDB_H
 gl_NETDB_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += netdb.h
@@ -23,6 +24,7 @@ BUILT_SOURCES += netdb.h
 # doesn't have one that works with the given compiler.
 netdb.h: netdb.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
index 7d09a3761bc0c6282ed9fc3727e1ac00b466f31f..da21e0d6bd63122c0a680e401ed5982de33bda3e 100644 (file)
@@ -20,7 +20,7 @@ BUILT_SOURCES += $(NETINET_IN_H)
 # doesn't have one.
 if GL_GENERATE_NETINET_IN_H
 netinet/in.h: netinet_in.in.h $(top_builddir)/config.status
-       $(AM_V_at)$(MKDIR_P) netinet
+       $(AM_V_at)$(MKDIR_P) '%reldir%/netinet'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
index e3975ca4732a6190e3e301a924ada711a4ef8214..f3fd23e7745907abb1b643b3b0e9a04e69772c16 100644 (file)
@@ -13,6 +13,7 @@ setenv
 
 configure.ac:
 gl_OMP_H
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += omp.h
@@ -22,6 +23,7 @@ BUILT_SOURCES += omp.h
 omp.h: omp.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
   $(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
index 998607dc383140784da21b1cb901017b108e242e..4287299e54478a3b8568f788834d1a9f6992c48d 100644 (file)
@@ -15,6 +15,7 @@ snippet/warn-on-use
 configure.ac:
 gl_POLL_H
 gl_POLL_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += poll.h
@@ -23,6 +24,7 @@ BUILT_SOURCES += poll.h
 # doesn't have one.
 poll.h: poll.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''HAVE_POLL_H''@|$(HAVE_POLL_H)|g' \
index 8f7b864e88afe6c791deee5172b00bfd9542b918..07736916711f3c7e5d460f5a27a26e57e72cbbe7 100644 (file)
@@ -8,14 +8,16 @@ Depends-on:
 
 configure.ac:
 gl_POSIX_SHELL
+AC_PROG_MKDIR_P
 
 Makefile.am:
 ##Sample usage of posix-shell module:
 #script: script.in
 #      rm -f $@-t $@
+#      $(MKDIR_P) '%reldir%'
 #      sed -e 's#@''PREFERABLY_POSIX_SHELL''@#$(PREFERABLY_POSIX_SHELL)#g' \
 #          -e 's#@''POSIX_SHELL''@#$(POSIX_SHELL)#g' \
-#          -e $(srcdir)/$@.in >$@-t
+#          -e $(srcdir)/$@.in > $@-t
 #      chmod a+x $@-t
 #      mv $@-t $@
 #EXTRA_DIST += script.in
index dec17389e66c567fc884ab32b507c3b5bfe0f68f..cecf43966afe5b8591042e5cdea71507230f51d3 100644 (file)
@@ -22,6 +22,7 @@ gl_ANYTHREADLIB_EARLY
 configure.ac:
 gl_PTHREAD_H
 gl_PTHREAD_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += pthread.h
@@ -30,6 +31,7 @@ BUILT_SOURCES += pthread.h
 # doesn't have one that works with the given compiler.
 pthread.h: pthread.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''HAVE_PTHREAD_H''@|$(HAVE_PTHREAD_H)|g' \
index ae0790089cebade7816b12b7d460cfe54141ef09..2814d3ca58050934e0a0c08f5047074ae4c01872 100644 (file)
@@ -13,6 +13,7 @@ snippet/warn-on-use
 configure.ac:
 gl_PTY_H
 gl_PTY_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += pty.h
@@ -21,6 +22,7 @@ BUILT_SOURCES += pty.h
 # doesn't have one that works with the given compiler.
 pty.h: pty.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''HAVE_PTY_H''@|$(HAVE_PTY_H)|g' \
index 995dfb95e29a451748a2f254fc0bf22081cf264b..ea706e8fc7a09a457274fa63e54f9d44ebbf9d04 100644 (file)
@@ -14,6 +14,7 @@ snippet/warn-on-use
 configure.ac:
 gl_SCHED_H
 gl_SCHED_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += sched.h
@@ -22,6 +23,7 @@ BUILT_SOURCES += sched.h
 # the system doesn't have one.
 sched.h: sched.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''HAVE_SCHED_H''@|$(HAVE_SCHED_H)|g' \
index 184f0b6bf12bbb9a352149113dbcbb82ad2f40d9..336a5347258ac464e856c38c2aa53a3816760959 100644 (file)
@@ -26,7 +26,7 @@ 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_at)$(MKDIR_P) '%reldir%/malloc'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|__always_inline|inline _GL_ATTRIBUTE_ALWAYS_INLINE|g' \
index 364107485b49b4e4f0121e39d03775fd0dc9fc19..d24c37b16ad653042b93231318b2995beff9a3ad 100644 (file)
@@ -14,6 +14,7 @@ snippet/warn-on-use
 configure.ac:
 gl_SEARCH_H
 gl_SEARCH_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += search.h
@@ -22,6 +23,7 @@ BUILT_SOURCES += search.h
 # doesn't have one that works with the given compiler.
 search.h: search.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''HAVE_SEARCH_H''@|$(HAVE_SEARCH_H)|g' \
index 00328bf20f412f6fd075c99a6ad43ce915fd6eba..d0e3b29dbb9359fae388e3f1a7f3d0951f954ee9 100644 (file)
@@ -21,6 +21,7 @@ configure.ac:
 gl_HEADERS_SELINUX_SELINUX_H
 gl_HEADERS_SELINUX_CONTEXT_H
 gl_HEADERS_SELINUX_LABEL_H
+AC_PROG_MKDIR_P
 if test "$with_selinux" != no && test "$ac_cv_header_selinux_selinux_h" = yes; then
   AC_LIBOBJ([getfilecon])
 fi
@@ -31,7 +32,7 @@ lib_SOURCES += se-context.in.h se-label.in.h se-selinux.in.h \
 
 BUILT_SOURCES += selinux/selinux.h
 selinux/selinux.h: se-selinux.in.h $(top_builddir)/config.status
-       $(AM_V_at)$(MKDIR_P) selinux
+       $(AM_V_at)$(MKDIR_P) '%reldir%/selinux'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
@@ -47,7 +48,7 @@ MOSTLYCLEANFILES += selinux/selinux.h selinux/selinux.h-t
 BUILT_SOURCES += $(SELINUX_CONTEXT_H)
 if GL_GENERATE_SELINUX_CONTEXT_H
 selinux/context.h: se-context.in.h $(top_builddir)/config.status
-       $(AM_V_at)$(MKDIR_P) selinux
+       $(AM_V_at)$(MKDIR_P) '%reldir%/selinux'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          cat $(srcdir)/se-context.in.h; \
@@ -62,7 +63,7 @@ MOSTLYCLEANFILES += selinux/context.h selinux/context.h-t
 BUILT_SOURCES += $(SELINUX_LABEL_H)
 if GL_GENERATE_SELINUX_LABEL_H
 selinux/label.h: se-label.in.h $(top_builddir)/config.status
-       $(AM_V_at)$(MKDIR_P) selinux
+       $(AM_V_at)$(MKDIR_P) '%reldir%/selinux'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          cat $(srcdir)/se-label.in.h; \
index cca349d7c16c58763c1e6f51bb726067c2ac35c3..a0285f2925a6efdd5776cfd86ec623e9d44b89f5 100644 (file)
@@ -16,6 +16,7 @@ extensions
 configure.ac:
 gl_SIGNAL_H
 gl_SIGNAL_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += signal.h
@@ -24,6 +25,7 @@ BUILT_SOURCES += signal.h
 # doesn't have a complete one.
 signal.h: signal.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
index fdd815c37075cb055d01e5ca2c683e2578283064..fa0a1d526318301945d7c3139dad0d2c67afd96f 100644 (file)
@@ -37,6 +37,7 @@ else
 fi
 AC_SUBST([SIGSEGV_H])
 AM_CONDITIONAL([GL_GENERATE_SIGSEGV_H], [test -n "$SIGSEGV_H"])
+AC_PROG_MKDIR_P
 if test -n "$SIGSEGV_H"; then
   dnl Persuade glibc <sys/ucontext.h> to declare macros designating register
   dnl indices: REG_RSP on x86_64, REG_ESP on i386.
@@ -71,6 +72,7 @@ BUILT_SOURCES += $(SIGSEGV_H)
 if GL_GENERATE_SIGSEGV_H
 sigsegv.h: sigsegv.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/sigsegv.in.h; \
        } > $@-t && \
index 8c1b16b0be3d7cbf8e34ef696610e9e801966fe8..6727eedcae0011ecf6f228a28cfa06e85c4148b1 100644 (file)
@@ -11,6 +11,7 @@ Depends-on:
 
 configure.ac:
 AC_REQUIRE([gl_FEATURES_H])
+AC_PROG_MKDIR_P
 
 Makefile.am:
 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
@@ -25,6 +26,7 @@ Makefile.am:
 BUILT_SOURCES += link-warning.h
 link-warning.h: $(top_srcdir)/build-aux/snippet/link-warning.h
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        sed -n -e '/HAVE_FEATURES_H/,$$p' \
          < $(top_srcdir)/build-aux/snippet/link-warning.h \
        | sed -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
index 312c5ec9bdb77e48e4ea838588b288f7ab0e8815..8ad028c10ea5e2b15756b697b13b52a568bf881e 100644 (file)
@@ -17,6 +17,7 @@ snippet/warn-on-use
 configure.ac:
 gl_SPAWN_H
 gl_SPAWN_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += spawn.h
@@ -25,6 +26,7 @@ BUILT_SOURCES += spawn.h
 # the system doesn't have one.
 spawn.h: spawn.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''HAVE_SPAWN_H''@|$(HAVE_SPAWN_H)|g' \
index a2c61252184610fd8d11090643e59388aca0d3f6..af25b34b884e56de09923852fdcf365b7d9d5c3d 100644 (file)
@@ -9,6 +9,7 @@ Depends-on:
 
 configure.ac:
 gl_STDALIGN_H
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(STDALIGN_H)
@@ -18,6 +19,7 @@ BUILT_SOURCES += $(STDALIGN_H)
 if GL_GENERATE_STDALIGN_H
 stdalign.h: stdalign.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/stdalign.in.h; \
        } > $@-t && \
index 0a2f27a6c3d52a78418fe9895aa90077304f2d56..f4f37abac5c68ec72e9f373b2dbe0baf8b7d901b 100644 (file)
@@ -15,6 +15,7 @@ gl_PROG_CC_C99
 
 configure.ac:
 gl_STDARG_H
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(STDARG_H)
@@ -24,6 +25,7 @@ BUILT_SOURCES += $(STDARG_H)
 if GL_GENERATE_STDARG_H
 stdarg.h: stdarg.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
index b1fcdda45629c52e53cefd7c2d0855f4c926357c..d3f434cc5581f81760bc38985aa4acafa46f0ffb 100644 (file)
@@ -10,6 +10,7 @@ Depends-on:
 
 configure.ac:
 AM_STDBOOL_H
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(STDBOOL_H)
@@ -19,6 +20,7 @@ BUILT_SOURCES += $(STDBOOL_H)
 if GL_GENERATE_STDBOOL_H
 stdbool.h: stdbool.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \
        } > $@-t && \
index c17523cac856dcdad0e411fc617f4006a15050af..d69b861f6bf8550415277a367524cd4b34f668d2 100644 (file)
@@ -13,6 +13,7 @@ extensions
 configure.ac:
 gl_STDDEF_H
 gl_STDDEF_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(STDDEF_H)
@@ -22,6 +23,7 @@ BUILT_SOURCES += $(STDDEF_H)
 if GL_GENERATE_STDDEF_H
 stddef.h: stddef.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
index 0c7e878e45805b03da4504f01ce1235720607bb1..ea38736bfa1d8c52fac42ee5afa573555939eb8b 100644 (file)
@@ -20,6 +20,7 @@ sys_types
 
 configure.ac:
 gl_STDINT_H
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(STDINT_H)
@@ -29,6 +30,7 @@ BUILT_SOURCES += $(STDINT_H)
 if GL_GENERATE_STDINT_H
 stdint.h: stdint.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
index e13b689375072b825ac0137cab9c58e57a5b4a78..f286f4b44521d9325da9d265bfae68ce41d5d4d0 100644 (file)
@@ -18,6 +18,7 @@ sys_types
 configure.ac:
 gl_STDIO_H
 gl_STDIO_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 dnl No need to create extra modules for these functions. Everyone who uses
 dnl <stdio.h> likely needs them.
@@ -51,6 +52,7 @@ BUILT_SOURCES += stdio.h
 # doesn't have one that works with the given compiler.
 stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
index da5629dc9aba9445fc5d0c25326db0b088cc26d4..f4a3388726f5969dd02db651a3c6923cd4906cc6 100644 (file)
@@ -17,6 +17,7 @@ unistd
 configure.ac:
 gl_STDLIB_H
 gl_STDLIB_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += stdlib.h
@@ -26,6 +27,7 @@ BUILT_SOURCES += stdlib.h
 stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
   $(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
index acd661b28213f08919397c50a0761e1ca9938935..d2b9566255c1342e5e9f482f5f712d6eeefb0817 100644 (file)
@@ -10,6 +10,7 @@ snippet/_Noreturn
 
 configure.ac:
 gl_STDNORETURN_H
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(STDNORETURN_H)
@@ -19,6 +20,7 @@ BUILT_SOURCES += $(STDNORETURN_H)
 if GL_GENERATE_STDNORETURN_H
 stdnoreturn.h: stdnoreturn.in.h $(top_builddir)/config.status $(_NORETURN_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e '/definition of _Noreturn/r $(_NORETURN_H)' \
               < $(srcdir)/stdnoreturn.in.h; \
index e9c3153997b9e28b64c148a97ea3bffc4de61f0e..64f543e082f2d10716bee23834bc9ada8485def8 100644 (file)
@@ -18,6 +18,7 @@ stdlib
 configure.ac:
 gl_STRING_H
 gl_STRING_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += string.h
@@ -26,6 +27,7 @@ BUILT_SOURCES += string.h
 # doesn't have one that works with the given compiler.
 string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
index d705ac9e5f867730a69a8f63c314150c848e88f7..e3b7b288502f38154f32834933dfbe746d6bc03e 100644 (file)
@@ -15,6 +15,7 @@ sys_types
 configure.ac:
 gl_STRINGS_H
 gl_STRINGS_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += strings.h
@@ -23,6 +24,7 @@ BUILT_SOURCES += strings.h
 # doesn't have one that works with the given compiler.
 strings.h: strings.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''HAVE_STRINGS_H''@|$(HAVE_STRINGS_H)|g' \
index a5d98013e42f180fd642da3d6fb1328b2a1c734a..753f6e1e8e1be17ed183dbf66c18fee5a1e0a1e5 100644 (file)
@@ -20,7 +20,7 @@ BUILT_SOURCES += sys/file.h
 # We need the following in order to create <sys/file.h> when the system
 # has one that is incomplete.
 sys/file.h: sys_file.in.h $(top_builddir)/config.status $(WARN_ON_USE_H)
-       $(AM_V_at)$(MKDIR_P) sys
+       $(AM_V_at)$(MKDIR_P) '%reldir%/sys'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
index 06b85c7f47ad05697c571ab2963253335a613265..571dc822b7041326e86cb1e19adbce2fd4a606b1 100644 (file)
@@ -22,7 +22,7 @@ BUILT_SOURCES += sys/ioctl.h
 # We need the following in order to create <sys/ioctl.h> when the system
 # does not have a complete one.
 sys/ioctl.h: sys_ioctl.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
-       $(AM_V_at)$(MKDIR_P) sys
+       $(AM_V_at)$(MKDIR_P) '%reldir%/sys'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
index 5044baa4ec5f0096c5fad39d91cceeb758e9ead1..331103ae6bda94eb1652b7f3184047ffaa1efa4b 100644 (file)
@@ -22,7 +22,7 @@ BUILT_SOURCES += sys/random.h
 # We need the following in order to create <sys/random.h> when the system
 # doesn't have one.
 sys/random.h: sys_random.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
-       $(AM_V_at)$(MKDIR_P) sys
+       $(AM_V_at)$(MKDIR_P) '%reldir%/sys'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
index 83caef50281a0ddcfcd82036c4749fd88036a9f2..5c68b981b00140eee5c396a1c84e6b195083d9a0 100644 (file)
@@ -23,7 +23,7 @@ BUILT_SOURCES += sys/resource.h
 # We need the following in order to create <sys/resource.h> when the system
 # doesn't have one.
 sys/resource.h: sys_resource.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
-       $(AM_V_at)$(MKDIR_P) sys
+       $(AM_V_at)$(MKDIR_P) '%reldir%/sys'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
index 89f07b26ee09bc978c54dd674f38e51793af147f..61e78f827069544aaa646c2dfdd8f0085af23c28 100644 (file)
@@ -24,7 +24,7 @@ BUILT_SOURCES += sys/select.h
 # We need the following in order to create <sys/select.h> when the system
 # doesn't have one that works with the given compiler.
 sys/select.h: sys_select.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
-       $(AM_V_at)$(MKDIR_P) sys
+       $(AM_V_at)$(MKDIR_P) '%reldir%/sys'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
index 72a6a4a7ee6e0013d340a2d67d91d8b8680d2ef8..dae62f250ed6192fcbf68f58db14614e740ad6cb 100644 (file)
@@ -31,7 +31,7 @@ lib_SOURCES += sys_socket.c
 # We need the following in order to create <sys/socket.h> when the system
 # doesn't have one that works with the given compiler.
 sys/socket.h: sys_socket.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
-       $(AM_V_at)$(MKDIR_P) sys
+       $(AM_V_at)$(MKDIR_P) '%reldir%/sys'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
index 36bc9567f8a122a04942e4109e22785ec2552846..b778038c7c704c8f0edffed35062f8eb80e1fef3 100644 (file)
@@ -26,7 +26,7 @@ BUILT_SOURCES += sys/stat.h
 # We need the following in order to create <sys/stat.h> when the system
 # has one that is incomplete.
 sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
-       $(AM_V_at)$(MKDIR_P) sys
+       $(AM_V_at)$(MKDIR_P) '%reldir%/sys'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
index b24e68e6c5710e46a691833dec4fbcb8a03c7b6c..07838d2cd10607808b3c0767f1807c010e898674 100644 (file)
@@ -23,7 +23,7 @@ BUILT_SOURCES += sys/time.h
 # We need the following in order to create <sys/time.h> when the system
 # doesn't have one that works with the given compiler.
 sys/time.h: sys_time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
-       $(AM_V_at)$(MKDIR_P) sys
+       $(AM_V_at)$(MKDIR_P) '%reldir%/sys'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
index 96c16e475f757813a2c8c4dd3b42d5f01620350c..704fc17cb72d86b1d7ada5f10fdeb1c07e93f4ee 100644 (file)
@@ -21,7 +21,7 @@ BUILT_SOURCES += sys/times.h
 # We need the following in order to create <sys/times.h> when the system
 # doesn't have one that works with the given compiler.
 sys/times.h: sys_times.in.h $(top_builddir)/config.status $(WARN_ON_USE_H) $(ARG_NONNULL_H)
-       $(AM_V_at)$(MKDIR_P) sys
+       $(AM_V_at)$(MKDIR_P) '%reldir%/sys'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
index 38823d890dd94991949ae3f6a1db04efb1877ecb..e7d9511a6b6272ed2b65e018a52454deda945dca 100644 (file)
@@ -22,7 +22,7 @@ BUILT_SOURCES += sys/types.h
 # We need the following in order to create <sys/types.h> when the system
 # doesn't have one that works with the given compiler.
 sys/types.h: sys_types.in.h $(top_builddir)/config.status
-       $(AM_V_at)$(MKDIR_P) sys
+       $(AM_V_at)$(MKDIR_P) '%reldir%/sys'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
index 460e0ebebb1628763db44553880d692b87bcc30f..1cb23da97be52e9c475ffa76498c1207a5021354 100644 (file)
@@ -21,7 +21,7 @@ BUILT_SOURCES += sys/uio.h
 # We need the following in order to create <sys/uio.h> when the system
 # doesn't have one that works with the given compiler.
 sys/uio.h: sys_uio.in.h $(top_builddir)/config.status
-       $(AM_V_at)$(MKDIR_P) sys
+       $(AM_V_at)$(MKDIR_P) '%reldir%/sys'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
index 05f3b5cc8f0b1493b728a220d496a8e23aaccde9..d3f70dbabf95fd9dade812be6f7760075fa23462 100644 (file)
@@ -21,7 +21,7 @@ BUILT_SOURCES += sys/utsname.h
 # We need the following in order to create <sys/utsname.h> when the system
 # does not have one.
 sys/utsname.h: sys_utsname.in.h $(top_builddir)/config.status $(WARN_ON_USE_H) $(ARG_NONNULL_H)
-       $(AM_V_at)$(MKDIR_P) sys
+       $(AM_V_at)$(MKDIR_P) '%reldir%/sys'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
index 0ae9b4f929157b63b4bb53d63905dde4f900d7fe..e46fbb9d9ea571c945a6d10506877dc61bafb9f5 100644 (file)
@@ -22,7 +22,7 @@ BUILT_SOURCES += sys/wait.h
 # We need the following in order to create <sys/wait.h> when the system
 # has one that is incomplete.
 sys/wait.h: sys_wait.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
-       $(AM_V_at)$(MKDIR_P) sys
+       $(AM_V_at)$(MKDIR_P) '%reldir%/sys'
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
index 64236a2ccc2ad597b92eecab3e8f7d877de33316..715a2e55d9dd475d31704dce8e3d4cb293f0f264 100644 (file)
@@ -11,6 +11,7 @@ stdlib
 
 configure.ac:
 gl_SYSEXITS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(SYSEXITS_H)
@@ -20,6 +21,7 @@ BUILT_SOURCES += $(SYSEXITS_H)
 if GL_GENERATE_SYSEXITS_H
 sysexits.h: sysexits.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''HAVE_SYSEXITS_H''@|$(HAVE_SYSEXITS_H)|g' \
index 59cd4489ac1917ca9e63acfc362a9ee63acfe825..b1a6c5767ed08cbf432b65d93cb1549e16e1cbf7 100644 (file)
@@ -14,6 +14,7 @@ snippet/warn-on-use
 configure.ac:
 gl_TERMIOS_H
 gl_TERMIOS_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += termios.h
@@ -22,6 +23,7 @@ BUILT_SOURCES += termios.h
 # version does not have all declarations.
 termios.h: termios.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
index 0ea7a48c73559954f571f2e08ebf359d56c5ca50..0c01f8d7a208f43958a243ecacaf9f4aa7647f12 100644 (file)
@@ -31,6 +31,7 @@ gl_ANYTHREADLIB_EARLY
 configure.ac:
 gl_THREADS_H
 gl_THREADS_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += threads.h
@@ -39,6 +40,7 @@ BUILT_SOURCES += threads.h
 # doesn't have one.
 threads.h: threads.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''HAVE_THREADS_H''@|$(HAVE_THREADS_H)|g' \
index 236b5ea25e0eed3748169dc7ce52cdff5a8e213c..2b5d9a3646322ca2571fb4a59520930bfe03024d 100644 (file)
@@ -16,6 +16,7 @@ stddef
 configure.ac:
 gl_TIME_H
 gl_TIME_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += time.h
@@ -24,6 +25,7 @@ BUILT_SOURCES += time.h
 # doesn't have one that works with the given compiler.
 time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
index e57ee9976d255c16ddf1cc6aadc19488eeace425..1cf8b7a1ea6a69eae2602d694927890a2667deb6 100644 (file)
@@ -15,12 +15,14 @@ wchar
 configure.ac:
 gl_UCHAR_H
 gl_UCHAR_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += uchar.h
 
 uchar.h: uchar.in.h $(top_builddir)/config.status $(CXXDEFS_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's/@''HAVE_UCHAR_H''@/$(HAVE_UCHAR_H)/g' \
index ef952e78a18d2d4f40d18098a76a16ff3018e85f..2dfea48b04c5c08d7bf09e88c224f9c4491cf5fe 100644 (file)
@@ -12,12 +12,14 @@ stdbool
 
 configure.ac:
 gl_LIBUNISTRING_LIBHEADER([0.9.11], [unicase.h])
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(LIBUNISTRING_UNICASE_H)
 
 unicase.h: unicase.in.h
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/unicase.in.h; \
        } > $@-t && \
index bf2f7c59e2ebc62ddebb5f2b1019c65234a82170..352ac60fac8e11481d4d1f66353612fa40e67950 100644 (file)
@@ -10,6 +10,7 @@ Depends-on:
 gperf
 
 configure.ac:
+AC_PROG_MKDIR_P
 
 Makefile.am:
 lib_SOURCES += unicase/special-casing.c
@@ -24,7 +25,7 @@ EXTRA_DIST           += unicase/special-casing-table.h
 
 # Generate special-casing.h with a declaration that depends on the gperf version.
 unicase/special-casing.h: unicase/special-casing.in.h unicase/special-casing-table.h
-       $(AM_V_at)$(MKDIR_P) unicase
+       $(AM_V_at)$(MKDIR_P) '%reldir%/unicase'
        $(AM_V_GEN)rm -f $@-t $@ && \
        declaration=`grep '^gl_unicase_special_lookup' $(srcdir)/unicase/special-casing-table.h | sed -e 's/register //g'` && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
index c6c35fc89a6b44b7a9772b5a3758778f6232ca13..0d27e23c2d1ebe9489eadc5a745860a9e16b9ae2 100644 (file)
@@ -13,12 +13,14 @@ unitypes
 
 configure.ac:
 gl_LIBUNISTRING_LIBHEADER([0.9.11], [uniconv.h])
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(LIBUNISTRING_UNICONV_H)
 
 uniconv.h: uniconv.in.h
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/uniconv.in.h; \
        } > $@-t && \
index f6b80b8f96dbef45d5d4bc9327c3e683d1d4cc57..25c16fa1a06cdfe5b58d75a7be2c7f05b90879ef 100644 (file)
@@ -11,12 +11,14 @@ stdbool
 
 configure.ac:
 gl_LIBUNISTRING_LIBHEADER([0.9.8], [unictype.h])
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(LIBUNISTRING_UNICTYPE_H)
 
 unictype.h: unictype.in.h
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/unictype.in.h; \
        } > $@-t && \
index 731d6a34ce2b1f0a16d146b0e0478a10d8cf8e6e..fa3f869d0b02027a1a9657d2fabbc1358d4830a0 100644 (file)
@@ -11,12 +11,14 @@ stdbool
 
 configure.ac:
 gl_LIBUNISTRING_LIBHEADER([0.9.8], [unigbrk.h])
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(LIBUNISTRING_UNIGBRK_H)
 
 unigbrk.h: unigbrk.in.h
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/unigbrk.in.h; \
        } > $@-t && \
index 0d29796a56ce93954a0afffb825e439f2e64a416..de3d29dcb1db6f4b4878c2d55df3b0c33f9ed813 100644 (file)
@@ -11,12 +11,14 @@ localcharset
 
 configure.ac:
 gl_LIBUNISTRING_LIBHEADER([0.9.11], [unilbrk.h])
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(LIBUNISTRING_UNILBRK_H)
 
 unilbrk.h: unilbrk.in.h
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/unilbrk.in.h; \
        } > $@-t && \
index 4edb924c43f621e025b777ff7b7d93cf20302007..c316cc4bbf7579e819e588b326958444382476bc 100644 (file)
@@ -10,12 +10,14 @@ unitypes
 
 configure.ac:
 gl_LIBUNISTRING_LIBHEADER([0.9.5], [uniname.h])
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(LIBUNISTRING_UNINAME_H)
 
 uniname.h: uniname.in.h
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/uniname.in.h; \
        } > $@-t && \
index 67bb3261da016f95fd60425627f69c55317ffe5c..edaf088f7e762ed93a02906ac066d10c6c6d0670 100644 (file)
@@ -10,12 +10,14 @@ unitypes
 
 configure.ac:
 gl_LIBUNISTRING_LIBHEADER([0.9.11], [uninorm.h])
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(LIBUNISTRING_UNINORM_H)
 
 uninorm.h: uninorm.in.h
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/uninorm.in.h; \
        } > $@-t && \
index acc9d860248cf352c9b329465a085536fbd182bb..fd81e2b82717f160c04f61b49c734aaec6cda119 100644 (file)
@@ -21,6 +21,7 @@ sys_types
 configure.ac:
 gl_UNISTD_H
 gl_UNISTD_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += unistd.h
@@ -30,6 +31,7 @@ lib_SOURCES += unistd.c
 # <unistd.h> when the system doesn't have one.
 unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
index 6acc7de09697ce4f43d9775a5070ddcfac4ae24f..9f2203bbb60af36036fd9aed71ea3e0b6e4588fd 100644 (file)
@@ -10,12 +10,14 @@ unitypes
 
 configure.ac:
 gl_LIBUNISTRING_LIBHEADER([0.9.11], [unistdio.h])
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(LIBUNISTRING_UNISTDIO_H)
 
 unistdio.h: unistdio.in.h
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/unistdio.in.h; \
        } > $@-t && \
index 4f2fb3737fd674175ea0930f46e6aaced11207a7..e0f2113b702b38b2ca193f9ba7723b38daf24caa 100644 (file)
@@ -12,12 +12,14 @@ inline
 
 configure.ac:
 gl_LIBUNISTRING_LIBHEADER([0.9.11], [unistr.h])
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(LIBUNISTRING_UNISTR_H)
 
 unistr.h: unistr.in.h
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/unistr.in.h; \
        } > $@-t && \
index 46ed80d8c83cfae0d099e0380b96cacd0df31117..a8e441314047f207bba626952f2359cb8420aae3 100644 (file)
@@ -10,6 +10,7 @@ stdint
 
 configure.ac:
 gl_LIBUNISTRING_LIBHEADER([0.9.11], [unitypes.h])
+AC_PROG_MKDIR_P
 
 AH_VERBATIM([unitypes_restrict], [
 /* This definition is a duplicate of the one in unitypes.h.
@@ -32,6 +33,7 @@ BUILT_SOURCES += $(LIBUNISTRING_UNITYPES_H)
 
 unitypes.h: unitypes.in.h
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/unitypes.in.h; \
        } > $@-t && \
index 3dc11b472d1bf81802b5b1fd99ec0f2a18535d8b..f9a947bbf1c4dcaea14714af41a824c31e721cb3 100644 (file)
@@ -10,12 +10,14 @@ unitypes
 
 configure.ac:
 gl_LIBUNISTRING_LIBHEADER([0.9.11], [uniwbrk.h])
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(LIBUNISTRING_UNIWBRK_H)
 
 uniwbrk.h: uniwbrk.in.h
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/uniwbrk.in.h; \
        } > $@-t && \
index fbf4d41f5013fea4c952295ff3b8c9ff4c875bad..ac7167db8f6bdbe6912fb13bd601d332286bb6f2 100644 (file)
@@ -11,12 +11,14 @@ unitypes
 
 configure.ac:
 gl_LIBUNISTRING_LIBHEADER([0.9.11], [uniwidth.h])
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += $(LIBUNISTRING_UNIWIDTH_H)
 
 uniwidth.h: uniwidth.in.h
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          cat $(srcdir)/uniwidth.in.h; \
        } > $@-t && \
index beb5159cb18a8358815efe57ce9acb442a4eb197..0b2a341192e283f10e296c4d7e3e85bba355b459 100644 (file)
@@ -14,6 +14,7 @@ snippet/warn-on-use
 configure.ac:
 gl_UTIME_H
 gl_UTIME_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += utime.h
@@ -22,6 +23,7 @@ BUILT_SOURCES += utime.h
 # doesn't have one that works with the given compiler.
 utime.h: utime.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's/@''HAVE_UTIME_H''@/$(HAVE_UTIME_H)/g' \
index becd7968a95c20015a1daee1190fe2bbda8f9f26..9c37594a53289abd52d29bb9eeb2a458334182d7 100644 (file)
@@ -19,6 +19,7 @@ stdlib
 configure.ac:
 gl_WCHAR_H
 gl_WCHAR_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += wchar.h
@@ -27,6 +28,7 @@ BUILT_SOURCES += wchar.h
 # version does not work standalone.
 wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
index 24b5fe68feb575e0694dbd3ae75830a7a488e192..0993a7c3c1adc3d26f381a2069a59e60df3b64b7 100644 (file)
@@ -16,6 +16,7 @@ snippet/warn-on-use
 configure.ac:
 gl_WCTYPE_H
 gl_WCTYPE_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += wctype.h
@@ -25,6 +26,7 @@ lib_SOURCES += wctype-h.c
 # doesn't have one that works with the given compiler.
 wctype.h: wctype.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
+       $(MKDIR_P) '%reldir%' && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
              -e 's/@''HAVE_WCTYPE_H''@/$(HAVE_WCTYPE_H)/g' \