1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00

(trunk) tweak configure.ac to fix a hiccup reported by geirha

This commit is contained in:
Charles Kerr 2009-06-04 22:21:31 +00:00
parent ba3720f050
commit f64ef6acde

View file

@ -169,13 +169,13 @@ AC_TRY_LINK([#include <stdarg.h>], [va_list ap1, ap2; va_copy(ap1, ap2);],
AC_CHECK_HEADER([event-config.h], AC_CHECK_HEADER([event-config.h],
[libevent_source=system [libevent_source=system
LIBEVENT_CPPFLAGS="" LIBEVENT_CPPFLAGS=""
LIBEVENT_LIBS="-levent"], LIBEVENT_LIBS="-levent -lrt"],
[libevent_source=bundled [libevent_source=bundled
AC_MSG_NOTICE([couldn't find event-config.h, so using our own copy of libevent from third-party/libevent/.]) AC_MSG_NOTICE([couldn't find event-config.h, so using our own copy of libevent from third-party/libevent/.])
AC_MSG_NOTICE([if you are cross-compiling this is probably NOT what you want.]) AC_MSG_NOTICE([if you are cross-compiling this is probably NOT what you want.])
AC_CONFIG_SUBDIRS([third-party/libevent]) AC_CONFIG_SUBDIRS([third-party/libevent])
LIBEVENT_CPPFLAGS="-I\$(top_srcdir)/third-party/libevent -I\$(top_builddir)/third-party/libevent" LIBEVENT_CPPFLAGS="-I\$(top_srcdir)/third-party/libevent -I\$(top_builddir)/third-party/libevent"
LIBEVENT_LIBS="\$(top_builddir)/third-party/libevent/.libs/libevent.a"]) LIBEVENT_LIBS="\$(top_builddir)/third-party/libevent/libevent.la"])
AM_CONDITIONAL([BUILD_LIBEVENT], [test x$libevent_source = xbundled]) AM_CONDITIONAL([BUILD_LIBEVENT], [test x$libevent_source = xbundled])
AC_SUBST(LIBEVENT_CPPFLAGS) AC_SUBST(LIBEVENT_CPPFLAGS)
AC_SUBST(LIBEVENT_LIBS) AC_SUBST(LIBEVENT_LIBS)