Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: configure: error: ERROR MACROS NOT FOUND: please report to developers [PATCH]

"Johann 'Myrkraverk' Oskarsson" wrote:
> I've fixed the following configure error on zeta, see:
> http://www.yellowtab.com/products/
> with the following patch agains 4.2.5.  The RE *may* need or warrant
> some further tweakig, but it happens that on Zeta (BeOS) as well as
> Haiku, error codes are defined like the following:
> #define ESIGPARM                (B_POSIX_ERROR_BASE + 15)
> And at least on Haiku, the following can also be seen:
> #define ENOMEM             B_NO_MEMORY
> '#[ 	]*define[ 	][ 	]*E[0-9A-Z]*[ 	]*(*[_A-Z0-9][_A-Z0-9]*'

[line stripped to patternt to fit without wrapping.

The current code (4.3) uses an egrep pattern, 

'#[ 	]*define[ 	][ 	]*E[0-9A-Z]*[ 	]*(_HURD_ERRNO \()?[0-9]+\)?'

so it looks like yours isn't good enough any more.  Also, since there's
no $ anchor (difficult in general since there may be comments at the end
of the line) the last [_A-Z0-9]* doesn't have any effect on the match,
and it's not clear turning the * into a + would make much difference.

The following covers both cases, but may be too general:

'#[ 	]*define[ 	][ 	]*E[0-9A-Z]*[ 	]*(_HURD_ERRNO )?\(?[_A-Z0-9]'

Any further tweaks (from any system)?

Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/

Messages sorted by: Reverse Date, Date, Thread, Author