mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Syntax on AC_TRY_LINK.
svn:r4242
This commit is contained in:
parent
ff99b6f411
commit
6e6816e5ba
@ -70,13 +70,8 @@ if test "$event_found" = no; then
|
|||||||
LIBS="$LIBS -levent"
|
LIBS="$LIBS -levent"
|
||||||
LDFLAGS="$LDFLAGS -L/usr/local/lib"
|
LDFLAGS="$LDFLAGS -L/usr/local/lib"
|
||||||
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
|
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
|
||||||
AC_TRY_COMPILE([
|
AC_TRY_LINK([#include <event.h>], [ event_init(); return 0; ], [
|
||||||
#include <event.h>
|
libevent_is_in_local=yes ], [ libevent_is_in_local=no ])
|
||||||
int main(void)
|
|
||||||
{
|
|
||||||
event_init();
|
|
||||||
return 0;
|
|
||||||
}], [ libevent_is_in_local=yes ], [ libevent_is_in_local=no ])
|
|
||||||
if test libevent_is_in_local = yes; then
|
if test libevent_is_in_local = yes; then
|
||||||
AC_TRY_RUN([
|
AC_TRY_RUN([
|
||||||
#include <event.h>
|
#include <event.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user