SL Baur wrote on 7-September-1998:
->Gunnar Evermann <Gunnar.Evermann(a)nats.informatik.uni-hamburg.de> writes in
xemacs-beta(a)xemacs.org:
->
->> I'm not sure whether I should blame configure or our 'strange'
->> installation here.
->
->> I'm using Solaris 2.6 and want to link with Openwindows (which should
->> be the default IMHO)
->
->
->> $OPENWINHOME is /usr/openwin as usual, but a locally compiled X11R6.3
->> is in /usr/X11.
->
->> The result of ./configure is:
->> checking for X... libraries /usr/openwin/lib,
->> headers /usr/X11/include
->
->> (for some reason we have no static X-lib in /usr/X11/lib otherwise
->> x_libraries would be /usr/X11/lib as well).
->
->
->> Is it intentional that /usr/X11 is preferred over /usr/openwin on
->> Solaris by default?
->
->Probably. Same as /usr/dt gets preferred whether it is needed or
->not. You can force /usr/openwin to the front of the path by adding it
->to --site-libraries and --site-includes. You can get rid of /usr/dt
->by editing it out of configure before running it.
Er, Sir Steve, I think the point Gunnar is trying to make is that
/usr/X11 doen't normally exist under Solaris 2.6 - only in his
abnormal local setup where X11R6.3 has been compiled and installed.
Under an "ordinary" 2.6 installation it (/usr/X11) don't exist so
configure shouldn't be looking for it (unless explicitly asked to).
gristle $ uname -a
SunOS gristle 5.6 Generic_105181-06 sun4m sparc SUNW,SPARCstation-5
gristle $ ls -l /usr/X11
/usr/X11: No such file or directory
I don't particularly understand autoconf, so bear with me:
________________________________________________________________________
dnl $OPENWINHOME implies --x-includes and --x-libraries
dnl Not (yet) handled by autoconf2
if test "$x_includes $x_libraries" = "NONE NONE" \
-a -n "$OPENWINHOME" \
-a "$OPENWINHOME" != "/usr/openwin" \
-a -d "$OPENWINHOME"; then
test -d "$OPENWINHOME/lib" &&
x_libraries="$OPENWINHOME/lib"
test -d "$OPENWINHOME/include" &&
x_includes="$OPENWINHOME/include"
test -d "$OPENWINHOME/share/include" &&
x_includes="$OPENWINHOME/share/include"
fi
________________________________________________________________________
Is this line not superfluous: '-a "$OPENWINHOME" != "/usr/openwin"
\'?
Even if $OPENWINHOME==/usr/openwin then surely x_libraries and
x_includes should still be set as above?
Feel free to flame my naïvety...
nic