#!/bin/sh
#
# Nessus libraries configuration script
#
# braindeath from the gtk world. ugh.
#
# fake the funk. dugsong@monkey.org

VERSION=0.98.3

LIBDIR=w00w00nessus-libraries
COREDIR=w00w00nessus-core

CFLAGS="-DENABLE_CRYPTO_LAYER -DUSE_ZLIB_COMPRESSION "

INCS="-I$COREDIR/include -I$LIBDIR/include -I$LIBDIR/cipher"

LIBS="-L$LIBDIR/libnessus/.libs -lnessus -L$LIBDIR/libhosts_gatherer/.libs -lhosts_gatherer -L$LIBDIR/cipher/.libs -lpeks -lpcap -lz -lgmp -lresolv"

usage()
{
 echo "Usage : nessus-config [ --cflags | --libs | --version ]"
 exit $1
}


test $# -gt 0 || usage 1

# check whether we have echo -n, depending
# on the current shell, used
case `echo -n` in
\-n)	Xn=   ; Xc='\c' ;;
*)	Xn=-n ; Xc=
esac

while test $# -gt 0; do
 case "$1" in
	--version)
		echo $VERSION
		exit 0
		;;
	--libs)
	
		echo $Xn "$LIBS $Xc"
		;;
	--cflags)
		echo $Xn "$CFLAGS $INCS $Xc"
		;;
	--help | -h)
		usage 0
		;;
	*)
		usage 1
		;;
 esac
 shift
done

echo 	
	
