#!/bin/sh

XMKMF=`which xmkmf`

if test x${XMKMF} = "x/usr/openwin/bin/xmkmf" ; then 
  # OpenWindows
  if test -z "$(OPENWINHOME)" ; then 
    OPENWINHOME=/usr/openwin; 
    export OPENWINHOME;
  fi
  echo "xmkmf"
  xmkmf

elif test x${XMKMF} != "x" ; then 
  # X11
  echo "xmkmf -a"
  xmkmf -a

elif test x${XMKMF} = "x" ; then 
  # No X11
  echo "No X11."
  rm -f Makefile
  cp Makefile.nul Makefile 

fi

#EOF
