]> granicus.if.org Git - sudo/commitdiff
Fix install-plugin when sudoers is compiled statically.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 24 Dec 2013 21:50:28 +0000 (14:50 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 24 Dec 2013 21:50:28 +0000 (14:50 -0700)
plugins/sudoers/Makefile.in

index fdcb45b5ecdd6d10e907782ff8ad659d186a28f0..5a7c653e1643a8651c2ad0fd11b0324e87f7accf 100644 (file)
@@ -298,7 +298,7 @@ install-doc: install-dirs
        @LDAP@$(INSTALL) -O $(install_uid) -G $(install_gid) -m 0755 $(srcdir)/sudoers2ldif $(DESTDIR)$(docdir)
 
 install-plugin: sudoers.la install-dirs
-       if [ X"$(soext)" != X"" ]; then \
+       if [ X"$(soext)" != X"" -a -e .libs/sudoers$(soext) ]; then \
            test X"$$SUDO_PREINSTALL_CMD" != X"" && \
                $$SUDO_PREINSTALL_CMD .libs/sudoers$(soext); \
            $(INSTALL) -b~ -O $(install_uid) -G $(install_gid) -m $(shlib_mode) .libs/sudoers$(soext) $(DESTDIR)$(plugindir)/sudoers.so; \