From edf53d1cffda56aa09ba6b111f49f9f1b29e7c67 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Wed, 4 Jul 2007 20:02:38 +0000 Subject: [PATCH] 2007-07-04 Marcus Brinkmann * autogen.sh: Use = not == in test. --- trunk/ChangeLog | 4 ++++ trunk/configure.ac | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/trunk/ChangeLog b/trunk/ChangeLog index 402a885..a2fd496 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,3 +1,7 @@ +2007-07-04 Marcus Brinkmann + + * autogen.sh: Use = not == in test. + 2007-03-05 Werner Koch Released 1.1.4. diff --git a/trunk/configure.ac b/trunk/configure.ac index d4f7f7e..dc67682 100644 --- a/trunk/configure.ac +++ b/trunk/configure.ac @@ -538,6 +538,22 @@ AC_DEFINE_UNQUOTED(USE_DESCRIPTOR_PASSING, $fd_passing, [Defined if descriptor passing is enabled and supported]) AM_CONDITIONAL(USE_DESCRIPTOR_PASSING, test "$use_descriptor_passing" = "yes") +# Assuan check for the getsockopt SO_PEERCRED +AC_MSG_CHECKING(for SO_PEERCRED) +AC_CACHE_VAL(assuan_cv_sys_so_peercred, + [AC_TRY_COMPILE([#include ], + [struct ucred cr; + int cl = sizeof cr; + getsockopt (1, SOL_SOCKET, SO_PEERCRED, &cr, &cl);], + assuan_cv_sys_so_peercred=yes, + assuan_cv_sys_so_peercred=no) + ]) +AC_MSG_RESULT($assuan_cv_sys_so_peercred) +if test $assuan_cv_sys_so_peercred = yes; then + AC_DEFINE(HAVE_SO_PEERCRED, 1, + [Defined if SO_PEERCRED is supported (Linux specific)]) +fi + # End of assuan checks. AM_CONDITIONAL(BUILD_COMPLUS, test "$component_system" = "COM+") -- 2.26.2