Mercurial > dovecot > core-2.2
changeset 3590:340e1b87c27b HEAD
Added check for _XPG6 macro for crypt().
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 18 Sep 2005 20:31:34 +0300 |
parents | fead84acb13c |
children | 69f731759776 |
files | configure.in |
diffstat | 1 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.in Sun Sep 18 20:18:18 2005 +0300 +++ b/configure.in Sun Sep 18 20:31:34 2005 +0300 @@ -1,4 +1,4 @@ -AC_INIT(dovecot, 1.0alpha2, [dovecot@dovecot.org]) +AC_INIT(dovecot, 1.0.alpha2, [dovecot@dovecot.org]) AC_CONFIG_SRCDIR([src]) AC_CONFIG_HEADERS([config.h]) @@ -955,6 +955,21 @@ ]) ]) +dnl * Check for crypt() if unistd.h compiles with _XOPEN_SOURCE + _XPG6 +dnl * Add other macros there too "just in case". +AC_TRY_COMPILE([ + #define _XOPEN_SOURCE 4 + #define _XOPEN_SOURCE_EXTENDED 1 + #define _XOPEN_VERSION 4 + #define _XPG4_2 + #define _XPG6 + #include <unistd.h> +], [ + crypt("a", "b"); +], [ + AC_DEFINE(CRYPT_USE_XPG6,, Define if _XPG6 macro is needed for crypt()) +]) + dnl *** dnl *** va_copy checks (from GLIB) dnl ***