Fixed fork() detection
[guacd.git] / configure.in
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_INIT(src/daemon.c)
5 AM_INIT_AUTOMAKE(guacd, 0.0.1)
6
7 # Checks for programs.
8 AC_PROG_CC
9
10 # Checks for libraries.
11 AC_CHECK_LIB([guac], [guac_get_client],, AC_MSG_ERROR("libguac must be installed first"))
12 AC_CHECK_LIB([pthread], [pthread_create])
13 AC_CHECK_LIB([wsock32], [main])
14
15 # Checks for header files.
16 AC_CHECK_HEADERS([netinet/in.h stdlib.h string.h sys/socket.h syslog.h unistd.h guacamole/client.h])
17
18 # Checks for library functions.
19 AC_FUNC_MALLOC
20 AC_CHECK_FUNCS([memset socket strerror fork])
21
22 AC_CONFIG_FILES([Makefile])
23 AC_OUTPUT