X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/76ddfab4d76264b1cb30d7df642965c141e61545..7954d390e513ce305c0716d448e8002d73dd4da9:/docs/contrib/build_nmh diff --git a/docs/contrib/build_nmh b/docs/contrib/build_nmh index 0b9e582e..cb2265cb 100755 --- a/docs/contrib/build_nmh +++ b/docs/contrib/build_nmh @@ -41,11 +41,6 @@ # rpm-build, with -r -#### -#### OS-specific setup. -#### -ldd=ldd - #### #### Interpret command arguments. #### @@ -149,12 +144,19 @@ if install-mh -check >/dev/null 2>&1; then fi fi - if $ldd "$mhbin/inc" | grep sasl >/dev/null; then - config_sasl=y - fi - - if $ldd "$mhbin/inc" | 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 + echo "$0: -y not supported with currently installed nmh" + exit 1 + fi fi fi @@ -307,14 +309,14 @@ if [ $status -eq 0 ]; then fi fi -grep 'Error' "$logfile" -#### Ignore the warning when sbr/dtimep.c is built with flex 2.5.36 -#### or 2.5.37. -grep 'warn' "$logfile" | grep -v 'sbr/dtimep.c:.*-Wsign-compare' -if [ $status -ne 0 ]; then +grep Error "$logfile" +grep warn "$logfile" + +if [ $status -eq 0 ]; then + [ $verbose -ge 1 ] && echo build completed successfully +else echo build failed! echo build log is in "$logfile" fi -[ $status -eq 0 -a $verbose -ge 1 ] && echo build completed successfully exit $status