swh/ladspa — Issue #1: [PATCH] aclocal use `m4' dir, skip configure if wanted
Author: h3xx
Created: 2011-11-07 21:19:20+00:00
State: open

This tiny patch fixes three problems:

1) makes aclocal use the `m4' directory when applying macros; not doing this results in an error
2) optionally skip configuration at the end of autogen.sh via the GNOME-standard $NOCONFIGURE environment variable
3) proper quoting of configure options

diff --git a/autogen.sh b/autogen.sh
index b6c1e73..c37e214 100755
--- swh-plugins/autogen.sh
+++ swh-plugins/autogen.sh
@@ -9,7 +9,7 @@ echo aclocal...
exit 1
}

-aclocal || exit 1
+aclocal -I m4 || exit 1

echo autoheader...
(autoheader --version) < /dev/null > /dev/null 2>&1 || {
@@ -35,6 +35,6 @@ echo autoconf...

autoconf || exit 1

-./configure $@
+test -n "$NOCONFIGURE" || ./configure "$@"

exit 0