aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2011-06-11 16:40:10 +0000
committerGravatar Uoti Urpala <uau@mplayer2.org>2011-07-06 10:00:36 +0300
commit27a718d920e639ebbceea847fdbaf57d587a778a (patch)
tree2f06fad02fd1b56d9c3f58a9b5b8b2144508be4d
parent1054f89404cea0f0d2ae511dc87180a00c51c9de (diff)
configure: only set NEED_GLOB on Windows
Only set NEED_GLOB on Windows, as currently this has the effect of compiling win32-only code - and even if that compiled it would not be used anyway, since mf.c uses glob under "#if defined(HAVE_GLOB) || defined(__MINGW32__)". git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33587 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-xconfigure7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure b/configure
index fd890c1e34..65e997baf7 100755
--- a/configure
+++ b/configure
@@ -3504,12 +3504,15 @@ echores "$_gettimeofday"
echocheck "glob()"
_glob=no
statement_check glob.h 'glob("filename", 0, 0, 0)' && _glob=yes
+need_glob=no
if test "$_glob" = yes ; then
def_glob='#define HAVE_GLOB 1'
- need_glob=no
else
def_glob='#undef HAVE_GLOB'
- need_glob=yes
+ # HACK! need_glob currently enables compilation of a
+ # win32-specific glob()-replacement.
+ # Other OS neither need it nor can they use it (mf:// is disabled for them).
+ win32 && need_glob=yes
fi
echores "$_glob"