]>
Commit | Line | Data |
---|---|---|
3866752e GT |
1 | dnl Process this file with autoconf to produce a configure script. |
2 | AC_INIT(tunala.c) | |
3 | AM_CONFIG_HEADER(config.h) | |
4 | AM_INIT_AUTOMAKE(tunala, 0.0.1-dev) | |
5 | ||
e523f5f3 | 6 | dnl Checks for programs. (Though skip libtool) |
3866752e | 7 | AC_PROG_CC |
e523f5f3 GT |
8 | dnl AC_PROG_LIBTOOL |
9 | dnl AM_PROG_LIBTOOL | |
3866752e GT |
10 | |
11 | dnl Checks for libraries. | |
12 | AC_CHECK_LIB(dl, dlopen) | |
e5a08ce4 | 13 | AC_CHECK_LIB(z, inflate) |
3866752e GT |
14 | AC_CHECK_LIB(socket, socket) |
15 | AC_CHECK_LIB(nsl, gethostbyname) | |
16 | ||
17 | dnl Checks for header files. | |
18 | AC_HEADER_STDC | |
19 | AC_CHECK_HEADERS(fcntl.h limits.h unistd.h) | |
20 | ||
21 | dnl Checks for typedefs, structures, and compiler characteristics. | |
22 | AC_C_CONST | |
23 | ||
24 | dnl Checks for library functions. | |
25 | AC_CHECK_FUNCS(strstr strtoul) | |
26 | AC_CHECK_FUNCS(select socket) | |
27 | AC_CHECK_FUNCS(dlopen) | |
28 | ||
29 | AC_OUTPUT(Makefile) |