]> diplodocus.org Git - nmh/blobdiff - docs/contrib/build_nmh
Removed dependence of build_nmh on ldd by adding sasl and tls
[nmh] / docs / contrib / build_nmh
index ef399f86be7e9ddc25480a333671fa6ddb81b72a..2aa196ecaae30e6584feef1af3b2c9f60e0e4e0d 100755 (executable)
 #   rpm-build, with -r
 
 
-####
-#### OS-specific setup.
-####
-ldd=ldd
-
 ####
 #### Interpret command arguments.
 ####
@@ -149,12 +144,14 @@ if install-mh -check >/dev/null 2>&1; then
     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
 
@@ -307,15 +304,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:.*comparison between signed and unsigned'
-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