/usr/share/globus/aclocal/acnetworking.m4 is in globus-core 8.16-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | AC_DEFUN([CHECK_NEED_LSOCKET], [
dnl
dnl Check whether we need -lsocket
dnl
AC_MSG_CHECKING(for -lsocket)
if test "${lac_cv_lsocket+set}" = set; then
AC_MSG_RESULT([(cached) $lac_cv_lsocket])
else
AC_TRY_LINK(
[
#include <sys/types.h>
#include <sys/socket.h>
],
[
int fd;
fd = socket(AF_INET,SOCK_STREAM,0);
],
[
lac_cv_lsocket="no"
],
[
lac_cv_lsocket="yes"
EXTERNAL_LIBS="$EXTERNAL_LIBS -lsocket"
]
)
AC_MSG_RESULT($lac_cv_lsocket)
fi
])
AC_DEFUN([CHECK_NEED_LNSL], [
dnl
dnl Check whether we need -lnsl
dnl
AC_MSG_CHECKING(for -lnsl)
if test "${lac_cv_lnsl+set}" = set; then
AC_MSG_RESULT([(cached) $lac_cv_lnsl])
else
AC_TRY_LINK(
[
#include <netdb.h>
],
[
struct hostent * host;
host = gethostbyname("localhost");
],
[
lac_cv_lnsl="no"
],
[
lac_cv_lnsl="yes"
EXTERNAL_LIBS="$EXTERNAL_LIBS -lnsl"
]
)
AC_MSG_RESULT($lac_cv_lnsl)
fi
])
|