From c12922d678e72af7a1773aac7285f613881961b7 Mon Sep 17 00:00:00 2001 From: diego Date: Thu, 7 May 2009 21:34:56 +0000 Subject: 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 --- configure | 10 ++++++++-- 1 file 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" -- cgit v1.2.3