]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - autogen.sh
4 # Helps generate autoconf/automake stuff, when code is checked out from SCM.
6 # Copyright (C) 2006-2010 - Karel Zak <kzak@redhat.com>
10 test -z "$srcdir" && srcdir
=.
17 test -f mount
/mount.c ||
{
19 echo "You must run this script in the top-level util-linux directory"
24 (autopoint
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
26 echo "You must have autopoint installed to generate util-linux build system."
27 echo "The autopoint command is part of the GNU gettext package."
31 (autoconf
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
33 echo "You must have autoconf installed to generate util-linux build system."
37 (autoheader
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
39 echo "You must have autoheader installed to generate util-linux build system."
40 echo "The autoheader command is part of the GNU autoconf package."
44 (libtool
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
46 echo "You must have libtool-2 installed to generate util-linux build system."
50 (automake
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
52 echo "You must have automake installed to generate util-linux build system."
57 ltver
=$
(libtoolize
--version |
awk '/^libtoolize/ { print $4 }')
58 test ${ltver##2.} = "$ltver" && {
59 echo "You must have libtool version >= 2.x.x, but you have $ltver."
63 if test "$DIE" -eq 1; then
68 echo "Generate build-system by:"
69 echo " autopoint: $(autopoint --version | head -1)"
70 echo " aclocal: $(aclocal --version | head -1)"
71 echo " autoconf: $(autoconf --version | head -1)"
72 echo " autoheader: $(autoheader --version | head -1)"
73 echo " automake: $(automake --version | head -1)"
74 echo " libtoolize: $(libtoolize --version | head -1)"
78 autopoint
--force $AP_OPTS
79 libtoolize
--force $LT_OPTS
80 aclocal
-I m4 $AL_OPTS
84 automake
--add-missing $AM_OPTS
89 echo "Now type '$srcdir/configure' and 'make' to compile."