gfx/harfbuzz/autogen.sh

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rwxr-xr-x

Integrate suggestion from review to improve consistency with existing code.

michael@0 1 #!/bin/sh
michael@0 2 # Run this to generate all the initial makefiles, etc.
michael@0 3
michael@0 4 test -n "$srcdir" || srcdir=`dirname "$0"`
michael@0 5 test -n "$srcdir" || srcdir=.
michael@0 6
michael@0 7 olddir=`pwd`
michael@0 8 cd $srcdir
michael@0 9
michael@0 10 echo -n "checking for ragel... "
michael@0 11 which ragel || {
michael@0 12 echo "You need to install ragel... See http://www.complang.org/ragel/"
michael@0 13 exit 1
michael@0 14 }
michael@0 15
michael@0 16 echo -n "checking for pkg-config... "
michael@0 17 which pkg-config || {
michael@0 18 echo "*** No pkg-config found, please install it ***"
michael@0 19 exit 1
michael@0 20 }
michael@0 21
michael@0 22 echo -n "checking for autoreconf... "
michael@0 23 which autoreconf || {
michael@0 24 echo "*** No autoreconf found, please install it ***"
michael@0 25 exit 1
michael@0 26 }
michael@0 27
michael@0 28 echo "running autoreconf --force --install --verbose"
michael@0 29 autoreconf --force --install --verbose || exit $?
michael@0 30
michael@0 31 cd $olddir
michael@0 32 echo "running configure $@"
michael@0 33 test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"

mercurial