From b5ab955531c2008d33e46437ec926f5e0f0df3cd Mon Sep 17 00:00:00 2001 From: Dave Hart Date: Fri, 25 Feb 2011 10:35:12 -0500 Subject: [PATCH] Make --no-libevent-install apply to headers too --- include/Makefile.am | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/include/Makefile.am b/include/Makefile.am index b109ff79..fbf459eb 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -28,7 +28,14 @@ EVENT2_EXPORT = \ EXTRA_SRC = $(EVENT2_EXPORT) -nobase_include_HEADERS = $(EVENT2_EXPORT) +## Without the nobase_ prefixing, Automake would strip "event2/" from +## the source header filename to derive the installed header filename. +## With nobase_ the installed path is $(includedir)/event2/ev*.h. +if INSTALL_LIBEVENT +nobase_include_HEADERS = $(EVENT2_EXPORT) nobase_nodist_include_HEADERS = ./event2/event-config.h - +else +noinst_HEADERS = $(EVENT2_EXPORT) +nodist_noinst_HEADERS = ./event2/event-config.h +endif