On Cygwin, libswscale is needed in VHOOK(SHFLAGS|LIBS) only when
authorVíctor Paesa <victorpaesa@googlemail.com>
Tue, 3 Jul 2007 16:12:55 +0000 (16:12 +0000)
committerVíctor Paesa <victorpaesa@googlemail.com>
Tue, 3 Jul 2007 16:12:55 +0000 (16:12 +0000)
--enable-swscaler is set.

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

configure

index 8be91e1..1d5f66e 100755 (executable)
--- a/configure
+++ b/configure
@@ -1163,8 +1163,12 @@ case $targetos in
     targetos=cygwin
     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
     osextralibs=""
     EXESUF=".exe"
     SLIBPREF="cyg"