6 |
|
# |
7 |
|
|
8 |
|
# Change these to change the package name and version |
9 |
< |
AC_INIT(libstatgrab, 0.10.1, bugs@i-scream.org) |
10 |
< |
AM_INIT_AUTOMAKE(libstatgrab, 0.10.1) |
9 |
> |
AC_INIT(libstatgrab, 0.10.4, bugs@i-scream.org) |
10 |
> |
AM_INIT_AUTOMAKE(libstatgrab, 0.10.4) |
11 |
|
|
12 |
|
# Revision number (automatically updated) |
13 |
|
AC_REVISION($Revision$) |
71 |
|
AC_DEFINE(SOLARIS, , [Building on Solaris 2.x]) |
72 |
|
AC_DEFINE(SOL7, , [Building on Solaris 2.6 or 2.7]) |
73 |
|
AM_CONDITIONAL(SETUIDBINS, true) |
74 |
+ |
BIN_OWNER="root" |
75 |
+ |
BIN_PERM="4755" |
76 |
|
LINKFLAGS="-lkstat -lsocket -lnsl" |
77 |
|
AC_CHECK_LIB(devinfo, di_init, [LINKFLAGS="$LINKFLAGS -ldevinfo"]) |
78 |
|
;; |
85 |
|
AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) |
86 |
|
AC_DEFINE(FREEBSD, , [Building on FreeBSD]) |
87 |
|
AM_CONDITIONAL(SETGIDBINS, true) |
88 |
+ |
BIN_GROUP="kmem" |
89 |
+ |
BIN_PERM="2755" |
90 |
|
LINKFLAGS="-lkvm -ldevstat" |
91 |
|
;; |
92 |
< |
freebsd5.*) |
92 |
> |
freebsd[[5-6]].*) |
93 |
|
AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) |
94 |
|
AC_DEFINE(FREEBSD, , [Building on FreeBSD]) |
95 |
< |
AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x]) |
95 |
> |
AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x or 6.x]) |
96 |
|
LINKFLAGS="-ldevstat" |
97 |
|
;; |
98 |
|
netbsdelf1*) |
112 |
|
AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) |
113 |
|
AC_DEFINE(DFBSD, , [Building on DragonFlyBSD]) |
114 |
|
AM_CONDITIONAL(SETGIDBINS, true) |
115 |
+ |
BIN_GROUP="kmem" |
116 |
+ |
BIN_PERM="2755" |
117 |
|
LINKFLAGS="-lkvm -ldevstat" |
118 |
|
;; |
119 |
|
linux-gnu) |
120 |
|
AC_DEFINE(LINUX, , [Building on GNU/Linux]) |
121 |
|
AM_CONDITIONAL(SETUIDBINS, true) |
122 |
+ |
BIN_OWNER="root" |
123 |
+ |
BIN_PERM="4755" |
124 |
|
;; |
125 |
|
cygwin) |
126 |
|
AC_DEFINE(CYGWIN, , [Building on Cygwin]) |
230 |
|
# The flags needed to link to libstatgrab |
231 |
|
# (ie. our dependencies) |
232 |
|
AC_SUBST(LINKFLAGS) |
233 |
+ |
|
234 |
+ |
# Ownership and permissions possibly needed for binaries |
235 |
+ |
AC_SUBST(BIN_OWNER) |
236 |
+ |
AC_SUBST(BIN_GROUP) |
237 |
+ |
AC_SUBST(BIN_PERM) |
238 |
|
|
239 |
|
# And finish by changing these files |
240 |
|
AC_CONFIG_FILES([Makefile src/Makefile src/libstatgrab/Makefile src/statgrab/Makefile docs/Makefile examples/Makefile libstatgrab.pc src/statgrab/statgrab-make-mrtg-config src/statgrab/statgrab-make-mrtg-index src/saidar/Makefile]) |