#!/bin/sh

aclocal -I m4 && \
${LIBTOOLIZE:-libtoolize} --automake --force && \
autoheader --force &&
automake --foreign --add-missing --force && \
autoconf --force

#!/bin/sh

$(type glibtoolize >/dev/null 2>&1) && LIBTOOLIZE=${LIBTOOLIZE:-glibtoolize}
aclocal -I m4 && \
${LIBTOOLIZE:-libtoolize} --automake --force && \
autoheader --force &&
automake --foreign --add-missing --force && \
autoconf --force

Check whether glibtoolize is available in addition to libtoolize
Check whether glibtoolize is available in addition to libtoolize

macOS doesn't have libtoolize and GNU libtool only installs glibtoolize.

Signed-off-by: Joerg Mayer <665262fbf5d0387dfb1eb7a238d62f7508c177b7@loplof.de>
Signed-off-by: David Woodhouse <97b3379caa91f4ee97e44013ae4dc6350540fa9d@infradead.org>
