There is a bug in the macro which tried to that but unfortunately left out the middle argument (which probably why it did not work). If autoheader is not noticing that then I think AH_TEMPLATE is the right thing (presumably as part of the macro, that happens irrespective of the result).
I could generate a diff but guess Jean-Marc can get a fix into CVS faster anywyay. AH_TEMPLATE is documented in the autconf 2.53 reference manual. GNU autoconf 2.53 only has AC_EGREP_HEADER and the like, which is not quite the same (however it is worth noting that LYX_CHECK_DECL is a wrapped version of AC_EGREP_HEADER). My experience so far is that GNU autoconf 2.53 ignores acconfig.h, which was the only game in town when LYX_CHECK_DECL appeared. -- Duncan (-: "software industry, the: unique industry where selling substandard goods is legal and you can charge extra for fixing the problems."