573
574
AC_CHECK_LIB(event, event_loop, [], [AC_MSG_ERROR(could not find libevent)])
579
580
if test -f $withval/event.h -a -f $withval/libevent.a; then
581
582
if cd $withval; then withval=`pwd`; cd $owd; fi
583
584
LIBEVENT_LIBS="-L$withval -levent"
584
585
elif test -f $withval/include/event.h -a -f $withval/lib/libevent.a; then
586
587
if cd $withval; then withval=`pwd`; cd $owd; fi
588
589
LIBEVENT_LIBS="-L$withval/lib -levent"
590
591
AC_MSG_ERROR([event.h or libevent.a not found in $withval])
597
598
AC_CACHE_CHECK([for bufferevent in libevent], ac_libevent_works, [