I'm tempted to say he is right.  Why don't we just check for the exit
status?  I couldn't find good information in the ChangeLog.

But even if we don't change the logic, the technology is dead wrong.
It should be

if ${CC-cc} -g ... 2&>1 | grep . >/dev/null; then

        Akim



The test to determine whether or not a C compiler accepts the -g flag has
the form,

if test -z "`${CC-cc} -g ... 2&>1`" ; then\
    # success
else
    # failure
fi

This test fails if the C compiler produces _any_ output, even if it is only
diagnostic output. Perhaps a more robust test would check the exit status?

----
Paul Stodghill <[EMAIL PROTECTED]>
4128 Upson Hall, Dept of CS, Cornell Univ., Ithaca, NY 14853
http://www.cs.cornell.edu/stodghil/
Voice: 607-254-8838 Fax: 607-255-4428


Reply via email to