Skip to content

Commit

Permalink
Fix running autogen.sh out-of-tree
Browse files Browse the repository at this point in the history
As done in GNOME's jhbuild building tool.

https://bugzilla.libsdl.org/show_bug.cgi?id=3374
  • Loading branch information
hadess committed Oct 1, 2016
1 parent 9dfe540 commit ca8ef2b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions autogen.sh
Expand Up @@ -3,6 +3,10 @@
echo "Generating build information using autoconf"
echo "This may take a while ..."

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
pushd $srcdir

# Regenerate configuration files
cat acinclude/* >aclocal.m4
found=false
Expand All @@ -15,5 +19,7 @@ if test x$found = xfalse; then
fi
(cd test; sh autogen.sh)

popd

# Run configure for this platform
echo "Now you are ready to run ./configure"

0 comments on commit ca8ef2b

Please sign in to comment.