6 |
|
# |
7 |
|
|
8 |
|
# Change these to change the package name and version |
9 |
< |
AC_INIT(libstatgrab, 0.14, bugs@i-scream.org) |
10 |
< |
AM_INIT_AUTOMAKE(libstatgrab, 0.14) |
11 |
< |
AM_MAINTAINER_MODE |
9 |
> |
AC_INIT(libstatgrab, 0.18, bugs@i-scream.org) |
10 |
> |
AM_INIT_AUTOMAKE(libstatgrab, 0.18) |
11 |
|
|
12 |
|
# Revision number (automatically updated) |
13 |
|
AC_REVISION($Revision$) |
51 |
|
[], |
52 |
|
[#include <sys/statvfs.h>]) |
53 |
|
|
54 |
+ |
# FreeBSD 9 (and others) uses utmpx rather than utmp |
55 |
+ |
AC_CHECK_MEMBER(struct utmpx.ut_type, |
56 |
+ |
[AC_DEFINE(HAVE_UTMPX, , [utmpx])], |
57 |
+ |
[], |
58 |
+ |
[#include <utmpx.h>]) |
59 |
+ |
|
60 |
|
# Check for sys/loadavg.h |
61 |
|
AC_CHECK_HEADERS([sys/loadavg.h]) |
62 |
|
|
83 |
|
BIN_PERM="4755" |
84 |
|
LINKFLAGS="-lkstat -lsocket -lnsl" |
85 |
|
AC_CHECK_LIB(devinfo, di_init, [LINKFLAGS="$LINKFLAGS -ldevinfo"]) |
86 |
+ |
AC_CHECK_LIB(m, fabs, [SAIDARLIBS="$SAIDARLIBS -lm"]) |
87 |
|
;; |
88 |
|
solaris2.*) |
89 |
|
AC_CHECK_HEADERS([kstat.h],,[AC_MSG_ERROR([need kstat.h])]) |
90 |
|
AC_DEFINE(SOLARIS, , [Building on Solaris 2.x]) |
91 |
|
LINKFLAGS="-lkstat -ldevinfo -lsocket -lnsl" |
92 |
+ |
AC_CHECK_LIB(m, fabs, [SAIDARLIBS="$SAIDARLIBS -lm"]) |
93 |
|
;; |
94 |
|
hpux11.11*) |
95 |
|
AC_DEFINE(HPUX, , [Building on HP-UX 11.11]) |
102 |
|
BIN_PERM="2755" |
103 |
|
LINKFLAGS="-lkvm -ldevstat" |
104 |
|
;; |
105 |
< |
freebsd[[5-7]].*) |
105 |
> |
freebsd[[5-9]].*) |
106 |
|
AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) |
107 |
|
AC_DEFINE(FREEBSD, , [Building on FreeBSD]) |
108 |
< |
AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x - 7.x]) |
108 |
> |
AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x - 9.x]) |
109 |
|
LINKFLAGS="-ldevstat" |
110 |
|
;; |
111 |
|
netbsdelf1*) |
129 |
|
BIN_PERM="2755" |
130 |
|
LINKFLAGS="-lkvm -ldevstat" |
131 |
|
;; |
132 |
< |
linux-gnu) |
132 |
> |
linux-gnu*) |
133 |
|
AC_DEFINE(LINUX, , [Building on GNU/Linux]) |
134 |
|
AM_CONDITIONAL(SETUIDBINS, true) |
135 |
|
BIN_OWNER="root" |
157 |
|
SAIDARLIBS="-L${withval}/lib ${SAIDARLIBS}" |
158 |
|
fi |
159 |
|
if test -d "$withval/include"; then |
160 |
< |
SAIDARCPPFLAGS="-I${withval}/include -I${withval}/include/ncurses ${SAIRDARCPPFLAGS}" |
160 |
> |
SAIDARCPPFLAGS="-I${withval}/include ${SAIRDARCPPFLAGS}" |
161 |
|
fi |
162 |
|
] |
163 |
|
) |