adg: fixed remapping of AdgPath over primitive
[adg.git] / autogen.sh
blob72c7b6231696baee8f0ccde667b72129ca1234ab
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
7 if test ! -f $srcdir/configure.ac -o ! -f $srcdir/src/adg.h.in; then
8 echo "**Error**: '$srcdir' does not look like the top-level adg directory"
9 exit 1
12 cd $srcdir
13 glib-gettextize -f || exit $?
14 intltoolize -f || exit $?
16 # autoreconf interaction with libtool has been broken for ages:
17 # explicitely calling libtoolize avoid some problems
18 libtoolize --automake || exit $?
20 autoreconf -is -Wall || exit $?
22 ./configure "$@" && echo "Now type 'make' to compile $PROJECT."