Commit 19735fbd authored by Christophe Fergeau's avatar Christophe Fergeau Committed by Nikias Bassen

Allow to run autogen.sh outside $top_srcdir

This makes it more convenient to do builds out of the source dir.
parent 2af73182
#!/bin/sh #!/bin/sh
gprefix=`which glibtoolize 2>&1 >/dev/null`
if [ $? -eq 0 ]; then srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
(
cd "$srcdir"
gprefix=`which glibtoolize 2>&1 >/dev/null`
if [ $? -eq 0 ]; then
glibtoolize --force glibtoolize --force
else else
libtoolize --force libtoolize --force
fi fi
aclocal -I m4 aclocal -I m4
autoheader autoheader
automake --add-missing automake --add-missing
autoconf autoconf
)
if [ -z "$NOCONFIGURE" ]; then if [ -z "$NOCONFIGURE" ]; then
./configure "$@" "$srcdir/configure" "$@"
fi fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment