# awk isn't there it can't be found.
awk_check()
{
- if test -z "`type awk 2>&1 | awk '/not found/'`"; then
+ if test -z "`type awk | awk '/not found/'`"; then
infomsg "awk : Found"
else
warningmsg "awk : Not found!"
gnugettext_check()
{
- TEST=`type gettext | awk '/not found/' 2> /dev/null`
+ TEST=`type gettext | awk '/not found/'`
if test -z "$TEST"; then
if test -n "$(gettext --version 2>&1 | awk '/unknown option/')"; then
infomsg "GNU gettext : Not found"
gettext_check()
{
- if test -n "`type getext 2>/dev/null`"; then
+ if test -z "`type getext | awk '/not found/'`"; then
infomsg "gettext : Found"
else
infomsg "gettext : Not Found"
libmicrohttpd_check()
{
- # TMPFILE=`mktemp /tmp/mhd-version-testXXXXXX`
TMPFILE="bugreport-test_lmhd.c"
cat - >$TMPFILE <<EOF
#include <microhttpd.h>
glpk_check()
{
- # TMPFILE=`mktemp /tmp/glpk-version-testXXXXXX`
TMPFILE="bugreport-glpk_check.c"
cat - >$TMPFILE <<EOF
#include <glpk.h>
gnutls_check()
{
- # TMPFILE=`mktemp /tmp/gnutls-version-testXXXXXX`
TMPFILE="bugreport-gnutls_check.c"
cat - >$TMPFILE <<EOF
#include <gnutls/gnutls.h>
echo "CPPFLAGS='-I/usr/pkg/include' LDFLAGS='-L/usr/pkg/lib' ${progname}"
return 0
fi
- #echo $LDFLAGS
- #echo $CPPFLAGS
infomsg "${progname} 0.11.0"
infomsg
infomsg "Please submit the following"