X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/382855dd3f69cdce3e3b4eb6da392f881e7825da..92844905397be3ae3999c8cdbdecb130b0e41756:/autogen.sh diff --git a/autogen.sh b/autogen.sh index 6bcc421..abdb256 100755 --- a/autogen.sh +++ b/autogen.sh @@ -6,10 +6,14 @@ die() exit 1 } -test -d m4 || mkdir m4 +test -d m4 || mkdir m4 +test -d lib || mkdir lib -aclocal -I m4 || die "Failed to run aclocal." -autoheader || die "Failed to run autoheader." -libtoolize --copy --ltdl || die "Failed to run libtoolize." -automake --add-missing || die "Failed to run automake." -autoconf || die "Failed to run autoconf." +git submodule update --init || echo "Failed to update Gnulib sources from git." +if test -x gnulib/gnulib-tool; then + gnulib/gnulib-tool --update || die "Failed to update gnulib." +else + die "Gnulib sources are not properly installed in gnulib/" +fi + +autoreconf -fis