ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/ihost/configure.in
Revision: 1.3
Committed: Thu May 30 11:30:07 2002 UTC (21 years, 11 months ago) by tdb
Branch: MAIN
Changes since 1.2: +4 -2 lines
Log Message:
Added the ihostchk.sh script to the build. It will automatically have the
correct path to ihost and the pidfile location put in by the configure
script :)

File Contents

# User Rev Content
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.3 AC_ARG_WITH([pid-file], AC_HELP_STRING([--with-pid-file=FILE],[location of PID file (default: /var/tmp/.ihost.pid)]), [pidfile=$withval], [pidfile=[/var/tmp/.ihost.pid]])
45     AC_DEFINE_UNQUOTED([PID_FILE], ["$pidfile"], [Location of PID file])
46     AC_SUBST([pidfile], [$pidfile])
47 tdb 1.2
48     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]])
49     AC_DEFINE_UNQUOTED([UDP_MAX_PACKET_SIZE], [$max_udp_size], [Maximum size of UDP packets in kilobytes])
50    
51 tdb 1.1 AC_CONFIG_FILES([Makefile libstatgrab/Makefile libukcprog/Makefile])
52 tdb 1.3 AC_CONFIG_FILES([ihostchk.sh], [chmod +x ihostchk.sh])
53 tdb 1.1
54     AC_OUTPUT