--without-pam disable pam support
--without-shadow disable shadow support
- --without-timestamp disable timestamp support
+ --with-timestamp enable timestamp support
--help, -h display this help and exit
EOF
persistmethod() {
[ -z "$WITHOUT_TIMESTAMP" ] && {
- printf 'CFLAGS += -DPERSIST_TIMESTAMP\n' >>$CONFIG_MK
- printf 'SRCS += persist_timestamp.c\n' >>$CONFIG_MK
+ printf 'CPPFLAGS += -DUSE_TIMESTAMP\n' >>$CONFIG_MK
+ printf 'SRCS += timestamp.c\n' >>$CONFIG_MK
printf 'timestamp\n'
return 0
}
execvpe("", p, p);
return 0;
}'
-check_func "execvpe" "$src" || {
- printf 'OPENBSD += execvpe.o\n' >>$CONFIG_MK
-}
+check_func "execvpe" "$src" || die "system has no execvpe(3): not supported"
#
# Check for setresuid().
setresuid(0, 0, 0);
return 0;
}'
-check_func "setresuid" "$src" || {
- printf 'OPENBSD += setresuid.o\n' >>$CONFIG_MK
-}
+check_func "setresuid" "$src" || die "system has no setresuid(2): not supported"
#
# Check for closefrom().