diff options
author | Damien Miller <djm@mindrot.org> | 2000-08-23 10:46:23 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-08-23 10:46:23 +1000 |
commit | ad833b3e65c1887674714d514eb818d862bb499a (patch) | |
tree | 16fa75fe42aede072c5d3edac562c2870d1bb0e5 /configure.in | |
parent | b078567bf5de1dcf12d265d98acb4dc9eba8b325 (diff) |
- (djm) Pick up LOGIN_PROGRAM from environment or PATH if not set by headers
- (djm) OpenBSD CVS updates:
- deraadt@cvs.openbsd.org 2000/08/18 20:07:23
[ssh.c]
accept remsh as a valid name as well; roman@buildpoint.com
- deraadt@cvs.openbsd.org 2000/08/18 20:17:13
[deattack.c crc32.c packet.c]
rename crc32() to ssh_crc32() to avoid zlib name clash. do not move to
libz crc32 function yet, because it has ugly "long"'s in it;
oneill@cs.sfu.ca
- deraadt@cvs.openbsd.org 2000/08/18 20:26:08
[scp.1 scp.c]
-S prog support; tv@debian.org
- deraadt@cvs.openbsd.org 2000/08/18 20:50:07
[scp.c]
knf
- deraadt@cvs.openbsd.org 2000/08/18 20:57:33
[log-client.c]
shorten
- markus@cvs.openbsd.org 2000/08/19 12:48:11
[channels.c channels.h clientloop.c ssh.c ssh.h]
support for ~. in ssh2
- deraadt@cvs.openbsd.org 2000/08/19 15:29:40
[crc32.h]
proper prototype
- markus@cvs.openbsd.org 2000/08/19 15:34:44
[authfd.c authfd.h key.c key.h ssh-add.1 ssh-add.c ssh-agent.1]
[ssh-agent.c ssh-keygen.c sshconnect1.c sshconnect2.c Makefile]
[fingerprint.c fingerprint.h]
add SSH2/DSA support to the agent and some other DSA related cleanups.
(note that we cannot talk to ssh.com's ssh2 agents)
- markus@cvs.openbsd.org 2000/08/19 15:55:52
[channels.c channels.h clientloop.c]
more ~ support for ssh2
- markus@cvs.openbsd.org 2000/08/19 16:21:19
[clientloop.c]
oops
- millert@cvs.openbsd.org 2000/08/20 12:25:53
[session.c]
We have to stash the result of get_remote_name_or_ip() before we
close our socket or getpeername() will get EBADF and the process
will exit. Only a problem for "UseLogin yes".
- millert@cvs.openbsd.org 2000/08/20 12:30:59
[session.c]
Only check /etc/nologin if "UseLogin no" since login(1) may have its
own policy on determining who is allowed to login when /etc/nologin
is present. Also use the _PATH_NOLOGIN define.
- millert@cvs.openbsd.org 2000/08/20 12:42:43
[auth1.c auth2.c session.c ssh.c]
Add calls to setusercontext() and login_get*(). We basically call
setusercontext() in most places where previously we did a setlogin().
Add default login.conf file and put root in the "daemon" login class.
- millert@cvs.openbsd.org 2000/08/21 10:23:31
[session.c]
Fix incorrect PATH setting; noted by Markus.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 41 |
1 files changed, 34 insertions, 7 deletions
diff --git a/configure.in b/configure.in index f048b000d..02287b802 100644 --- a/configure.in +++ b/configure.in | |||
@@ -14,6 +14,17 @@ AC_SUBST(PERL) | |||
14 | AC_PATH_PROG(ENT, ent) | 14 | AC_PATH_PROG(ENT, ent) |
15 | AC_SUBST(ENT) | 15 | AC_SUBST(ENT) |
16 | 16 | ||
17 | # Use LOGIN_PROGRAM from environment if possible | ||
18 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
19 | AC_DEFINE_UNQUOTED(LOGIN_PROGRAM_FALLBACK, "$LOGIN_PROGRAM") | ||
20 | else | ||
21 | # Search for login | ||
22 | AC_PATH_PROG(LOGIN_PROGRAM_FALLBACK, login) | ||
23 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
24 | AC_DEFINE_UNQUOTED(LOGIN_PROGRAM_FALLBACK, "$LOGIN_PROGRAM_FALLBACK") | ||
25 | fi | ||
26 | fi | ||
27 | |||
17 | if test -z "$LD" ; then | 28 | if test -z "$LD" ; then |
18 | LD=$CC | 29 | LD=$CC |
19 | fi | 30 | fi |
@@ -225,18 +236,18 @@ if test -z "$no_libnsl" ; then | |||
225 | fi | 236 | fi |
226 | 237 | ||
227 | # Checks for header files. | 238 | # Checks for header files. |
228 | AC_CHECK_HEADERS(bstring.h endian.h floatingpoint.h lastlog.h limits.h login.h maillock.h netdb.h netgroup.h netinet/in_systm.h paths.h poll.h pty.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/select.h sys/stat.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h stddef.h time.h ttyent.h usersec.h util.h utmp.h utmpx.h) | 239 | AC_CHECK_HEADERS(bstring.h endian.h floatingpoint.h lastlog.h limits.h login.h login_cap.h maillock.h netdb.h netgroup.h netinet/in_systm.h paths.h poll.h pty.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/select.h sys/stat.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h stddef.h time.h ttyent.h usersec.h util.h utmp.h utmpx.h) |
229 | 240 | ||
230 | # Checks for library functions. | 241 | dnl Checks for library functions. |
231 | AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_af clock freeaddrinfo gai_strerror getaddrinfo getnameinfo getrusage getttyent inet_aton inet_ntoa innetgr md5_crypt memmove mkdtemp on_exit openpty rresvport_af setenv seteuid setlogin setproctitle setreuid sigaction sigvec snprintf strerror strlcat strlcpy strsep vsnprintf vhangup _getpty __b64_ntop) | 242 | AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_af clock freeaddrinfo gai_strerror getaddrinfo getnameinfo getrusage getttyent inet_aton inet_ntoa innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty rresvport_af setenv seteuid setlogin setproctitle setreuid sigaction sigvec snprintf strerror strlcat strlcpy strsep vsnprintf vhangup _getpty __b64_ntop) |
232 | dnl checks for time functions | 243 | dnl Checks for time functions |
233 | AC_CHECK_FUNCS(gettimeofday time) | 244 | AC_CHECK_FUNCS(gettimeofday time) |
234 | dnl checks for libutil functions | 245 | dnl Checks for libutil functions |
235 | AC_CHECK_FUNCS(login logout updwtmp logwtmp) | 246 | AC_CHECK_FUNCS(login logout updwtmp logwtmp) |
236 | dnl checks for utmp functions | 247 | dnl Checks for utmp functions |
237 | AC_CHECK_FUNCS(entutent getutent getutid getutline pututline setutent) | 248 | AC_CHECK_FUNCS(entutent getutent getutid getutline pututline setutent) |
238 | AC_CHECK_FUNCS(utmpname) | 249 | AC_CHECK_FUNCS(utmpname) |
239 | dnl checks for utmpx functions | 250 | dnl Checks for utmpx functions |
240 | AC_CHECK_FUNCS(entutxent getutxent getutxid getutxline pututxline ) | 251 | AC_CHECK_FUNCS(entutxent getutxent getutxid getutxline pututxline ) |
241 | AC_CHECK_FUNCS(setutxent utmpxname) | 252 | AC_CHECK_FUNCS(setutxent utmpxname) |
242 | 253 | ||
@@ -736,6 +747,22 @@ if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | |||
736 | AC_DEFINE(HAVE___SS_FAMILY_IN_SS) | 747 | AC_DEFINE(HAVE___SS_FAMILY_IN_SS) |
737 | fi | 748 | fi |
738 | 749 | ||
750 | AC_CACHE_CHECK([for pw_class field in struct passwd], | ||
751 | ac_cv_have_pw_class_in_struct_passwd, [ | ||
752 | AC_TRY_COMPILE( | ||
753 | [ | ||
754 | #include <sys/types.h> | ||
755 | #include <pwd.h> | ||
756 | ], | ||
757 | [ struct passwd p s; p.pw_class = NULL; ], | ||
758 | [ ac_cv_have_pw_class_in_struct_passwd="yes" ], | ||
759 | [ ac_cv_have_pw_class_in_struct_passwd="no" ] | ||
760 | ) | ||
761 | ]) | ||
762 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
763 | AC_DEFINE(HAVE_PW_CLASS_IN_PASSWD) | ||
764 | fi | ||
765 | |||
739 | 766 | ||
740 | AC_CACHE_CHECK([if libc defines __progname], ac_cv_libc_defines___progname, [ | 767 | AC_CACHE_CHECK([if libc defines __progname], ac_cv_libc_defines___progname, [ |
741 | AC_TRY_LINK([], | 768 | AC_TRY_LINK([], |