+dnl
+dnl Handle --enable-ermt
+dnl
+AC_ARG_ENABLE([ermt],
+[ --enable-ermt compile ermt, an encrypting version of rmt (default is NO)],
+if test "$enableval" = "no"
+then
+ ERMT=""
+ CRYPTO=""
+ echo "Not compiling ermt"
+else
+ if test "$RMTDIR" = ""
+ then
+ AC_MSG_ERROR(ermt requires --enable-rmt)
+ fi
+ ERMT="ermt"
+ CRYPTO="-lcrypto"
+ echo "Compiling ermt"
+fi
+,
+ERMT=""
+CRYPTO=""
+echo "Not compiling ermt by default"
+)
+AC_SUBST(ERMT)
+AC_SUBST(CRYPTO)
+
+dnl
+dnl Handle --enable-kerberos
+dnl
+AC_ARG_ENABLE([kerberos],
+[ --enable-kerberos compile kerberos extensions (default is NO)],
+if test "$enableval" = "yes"
+then
+ OPTDEFS="-DKERBEROS"
+ echo "Compiling kerberos extensions"
+else
+ OPTDEFS=""
+ echo "Not compiling kerberos extensions"
+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 (default is YES)],
+if test "$enableval" = "no"
+then
+ READLINE=""
+ echo "Not including readline support"
+else
+ READLINE="-lreadline -ltermcap"
+ AC_DEFINE([HAVE_READLINE],1,[Define if you want to include readline support.])
+ echo "Including readline support"
+fi
+,
+READLINE="-lreadline -ltermcap"
+AC_DEFINE([HAVE_READLINE],1,[Define if you want to include readline support.])
+echo "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) (default is NO)],
+if test "$enableval" = "yes"
+then
+ AC_DEFINE([OLD_STYLE_FSCRIPT],1,[Define this is you want old style F script (no arguments).])
+ echo "Using old style F script"
+else
+ echo "Using new style F script"
+fi
+,
+echo "Using new style F script by default"
+)
+
+dnl
+dnl Handle --enable-largefile
+dnl
+AC_ARG_ENABLE([largefile],
+[ --enable-largefile enable Large File System support (default is YES)],
+if test "$enableval" = "yes"
+then
+ AC_DEFINE([USE_LFS],1,[Define this if you want Large File System support.])
+ echo "Enabling Large File System support"
+else
+ echo "Not enabling Large File System support"
+fi
+,
+AC_DEFINE([USE_LFS],1,[Define this if you want Large File System support.])
+echo "Enabling Large File System support by default"
+)
+
+dnl
+dnl Handle --enable-qfa
+dnl
+AC_ARG_ENABLE([qfa],
+[ --enable-qfa enable Quick File Access support (default is YES)],
+if test "$enableval" = "yes"
+then
+ AC_DEFINE([USE_QFA],1,[Define this if you want Quick File Access support.])
+ echo "Enabling Quick File Access support"
+else
+ echo "Not enabling Quick File Access support"
+fi
+,
+AC_DEFINE([USE_QFA],1,[Define this if you want Quick File Access support.])
+echo "Enabling Quick File Access support by default"
+)
+
+dnl
+dnl Handle --enable-qfadebug
+dnl
+AC_ARG_ENABLE([qfadebug],
+[ --enable-qfadebug include Quick File Access debugging code (default is NO)],
+if test "$enableval" = "yes"
+then
+ AC_DEFINE([DEBUG_QFA],1,[Define this if you want to include Quick File Access debugging code.])
+ echo "Including Quick File Access debugging code"
+else
+ echo "Not including Quick File Access debugging code"
+fi
+,
+echo "Not including Quick File Access debugging code by default"
+)
+
+dnl
+dnl Handle --enable-macosx
+dnl
+AC_ARG_ENABLE([macosx],
+[ --enable-macosx include Mac OSX restore compatibility (default is NO)],
+if test "$enableval" = "yes"
+then
+ AC_DEFINE([DUMP_MACOSX],1,[Define this if you want to include Mac OSX restore compatibility.])
+ echo "Including Mac OSX restore compatibility code"
+else
+ echo "Not including Mac OSX restore compatibility code"
+fi
+,
+echo "Not including Mac OSX restore compatibility code by default"
+)
+
+