Opened 19 years ago

Closed 19 years ago

Last modified 5 years ago

#8411 closed patch

configure patch: detect more GCC versions

Reported by: lordhoto Owned by: fingolfin
Priority: normal Component: --Other--
Version: Keywords:
Cc: Game:



this patch will fix the configure script in the way, that it will detect gcc version as 3.4.3-20050110 and accept them.

Ticket imported from: #1171304. Ticket imported from: patches/516.

Attachments (1)

configure.patch (669 bytes ) - added by lordhoto 19 years ago.

Download all attachments as: .zip

Change History (7)

by lordhoto, 19 years ago

Attachment: configure.patch added

comment:1 by fingolfin, 19 years ago

Could you explain the logic behind the regex? In particular: [-.]* This means, if I read it right: Match an arbitary sequence of dashes and dots. How does that fit the version string you mention above? Maybe the shell does regex differently than I think (I never used shell regex much, only use regex inside Perl etc.)

comment:2 by lordhoto, 19 years ago

i just copied it from the way it's done with 2.95.[0-9][-.]* ... i never used shell regex too... but maybe anyone else can fix it

comment:3 by wjp, 19 years ago

* means something different in a shell pattern than in a regular expression. It simply matches any string.

3.[0-9].[0-9][-.]* will match anything looking like 3.4.3.anything or 3.4.3-anything.

comment:4 by fingolfin, 19 years ago

Ah OK, makes sense. Thanks for the clarification, Willem.

comment:5 by fingolfin, 19 years ago

Owner: set to fingolfin
Status: newclosed
Summary: configure patchconfigure patch: detect more GCC versions

comment:6 by digitall, 5 years ago

Component: --Other--
Note: See TracTickets for help on using tickets.