kconfig/check-gettext.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jan 29 00:57:02 2011 +0100 (2011-01-29)
changeset 2285 7d1e018167b5
permissions -rw-r--r--
comptools: add make-3.81

Since the advent of make-3.82, some packages now break due to changes
in make-3.82, being stricter than 3.81 when interpreting the Makefiles.

This has bugged us a bit too much so far, and I believe fixing all
of them is a long road, while simply building make-3.81 is the easiest
route for now.

Of course, in the long term, packages will get fixed upstream, and we
should back-port the fixes to old versions, and get rid of building
make-3.81. In the meantime...

Reported several times on the mailing list.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
yann@943
     1
#!/bin/sh
yann@943
     2
# Needed for systems without gettext
yann@943
     3
$* -xc -o /dev/null - > /dev/null 2>&1 << EOF
yann@943
     4
#include <libintl.h>
yann@943
     5
int main()
yann@943
     6
{
yann@943
     7
	gettext("");
yann@943
     8
	return 0;
yann@943
     9
}
yann@943
    10
EOF
yann@943
    11
if [ ! "$?" -eq "0"  ]; then
yann@943
    12
	echo -DKBUILD_NO_NLS;
yann@943
    13
fi
yann@943
    14