[Zlib-devel] CHOST option

Enrico Weigelt weigelt at metux.de
Tue Jul 6 13:32:23 EDT 2010


* Mark Adler <madler at madler.net> schrieb:
> On Jul 4, 2010, at 5:08 PM, Enrico Weigelt wrote:
> > * Mark Adler <madler at madler.net> schrieb:
> >> I have added a test to configure to assume GNU C if "gcc" is in the output of $cc -v .
> > 
> > URL / patch please ;-)
> 
> It's something like:
> 
> --- ../zlib-1.2.5/configure	2010-04-19 21:15:19.000000000 -0700
> +++ configure	2010-07-03 12:21:27.000000000 -0700
> @@ -102,6 +102,9 @@
>  case "$cc" in
>    *gcc*) gcc=1 ;;
>  esac
> +case `$cc -v 2>&1` in
> +  *gcc*) gcc=1 ;;
> +esac
>  
>  if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then
>    CC="$cc"

I'm doing similar things in my branch:

http://repo.or.cz/w/oss-qm-packages.git/commitdiff/cd21cf5e96931e2467c31d76633e4f2f863c8bbe


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
---------------------------------------------------------------------




More information about the Zlib-devel mailing list