Last change
on this file since 123 was
38,
checked in by jbarnold, 18 years ago
|
improved package autoconf macros
|
File size:
884 bytes
|
Line | |
---|
1 | AC_INIT(signup-scripts-frontend.c) |
---|
2 | |
---|
3 | AC_PROG_CC |
---|
4 | |
---|
5 | AC_DEFUN(REQUIRE_PATH,[ |
---|
6 | AC_SUBST($1_path) |
---|
7 | if test "[$]$1_path" = ""; then |
---|
8 | AC_ERROR(Cannot find $1) |
---|
9 | fi |
---|
10 | ]) |
---|
11 | |
---|
12 | AC_DEFUN(LOCATE,[ |
---|
13 | AC_PATH_PROG($1_path, $1) |
---|
14 | REQUIRE_PATH($1) |
---|
15 | ]) |
---|
16 | |
---|
17 | dnl Needed by admof.in |
---|
18 | |
---|
19 | AC_ARG_WITH(fs, |
---|
20 | [ --with-fs[=PATH] fs is located at PATH],[ |
---|
21 | if test "$withval" != "no" -a "$withval" != "yes"; then |
---|
22 | fs_path="$withval" |
---|
23 | fi |
---|
24 | ]) |
---|
25 | REQUIRE_PATH(fs) |
---|
26 | |
---|
27 | AC_ARG_WITH(pts, |
---|
28 | [ --with-pts[=PATH] pts is located at PATH],[ |
---|
29 | if test "$withval" != "no" -a "$withval" != "yes"; then |
---|
30 | pts_path="$withval" |
---|
31 | fi |
---|
32 | ]) |
---|
33 | REQUIRE_PATH(pts) |
---|
34 | |
---|
35 | dnl Needed by signup-scripts-backend.in |
---|
36 | |
---|
37 | LOCATE(ls) |
---|
38 | LOCATE(grep) |
---|
39 | LOCATE(sudo) |
---|
40 | LOCATE(useradd) |
---|
41 | LOCATE(groupadd) |
---|
42 | LOCATE(setquota) |
---|
43 | LOCATE(hesinfo) |
---|
44 | |
---|
45 | dnl Needed by modbash.in |
---|
46 | |
---|
47 | LOCATE(bash) |
---|
48 | |
---|
49 | AC_OUTPUT(Makefile) |
---|
50 | AC_OUTPUT(admof) |
---|
51 | AC_OUTPUT(signup-scripts-backend) |
---|
52 | AC_OUTPUT(modbash) |
---|
Note: See
TracBrowser
for help on using the repository browser.