Tweak the autogen.sh so the commands used do not create symlinks and
also remove the autom4te.cache dir that was not in the kmod-33 release.
This is v34-only since autotools was completely removed from master
branch.
Closes: https://github.com/kmod-project/kmod/issues/292
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
if [ -n "$MESON_DIST_ROOT" ]; then
topdir="$MESON_DIST_ROOT"
+ gtkdocize_args="--copy"
+ autoreconf_args=
else
topdir=$(dirname $0)
+ gtkdocize_args=
+ autoreconf_args="--symlink"
fi
cd $topdir
-gtkdocize --docdir libkmod/docs || NO_GTK_DOC="yes"
+gtkdocize ${gtkdocize_args} --docdir libkmod/docs || NO_GTK_DOC="yes"
if [ "x$NO_GTK_DOC" = "xyes" ]
then
for f in libkmod/docs/gtk-doc.make m4/gtk-doc.m4
done
fi
-autoreconf --force --install --symlink
+autoreconf --force --install ${autoreconf_args}
libdir() {
echo $(cd "$1/$(gcc -print-multi-os-directory)"; pwd)
# dist && autotools compat
# ------------------------------------------------------------------------------
-meson.add_dist_script('autogen.sh')
+meson.add_dist_script('scripts/autogen-for-tarball.sh')
# ------------------------------------------------------------------
# documentation
--- /dev/null
+#!/bin/sh
+
+cd "$MESON_DIST_ROOT"
+./autogen.sh
+rm -rf autom4te.cache