100 |
|
cygwin) |
101 |
|
AC_MSG_ERROR([libstatgrab doesn't fully support cygwin, yet]) |
102 |
|
;; |
103 |
+ |
mingw32) |
104 |
+ |
AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])]) |
105 |
+ |
AC_DEFINE(MINGW, , [Building on MinGW]) |
106 |
+ |
AC_DEFINE(WINVER, 0x0500, [Building for Windows 2000]) |
107 |
+ |
LIBS="$LIBS -lstatgrab -lukcprog -lws2_32 -lpdh -lIphlpapi -lpsapi -lnetapi32" |
108 |
+ |
;; |
109 |
|
*) |
110 |
|
AC_MSG_ERROR([Cannot build on unknown OS: $host_os]) |
111 |
|
;; |
119 |
|
AC_DEFINE_UNQUOTED([PID_FILE], ["$pidfile"], [Location of PID file]) |
120 |
|
|
121 |
|
# Check for the --with-max-udp-size option |
122 |
< |
AC_ARG_WITH([max-udp-size], [ --with-max-udp-size=KB maximum size of UDP packets in kilobytes (default: 8192kb)], [max_udp_size=$withval], [max_udp_size=[8192]]) |
123 |
< |
AC_DEFINE_UNQUOTED([MAX_UDP_PACKET_SIZE], [$max_udp_size], [Maximum size of UDP packets in kilobytes]) |
122 |
> |
AC_ARG_WITH([max-udp-size], [ --with-max-udp-size=KB maximum size of UDP packets in bytes (default: 8192b)], [max_udp_size=$withval], [max_udp_size=[8192]]) |
123 |
> |
AC_DEFINE_UNQUOTED([MAX_UDP_PACKET_SIZE], [$max_udp_size], [Maximum size of UDP packets in bytes]) |
124 |
|
|
125 |
|
# Check for the --with-log-file option |
126 |
|
AC_ARG_WITH([log-file], [ --with-log-file=FILE location of log file (default: /var/log/ihost.log)], [logfile=$withval], [logfile=[/var/log/ihost.log]]) |