[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: autoheader, fortran, and comments

From: Stepan Kasal
Subject: Re: autoheader, fortran, and comments
Date: Wed, 11 Apr 2007 21:31:20 +0200
User-agent: Mutt/


On Mon, Apr 09, 2007 at 03:47:46AM -0700, j y wrote:
> config.h: stamp-h1
>       @if test ! -f $@; then \
>         rm -f stamp-h1; \
>         $(MAKE) stamp-h1; \
>       else :; fi
>       sed -i '/\/\*|\*\//s/^/!/' config.h
> Is there any way to do this by adding a macro or something to 

sure there is, use a second parameter to AC_CONFIG_HEADERS, e.g.:

  [mv config.h config.hx &&
    sed '/\/\*/,/\*\//s/^/!/' config.hx >config.h &&
    rm config.hx])

(not tested, sorry)

The option -i to sed is GNU-specific, so I replaced it to increase
portability.  And I changed the sed cmd to adapt for comments which
span more than two lines.

Have a nice day,
        Stepan Kasal

reply via email to

[Prev in Thread] Current Thread [Next in Thread]