- if $ldd "`$mhbin/mhparam libdir`/post" | grep sasl >/dev/null; then
- config_sasl=y
- fi
-
- if $ldd "`$mhbin/mhparam libdir`/post" | grep ssl >/dev/null; then
- config_tls=y
+ if test -x "$mhbin/mhparam"; then
+ if mhparam sasl >/dev/null; then
+ case `$mhbin/mhparam sasl` in
+ *sasl*) config_sasl=y ;;
+ esac
+
+ case `$mhbin/mhparam tls` in
+ *tls*) config_tls=y ;;
+ esac
+ else
+ tput smso
+ echo "$0: SASL and TLS detection not supported with current nmh"
+ [ $yes -eq 1 ] && echo "will not configure either one in"
+ tput rmso
+ fi