AC_DEFUN([AC_NETATALK_CRACKLIB], [
netatalk_cv_with_cracklib=no
AC_ARG_WITH(cracklib,
- [ --with-cracklib=DICT enable/set location of cracklib dictionary],[
+ [ --with-cracklib[[=DICT]] enable/set location of cracklib dictionary [[no]]],[
if test "x$withval" != "xno" ; then
cracklib="$withval"
AC_CHECK_LIB(crack, main, [
if test x"$with_kerberos" = x"yes"; then
AC_DEFINE([HAVE_KERBEROS], [1], [Define if Kerberos 5 is available])
fi
+
+dnl Check for krb5_free_unparsed_name and krb5_free_error_message
+save_CFLAGS="$CFLAGS"
+save_LIBS="$LIBS"
+CFLAGS="$KRB5_CFLAGS"
+LIBS="$KRB5_LIBS"
+AC_CHECK_FUNCS([krb5_free_unparsed_name krb5_free_error_message])
+CFLAGS="$save_CFLAGS"
+LIBS="$save_LIBS"
])
dnl Check for overwrite the config files or not
AC_DEFINE(SENDFILE_FLAVOR_SOLARIS, 1, [Solaris sendfile()])
AC_SEARCH_LIBS(sendfile, sendfile)
AC_CHECK_FUNC([sendfile], [netatalk_cv_HAVE_SENDFILE=yes])
+ AC_CHECK_FUNCS([sendfilev])
;;
*freebsd*)
if test x"$neta_cv_REALPATH_TAKES_NULL" = x"yes"; then
AC_DEFINE(REALPATH_TAKES_NULL,1,[Whether the realpath function allows NULL])
fi
-])
\ No newline at end of file
+])