Module Name:    src
Committed By:   tls
Date:           Wed Aug 19 01:38:39 UTC 2009

Modified Files:
        src/lib/libevent: Makefile

Log Message:
Matthias Drochner pointed out that I lost the _EVENT_ prefix from all
the autoconf defines in the installed event_config.h.  Of course, the
libevent documentation basically says not to use event_config.h, so it
is a little hard to see why the right fix isn't to just not install it...
...in any event, fix this approximately as the stock libevent Makefile does.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libevent/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libevent/Makefile
diff -u src/lib/libevent/Makefile:1.6 src/lib/libevent/Makefile:1.7
--- src/lib/libevent/Makefile:1.6	Sun Jul 26 21:33:46 2009
+++ src/lib/libevent/Makefile	Wed Aug 19 01:38:39 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.6 2009/07/26 21:33:46 tls Exp $
+#	$NetBSD: Makefile,v 1.7 2009/08/19 01:38:39 tls Exp $
 #	@(#)Makefile	8.1 (Berkeley) 6/4/93
 
 NOLINT=		# Until someone explains to me how to avoid lint stupidity
@@ -11,12 +11,9 @@
 SRCS=	buffer.c evbuffer.c evdns.c event.c event_tagging.c evrpc.c evutil.c \
 	http.c kqueue.c log.c poll.c signal.c
 
-INCS=	evdns.h event.h evhttp.h evrpc.h evutil.h
+INCS=	evdns.h event.h evhttp.h evrpc.h evutil.h event_config.h
 INCSDIR=/usr/include
 
-INCS+=	config.h
-INCSNAME_config.h=	event-config.h
-
 MAN=	evdns.3 event.3
 
 MLINKS+=event.3 event_init.3
@@ -92,4 +89,7 @@
 MLINKS+=evdns.3 evdns_search_ndots_set.3
 MLINKS+=evdns.3 evdns_set_log_fn.3
 
+event_config.h:	config.h
+	sed -e 's/#define /#define _EVENT_/' ${.ALLSRC} > ${.OBJDIR}/${.TARGET}
+
 .include <bsd.lib.mk>

Reply via email to