2502
|
1 dnl Process this file with autoconf to produce a configure script. |
2560
|
2 dnl $Id: configure.in,v 1.8 1996-12-03 17:49:39 jwe Exp $ |
2502
|
3 AC_INIT(info.c) |
|
4 |
|
5 dnl Checks for programs. |
|
6 AC_PROG_GCC_TRADITIONAL |
|
7 AC_PROG_INSTALL |
|
8 AC_PROG_RANLIB |
|
9 |
|
10 AC_ISC_POSIX |
|
11 AC_MINIX |
|
12 |
|
13 dnl Checks for libraries. |
|
14 # Needed on sysV68 for sigblock, sigsetmask. |
|
15 AC_CHECK_LIB(bsd, sigblock) |
|
16 |
2560
|
17 ### I am told that on some SCO systems, the only place to find some |
|
18 ### functions like gethostname and gettimeofday is in libsocket. |
|
19 AC_CHECK_LIB(socket, gethostname) |
|
20 |
2502
|
21 TERMLIBS= |
2558
|
22 for termlib in ncurses curses termcap terminfo termlib ; do |
2502
|
23 AC_CHECK_LIB(${termlib}, tputs, |
|
24 [TERMLIBS="${TERMLIBS} -l${termlib}"; break]) |
|
25 done |
|
26 AC_SUBST(TERMLIBS) |
|
27 |
|
28 dnl Checks for header files. |
|
29 AC_HEADER_STDC |
|
30 AC_CHECK_HEADERS(unistd.h termios.h termio.h strings.h string.h varargs.h \ |
|
31 sys/time.h sys/fcntl.h sys/ttold.h sys/ptem.h sys/file.h) |
|
32 |
|
33 dnl Checks for typedefs, structures, and compiler characteristics. |
|
34 AC_TYPE_OFF_T |
|
35 AC_C_CONST |
|
36 AC_STRUCT_TM |
|
37 |
|
38 dnl Checks for library functions. |
|
39 AC_FUNC_ALLOCA |
|
40 AC_FUNC_SETVBUF_REVERSED |
|
41 AC_CHECK_FUNCS(setvbuf getcwd memset bzero strchr strcasecmp \ |
|
42 vfprintf vsprintf strerror sigprocmask sigsetmask) |
|
43 dnl strcasecmp, strerror, xmalloc, xrealloc, probably others should be added. |
|
44 AC_REPLACE_FUNCS(memcpy memmove strdup) |
|
45 |
|
46 AC_OUTPUT(Makefile) |