mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
* acinclude.m4 (MC_WITH_VFS): Use AC_SEARCH_LIBS when possible.
Allow disabling network code by --disable-netcode.
This commit is contained in:
parent
cd644b527c
commit
fc7dc2ba67
@ -1,3 +1,8 @@
|
|||||||
|
2003-10-29 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* acinclude.m4 (MC_WITH_VFS): Use AC_SEARCH_LIBS when possible.
|
||||||
|
Allow disabling network code by --disable-netcode.
|
||||||
|
|
||||||
2003-10-28 Pavel Roskin <proski@gnu.org>
|
2003-10-28 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* configure.in: Don't check if "file" can use stdin - it's
|
* configure.in: Don't check if "file" can use stdin - it's
|
||||||
|
39
acinclude.m4
39
acinclude.m4
@ -125,36 +125,18 @@ dnl Private define
|
|||||||
AC_DEFUN([MC_WITH_VFS],[
|
AC_DEFUN([MC_WITH_VFS],[
|
||||||
MC_EXTFS_CHECKS
|
MC_EXTFS_CHECKS
|
||||||
|
|
||||||
dnl FIXME: network checks should probably be in their own macro.
|
|
||||||
AC_CHECK_LIB(nsl, t_accept)
|
|
||||||
AC_CHECK_LIB(socket, socket)
|
|
||||||
|
|
||||||
have_socket=no
|
|
||||||
AC_CHECK_FUNCS(socket, have_socket=yes)
|
|
||||||
if test $have_socket = no; then
|
|
||||||
# socket is not in the default libraries. See if it's in some other.
|
|
||||||
for lib in bsd socket inet; do
|
|
||||||
AC_CHECK_LIB([$lib], [socket], [
|
|
||||||
LIBS="$LIBS -l$lib"
|
|
||||||
have_socket=yes
|
|
||||||
AC_DEFINE(HAVE_SOCKET)
|
|
||||||
break])
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
have_gethostbyname=no
|
|
||||||
AC_CHECK_FUNC(gethostbyname, have_gethostbyname=yes)
|
|
||||||
if test $have_gethostbyname = no; then
|
|
||||||
# gethostbyname is not in the default libraries. See if it's in some other.
|
|
||||||
for lib in bsd socket inet; do
|
|
||||||
AC_CHECK_LIB([$lib], [gethostbyname],
|
|
||||||
[LIBS="$LIBS -l$lib"; have_gethostbyname=yes; break])
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
vfs_flags="cpiofs, extfs, tarfs"
|
vfs_flags="cpiofs, extfs, tarfs"
|
||||||
use_net_code=false
|
use_net_code=false
|
||||||
if test $have_socket = yes; then
|
|
||||||
|
AC_ARG_ENABLE([netcode],
|
||||||
|
[ --enable-netcode Support for networking [[yes]]])
|
||||||
|
|
||||||
|
if test "x$enable_netcode" != xno; then
|
||||||
|
dnl FIXME: network checks should probably be in their own macro.
|
||||||
|
AC_CHECK_LIB(nsl, main)
|
||||||
|
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_STRUCT_LINGER
|
||||||
AC_CHECK_FUNCS(pmap_set, , [
|
AC_CHECK_FUNCS(pmap_set, , [
|
||||||
AC_CHECK_LIB(rpc, pmap_set, [
|
AC_CHECK_LIB(rpc, pmap_set, [
|
||||||
@ -185,6 +167,7 @@ AC_DEFUN([MC_WITH_VFS],[
|
|||||||
vfs_flags="$vfs_flags, ftpfs, fish"
|
vfs_flags="$vfs_flags, ftpfs, fish"
|
||||||
use_net_code=true
|
use_net_code=true
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Samba support
|
dnl Samba support
|
||||||
|
Loading…
Reference in New Issue
Block a user