| 1 | AC_INIT(signup-scripts-frontend.c) | 
|---|
| 2 |  | 
|---|
| 3 | AC_PROG_CC | 
|---|
| 4 |  | 
|---|
| 5 | dnl Needed by admof.in | 
|---|
| 6 |  | 
|---|
| 7 | AC_ARG_WITH(fs, | 
|---|
| 8 | [  --with-fs[=PATH]          fs is located at PATH],[ | 
|---|
| 9 | if test "$withval" != "no" -a "$withval" != "yes"; then | 
|---|
| 10 | fs_path="$withval" | 
|---|
| 11 | fi | 
|---|
| 12 | ]) | 
|---|
| 13 | AC_SUBST(fs_path) | 
|---|
| 14 | if test "$fs_path" = ""; then | 
|---|
| 15 | AC_ERROR(Cannot find fs) | 
|---|
| 16 | fi | 
|---|
| 17 |  | 
|---|
| 18 | AC_ARG_WITH(pts, | 
|---|
| 19 | [  --with-pts[=PATH]         pts is located at PATH],[ | 
|---|
| 20 | if test "$withval" != "no" -a "$withval" != "yes"; then | 
|---|
| 21 | pts_path="$withval" | 
|---|
| 22 | fi | 
|---|
| 23 | ]) | 
|---|
| 24 | AC_SUBST(pts_path) | 
|---|
| 25 | if test "$pts_path" = ""; then | 
|---|
| 26 | AC_ERROR(Cannot find pts) | 
|---|
| 27 | fi | 
|---|
| 28 |  | 
|---|
| 29 | dnl Needed by signup-scripts-backend.in | 
|---|
| 30 |  | 
|---|
| 31 | AC_PATH_PROG(ls_path, ls) | 
|---|
| 32 | AC_SUBST(ls_path) | 
|---|
| 33 | if test "$ls_path" = ""; then | 
|---|
| 34 | AC_ERROR(Cannot find ls) | 
|---|
| 35 | fi | 
|---|
| 36 | AC_PATH_PROG(grep_path, grep) | 
|---|
| 37 | AC_SUBST(grep_path) | 
|---|
| 38 | if test "$grep_path" = ""; then | 
|---|
| 39 | AC_ERROR(Cannot find grep) | 
|---|
| 40 | fi | 
|---|
| 41 |  | 
|---|
| 42 | AC_PATH_PROG(sudo_path, sudo) | 
|---|
| 43 | AC_SUBST(sudo_path) | 
|---|
| 44 | if test "$sudo_path" = ""; then | 
|---|
| 45 | AC_ERROR(Cannot find sudo) | 
|---|
| 46 | fi | 
|---|
| 47 | AC_PATH_PROG(useradd_path, useradd) | 
|---|
| 48 | AC_SUBST(useradd_path) | 
|---|
| 49 | if test "$useradd_path" = ""; then | 
|---|
| 50 | AC_ERROR(Cannot find useradd) | 
|---|
| 51 | fi | 
|---|
| 52 | AC_PATH_PROG(groupadd_path, groupadd) | 
|---|
| 53 | AC_SUBST(groupadd_path) | 
|---|
| 54 | if test "$groupadd_path" = ""; then | 
|---|
| 55 | AC_ERROR(Cannot find groupadd) | 
|---|
| 56 | fi | 
|---|
| 57 |  | 
|---|
| 58 | AC_PATH_PROG(setquota_path, setquota) | 
|---|
| 59 | AC_SUBST(setquota_path) | 
|---|
| 60 | if test "$setquota_path" = ""; then | 
|---|
| 61 | AC_ERROR(Cannot find setquota) | 
|---|
| 62 | fi | 
|---|
| 63 |  | 
|---|
| 64 | AC_PATH_PROG(hesinfo_path, hesinfo) | 
|---|
| 65 | AC_SUBST(hesinfo_path) | 
|---|
| 66 | if test "$hesinfo_path" = ""; then | 
|---|
| 67 | AC_ERROR(Cannot find hesinfo) | 
|---|
| 68 | fi | 
|---|
| 69 |  | 
|---|
| 70 | dnl Needed by modbash.in | 
|---|
| 71 |  | 
|---|
| 72 | AC_PATH_PROG(bash_path, bash) | 
|---|
| 73 | AC_SUBST(bash_path) | 
|---|
| 74 | if test "$bash_path" = ""; then | 
|---|
| 75 | AC_ERROR(Cannot find bash) | 
|---|
| 76 | fi | 
|---|
| 77 |  | 
|---|
| 78 | AC_OUTPUT(Makefile) | 
|---|
| 79 | AC_OUTPUT(admof) | 
|---|
| 80 | AC_OUTPUT(signup-scripts-backend) | 
|---|
| 81 | AC_OUTPUT(modbash) | 
|---|