Lines 45-50
Link Here
|
45 |
AC_DEFINE(HAVE_CLOCK_MONOTONIC) |
45 |
AC_DEFINE(HAVE_CLOCK_MONOTONIC) |
46 |
AC_SUBST(HAVE_CLOCK_MONOTONIC) |
46 |
AC_SUBST(HAVE_CLOCK_MONOTONIC) |
47 |
AC_SUBST(REALTIME_LIBS) |
47 |
AC_SUBST(REALTIME_LIBS) |
|
|
48 |
@@ -4019,17 +4019,17 @@ else |
49 |
if test "${LIBEVENT_DIR}" = "yes"; then |
50 |
LIBEVENT_DIR=/usr |
51 |
fi |
52 |
- CFLAGS="-I${LIBEVENT_DIR}/include $CFLAGS" |
53 |
- LDFLAGS="-L${LIBEVENT_DIR}/lib $LDFLAGS" |
54 |
+ CFLAGS="-I${LIBEVENT_DIR}/include/event2 -I${LIBEVENT_DIR}/include/event2/compat $CFLAGS" |
55 |
+ LDFLAGS="-L${LIBEVENT_DIR}/lib/event2 $LDFLAGS" |
56 |
MOZ_CHECK_HEADER(event.h, |
57 |
- [if test ! -f "${LIBEVENT_DIR}/include/event.h"; then |
58 |
- AC_MSG_ERROR([event.h found, but is not in ${LIBEVENT_DIR}/include]) |
59 |
+ [if test ! -f "${LIBEVENT_DIR}/include/event2/event.h"; then |
60 |
+ AC_MSG_ERROR([event.h found, but is not in ${LIBEVENT_DIR}/include/event2]) |
61 |
fi], |
62 |
AC_MSG_ERROR([--with-system-libevent requested but event.h not found])) |
63 |
- AC_CHECK_LIB(event, event_init, |
64 |
+ AC_CHECK_LIB(event-2.0, event_init, |
65 |
[MOZ_NATIVE_LIBEVENT=1 |
66 |
- MOZ_LIBEVENT_INCLUDES="${LIBEVENT_DIR}/include" |
67 |
- MOZ_LIBEVENT_LIBS="-L${LIBEVENT_DIR}/lib -levent"], |
68 |
+ MOZ_LIBEVENT_INCLUDES="${LIBEVENT_DIR}/include/event2 ${LIBEVENT_DIR}/include/event2/compat" |
69 |
+ MOZ_LIBEVENT_LIBS="-L${LIBEVENT_DIR}/lib/event2 -levent-2.0"], |
70 |
[MOZ_NATIVE_LIBEVENT= MOZ_LIBEVENT_INCLUDES= MOZ_LIBEVENT_LIBS=]) |
71 |
fi |
72 |
CFLAGS=$_SAVE_CFLAGS |
48 |
@@ -4808,7 +4810,7 @@ CFLAGS=$_SAVE_CFLAGS |
73 |
@@ -4808,7 +4810,7 @@ CFLAGS=$_SAVE_CFLAGS |
49 |
LDFLAGS=$_SAVE_LDFLAGS |
74 |
LDFLAGS=$_SAVE_LDFLAGS |
50 |
LIBS=$_SAVE_LIBS |
75 |
LIBS=$_SAVE_LIBS |