Check for libm and link against it (ffmpeg is using sqrt).

Original commit message from CVS:
* configure.ac:
* ext/ffmpeg/Makefile.am:
Check for libm and link against it (ffmpeg is using sqrt).
This commit is contained in:
Stefan Kost 2007-08-01 15:06:44 +00:00
parent 4c6045a04f
commit 8e16a39836
3 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2007-08-01 Stefan Kost <ensonic@users.sf.net>
* configure.ac:
* ext/ffmpeg/Makefile.am:
Check for libm and link against it (ffmpeg is using sqrt).
2007-07-25 Julien MOUTTE <julien@moutte.net> 2007-07-25 Julien MOUTTE <julien@moutte.net>
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_video_frame): * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_video_frame):

View file

@ -83,6 +83,10 @@ AS_PATH_PYTHON([2.1])
dnl *** checks for libraries *** dnl *** checks for libraries ***
dnl check for libm, for sin()
AC_CHECK_LIBM
AC_SUBST(LIBM)
dnl *** checks for header files *** dnl *** checks for header files ***
dnl check if we have ANSI C header files dnl check if we have ANSI C header files

View file

@ -13,7 +13,7 @@ libgstffmpeg_la_SOURCES = gstffmpeg.c \
libgstffmpeg_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \ libgstffmpeg_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \
$(FFMPEG_CFLAGS) $(FFMPEG_CFLAGS)
libgstffmpeg_la_LIBADD = $(FFMPEG_LIBS) $(GST_BASE_LIBS) libgstffmpeg_la_LIBADD = $(FFMPEG_LIBS) $(GST_BASE_LIBS) $(LIBM)
libgstffmpeg_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(DARWIN_LDFLAGS) libgstffmpeg_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(DARWIN_LDFLAGS)
if HAVE_FFMPEG_UNINSTALLED if HAVE_FFMPEG_UNINSTALLED