1 AC_INIT([shim], [0.1.0])
3 AC_CONFIG_SRCDIR([main.c])
5 AC_CONFIG_HEADER(config.h)
9 AC_PROG_GCC_TRADITIONAL
12 if test "$GCC" = yes; then
13 CFLAGS="$CFLAGS -Wall"
16 AC_ARG_ENABLE(direct-connections,
17 AS_HELP_STRING(--disable-direct-connections,
18 only make connections through a SOCKS proxy),
20 [enable_direct_connections=yes])
22 PKG_CHECK_MODULES(LIBEVENT, libevent >= 2.0.0)
23 AC_SUBST(LIBEVENT_CFLAGS)
24 AC_SUBST(LIBEVENT_LIBS)
26 if test x$enable_direct_connections = xno; then
27 AC_DEFINE(DISABLE_DIRECT_CONNECTIONS, 1,
28 [Define if shim should only allow connections through a SOCKS proxy])