Commit 2e847de39ec8bc031365cf35870422f3bd198670
1 parent
c019d0b1
Exists in
master
and in
1 other branch
Updating autogen for brew
Showing
1 changed file
with
10 additions
and
1 deletions
Show diff stats
autogen.sh
@@ -9,7 +9,16 @@ cd "$srcdir" | @@ -9,7 +9,16 @@ cd "$srcdir" | ||
9 | mkdir -p scripts | 9 | mkdir -p scripts |
10 | mkdir -p m4 | 10 | mkdir -p m4 |
11 | 11 | ||
12 | -libtoolize --force | 12 | +LIBTOOLIZE=$(which libtoolize) |
13 | +if [ -z ${LIBTOOLIZE} ]; then | ||
14 | + LIBTOOLIZE=$(which glibtoolize) | ||
15 | +fi | ||
16 | +if [ -z ${LIBTOOLIZE} ]; then | ||
17 | + echo "Can't find libtoolize" | ||
18 | + exit -1 | ||
19 | +fi | ||
20 | + | ||
21 | +${LIBTOOLIZE} --force | ||
13 | if test $? != 0 ; then | 22 | if test $? != 0 ; then |
14 | echo "libtoolize failed." | 23 | echo "libtoolize failed." |
15 | exit -1 | 24 | exit -1 |