diff options
author | Damien Miller <djm@mindrot.org> | 1999-11-19 15:32:34 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 1999-11-19 15:32:34 +1100 |
commit | 04f801456ad64b8f08bb8643cf19e0b9ca477b36 (patch) | |
tree | a0fd23f758cb40cf808b8c18ced35d4045decee9 /configure.in | |
parent | 8029775b77e8f8bc380518f9f734a9d979025bbb (diff) |
- Renamed BSD helper function files to bsd-*
- Added tests for login and daemon and OpenBSD replacements for when they
are absent.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 0b54fd58a..dd74b3b4f 100644 --- a/configure.in +++ b/configure.in | |||
@@ -60,6 +60,16 @@ AC_CHECK_HEADERS(pty.h endian.h paths.h lastlog.h shadow.h netgroup.h maillock.h | |||
60 | dnl Checks for library functions. | 60 | dnl Checks for library functions. |
61 | AC_CHECK_FUNCS(openpty strlcpy mkdtemp arc4random setproctitle setlogin) | 61 | AC_CHECK_FUNCS(openpty strlcpy mkdtemp arc4random setproctitle setlogin) |
62 | 62 | ||
63 | AC_CHECK_FUNC(login, | ||
64 | [AC_DEFINE(HAVE_LOGIN)], | ||
65 | [AC_CHECK_LIB(bsd, login, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_LOGIN)])] | ||
66 | ) | ||
67 | |||
68 | AC_CHECK_FUNC(daemon, | ||
69 | [AC_DEFINE(HAVE_DAEMON)], | ||
70 | [AC_CHECK_LIB(bsd, daemon, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_DAEMON)])] | ||
71 | ) | ||
72 | |||
63 | dnl Check whether use wants to disable the external ssh-askpass | 73 | dnl Check whether use wants to disable the external ssh-askpass |
64 | INSTALL_ASKPASS="yes" | 74 | INSTALL_ASKPASS="yes" |
65 | AC_MSG_CHECKING([whether to enable external ssh-askpass support]) | 75 | AC_MSG_CHECKING([whether to enable external ssh-askpass support]) |
@@ -156,7 +166,7 @@ done | |||
156 | 166 | ||
157 | AC_MSG_CHECKING([whether libc defines __progname]) | 167 | AC_MSG_CHECKING([whether libc defines __progname]) |
158 | AC_TRY_LINK([], | 168 | AC_TRY_LINK([], |
159 | [extern char *__progname;], | 169 | [extern char *__progname; printf("%s", __progname);], |
160 | [ | 170 | [ |
161 | AC_DEFINE(HAVE___PROGNAME) | 171 | AC_DEFINE(HAVE___PROGNAME) |
162 | AC_MSG_RESULT(yes) | 172 | AC_MSG_RESULT(yes) |