]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10314 Only install the slapi-plugin.h header if building slapi library 822/head
authorMattias Ellert <mattias.ellert@physics.uu.se>
Fri, 28 Feb 2025 12:04:30 +0000 (13:04 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 5 Feb 2026 21:58:36 +0000 (21:58 +0000)
include/Makefile.in

index 10d5c309a55da6a53598d1d100033907a4871251..6f75462c6fdc6f1f0960a577207b4a21a86f63a6 100644 (file)
 
 all-local: ldap_config.h FORCE
 
+BUILD_SLAPI = @BUILD_SLAPI@
+
 install-local: FORCE
        -$(MKDIR) $(DESTDIR)$(includedir)
        for header in $(srcdir)/lber.h lber_types.h \
                $(srcdir)/ldap.h $(srcdir)/ldap_cdefs.h \
                $(srcdir)/ldap_schema.h $(srcdir)/ldap_utf8.h \
-               $(srcdir)/slapi-plugin.h ldap_features.h \
+               ldap_features.h \
                $(srcdir)/ldif.h $(srcdir)/openldap.h ; \
        do \
                $(INSTALL) $(INSTALLFLAGS) -m 644 $$header $(DESTDIR)$(includedir); \
        done
+       if test "$(BUILD_SLAPI)" = "yes"; then \
+               $(INSTALL) $(INSTALLFLAGS) -m 644 $(srcdir)/slapi-plugin.h $(DESTDIR)$(includedir); \
+       fi
 
 clean-local: FORCE 
        $(RM) ldap_config.h