autoconf
[Top][All Lists]
Advanced

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

Re: AC_CHECK_FUNCS and gcc with -Werror


From: Eric Blake
Subject: Re: AC_CHECK_FUNCS and gcc with -Werror
Date: Wed, 03 Mar 2010 16:55:14 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

According to Eric Blake on 3/3/2010 4:45 PM:
>>> AM_CFLAGS = $(WERROR_CFLAGS)
>>
>> ahh ok this way.
>> Before I change my 352 Makefile.am's:

By the way, I find that mass updates like this can easily be done with a
decent scripting language, or even a few shell commands, rather than
tediously doing it all by hand.  For example, (untested, but probably
close to what you want, to append given text at the end of all existing
Makefile.am):

script='$ a\
AM_CFLAGS += $(WERROR_CFLAGS)
'
find . -name Makefile.am | xargs sed -i -e "$script"

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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