Hello Bruno, Colin, * Bruno Haible wrote on Sun, Oct 14, 2007 at 11:07:28PM CEST: > Colin Watson wrote: > > > Gnulib needs to put -I. in its AM_CPPFLAGS, since it > > appears to define that variable to empty > > Yes, I agree that this may be the mistake. > > > thus cancelling Automake's default behaviour. > > To me, it looks like AM_CPPFLAGS is empty by default. Automake's default > includes are in a separate variable called DEFAULT_INCLUDES.
Only if you've used nostdinc (`info Automake "Program variables"'): | `AM_CPPFLAGS' | The contents of this variable are passed to every compilation that | invokes the C preprocessor; it is a list of arguments to the | preprocessor. For instance, `-I' and `-D' options should be | listed here. | | Automake already provides some `-I' options automatically. In | particular it generates `-I$(srcdir)', `-I.', and a `-I' pointing | to the directory holding `config.h' (if you've used | `AC_CONFIG_HEADERS' or `AM_CONFIG_HEADER'). You can disable the | default `-I' options using the `nostdinc' option. | | `AM_CPPFLAGS' is ignored in preference to a per-executable (or | per-library) `_CPPFLAGS' variable if it is defined. Cheers, Ralf