Skip to content

Commit

Permalink
autotools: make autogen.sh more readable
Browse files Browse the repository at this point in the history
Signed-off-by: Karel Zak <kzak@redhat.com>
  • Loading branch information
karelzak committed Feb 18, 2025
1 parent 8b14868 commit 349753d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ if test "$DIE" -eq 1; then
exit 1
fi

version=$(./tools/git-version-gen)

echo
echo "util-linux $version"
echo
echo "Generating build-system with:"
echo " autopoint: $(autopoint --version | head -1)"
Expand All @@ -123,13 +127,20 @@ echo
rm -rf autom4te.cache

set -e

echo "== POT updates"
po/update-potfiles

echo "== autopoint --force $AP_OPTS"
autopoint_fun --force $AP_OPTS

if ! grep -q datarootdir po/Makefile.in.in; then
echo "INFO: autopoint does not honor dataroot variable, patching."
sed -i -e 's/^datadir *=\(.*\)/datarootdir = @datarootdir@\
datadir = @datadir@/g' po/Makefile.in.in
fi

echo "== $LIBTOOLIZE --force $LT_OPTS"
$LIBTOOLIZE --force $LT_OPTS

# patch libtool
Expand All @@ -147,10 +158,16 @@ if test -f tools/libtool.m4.patch; then
set -e
fi

echo "== aclocal $AL_OPTS"
aclocal -I m4 $AL_OPTS

echo "== autoconf $AC_OPTS"
autoconf $AC_OPTS

echo "== autoheader $AH_OPTS"
autoheader $AH_OPTS

echo "== automake --add-missing $AM_OPTS"
automake --add-missing $AM_OPTS


Expand Down

0 comments on commit 349753d

Please sign in to comment.