• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2# Run this to generate all the initial makefiles, etc.
3
4test -n "$srcdir" || srcdir=`dirname "$0"`
5test -n "$srcdir" || srcdir=.
6
7olddir=`pwd`
8cd $srcdir
9
10echo -n "checking for ragel... "
11which ragel || {
12	echo "You need to install ragel... See http://www.complang.org/ragel/"
13	exit 1
14}
15
16echo -n "checking for pkg-config... "
17which pkg-config || {
18	echo "*** No pkg-config found, please install it ***"
19	exit 1
20}
21
22echo -n "checking for gtkdocize... "
23if which gtkdocize ; then
24	gtkdocize --copy || exit 1
25else
26	echo "*** No gtkdocize found, skipping documentation ***"
27	echo "EXTRA_DIST = " > gtk-doc.make
28fi
29
30echo -n "checking for autoreconf... "
31which autoreconf || {
32	echo "*** No autoreconf found, please install it ***"
33	exit 1
34}
35
36echo "running autoreconf --force --install --verbose"
37autoreconf --force --install --verbose || exit $?
38
39cd $olddir
40echo "running configure $@"
41test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
42