Re: CC configure (AC_CHECK_LIB macro) problem on Solaris

From: Kinkie <gkinkie_at_gmail.com>
Date: Fri, 4 Jun 2010 21:49:04 +0200

Using 'nm -s' on the lib will reveal what symbols it exports.

On 6/4/10, Markus Moeller <huaraz_at_moeller.plus.com> wrote:
> Also the existing configure. has
>
> AC_CHECK_LIB(lber, main, [LBERLIB="-llber"])
>
> which will fail on Solaris with CC. Do you know which function to check in
> libber ?
>
> Regards
> Markus
>
> "Markus Moeller" <huaraz_at_moeller.plus.com> wrote in message
> news:huba99$tlp$1_at_dough.gmane.org...
>>
>> "Henrik Nordström" <henrik_at_henriknordstrom.net> wrote in message
>> news:1275667169.12858.2.camel_at_henriknordstrom.net...
>>> fre 2010-06-04 klockan 00:19 +0100 skrev Markus Moeller:
>>>> What is the recommended way of doing it as I am adding a module which
>>>> requires library checks and I don't know always what function is best to
>>>> check on ?
>>>
>>> A function you know is implemented by the named library.
>>>
>>
>> That is a bit my problem. For example if I use heimdal kerberos libraries
>> version 1.3.1 I need
>> -lgssapi -lheimntlm -lkrb5 -lhx509 -lcom_err -lcrypto -lasn1 -lwind
>> -lroken
>> -lcrypt -ldl -lresolv -pthread
>> for older 0.7.2 I need
>> -lgssapi -lkrb5 -lasn1 -lcom_err -lcrypto -lroken -lcrypt -ldl -lresolv
>> -pthread
>>
>> but I have no idea for which function I have to test each library for.
>> Luckily most platform use krb5-config to tell me which libraies I need,
>> but for example OpenBSD doesn't.
>>
>>> Note: watch out for macros. Need to be a actual function.
>>>
>>> Regards
>>> Henrik
>>>
>>>
>> Regards
>> Markus
>>
>>
>
>
>

-- 
    /kinkie
Received on Fri Jun 04 2010 - 19:49:20 MDT

This archive was generated by hypermail 2.2.0 : Sat Jun 05 2010 - 12:00:08 MDT