Opened 15 years ago

Closed 15 years ago

Last modified 13 months ago

#8411 closed patch

configure patch: detect more GCC versions

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

Description

Hi,

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 15 years ago.

Download all attachments as: .zip

Change History (7)

by lordhoto, 15 years ago

Attachment: configure.patch added

comment:1 by fingolfin, 15 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, 15 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, 15 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, 15 years ago

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

comment:5 by fingolfin, 15 years ago

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

comment:6 by digitall, 13 months ago

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