Option to jump with up on keyboard.
[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 aclocal -I mk/autoconf
10 autoheader
11
12 # generate Jamconfig.in
13 cat > Jamconfig.in << __EOF__
14 # the following unsets some stuff from Jambase
15 CC = ;
16 CFLAGS = ;
17 LINK = ;
18 LINKFLAGS = ;
19 AR = ;
20 # Configuration part (you can customize this)
21 __EOF__
22 autoconf --trace=AC_SUBST \
23   | sed -e 's/configure.ac:[0-9]*:AC_SUBST:\([^:]*\).*/\1 ?= "@\1@" ;/g' \
24   | sed -e 's/.*BACKSLASH.*//' \
25   >> Jamconfig.in
26 echo 'INSTALL ?= "@INSTALL@" ;' >> Jamconfig.in
27 echo 'JAMCONFIG_READ = yes ;' >> Jamconfig.in
28
29 autoconf
30