1# $Id: programs.m4,v 12.3 2007/04/18 14:28:19 bostic Exp $
2
3# Check for programs used in building/installation.
4AC_DEFUN(AM_PROGRAMS_SET, [
5
6AC_CHECK_TOOL(CHMOD, chmod, none)
7test "$CHMOD" = "none" && AC_MSG_ERROR([No chmod utility found.])
8
9AC_CHECK_TOOL(CP, cp, none)
10test "$CP" = "none" && AC_MSG_ERROR([No cp utility found.])
11
12# The Tcl test suite requires a kill utility.
13if test "$db_cv_test" = "yes"; then
14	AC_CHECK_TOOL(KILL, kill, none)
15	test "$KILL" = "none" && AC_MSG_ERROR([No kill utility found.])
16fi
17
18AC_CHECK_TOOL(LN, ln, none)
19test "$LN" = "none" && AC_MSG_ERROR([No ln utility found.])
20
21AC_CHECK_TOOL(MKDIR, mkdir, none)
22test "$MKDIR" = "none" && AC_MSG_ERROR([No mkdir utility found.])
23
24AC_CHECK_TOOL(RM, rm, none)
25test "$RM" = "none" && AC_MSG_ERROR([No rm utility found.])
26
27if test "$db_cv_rpc" = "yes"; then
28	AC_CHECK_TOOL(RPCGEN, rpcgen, none)
29	test "$RPCGEN" = "none" && AC_MSG_ERROR([No rpcgen utility found.])
30fi
31
32# We need a complete path for sh, because some make utility implementations get
33# upset if SHELL is set to just the command name.  Don't use the SHELL variable
34# here because the user likely has the SHELL variable set to something other
35# than the Bourne shell, which is what Make wants.
36AC_PATH_TOOL(db_cv_path_sh, sh, none)
37test "$db_cv_path_sh" = "none" && AC_MSG_ERROR([No sh utility found.])
38
39# Don't strip the binaries if --enable-debug was specified.
40if test "$db_cv_debug" = yes; then
41	STRIP=":"
42fi])
43