]> granicus.if.org Git - graphviz/commitdiff
only run /sbin/ldconfig if it exists and is exxecutable
authorellson <devnull@localhost>
Sun, 18 Mar 2007 14:46:17 +0000 (14:46 +0000)
committerellson <devnull@localhost>
Sun, 18 Mar 2007 14:46:17 +0000 (14:46 +0000)
cmd/dot/Makefile.am

index d58baf70b7434f5d956e3a1d60cf8577a3962479..c73c6bfa8caf6eb31245e7e8468daaada0c3733b 100644 (file)
@@ -37,7 +37,7 @@ install-data-hook:
 # run "dot -c", if possible, to create plugin config
 install-exec-hook:
        (cd $(DESTDIR)$(bindir); for i in $(linkedprogram); do rm -f $$i; $(LN_S) dot $$i; done;)
-       if test "x$(DESTDIR)" = "x"; then if test -x $(bindir)/dot; then /sbin/ldconfig; $(bindir)/dot -c; else $(bindir)/dot_static -c; fi; fi
+       if test "x$(DESTDIR)" = "x"; then if test -x $(bindir)/dot; then if test -x /sbin/ldconfig; then /sbin/ldconfig; fi; $(bindir)/dot -c; else $(bindir)/dot_static -c; fi; fi
 
 uninstall-hook:
        (cd $(DESTDIR)$(man1dir); for i in $(linkedman); do rm -f $$i; done;)