Deleted Added
sdiff udiff text old ( 302408 ) new ( 275970 )
full compact
1dnl Copyright 2000-2007 Niels Provos
2dnl Copyright 2007-2012 Niels Provos and Nick Mathewson
3dnl
4dnl See LICENSE for copying information.
5dnl
6dnl Original version Dug Song <dugsong@monkey.org>
7
8AC_INIT(libevent,2.1.3-alpha-dev)
9AC_PREREQ(2.59)
10AC_CONFIG_SRCDIR(event.c)
11
12AC_CONFIG_MACRO_DIR([m4])
13AC_CONFIG_AUX_DIR([build-aux])
14
15AM_INIT_AUTOMAKE
16dnl AM_SILENT_RULES req. automake 1.11. [no] defaults V=1
17m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
18AC_CONFIG_HEADERS(config.h evconfig-private.h:evconfig-private.h.in)
19AC_DEFINE(NUMERIC_VERSION, 0x02010301, [Numeric representation of the version])
20
21dnl Initialize prefix.
22if test "$prefix" = "NONE"; then
23 prefix="/usr/local"
24fi
25
26dnl Try and get a full POSIX environment on obscure systems
27ifdef([AC_USE_SYSTEM_EXTENSIONS], [

--- 80 unchanged lines hidden (view full) ---

108 AS_HELP_STRING(--disable-debug-mode, disable support for running in debug mode),
109 [], [enable_debug_mode=yes])
110AC_ARG_ENABLE([libevent-install],
111 AS_HELP_STRING([--disable-libevent-install, disable installation of libevent]),
112 [], [enable_libevent_install=yes])
113AC_ARG_ENABLE([libevent-regress],
114 AS_HELP_STRING([--disable-libevent-regress, skip regress in make check]),
115 [], [enable_libevent_regress=yes])
116AC_ARG_ENABLE([function-sections],
117 AS_HELP_STRING([--enable-function-sections, make static library allow smaller binaries with --gc-sections]),
118 [], [enable_function_sections=no])
119AC_ARG_ENABLE([verbose-debug],
120 AS_HELP_STRING([--enable-verbose-debug, verbose debug logging]),
121 [], [enable_verbose_debug=no])
122
123
124AC_PROG_LIBTOOL
125
126dnl Uncomment "AC_DISABLE_SHARED" to make shared libraries not get
127dnl built by default. You can also turn shared libs on and off from
128dnl the command line with --enable-shared and --disable-shared.
129dnl AC_DISABLE_SHARED
130AC_SUBST(LIBTOOL_DEPS)
131
132AM_CONDITIONAL([BUILD_REGRESS], [test "$enable_libevent_regress" = "yes"])
133
134dnl Checks for libraries.
135AC_SEARCH_LIBS([inet_ntoa], [nsl])
136AC_SEARCH_LIBS([socket], [socket])
137AC_SEARCH_LIBS([inet_aton], [resolv])
138AC_SEARCH_LIBS([clock_gettime], [rt])
139AC_SEARCH_LIBS([sendfile], [sendfile])

--- 579 unchanged lines hidden (view full) ---

719 AC_MSG_RESULT([no])
720 AC_DEFINE(__func__, __FILE__,
721 [Define to appropriate substitue if compiler doesnt have __func__])))
722
723
724# check if we can compile with pthreads
725have_pthreads=no
726if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
727 OL_THREAD_CHECK([
728 have_pthreads=yes
729 PTHREAD_LIBS="$LTHREAD_LIBS"
730 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
731 AC_CHECK_SIZEOF(
732 [pthread_t],
733 [],
734 [
735 AC_INCLUDES_DEFAULT()
736 #include <pthread.h>
737 ]
738 )
739 ])
740fi
741AC_SUBST([PTHREAD_LIBS])
742AC_SUBST([PTHREAD_CFLAGS])
743AM_CONDITIONAL([PTHREADS], [test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"])
744
745# check if we should compile locking into the library
746if test x$enable_thread_support = xno; then
747 AC_DEFINE(DISABLE_THREAD_SUPPORT, 1,
748 [Define if libevent should not be compiled with thread support])
749fi
750

--- 169 unchanged lines hidden ---