Revision 9522,
774 bytes
checked in by ghudson, 27 years ago
(diff) |
Convert from imake to an autoconf-based build system
|
Rev | Line | |
---|
[9522] | 1 | dnl Process this file with autoconf to produce a configure script. |
---|
| 2 | AC_INIT(newpag.c) |
---|
| 3 | |
---|
| 4 | AC_ARG_WITH(afs, [ --with-afs=PREFIX Specify prefix for AFS libraries], |
---|
| 5 | [afs="$withval"], [afs=no]) |
---|
| 6 | |
---|
| 7 | AC_PROG_CC |
---|
| 8 | AC_PROG_INSTALL |
---|
| 9 | |
---|
| 10 | if test "$afs" != no; then |
---|
| 11 | AC_CHECK_FUNC(insque, :, AC_CHECK_LIB(compat, insque)) |
---|
| 12 | AC_CHECK_FUNC(sigvec, :, AC_CHECK_LIB(ucb, sigvec)) |
---|
| 13 | AC_CHECK_FUNC(gethostbyname, :, AC_CHECK_LIB(nsl, gethostbyname)) |
---|
| 14 | AC_CHECK_FUNC(socket, :, AC_CHECK_LIB(socket, socket)) |
---|
| 15 | |
---|
| 16 | if test "$afs" != yes; then |
---|
| 17 | CPPFLAGS="${CPPFLAGS} -I$afs/include" |
---|
| 18 | LDFLAGS="$LDFLAGS -L$afs/lib -L$afs/lib/afs" |
---|
| 19 | fi |
---|
| 20 | AC_CHECK_LIB(sys, pioctl, :, [AC_MSG_ERROR(AFS libraries not found)], |
---|
| 21 | -lrx -llwp -lsys) |
---|
| 22 | else |
---|
| 23 | AC_MSG_ERROR(This package requires AFS.) |
---|
| 24 | fi |
---|
| 25 | |
---|
| 26 | AC_OUTPUT(Makefile) |
---|
Note: See
TracBrowser
for help on using the repository browser.