summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAnkit Jain <jankit@suse.de>2012-07-18 06:47:07 -0400
committerJeff Layton <jlayton@samba.org>2012-07-18 06:47:07 -0400
commit4e264031d0da7d3f2a287337e86b623e814f5c56 (patch)
tree76c1cdf74e31a4c451851086465595d100bc137e /configure.ac
parentced19dedc0fa7b36087b8eaeef6a6a9dc76aa55e (diff)
downloadcifs-utils-4e264031d0da7d3f2a287337e86b623e814f5c56.tar.gz
cifs-utils-4e264031d0da7d3f2a287337e86b623e814f5c56.tar.bz2
cifs-utils-4e264031d0da7d3f2a287337e86b623e814f5c56.zip
mount.cifs: Use systemd's mechanism for getting password, if present.
If systemd is running and /bin/systemd-ask-password if available, then use that else fallback on getpass(..). And add a --enable-systemd configure option, which defaults to yes. Signed-off-by: Ankit Jain <jankit@suse.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 10c2f67..599401f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -46,6 +46,12 @@ AC_ARG_ENABLE(cifsacl,
enable_cifsacl=$enableval,
enable_cifsacl="maybe")
+AC_ARG_ENABLE(systemd,
+ [AC_HELP_STRING([--enable-systemd],
+ [Enable systemd specific behavior for mount.cifs @<:@default=yes@:>@])],
+ enable_systemd=$enableval,
+ enable_systemd="maybe")
+
# check for ROOTSBINDIR environment var
if test -z $ROOTSBINDIR; then
ROOTSBINDIR="/sbin"
@@ -210,6 +216,10 @@ if test $enable_cifsupcall != "no"; then
AC_CHECK_FUNCS([krb5_auth_con_setaddrs krb5_auth_con_set_req_cksumtype])
fi
+if test $enable_systemd != "no"; then
+ AC_DEFINE(ENABLE_SYSTEMD, 1, [Enable systemd specific behavior for mount.cifs])
+fi
+
# MIT krb5 < 1.7 does not have this declaration but does have the symbol
AC_CHECK_DECLS(krb5_auth_con_set_req_cksumtype, [], [], [#include <krb5.h>])