X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=configure;h=16d37ee8c68d4bba116fe3a3f397447efa3187ff;hb=33e3630671ba6d2ec591fb45ba41af7e09fecf0a;hp=98699daa0dfd6dc7af9165036f5c5ddc6a800585;hpb=5af624acf77da9592443bcfb095b21afaa984404;p=opendoas.git diff --git a/configure b/configure index 98699da..16d37ee 100755 --- a/configure +++ b/configure @@ -228,9 +228,21 @@ src=' int main(void) { return 0; }' -check_func "bsd_auth_h" "$src" || { - printf 'OPENBSD += auth_userokay.c\n' >>$CONFIG_MK -} +check_func "bsd_auth_h" "$src" && \ + have_bsd_auth_h=1 + +# +# Check for pam_appl.h. +# +src=' +#include +int main(void) { + return 0; +}' +[ -z "$have_bsd_auth_h" ] && \ + check_func "pam_appl_h" "$src" && { + printf 'SRCS += doas_pam.c\n' >>$CONFIG_MK + } # # Check for login_cap.h.