014a73197b4d0de0b305a2ebf7b407344deff2bf
[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],, AC_MSG_ERROR("POSIX threads (libpthread) must be installed"))
13
14 # Checks for header files.
15 AC_CHECK_HEADERS([netinet/in.h stdlib.h string.h sys/socket.h syslog.h unistd.h guacamole/client.h])
16
17 # Checks for library functions.
18 AC_FUNC_MALLOC
19 AC_CHECK_FUNCS([memset socket strerror])
20
21 AC_CONFIG_FILES([Makefile])
22 AC_OUTPUT