automake: Don't fail the build if we can't setuid.
authorEric Anholt <eric@anholt.net>
Thu, 9 Feb 2012 02:02:00 +0000 (18:02 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 13 Mar 2012 19:39:00 +0000 (12:39 -0700)
The configure default is to setuid root the weston compositor.
However, if installing as non-root (say, to your prefix in homedir),
the install fails anyway, even if you didn't need setuid to run weston
in your configuration.

src/Makefile.am

index 5ec9fea..67c7414 100644 (file)
@@ -26,8 +26,8 @@ weston_SOURCES =                      \
 
 if ENABLE_SETUID_INSTALL
 install-exec-hook:
-       chown root $(DESTDIR)$(bindir)/weston
-       chmod u+s $(DESTDIR)$(bindir)/weston
+       -chown root $(DESTDIR)$(bindir)/weston
+       -chmod u+s $(DESTDIR)$(bindir)/weston
 endif
 
 if ENABLE_XSERVER_LAUNCHER