From 939c9db9b1e71fed79edc6d77a2d89ca991f4b2e Mon Sep 17 00:00:00 2001 From: Kevin Steves Date: Fri, 22 Mar 2002 17:23:25 +0000 Subject: - (stevesk) HAVE_ACCRIGHTS_IN_MSGHDR configure support --- configure.ac | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 670764f52..4a61c82f4 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -# $Id: configure.ac,v 1.26 2002/03/17 20:17:35 tim Exp $ +# $Id: configure.ac,v 1.27 2002/03/22 17:23:26 stevesk Exp $ AC_INIT AC_CONFIG_SRCDIR([ssh.c]) @@ -1576,6 +1576,22 @@ if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then AC_DEFINE(HAVE_PW_CHANGE_IN_PASSWD) fi +AC_CACHE_CHECK([for msg_accrights field in struct msghdr], + ac_cv_have_accrights_in_msghdr, [ + AC_TRY_COMPILE( + [ +#include +#include + ], + [ struct msghdr m; m.msg_accrights = 0; ], + [ ac_cv_have_accrights_in_msghdr="yes" ], + [ ac_cv_have_accrights_in_msghdr="no" ] + ) +]) +if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then + AC_DEFINE(HAVE_ACCRIGHTS_IN_MSGHDR) +fi + AC_CACHE_CHECK([if libc defines __progname], ac_cv_libc_defines___progname, [ AC_TRY_LINK([], [ extern char *__progname; printf("%s", __progname); ], -- cgit v1.2.3