mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-26 14:13:18 -05:00
Add check for libevent_extra and evhttp.h
This commit is contained in:
parent
c9494a898e
commit
13c06803f8
@ -58,6 +58,11 @@ PKG_CHECK_MODULES(FFMPEG, [ libavcodec libavformat ])
|
||||
|
||||
AC_CHECK_HEADER(event.h, , AC_MSG_ERROR([event.h not found]))
|
||||
AC_CHECK_LIB([event_core], [event_init], [LIBEVENT_LIBS="-levent_core"], AC_MSG_ERROR([libevent not found]))
|
||||
AC_CHECK_HEADER(evhttp.h, , AC_MSG_ERROR([evhttp.h not found]))
|
||||
save_LIBS="$LIBS"
|
||||
LIBS=-levent_core
|
||||
AC_CHECK_LIB([event_extra], [evhttp_new], [LIBEVENT_LIBS="$LIBEVENT_LIBS -levent_extra"], AC_MSG_ERROR([libevent not found]))
|
||||
LIBS="$save_LIBS"
|
||||
AC_SUBST(LIBEVENT_LIBS)
|
||||
|
||||
AC_CHECK_HEADER(avl.h, , AC_MSG_ERROR([avl.h not found]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user