Re: [PATCH 0/3] Modernize header checks, v2
Zack Weinberg <[email protected]>
| Newsgroups | gmane.comp.sysutils.autoconf.patches |
|---|---|
| Message-ID | <[email protected]> |
On 2013-09-07 10:06 AM, Paul Eggert wrote: > Zack Weinberg wrote: >> One remaining wart is that autoupdate >> replaces AC_HEADER_STDC with an overt invocation of >> _AC_INCLUDES_DEFAULT_REQUIREMENTS. I couldn't find an AU_DEFUN >> construct that didn't expose this internal macro but would still DTRT >> both before and after an autoupdate run. Ideas? > > Perhaps we should make that macro public, under the name > AC_INCLUDES_DEFAULT_REQUIREMENTS. It does seem weird > to inject _AC_* stuff into user code. I had a better idea this morning. The problem I was having is fundamentally the same problem as Ross was having with conditional AC_CHECK_HEADERS, so: AU_DEFUN([AC_HEADER_STDC], [# Autoupdate added the following line to ensure that your configure # script's behavior did not change. It is probably safe to remove. AS_IF([:], [], [ac_dummy="AC_INCLUDES_DEFAULT"]) ], [...]) The complete testsuite is still running, but the specific check of AC_HEADER_STDC passed with this construct. > The other changes you're making all sound reasonable, > though I haven't reviewed the code. Unless someone > objects soon I think they should be installed. Would > you like to do that? I see two Zack Weinbergs zackw > and zwol at Savannah, but neither have checkin rights, > so I'm not sure what's going on there. 'zackw' is my current Savannah account. If you give it checkin rights, I can land the patches. I would appreciate a detailed review if you have time, though; this is the first time I've attempted to make serious changes to Autoconf itself. 'zwol' is also a handle I use often; it's likely that I created that account some time ago and then lost the password. zw