Skip Menu |
 

To: krb5-bugs@MIT.EDU
Subject: $(PURE) in krb5-config output
Date: Mon, 13 Jan 2003 16:56:17 -0500
From: Ezra Peisach <epeisach@MIT.EDU>
Download (untitled) / with headers
text/plain 2.6KiB

------- Forwarded Message

Replied: Mon, 13 Jan 2003 16:55:59 -0500
Return-Path: <kenh@cmf.nrl.navy.mil>
Received: from po12.mit.edu by po12.mit.edu (8.12.4/4.7) id h0DKnHvP025457; Mon, 13 Jan 2003 15:49:33 -0500 (EST)
Received: (from mdefang@localhost)
by po12.mit.edu (8.12.4/8.12.4/Submit) id h0DKnFUg025400
for <epeisach@PO12.LOCAL>; Mon, 13 Jan 2003 15:49:15 -0500 (EST)
Received: from ginger.cmf.nrl.navy.mil (ginger.cmf.nrl.navy.mil [134.207.10.161])
by pacific-carrier-annex.mit.edu (8.9.2/8.9.2) with ESMTP id PAA12208
for <krbcore@mit.edu>; Mon, 13 Jan 2003 15:49:05 -0500 (EST)
Received: from cmf.nrl.navy.mil (elvis.cmf.nrl.navy.mil [134.207.10.38])
(authenticated bits=0)
by ginger.cmf.nrl.navy.mil (8.12.5/8.12.5) with ESMTP id h0DKn2qD018743
for <krbcore@mit.edu>; Mon, 13 Jan 2003 15:49:03 -0500 (EST)
Message-Id: <200301132049.h0DKn2qD018743@ginger.cmf.nrl.navy.mil>
To: krbcore@MIT.EDU
Subject: $(PURE) in krb5-config output
X-Face: "Evs"_GpJ]],xS)b$T2#V&{KfP_i2`TlPrY$Iv9+TQ!6+`~+l)#7I)0xr1>4hfd{#0B4
WIn3jU;bql;{2Uq%zw5bF4?%F&&j8@KaT?#vBGk}u07<+6/`.F-3_GA@6Bq5gN9\+s;_d
gD\SW #]iN_U0 KUmOR.P<|um5yP<ea#^"SJK;C*}fMI;Mv(aiO2z~9n.w?@\>kEpSD@*e`
Date: Mon, 13 Jan 2003 15:49:02 -0500
From: Ken Hornstein <kenh@cmf.nrl.navy.mil>
X-Spam-Score: 0.8, Required 7.5
X-Virus-Scanned: NAI Completed
X-Scanned-By: MIMEDefang 2.28 (www . roaringpenguin . com / mimedefang)
X-Scanned-By: MIMEDefang 2.24 (www . roaringpenguin . com / mimedefang)
X-Spam-Flag: NO

So, I've been trying to use krb5-config in my Autoconf scripts for various
programs/packages (like the afs-krb5 migration kit). For the most part,
it works well, except one problem.

Under Solaris (and, apparantly, SunOS), the libs options output by krb5-config
is as follows:

$(PURE) -L/usr/krb5/lib -R/usr/krb5/lib -lkrb5 -lk5crypto -lcom_err -lgen

The problem here is that the $(PURE) is messing me up. I can't just
add this to LIBS in my autoconf script, because then other autoconf
tests fail with problems like this:

configure:2356: cc -o conftest -O -I/usr/krb5/include -I/usr/afsws/include con
ftest.c $(PURE) -L/usr/krb5/lib -R/usr/krb5/lib -lkrb5 -lk5crypto -lcom_err -lg
en /usr/afsws/lib/afs/util.a >&5
ld: fatal: file $(PURE): open failed: No such file or directory

Yes, I can leave LIBS alone and use another variable and just combine
them in the Makefile, but that makes it hard to add Kerberos to
third-party applications. Comments on the right thing to do? Perhaps
the best thing is to add an additional sed statement to krb5-config to
also edit out $(PURE) like is done now for $(CC) (but that sucks for
people who are using current krb5-config scripts under Solaris).

- --Ken

------- End of Forwarded Message
From: epeisach@mit.edu
Subject: CVS Commit
* Makefile.in (check-unix): Test to see if krb5-config outputs
variables that require Makefile substitutions.

* krb5-config.in: Remore $(PURE) from output. Handle variables
$(RPATH_FLAG) and $(LDFLAGS).

If config/shlib.conf is changed again, we will detect brokeness in
krb5-config before the release.


To generate a diff of this commit:



cvs diff -r5.393 -r5.394 krb5/src/ChangeLog
cvs diff -r1.130 -r1.131 krb5/src/Makefile.in
cvs diff -r5.3 -r5.4 krb5/src/krb5-config.in