6 |
|
# |
7 |
|
|
8 |
|
# Change these to change the package name and version |
9 |
< |
AC_INIT(ihost, 1.5.8, bugs@i-scream.org) |
10 |
< |
AM_INIT_AUTOMAKE(ihost, 1.5.8) |
9 |
> |
AC_INIT(ihost, 1.5.9, bugs@i-scream.org) |
10 |
> |
AM_INIT_AUTOMAKE(ihost, 1.5.9) |
11 |
|
|
12 |
|
# Revision number (automatically updated) |
13 |
|
AC_REVISION($Revision$) |
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 |
|
;; |
112 |
|
esac |
113 |
|
|
114 |
|
# Check for libstatgrab |
115 |
< |
AC_CHECK_LIB(statgrab, get_general_stats,[:],[AC_MSG_ERROR([need libstatgrab])]) |
115 |
> |
AC_CHECK_LIB(statgrab, sg_get_host_info,[:],[AC_MSG_ERROR([need libstatgrab])]) |
116 |
|
|
117 |
|
# Check for the --with-pid-file option |
118 |
|
AC_ARG_WITH([pid-file], [ --with-pid-file=FILE location of PID file (default: /var/tmp/.ihost.pid)], [pidfile=$withval], [pidfile=[/var/tmp/.ihost.pid]]) |
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]]) |