ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/ihost/configure.in
(Generate patch)

Comparing projects/cms/source/ihost/configure.in (file contents):
Revision 1.1 by tdb, Wed May 29 19:41:59 2002 UTC vs.
Revision 1.7 by tdb, Fri May 31 14:34:48 2002 UTC

# Line 1 | Line 1
1 + dnl configure.in for i-scream ihost
2 + dnl $Id$
3 +
4 + dnl Change these to change the package name and version
5   AC_INIT(ihost.c)
6   AM_INIT_AUTOMAKE(ihost, 1.0rc1)
3 dnl AC_CONFIG_SRCDIR([ihost.c])
4 AM_CONFIG_HEADER([config.h])
7  
8 + dnl The file we use to pass #define's to the source
9 + AM_CONFIG_HEADER(config.h)
10 +
11 + dnl We need a CC, install, and ranlib
12   AC_PROG_CC
13   AC_PROG_INSTALL
14   AC_PROG_RANLIB
15  
16 < dnl AC_HEADER_DIRENT
16 > dnl And we probably need the standard C bits
17   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])
18  
19 < 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
19 > dnl The program needs to know whether it can use getloadavg
20   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])
21  
22 + dnl Figure out details about the host - we need the OS
23   AC_CANONICAL_HOST
24  
25 + dnl Default needing setgid kmem to false
26 + AM_CONDITIONAL(SETGIDKMEM, false)
27 +
28 + dnl Set things up for different OS's
29 + dnl We define the name of the OS so the code can act accordingly
30 + dnl We also need to add the right LDFLAGS
31   case $host_os in
32   solaris2.*)
33          AC_DEFINE(SOLARIS, , [Building on Solaris 2.x])
# Line 32 | Line 36 | solaris2.*)
36   freebsd4.*)
37          AC_DEFINE(FREEBSD, , [Building on FreeBSD 4.x])
38          LDFLAGS="$LDFLAGS -lkvm"
39 +        dnl FreeBSD needs ihost to be setgid kmem
40 +        AM_CONDITIONAL(SETGIDKMEM, true)
41          ;;
42   linux-gnu)
43 <        AC_DEFINE(LINUX, , [Building on GNU/Lunix])
43 >        AC_DEFINE(LINUX, , [Building on GNU/Linux])
44          ;;
45   *)
46 <        AC_MSG_ERROR([Cannot build on unknown OS: $build_os])
46 >        AC_MSG_ERROR([Cannot build on unknown OS: $host_os])
47          ;;
48   esac
49  
50 < AC_CONFIG_FILES([Makefile libstatgrab/Makefile libukcprog/Makefile])
50 > dnl Check for the --with-pid-file option
51 > dnl define accordingly for the code, and subst for the scripts
52 > 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]])
53 > AC_DEFINE_UNQUOTED([PID_FILE], ["$pidfile"], [Location of PID file])
54 > AC_SUBST([pidfile], [$pidfile])
55  
56 < AC_OUTPUT
56 > dnl Check for the --with-max-udp-size option
57 > dnl define accordingly for the code
58 > 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]])
59 > AC_DEFINE_UNQUOTED([UDP_MAX_PACKET_SIZE], [$max_udp_size], [Maximum size of UDP packets in kilobytes])
60 >
61 > dnl And finish by changing these files
62 > AC_OUTPUT([Makefile libstatgrab/Makefile libukcprog/Makefile ihostchk.sh], [chmod ugo+x ihostchk.sh])

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines