source: trunk/third/talk/configure.in @ 9160

Revision 9160, 600 bytes checked in by ghudson, 28 years ago (diff)
An autoconf-based build system for talk.
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(talk/talk.c)
3AC_CONFIG_HEADER(config.h)
4
5AC_PROG_CC
6AC_PROG_INSTALL
7AC_CHECK_SIZEOF(short, 2)
8AC_CHECK_SIZEOF(int, 4)
9AC_CHECK_SIZEOF(long, 4)
10AC_FUNC_CHECK(connect, :, [AC_CHECK_LIB(socket, socket)
11                           AC_CHECK_LIB(nsl, gethostbyname)])
12AC_CHECK_HEADERS(paths.h)
13if test -f /var/run/utmp; then
14        AC_DEFINE(GUESSED_PATH_UTMP, "/var/run/utmp")
15elif test -f /var/adm/utmp; then
16        AC_DEFINE(GUESSED_PATH_UTMP, "/var/adm/utmp")
17else
18        AC_DEFINE(GUESSED_PATH_UTMP, "/etc/utmp")
19fi
20
21AC_OUTPUT(Makefile talk/Makefile talkd/Makefile)
Note: See TracBrowser for help on using the repository browser.