From xemacs-m  Thu Jun  5 15:06:26 1997
Received: from fhat.stat.sc.edu (fhat.stat.sc.edu [129.252.16.71])
	by xemacs.org (8.8.5/8.8.5) with SMTP id PAA17562
	for <xemacs-beta@xemacs.org>; Thu, 5 Jun 1997 15:06:25 -0500 (CDT)
Received: (from rossini@localhost) by fhat.stat.sc.edu (8.6.12/8.6.12) id JAA28434; Thu, 5 Jun 1997 09:35:03 -0400
To: Martin Buchholz <mrb@Eng.Sun.COM>
Cc: xemacs-beta@xemacs.org
Subject: Re: library searching with configure...
References: <wnc67vyq9ks.fsf@fhat.stat.sc.edu> <199706051025.DAA09437@xemacs.eng.sun.com>
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Anthony Rossini <rossini@stat.sc.edu>
Date: 05 Jun 1997 09:25:01 -0400
In-Reply-To: Martin Buchholz's message of Thu, 5 Jun 1997 03:25:04 -0700
Message-ID: <wncoh9lfahe.fsf@fhat.stat.sc.edu>
Lines: 64
X-Mailer: Gnus v5.4.52/XEmacs 20.2
X-Face:  -<j)glPpyMxjjYa%o`Fl{cZ`VPI-#@E3@_s,TY%)xt`pIu^@MS+d9}>JZ8Fs2;tGK&eaV#.
 U#%d52]n51?][w92.tu+>13)STQ<hSb<b4ZL..rXV*s"Q=otWH?q*M"M|L|O!-[dHa)vx!@i2#+8l~
 fR]Pl&IMU=8";|)Sq-|;x#p]HL~oERC+JI


>>>>> "Martin" == Martin Buchholz <mrb@Eng.Sun.COM> writes:

>>>>> "Anthony" == Anthony Rossini <rossini@stat.sc.edu> writes:
    Anthony> Strange things in configure (well, I was being stupid
    Anthony> (i.e. it's the setup), but it's worth noting):

    Anthony> If you (I!) do something silly, like put libgdbm in the
    Anthony> X11R6.3 heirarchy (there was a reason, I swear), then
    Anthony> configure will find -lgdbm there, and report it present,
    Anthony> but won't add the X11R6.3 library path for building in
    Anthony> lib-src.

    Martin> The idea is to keep the X libs and ld flags separate from
    Martin> the non-X flags.  Perhaps we should *always* use the X11
    Martin> -L flags, but only include the X11 -l flags selectively,
    Martin> to avoid this problem?  I think I've talked myself into
    Martin> this solution. .... hack,hack.hack, ok., "fixed" in beta5
    Martin> (although someone will complain about the "extra"
    Martin> directories searched by the compiler and linker).

Hmm... I'm not sure it's as big as a problem as you make it -- it's
more of a "stupid user tricks" problem...  I should not have put it
there, but I did...  Also, probably don't want to look at the extra
directories, to cover broken user configs?  

I was thinking that it might've been possible to check, using
configure, the location of the directory, and then if non-standard
(yikes, that's getting me into a mess, but I mean not included up to
this point), including it where the dbm/gdbm would be included...

But I'm still a bit clueless on configure...

    Anthony> On a Solaris 2.5 system, compiling with the plain
    Anthony> X11R6.3, there seems to be no way to avoid /lib/dt
    Anthony> inclusion.  I'd like to, but only since I like things to
    Anthony> stay nearly the same between my Linux and Solaris
    Anthony> configurations...

    Martin> Any suggestion for fixing this without removing the
    Martin> current user-friendliness?  You can certainly use
    Martin> site-libraries, site-includes, and site-runtime-libraries
    Martin> to override any other dirs used by configure, and use
    Martin> explicit options to undo the autodetection of things
    Martin> configure would have found in /usr/dt.  This is probably a
    Martin> good enough solution in practice.

I'll look into it when I do another compile (and post a solution if I
find one).  This is probably the best thing, and to include a note in
the documentation somewhere...

    Martin> Besides, if you don't want to use /usr/dt, why not just do
    Martin> mv /usr/dt /usr/I-dont-care-about-dt and see what
    Martin> breaks...

I'm not root (only have control over non /usr filespace...)... :-(.
(at least not until I convert this SS20 into a sparclinux box...).

best,

-- 
-tony (Anthony Rossini)	           Statistics Dept., U South Carolina
rossini@stat.sc.edu	           Columbia, SC 29208
http://www.stat.sc.edu/~rossini/   803-777-3578(O) 803-777-4048 (fax)  
        "'Bother,' said Pooh, as Cthulu rose up and ate him."

