blob: fd5c1983c732faaa0f2c31b6991f8c778de1ceb9 [file] [log] [blame]
Behdad Esfahbod29aa4002009-11-02 16:28:39 -05001#!/bin/sh
2# Run this to generate all the initial makefiles, etc.
Behdad Esfahbod29aa4002009-11-02 16:28:39 -05003
Javier Jardón2abe1262011-01-09 22:18:53 -05004test -n "$srcdir" || srcdir=`dirname "$0"`
5test -n "$srcdir" || srcdir=.
Behdad Esfahbod29aa4002009-11-02 16:28:39 -05006
Javier Jardón2abe1262011-01-09 22:18:53 -05007olddir=`pwd`
Behdad Esfahbod29aa4002009-11-02 16:28:39 -05008cd $srcdir
9
Behdad Esfahbodabc82b42018-02-20 14:34:16 -080010#echo -n "checking for ragel... "
11#which ragel || {
12# echo "You need to install ragel... See http://www.complang.org/ragel/"
13# exit 1
14#}
Behdad Esfahbodadff3772013-02-06 23:43:27 -050015
Behdad Esfahbodb3014782011-08-02 11:25:13 -040016echo -n "checking for pkg-config... "
17which pkg-config || {
18 echo "*** No pkg-config found, please install it ***"
19 exit 1
20}
21
Behdad Esfahbod1e03d7a2015-02-26 13:58:32 -080022echo -n "checking for libtoolize... "
Behdad Esfahbod7481bd42015-03-04 15:47:25 -080023which glibtoolize || which libtoolize || {
Behdad Esfahbod1e03d7a2015-02-26 13:58:32 -080024 echo "*** No libtoolize (libtool) found, please install it ***"
25 exit 1
26}
Anthony Carricof7c72b42013-02-24 13:00:33 -050027echo -n "checking for gtkdocize... "
Behdad Esfahbodb456d422014-02-11 17:29:40 -050028if which gtkdocize ; then
29 gtkdocize --copy || exit 1
30else
Behdad Esfahbod1e03d7a2015-02-26 13:58:32 -080031 echo "*** No gtkdocize (gtk-doc) found, skipping documentation ***"
Behdad Esfahbode9853f32014-03-21 12:53:08 -070032 echo "EXTRA_DIST = " > gtk-doc.make
Behdad Esfahbodb456d422014-02-11 17:29:40 -050033fi
Anthony Carricof7c72b42013-02-24 13:00:33 -050034
Behdad Esfahbod1264b232011-08-01 16:39:32 -040035echo -n "checking for autoreconf... "
36which autoreconf || {
Behdad Esfahbod1e03d7a2015-02-26 13:58:32 -080037 echo "*** No autoreconf (autoconf) found, please install it ***"
Javier Jardón2abe1262011-01-09 22:18:53 -050038 exit 1
Behdad Esfahbod1264b232011-08-01 16:39:32 -040039}
40
Behdad Esfahbodb3014782011-08-02 11:25:13 -040041echo "running autoreconf --force --install --verbose"
42autoreconf --force --install --verbose || exit $?
Behdad Esfahbod29aa4002009-11-02 16:28:39 -050043
Javier Jardón2abe1262011-01-09 22:18:53 -050044cd $olddir
Ebrahim Byagowi72bec1c2018-01-05 12:42:20 +033045test -n "$NOCONFIGURE" || {
46 echo "running configure $@"
47 "$srcdir/configure" "$@"
48}