From 1dea266593edb766d6d898c79451ef193eb17cfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Tue, 30 Sep 2014 14:12:22 +0200 Subject: gtkdocize.in: ensure that m4 directory exists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some packages set AC_CONFIG_MACRO_DIR without shipping macros. These end up in errors like | ln: target 'm4/' is not a directory: No such file or directory | cp: cannot create regular file 'm4/': Not a directory Note: This error does not occure e.g when libtoolize is run before because it creates macro directory. Signed-off-by: Andreas Müller --- gtkdocize.in | 1 + 1 file changed, 1 insertion(+) diff --git a/gtkdocize.in b/gtkdocize.in index 93d4acc..b33fa31 100644 --- a/gtkdocize.in +++ b/gtkdocize.in @@ -102,6 +102,7 @@ fi # the correct flags must be passed to aclocal for it to find the macro. m4dir=`cat "$configure" | grep '^AC_CONFIG_MACRO_DIR' | sed -n -e 's/AC_CONFIG_MACRO_DIR(\([^()]*\))/\1/p' | sed -e 's/^\[\(.*\)\]$/\1/' | sed -e 1q` if test -n "$m4dir"; then + mkdir -p $m4dir rm -f $m4dir/gtk-doc.m4 if test "$copy" = yes; then cp -f $datadir/aclocal/gtk-doc.m4 $m4dir/ || -- cgit v1.2.1