--- projects/libstatgrab/src/statgrab/Makefile.am 2003/08/28 11:26:42 1.2 +++ projects/libstatgrab/src/statgrab/Makefile.am 2003/12/12 09:48:21 1.7 @@ -1,13 +1,29 @@ # Makefile for libstatgrab/src/statgrab # http://www.i-scream.org/ -# $Id: Makefile.am,v 1.2 2003/08/28 11:26:42 ats Exp $ +# $Id: Makefile.am,v 1.7 2003/12/12 09:48:21 tdb Exp $ +if STATGRAB bin_PROGRAMS = statgrab bin_SCRIPTS = statgrab-make-mrtg-config statgrab-make-mrtg-index +endif + statgrab_SOURCES = statgrab.c INCLUDES = -I$(top_srcdir) -I$(top_builddir) \ -I$(top_srcdir)/src -I$(top_builddir)/src\ -I$(top_srcdir)/src/libstatgrab -I$(top_builddir)/src/libstatgrab -LDADD = $(top_builddir)/src/libstatgrab/libstatgrab.la +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 + chmod u+s @bindir@/statgrab +endif +endif