kconfig/check-gettext.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Jan 05 20:37:03 2009 +0000 (2009-01-05)
changeset 1124 eec7a46a4c19
permissions -rw-r--r--
Fix C library addons extraction:
- renaming the dircetory in CT_ExtratAndPatch is wrong:
- patches against the C library addons may be build against the short *or* long name... :-(
- symlink is more robust, even if less nice
- renaming the directory _after_ CT_ExtractAndPatch is too late:
- if patches are against the short name, and we renamed too the long name, patches don't apply
- so we'll never reach the point where we rename

/trunk/scripts/build/libc/glibc.sh | 1 0 1 0 -
/trunk/scripts/build/libc/eglibc.sh | 1 0 1 0 -
/trunk/scripts/functions | 2 1 1 0 +-
3 files changed, 1 insertion(+), 3 deletions(-)
     1 #!/bin/sh
     2 # Needed for systems without gettext
     3 $* -xc -o /dev/null - > /dev/null 2>&1 << EOF
     4 #include <libintl.h>
     5 int main()
     6 {
     7 	gettext("");
     8 	return 0;
     9 }
    10 EOF
    11 if [ ! "$?" -eq "0"  ]; then
    12 	echo -DKBUILD_NO_NLS;
    13 fi
    14