simplify libtoolize detection

This commit is contained in:
shenleban tongying 2021-10-07 08:22:57 -04:00
parent b5013b41e1
commit f7f693f437

View File

@ -4,15 +4,18 @@ set -x
aclocal aclocal
if test X"$HOMEBREW_ENV" != X; then # detect libtoolize on linux or glibtoolize in some systems
glt=`which glibtoolize` if (libtoolize --version) < /dev/null > /dev/null 2>&1; then
fi LIBTOOLIZE=libtoolize
if test X"$glt" != X; then elif (glibtoolize --version) < /dev/null > /dev/null 2>&1; then
$glt --copy LIBTOOLIZE=glibtoolize
else else
libtoolize --copy echo "libtoolize or glibtoolize was not found! Please install libtool." 1>&2
exit 1
fi fi
$LIBTOOLIZE --copy
automake --add-missing --force-missing --copy automake --add-missing --force-missing --copy
autoconf autoconf
# Our ylwrap gets clobbered by the above. # Our ylwrap gets clobbered by the above.