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