Description: Check if we have the grass include and Make files
Author: M. Hamish Bowman <hamish.webmail@gmail.com>

--- a/scripts/g.extension/g.extension
+++ b/scripts/g.extension/g.extension
@@ -75,6 +75,14 @@ if [ "$1" != "@ARGS_PARSED@" ] ; then
   exec g.parser "$0" "$@"
 fi
 
+
+# check if we have the grass include and Make files
+dpkg-query -l grass-dev | grep '^ii' > /dev/null 2> /dev/null
+if [ $? -ne 0 ] ; then
+   g.message -w "This module requires the \"grass-dev\" package"
+fi
+
+
 # definitions
 
 SVNURL_ADDONS="$GIS_OPT_SVNURL"
