+dnl
+dnl Handle --enable-kerberos
+dnl
+AC_ARG_ENABLE([kerberos],
+[ --enable-kerberos compile kerberos extensions],
+if test "$enableval" = "yes"
+then
+ OPTDEFS="-DKERBEROS"
+else
+ OPTDEFS=""
+fi
+,
+OPTDEFS=""
+echo "Not compiling kerberos extensions by default"
+)
+AC_SUBST(OPTDEFS)
+
+dnl
+dnl Handle --enable-readline
+dnl
+AC_ARG_ENABLE([readline],
+[ --enable-readline enable readline support in restore],
+if test "$enableval" = "no"
+then
+ READLINE=""
+else
+ READLINE="-lreadline -ltermcap"
+ AC_DEFINE(HAVE_READLINE)
+fi
+,
+READLINE=""
+echo "Not including readline support by default"
+)
+AC_SUBST(READLINE)
+
+dnl
+dnl Handle --enable-oldsylefscript
+dnl
+AC_ARG_ENABLE([oldstylefscript],
+[ --enable-oldstylefscript enable old style F script (no arguments)],
+if test "$enableval" = "yes"
+then
+ AC_DEFINE(OLD_STYLE_FSCRIPT)
+fi
+,
+echo "Using new style F script"
+)
+