| [ -f $PLAN9/config ] && . $PLAN9/config |
| if [ "x$X11" = "x" ]; then |
| if [ -d /usr/X11R6 ]; then |
| elif [ -d /usr/local/X11R6 ]; then |
| elif [ -d /usr/openwin ]; then # for Sun |
| elif [ -d /usr/include/X11 ]; then |
| elif [ -d /usr/local/include/X11 ]; then |
| if [ "x$WSYSTYPE" = "x" ]; then |
| if [ "x$WSYSTYPE" = "xx11" -a "x$X11H" = "x" ]; then |
| if [ -d "$X11/include" ]; then |
| echo 'WSYSTYPE='$WSYSTYPE |
| if [ $WSYSTYPE = x11 ]; then |
| echo 'CFLAGS=$CFLAGS '$X11H |
| echo 'HFILES=$HFILES $XHFILES' |
| XO=`ls x11-*.c 2>/dev/null | sed 's/\.c$/.o/'` |
| echo 'WSYSOFILES=$WSYSOFILES '$XO |
| if [ $WSYSTYPE = nowsys ]; then |
| echo 'WSYSOFILES=nowsys.o' |