]> git.armaanb.net Git - opendoas.git/blobdiff - configure
more precisely describe what happens to the environment without keepenv; OK tedu@
[opendoas.git] / configure
index 1266444b9f3024d4c048bffe5b75c6163f0d81c3..95df243baba743e2d14269b9bae11c2a6b6f8685 100755 (executable)
--- a/configure
+++ b/configure
@@ -27,7 +27,7 @@ usage: configure [options]
   --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
@@ -185,8 +185,8 @@ int main(void) {
 
 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
        }
@@ -326,9 +326,7 @@ int main(void) {
        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().
@@ -339,9 +337,7 @@ int main(void) {
        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().