First working version of new event dispatching framwork.
[screen-lua.git] / src / etc / toolcheck
blob1b8ee390d6dd691df64479b37de8c0b5a2079545
1 #!/bin/sh
2 # toolcheck -- check for tools that have severe bugs. Good that all the buggy
3 # tools identify by version numbers. This is the spirit of GNU :-)
5 # 24.7.95 jw.
7 retval=0
8 reply="`sh -version 2>&1 < /dev/null | sed q`"
9 case "$reply" in
10 GNU*1.14.3*)
11 echo "- sh is '$reply'";
12 echo " CAUTION: This shell has a buggy 'trap' command.";
13 echo " The configure script may fail silently.";
14 retval=1;
16 GNU*1.14.2*|GNU*1.14.4*|GNU*1.13.*)
17 echo "- sh is '$reply' - good.";
19 GNU*) echo "- sh is '$reply'.";
21 *) ;;
22 esac
24 reply="`sed --version 2>&1 < /dev/null | sed q`"
25 case "$reply" in
26 GNU\ sed\ version\ 2.0[34])
27 echo "- sed is '$reply'";
28 echo " CAUTION: This sed cannot configure screen properly."
29 retval=1;
31 GNU\ sed\ version\ 2.05|GNU\ sed\ version\ 2.03\ kevin)
32 echo "- sed is '$reply' - good.";
34 GNU*) echo "- sed is '$reply'.";
36 *) ;;
37 esac
39 if [ "$retval" != 0 ]; then
40 echo " ***********************************************************"
41 echo " Please fix the above problem before reporting a screen bug!"
42 echo " ***********************************************************"
44 exit $retval