3 TEST=`type type|grep not`
4 if test -n "$TEST"; then
10 echo "Please submit the following information with your bug report: "
11 echo "--------------------------------------------------------------"
12 OS=`uname -s 2>/dev/null`
14 REL=`uname -r 2>/dev/null`
15 echo "OS RELEASE : $REL"
16 HW=`uname -m 2>/dev/null`
19 TEST=`$WHICH gcc 2>/dev/null`
20 if test -n "$TEST"; then
21 VERS=`gcc --version 2>/dev/null | head -n 1`
24 echo "gcc : Not Found";
27 TEST=`$WHICH gmake 2>/dev/null`
28 if test -n "$TEST" ; then
29 gmake --version 2>/dev/null |\
30 awk -F, '{print $1}' |\
31 awk '/GNU Make/{print "GNU gmake :",$NF}'
33 TEST=`make --version 2>/dev/null`
34 if test -n "$TEST"; then
35 make --version 2>/dev/null |\
36 awk -F, '{print $1}' |\
37 awk '/GNU Make/{print "make :",$NF}'
39 echo "make : Not Found"
43 TEST=`$WHICH autoconf 2>/dev/null`
44 if test -n "$TEST"; then
48 if (length($4) == 0) {\
49 print "autoconf : "$3\
51 print "autoconf : "$4\
54 echo "autoconf : Not Found"
57 TEST=`$WHICH automake 2>/dev/null`
58 if test -n "$TEST"; then
59 automake --version 2>/dev/null |\
61 awk '{print "automake : "$4}'
63 echo "automake : Not Found"
66 TEST=`$WHICH libtool 2>/dev/null`
67 if test -n "$TEST"; then
68 libtool --version 2>/dev/null |\
70 awk '{print "libtool : "$4}'
72 echo "libtool : Not Found"
75 TEST=`$WHICH extract 2>/dev/null`
76 if test -n "$TEST"; then
77 extract -v 2>/dev/null |\
79 awk '{print "libextractor : "$2}'
81 echo "libextractor : Not Found"
84 if test -x gnunetd; then
85 gnunetd -v | sed -e "s/v//" 2>/dev/null |\
86 awk '{print "GNUnet 0.8 : "$2 (may conflict!)}'
88 echo "GNUnet 0.8 : Not Found (good)"
91 TEST=`$WHICH gnunet-arm 2>/dev/null`
92 if test -n "$TEST"; then
93 gnunet-arm -v | sed -e "s/v//" 2>/dev/null |\
94 awk '{print "GNUnet 0.9 : "$2}'
96 echo "GNUnet 0.9 : Not Found"
99 TEST=`$WHICH libgcrypt-config 2> /dev/null`
100 if test -n "$TEST"; then
101 libgcrypt-config --version 2> /dev/null | \
102 awk '{print "libgcrypt : "$1}'
104 echo "libgcrypt : Not Found"
107 TEST=`$WHICH mysql_config 2> /dev/null`
108 if test -n "$TEST"; then
109 mysql_config --version 2> /dev/null | \
110 awk '{print "mysql : "$1}'
112 echo "mysql : Not Found"
115 TEST=`$WHICH pkg-config 2> /dev/null`
116 if test -n "$TEST"; then
117 pkg-config --version 2> /dev/null | \
118 awk '{print "pkg-config : "$1}'
120 echo "pkg-config : Not Found"
123 TEST=`$WHICH pkg-config 2> /dev/null`
124 if test -n "$TEST"; then
125 pkg-config --modversion glib-2.0 2> /dev/null | \
126 awk '{print "glib2 : "$1}'
128 echo "glib2 : Not Found"
131 TEST=`$WHICH pkg-config 2> /dev/null`
132 if test -n "$TEST"; then
133 pkg-config --modversion gtk+-2.0 2> /dev/null | \
134 awk '{print "gtk2+ : "$1}'
136 echo "gtk2+ : Not Found"
139 TEST=`$WHICH dpkg 2> /dev/null`
140 if test -n "$TEST"; then
141 LINES=`dpkg -s libgmp3-dev | grep Version | wc -l`
142 if test "$LINES" = "1"
144 VERSION=`dpkg -s libgmp3-dev | grep Version | awk '{print $2}'`
145 echo "GMP : libgmp3-dev-$VERSION.deb"
147 echo "GMP : dpkg: libgmp3-dev not installed"
150 TEST=`$WHICH rpm 2> /dev/null`
151 if test -n "$TEST"; then
152 rpm -q gmp | sed -e "s/gmp-//" 2> /dev/null | \
153 awk '{print "GMP : "$1.rpm}'
155 echo "GMP : Test not available"
159 TEST=`$WHICH dpkg 2> /dev/null`
160 if test -n "$TEST"; then
161 LINES=`dpkg -s libunistring-dev | grep Version | wc -l`
162 if test "$LINES" = "1"
164 VERSION=`dpkg -s libunistring-dev | grep Version | awk '{print $2}'`
165 echo "libunistring : libunistring3-dev-$VERSION.deb"
167 echo "libunistring : dpkg: libunistring3-dev not installed"
170 TEST=`$WHICH rpm 2> /dev/null`
171 if test -n "$TEST"; then
172 rpm -q unistring | sed -e "s/unistring-//" 2> /dev/null | \
173 awk '{print "libunistring : "$1.rpm}'
175 echo "libunistring : Test not available"
179 TEST=`$WHICH gettext 2> /dev/null`
180 if test -n "$TEST"; then
181 gettext --version | head -n1 2> /dev/null | \
182 awk '{print "GNU gettext : "$4}'
184 echo "GNU gettext : Not found"
188 TEST=`$WHICH curl-config 2> /dev/null`
189 if test -n "$TEST"; then
190 curl-config --version | head -n1 2> /dev/null | \
191 awk '{print "libcurl : "$2}'
193 echo "libcurl : Not found"
196 echo -n "libmicrohttpd : "
197 TMPFILE=`mktemp /tmp/mhd-version-testXXXXXX`
198 cat - >$TMPFILE.c <<EOF
199 #include <microhttpd.h>
203 fprintf (stdout, "%X\n", MHD_VERSION);
208 gcc -o $TMPFILE $TMPFILE.c 2> /dev/null && $TMPFILE || echo "Not found"
209 rm -f $TMPFILE $TMPFILE.bin
212 echo -n "GNU GLPK : "
213 TMPFILE=`mktemp /tmp/glpk-version-testXXXXXX`
214 cat - >$TMPFILE.c <<EOF
219 fprintf (stdout, "%u.%u\n", GLP_MAJOR_VERSION, GLP_MINOR_VERSION);
224 gcc -o $TMPFILE $TMPFILE.c 2> /dev/null && $TMPFILE || echo "Not found"
225 rm -f $TMPFILE $TMPFILE.bin
229 TMPFILE=`mktemp /tmp/gnutls-version-testXXXXXX`
230 cat - >$TMPFILE.c <<EOF
231 #include <gnutls/gnutls.h>
235 fprintf (stdout, "%s\n", GNUTLS_VERSION);
240 gcc -o $TMPFILE $TMPFILE.c 2> /dev/null && $TMPFILE || echo "Not found"
241 rm -f $TMPFILE $TMPFILE.bin
244 echo "--------------------------------------------------------------"