From 4c5d1a6b0e06709f7e5b6af63b2fc95d6078db7b Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 25 Feb 2006 20:36:23 +0000 Subject: Improved patch for bug #1436165 (no more warnings from GNU tail about outdated parameters) svn-id: r20888 --- configure | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/configure b/configure index a6f135fecd..32a0c2075a 100755 --- a/configure +++ b/configure @@ -561,7 +561,20 @@ fi echocheck "compiler version" -cxx_name=`( $cc -v ) 2>&1 | tail -1l | cut -d ' ' -f 1` +case $_host_os in + # On Solaris, use Unix-compliant tail + solaris*) + tail=/usr/xpg4/bin/tail + ;; + + # All other OSes: use the tail in PATH + *) + tail=tail + ;; +esac + + +cxx_name=`( $cc -v ) 2>&1 | $tail -n 1 | cut -d ' ' -f 1` cxx_version=`( $CXX -dumpversion ) 2>&1` if test "$?" -gt 0; then cxx_version="not found" -- cgit v1.2.3