From f7548d6d28c313cf80e6f3ef89aed16a19815df1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 11:51:24 +0200 Subject: Adding upstream version 1:2.3.19.1+dfsg1. Signed-off-by: Daniel Baumann --- m4/crypt_xpg6.m4 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 m4/crypt_xpg6.m4 (limited to 'm4/crypt_xpg6.m4') diff --git a/m4/crypt_xpg6.m4 b/m4/crypt_xpg6.m4 new file mode 100644 index 0000000..9a86f46 --- /dev/null +++ b/m4/crypt_xpg6.m4 @@ -0,0 +1,23 @@ +dnl * Check for crypt() if unistd.h compiles with _XOPEN_SOURCE + _XPG6 +dnl * Add other macros there too "just in case". +AC_DEFUN([DOVECOT_CRYPT_XPG6], [ + AC_CACHE_CHECK([if we should use _XPG6 macro for crypt()],i_cv_use_xpg6_crypt,[ + AC_TRY_COMPILE([ + #define _XOPEN_SOURCE 4 + #define _XOPEN_SOURCE_EXTENDED 1 + #define _XOPEN_VERSION 4 + #define _XPG4_2 + #define _XPG6 + #include + ], [ + crypt("a", "b"); + ], [ + i_cv_use_xpg6_crypt=yes + ], [ + i_cv_use_xpg6_crypt=no + ]) + ]) + if test $i_cv_use_xpg6_crypt = yes; then + AC_DEFINE(CRYPT_USE_XPG6,, [Define if _XPG6 macro is needed for crypt()]) + fi +]) -- cgit v1.2.3