Mail Archives: djgpp-workers/1998/07/12/14:22:01
>>>>> "Eli" == Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> writes:
Eli> DJGPP shows that `unix' can be defined by a compiler which
Eli> targets other systems.
Sure, and there are already special cases for Windows32 stuff, but
we're interested in a characteristic of Unix (POSIX, I guess).
Eli> In general, it is best to test for a feature rather than for a
Eli> name of an operating system.
Sure, where possible. (Perhaps we should now case-analyse configure's
target name, but that wasn't easy previously and may still not be in
gcc 2.8.)
Eli> Perhaps that ifdef could be rewritten so that it tests for the
Eli> actual functionality?
I don't think so. The behaviour for cygwin32, at least, depends on
how you mount the file system, not on the library intrinsically. Also
we need to be able to (criss-)cross-build, which means we can't rely
on running compiled test cases.
Eli> Since the patch is for configure.in, the DJGPP version *must* be
Eli> built by running the configure script.
But not necessarily natively under DJGPP. Also gcc still contains
configur.bat, which doesn't support f77. I have asked before about
g77 support for DJGPP without luck and was never motivated to
investigate myself.
- Raw text -