4 # Helps generate autoconf/automake stuff, when code is checked
7 # The script is copied from util-linux package.
11 test -z "$srcdir" && srcdir=.
18 test -f src/dhcpd-pools.c || {
20 echo "You must run this script in the top-level util-linux directory"
25 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
27 echo "You must have autoconf installed to generate util-linux build system."
31 (autoheader --version) < /dev/null > /dev/null 2>&1 || {
33 echo "You must have autoheader installed to generate util-linux build system."
34 echo "The autoheader command is part of the GNU autoconf package."
38 (libtool --version) < /dev/null > /dev/null 2>&1 || {
40 echo "You must have libtool-2 installed to generate util-linux build system."
44 (automake --version) < /dev/null > /dev/null 2>&1 || {
46 echo "You must have automake installed to generate util-linux build system."
51 ltver=$(libtoolize --version | awk '/^libtoolize/ { print $4 }')
52 test ${ltver##2.} == "$ltver" && {
53 echo "You must have libtool version >= 2.x.x, but you have $ltver."
57 if test "$DIE" -eq 1; then
62 echo "Generate build-system by:"
63 echo " aclocal: $(aclocal --version | head -1)"
64 echo " autoconf: $(autoconf --version | head -1)"
65 echo " autoheader: $(autoheader --version | head -1)"
66 echo " automake: $(automake --version | head -1)"
67 echo " libtoolize: $(libtoolize --version | head -1)"
70 libtoolize --force $LT_OPTS
75 automake --add-missing $AM_OPTS
80 echo "Now type '$srcdir/configure' and 'make' to compile."