]> git.donarmstrong.com Git - lilypond.git/blobdiff - configure.in
* lily/relocate.cc (framework_relocation): New function,
[lilypond.git] / configure.in
index 0c4041fdfaa774838bc8cfc9ce0a357e27dd0cb0..46b6feeb9079016d94eec25d8f8af971c2b275ab 100644 (file)
@@ -38,6 +38,19 @@ AC_ARG_ENABLE(relocation,
     [  --enable-relocation     compile with dynamic relocation.  Default: off],
     [reloc_b=$enableval])
 
+FRAMEWORKDIR=".."
+AC_ARG_WITH(framework-dir,
+    [  --with-framework-dir=DIR
+       relative the optional framework directory],[
+       if test "$withval" = "yes" -o "$withval" = "no"; then
+           AC_MSG_WARN(Usage: --with-framework-dir=../lib/FRAMEWORK/DIR)
+       else
+           FRAMEWORKDIR="${withval}"
+           LDFLAGS="$LDFLAGS -Wl,--rpath,'\$\${ORIGIN}/$FRAMEWORKDIR/lib'"
+       fi
+       ])
+AC_DEFINE_UNQUOTED(FRAMEWORKDIR, ["${FRAMEWORKDIR}"])
+
 LINK_GXX_STATICALLY=no
 AC_ARG_ENABLE(static-gxx,
     [  --enable-static-gxx     link libstdc++.a statically. Default: off],