I think you have run into a bug in autoheader. The problem seemes
to be that a call to:
AC_DEFINE(UNIX_FILE_SYSTEM)
will not actually add the #define to config.h.in.
I worked around this issue by always using 3 arguments to AC_DEFINE.
AC_DEFINE(UNIX_FILE_SYSTEM,,[quick hack to use UNIX file system, fixme])
That worked, but I never got around to patching autoheader to fix
the real problem.
Mo Dejong
Red Hat Inc.
On Fri, 5 May 2000, R Leigh wrote:
> Dear all,
> I apologise in advance if this message is sent to the wrong forum.
>
> I have been using the autoconf/make programs on Debian GNU/Linux for some
> months now and have found them to be very good. However, I have the
> following question:
>
> If I define more than one header with AC_CONFIG_HEADER, (e.g. config.h and
> src/defs.h (I have also created a suitable src/defs.h.in)) then if I
> define a definition with AC_DEFINE (I used AC_DEFINE_UNQUOTED) the
> substitution works when I run ./configure but when I run autoheader I get
> errors because I have not included the definition in acconfig.h. However,
> I must add it to acconfig.h as otherwise I cannot run `make distclean'
> (autoheader fails again). If I do add it, then it is included in both
> config.h and src/defs.h, and I get redefinition errors when compiling.
>
> Is there a way around this? I only want the definition to be substituted
> in src/defs.h.
>
> If there is no way to do this then could I suggest this improvement to
> autoheader: When autoheader parses configure.in, if there is a definition
> that it does not find in acconfig.h, could it also parse additional
> foo.h.in's specified by including foo.h with AC_CONFIG_HEADER.
>
> Many thanks for your help,
> Roger Leigh
>
> --
> Roger Leigh
> ** Registration Number: 151826, http://counter.li.org **
>
>