Gnulib is a set of C snipets that provide a portable implementation of
common C functions and symbols (such as strdup, getopt, etc.). When
you include one in your project, it is used as fallback if the host
implementation does not exist or is broken.

This permits to rely on standard and stable C functions.

http://www.gnu.org/software/gnulib/
http://www.gnu.org/software/gnulib/manual/gnulib.html


Initial import:
/usr/src/gnulib/gnulib-tool \
  --source-base=gnulib/lib --m4-base=gnulib/m4 \
  --import

Then follow the manual and instructions from gnulib-tool (changes are
scattered among the autotools build system files).


To refresh Gnulib, just:
/usr/src/gnulib/gnulib-tool --update

Gnulib will use 'gnulib/m4/gnulib-cache.m4' to detect which modules
need to be updated.


To avoid requiring upgrading gettext to 0.19:
cp -a /usr/share/aclocal/{intl,po}.m4 /usr/src/gnulib/m4/


Version used for 1.08.20121209 :
  6f909c901db3ebf5ff66e87c035eff800ed5daef + patched install-reloc
Version used for 108.2:
  39cf9dff9bc7883e2a589b049fb11ee7beaadd4f
Version used for 108.4:
  39cf9dff9bc7883e2a589b049fb11ee7beaadd4f
Version used for 109.2:
  39cf9dff9bc7883e2a589b049fb11ee7beaadd4f
Version used for 109.4:
  39cf9dff9bc7883e2a589b049fb11ee7beaadd4f
(update with $(git rev-parse HEAD))
