5.6. Gettext-0.17 Libintl

User Notes: http://wiki.linuxfromscratch.org/hlfs/wiki/gettext

5.6.1. Installation of Gettext Libintl

The libintl library it used for internationalization support in other packages.

Prepare Libintl for compilation:

cd gettext-runtime/
./configure --prefix=/tools \
    --with-included-gettext --without-csharp \
    --disable-libasprintf

The meaning of the configure option:

--with-included-gettext

This option tells the build to use the included version of gettext functions.

--without-csharp

Do not use C# support.

--disable-libasprintf

Do not build libasprintf.

Compile the package:

make -C intl/

Install Libintl:

make -C intl/ install

Adjust the GCC specs to link to libintl:

cp -v `dirname $(gcc -print-libgcc-file-name)`/specs{,.orig}
sed 's@%{shared:-lc}@%{!nointl: -lintl} &@' \
    `dirname $(gcc -print-libgcc-file-name)`/specs.orig > \
    `dirname $(gcc -print-libgcc-file-name)`/specs

Details on this package are located in FIXME