diff --git a/README.md b/README.md index 0865c3a..b43506e 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ Building for macOS (using homebrew) 2. Install dependencies ```shell - brew install automake binutils coreutils curl gettext libtool openldap openssl pkgconfig + brew install automake binutils coreutils curl gettext libtool openssl pkgconfig ``` 3. Use [open-keg](https://gist.github.com/andrebreves/5f36e78575e20162ed0a62bd27c4bcea) to make keg-only dependencies available during build process @@ -156,7 +156,7 @@ Building for macOS (using homebrew) 4. Configure, build and install (inside the [open-keg](https://gist.github.com/andrebreves/5f36e78575e20162ed0a62bd27c4bcea) shell opened above) ```shell - ./autogen.sh --prefix="$(brew --cellar)/lib3270/5.3" + ./autogen.sh --prefix="$(brew --cellar)/lib3270/5.4" make all && make install $ brew link lib3270 ``` diff --git a/autogen.sh b/autogen.sh index a547ed7..109bb39 100755 --- a/autogen.sh +++ b/autogen.sh @@ -9,7 +9,12 @@ cd "$srcdir" mkdir -p scripts mkdir -p m4 -libtoolize --force +LIBTOOLIZE=$(which libtoollize) +if [ -z ${LIBTOOLIZE} ]; then + LIBTOOLIZE=$(which glibtoolize) +fi + +${LIBTOOLIZE} --force if test $? != 0 ; then echo "libtoolize failed." exit -1 -- libgit2 0.21.2