Patch to configure.in for IRIX 6.5

From: Date: Thu, 29 Jul 1999 05:37:29 +0000
Subject: Patch to configure.in for IRIX 6.5
Groups: php.dev 
Request: Send a blank email to php-dev+get-9303@lists.php.net to get a copy of this message
Before checking gethostname() against -lnsl, it should be checked without it as it might be in -lc. The patch below fixes this. I've also changed gethostname to gethostent per the following in GNU tar 1.13: # Whenever both -lsocket and -lnsl are needed, it seems to be always the # case that gethostbyname requires -lnsl. So, check -lnsl first, for it # to be in LIBS before the setsockopt checks are performed. *However*, # on SINIX-N 5.43, this is false, and gethostent seems to be a better # candidate. So, let's use it below instead of gethostbyname, and see. On IRIX 6.5, -lnsl gives lots of: ld32: WARNING 134: weak definition of [blah] in \ /usr/lib32/libnsl.so preempts that weak definition \ in /usr/lib32/mips3/libc.so After enough of these, the linker stops. It's easy to turn these warnings off but I think the patch below is a better fix. -- albert chin (china@thewrittenword.com) -- snip snip --- configure.in.orig Thu Jul 29 00:18:22 1999 +++ configure.in Thu Jul 29 00:22:33 1999 @@ -108,9 +108,10 @@ LDFLAGS="$LDFLAGS -L/usr/pkg/lib" fi -AC_CHECK_LIB(nsl, gethostname, [ - LIBS="-lnsl $LIBS" - AC_DEFINE(HAVE_LIBNSL) ], []) +AC_CHECK_FUNC(gethostent, [], [ + AC_CHECK_LIB(nsl, gethostent, [ + LIBS="-lnsl $LIBS" + AC_DEFINE(HAVE_LIBNSL) ], [])]) AC_CHECK_LIB(c, socket, [:], [ AC_CHECK_LIB(socket, socket, [

« previous php.dev (#9303) next »