summaryrefslogtreecommitdiff
path: root/apps/JAWS/clients/WebSTONE/src/configure.in
blob: 449a6a16cef384621fa8740c7a5047e444f439e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# configure.in
# Configure template for WebStone
# Process this file with autoconf to produce a configure script.
#
# This file and all files contained in this directory are 
# copyright 1995, Silicon Graphics, Inc.
# 
# This software is provided without support and without any obligation on the 
# part of Silicon Graphics, Inc. to assist in its use, correction, modification
# or enhancement. There is no guarantee that this software will be included in 
# future software releases, and it probably will not be included.
#
# THIS SOFTWARE IS PROVIDED "AS IS" WITH NO WARRANTIES OF ANY KIND INCLUDING  
# THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR  
# PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. 
#
# In no event will Silicon Graphics, Inc. be liable for any lost revenue or 
# profits or other special, indirect and consequential damages, even if 
# Silicon Graphics, Inc. has been advised of the possibility of such damages. 

AC_INIT(webclient.c)
AC_CONFIG_HEADER(config.h)
PRODUCT=webstone
VERSION=2.0b6
AC_DEFINE_UNQUOTED(PRODUCT, "$PRODUCT")
AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
AC_SUBST(PRODUCT)
AC_SUBST(VERSION)
AC_PREFIX_DEFAULT(bin)

# set system type
AC_CANONICAL_SYSTEM

#
# checks for programs
#
AC_PROG_CC
AC_PROG_MAKE_SET
AC_PROG_AWK


# We use a path for perl so the #! line in bin/wscollect.pl will work.
AC_PATH_PROG(PERL, perl, no)
AC_SUBST(PERL)
AC_SUBST(PERL_SCRIPTS)
if test "$PERL" != no; then
  PERL_SCRIPTS="bin/wscollect.pl"
else
  AC_MSG_WARN(Some functions may work correctly, since perl was not found)
fi

#
# checks for libraries
#
# Replace `main' with a function in -lm:
AC_CHECK_LIB(m, floor)
AC_CHECK_LIB(compat, rexec)
AC_CHECK_LIB(ucb, wait3)
AC_CHECK_LIB(socket, connect, AC_SUBST(LIBS), , -lnsl)

#
# checks for header files
#
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(fcntl.h limits.h sgtty.h sys/time.h unistd.h)

#
# checks for typedefs, structures, and compiler characteristics
#
AC_C_CONST
AC_TYPE_SIZE_T
AC_TYPE_SIGNAL
AC_HEADER_TIME
AC_STRUCT_TIMEZONE
AC_TRY_COMPILE([#include <sys/time.h>], 
	[struct timeval thetime; struct timezone thezone; 
	gettimeofday(&thetime, &thezone); ],
	AC_DEFINE(USE_TIMEZONE), )

#
# checks for library functions
#
AC_FUNC_MEMCMP
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
AC_FUNC_WAIT3
AC_CHECK_FUNCS(gethostname gettimeofday select socket strerror)

#
# checks for system services
#

#
# all done
#
AC_OUTPUT(Makefile)
#
# end