author | Michael Krelin <hacker@klever.net> | 2009-11-14 23:05:49 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2009-11-14 23:05:49 (UTC) |
commit | c357782c1c6d8a9f532b1c546b2adff512cde522 (patch) (unidiff) | |
tree | 00ad84b3cae83ab01c83f7bb11d564b8ae22df2f | |
parent | d9a6e6cf6251b83e10f60904c24b081403f93006 (diff) | |
download | kingate-c357782c1c6d8a9f532b1c546b2adff512cde522.zip kingate-c357782c1c6d8a9f532b1c546b2adff512cde522.tar.gz kingate-c357782c1c6d8a9f532b1c546b2adff512cde522.tar.bz2 |
autogen.sh improvements
- take into account ${ACLOCAL_FLAGS} and ${CONFIGURE_FLAGS}
- source in autogen.local for setting them up
-try to detect {g,}libtoolize
Signed-off-by: Michael Krelin <hacker@klever.net>
-rwxr-xr-x | autogen.sh | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -1,9 +1,12 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | WANT_AUTOMAKE=1.8 | 2 | test -r autogen.local && source autogen.local |
3 | export WANT_AUTOMAKE | 3 | test -z "$tool_libtoolize" && tool_libtoolize="$(type -P glibtoolize || type -P libtoolize)" |
4 | libtoolize -f \ | 4 | if test -z "$tool_libtoolize" ; then |
5 | && aclocal \ | 5 | echo "Failed to find libtoolize." ; exit 1; |
6 | fi | ||
7 | "$tool_libtoolize" -f \ | ||
8 | && aclocal ${ACLOCAL_FLAGS} \ | ||
6 | && autoheader \ | 9 | && autoheader \ |
7 | && automake -a \ | 10 | && automake -a \ |
8 | && autoconf \ | 11 | && autoconf \ |
9 | && ./configure "$@" | 12 | && ./configure ${CONFIGURE_FLAGS} "$@" |