From: Björn Jacke Date: Fri, 26 Nov 2010 14:14:14 +0000 (+0100) Subject: s3/configure: fix GNU ld version detection with old gcc releases X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=70a7da0e101910e3ceb08b86d4b840b219e24d7d;p=abartlet%2Fsamba.git%2F.git s3/configure: fix GNU ld version detection with old gcc releases needed as old gcc releases output everything to stderr, even stdout output from ld Fixes #7825 Autobuild-User: Björn Jacke Autobuild-Date: Fri Nov 26 20:15:24 CET 2010 on sn-devel-104 --- diff --git a/source3/configure.in b/source3/configure.in index 17b5470905e..5f81a193ca8 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -222,7 +222,7 @@ dnl Certain versions of GNU ld the default is not to have the dnl --allow-shlib-undefined flag defined. This causes a stackload of dnl warnings when building modules. if test "$ac_cv_prog_gnu_ld" = "yes"; then - ac_cv_gnu_ld_version=`$CC -Wl,-v /dev/null 2>/dev/null | head -1` + ac_cv_gnu_ld_version=`$CC -Wl,-v /dev/null 2>&1 < /dev/null | grep "GNU ld"` AC_MSG_CHECKING(GNU ld release date) changequote(,)dnl ac_cv_gnu_ld_date=`echo $ac_cv_gnu_ld_version | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`