[MPlayer-dev-eng] Configure confused by compilercache [PATCH]
Pierre Lombard
p_l at gmx.fr
Thu Aug 21 01:10:45 CEST 2003
* Arne Driescher <driescher at mpi-magdeburg.mpg.de> [2003-08-19 16:37]:
> Problem:
> =======
> A compiler cache as the one from
> http://www.erikyyy.de/compilercache/
> adds additional (stupide) output lines before the output of
> gcc -dumpversion
> The ./configure script expects a single line output and
> fails therfore to detect the correct gcc version.
>
> Solution:
> =======
> As is already done in the cc_name macro use only the
> last output line by changing
> cc_version=`( $_cc -dumpversion ) 2>&1`
> to
> cc_version=`( $_cc -dumpversion ) 2>&1 | tail -1`
>
> The attached trivial patch does exactly this.
FWIW, 'ccache' does not show these issues.
Btw, it should be 'tail -n 1' as 'tail -1' is to be deprecated soon.
> Index: configure
> ===================================================================
> RCS file: /cvsroot/mplayer/main/configure,v
> retrieving revision 1.754
> diff -u -r1.754 configure
> --- configure 18 Aug 2003 14:24:29 -0000 1.754
> +++ configure 19 Aug 2003 14:32:44 -0000
> @@ -472,7 +472,7 @@
> for _cc in "$_cc" gcc-3.1 gcc3 gcc-3.0 cc ; do
> echocheck "$_cc version"
> cc_name=`( $_cc -v ) 2>&1 | tail -1 | cut -d ' ' -f 1`
> - cc_version=`( $_cc -dumpversion ) 2>&1`
> + cc_version=`( $_cc -dumpversion ) 2>&1 | tail -1`
> if test "$?" -gt 0; then
> cc_version="not found"
> fi
--
Best regards,
Pierre Lombard
More information about the MPlayer-dev-eng
mailing list