[Python-bugs-list] configure problem: libieee with Linux/glibc2 ? (PR#224)
flight@mathi.uni-heidelberg.de
flight@mathi.uni-heidelberg.de
Sat, 4 Mar 2000 15:01:18 -0500 (EST)
--zYM0uCDKw75PZbzx
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
I think Python 1.5.2's configure script is to fast with including -lieee in=
LIBS.
I would suggest the following change to configure.in:
@@ -850,7 +856,10 @@
# (none yet)
=20
# Linux requires this for correct f.p. operations
-AC_CHECK_LIB(ieee, __fpu_control)
+AC_CHECK_FUNC(__fpu_control,
+ [],
+ [AC_CHECK_LIB(ieee, __fpu_control)
+])
=20
# Check for --with-fpectl
AC_MSG_CHECKING(for --with-fpectl)
This mean, libieee will only by tried if __fpu_control isn't found elsewhere
(i.e. in libc).=20
=20
With glibc 2.x, Linux doesn't need libieee anymore (it's still there for
compilation of legacy applications, but it's an empty static library), since
__fpu_control() is already defined in the libc library.
Furthermore, __fpu_control() is only used in fpectlmodule which currently
doesn't build with glibc 2.1 anyway due to the absence of __setfpucw (see
manpage below).
Does anybody know how to fix fpectlmodule for glibc 2.1 ? How does
__setfpucw(0x1372) translate into the _FPU_SETCW language ?
Gregor
=20
NAME
__setfpucw - set fpu control word on i386 architecture
(obsolete)
SYNOPSIS
#include <i386/fpu_control.h>
void __setfpucw((unsigned short) control_word);
DESCRIPTION
__setfpucw transfer control_word to the registers of the
fpu (floating point unit) on i386 architecture. This was
used to control floating point precision, rounding and
floating point exceptions.
AVAILABILITY
As of glibc 2.1 (libc6 2.1) this function does not exist
anymore. There are new functions from ISO C 9x to control
fpu rounding modes. These functions don't have manpages,
but are documented in the info docs.
If direct acces to the FPU control word is still needed,
the _FPU_GETCW and _FPU_SETCW macros from
/usr/include/fpu_control.h can be used.
=20
--zYM0uCDKw75PZbzx
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE4wWfQ3eVfDf25G40RAel1AKC+sA67Wy2fzav4T0fAYd84PXT4rQCdGXdr
j9s6W3nqetjTtWGLg1g7C0Y=
=Y40q
-----END PGP SIGNATURE-----
--zYM0uCDKw75PZbzx--