]> granicus.if.org Git - python/commitdiff
Get rid of test for -lsun (very old IRIX); add test for -lm (needed on
authorGuido van Rossum <guido@python.org>
Thu, 7 May 1998 13:25:56 +0000 (13:25 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 7 May 1998 13:25:56 +0000 (13:25 +0000)
enough platforms).

config.h.in
configure.in

index f2393daa8908a1a8d27cc3409c7a9a6074df3bf0..6d01d3b97f5561541553c84c4777d985cc6922cb 100644 (file)
 
 /* Define if you have the ieee library (-lieee).  */
 #undef HAVE_LIBIEEE
+
+/* Define if you have the m library (-lm).  */
+#undef HAVE_LIBM
index af122df453f07ffb06a70fe732f3931ea5fa8d5c..e96402cebe4a6b02ad1bde3dc4ac3a473012ddff 100644 (file)
@@ -345,14 +345,14 @@ AC_MSG_RESULT($LINKFORSHARED)
 # checks for libraries
 AC_CHECK_LIB(dl, dlopen)       # Dynamic linking for SunOS/Solaris and SYSV
 AC_CHECK_LIB(dld, shl_load)    # Dynamic linking for HP-UX
-AC_CHECK_LIB(sun, getpwnam)    # NIS (== YP) interface for IRIX 4
+AC_CHECK_LIB(m, pow)           # Std math lib -- assume needed if it exists
 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
 # However on SGI IRIX, these exist but are broken.
-if test "$ac_sys_system" != IRIX
-then
+case "$ac_sys_system" in IRIX*) ;;
+*)
 AC_CHECK_LIB(nsl, t_open, [LIBS="-lnsl $LIBS"]) # SVR4
 AC_CHECK_LIB(socket, socket, [LIBS="-lsocket $LIBS"], [], $LIBS) # SVR4 sockets
-fi
+;; esac
 
 AC_MSG_CHECKING(for --with-libs)
 AC_ARG_WITH(libs, [--with-libs='lib1 ...'    link against additional libs], [