configure check for GNU ld release

Björn JACKE bj at SerNet.DE
Fri Mar 27 15:41:31 GMT 2009


Hi,

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?

Björn


More information about the samba-technical mailing list