[1] | 1 | AC_INIT(signup-scripts-frontend.c) |
---|
| 2 | |
---|
| 3 | AC_PROG_CC |
---|
| 4 | |
---|
| 5 | dnl Needed by admof.in |
---|
| 6 | |
---|
[36] | 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 | ]) |
---|
[1] | 13 | AC_SUBST(fs_path) |
---|
[36] | 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 | ]) |
---|
[1] | 24 | AC_SUBST(pts_path) |
---|
[36] | 25 | if test "$pts_path" = ""; then |
---|
| 26 | AC_ERROR(Cannot find pts) |
---|
| 27 | fi |
---|
[1] | 28 | |
---|
| 29 | dnl Needed by signup-scripts-backend.in |
---|
| 30 | |
---|
| 31 | AC_PATH_PROG(ls_path, ls) |
---|
| 32 | AC_SUBST(ls_path) |
---|
[36] | 33 | if test "$ls_path" = ""; then |
---|
| 34 | AC_ERROR(Cannot find ls) |
---|
| 35 | fi |
---|
[1] | 36 | AC_PATH_PROG(grep_path, grep) |
---|
| 37 | AC_SUBST(grep_path) |
---|
[36] | 38 | if test "$grep_path" = ""; then |
---|
| 39 | AC_ERROR(Cannot find grep) |
---|
| 40 | fi |
---|
[1] | 41 | |
---|
[11] | 42 | AC_PATH_PROG(sudo_path, sudo) |
---|
| 43 | AC_SUBST(sudo_path) |
---|
[36] | 44 | if test "$sudo_path" = ""; then |
---|
| 45 | AC_ERROR(Cannot find sudo) |
---|
| 46 | fi |
---|
[1] | 47 | AC_PATH_PROG(useradd_path, useradd) |
---|
| 48 | AC_SUBST(useradd_path) |
---|
[36] | 49 | if test "$useradd_path" = ""; then |
---|
| 50 | AC_ERROR(Cannot find useradd) |
---|
| 51 | fi |
---|
[1] | 52 | AC_PATH_PROG(groupadd_path, groupadd) |
---|
| 53 | AC_SUBST(groupadd_path) |
---|
[36] | 54 | if test "$groupadd_path" = ""; then |
---|
| 55 | AC_ERROR(Cannot find groupadd) |
---|
| 56 | fi |
---|
| 57 | |
---|
[1] | 58 | AC_PATH_PROG(setquota_path, setquota) |
---|
| 59 | AC_SUBST(setquota_path) |
---|
[36] | 60 | if test "$setquota_path" = ""; then |
---|
| 61 | AC_ERROR(Cannot find setquota) |
---|
| 62 | fi |
---|
[1] | 63 | |
---|
| 64 | AC_PATH_PROG(hesinfo_path, hesinfo) |
---|
| 65 | AC_SUBST(hesinfo_path) |
---|
[36] | 66 | if test "$hesinfo_path" = ""; then |
---|
| 67 | AC_ERROR(Cannot find hesinfo) |
---|
| 68 | fi |
---|
[1] | 69 | |
---|
[11] | 70 | dnl Needed by modbash.in |
---|
[1] | 71 | |
---|
| 72 | AC_PATH_PROG(bash_path, bash) |
---|
[36] | 73 | AC_SUBST(bash_path) |
---|
| 74 | if test "$bash_path" = ""; then |
---|
| 75 | AC_ERROR(Cannot find bash) |
---|
| 76 | fi |
---|
[1] | 77 | |
---|
| 78 | AC_OUTPUT(Makefile) |
---|
| 79 | AC_OUTPUT(admof) |
---|
| 80 | AC_OUTPUT(signup-scripts-backend) |
---|
[11] | 81 | AC_OUTPUT(modbash) |
---|