if test "$with_AFS" = "yes"; then
AFS_LIBS="-lc -lucb"
fi
- mansectsu=1m
- mansectform=4
+ test -n "$mansectsu" || mansectsu=1m
+ test -n "$mansectform" || mansectform=4
;;
*-*-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
- mansectsu=1m
- mansectform=4
+ test -n "$mansectsu" || mansectsu=1m
+ test -n "$mansectform" || mansectform=4
;;
*-*-hpux1[[0-9]]*)
if test "$CHECKSHADOW" = "true"; then
if test "$with_AFS" = "yes"; then
AFS_LIBS="-lc -lBSD"
fi
- mansectsu=1m
- mansectform=4
+ test -n "$mansectsu" || mansectsu=1m
+ test -n "$mansectform" || mansectform=4
;;
*-*-hpux9*)
AC_DEFINE(BROKEN_SYSLOG)
if test "$with_AFS" = "yes"; then
AFS_LIBS="-lc -lBSD"
fi
- mansectsu=1m
- mansectform=4
+ test -n "$mansectsu" || mansectsu=1m
+ test -n "$mansectform" || mansectform=4
;;
*-*-hpux*)
AC_DEFINE(BROKEN_SYSLOG)
if test "$with_AFS" = "yes"; then
AFS_LIBS="-lc -lBSD"
fi
- mansectsu=1m
- mansectform=4
+ test -n "$mansectsu" || mansectsu=1m
+ test -n "$mansectform" || mansectform=4
;;
*-dec-osf*)
# ignore envariables wrt dynamic lib path
with_passwd=no
AUTH_OBJS="sia.o"
fi
- mansectsu=8
- mansectform=4
+ test -n "$mansectsu" || mansectsu=8
+ test -n "$mansectform" || mansectform=4
;;
*-*-irix*)
CPPFLAGS="${CPPFLAGS} -D_BSD_TYPES"
if test "$OSREV" -le 4; then
AC_CHECK_LIB(sun, getpwnam, [LIBS="${LIBS} -lsun"])
fi
- mansectsu=1m
- mansectform=4
+ test -n "$mansectsu" || mansectsu=1m
+ test -n "$mansectform" || mansectform=4
;;
*-*-linux*)
# To get crypt(3) and vasprintf() prototypes (so we pass -Wall)
LIBS="${LIBS} -lsun -lbsd"
CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
OSDEFS="${OSDEFS} -D_MIPS"
- mansectsu=1m
- mansectform=4
+ test -n "$mansectsu" || mansectsu=1m
+ test -n "$mansectform" || 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
- mansectsu=1m
- mansectform=4
+ test -n "$mansectsu" || mansectsu=1m
+ test -n "$mansectform" || 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
- mansectsu=1m
- mansectform=4
+ test -n "$mansectsu" || mansectsu=1m
+ test -n "$mansectform" || 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
- mansectsu=1m
- mansectform=4
+ test -n "$mansectsu" || mansectsu=1m
+ test -n "$mansectform" || mansectform=4
;;
*-ncr-sysv4*|*-ncr-sysvr4*)
AC_CHECK_LIB(c89, strcasecmp, AC_DEFINE(HAVE_STRCASECMP) [LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes])
- mansectsu=1m
- mansectform=4
+ test -n "$mansectsu" || mansectsu=1m
+ test -n "$mansectform" || mansectform=4
;;
*-ccur-sysv4*|*-ccur-sysvr4*)
LIBS="${LIBS} -lgen"
SUDO_LIBS="${SUDO_LIBS} -lgen"
- mansectsu=1m
- mansectform=4
+ test -n "$mansectsu" || mansectsu=1m
+ test -n "$mansectform" || mansectform=4
;;
*-*-bsdi*)
# Use shlicc for BSD/OS [23].x unless asked to do otherwise
ac_cv_func_flock=yes
;;
*-*-sysv*)
- mansectsu=1m
- mansectform=4
+ test -n "$mansectsu" || mansectsu=1m
+ test -n "$mansectform" || mansectform=4
;;
esac