Enable swscale in MinGW vhooks only if swscale was configured.
authorRamiro Polla <ramiro.polla@gmail.com>
Sat, 11 Aug 2007 19:51:37 +0000 (19:51 +0000)
committerRamiro Polla <ramiro.polla@gmail.com>
Sat, 11 Aug 2007 19:51:37 +0000 (19:51 +0000)
Copied from Cygwin configure.

Originally committed as revision 10073 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 34e2bebf3168228df61a27214465026d3c373ff4..7c7a5524c8d551050a6cdf74d7af9238116c8bb4 100755 (executable)
--- a/configure
+++ b/configure
@@ -1163,8 +1163,12 @@ case $targetos in
     targetos=mingw32
     shlibdir="$bindir"
     dv1394="no"
-    VHOOKSHFLAGS='-shared -L$(BUILD_ROOT)/libavformat -L$(BUILD_ROOT)/libavcodec -L$(BUILD_ROOT)/libswscale -L$(BUILD_ROOT)/libavutil'
-    VHOOKLIBS='-lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lswscale$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)'
+    VHOOKSHFLAGS='-shared -L$(BUILD_ROOT)/libavformat -L$(BUILD_ROOT)/libavcodec -L$(BUILD_ROOT)/libavutil'
+    VHOOKLIBS='-lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)'
+    if enabled swscaler; then
+        VHOOKSHFLAGS="$VHOOKSHFLAGS -L\$(BUILD_ROOT)/libswscale"
+        VHOOKLIBS="$VHOOKLIBS -lswscale\$(BUILDSUF)"
+    fi
     ffserver="no"
     network="no"
     SLIBPREF=""