dnl May be overridden by environment variables..
dnl
PROGS="sudo visudo"
-test -n "$MANTYPE" || MANTYPE="man"
-test -n "$mansrcdir" || mansrcdir="."
-test -n "$SUDOERS_MODE" || SUDOERS_MODE=0440
-test -n "$SUDOERS_UID" || SUDOERS_UID=0
-test -n "$SUDOERS_GID" || SUDOERS_GID=0
+: ${MANTYPE='man'}
+: ${mansrcdir='.'}
+: ${SUDOERS_MODE='0440'}
+: ${SUDOERS_UID='0'}
+: ${SUDOERS_GID='0'}
DEV="#"
dnl
with_classic_insults=yes
with_csops_insults=yes
with_env_editor=yes
- test -n "$mansectsu" || mansectsu=8
- test -n "$mansectform" || mansectform=5
+ : ${mansectsu='8'}
+ : ${mansectform='5'}
;;
no) ;;
*) AC_MSG_WARN([Ignoring unknown argument to --with-csops: $with_csops])
if test "$with_AFS" = "yes"; then
AFS_LIBS="-lc -lucb"
fi
- test -n "$mansectsu" || mansectsu=1m
- test -n "$mansectform" || mansectform=4
- test -n "$with_rpath" || with_rpath=yes
+ : ${mansectsu='1m'}
+ : ${mansectform='4'}
+ : ${with_rpath='yes'}
;;
*-*-aix*)
# To get all prototypes (so we pass -Wall)
AC_CHECK_LIB(sec, getprpwnam, AC_DEFINE(HAVE_GETPRPWNAM) [SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1], AC_CHECK_LIB(security, getprpwnam, AC_DEFINE(HAVE_GETPRPWNAM) [SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"; SECUREWARE=1]))
CHECKSHADOW="false"
fi
- test -n "$mansectsu" || mansectsu=1m
- test -n "$mansectform" || mansectform=4
+ : ${mansectsu='1m'}
+ : ${mansectform='4'}
;;
*-*-hpux*)
# AFS support needs -lBSD
if test "$with_AFS" = "yes"; then
AFS_LIBS="-lc -lBSD"
fi
- test -n "$mansectsu" || mansectsu=1m
- test -n "$mansectform" || mansectform=4
+ : ${mansectsu='1m'}
+ : ${mansectform='4'}
case "$host" in
*-*-hpux[1-8].*)
with_passwd=no
AUTH_OBJS="sia.o"
fi
- test -n "$mansectsu" || mansectsu=8
- test -n "$mansectform" || mansectform=4
+ : ${mansectsu='8'}
+ : ${mansectform='4'}
;;
*-*-irix*)
CPPFLAGS="${CPPFLAGS} -D_BSD_TYPES"
if test "$OSREV" -le 4; then
AC_CHECK_LIB(sun, getpwnam, [LIBS="${LIBS} -lsun"])
fi
- test -n "$mansectsu" || mansectsu=1m
- test -n "$mansectform" || mansectform=4
+ : ${mansectsu='1m'}
+ : ${mansectform='4'}
;;
*-*-linux*)
# Some Linux versions need to link with -lshadow
LIBS="${LIBS} -lsun -lbsd"
CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
OSDEFS="${OSDEFS} -D_MIPS"
- test -n "$mansectsu" || mansectsu=1m
- test -n "$mansectform" || mansectform=4
+ : ${mansectsu='1m'}
+ : ${mansectform='4'}
;;
*-*-isc*)
OSDEFS="${OSDEFS} -D_ISC"
AC_CHECK_LIB(sec, getspnam, AC_DEFINE(HAVE_GETSPNAM) [SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"])
CHECKSHADOW="false"
fi
- test -n "$mansectsu" || mansectsu=1m
- test -n "$mansectform" || mansectform=4
+ : ${mansectsu='1m'}
+ : ${mansectform='4'}
;;
*-*-sco*|*-sco-*)
if test "$CHECKSHADOW" = "true"; then
AC_CHECK_LIB(gen, getspnam, AC_DEFINE(HAVE_GETSPNAM) [SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"])
CHECKSHADOW="false"
fi
- test -n "$mansectsu" || mansectsu=1m
- test -n "$mansectform" || mansectform=4
+ : ${mansectsu='1m'}
+ : ${mansectform='4'}
;;
m88k-motorola-sysv*)
# motorolla's cc (a variant of gcc) does -O but not -O2
CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
- test -n "$mansectsu" || mansectsu=1m
- test -n "$mansectform" || mansectform=4
+ : ${mansectsu='1m'}
+ : ${mansectform='4'}
;;
*-sequent-sysv*)
if test "$CHECKSHADOW" = "true"; then
AC_CHECK_LIB(sec, getspnam, AC_DEFINE(HAVE_GETSPNAM) [SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"])
CHECKSHADOW="false"
fi
- test -n "$mansectsu" || mansectsu=1m
- test -n "$mansectform" || mansectform=4
- test -n "$with_rpath" || with_rpath=yes
+ : ${mansectsu='1m'}
+ : ${mansectform='4'}
+ : ${with_rpath='yes'}
;;
*-ncr-sysv4*|*-ncr-sysvr4*)
AC_CHECK_LIB(c89, strcasecmp, AC_DEFINE(HAVE_STRCASECMP) [LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes])
- test -n "$mansectsu" || mansectsu=1m
- test -n "$mansectform" || mansectform=4
- test -n "$with_rpath" || with_rpath=yes
+ : ${mansectsu='1m'}
+ : ${mansectform='4'}
+ : ${with_rpath='yes'}
;;
*-ccur-sysv4*|*-ccur-sysvr4*)
LIBS="${LIBS} -lgen"
SUDO_LIBS="${SUDO_LIBS} -lgen"
- test -n "$mansectsu" || mansectsu=1m
- test -n "$mansectform" || mansectform=4
- test -n "$with_rpath" || with_rpath=yes
+ : ${mansectsu='1m'}
+ : ${mansectform='4'}
+ : ${with_rpath='yes'}
;;
*-*-bsdi*)
SKIP_SETREUID=yes
ac_cv_func_flock=yes
;;
*-*-*sysv4*)
- test -n "$mansectsu" || mansectsu=1m
- test -n "$mansectform" || mansectform=4
- test -n "$with_rpath" || with_rpath=yes
+ : ${mansectsu='1m'}
+ : ${mansectform='4'}
+ : ${with_rpath='yes'}
;;
*-*-sysv*)
- test -n "$mansectsu" || mansectsu=1m
- test -n "$mansectform" || mansectform=4
+ : ${mansectsu='1m'}
+ : ${mansectform='4'}
;;
esac
dnl
dnl Use BSD-style man sections by default
dnl
-test -n "$mansectsu" || mansectsu=8
-test -n "$mansectform" || mansectform=5
+: ${mansectsu='8'}
+: ${mansectform='5'}
dnl
dnl Add in any libpaths or libraries specified via configure