Mail Archives: djgpp-workers/1998/07/10/14:30:54
Date sent: Mon, 06 Jul 1998 15:24:20 +0600
From: Alexey Yakovlev <jack AT catalysis DOT nsk DOT su>
Subject: Re: Inconsistencies between g77 v0.5.23 and v0.5.19
> Hi all.
> The I/O library in libg2c of g77 v0.5.23 was compiled incorrectly.
> It opens an "unformatted" file as text which causes CR->CRLF conversion
> on output. The runtime library of g77 under DJGPP has to be compiled
> with NON_ANSI_RW_MODES undefined. Perhaps, one has to rebuild g77-0.5.23
> for DJGPP or, at least, libg2c.a.
>
I think it should be treated as bug in f/runtime/configure.in
as DJGPP defines both unix and __MSDOS__
The following patch for f/runtime/configure.in fixes problem for DJGPP
port of g77. (and as I hope doesn't break anything).
Andris
pavenis AT lanet DOT lv
---------------------------------------------------------------------------------------
*** configure.in~ Sat Apr 25 16:22:18 1998
--- configure.in Fri Jul 10 20:26:34 1998
***************
*** 210,218 ****
fi
# define NON_ANSI_RW_MODES on unix (can't hurt)
AC_MSG_CHECKING(NON_ANSI_RW_MODES)
AC_EGREP_CPP(yes,
! [#ifdef unix
yes
#endif
#ifdef __unix
--- 210,222 ----
fi
# define NON_ANSI_RW_MODES on unix (can't hurt)
+ # also avoid this define for DJGPP (it defines both __MSDOS__ and unix)
AC_MSG_CHECKING(NON_ANSI_RW_MODES)
AC_EGREP_CPP(yes,
! [#ifdef __MSDOS__
! no
! #else
! #ifdef unix
yes
#endif
#ifdef __unix
***************
*** 220,225 ****
--- 224,230 ----
#endif
#ifdef __unix__
yes
+ #endif
#endif
], is_unix=yes, is_unix=no)
if test $g77_cv_sys_cygwin32 = yes || test $g77_cv_sys_mingw32 = yes; then
- Raw text -