Based on the documentation, ifnames will output only the identifiers used
in #if directives. The CVS version dumps all the lines that start with
# rather than just the identifiers.
$ cat test.c
#include <stdio.h>
#if HAVE_SOMETHING
#endif
int
main(int argc, char *argv[] )
{
printf("Hello, World!\n");
}
$ ifnames --version
Autoconf version 2.14.1
$ ifnames test.c
HAVE_SOMETHING test.c
$ ifnames --version
ifnames (GNU autoconf) 2.49b
Written by David J. MacKenzie and Paul Eggert.
Copyright 1994, 1995, 1999, 2000 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ ifnames test.c
HAVE_SOMETHING test.c
#endif
#if HAVE_SOMETHING
#include <stdio.h>
Is the documenation wrong or the new ifnames. Besides some minor changes
between the two versions, the new version has been GNU standardized.
I have un-GNU standardized the code and it works again.
I'll submit a patch to [EMAIL PROTECTED]
Paul