1 |
tdb |
1.1 |
AC_INIT(ihost.c) |
2 |
|
|
AM_INIT_AUTOMAKE(ihost, 1.0rc1) |
3 |
|
|
dnl AC_CONFIG_SRCDIR([ihost.c]) |
4 |
|
|
AM_CONFIG_HEADER([config.h]) |
5 |
|
|
|
6 |
|
|
AC_PROG_CC |
7 |
|
|
AC_PROG_INSTALL |
8 |
|
|
AC_PROG_RANLIB |
9 |
|
|
|
10 |
|
|
dnl AC_HEADER_DIRENT |
11 |
|
|
AC_HEADER_STDC |
12 |
|
|
dnl AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h memory.h mntent.h netdb.h netinet/in.h stddef.h stdlib.h string.h sys/mount.h sys/param.h sys/socket.h sys/statvfs.h sys/time.h sys/vfs.h syslog.h unistd.h utmp.h]) |
13 |
|
|
|
14 |
|
|
dnl AC_C_CONST |
15 |
|
|
dnl AC_TYPE_UID_T |
16 |
|
|
dnl AC_TYPE_PID_T |
17 |
|
|
dnl AC_TYPE_SIZE_T |
18 |
|
|
dnl AC_HEADER_TIME |
19 |
|
|
|
20 |
|
|
dnl AC_FUNC_FORK |
21 |
|
|
AC_FUNC_GETLOADAVG |
22 |
|
|
dnl AC_FUNC_MALLOC |
23 |
|
|
dnl AC_CHECK_FUNCS([gethostbyname getmntent getmntinfo getpagesize inet_ntoa memmove memset socket strchr strdup strncasecmp strrchr strtol uname]) |
24 |
|
|
|
25 |
|
|
AC_CANONICAL_HOST |
26 |
|
|
|
27 |
|
|
case $host_os in |
28 |
|
|
solaris2.*) |
29 |
|
|
AC_DEFINE(SOLARIS, , [Building on Solaris 2.x]) |
30 |
|
|
LDFLAGS="$LDFLAGS -lnsl -lsocket -lkstat" |
31 |
|
|
;; |
32 |
|
|
freebsd4.*) |
33 |
|
|
AC_DEFINE(FREEBSD, , [Building on FreeBSD 4.x]) |
34 |
|
|
LDFLAGS="$LDFLAGS -lkvm" |
35 |
|
|
;; |
36 |
|
|
linux-gnu) |
37 |
|
|
AC_DEFINE(LINUX, , [Building on GNU/Lunix]) |
38 |
|
|
;; |
39 |
|
|
*) |
40 |
|
|
AC_MSG_ERROR([Cannot build on unknown OS: $build_os]) |
41 |
|
|
;; |
42 |
|
|
esac |
43 |
|
|
|
44 |
tdb |
1.2 |
AC_ARG_WITH([pid-file], AC_HELP_STRING([--with-pid-file=FILE],[location of PID file (default: /var/tmp/.ihost.pid)]), [pid_file=$withval], [pid_file=[/var/tmp/.ihost.pid]]) |
45 |
|
|
AC_DEFINE_UNQUOTED([PID_FILE], ["$pid_file"], [Location of PID file]) |
46 |
|
|
|
47 |
|
|
AC_ARG_WITH([max-udp-size], AC_HELP_STRING([--with-max-udp-size=SIZE],[maximum size of UDP packets in kilobytes (default: 8192kb)]), [max_udp_size=$withval], [max_udp_size=[8192]]) |
48 |
|
|
AC_DEFINE_UNQUOTED([UDP_MAX_PACKET_SIZE], [$max_udp_size], [Maximum size of UDP packets in kilobytes]) |
49 |
|
|
|
50 |
tdb |
1.1 |
AC_CONFIG_FILES([Makefile libstatgrab/Makefile libukcprog/Makefile]) |
51 |
|
|
|
52 |
|
|
AC_OUTPUT |