components to mhparam(1).
# rpm-build, with -r
-####
-#### OS-specific setup.
-####
-ldd=ldd
-
####
#### Interpret command arguments.
####
fi
fi
- if $ldd "`$mhbin/mhparam libdir`/post" | grep sasl >/dev/null; then
- config_sasl=y
- fi
+ if test -x "$mhbin/mhparam"; then
+ case `$mhbin/mhparam sasl` in
+ *sasl*) config_sasl=y ;;
+ esac
- if $ldd "`$mhbin/mhparam libdir`/post" | grep ssl >/dev/null; then
- config_tls=y
+ case `$mhbin/mhparam tls` in
+ *tls*) config_tls=y ;;
+ esac
fi
fi
#endif
;
+char *sasl =
+#ifdef CYRUS_SASL
+ "cyrus_sasl";
+#else
+ "";
+#endif
+
+char *tls =
+#ifdef TLS_SUPPORT
+ "tls";
+#else
+ "";
+#endif
+
struct proc {
char *p_name;
char **p_field;
{ "libdir", &mhlibdir },
{ "sbackup", &sbackup },
{ "lockmethod", &lockmethod },
+ { "sasl", &sasl },
+ { "tls", &tls },
{ NULL, NULL },
};