Created
November 10, 2015 01:02
-
-
Save phpisciuneri/dce744f3cb0e407963b5 to your computer and use it in GitHub Desktop.
Install autoconf and automake Mac OS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# Install latest autoconf and automake-1.15 on Mac OS X | |
# - Check for the latest version of automake at: http://ftpmirror.gnu.org/automake | |
# | |
# Usage: | |
# - Source this script: $ . buildtools.sh | |
# | |
# This script was adapted from: | |
# - https://gist.github.com/jellybeansoup/4192307 | |
# - http://superuser.com/questions/383580/how-to-install-autoconf-automake-and-related-tools-on-mac-os-x-from-source (JakeGould answer) | |
## | |
## | |
# Autoconf | |
# | |
# stage directory | |
builddir=`mktemp -d` && cd $builddir | |
# download and extract source | |
curl -O -L http://ftpmirror.gnu.org/autoconf/autoconf-latest.tar.gz | |
tar -xzf autoconf-* | |
# configure, make, install --prefix=/usr/local | |
cd autoconf* | |
./configure | |
make | |
sudo make install | |
# erase stage dir | |
rm -rf $builddir | |
## | |
# Automake | |
# | |
# stage directory | |
builddir=`mktemp -d` && cd $builddir | |
# download and extract source | |
curl -O -L http://ftpmirror.gnu.org/automake/automake-1.15.tar.gz | |
tar -xzf automake-* | |
# configure, make, install --prefix=/usr/local | |
cd automake* | |
./configure | |
make | |
sudo make install | |
# erase stage dir | |
rm -rf $builddir | |
## | |
# sanity check | |
# | |
cd $HOME | |
autoconf --version | |
automake --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment