X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Fconfigure;h=589c8b4299cdeefe541c9a552563ed18b32970a3;hp=d6c8dc481fd654852551f7494eeeeff78bb7d3c3;hb=149405350be50c105b4b0e97a57f745006318f76;hpb=04c6d723fa365852bd88b630ff55e0fa57f26f0a diff --git a/gcc/configure b/gcc/configure index d6c8dc481fd..589c8b4299c 100755 --- a/gcc/configure +++ b/gcc/configure @@ -24220,9 +24220,9 @@ $as_echo "$gcc_cv_as_gnu_unique_object" >&6; } if test $gcc_cv_as_gnu_unique_object = yes; then # Also check for ld.so support, i.e. glibc 2.11 or higher. if test x$host = x$build -a x$host = x$target && - glibcver=`ldd --version 2>/dev/null`; then - glibcmajor=`expr "$glibcver" : "ldd (GNU libc) \([0-9]*\)"` - glibcminor=`expr "$glibcver" : "ldd (GNU libc) [0-9]*\.\([0-9]*\)"` + glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then + glibcmajor=`expr "$glibcver" : "\(0-9*\)"` + glibcminor=`expr "$glibcver" : "2-9*\.\(0-9*\)"` glibcnum=`expr $glibcmajor \* 1000 + $glibcminor` if test "$glibcnum" -ge 2011 ; then enable_gnu_unique_object=yes