Lines 368-374
Link Here
|
368 |
sasl_v2_lib_name="sasl2" |
368 |
sasl_v2_lib_name="sasl2" |
369 |
|
369 |
|
370 |
for _pfx in $1; do |
370 |
for _pfx in $1; do |
371 |
for dir in "$_pfx/include/sasl_v1" "$_pfx/include/sasl_v2" "$_pfx/include"; do |
371 |
for dir in "$_pfx/include/sasl_v1" "$_pfx/include/sasl"; do |
372 |
if test -e "$dir/sasl.h" -a -z "$sasl_v2_CFLAGS"; then |
372 |
if test -e "$dir/sasl.h" -a -z "$sasl_v2_CFLAGS"; then |
373 |
ac_save_CPPFLAGS="$CPPFLAGS" |
373 |
ac_save_CPPFLAGS="$CPPFLAGS" |
374 |
CPPFLAGS="$CPPFLAGS -I$dir" |
374 |
CPPFLAGS="$CPPFLAGS -I$dir" |
Lines 395-401
Link Here
|
395 |
LIBS="$LIBS -L$dir" |
395 |
LIBS="$LIBS -L$dir" |
396 |
name="$sasl_v2_lib_name" |
396 |
name="$sasl_v2_lib_name" |
397 |
if eval test -e "$dir/$libname_spec$shrext_cmds" -o -e "$dir/$libname_spec.$libext"; then |
397 |
if eval test -e "$dir/$libname_spec$shrext_cmds" -o -e "$dir/$libname_spec.$libext"; then |
398 |
AC_CHECK_LIB([$sasl_v2_lib_name], [sasl_v2_client_init], [ |
398 |
AC_CHECK_LIB([$sasl_v2_lib_name], [sasl_client_init], [ |
399 |
sasl_v2_LIBS="-L$dir -l$sasl_v2_lib_name" |
399 |
sasl_v2_LIBS="-L$dir -l$sasl_v2_lib_name" |
400 |
],[]) |
400 |
],[]) |
401 |
fi |
401 |
fi |
Lines 414-421
Link Here
|
414 |
AC_DEFUN([PAM_MYSQL_CHECK_MD5_HEADERS], [ |
414 |
AC_DEFUN([PAM_MYSQL_CHECK_MD5_HEADERS], [ |
415 |
AC_MSG_CHECKING([if md5.h is derived from Cyrus SASL Version 1]) |
415 |
AC_MSG_CHECKING([if md5.h is derived from Cyrus SASL Version 1]) |
416 |
AC_TRY_COMPILE([ |
416 |
AC_TRY_COMPILE([ |
417 |
#include <md5global.h> |
417 |
#include <sasl/md5global.h> |
418 |
#include <md5.h> |
418 |
#include <sasl/md5.h> |
419 |
], [ |
419 |
], [ |
420 |
MD5_CTX ctx; |
420 |
MD5_CTX ctx; |
421 |
_sasl_MD5Init(&ctx); |
421 |
_sasl_MD5Init(&ctx); |
Lines 431-443
Link Here
|
431 |
|
431 |
|
432 |
AC_MSG_CHECKING([if md5.h is Solaris's]) |
432 |
AC_MSG_CHECKING([if md5.h is Solaris's]) |
433 |
AC_TRY_COMPILE([ |
433 |
AC_TRY_COMPILE([ |
434 |
#include <md5.h> |
434 |
#include <openssl/md5.h> |
435 |
], [ |
435 |
], [ |
436 |
md5_calc(0, 0, 0); |
436 |
MD5(0, 0, 0); |
437 |
], [ |
437 |
], [ |
438 |
AC_MSG_RESULT([yes]) |
438 |
AC_MSG_RESULT([yes]) |
439 |
AC_DEFINE([HAVE_SOLARIS_MD5_H], [1], [Define to 1 if md5.h in the include path is Solaris's]) |
439 |
AC_DEFINE([HAVE_SOLARIS_MD5_H], [1], [Define to 1 if md5.h in the include path is Solaris's]) |
440 |
AC_CHECK_LIB([md5], [md5_calc], [ |
440 |
AC_CHECK_LIB([md5], [MD5], [ |
441 |
AC_DEFINE([HAVE_SOLARIS_LIBMD5], [1], [Define to 1 if Solaris's libmd5 is available]) |
441 |
AC_DEFINE([HAVE_SOLARIS_LIBMD5], [1], [Define to 1 if Solaris's libmd5 is available]) |
442 |
LIBS="$LIBS -lmd5" |
442 |
LIBS="$LIBS -lmd5" |
443 |
]) |
443 |
]) |