[PATCH] better ldap,krb5,ads detection (fix bug #125)

Steve Langasek vorlon at netexpress.net
Mon Jul 7 14:34:24 GMT 2003


On Mon, Jul 07, 2003 at 02:15:02PM +0200, Stefan (metze) Metzmacher wrote:
> >If you mean the CFLAGS issue, it's this: if CFLAGS is set in the
> >environment when running ./configure (it is for us), the contents of
> >CFLAGS are copied into the output of krb5-config.  This gives:
> >
> >KRB5LIBS= -L/usr/lib -gstabs -Wall -O2 -lgssapi_krb5 -lkrb5 -lk5crypto 
> >-lcom_err -lresolv
> >
> >which is clearly wrong; none of the -gstabs -Wall -O2 belong in this
> >list.  The fix is to use the line I mentioned above, which clears the
> >CFLAGS variable when calling krb5-config.
> 
> ac_save_CFLAGS=$CFLAGS
> CFLAGS=""
> KRB5_LIBS="$KRB5-CONFIG --libs gssapi"
> CFLAGS=$ac_sava_CFLAGS

> will do the trick right?

with an export CFLAGS first, it should.

ac_save_CFLAGS="$CFLAGS"
CFLAGS=""
export CFLAGS
KRB5_LIBS="`$KRB5-CONFIG --libs gssapi`"
CFLAGS="$ac_save_CFLAGS"

I don't think the other flags (LDFLAGS, etc.) should matter.

-- 
Steve Langasek
postmodern programmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20030707/2aea79d4/attachment.bin


More information about the samba-technical mailing list