2 cd ${0%/*} ||
exit 1 # run from this directory
4 unset COMP_FLAGS LINK_FLAGS
7 # use <sys/inotify.h> if available (Linux)
8 # unless otherwise specified (with USE_STAT)
10 # eg, ./Allwmake USE_STAT
12 if [ -f /usr
/include
/sys
/inotify.h
-a "${1%USE_STAT}" = "$1" ]
14 echo "Found <sys/inotify.h> -- enabling inotify for file monitoring."
15 export COMP_FLAGS
="-DFOAM_USE_INOTIFY"
21 # make (non-shared) object
24 # ----------------------------------------------------------------- end-of-file