Blob
1 #!/bin/sh3 [ -f $PLAN9/config ] && . $PLAN9/config5 if [ "x$X11" = "x" ]; then6 if [ -d /usr/X11R6 ]; then7 X11=/usr/X11R68 elif [ -d /usr/local/X11R6 ]; then9 X11=/usr/local/X11R610 elif [ -d /usr/X ]; then11 X11=/usr/X12 elif [ -d /usr/openwin ]; then # for Sun13 X11=/usr/openwin14 else15 X11=noX11dir16 fi17 fi19 if [ "x$WSYSTYPE" = "x" ]; then20 if [ -d "$X11" ]; then21 WSYSTYPE=x1122 else23 WSYSTYPE=nowsys24 fi25 fi27 if [ "x$WSYSTYPE" = "xx11" -a "x$X11H" = "x" ]; then28 if [ -d "$X11/include" ]; then29 X11H="-I$X11/include"30 else31 X11H=""32 fi33 fi36 echo 'WSYSTYPE='$WSYSTYPE37 echo 'X11='$X1139 if [ $WSYSTYPE = x11 ]; then40 echo 'CFLAGS=$CFLAGS '$X11H41 echo 'HFILES=$HFILES $XHFILES'42 fi