From b57f5b71e1fc1f0d8361d238db72c537fc3808cb Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Fri, 21 Jun 2013 20:59:55 +0000 Subject: Modernize the autogen.sh script It was failing to find the m4 macros directory with automake 1.13.2. This is exactly the same autogen.sh we are using in all the core sugar modules. --- diff --git a/autogen.sh b/autogen.sh index dacf40e..bac5247 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,9 +1,13 @@ #!/bin/sh -aclocal -I m4/ $ACLOCAL_FLAGS --install || exit 1 -libtoolize --copy --force || exit 1 -autoheader || exit 1 -autoconf || exit 1 -automake -a -c || exit 1 +test -n "${srcdir}" || srcdir=`dirname "$0"` +test -n "${srcdir}" || srcdir="$(pwd)" -[ "$NOCONFIGURE" ] || ./configure CFLAGS="$CFLAGS -Wall" --enable-maintainer-mode "$@" +olddir="$(pwd)" +cd "$srcdir" + +intltoolize +autoreconf -i + +cd "$olddir" +"$srcdir/configure" --enable-maintainer-mode "$@" -- cgit v0.9.1