| 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]]) |