Commit d8559cb70b3e8aab08cdc54609302090f9fc3bba
1 parent
db292162
Exists in
master
and in
2 other branches
Fixing libtool on mac brew, updating readme (#25)
Showing
2 changed files
with
8 additions
and
3 deletions
Show diff stats
README.md
@@ -144,7 +144,7 @@ Building for macOS (using homebrew) | @@ -144,7 +144,7 @@ Building for macOS (using homebrew) | ||
144 | 2. Install dependencies | 144 | 2. Install dependencies |
145 | 145 | ||
146 | ```shell | 146 | ```shell |
147 | - brew install automake binutils coreutils curl gettext libtool openldap openssl pkgconfig | 147 | + brew install automake binutils coreutils curl gettext libtool openssl pkgconfig |
148 | ``` | 148 | ``` |
149 | 149 | ||
150 | 3. Use [open-keg](https://gist.github.com/andrebreves/5f36e78575e20162ed0a62bd27c4bcea) to make keg-only dependencies available during build process | 150 | 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) | @@ -156,7 +156,7 @@ Building for macOS (using homebrew) | ||
156 | 4. Configure, build and install (inside the [open-keg](https://gist.github.com/andrebreves/5f36e78575e20162ed0a62bd27c4bcea) shell opened above) | 156 | 4. Configure, build and install (inside the [open-keg](https://gist.github.com/andrebreves/5f36e78575e20162ed0a62bd27c4bcea) shell opened above) |
157 | 157 | ||
158 | ```shell | 158 | ```shell |
159 | - ./autogen.sh --prefix="$(brew --cellar)/lib3270/5.3" | 159 | + ./autogen.sh --prefix="$(brew --cellar)/lib3270/5.4" |
160 | make all && make install | 160 | make all && make install |
161 | $ brew link lib3270 | 161 | $ brew link lib3270 |
162 | ``` | 162 | ``` |
autogen.sh
@@ -9,7 +9,12 @@ cd "$srcdir" | @@ -9,7 +9,12 @@ 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 libtoollize) |
13 | +if [ -z ${LIBTOOLIZE} ]; then | ||
14 | + LIBTOOLIZE=$(which glibtoolize) | ||
15 | +fi | ||
16 | + | ||
17 | +${LIBTOOLIZE} --force | ||
13 | if test $? != 0 ; then | 18 | if test $? != 0 ; then |
14 | echo "libtoolize failed." | 19 | echo "libtoolize failed." |
15 | exit -1 | 20 | exit -1 |