Skip to content

Commit

Permalink
Add script to build autoconf, automake and libtool locally
Browse files Browse the repository at this point in the history
  • Loading branch information
light-tech committed Mar 15, 2021
1 parent 73db19e commit 330e3e6
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions build-tools.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/bin/sh
# From https://gist.github.com/GraemeConradie/49d2f5962fa72952bc6c64ac093db2d5

##
# Install autoconf, automake and libtool smoothly on Mac OS X.
# Newer versions of these libraries are available and may work better on OS X
##

export build=`pwd`/temp # or wherever you'd like to build
export install=`pwd`/tools
mkdir -p $build

##
# Autoconf
# http://ftpmirror.gnu.org/autoconf

cd $build
curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz
tar xzf autoconf-2.69.tar.gz
cd autoconf-2.69
./configure --prefix=$install
make
make install
# export PATH=$PATH:$install

##
# Automake
# http://ftpmirror.gnu.org/automake

cd $build
curl -OL http://ftpmirror.gnu.org/automake/automake-1.15.tar.gz
tar xzf automake-1.15.tar.gz
cd automake-1.15
./configure --prefix=$install
make
make install

##
# Libtool
# http://ftpmirror.gnu.org/libtool

cd $build
curl -OL http://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.gz
tar xzf libtool-2.4.6.tar.gz
cd libtool-2.4.6
./configure --prefix=$install
make
make install

echo "Installation complete."

0 comments on commit 330e3e6

Please sign in to comment.