autoconf
[Top][All Lists]
Advanced

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

string manipulation : removing a part of a string


From: Vincent Torri
Subject: string manipulation : removing a part of a string
Date: Fri, 15 Jun 2012 01:36:22 +0200 (CEST)


Hey

I pass -Wno-foo as a parameter of an m4 macro. What I would like is to store into a variable -Wfoo, so removing 'no-'

Is it possible with the m4 macro string manipulation ? If not, what's the best solution ?

Another related question: if I pass -Wbar, I would like to know if it begins by '-Wno-'. How can I do that with m4 ?

thank you

Vincent Torri



reply via email to

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