8 |
|
# Change these to change the package name and version |
9 |
|
AC_INIT(libstatgrab, 0.13, bugs@i-scream.org) |
10 |
|
AM_INIT_AUTOMAKE(libstatgrab, 0.13) |
11 |
+ |
AM_MAINTAINER_MODE |
12 |
|
|
13 |
|
# Revision number (automatically updated) |
14 |
|
AC_REVISION($Revision$) |
62 |
|
AM_CONDITIONAL(SETGIDBINS, false) |
63 |
|
AM_CONDITIONAL(SETUIDBINS, false) |
64 |
|
|
65 |
+ |
# Default MINGW setting |
66 |
+ |
AM_CONDITIONAL(MINGW, false) |
67 |
+ |
|
68 |
|
# Set things up for different OS's |
69 |
|
# We define the name of the OS so the code can act accordingly |
70 |
|
# We also need to add the right LDFLAGS |
130 |
|
;; |
131 |
|
cygwin) |
132 |
|
AC_DEFINE(CYGWIN, , [Building on Cygwin]) |
133 |
+ |
;; |
134 |
+ |
mingw32) |
135 |
+ |
AC_DEFINE(MINGW, , [Building on MinGW]) |
136 |
+ |
AC_DEFINE(WINVER, 0x0500, [Building for Windows 2000]) |
137 |
+ |
AM_CONDITIONAL(MINGW, true) |
138 |
+ |
LINKFLAGS="-lpdh -lIphlpapi -lpsapi -lnetapi32" |
139 |
|
;; |
140 |
|
*) |
141 |
|
AC_MSG_ERROR([Cannot build on unknown OS: $host_os]) |