X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=configure.ac;h=148c827bc93596f0520accde0dd9e6cb3fa975f3;hb=db37bac931cb7b6d7c687c4c9bcec48e35e6080c;hp=c12b2f4142b28434e29178e1da18f3fd68a723e7;hpb=af1933bbcbdf53ddca24012832c0ba32fe712fdc;p=oweals%2Fgnunet.git diff --git a/configure.ac b/configure.ac index c12b2f414..148c827bc 100644 --- a/configure.ac +++ b/configure.ac @@ -676,6 +676,27 @@ AC_SUBST(DLLDIR) AC_SUBST(EXT_LIB_PATH) +# test for sudo +AC_MSG_CHECKING(for sudo) +AC_ARG_WITH(sudo, + [ --with-sudo=PATH path to sudo binary (or just yes)], + [AC_MSG_RESULT("$with_sudo") + case $with_sudo in + no) + SUDO_BINARY= + ;; + yes) + SUDO_BINARY=sudo + ;; + *) + SUDO_BINARY=$with_sudo + ;; + esac + ], + [AC_MSG_RESULT([no])]) +AC_SUBST(SUDO_BINARY) + + # should 'make check' run tests? AC_MSG_CHECKING(whether to run tests) AC_ARG_ENABLE([testruns],