changeset 10550:127fb230e269 HEAD

login-common: Install headers.
author Timo Sirainen <tss@iki.fi>
date Sat, 02 Jan 2010 11:36:08 -0500
parents 9ae939146ff7
children 2882650531e0
files src/login-common/Makefile.am
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/login-common/Makefile.am	Sat Jan 02 11:35:59 2010 -0500
+++ b/src/login-common/Makefile.am	Sat Jan 02 11:36:08 2010 -0500
@@ -22,7 +22,7 @@
 liblogin_la_LIBADD = \
 	$(SSL_LIBS)
 
-noinst_HEADERS = \
+headers = \
 	client-common.h \
 	login-common.h \
 	login-proxy.h \
@@ -31,6 +31,13 @@
 	sasl-server.h \
 	ssl-proxy.h
 
+if INSTALL_HEADERS
+  pkginc_libdir=$(pkgincludedir)
+  pkginc_lib_HEADERS = $(headers)
+else
+  noinst_HEADERS = $(headers)
+endif
+
 pkglib_LTLIBRARIES = libdovecot-login.la
 libdovecot_login_la_SOURCES = 
 libdovecot_login_la_LIBADD = liblogin.la