Akim Demaille wrote:

> >> I have come across one compiler that returns an exit status of 0 if
> >> compile errors occur :-{
> 
> Gross!  What's this?

Lahey/Fujitsu Fortran, a widely used compiler system. I couldn't believe
it myself. To make matters worse, the compiler writes to stderr whether or
not errors are detected, so testing stderr would also have no effect until
one goes into real output parsing.
 
> I don't have any problems with adding the `test -f' to
> AC_COMPILE_IFELSE too.

Sounds good to me, although test -s may be more error-proof (?). After
all, a stupid compiler might create the file and than write nothing to it
(there must be some reason wehy AC_LINK_IFELSE uses -s). Meanwhile I think
there is nothing so stupid that it couldn't be a "feature" of one or the
other Fortran compiler.

Btw, wouldn't it be smart to include "test -x" in AC_LINK_IFELSE as well?

Martin
-- 
Martin Wilck <[EMAIL PROTECTED]>
Institute for Tropospheric Research, Permoserstr. 15, D-04318 Leipzig, Germany
Tel. +49-341-2352151 / Fax +49-341-2352361

Reply via email to