Hi,

Attached is a m4 macro and an example patch to configure.ac to allow
for the customisation of the libraries install name on OS/X.

As you know libtool adds the install name as $rpath/$soname. On OS/X
(and for distribution within Nuke) we would like this to be
@executable_path/$soname (or similar).

Although we can patch OpenEXR (and associated libraries) independently
it would simplify our efforts if integrated in your repository.

The macro patches libtool locally after creation by the configure
script and provides two options: --enable-installname and
--with-installnameprefix. It was tested with OS/X default autotools on
both Tiger and Leopard.

The defaults will keep your existing configuration unaltered.

Cheers,

Goncalo
? IlmBase.pc
? config.guess
? config.sub
? install-sh
? missing
? patch.txt
? Half/.libs
? Half/eLut
? Half/eLut.h
? Half/half.lo
? Half/libHalf.la
? Half/toFloat
? Half/toFloat.h
? Iex/.libs
? Iex/IexBaseExc.lo
? Iex/IexThrowErrnoExc.lo
? Iex/libIex.la
? IlmThread/.libs
? IlmThread/IlmThread.lo
? IlmThread/IlmThreadMutex.lo
? IlmThread/IlmThreadMutexPosix.lo
? IlmThread/IlmThreadPool.lo
? IlmThread/IlmThreadPosix.lo
? IlmThread/IlmThreadSemaphore.lo
? IlmThread/IlmThreadSemaphorePosix.lo
? IlmThread/IlmThreadSemaphorePosixCompat.lo
? IlmThread/libIlmThread.la
? Imath/.libs
? Imath/ImathBox.lo
? Imath/ImathColorAlgo.lo
? Imath/ImathFun.lo
? Imath/ImathMatrixAlgo.lo
? Imath/ImathRandom.lo
? Imath/ImathShear.lo
? Imath/ImathVec.lo
? Imath/libImath.la
? config/IlmBaseConfig.h
? config/Makefile
? config/Makefile.in
? config/stamp-h1
? m4/install_name.m4
Index: configure.ac
===================================================================
RCS file: /sources/openexr/IlmBase/configure.ac,v
retrieving revision 1.6
diff -u -r1.6 configure.ac
--- configure.ac        9 Oct 2007 22:27:09 -0000       1.6
+++ configure.ac        1 Dec 2007 18:23:56 -0000
@@ -22,6 +22,8 @@
 AC_PROG_LIBTOOL
 AC_PROG_MAKE_SET
 
+AC_CHECK_INSTALLNAME( )
+
 dnl
 dnl PKGCONFIG preparations
 dnl

Attachment: install_name.m4
Description: Binary data

_______________________________________________
Openexr-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/openexr-devel

Reply via email to