-# if [ -n "$enable_debug" ];then
-# export CFLAGS="-pg $CFLAGS"
-# export LDFLAGS="gnokii/mcount.c $LDFLAGS"
-# fi
+ if [ -n "$stackcheck" ];then
+ export CPPFLAGS="-DSTACKCHECK=$stackcheck $CPPFLAGS"
+ export CFLAGS="$CFLAGS -fno-omit-frame-pointer"
+ fi