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 0b54fd58..dd74b3b4 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 dnl Checks for library functions. AC_CHECK_FUNCS(openpty strlcpy mkdtemp arc4random setproctitle setlogin) +AC_CHECK_FUNC(login, + [AC_DEFINE(HAVE_LOGIN)], + [AC_CHECK_LIB(bsd, login, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_LOGIN)])] +) + +AC_CHECK_FUNC(daemon, + [AC_DEFINE(HAVE_DAEMON)], + [AC_CHECK_LIB(bsd, daemon, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_DAEMON)])] +) + dnl Check whether use wants to disable the external ssh-askpass INSTALL_ASKPASS="yes" AC_MSG_CHECKING([whether to enable external ssh-askpass support]) @@ -156,7 +166,7 @@ done AC_MSG_CHECKING([whether libc defines __progname]) AC_TRY_LINK([], - [extern char *__progname;], + [extern char *__progname; printf("%s", __progname);], [ AC_DEFINE(HAVE___PROGNAME) AC_MSG_RESULT(yes) |