Index: /server/common/oursrc/execsys/Makefile.in
===================================================================
--- /server/common/oursrc/execsys/Makefile.in	(revision 35)
+++ /server/common/oursrc/execsys/Makefile.in	(revision 36)
@@ -12,9 +12,2 @@
 clean:
 	rm -f staticsys-cat
-
-preauto: clean
-	rm -f configure config.* Makefile
-	rm -rf auto*.cache
-
-ready: preauto
-	autoconf
Index: /server/common/oursrc/execsys/mrproper
===================================================================
--- /server/common/oursrc/execsys/mrproper	(revision 36)
+++ /server/common/oursrc/execsys/mrproper	(revision 36)
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+rm -f staticsys-cat
+rm -f configure config.* Makefile
+rm -rf auto*.cache
Index: /server/common/oursrc/lockeradm/Makefile.in
===================================================================
--- /server/common/oursrc/lockeradm/Makefile.in	(revision 35)
+++ /server/common/oursrc/lockeradm/Makefile.in	(revision 36)
@@ -10,9 +10,2 @@
 clean:
 	rm -f signup-scripts-frontend
-
-preauto: clean
-	rm -f configure config.* Makefile admof signup-scripts-backend
-	rm -rf auto*.cache
-
-ready: preauto
-	autoconf
Index: /server/common/oursrc/lockeradm/configure.in
===================================================================
--- /server/common/oursrc/lockeradm/configure.in	(revision 35)
+++ /server/common/oursrc/lockeradm/configure.in	(revision 36)
@@ -5,8 +5,25 @@
 dnl Needed by admof.in
 
-AC_PATH_PROG(fs_path, fs)
+AC_ARG_WITH(fs,
+[  --with-fs[=PATH]          fs is located at PATH],[
+  if test "$withval" != "no" -a "$withval" != "yes"; then
+    fs_path="$withval"
+  fi
+])
 AC_SUBST(fs_path)
-AC_PATH_PROG(pts_path, pts)
+if test "$fs_path" = ""; then
+        AC_ERROR(Cannot find fs)
+fi
+
+AC_ARG_WITH(pts,
+[  --with-pts[=PATH]         pts is located at PATH],[
+  if test "$withval" != "no" -a "$withval" != "yes"; then
+    pts_path="$withval"
+  fi
+])
 AC_SUBST(pts_path)
+if test "$pts_path" = ""; then
+        AC_ERROR(Cannot find pts)
+fi
 
 dnl Needed by signup-scripts-backend.in
@@ -14,23 +31,48 @@
 AC_PATH_PROG(ls_path, ls)
 AC_SUBST(ls_path)
+if test "$ls_path" = ""; then
+	AC_ERROR(Cannot find ls)
+fi
 AC_PATH_PROG(grep_path, grep)
 AC_SUBST(grep_path)
+if test "$grep_path" = ""; then
+	AC_ERROR(Cannot find grep)
+fi
 
 AC_PATH_PROG(sudo_path, sudo)
 AC_SUBST(sudo_path)
+if test "$sudo_path" = ""; then
+	AC_ERROR(Cannot find sudo)
+fi
 AC_PATH_PROG(useradd_path, useradd)
 AC_SUBST(useradd_path)
+if test "$useradd_path" = ""; then
+	AC_ERROR(Cannot find useradd)
+fi
 AC_PATH_PROG(groupadd_path, groupadd)
 AC_SUBST(groupadd_path)
+if test "$groupadd_path" = ""; then
+	AC_ERROR(Cannot find groupadd)
+fi
+
 AC_PATH_PROG(setquota_path, setquota)
 AC_SUBST(setquota_path)
+if test "$setquota_path" = ""; then
+	AC_ERROR(Cannot find setquota)
+fi
 
 AC_PATH_PROG(hesinfo_path, hesinfo)
 AC_SUBST(hesinfo_path)
+if test "$hesinfo_path" = ""; then
+	AC_ERROR(Cannot find hesinfo)
+fi
 
 dnl Needed by modbash.in
 
 AC_PATH_PROG(bash_path, bash)
-AC_SUBST(bash)
+AC_SUBST(bash_path)
+if test "$bash_path" = ""; then
+	AC_ERROR(Cannot find bash)
+fi
 
 AC_OUTPUT(Makefile)
Index: /server/common/oursrc/lockeradm/mrproper
===================================================================
--- /server/common/oursrc/lockeradm/mrproper	(revision 36)
+++ /server/common/oursrc/lockeradm/mrproper	(revision 36)
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+rm -f signup-scripts-frontend
+rm -f configure config.* Makefile admof signup-scripts-backend
+rm -rf auto*.cache
Index: /server/common/oursrc/sqladm/Makefile.in
===================================================================
--- /server/common/oursrc/sqladm/Makefile.in	(revision 35)
+++ /server/common/oursrc/sqladm/Makefile.in	(revision 36)
@@ -10,9 +10,2 @@
 clean:
 	rm -f signup-sql
-
-preauto: clean
-	rm -f configure config.* Makefile signup-sql
-	rm -rf auto*.cache
-
-ready: preauto
-	autoconf
Index: /server/common/oursrc/sqladm/mrproper
===================================================================
--- /server/common/oursrc/sqladm/mrproper	(revision 36)
+++ /server/common/oursrc/sqladm/mrproper	(revision 36)
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+rm -f signup-sql
+rm -f configure config.* Makefile signup-sql
+rm -rf auto*.cache
Index: /server/common/oursrc/tokensys/Makefile.in
===================================================================
--- /server/common/oursrc/tokensys/Makefile.in	(revision 35)
+++ /server/common/oursrc/tokensys/Makefile.in	(revision 36)
@@ -2,9 +2,2 @@
 CFLAGS = @CFLAGS@
 prefix = @prefix@
-
-preauto: 
-	rm -f configure config.* Makefile renew
-	rm -rf auto*.cache
-
-ready: preauto
-	autoconf
Index: /server/common/oursrc/tokensys/configure.in
===================================================================
--- /server/common/oursrc/tokensys/configure.in	(revision 35)
+++ /server/common/oursrc/tokensys/configure.in	(revision 36)
@@ -1,9 +1,25 @@
 AC_INIT()
 
-AC_PATH_PROG(kinit_path, kinit)
+AC_ARG_WITH(kinit,
+[  --with-kinit[=PATH]       kinit is located at PATH],[
+  if test "$withval" != "no" -a "$withval" != "yes"; then
+    kinit_path="$withval"
+  fi
+])
 AC_SUBST(kinit_path)
+if test "$kinit_path" = ""; then
+        AC_ERROR(Cannot find kinit)
+fi
 
-AC_PATH_PROG(aklog_path, aklog)
+AC_ARG_WITH(aklog,
+[  --with-aklog[=PATH]       aklog is located at PATH],[
+  if test "$withval" != "no" -a "$withval" != "yes"; then
+    aklog_path="$withval"
+  fi
+])
 AC_SUBST(aklog_path)
+if test "$aklog_path" = ""; then
+        AC_ERROR(Cannot find aklog)
+fi
 
 AC_OUTPUT(Makefile)
Index: /server/common/oursrc/tokensys/mrproper
===================================================================
--- /server/common/oursrc/tokensys/mrproper	(revision 36)
+++ /server/common/oursrc/tokensys/mrproper	(revision 36)
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+rm -f configure config.* Makefile renew
+rm -rf auto*.cache
Index: /server/fedora/Makefile
===================================================================
--- /server/fedora/Makefile	(revision 35)
+++ /server/fedora/Makefile	(revision 36)
@@ -84,7 +84,6 @@
 	for i in $$list; do \
 		pushd $$i; \
+		./mrproper; \
 		autoconf; \
-		./configure; \
-		make ready; \
 		popd; \
 		tar -czf $(tmp_src)/$$i.tar.gz $$i; \
@@ -129,2 +128,15 @@
 install-suexec:
 	install -m 4510 -o 0 -g apache ${PWD}/sbin/suexec /usr/sbin/;
+
+# The following packages are needed for *building* all of our packages
+# basic deps: rpm-build through autoconf
+# oursrc: hesinfo
+# httpd: xmlto through distcache-devel
+# krb5: bison through texinfo
+# openafs: pam-devel through automake
+install-build-deps:
+	yum -y install rpm-build gcc autoconf hesinfo xmlto db4-devel expat-devel zlib-devel libselinux-devel apr-devel apr-util-devel pcre-devel openssl-devel distcache-devel bison ncurses-devel texinfo pam-devel automake
+
+# The following packages are needed for *installing* all of our packages
+install-deps:
+	yum -y krb5-workstation
Index: /server/fedora/specs/lockeradm.spec
===================================================================
--- /server/fedora/specs/lockeradm.spec	(revision 35)
+++ /server/fedora/specs/lockeradm.spec	(revision 36)
@@ -10,4 +10,5 @@
 BuildRoot: %{_tmppath}/%(%{__id_u} -n)-%{name}-%{version}-root
 %define debug_package %{nil}
+Prereq: /usr/bin/fs, /usr/bin/pts
 
 %description 
@@ -24,5 +25,5 @@
 
 %build
-./configure
+./configure --with-fs=/usr/bin/fs --with-pts=/usr/bin/pts
 make
 
Index: /server/fedora/specs/tokensys.spec
===================================================================
--- /server/fedora/specs/tokensys.spec	(revision 35)
+++ /server/fedora/specs/tokensys.spec	(revision 36)
@@ -10,4 +10,5 @@
 BuildRoot: %{_tmppath}/%(%{__id_u} -n)-%{name}-%{version}-root
 %define debug_package %{nil}
+Prereq: /usr/kerberos/bin/kinit, /usr/bin/aklog
 
 %description 
@@ -23,5 +24,5 @@
 
 %build
-./configure
+./configure --with-kinit=/usr/kerberos/bin/kinit --with-aklog=/usr/bin/aklog
 
 %install
