Skip to content

Commit 2cb5660

Browse files
committed
Get rid of test for -lsun (very old IRIX); add test for -lm (needed on
enough platforms).
1 parent 0072b8d commit 2cb5660

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

config.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,3 +396,6 @@
396396

397397
/* Define if you have the ieee library (-lieee). */
398398
#undef HAVE_LIBIEEE
399+
400+
/* Define if you have the m library (-lm). */
401+
#undef HAVE_LIBM

configure.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,14 +345,14 @@ AC_MSG_RESULT($LINKFORSHARED)
345345
# checks for libraries
346346
AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV
347347
AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX
348-
AC_CHECK_LIB(sun, getpwnam) # NIS (== YP) interface for IRIX 4
348+
AC_CHECK_LIB(m, pow) # Std math lib -- assume needed if it exists
349349
# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
350350
# However on SGI IRIX, these exist but are broken.
351-
if test "$ac_sys_system" != IRIX
352-
then
351+
case "$ac_sys_system" in IRIX*) ;;
352+
*)
353353
AC_CHECK_LIB(nsl, t_open, [LIBS="-lnsl $LIBS"]) # SVR4
354354
AC_CHECK_LIB(socket, socket, [LIBS="-lsocket $LIBS"], [], $LIBS) # SVR4 sockets
355-
fi
355+
;; esac
356356

357357
AC_MSG_CHECKING(for --with-libs)
358358
AC_ARG_WITH(libs, [--with-libs='lib1 ...' link against additional libs], [

0 commit comments

Comments
 (0)