kconfig/check-gettext.sh
branchgcc-4.4
changeset 1387 a52504ffac55
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/kconfig/check-gettext.sh	Mon May 25 19:48:42 2009 +0000
     1.3 @@ -0,0 +1,14 @@
     1.4 +#!/bin/sh
     1.5 +# Needed for systems without gettext
     1.6 +$* -xc -o /dev/null - > /dev/null 2>&1 << EOF
     1.7 +#include <libintl.h>
     1.8 +int main()
     1.9 +{
    1.10 +	gettext("");
    1.11 +	return 0;
    1.12 +}
    1.13 +EOF
    1.14 +if [ ! "$?" -eq "0"  ]; then
    1.15 +	echo -DKBUILD_NO_NLS;
    1.16 +fi
    1.17 +