summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-05-07 21:34:56 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-05-07 21:34:56 +0000
commitc12922d678e72af7a1773aac7285f613881961b7 (patch)
tree640448b50658c5044ec18ec6f9a20f23d90495bf
parent31886434cd7bcbf43fbb270cc4348a6c8a374b0c (diff)
downloadmpv-c12922d678e72af7a1773aac7285f613881961b7.tar.bz2
mpv-c12922d678e72af7a1773aac7285f613881961b7.tar.xz
Add -framework Carbon to LDFLAGS when Mac OS X finder or bundle is enabled.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29274 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-xconfigure10
1 files changed, 8 insertions, 2 deletions
diff --git a/configure b/configure
index 910c560878..ce73971149 100755
--- a/configure
+++ b/configure
@@ -3809,13 +3809,19 @@ if darwin; then
echocheck "Mac OS X Finder Support"
def_macosx_finder='#undef CONFIG_MACOSX_FINDER'
-test "$_macosx_finder" = yes && def_macosx_finder='#define CONFIG_MACOSX_FINDER 1'
+if test "$_macosx_finder" = yes ; then
+ def_macosx_finder='#define CONFIG_MACOSX_FINDER 1'
+ extra_ldflags="$extra_ldflags -framework Carbon"
+fi
echores "$_macosx_finder"
echocheck "Mac OS X Bundle file locations"
def_macosx_bundle='#undef CONFIG_MACOSX_BUNDLE'
test "$_macosx_bundle" = auto && _macosx_bundle=$_macosx_finder
-test "$_macosx_bundle" = yes && def_macosx_bundle='#define CONFIG_MACOSX_BUNDLE 1'
+if test "$_macosx_bundle" = yes ; then
+ def_macosx_bundle='#define CONFIG_MACOSX_BUNDLE 1'
+ extra_ldflags="$extra_ldflags -framework Carbon"
+fi
echores "$_macosx_bundle"
echocheck "Apple Remote"