coverity 10048
[oweals/gnunet.git] / contrib / report.sh
index aab0c2082c8f0dc0fa150bfcd8848cc9392a9a2e..37a1c41ad0931454cf69e263c264db4d6d4f18e5 100755 (executable)
@@ -81,8 +81,7 @@ else
   echo "libextractor   : Not Found"
 fi
 
-TEST=`$WHICH gnunetd 2>/dev/null`
-if test -n "$TEST"; then
+if test -x gnunetd; then
   gnunetd -v | sed -e "s/v//" 2>/dev/null |\
     awk '{print "GNUnet 0.8     : "$2 (may conflict!)}'
 else
@@ -182,9 +181,20 @@ else
   echo "Qt             : Not found"
 fi
 
-
-
-
+echo -n "MHD            : "
+TMPFILE=`mktemp /tmp/mhd-version-testXXXXXX`
+cat - >$TMPFILE.c <<EOF
+#include <microhttpd.h>
+#include <stdio.h>
+int main()
+{
+  fprintf (stdout, "%X\n", MHD_VERSION);
+  return 0;
+}
+EOF
+
+gcc -o $TMPFILE $TMPFILE.c 2> /dev/null && $TMPFILE || echo "Not found"
+rm -f $TMPFILE $TMPFILE.bin
 
 
 echo "--------------------------------------------------------------"