Move BeOS extralibs handling into configure.
authorDiego Biurrun <diego@biurrun.de>
Wed, 15 Nov 2006 01:36:16 +0000 (01:36 +0000)
committerDiego Biurrun <diego@biurrun.de>
Wed, 15 Nov 2006 01:36:16 +0000 (01:36 +0000)
Originally committed as revision 7082 to svn://svn.ffmpeg.org/ffmpeg/trunk

Makefile
configure

index 74f6ad2..fd0dfd7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -35,10 +35,6 @@ ALLPROGS=$(addsuffix $(EXESUF), $(BASENAMES))
 ALLPROGS_G=$(addsuffix _g$(EXESUF), $(BASENAMES))
 ALLMANPAGES=$(addsuffix .1, $(BASENAMES))
 
-ifeq ($(CONFIG_AUDIO_BEOS),yes)
-EXTRALIBS+=-lmedia -lbe
-endif
-
 ifeq ($(BUILD_SHARED),yes)
 DEP_LIBS=libavcodec/$(SLIBPREF)avcodec$(SLIBSUF) libavformat/$(SLIBPREF)avformat$(SLIBSUF)
 else
index 41104a0..bab6082 100755 (executable)
--- a/configure
+++ b/configure
@@ -1540,6 +1540,10 @@ if enabled vhook; then
     check_ldflags -export-dynamic
 fi
 
+if enabled audio_beos; then
+    add_extralibs "-lmedia -lbe"
+fi
+
 ##########################################
 # imlib check