pkg-autotools: fix patching libtool for version 2.4
authorYann E. MORIN <yann.morin.1998@free.fr>
Mon, 26 Jan 2015 23:30:24 +0000 (00:30 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 1 Feb 2015 21:25:25 +0000 (22:25 +0100)
commit383287ce33c7e8780db3b2a3374aa0b2e57af889
tree78a7142f56d6f36d656e95dd387f47b959b783e0
parent7cd6782ad79edce02ff6ab6d8885c92ec128ad85
pkg-autotools: fix patching libtool for version 2.4

If the libtool used by the package is 2.4 (i.e. with no patchlevel), we
end up with a confusing message:

    /bin/sh: line 0: test: -gt: unary operator expected

That's because patchlevel is empty, and thus there is nothing to comapre
to 2, and test complains.

Fake a patchlevel of 0 (which is really what a missing patchlevel means
anyway) in that case.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/pkg-autotools.mk