1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
From: Nicolas Schodet <nico@ni.fr.eu.org>
Last-Update: 2025-08-28
Subject: Fix missing AC_DEFINE templates
Use three arguments AC_DEFINE for crypt.
Use CFLAGS for _XOPEN_SOURCE instead of config.h.
---
configure.in | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/configure.in b/configure.in
index cff0c76..2e05d31 100644
--- a/configure.in
+++ b/configure.in
@@ -112,7 +112,7 @@ function.],
[ if test -z "$pwencrypt"; then
AC_MSG_RESULT(no)
else
- AC_DEFINE(crypt,pw_encrypt)
+ AC_DEFINE(crypt,pw_encrypt, [Define to pw_encrypt to use deprecated function.])
AC_MSG_RESULT(no)
if test -n "$pwencryptlib"; then
LIBS="$LIBS $pwencryptlib"
@@ -195,8 +195,9 @@ AC_CACHE_VAL(su_cv_unistd_needs_xopen_source,
#include <unistd.h>], su_cv_unistd_needs_xopen_source=yes,
su_cv_unistd_needs_xopen_source=no))])
AC_MSG_RESULT($su_cv_unistd_needs_xopen_source)
-test $su_cv_unistd_needs_xopen_source = yes &&
- AC_DEFINE(_XOPEN_SOURCE)
+if test $su_cv_unistd_needs_xopen_source = yes; then
+ CFLAGS="$CFLAGS -D_XOPEN_SOURCE"
+fi
dnl Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
|