Skip to content

Instantly share code, notes, and snippets.

@phpisciuneri
Created November 10, 2015 01:02
Show Gist options
  • Save phpisciuneri/dce744f3cb0e407963b5 to your computer and use it in GitHub Desktop.
Save phpisciuneri/dce744f3cb0e407963b5 to your computer and use it in GitHub Desktop.
Install autoconf and automake Mac OS X
##
# 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