The build can now be built outside the source tree. We need to temporarily jump into the source tree, though, to allow autotools to do some in-tree configuration.
Caveat: this patch doesn't make autogen.sh ready for parallel builds of the same package. Based on the patches #1062 [1] by Marco P. Gritti <ma...@marcopg.org> and #1557 [2] by Daniel Narvaez <dwnarv...@gmail.com> [1] https://patchwork.sugarlabs.org/patch/1062/ [2] https://patchwork.sugarlabs.org/patch/1557/ Signed-off-by: Caspar Bothmer <cas...@activitycentral.com> --- autogen.sh | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/autogen.sh b/autogen.sh index bac5247..15fc7c0 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,13 +1,18 @@ #!/bin/sh -test -n "${srcdir}" || srcdir=`dirname "$0"` -test -n "${srcdir}" || srcdir="$(pwd)" - -olddir="$(pwd)" -cd "$srcdir" +srcdir="$(dirname "$0")" # POSIX dirname returns at least "." +builddir="$(pwd)" +# We temporarily jump into srcdir to allow +# autoreconf to take into account the changes +# by intltoolize. +# +# Warning: this does not allow parallel builds of +# this package! +# +cd "${srcdir}" intltoolize autoreconf -i +cd "${builddir}" -cd "$olddir" -"$srcdir/configure" --enable-maintainer-mode "$@" +"${srcdir}/configure" --enable-maintainer-mode "$@" -- 1.7.10 _______________________________________________ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel