diff options
author | Ross Burton <ross.burton@intel.com> | 2014-07-10 15:39:05 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2018-08-11 15:29:48 -0400 |
commit | 5abc0414922a3c99a80fdc53b1acb0f44f6e2aac (patch) | |
tree | 4c35f84ac29e5f10fc2cf2bf31ceee99dacdbdec | |
parent | cdca044059ac8f6dec8bb641ef1bdd9bac0910e2 (diff) | |
download | e2fsprogs-5abc0414922a3c99a80fdc53b1acb0f44f6e2aac.tar.gz |
build: use MKDIR_P instead of MKINSTALLDIRS
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r-- | MCONFIG.in | 2 | ||||
-rw-r--r-- | acinclude.m4 | 18 | ||||
-rwxr-xr-x | configure | 15 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | debugfs/Makefile.in | 4 | ||||
-rw-r--r-- | doc/Makefile.in | 4 | ||||
-rw-r--r-- | e2fsck/Makefile.in | 4 | ||||
-rw-r--r-- | intl/Makefile.in | 4 | ||||
-rw-r--r-- | lib/Makefile.elf-lib | 4 | ||||
-rw-r--r-- | lib/Makefile.solaris-lib | 2 | ||||
-rw-r--r-- | lib/blkid/Makefile.in | 4 | ||||
-rw-r--r-- | lib/e2p/Makefile.in | 4 | ||||
-rw-r--r-- | lib/et/Makefile.in | 4 | ||||
-rw-r--r-- | lib/ext2fs/Makefile.in | 4 | ||||
-rw-r--r-- | lib/ss/Makefile.in | 4 | ||||
-rw-r--r-- | lib/uuid/Makefile.in | 4 | ||||
-rw-r--r-- | misc/Makefile.in | 4 | ||||
-rw-r--r-- | po/Makefile.in.in | 3 | ||||
-rw-r--r-- | resize/Makefile.in | 4 |
19 files changed, 31 insertions, 63 deletions
@@ -110,7 +110,7 @@ LDCONFIG = @LDCONFIG@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ -MKINSTALLDIRS = @MKINSTALLDIRS@ +MKDIR_P = @MKDIR_P@ # # Library definitions diff --git a/acinclude.m4 b/acinclude.m4 index 912383a7..e9890f75 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -133,21 +133,3 @@ dnl If there was a GNU version, then set @ifGNUmake@ to the empty string, '#' ot AC_SUBST(ifGNUmake) AC_SUBST(ifNotGNUmake) ] ) -# was originally from nls.m4 serial 1 (gettext-0.12) -AC_DEFUN([AM_MKINSTALLDIRS], -[ - dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly - dnl find the mkinstalldirs script in another subdir but $(top_srcdir). - dnl Try to locate it. - MKINSTALLDIRS= - if test -n "$ac_aux_dir"; then - case "$ac_aux_dir" in - /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; - *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; - esac - fi - if test -z "$MKINSTALLDIRS"; then - MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" - fi - AC_SUBST(MKINSTALLDIRS) -]) @@ -630,7 +630,6 @@ CFLAGS_STLIB CFLAGS_SHLIB BUILD_LDFLAGS BUILD_CFLAGS -MKINSTALLDIRS INCLUDES DO_TEST_SUITE LDFLAGS_STATIC @@ -11587,6 +11586,7 @@ $as_echo "no" >&6; } fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s @@ -13853,19 +13853,6 @@ if test -n "$WITH_DIET_LIBC" ; then INCLUDES="$INCLUDES -D_REENTRANT" fi - - MKINSTALLDIRS= - if test -n "$ac_aux_dir"; then - case "$ac_aux_dir" in - /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; - *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; - esac - fi - if test -z "$MKINSTALLDIRS"; then - MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" - fi - - if test $cross_compiling = no; then BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H" BUILD_LDFLAGS="$LDFLAGS" diff --git a/configure.ac b/configure.ac index 5e837c9c..158e41ec 100644 --- a/configure.ac +++ b/configure.ac @@ -862,6 +862,7 @@ AC_SUBST(BINARY_TYPE) AC_PROG_MAKE_SET CHECK_GNU_MAKE AC_PATH_PROG(LN, ln, ln) +AC_PROG_MKDIR_P AC_PROG_LN_S AC_PATH_PROG(MV, mv, mv) AC_PATH_PROG(CP, cp, cp) @@ -1451,7 +1452,6 @@ if test -n "$WITH_DIET_LIBC" ; then INCLUDES="$INCLUDES -D_REENTRANT" fi AC_SUBST(INCLUDES) -AM_MKINSTALLDIRS dnl dnl Build CFLAGS dnl diff --git a/debugfs/Makefile.in b/debugfs/Makefile.in index dede0680..bb4d1947 100644 --- a/debugfs/Makefile.in +++ b/debugfs/Makefile.in @@ -117,8 +117,8 @@ debugfs.8: $(DEP_SUBSTITUTE) $(srcdir)/debugfs.8.in $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/debugfs.8.in debugfs.8 installdirs: - $(E) " MKINSTALLDIRS $(root_sbindir) $(man8dir)" - $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(root_sbindir) \ + $(E) " MKDIR_P $(root_sbindir) $(man8dir)" + $(Q) $(MKDIR_P) $(DESTDIR)$(root_sbindir) \ $(DESTDIR)$(man8dir) install: $(PROGS) $(MANPAGES) installdirs diff --git a/doc/Makefile.in b/doc/Makefile.in index 0bee4e46..dab60947 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -21,8 +21,8 @@ all:: libext2fs.info libext2fs.dvi libext2fs.html install-doc-libs: libext2fs.info libext2fs.dvi $(Q) $(RM) -rf $(DESTDIR)$(infodir)/libext2fs.info* - $(E) " MKINSTALLDIRS $(infodir)" - $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(infodir) + $(E) " MKDIR_P $(infodir)" + $(Q) $(MKDIR_P) $(DESTDIR)$(infodir) -$(Q) for i in libext2fs.info* ; do \ echo " INSTALL_DATA $(infodir)/$$i" ; \ $(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i ; \ diff --git a/e2fsck/Makefile.in b/e2fsck/Makefile.in index 8fe05e03..676ab7dd 100644 --- a/e2fsck/Makefile.in +++ b/e2fsck/Makefile.in @@ -187,8 +187,8 @@ e2fsck.conf.5: $(DEP_SUBSTITUTE) $(srcdir)/e2fsck.conf.5.in $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2fsck.conf.5.in e2fsck.conf.5 installdirs: - $(E) " MKINSTALLDIRS $(root_sbindir) $(man8dir)" - $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(root_sbindir) \ + $(E) " MKDIR_P $(root_sbindir) $(man8dir)" + $(Q) $(MKDIR_P) $(DESTDIR)$(root_sbindir) \ $(DESTDIR)$(man8dir) $(DESTDIR)$(man5dir) install: $(PROGS) $(MANPAGES) $(FMANPAGES) installdirs diff --git a/intl/Makefile.in b/intl/Makefile.in index 70d78349..e037e23c 100644 --- a/intl/Makefile.in +++ b/intl/Makefile.in @@ -40,8 +40,8 @@ subdir = intl INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ -MKINSTALLDIRS = @MKINSTALLDIRS@ -mkinstalldirs = $(SHELL) $(MKINSTALLDIRS) +MKDIR_P = @MKDIR_P@ +mkinstalldirs = $(SHELL) $(MKDIR_P) @SET_MAKE@ diff --git a/lib/Makefile.elf-lib b/lib/Makefile.elf-lib index 4e88c052..bd7b2b3c 100644 --- a/lib/Makefile.elf-lib +++ b/lib/Makefile.elf-lib @@ -35,8 +35,8 @@ $(ELF_LIB): $(OBJS) $(Q) (cd ..; $(LN) $(LINK_BUILD_FLAGS) $(ELF_LIB) $(ELF_SONAME)) installdirs-elf-lib:: - $(E) " MKINSTALLDIRS $(ELF_INSTALL_DIR) $(libdir)" - $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(ELF_INSTALL_DIR) \ + $(E) " MKDIR_P $(ELF_INSTALL_DIR) $(libdir)" + $(Q) $(MKDIR_P) $(DESTDIR)$(ELF_INSTALL_DIR) \ $(DESTDIR)$(libdir) installdirs:: installdirs-elf-lib diff --git a/lib/Makefile.solaris-lib b/lib/Makefile.solaris-lib index a3d395e5..304df7d4 100644 --- a/lib/Makefile.solaris-lib +++ b/lib/Makefile.solaris-lib @@ -35,7 +35,7 @@ $(ELF_LIB): $(OBJS) $(Q) (cd ..; $(LN) $(LINK_BUILD_FLAGS) $(ELF_LIB) $(ELF_SONAME)) installdirs-elf-lib:: - $(MKINSTALLDIRS) $(DESTDIR)$(ELF_INSTALL_DIR) \ + $(MKDIR_P) $(DESTDIR)$(ELF_INSTALL_DIR) \ $(DESTDIR)$(libdir) installdirs:: installdirs-elf-lib diff --git a/lib/blkid/Makefile.in b/lib/blkid/Makefile.in index 0be2da5c..850d6882 100644 --- a/lib/blkid/Makefile.in +++ b/lib/blkid/Makefile.in @@ -146,8 +146,8 @@ blkid.pc: $(srcdir)/blkid.pc.in $(top_builddir)/config.status $(Q) cd $(top_builddir); CONFIG_FILES=lib/blkid/blkid.pc ./config.status installdirs:: - $(E) " MKINSTALLDIRS $(libdir) $(includedir)/blkid" - $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(libdir) \ + $(E) " MKDIR_P $(libdir) $(includedir)/blkid" + $(Q) $(MKDIR_P) $(DESTDIR)$(libdir) \ $(DESTDIR)$(includedir)/blkid $(DESTDIR)$(pkgconfigdir) install:: all installdirs diff --git a/lib/e2p/Makefile.in b/lib/e2p/Makefile.in index 534d2291..2b0aa191 100644 --- a/lib/e2p/Makefile.in +++ b/lib/e2p/Makefile.in @@ -80,8 +80,8 @@ fullcheck check:: tst_ostype tst_feature ./tst_feature installdirs:: - $(E) " MKINSTALLDIRS $(libdir) $(includedir)/e2p" - $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(libdir) \ + $(E) " MKDIR_P $(libdir) $(includedir)/e2p" + $(Q) $(MKDIR_P) $(DESTDIR)$(libdir) \ $(DESTDIR)$(includedir)/e2p $(DESTDIR)$(pkgconfigdir) install:: all installdirs diff --git a/lib/et/Makefile.in b/lib/et/Makefile.in index 0344679e..16e29ea4 100644 --- a/lib/et/Makefile.in +++ b/lib/et/Makefile.in @@ -100,8 +100,8 @@ TAGS: $(SRCS) $(TAGS) $(SRCS) installdirs:: - $(E) " MKINSTALLDIRS $(libdir) $(includedir)/et $(datadir)/et $(bindir) $(man1dir) $(man3dir)" - $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(libdir) \ + $(E) " MKDIR_P $(libdir) $(includedir)/et $(datadir)/et $(bindir) $(man1dir) $(man3dir)" + $(Q) $(MKDIR_P) $(DESTDIR)$(libdir) \ $(DESTDIR)$(includedir)/et $(DESTDIR)$(datadir)/et \ $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) \ $(DESTDIR)$(man3dir) $(DESTDIR)$(pkgconfigdir) diff --git a/lib/ext2fs/Makefile.in b/lib/ext2fs/Makefile.in index 99302ca9..4a197cdf 100644 --- a/lib/ext2fs/Makefile.in +++ b/lib/ext2fs/Makefile.in @@ -553,8 +553,8 @@ fullcheck check:: tst_bitops tst_badblocks tst_iscan tst_types tst_icount \ $(TESTENV) ./tst_digest_encode installdirs:: - $(E) " MKINSTALLDIRS $(libdir) $(includedir)/ext2fs" - $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(libdir) \ + $(E) " MKDIR_P $(libdir) $(includedir)/ext2fs" + $(Q) $(MKDIR_P) $(DESTDIR)$(libdir) \ $(DESTDIR)$(includedir)/ext2fs $(DESTDIR)$(pkgconfigdir) install:: all $(HFILES) $(HFILES_IN) installdirs ext2fs.pc diff --git a/lib/ss/Makefile.in b/lib/ss/Makefile.in index ee18dc88..bf2989b1 100644 --- a/lib/ss/Makefile.in +++ b/lib/ss/Makefile.in @@ -124,8 +124,8 @@ ss.pc: $(srcdir)/ss.pc.in $(top_builddir)/config.status $(Q) cd $(top_builddir); CONFIG_FILES=lib/ss/ss.pc ./config.status installdirs:: - $(E) " MKINSTALLDIRS $(libdir) $(includedir)/ss $(datadir)/ss $(bindir)" - $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(libdir) \ + $(E) " MKDIR_P $(libdir) $(includedir)/ss $(datadir)/ss $(bindir)" + $(Q) $(MKDIR_P) $(DESTDIR)$(libdir) \ $(DESTDIR)$(includedir)/ss $(DESTDIR)$(datadir)/ss \ $(DESTDIR)$(bindir) $(DESTDIR)$(pkgconfigdir) diff --git a/lib/uuid/Makefile.in b/lib/uuid/Makefile.in index 4b444182..972459f8 100644 --- a/lib/uuid/Makefile.in +++ b/lib/uuid/Makefile.in @@ -130,8 +130,8 @@ uuid.pc: $(srcdir)/uuid.pc.in $(top_builddir)/config.status $(Q) cd $(top_builddir); CONFIG_FILES=lib/uuid/uuid.pc ./config.status installdirs:: - $(E) " MKINSTALLDIRS $(libdir) $(includedir)/uuid $(man3dir)" - $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(libdir) \ + $(E) " MKDIR_P $(libdir) $(includedir)/uuid $(man3dir)" + $(Q) $(MKDIR_P) $(DESTDIR)$(libdir) \ $(DESTDIR)$(includedir)/uuid $(DESTDIR)$(man3dir) \ $(DESTDIR)$(pkgconfigdir) diff --git a/misc/Makefile.in b/misc/Makefile.in index 99028413..22c98489 100644 --- a/misc/Makefile.in +++ b/misc/Makefile.in @@ -529,8 +529,8 @@ filefrag.8: $(DEP_SUBSTITUTE) $(srcdir)/filefrag.8.in $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/filefrag.8.in filefrag.8 installdirs: - $(E) " MKINSTALLDIRS $(sbindir) $(root_sbindir) $(bindir) $(man1dir) $(man8dir) $(libdir) $(root_sysconfdir)" - $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(sbindir) \ + $(E) " MKDIR_P $(sbindir) $(root_sbindir) $(bindir) $(man1dir) $(man8dir) $(libdir) $(root_sysconfdir)" + $(Q) $(MKDIR_P) $(DESTDIR)$(sbindir) \ $(DESTDIR)$(root_sbindir) $(DESTDIR)$(bindir) \ $(DESTDIR)$(man1dir) $(DESTDIR)$(man8dir) \ $(DESTDIR)$(man1dir) $(DESTDIR)$(man5dir) \ diff --git a/po/Makefile.in.in b/po/Makefile.in.in index eff37d33..67e1f2f4 100644 --- a/po/Makefile.in.in +++ b/po/Makefile.in.in @@ -29,8 +29,7 @@ gettextsrcdir = $(datadir)/gettext/po INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ -MKINSTALLDIRS = @MKINSTALLDIRS@ -mkinstalldirs = $(SHELL) $(MKINSTALLDIRS) +mkinstalldirs = @MKDIR_P@ GMSGFMT = @GMSGFMT@ MSGFMT = @MSGFMT@ diff --git a/resize/Makefile.in b/resize/Makefile.in index 8090333e..f7f836a2 100644 --- a/resize/Makefile.in +++ b/resize/Makefile.in @@ -60,8 +60,8 @@ test_extent: $(TEST_EXTENT_OBJS) $(Q) $(CC) $(ALL_LDFLAGS) -o test_extent $(TEST_EXTENT_OBJS) $(LIBS) installdirs: - $(E) " MKINSTALLDIRS $(root_sbindir) $(man8dir)" - $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(root_sbindir) \ + $(E) " MKDIR_P $(root_sbindir) $(man8dir)" + $(Q) $(MKDIR_P) $(DESTDIR)$(root_sbindir) \ $(DESTDIR)$(man8dir) install: $(PROGS) $(MANPAGES) installdirs |