Re: getting the file extension of a shared object

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

 



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


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux