+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
+
+if [ $WITH_DESKTOP = "1" ]; then
+ printf "Checking if desktop-file-install is available... "
+ if command -v desktop-file-install > /dev/null; then
+ printf "Yes.\n"
+ else
+ printf "No (so will not install .desktop file).\n"
+ WITH_DESKTOP=0
+ fi
+fi
+