configure check for GNU ld release

Jelmer Vernooij jelmer at samba.org
Fri Mar 27 17:59:30 GMT 2009


Björn JACKE wrote:
> I noticed the GNU ld version check in configure is not working correct if
> there is just a version number and no release date in ld's version string.
>
> Currently the version is tried to be found by
>
> ld -v | sed -n 's,^.*[^0-9\.]\+\([1-9][0-9]*\.[0-9][0-9]*\).*$,\1,p'`
>
> which results in nothing at with ld -v output like
>
> GNU ld version 2.17
>
> I'd propose to change the regexp to:
>
> ld -v | sed -n 's,^[^0-9]*\([1-9][0-9]*\.[0-9][0-9]*\).*$,\1,p'
>
> ... which works fine for all the ld's I found so far.
>
> Any objections to this?
>   
Seems reasonable to me. Care to provide a patch ? :-)

Cheers,

Jelmer


More information about the samba-technical mailing list