2 cd ${0%/*} ||
exit 1 # run from this directory
4 unset COMP_FLAGS LINK_FLAGS
7 # use readline if available
8 # unless otherwise specified (with NO_READLINE)
10 # eg, ./Allwmake NO_READLINE
13 if [ -f /usr
/include
/readline
/readline.h
-a "${1%NO_READLINE}" = "$1" ]
15 echo "Found <readline/readline.h> -- enabling readline support."
16 export COMP_FLAGS
="-DHAS_READLINE"
17 export LINK_FLAGS
="-lreadline -lncurses"
22 # ----------------------------------------------------------------- end-of-file