3 41e0f84c 2005-02-02 devnull [ -f $PLAN9/config ] && . $PLAN9/config
5 41e0f84c 2005-02-02 devnull if [ "x$X11" = "x" ]; then
6 41e0f84c 2005-02-02 devnull if [ -d /usr/X11R6 ]; then
7 41e0f84c 2005-02-02 devnull X11=/usr/X11R6
8 41e0f84c 2005-02-02 devnull elif [ -d /usr/local/X11R6 ]; then
9 41e0f84c 2005-02-02 devnull X11=/usr/local/X11R6
10 4d0bbfac 2005-07-13 devnull elif [ -d /usr/X ]; then
11 4d0bbfac 2005-07-13 devnull X11=/usr/X
12 4d0bbfac 2005-07-13 devnull elif [ -d /usr/openwin ]; then # for Sun
13 4d0bbfac 2005-07-13 devnull X11=/usr/openwin
15 41e0f84c 2005-02-02 devnull X11=noX11dir
19 41e0f84c 2005-02-02 devnull if [ "x$WSYSTYPE" = "x" ]; then
20 41e0f84c 2005-02-02 devnull if [ -d "$X11/include" ]; then
21 41e0f84c 2005-02-02 devnull WSYSTYPE=x11
23 41e0f84c 2005-02-02 devnull WSYSTYPE=nowsys
27 41e0f84c 2005-02-02 devnull echo 'WSYSTYPE='$WSYSTYPE
28 41e0f84c 2005-02-02 devnull echo 'X11='$X11
30 b90bacec 2005-02-11 devnull if [ $WSYSTYPE = x11 ]; then
31 031c9000 2005-02-11 devnull echo 'CFLAGS=$CFLAGS -I$X11/include'
32 41e0f84c 2005-02-02 devnull echo 'HFILES=$HFILES $XHFILES'