summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-05-05 08:46:37 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-05-05 08:46:37 +0000
commit614a0e9800a1781066392c6deaa3dbfc4efd130d (patch)
tree7ad781853914746dfef352ce52de66f5a3f72770
parent271357149a86b9c1ebbcd571cc550b812d413104 (diff)
downloadmpv-614a0e9800a1781066392c6deaa3dbfc4efd130d.tar.bz2
mpv-614a0e9800a1781066392c6deaa3dbfc4efd130d.tar.xz
Simplify Mac OS X Finder and Mac OS X Bundle file locations checks.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29257 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-xconfigure19
1 files changed, 5 insertions, 14 deletions
diff --git a/configure b/configure
index 413eeaca31..9f0202b05b 100755
--- a/configure
+++ b/configure
@@ -3871,23 +3871,14 @@ fi
echores "$_corevideo"
echocheck "Mac OS X Finder Support"
-if test "$_macosx_finder" = yes; then
- def_macosx_finder='#define CONFIG_MACOSX_FINDER 1'
-else
- def_macosx_finder='#undef CONFIG_MACOSX_FINDER'
-fi
+def_macosx_finder='#undef CONFIG_MACOSX_FINDER'
+test "$_macosx_finder" = yes && def_macosx_finder='#define CONFIG_MACOSX_FINDER 1'
echores "$_macosx_finder"
echocheck "Mac OS X Bundle file locations"
-if test "$_macosx_bundle" = auto ; then
- _macosx_bundle=$_macosx_finder
-fi
-if test "$_macosx_bundle" = yes; then
- def_macosx_bundle='#define CONFIG_MACOSX_BUNDLE 1'
-else
- def_macosx_bundle='#undef CONFIG_MACOSX_BUNDLE'
- _macosx_bundle=no
-fi
+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'
echores "$_macosx_bundle"
echocheck "Apple Remote"