Revision f54f432e

b/configure
394 394
#endif
395 395
int main(){return 0;}
396 396
EOF
397
    check_cc() {
398
	which "$1" 2> /dev/null
399
	return $?
400
    }
401

  
402 397
    if "$cc" -o $TMPE $TMPC 2> /dev/null ; then
403 398
	echo "WARNING: \"$cc\" looks like gcc 4.x"
404 399
	found_compat_cc="no"
405 400
	if test "$gcc3_search" = "yes" ; then
406 401
	    echo "Looking for gcc 3.x"
407 402
	    for compat_cc in $gcc3_list ; do
408
		if check_cc "$cross_prefix$compat_cc" ; then
403
		if "$cross_prefix$compat_cc" --version > /dev/null 2>&1 ; then
409 404
		    echo "Found \"$compat_cc\""
410 405
		    cc="$cross_prefix$compat_cc"
411 406
		    found_compat_cc="yes"

Also available in: Unified diff