diff options
author | wm4 <wm4@nowhere> | 2013-07-12 18:33:39 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-12 18:33:39 +0200 |
commit | dc95504a52fc09be96a92b6cf2d9643ad4363db6 (patch) | |
tree | a7220deb3eb7cbe198d359c8cf24be25e3f007e5 /configure | |
parent | d176f9571f22bc3b007f97544732698cec85a36e (diff) | |
download | mpv-dc95504a52fc09be96a92b6cf2d9643ad4363db6.tar.bz2 mpv-dc95504a52fc09be96a92b6cf2d9643ad4363db6.tar.xz |
build: change vf_dlopen test
Didn't work on Windows. Apparently, WIN32 is not set in the Makefile.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -2842,6 +2842,18 @@ fi echores "$_encoding" +# needs dlopen on unix, uses winapi on windows +_dlopen="$_dl" +if win32 ; then + _dlopen=yes +fi + +if test "$_dlopen" = yes ; then + def_dlopen='#define CONFIG_DLOPEN 1' +else + def_dlopen='#undef CONFIG_DLOPEN' +fi + ############################################################################# echocheck "compiler support for noexecstack" @@ -2966,6 +2978,7 @@ COREAUDIO = $_coreaudio COREVIDEO = $_corevideo DIRECT3D = $_direct3d DL = $_dl +DLOPEN = $_dlopen SDL = $_sdl SDL2 = $_sdl2 DSOUND = $_dsound @@ -3126,6 +3139,7 @@ $def_libavfilter $def_vf_lavfi $def_af_lavfi +$def_dlopen /* Audio output drivers */ $def_alsa |