autotools: modified autogen.sh to be able to build from any directory.

Summary:
Now we cannot have a designated build directory for building EFL. We have to build from the same source folder only. So have modified autogen.sh script
so that we can build from any directory. This is similar to the one which I had submitted for Enlightenment and Elementary.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: devilhorns, cedric, raster

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1480

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Srivardhan Hebbar 2014-09-24 10:20:07 +02:00 committed by Cedric BAIL
parent 43e8aeee1b
commit 4d0483608e
1 changed files with 29 additions and 22 deletions

View File

@ -1,9 +1,15 @@
#!/bin/sh
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
(
cd "$srcdir" &&
(
rm -rf autom4te.cache
rm -f aclocal.m4 ltmain.sh
autoreconf -vif
)
W=0
@ -26,7 +32,8 @@ if [ $W -ne 0 ]; then
else
rm -f config.cache-env.tmp
fi
)
if [ -z "$NOCONFIGURE" ]; then
exec ./configure -C "$@"
exec $srcdir/configure -C "$@"
fi