[svn] gpgme - r1195 - trunk

svn author marcus cvs at cvs.gnupg.org
Sun Dec 3 00:58:36 CET 2006


Author: marcus
Date: 2006-12-03 00:58:35 +0100 (Sun, 03 Dec 2006)
New Revision: 1195

Modified:
   trunk/ChangeLog
   trunk/configure.ac
Log:
2006-12-03  Marcus Brinkmann  <marcus at g10code.de>

	* configure.ac: Add check for use of descriptor passing.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2006-12-02 23:57:14 UTC (rev 1194)
+++ trunk/ChangeLog	2006-12-02 23:58:35 UTC (rev 1195)
@@ -1,3 +1,7 @@
+2006-12-03  Marcus Brinkmann  <marcus at g10code.de>
+
+	* configure.ac: Add check for use of descriptor passing.
+
 2006-11-29  Marcus Brinkmann  <marcus at g10code.de>
 
 	* configure.ac (NEED_GPG_VERSION): Bump to 1.3.0.

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2006-12-02 23:57:14 UTC (rev 1194)
+++ trunk/configure.ac	2006-12-02 23:58:35 UTC (rev 1195)
@@ -468,6 +468,32 @@
 # More assuan checks.
 AC_CHECK_HEADERS([sys/uio.h])
 
+# Assuan check for descriptor passing.
+AC_CHECK_MEMBER(struct cmsghdr.cmsg_len,
+                [use_descriptor_passing=yes],
+                [use_descriptor_passing=no
+                 AC_MSG_WARN([
+***
+*** Data structure for sending ancillary data missing.
+*** Descriptor passing won't work.
+***])],[
+#include <stdlib.h>
+#include <stddef.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <sys/un.h>
+#if HAVE_SYS_UIO_H
+#include <sys/uio.h>
+#endif
+#include <unistd.h>
+       ])
+if test "$use_descriptor_passing" = "yes"; then
+ AC_DEFINE(USE_DESCRIPTOR_PASSING, 1,
+            [Defined if descriptor passing is supported])
+fi
+AM_CONDITIONAL(USE_DESCRIPTOR_PASSING, test "$use_descriptor_passing" = "yes")
+
 # End of assuan checks.
 
 AM_CONDITIONAL(BUILD_COMPLUS, test "$component_system" = "COM+")




More information about the Gnupg-commits mailing list