added jam build system, please try it out - the advantage would be that it already...
[supertux.git] / autogen.sh
1 #!/bin/sh
2
3 # Correct working directory?
4 if test ! -f configure.ac ; then
5   echo "*** Please invoke this script from directory containing configure.ac."
6   exit 1
7 fi
8
9 # generate Jamconfig.in
10 autoconf --trace=AC_SUBST \
11   | sed -e 's/configure.ac:[0-9]*:AC_SUBST:\([^:]*\).*/\1 ?= "@\1@" ;/g' \
12   > Jamconfig.in
13 sed -e 's/.*BACKSLASH.*//' -i Jamconfig.in
14 echo 'INSTALL ?= "@INSTALL@" ;' >> Jamconfig.in
15 echo 'JAMCONFIG_READ = yes ;' >> Jamconfig.in
16
17 # we need a minimum of automake 1.6 and automake 1.8 seems to be buggy
18 # this doesn't seem to work well
19 # see AUTOMAKE_OPTIONS in Makefile.am
20 export WANT_AUTOMAKE=1.6
21
22 autoheader
23 libtoolize --force
24 aclocal -I mk/autoconf
25 automake --copy --add-missing
26 autoconf
27