Eric Blake wrote:
> Meanwhile, is it worth patching autoconf/lib/autoheader.m4 to complain when
> $2 of AH_VERBATIM is empty, so this mistake is less likely to occur in the
> future?

This would be welcome. Something like this (untested)?

*** autoheader.m4.bak   2005-05-14 09:00:39.000000000 +0200
--- autoheader.m4       2006-07-04 02:08:30.000000000 +0200
***************
*** 67,74 ****
  #
  # Quote for Perl '' strings, which are those used by Autoheader.
  m4_define([AH_VERBATIM],
! [AS_LITERAL_IF([$1],
!              [AH_OUTPUT([$1], AS_ESCAPE([[$2]], [\\'']))])
  ])
  
  
--- 67,76 ----
  #
  # Quote for Perl '' strings, which are those used by Autoheader.
  m4_define([AH_VERBATIM],
! [m4_ifval([$1],
!    [AS_LITERAL_IF([$1],
!                 [AH_OUTPUT([$1], AS_ESCAPE([[$2]], [\\'']))])],
!    [AS_WARN([AH_VERBATIM invoked with only one argument])])
  ])
  
  


Reply via email to