From 1ff20f3cb600adaa89c5eac31a05585d0fa88f76 Mon Sep 17 00:00:00 2001 From: Halo Date: Fri, 11 Oct 2024 18:48:22 +0800 Subject: [PATCH] add macOS libtool support. the libtool named glibtoolize on macOS. --- autogen.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/autogen.sh b/autogen.sh index 180eccfdb..dcccda6fb 100644 --- a/autogen.sh +++ b/autogen.sh @@ -3,8 +3,13 @@ echo aclocal aclocal || exit echo autoheader autoheader || exit -echo libtoolize --copy --force -libtoolize --copy --force || exit +if [[ `uname -o` -eq 'Darwin' ]]; then + echo glibtoolize --copy --force + glibtoolize --copy --force || exit +else + echo libtoolize --copy --force + libtoolize --copy --force || exit +fi echo automake -a -c automake -a -c || exit echo autoconf