X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=autogen.sh;h=8241d5aeaa60e0e12b2beb623b4aa2ad6eeb9903;hb=f3e5e57c9996168a4889ae8e195be25f8b7e629b;hp=e89258c2778571f7bebe66587d6e95e7172f3f2d;hpb=2490ed7f8c1bd184b2c9f26c119f728d48b29131;p=supertux.git diff --git a/autogen.sh b/autogen.sh index e89258c27..8241d5aea 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,7 +1,21 @@ #!/bin/sh -aclocal-1.7 -automake-1.7 --copy --add-missing +# Correct working directory? +if test ! -f configure.ac ; then + echo "*** Please invoke this script from directory containing configure.ac." + exit 1 +fi + +aclocal -I mk/autoconf +autoheader + +# generate Jamconfig.in +autoconf --trace=AC_SUBST \ + | sed -e 's/configure.ac:[0-9]*:AC_SUBST:\([^:]*\).*/\1 ?= "@\1@" ;/g' \ + | sed -e 's/.*BACKSLASH.*//' \ + > Jamconfig.in +echo 'INSTALL ?= "@INSTALL@" ;' >> Jamconfig.in +echo 'JAMCONFIG_READ = yes ;' >> Jamconfig.in + autoconf -# EOF #