autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting the file extension of a shared object


From: Peter O'Gorman
Subject: Re: getting the file extension of a shared object
Date: Mon, 22 Jun 2009 12:13:23 -0500
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

David Fang wrote:

> 
> SHREXT=$shrext_cmds
> AC_SUBST(SHREXT)

shrext_cmds needs to be eval'ed, on darwin it is:

shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'

So, depending on whether you want the extension for a loadable module or
a shared lib, you can do like ltdl:
module=yes
eval libltdl_cv_shlibext=$shrext_cmds

Or similarly but setting 'module=no' first.

Peter
-- 
Peter O'Gorman
http://pogma.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]