X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=config%2Famanda%2Fuserid.m4;h=7fa2f1d9cdbf17f6242d3f52a9eba9cd137c580c;hb=fd48f3e498442f0cbff5f3606c7c403d0566150e;hp=c659395a51e9fb88516d918dee89fa93290e00c4;hpb=96f35b20267e8b1a1c846d476f27fcd330e0b018;p=debian%2Famanda diff --git a/config/amanda/userid.m4 b/config/amanda/userid.m4 index c659395..7fa2f1d 100644 --- a/config/amanda/userid.m4 +++ b/config/amanda/userid.m4 @@ -29,7 +29,7 @@ AC_DEFUN([AMANDA_DISABLE_INSTALLPERMS], # # Handle the --without-force-id option, which disables userid checks for # all Amanda applications. Defines and substitutes CHECK_USERID *unless* -# this option is given. +# this option is given, and also sets AM_CONDITIONAL CHECK_USERID # AC_DEFUN([AMANDA_WITH_FORCE_UID], [ @@ -52,6 +52,7 @@ AC_DEFUN([AMANDA_WITH_FORCE_UID], AC_MSG_ERROR([*** You must not supply an argument to --with-force-uid option.]) esac AC_SUBST(CHECK_USERID) + AM_CONDITIONAL(CHECK_USERID, test x"$CHECK_USERID" = x"1") ]) # SYNOPSIS @@ -170,7 +171,7 @@ AC_DEFUN([AMANDA_WITH_SINGLE_USERID], [force amanda to run as a single userid (for testing)]), [ SINGLE_USERID=$withval ]) - case "$target" in + case "$host" in *-pc-cygwin) WANT_SETUID_CLIENT=false SINGLE_USERID=yes