Autotoolized Lua

Patches for autotoolizing the Lua programming language interpreter source, i.e. making it GNU use Autoconf, Automake and Libtool.

Some of the newer patches were developed by Hans de Goede and Tim Niemueller for the Fedora project.

Note: I haven't had the time and energy to maintain these patches anymore, so don't expect any new releases.

Usage

Download and unpack a Lua source tarball and download a patch for your Lua version (see below). Apply the patch:

cd lua-X.Y.Z
bunzip2 -c ../lua-X.Y.Z-autotoolize-rR.patch.bz2 | patch -p1

Change file permissions:

chmod +x autogen.sh config.guess config.sub configure \
    depcomp install-sh missing

Now you're ready to run ./configure.

Download

These patches are released to public domain. Do whatever you want with them. No warranty. The Lua license applies to patched sources.

The patches are bzip2 compressed. The file names are of form lua-X.Y.Z-autotoolize-rR.patch.bz2, where X,Y, and Z are the Lua major, minor and patch versions, respectively. R is the revision of the autotoolize patch, with the highest number being the newest. The old revisions are listed, but you should not use them, because they are most certainly buggy (otherwise there wouldn't be newer versions).

Lua version Patch
Lua 5.1.4 lua-5.1.4-autotoolize-r1.patch.bz2
Lua 5.1.3 lua-5.1.3-autotoolize-r1.patch.bz2
Lua 5.1.2 lua-5.1.2-autotoolize-r1.patch.bz2
Lua 5.1.1 lua-5.1.1-autotoolize-r1.patch.bz2
Lua 5.1 lua-5.1-autotoolize-r2.patch.bz2
lua-5.1-autotoolize-r1.patch.bz2

Development

The autotoolified source tree is available on GitHub.

There's a branch for each Lua version. Unlike the downloadable patches above, the git tree doesn't contain the files that are generated when bootstrapping autotools. Use ./autogen.sh to do the bootstrapping. This creates the configure script and other files needed during the build.

Fork me on GitHub