michael@0: #!/bin/sh michael@0: # Run this to generate all the initial makefiles, etc. michael@0: michael@0: test -n "$srcdir" || srcdir=`dirname "$0"` michael@0: test -n "$srcdir" || srcdir=. michael@0: michael@0: olddir=`pwd` michael@0: cd $srcdir michael@0: michael@0: echo -n "checking for ragel... " michael@0: which ragel || { michael@0: echo "You need to install ragel... See http://www.complang.org/ragel/" michael@0: exit 1 michael@0: } michael@0: michael@0: echo -n "checking for pkg-config... " michael@0: which pkg-config || { michael@0: echo "*** No pkg-config found, please install it ***" michael@0: exit 1 michael@0: } michael@0: michael@0: echo -n "checking for autoreconf... " michael@0: which autoreconf || { michael@0: echo "*** No autoreconf found, please install it ***" michael@0: exit 1 michael@0: } michael@0: michael@0: echo "running autoreconf --force --install --verbose" michael@0: autoreconf --force --install --verbose || exit $? michael@0: michael@0: cd $olddir michael@0: echo "running configure $@" michael@0: test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"