6 |
|
# |
7 |
|
|
8 |
|
# Change these to change the package name and version |
9 |
< |
AC_INIT(libstatgrab, 0.12, bugs@i-scream.org) |
10 |
< |
AM_INIT_AUTOMAKE(libstatgrab, 0.12) |
9 |
> |
AC_INIT(libstatgrab, 0.13, bugs@i-scream.org) |
10 |
> |
AM_INIT_AUTOMAKE(libstatgrab, 0.13) |
11 |
|
|
12 |
|
# Revision number (automatically updated) |
13 |
|
AC_REVISION($Revision$) |
61 |
|
AM_CONDITIONAL(SETGIDBINS, false) |
62 |
|
AM_CONDITIONAL(SETUIDBINS, false) |
63 |
|
|
64 |
+ |
# Default MINGW setting |
65 |
+ |
AM_CONDITIONAL(MINGW, false) |
66 |
+ |
|
67 |
|
# Set things up for different OS's |
68 |
|
# We define the name of the OS so the code can act accordingly |
69 |
|
# We also need to add the right LDFLAGS |
94 |
|
BIN_PERM="2755" |
95 |
|
LINKFLAGS="-lkvm -ldevstat" |
96 |
|
;; |
97 |
< |
freebsd[[5-6]].*) |
97 |
> |
freebsd[[5-7]].*) |
98 |
|
AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) |
99 |
|
AC_DEFINE(FREEBSD, , [Building on FreeBSD]) |
100 |
< |
AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x or 6.x]) |
100 |
> |
AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x - 7.x]) |
101 |
|
LINKFLAGS="-ldevstat" |
102 |
|
;; |
103 |
|
netbsdelf1*) |
130 |
|
cygwin) |
131 |
|
AC_DEFINE(CYGWIN, , [Building on Cygwin]) |
132 |
|
;; |
133 |
+ |
mingw32) |
134 |
+ |
AC_DEFINE(MINGW, , [Building on MinGW]) |
135 |
+ |
AC_DEFINE(WINVER, 0x0500, [Building for Windows 2000]) |
136 |
+ |
AM_CONDITIONAL(MINGW, true) |
137 |
+ |
LINKFLAGS="-lpdh -lIphlpapi -lpsapi -lnetapi32" |
138 |
+ |
;; |
139 |
|
*) |
140 |
|
AC_MSG_ERROR([Cannot build on unknown OS: $host_os]) |
141 |
|
;; |
248 |
|
AC_SUBST(BIN_PERM) |
249 |
|
|
250 |
|
# And finish by changing these files |
251 |
< |
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]) |
251 |
> |
AC_CONFIG_FILES([Makefile src/Makefile src/libstatgrab/Makefile src/statgrab/Makefile docs/Makefile docs/libstatgrab/Makefile docs/statgrab/Makefile docs/saidar/Makefile examples/Makefile libstatgrab.pc src/statgrab/statgrab-make-mrtg-config src/statgrab/statgrab-make-mrtg-index src/saidar/Makefile]) |
252 |
|
|
253 |
|
AC_OUTPUT |