Add configure option to not install kauth
[openafs.git] / acinclude.m4
index 359ba56..0f14797 100644 (file)
@@ -162,6 +162,14 @@ AC_ARG_ENABLE([transarc-paths],
     , 
     [enable_transarc_paths="no"])
 
+dnl Deprecated crypto
+AC_ARG_ENABLE([kauth],
+    [AS_HELP_STRING([--disable-kauth],
+        [do not install the deprecated kauth server and utilities (defaults to
+         enabled)])],
+    ,
+    [enable_kauth="yes"])
+
 dnl Optimization and debugging flags.
 AC_ARG_ENABLE([strip-binaries],
     [AS_HELP_STRING([--disable-strip-binaries],
@@ -1453,6 +1461,13 @@ else
 fi
 AC_SUBST(BUILD_USS)
 
+if test "$enable_kauth" = yes; then
+       INSTALL_KAUTH="yes"
+else
+       INSTALL_KAUTH="no"
+fi
+AC_SUBST(INSTALL_KAUTH)
+
 AC_CHECK_FUNCS([ \
        arc4random \
        fcntl \