Index: gnulib.texi =================================================================== RCS file: /cvsroot/gnulib/gnulib/doc/gnulib.texi,v retrieving revision 1.10 diff -u -3 -p -u -r1.10 gnulib.texi --- gnulib.texi 27 Jun 2005 22:36:50 -0000 1.10 +++ gnulib.texi 11 Jul 2005 07:48:23 -0000 @@ -420,6 +420,12 @@ gl_INIT ... @end example address@hidden will in turn call the macros related with the +gnulib functions, be it specific gnulib macros, like @code{gl_FUNC_ALLOCA} +or autoconf or automake macro like @code{AC_FUNC_ALLOCA} or address@hidden so there is no need to call those macros yourself +when you use the corresponding gnulib modules. + You must also make sure that the gnulib library is built. Add the @code{Makefile} in the gnulib source base directory to @code{AC_CONFIG_FILES}, as in: @@ -468,10 +474,20 @@ LIBADD = lib/libgnu.a @end example Don't forget to @code{#include} the various header files. In this -example, you would need to make sure that @samp{#include } +example, you would need to make sure that @samp{#include "strdup.h"} is evaluated when compiling all source code files, that want to make -use of @code{strdup}. +use of @code{strdup}. +When an include file is provided by the gnulib +you shouldn't try to include the corresponding system header files +yourself but let the gnulib header file do it as the ordering +of the definition for some symbols may be significant. + +For example, to use the @code{time_r} gnulib module you should +use include header file provided by the gnulib, and so address@hidden "time_r.h"}, but you shouldn't explicitely address@hidden } as it is allready done in @file{time_r.h} +before the redefinition of some symbols. @node Importing updated files @section Importing updated files