1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-10 06:02:57 +00:00

(trunk) if libevent exists on the system, use it. otherwise, use our own copy.

This commit is contained in:
Charles Kerr 2009-06-03 16:31:43 +00:00
parent 8e6eee683f
commit 2ccee6c2d3
2 changed files with 32 additions and 28 deletions

View file

@ -166,21 +166,19 @@ AC_TRY_LINK([#include <stdarg.h>], [va_list ap1, ap2; va_copy(ap1, ap2);],
]) ])
dnl let's try using the system's libevent now AC_CHECK_HEADER([event-config.h],
dnl [libevent_source=system
dnl ---------------------------------------------------------------------------- LIBEVENT_CPPFLAGS=""
dnl LIBEVENT_LIBS="-levent"],
dnl libevent fun [libevent_source=bundled
dnl AC_CONFIG_SUBDIRS([third-party/libevent])
dnl we have to add the builddir into the include path because event-config.h AC_MSG_NOTICE([libevent not found on system, so we'll build our own from third-party/libevent/.])
dnl is generated when libevent is build AC_MSG_NOTICE([if you are cross-compiling this is probably not what you want.])
dnl LIBEVENT_CPPFLAGS="-I\$(top_srcdir)/third-party/libevent -I\$(top_builddir)/third-party/libevent"
dnl AC_CONFIG_SUBDIRS([third-party/libevent]) LIBEVENT_LIBS="\$(top_builddir)/third-party/libevent/.libs/libevent.a"
dnl AC_MSG_NOTICE([invoking libevent's configure script]) AC_SUBST(LIBEVENT_CPPFLAGS)])
dnl LIBEVENT_CPPFLAGS="-I\$(top_srcdir)/third-party/libevent -I\$(top_builddir)/third-party/libevent" AM_CONDITIONAL([BUILD_LIBEVENT], [test x$libevent_source = xbundled])
dnl AC_SUBST(LIBEVENT_CPPFLAGS) AC_SUBST(LIBEVENT_CPPFLAGS)
LIBEVENT_LIBS="-levent"
AC_SUBST(LIBEVENT_LIBS) AC_SUBST(LIBEVENT_LIBS)
@ -377,14 +375,16 @@ echo "
Configuration: Configuration:
Source code location: ${srcdir} Source code location: ${srcdir}
Compiler: ${CXX} Compiler: ${CXX}
Build Command-Line client: ${build_cli} System or bundled libevent: ${libevent_source}
Build Daemon: ${build_daemon}
Build GTK+ client: ${build_gtk} Build OS X client: ${build_mac}
... gio support: ${use_gio} Build GTK+ client: ${build_gtk}
... dbus-glib support: ${use_dbus_glib} ... with gio support: ${use_gio}
... libnotify support: ${use_libnotify} ... with dbus-glib support: ${use_dbus_glib}
Build OS X client: ${build_mac} ... with libnotify support: ${use_libnotify}
Build Command-Line client: ${build_cli}
Build Daemon: ${build_daemon}
" "

View file

@ -1,7 +1,11 @@
SUBDIRS = \
libnatpmp \ if BUILD_LIBEVENT
miniupnp \ LIBEVENT_DIR = libevent
dht else
LIBEVENT_DIR =
endif
SUBDIRS = libnatpmp miniupnp dht $(LIBEVENT_DIR)
EXTRA_DIST = \ EXTRA_DIST = \
libevent \ libevent \