Re: [PATCH 1/3] autoconf: fix up libevent autoconf test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 12/23/2011 02:47 PM, Jeff Layton wrote:
> Have it set LIBEVENT to -levent and use that in the Makefiles instead
> of hardcoding it.
> 
> Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx>
Committed...

steved.
> ---
>  aclocal/libevent.m4      |    3 ++-
>  utils/idmapd/Makefile.am |    2 +-
>  2 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/aclocal/libevent.m4 b/aclocal/libevent.m4
> index 3c962b3..b5ac00f 100644
> --- a/aclocal/libevent.m4
> +++ b/aclocal/libevent.m4
> @@ -2,8 +2,9 @@ dnl Checks for libevent
>  AC_DEFUN([AC_LIBEVENT], [
>  
>    dnl Check for libevent, but do not add -levent to LIBS
> -  AC_CHECK_LIB([event], [event_dispatch], [libevent=1],
> +  AC_CHECK_LIB([event], [event_dispatch], [LIBEVENT=-levent],
>                 [AC_MSG_ERROR([libevent not found.])])
> +  AC_SUBST(LIBEVENT)
>  
>    AC_CHECK_HEADERS([event.h], ,
>                     [AC_MSG_ERROR([libevent headers not found.])])
> diff --git a/utils/idmapd/Makefile.am b/utils/idmapd/Makefile.am
> index 4328e41..f8578b0 100644
> --- a/utils/idmapd/Makefile.am
> +++ b/utils/idmapd/Makefile.am
> @@ -16,7 +16,7 @@ idmapd_SOURCES = \
>  	nfs_idmap.h \
>  	queue.h
>  
> -idmapd_LDADD = -levent -lnfsidmap ../../support/nfs/libnfs.a
> +idmapd_LDADD = $(LIBEVENT) -lnfsidmap ../../support/nfs/libnfs.a
>  
>  MAINTAINERCLEANFILES = Makefile.in
>  
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux