Commit ddb7d1ef ddb7d1ef7758602f7b47b093055204d9d0beb598 by Sergey Poznyakoff

New option: --with-gssapi

1 parent 4e5c6eae
...@@ -38,6 +38,25 @@ AC_ARG_WITH(readline, ...@@ -38,6 +38,25 @@ AC_ARG_WITH(readline,
38 *) AC_MSG_ERROR(bad value ${withval} for --without-readline) ;; 38 *) AC_MSG_ERROR(bad value ${withval} for --without-readline) ;;
39 esac],[usereadline=yes]) 39 esac],[usereadline=yes])
40 40
41 AC_ARG_WITH(gssapi,
42 [ --with-gssapi use GSSAPI authentication ],
43 [WITH_GSSAPI=$withval],
44 [WITH_GSSAPI=no])
45
46 if test "x$WITH_GSSAPI" != "xno"; then
47 MU_CHECK_GSSAPI($WITH_GSSAPI)
48 if test "$GSSAPI_IMPL" = "none"; then
49 AC_CACHE_SAVE
50 AC_MSG_RESULT([GSSAPI libraries not found])
51 else
52 AUTHLIBS="$AUTHLIBS $GSSAPI_LIBS"
53 AUTHINCS="$AUTHINCS $GSSAPI_CFLAGS"
54 AUTHOBJS="$AUTHOBJS auth_gss.o"
55 AC_DEFINE(WITH_GSSAPI)
56 fi
57 fi
58 AC_SUBST(AUTHOBJS)
59
41 AC_ARG_WITH(guile, 60 AC_ARG_WITH(guile,
42 [ --without-guile do not build guile interface], 61 [ --without-guile do not build guile interface],
43 [case "${withval}" in 62 [case "${withval}" in
...@@ -218,6 +237,7 @@ if test x"$ac_cv_have_libpam" != x"yes"; then ...@@ -218,6 +237,7 @@ if test x"$ac_cv_have_libpam" != x"yes"; then
218 fi 237 fi
219 fi 238 fi
220 AC_SUBST(AUTHLIBS) 239 AC_SUBST(AUTHLIBS)
240 AC_SUBST(AUTHINCS)
221 241
222 #When using thread support some platforms need -D_REENTRANT to get the 242 #When using thread support some platforms need -D_REENTRANT to get the
223 #right prototypes including errno. 243 #right prototypes including errno.
......