tdir=$osname-$arch-X11$$ mkdir $tdir; cp Imakefile $tdir; cd $tdir if (xmkmf) >/dev/null 2>&1 && test -f Makefile; then eval `make gp-X11 2> /dev/null | grep -v make` x11pth="$usrlibdir $libdir"; fi cd ..; rm -rf $tdir # Check xmkmf answer # X11 -- Headers if test ! -f $Xincroot/X11/Xos.h; then x11pth="\ /usr/openwin/share/lib\ /usr/openwin/lib\ /usr/X11R6/lib /usr/X11R5/lib /usr/X11R4/lib\ /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4\ /usr/local/X11R6/lib /usr/local/X11R5/lib /usr/local/X11R4/lib\ /usr/local/lib/X11R6 /usr/local/lib/X11R5 /usr/local/lib/X11R4\ /usr/X11/lib\ /usr/lib/X11\ /usr/local/X11/lib\ /usr/local/lib/X11\ /usr/XFree86/lib/X11\ /usr/lib\ /usr/local/lib\ /usr/athena/lib\ "; pth=`echo $x11pth | sed 's,/lib,/include,g'` x=`./locate X11/Xos.h '' $pth` case $x in /*) Xincroot=`echo $x | sed 's,/X11/Xos.h,,'`;; *) Xincroot=;; esac fi # X11 -- Lib pth=$x11pth lib=X11; . ./locatelib if test -f $Xincroot/X11/Xos.h -a -n "$X11"; then case $which_graphic_lib in auto) which_graphic_lib=X11;; esac echo ..."Found X11 header files in $Xincroot/X11" test -n "$extralib" && echo ..."Extra Libraries are $extralib" X11_LIBS="-L$X11 -lX11 $extralib" X11_INC="-I$Xincroot" else echo "### X11 not found" X11= fi