[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Syntax on AC_TRY_LINK.



Update of /home/or/cvsroot/tor
In directory moria.mit.edu:/tmp/cvs-serv14681

Modified Files:
	configure.in 
Log Message:
Syntax on AC_TRY_LINK.

Index: configure.in
===================================================================
RCS file: /home/or/cvsroot/tor/configure.in,v
retrieving revision 1.196
retrieving revision 1.197
diff -u -d -r1.196 -r1.197
--- configure.in	17 May 2005 02:04:42 -0000	1.196
+++ configure.in	17 May 2005 02:24:48 -0000	1.197
@@ -70,13 +70,8 @@
      LIBS="$LIBS -levent"
      LDFLAGS="$LDFLAGS -L/usr/local/lib"
      CPPFLAGS="$CPPFLAGS -I/usr/local/include"
-     AC_TRY_COMPILE([
-#include <event.h>
-int main(void)
-{
-	event_init();
-	return 0;
-}], [ libevent_is_in_local=yes ], [ libevent_is_in_local=no ])
+     AC_TRY_LINK([#include <event.h>], [ event_init(); return 0; ], [
+      libevent_is_in_local=yes ], [ libevent_is_in_local=no ])
     if test libevent_is_in_local = yes; then
        AC_TRY_RUN([
 #include <event.h>