Revision: 2625
http://tmux.svn.sourceforge.net/tmux/?rev=2625&view=rev
Author: nicm
Date: 2011-10-27 23:00:45 +0000 (Thu, 27 Oct 2011)
Log Message:
-----------
Use pkg-config for libevent.
Modified Paths:
--------------
trunk/configure.ac
Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac 2011-10-27 22:43:02 UTC (rev 2624)
+++ trunk/configure.ac 2011-10-27 23:00:45 UTC (rev 2625)
@@ -105,11 +105,22 @@
AC_SEARCH_LIBS(clock_gettime, rt)
# Look for libevent.
-AC_SEARCH_LIBS(
- event_init,
- [event event-1.4 event2],
- found_libevent=yes,
- found_libevent=no
+PKG_CHECK_MODULES(
+ LIBEVENT,
+ libevent,
+ [
+ CPPFLAGS="$LIBEVENT_CFLAGS $CPPFLAGS"
+ LIBS="$LIBEVENT_LIBS $LIBS"
+ found_libevent=yes
+ ],
+ [
+ AC_SEARCH_LIBS(
+ event_init,
+ [event event-1.4 event2],
+ found_libevent=yes,
+ found_libevent=no
+ )
+ ]
)
if test "x$found_libevent" = xno; then
AC_MSG_ERROR("libevent not found")
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs