I just ran ./bootstrap, ./configure, make and make install, without errors.
I got the following messages from libtool:
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
but had no crash, nor any problems with compiling.
libtool is 2.26a-1 and autoconf is 2.63-1, both from debian experimental
automake is 1.10.1-3 and gcc/g++ is 4.2.4-4, both from debian unstable
The patch breaks bootstrapping on older systems.
I build my nightlies with pbuilder inside a clean debian etch changeroot.
To test the patch I installed autotools and libtools (gcc was already installed) with the following revisions:
- m4 1.4.8-2
- autoconf 2.61-4
- automake 1:1.10+nogfdl-1
- libtool 1.5.22-4
- gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Bootstrapping works with a warning:
Remember to add `AC_PROG_LIBTOOL' to `configure.in'.
You should update your `aclocal.m4' by running aclocal.
./configure runs without errors
make stops after following error message:
make[4]: Entering directory `/tmp/buildd/codeblocks-8.02svn/src/sdk/scripting/squirrel'
/bin/sh ../../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../../src/include -I../../../../src/include/scripting/include -I../../../../src/include/scripting/squirrel -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT sqfuncstate.lo -MD -MP -MF .deps/sqfuncstate.Tpo -c -o sqfuncstate.lo sqfuncstate.cpp
../../../../libtool: line 807: X--tag=CXX: command not found
../../../../libtool: line 840: libtool: ignoring unknown tag : command not found
../../../../libtool: line 807: X--mode=compile: command not found
../../../../libtool: line 973: *** Warning: inferring the mode of operation is deprecated.: command not found
../../../../libtool: line 974: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../../../../libtool: line 1117: Xg++: command not found
../../../../libtool: line 1117: X-DHAVE_CONFIG_H: command not found
../../../../libtool: line 1117: X-I.: command not found
../../../../libtool: line 1117: X-I../../../../src/include: No such file or directory
../../../../libtool: line 1117: X-I../../../../src/include/scripting/include: No such file or directory
../../../../libtool: line 1117: X-I../../../../src/include/scripting/squirrel: No such file or directory
../../../../libtool: line 1117: X-Ulinux: command not found
../../../../libtool: line 1117: X-Uunix: command not found
../../../../libtool: line 1117: X-O2: command not found
../../../../libtool: line 1117: X-ffast-math: command not found
../../../../libtool: line 1117: X-DCB_AUTOCONF: command not found
../../../../libtool: line 1117: X-g: command not found
../../../../libtool: line 1117: X-O2: command not found
../../../../libtool: line 1117: X-DCB_PRECOMP: command not found
../../../../libtool: line 1117: X-Winvalid-pch: command not found
../../../../libtool: line 1117: X-fPIC: command not found
../../../../libtool: line 1117: X-DPIC: command not found
../../../../libtool: line 1117: X-fexceptions: command not found
../../../../libtool: line 1117: X-MT: command not found
../../../../libtool: line 1117: Xsqfuncstate.lo: command not found
../../../../libtool: line 1117: X-MD: command not found
../../../../libtool: line 1117: X-MP: command not found
../../../../libtool: line 1117: X-MF: command not found
../../../../libtool: line 1117: X.deps/sqfuncstate.Tpo: No such file or directory
../../../../libtool: line 1117: X-c: command not found
../../../../libtool: line 1168: Xsqfuncstate.lo: command not found
../../../../libtool: line 1173: libtool: compile: cannot determine name of library object from `': command not found
make[4]: *** [sqfuncstate.lo] Error 1
It seems that LT_PREREQ and LT_INIT are not defined for older libtool-revisions, so ./bootstrap does not even throw an error as expected.
I also tested last night:
it works.
There is also a little change needed for your patch:
in bootstrap the creating of subdir m4 should be conditional, to avoid warnings:
if [ ! -d m4 ]; then
mkdir m4;
fi