mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 04:22:34 +03:00
* acinclude.m4 (AC_STRUCT_LINGER): Remove, use AC_CHECK_MEMBERS
instead.
This commit is contained in:
parent
8bc40b44f0
commit
b733f1fa6e
@ -1,5 +1,8 @@
|
||||
2003-10-29 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* acinclude.m4 (AC_STRUCT_LINGER): Remove, use AC_CHECK_MEMBERS
|
||||
instead.
|
||||
|
||||
* configure.in: Define SLANG_POSIX_SIGNALS if all 4 required
|
||||
functions are present. Remove references to extraconf.h.
|
||||
* extraconf.h: Eliminate.
|
||||
|
36
acinclude.m4
36
acinclude.m4
@ -137,7 +137,10 @@ AC_DEFUN([MC_WITH_VFS],[
|
||||
AC_SEARCH_LIBS(socket, [xnet bsd socket inet], [have_socket=yes])
|
||||
if test x$have_socket = xyes; then
|
||||
AC_SEARCH_LIBS(gethostbyname, [bsd socket inet netinet])
|
||||
AC_STRUCT_LINGER
|
||||
AC_CHECK_MEMBERS([struct linger.l_linger], , , [
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
])
|
||||
AC_CHECK_FUNCS(pmap_set, , [
|
||||
AC_CHECK_LIB(rpc, pmap_set, [
|
||||
LIBS="-lrpc $LIBS"
|
||||
@ -255,37 +258,6 @@ AC_DEFUN([MC_VFS_CHECKS],[
|
||||
|
||||
|
||||
|
||||
dnl
|
||||
dnl Check for struct linger
|
||||
dnl
|
||||
AC_DEFUN([AC_STRUCT_LINGER], [
|
||||
av_struct_linger=no
|
||||
AC_MSG_CHECKING([struct linger is available])
|
||||
AC_TRY_RUN([
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
struct linger li;
|
||||
|
||||
int main ()
|
||||
{
|
||||
li.l_onoff = 1;
|
||||
li.l_linger = 120;
|
||||
return 0;
|
||||
}
|
||||
],[
|
||||
AC_DEFINE(HAVE_STRUCT_LINGER, 1,
|
||||
[Define if `struct linger' is available])
|
||||
av_struct_linger=yes
|
||||
],[
|
||||
av_struct_linger=no
|
||||
],[
|
||||
av_struct_linger=no
|
||||
])
|
||||
AC_MSG_RESULT([$av_struct_linger])
|
||||
])
|
||||
|
||||
|
||||
dnl
|
||||
dnl Filesystem information detection
|
||||
dnl
|
||||
|
Loading…
Reference in New Issue
Block a user