+have_gpgconf_socketdir=0
+printf "Checking for gpgconf --{create,remove}-socketdir... "
+if gpgconf --dump-options > /dev/null ; then
+ if gpgconf --dump-options | grep -q create-socketdir ; then
+ printf "Yes.\n"
+ have_gpgconf_socketdir=1
+ else
+ printf "No.\n"
+ fi
+else
+ printf "No. (missing or broken gpgconf?)\n"
+fi
+