mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Use pkg-config for libevent.
This commit is contained in:
parent
5213d9674b
commit
cf317412d9
11
configure.ac
11
configure.ac
@ -105,12 +105,23 @@ AC_MSG_RESULT($found_glibc)
|
|||||||
AC_SEARCH_LIBS(clock_gettime, rt)
|
AC_SEARCH_LIBS(clock_gettime, rt)
|
||||||
|
|
||||||
# Look for libevent.
|
# Look for libevent.
|
||||||
|
PKG_CHECK_MODULES(
|
||||||
|
LIBEVENT,
|
||||||
|
libevent,
|
||||||
|
[
|
||||||
|
CPPFLAGS="$LIBEVENT_CFLAGS $CPPFLAGS"
|
||||||
|
LIBS="$LIBEVENT_LIBS $LIBS"
|
||||||
|
found_libevent=yes
|
||||||
|
],
|
||||||
|
[
|
||||||
AC_SEARCH_LIBS(
|
AC_SEARCH_LIBS(
|
||||||
event_init,
|
event_init,
|
||||||
[event event-1.4 event2],
|
[event event-1.4 event2],
|
||||||
found_libevent=yes,
|
found_libevent=yes,
|
||||||
found_libevent=no
|
found_libevent=no
|
||||||
)
|
)
|
||||||
|
]
|
||||||
|
)
|
||||||
if test "x$found_libevent" = xno; then
|
if test "x$found_libevent" = xno; then
|
||||||
AC_MSG_ERROR("libevent not found")
|
AC_MSG_ERROR("libevent not found")
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user