Fixing a compilation issue, wherein two global vars, conf and chan, were defined...
[revinetd.git] / configure.in
blobacf4bff942f8ed1146f8d77db7cb894eee1e1cd4
1 # Process this file with autoconf to produce a configure script.
2 AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
3 AC_CONFIG_SRCDIR([relay_agt.c])
4 AC_CONFIG_HEADER([config.h])
6 # Checks for programs.
7 AC_PROG_CC
9 # Checks for libraries.
11 # Checks for header files.
12 AC_HEADER_STDC
13 AC_HEADER_SYS_WAIT
14 AC_CHECK_HEADERS([arpa/inet.h fcntl.h memory.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/socket.h sys/time.h unistd.h])
16 # Checks for typedefs, structures, and compiler characteristics.
17 AC_C_CONST
18 AC_TYPE_PID_T
19 AC_TYPE_SIZE_T
21 # Checks for library functions.
22 AC_FUNC_FORK
23 AC_FUNC_MALLOC
24 AC_TYPE_SIGNAL
25 AC_CHECK_FUNCS([gethostbyname inet_ntoa memset select socket strdup inet_aton])
26 AC_SEARCH_LIBS(gethostbyname, nsl)
27 AC_CHECK_FUNC(socket, , [
28     AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket", [
29         AC_CHECK_LIB(nsl, socket, LIBS="$LIBS -lsocket -lnsl", , -lsocket)
30     ], "$LIBS")
33 AC_CONFIG_FILES([Makefile])
34 AC_OUTPUT