From 2cc2d0ba9b47751c4bdbeced2f029e1cbc025523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Mon, 2 Mar 1998 20:15:52 +0100 Subject: [PATCH] Added possibility to override socketpair(). Rev: src/modules/files/configure.in:1.35 --- src/modules/files/configure.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/modules/files/configure.in b/src/modules/files/configure.in index 796f185295..af2806aeeb 100644 --- a/src/modules/files/configure.in +++ b/src/modules/files/configure.in @@ -3,6 +3,8 @@ AC_CONFIG_HEADER(file_machine.h) sinclude(../module_configure.in) +AC_ARG_ENABLE(socketpair, [ --enable-socketpair Force the system socketpair to be used ]) + AC_HAVE_HEADERS(sys/types.h arpa/inet.h sys/socketvar.h netinet/in.h \ sys/mount.h ustat.h sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \ sys/socket.h sys/stream.h sys/protosw.h netdb.h sys/sysproto.h) @@ -449,6 +451,11 @@ int main() AC_MSG_RESULT($pike_cv_select_on_unix_sockets) if test x$pike_cv_select_on_unix_sockets = xyes ; then AC_DEFINE(HAVE_SOCKETPAIR) +else + if test x$enable_socketpair = xyes ; then + echo 'WARNING: Forcing socketpair() to be used.' + AC_DEFINE(HAVE_SOCKETPAIR) + else :; fi fi -- GitLab