blob: 759373f394024283f00a90cf843fa9a39ea8564a [file] [log] [blame]
Andy Green3c974692010-11-08 17:04:09 +00001# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.66])
5AC_INIT(libwebsockets, 0.1, andy@warmcat.com)
6AC_CONFIG_SRCDIR([test-server/test-server.c])
7AC_CONFIG_HEADERS([config.h])
8
9AM_INIT_AUTOMAKE([-Wall -Werror foreign])
10LT_INIT(shared)
11
12# Checks for programs.
13AC_PROG_CC
14AC_PROG_INSTALL
15AC_PROG_MAKE_SET
16AC_CONFIG_MACRO_DIR([m4])
17
18
19AC_ARG_ENABLE(openssl,
20 [ --enable-openssl Enables https support and needs openssl libs],
21 [ openssl=yes
22 ])
23
24if test "x$openssl" = "xyes" ; then
25AC_CHECK_LIB([ssl], [SSL_library_init])
26CFLAGS="$CFLAGS -DLWS_OPENSSL_SUPPORT"
27fi
28
29
30
31# Checks for header files.
32AC_CHECK_HEADERS([fcntl.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h])
33
34# Checks for typedefs, structures, and compiler characteristics.
35AC_TYPE_SIZE_T
36
37# Checks for library functions.
38AC_FUNC_FORK
39AC_FUNC_MALLOC
40AC_FUNC_REALLOC
41AC_CHECK_FUNCS([bzero memset socket strerror])
42
43AC_CONFIG_FILES([Makefile
44 lib/Makefile
45 test-server/Makefile])
46
47AC_OUTPUT