--- projects/libstatgrab/src/statgrab/Makefile.am 2003/10/04 16:05:57 1.4 +++ projects/libstatgrab/src/statgrab/Makefile.am 2004/02/15 21:18:37 1.9 @@ -1,6 +1,6 @@ # Makefile for libstatgrab/src/statgrab -# http://www.i-scream.org/ -# $Id: Makefile.am,v 1.4 2003/10/04 16:05:57 tdb Exp $ +# http://www.i-scream.org/libstatgrab/ +# $Id: Makefile.am,v 1.9 2004/02/15 21:18:37 tdb Exp $ if STATGRAB bin_PROGRAMS = statgrab @@ -14,3 +14,17 @@ INCLUDES = -I$(top_srcdir) -I$(top_builddir) \ -I$(top_srcdir)/src/libstatgrab -I$(top_builddir)/src/libstatgrab LDADD = $(top_builddir)/src/libstatgrab/libstatgrab.la @LINKFLAGS@ + +install-exec-local: +if STATGRAB +if SETGIDBINS +# Some operating systems need the binary to be setgid kmem + chgrp kmem @bindir@/statgrab + chmod g+s @bindir@/statgrab +endif +if SETUIDBINS +# Some operating systems need the binary to be setuid root + chown root @bindir@/statgrab + chmod u+s @bindir@/statgrab +endif +endif