diff options
author | Jonathan Pryor <jpryor@novell.com> | 2005-12-01 22:34:09 +0300 |
---|---|---|
committer | Jonathan Pryor <jpryor@novell.com> | 2005-12-01 22:34:09 +0300 |
commit | 05207de43ff80e39a88a5abe765b52725dd0089b (patch) | |
tree | b231ea4d132a6e4c02ee8d2669a76ff7ff93f7d4 /configure.in | |
parent | de030a11c5f9e20cb5bae4e22351c3ee87a0faf2 (diff) |
* configure.in: Check for setkey(3) in -lcrypt and define CRYPT_LIBS
accordingly.
* support/Makefile.am: Use $(CRYPT_LIB), not -lcrypt, as not all platforms
support -lcrypt.
* support/stdlib.c: Wrap Mono_Posix_Syscall_setkey() within HAVE_SETKEY,
not PLATFORM_WIN32
svn path=/trunk/mono/; revision=53787
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.in b/configure.in index e4cce1d6edc..360d5ade3ff 100644 --- a/configure.in +++ b/configure.in @@ -1186,6 +1186,13 @@ if test x$platform_win32 = xno; then dnl ********************************** dnl *** Checks for MonoPosixHelper *** dnl ********************************** + AC_CHECK_FUNC(setkey, , + AC_CHECK_LIB(crypt, setkey, [ + AC_DEFINE(HAVE_SETKEY, 1, [Define if setkey(3) is available]) + CRYPT_LIBS="-lcrypt" + ]) + ) + AC_SUBST(CRYPT_LIBS) AC_CHECK_HEADERS(checklist.h) AC_CHECK_HEADERS(fstab.h) AC_CHECK_HEADERS(attr/xattr.h) |