dnl Check for optional sysv initscript install
AC_DEFUN([AC_NETATALK_INIT_STYLE], [
AC_ARG_WITH(init-style,
- [ --with-init-style use OS specific init config [[redhat-sysv|redhat-systemd|suse-sysv|suse-systemd|gentoo|netbsd|debian|systemd]]],
+ [ --with-init-style use OS specific init config [[redhat-sysv|redhat-systemd|suse-sysv|suse-systemd|gentoo|netbsd|debian|solaris|systemd]]],
init_style="$withval", init_style=none
)
case "$init_style" in
"debian")
AC_MSG_RESULT([enabling debian-style sysv support])
;;
+ "solaris")
+ AC_MSG_RESULT([enabling solaris-style sysv support])
+ ;;
"systemd")
AC_MSG_RESULT([use general systemd configuration])
;;
+ "none")
+ AC_MSG_RESULT([disabling init-style support])
+ ;;
*)
- AC_MSG_RESULT([disabling sysv support])
+ AC_MSG_ERROR([illegal init-style])
;;
esac
AM_CONDITIONAL(USE_NETBSD, test x$init_style = xnetbsd)
AM_CONDITIONAL(USE_REDHAT_SYSV, test x$init_style = xredhat-sysv)
AM_CONDITIONAL(USE_SUSE_SYSV, test x$init_style = xsuse-sysv)
- AM_CONDITIONAL(USE_SHADOWPW, test x$shadowpw = xyes)
- AM_CONDITIONAL(USE_TRU64, test x$init_style = xtru64)
AM_CONDITIONAL(USE_SOLARIS, test x$init_style = xsolaris)
AM_CONDITIONAL(USE_GENTOO, test x$init_style = xgentoo)
AM_CONDITIONAL(USE_DEBIAN, test x$init_style = xdebian)
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
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
+])