mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-20 07:50:02 +01:00
Fixes to the autogen.sh script
- Proper formatting and indenting - Tell aclocal that we use m4/ as macro directory and the final dist tarball actually contains the m4/ directory. - Run intltoolize before aclocal, so aclocal does not append intltool.m4 to aclocal.m4 Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
This commit is contained in:
parent
f435bf07ac
commit
42ecfd7bdc
1 changed files with 31 additions and 23 deletions
10
autogen.sh
10
autogen.sh
|
|
@ -1,6 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Run this to generate all the initial makefiles, etc.
|
# Run this to generate all the initial makefiles, etc.
|
||||||
|
|
||||||
|
ACLOCAL_FLAGS="-I m4"
|
||||||
|
|
||||||
touch ChangeLog
|
touch ChangeLog
|
||||||
|
|
||||||
srcdir=`dirname $0`
|
srcdir=`dirname $0`
|
||||||
|
|
@ -81,18 +83,24 @@ esac
|
||||||
libtoolize --force --copy
|
libtoolize --force --copy
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Running intltoolize ..."
|
||||||
|
intltoolize --copy --force --automake
|
||||||
|
|
||||||
echo "Running aclocal $aclocalinclude ..."
|
echo "Running aclocal $aclocalinclude ..."
|
||||||
aclocal $aclocalinclude
|
aclocal $aclocalinclude
|
||||||
|
|
||||||
if grep "^AC_CONFIG_HEADERS" configure.ac >/dev/null; then
|
if grep "^AC_CONFIG_HEADERS" configure.ac >/dev/null; then
|
||||||
echo "Running autoheader..."
|
echo "Running autoheader..."
|
||||||
autoheader
|
autoheader
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Running automake --add-missing --gnu -Wno-portability $am_opt ..."
|
echo "Running automake --add-missing --gnu -Wno-portability $am_opt ..."
|
||||||
automake --add-missing --gnu -Wno-portability $am_opt
|
automake --add-missing --gnu -Wno-portability $am_opt
|
||||||
|
|
||||||
echo "Running autoconf ..."
|
echo "Running autoconf ..."
|
||||||
autoconf
|
autoconf
|
||||||
|
|
||||||
intltoolize --copy --force --automake || exit 1
|
|
||||||
|
|
||||||
conf_flags="--enable-maintainer-mode --enable-gtk-doc"
|
conf_flags="--enable-maintainer-mode --enable-gtk-doc"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue