Allow configuration outside $(srcdir)
This commit is contained in:
parent
af0296ecc8
commit
422968b0c1
@ -1,6 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
test -n "$srcdir" || srcdir=`dirname "$0"`
|
||||||
|
test -n "$srcdir" || srcdir=.
|
||||||
|
|
||||||
|
olddir=`pwd`
|
||||||
|
cd "$srcdir"
|
||||||
|
|
||||||
autoreconf --force --install --symlink --warnings=all
|
autoreconf --force --install --symlink --warnings=all
|
||||||
|
|
||||||
if test -z "${NOCONFIGURE}"; then
|
if test -z "${NOCONFIGURE}"; then
|
||||||
@ -8,3 +15,5 @@ if test -z "${NOCONFIGURE}"; then
|
|||||||
./configure --prefix=/usr "$@"
|
./configure --prefix=/usr "$@"
|
||||||
make clean
|
make clean
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cd "$olddir"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user