aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ecore/m4/ac_abstract_socket.m4
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 17:29:19 +1000
committerDavid Walter Seikel2013-01-13 17:29:19 +1000
commit07274513e984f0b5544586c74508ccd16e7dcafa (patch)
treeb32ff2a9136fbc1a4a6a0ed1e4d79cde0f5f16d9 /libraries/ecore/m4/ac_abstract_socket.m4
parentAdded Irrlicht 1.8, but without all the Windows binaries. (diff)
downloadSledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.zip
SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.gz
SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.bz2
SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.xz
Remove EFL, since it's been released now.
Diffstat (limited to 'libraries/ecore/m4/ac_abstract_socket.m4')
-rw-r--r--libraries/ecore/m4/ac_abstract_socket.m441
1 files changed, 0 insertions, 41 deletions
diff --git a/libraries/ecore/m4/ac_abstract_socket.m4 b/libraries/ecore/m4/ac_abstract_socket.m4
deleted file mode 100644
index c4f0b74..0000000
--- a/libraries/ecore/m4/ac_abstract_socket.m4
+++ /dev/null
@@ -1,41 +0,0 @@
1dnl AC_ABSTRACT_SOCKET_TEST(ACTION_IF_FOUND, ACTION_IF_NOT_FOUND)
2dnl test if a system supports the abstract socket namespace
3dnl by rephorm
4AC_DEFUN([AC_ABSTRACT_SOCKET_TEST], [
5AC_MSG_CHECKING(abstract sockets)
6AC_LANG_PUSH(C)
7AC_RUN_IFELSE([AC_LANG_PROGRAM(
8[[
9// headers
10#include <stdio.h>
11#include <stdlib.h>
12#include <string.h>
13#include <sys/socket.h>
14#include <sys/types.h>
15#include <sys/un.h>
16]],
17[[
18// main fn
19#define ABS_SUN_LEN(s, path) (strlen(path) + 1 + (size_t)(((struct sockaddr_un *)NULL)->sun_path))
20 int fd;
21 struct sockaddr_un sock;
22 char *tmp;
23 char *name = "/ecore/dbus/abstract/test";
24
25 sock.sun_family = AF_UNIX;
26 snprintf(sock.sun_path, sizeof(sock.sun_path), ".%s", name);
27 sock.sun_path[0] = '\0';
28 fd = socket(PF_UNIX, SOCK_STREAM, 0);
29 if (bind(fd, (struct sockaddr *)&sock, ABS_SUN_LEN(&sock, name)) < 0)
30 {
31 printf("Failed to bind to abstract socket.\n");
32 exit(1);
33 }
34
35 printf ("connected\n");
36 exit(0);
37]])],
38[$1],
39[$2])
40])
41