diff options
Diffstat (limited to 'autogen.sh')
| -rwxr-xr-x | autogen.sh | 11 |
1 files changed, 10 insertions, 1 deletions
| @@ -1,4 +1,11 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | |||
| 3 | olddir=`pwd` | ||
| 4 | srcdir=`dirname $0` | ||
| 5 | test -z "$srcdir" && srcdir=. | ||
| 6 | |||
| 7 | cd "$srcdir" | ||
| 8 | |||
| 2 | gprefix=`which glibtoolize 2>&1 >/dev/null` | 9 | gprefix=`which glibtoolize 2>&1 >/dev/null` |
| 3 | if [ $? -eq 0 ]; then | 10 | if [ $? -eq 0 ]; then |
| 4 | glibtoolize --force | 11 | glibtoolize --force |
| @@ -10,6 +17,8 @@ autoheader | |||
| 10 | automake --add-missing | 17 | automake --add-missing |
| 11 | autoconf | 18 | autoconf |
| 12 | 19 | ||
| 20 | cd "$olddir" | ||
| 21 | |||
| 13 | if [ -z "$NOCONFIGURE" ]; then | 22 | if [ -z "$NOCONFIGURE" ]; then |
| 14 | ./configure "$@" | 23 | $srcdir/configure "$@" |
| 15 | fi | 24 | fi |
