summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-04-04 20:09:36 +0200
committerVolker Lendecke <vl@samba.org>2010-04-04 20:31:19 +0200
commit6e40fa9b016cdbd43c973c9b61b581258c0c24a9 (patch)
tree159e2062dd56d9de707d23cfc0b84e899310c9a0 /source3
parentb1192bbfc991af57736dba7c30fb4d92dd6f436c (diff)
downloadsamba-6e40fa9b016cdbd43c973c9b61b581258c0c24a9.tar.gz
samba-6e40fa9b016cdbd43c973c9b61b581258c0c24a9.tar.bz2
samba-6e40fa9b016cdbd43c973c9b61b581258c0c24a9.zip
s3: Fix the GNU ld version detection on SLES
On SLES 11 "ld -v" gives GNU ld (GNU Binutils; SUSE Linux Enterprise 11) 2.19 The regexp to intended to detect the "2.19" is confused by the "11" in the version string. I'm not really into regexps, and awk '{print $NF}' to me is a simple (and hopefully portable) way to print the last field.
Diffstat (limited to 'source3')
-rw-r--r--source3/configure.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 76526d98f4..26ec10ba5c 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -233,7 +233,7 @@ if test "$ac_cv_prog_gnu_ld" = "yes"; then
else
AC_MSG_CHECKING(GNU ld release version)
changequote(,)dnl
- ac_cv_gnu_ld_vernr=`echo $ac_cv_gnu_ld_version | sed -n 's,^[^0-9]*\([1-9][0-9]*\.[0-9][0-9]*\).*$,\1,p'`
+ ac_cv_gnu_ld_vernr=`echo $ac_cv_gnu_ld_version | awk '{print $NF}' | sed -n 's,\([1-9][0-9]*\.[0-9][0-9]*\).*$,\1,p'`
ac_cv_gnu_ld_vernr_major=`echo $ac_cv_gnu_ld_vernr | cut -d '.' -f 1`
ac_cv_gnu_ld_vernr_minor=`echo $ac_cv_gnu_ld_vernr | cut -d '.' -f 2`
changequote([,])dnl