Index: server/common/oursrc/lockeradm/configure.in
===================================================================
--- server/common/oursrc/lockeradm/configure.in	(revision 11)
+++ 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)
