From 859cec02509ae0d3e2f34051d0f9d7366b6ca62f Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Mon, 22 Nov 1999 14:27:24 +1100 Subject: - Added autoconf test and macro to deal with old PAM libraries pam_strerror definition (one arg vs two). --- configure.in | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 1fe0c30b4..0678fa4c8 100644 --- a/configure.in +++ b/configure.in @@ -77,7 +77,7 @@ AC_CHECK_SIZEOF(long int, 4) AC_CHECK_SIZEOF(long long int, 8) dnl More checks for data types -AC_MSG_CHECKING([For quad_t]) +AC_MSG_CHECKING([for quad_t]) AC_TRY_COMPILE( [#include ], [quad_t a; a = 1235;], @@ -88,7 +88,7 @@ AC_TRY_COMPILE( [AC_MSG_RESULT(no)] ) -AC_MSG_CHECKING([For intXX_t types]) +AC_MSG_CHECKING([for intXX_t types]) AC_TRY_COMPILE( [#include ], [int16_t a; int32_t b; a = 1235; b = 1235;], @@ -99,7 +99,7 @@ AC_TRY_COMPILE( [AC_MSG_RESULT(no)] ) -AC_MSG_CHECKING([For u_intXX_t types]) +AC_MSG_CHECKING([for u_intXX_t types]) AC_TRY_COMPILE( [#include ], [u_int16_t c; u_int32_t d; c = 1235; d = 1235;], @@ -121,6 +121,21 @@ AC_TRY_COMPILE( [AC_MSG_RESULT(no)] ) +dnl Check PAM strerror arguments +AC_MSG_CHECKING([whether pam_strerror takes only one argument]) +AC_TRY_COMPILE( + [ + #include + #include + ], + [(void)pam_strerror((pam_handle_t *)NULL, -1);], + [AC_MSG_RESULT(no)], + [ + AC_DEFINE(HAVE_OLD_PAM) + AC_MSG_RESULT(yes) + ] +) + dnl Check whether use wants to disable the external ssh-askpass INSTALL_ASKPASS="yes" AC_MSG_CHECKING([whether to enable external ssh-askpass support]) -- cgit v1.2.3