diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 21 |
1 files changed, 21 insertions, 0 deletions
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) | |||
676 | AC_SUBST(EXT_LIB_PATH) | 676 | AC_SUBST(EXT_LIB_PATH) |
677 | 677 | ||
678 | 678 | ||
679 | # test for sudo | ||
680 | AC_MSG_CHECKING(for sudo) | ||
681 | AC_ARG_WITH(sudo, | ||
682 | [ --with-sudo=PATH path to sudo binary (or just yes)], | ||
683 | [AC_MSG_RESULT("$with_sudo") | ||
684 | case $with_sudo in | ||
685 | no) | ||
686 | SUDO_BINARY= | ||
687 | ;; | ||
688 | yes) | ||
689 | SUDO_BINARY=sudo | ||
690 | ;; | ||
691 | *) | ||
692 | SUDO_BINARY=$with_sudo | ||
693 | ;; | ||
694 | esac | ||
695 | ], | ||
696 | [AC_MSG_RESULT([no])]) | ||
697 | AC_SUBST(SUDO_BINARY) | ||
698 | |||
699 | |||
679 | # should 'make check' run tests? | 700 | # should 'make check' run tests? |
680 | AC_MSG_CHECKING(whether to run tests) | 701 | AC_MSG_CHECKING(whether to run tests) |
681 | AC_ARG_ENABLE([testruns], | 702 | AC_ARG_ENABLE([testruns], |