diff options
author | Kevin Steves <stevesk@pobox.com> | 2002-03-22 17:23:25 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@pobox.com> | 2002-03-22 17:23:25 +0000 |
commit | 939c9db9b1e71fed79edc6d77a2d89ca991f4b2e (patch) | |
tree | 6eb7d4da41d392404a75f9a18c22010abeb62029 | |
parent | 681d932634983e610421680af6f9759af0f47d06 (diff) |
- (stevesk) HAVE_ACCRIGHTS_IN_MSGHDR configure support
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | acconfig.h | 5 | ||||
-rw-r--r-- | configure.ac | 18 |
3 files changed, 25 insertions, 3 deletions
@@ -1,3 +1,6 @@ | |||
1 | 20020322 | ||
2 | - (stevesk) HAVE_ACCRIGHTS_IN_MSGHDR configure support | ||
3 | |||
1 | 20020321 | 4 | 20020321 |
2 | - (bal) OpenBSD CVS Sync | 5 | - (bal) OpenBSD CVS Sync |
3 | - itojun@cvs.openbsd.org 2002/03/08 06:10:16 | 6 | - itojun@cvs.openbsd.org 2002/03/08 06:10:16 |
@@ -7991,4 +7994,4 @@ | |||
7991 | - Wrote replacements for strlcpy and mkdtemp | 7994 | - Wrote replacements for strlcpy and mkdtemp |
7992 | - Released 1.0pre1 | 7995 | - Released 1.0pre1 |
7993 | 7996 | ||
7994 | $Id: ChangeLog,v 1.1966 2002/03/22 03:53:00 mouring Exp $ | 7997 | $Id: ChangeLog,v 1.1967 2002/03/22 17:23:25 stevesk Exp $ |
diff --git a/acconfig.h b/acconfig.h index 40cbeeb7d..b2cf81ca7 100644 --- a/acconfig.h +++ b/acconfig.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: acconfig.h,v 1.122 2002/02/26 16:40:49 tim Exp $ */ | 1 | /* $Id: acconfig.h,v 1.123 2002/03/22 17:23:26 stevesk Exp $ */ |
2 | 2 | ||
3 | #ifndef _CONFIG_H | 3 | #ifndef _CONFIG_H |
4 | #define _CONFIG_H | 4 | #define _CONFIG_H |
@@ -32,6 +32,9 @@ | |||
32 | /* Define if your password has a pw_change field */ | 32 | /* Define if your password has a pw_change field */ |
33 | #undef HAVE_PW_CHANGE_IN_PASSWD | 33 | #undef HAVE_PW_CHANGE_IN_PASSWD |
34 | 34 | ||
35 | /* Define if your system uses access rights style file descriptor passing */ | ||
36 | #undef HAVE_ACCRIGHTS_IN_MSGHDR | ||
37 | |||
35 | /* Define if you system's inet_ntoa is busted (e.g. Irix gcc issue) */ | 38 | /* Define if you system's inet_ntoa is busted (e.g. Irix gcc issue) */ |
36 | #undef BROKEN_INET_NTOA | 39 | #undef BROKEN_INET_NTOA |
37 | 40 | ||
diff --git a/configure.ac b/configure.ac index 670764f52..4a61c82f4 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.26 2002/03/17 20:17:35 tim Exp $ | 1 | # $Id: configure.ac,v 1.27 2002/03/22 17:23:26 stevesk Exp $ |
2 | 2 | ||
3 | AC_INIT | 3 | AC_INIT |
4 | AC_CONFIG_SRCDIR([ssh.c]) | 4 | AC_CONFIG_SRCDIR([ssh.c]) |
@@ -1576,6 +1576,22 @@ if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | |||
1576 | AC_DEFINE(HAVE_PW_CHANGE_IN_PASSWD) | 1576 | AC_DEFINE(HAVE_PW_CHANGE_IN_PASSWD) |
1577 | fi | 1577 | fi |
1578 | 1578 | ||
1579 | AC_CACHE_CHECK([for msg_accrights field in struct msghdr], | ||
1580 | ac_cv_have_accrights_in_msghdr, [ | ||
1581 | AC_TRY_COMPILE( | ||
1582 | [ | ||
1583 | #include <sys/socket.h> | ||
1584 | #include <sys/uio.h> | ||
1585 | ], | ||
1586 | [ struct msghdr m; m.msg_accrights = 0; ], | ||
1587 | [ ac_cv_have_accrights_in_msghdr="yes" ], | ||
1588 | [ ac_cv_have_accrights_in_msghdr="no" ] | ||
1589 | ) | ||
1590 | ]) | ||
1591 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
1592 | AC_DEFINE(HAVE_ACCRIGHTS_IN_MSGHDR) | ||
1593 | fi | ||
1594 | |||
1579 | AC_CACHE_CHECK([if libc defines __progname], ac_cv_libc_defines___progname, [ | 1595 | AC_CACHE_CHECK([if libc defines __progname], ac_cv_libc_defines___progname, [ |
1580 | AC_TRY_LINK([], | 1596 | AC_TRY_LINK([], |
1581 | [ extern char *__progname; printf("%s", __progname); ], | 1597 | [ extern char *__progname; printf("%s", __progname); ], |