gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog macros/ffmpeg.m4 [gnash_0_8_3_branch]


From: Russ Nelson
Subject: [Gnash-commit] gnash ChangeLog macros/ffmpeg.m4 [gnash_0_8_3_branch]
Date: Tue, 03 Jun 2008 19:14:48 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Branch:         gnash_0_8_3_branch
Changes by:     Russ Nelson <nelsonrn>  08/06/03 19:14:47

Modified files:
        .              : ChangeLog 
        macros         : ffmpeg.m4 

Log message:
        * macros/ffmpeg.m4: Previous method for location of ffmpeg
          libraries didn't work on Mandriva.  Current method should be
          more supportable.
        * ..: throw up our hands and give up if we can't autolocate
          avcodec.h; suggest that they use --with-ffmpeg-incl.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=gnash_0_8_3_branch&r1=1.6573.2.45&r2=1.6573.2.46
http://cvs.savannah.gnu.org/viewcvs/gnash/macros/ffmpeg.m4?cvsroot=gnash&only_with_tag=gnash_0_8_3_branch&r1=1.54.2.1&r2=1.54.2.2

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6573.2.45
retrieving revision 1.6573.2.46
diff -u -b -r1.6573.2.45 -r1.6573.2.46
--- ChangeLog   2 Jun 2008 00:15:09 -0000       1.6573.2.45
+++ ChangeLog   3 Jun 2008 19:14:45 -0000       1.6573.2.46
@@ -1,7 +1,16 @@
+2008-06-03 Russ Nelson <address@hidden>
+
+       * macros/ffmpeg.m4: Previous method for location of ffmpeg
+         libraries didn't work on Mandriva.  Current method should be
+         more supportable.
+       * ..: throw up our hands and give up if we can't autolocate
+         avcodec.h; suggest that they use --with-ffmpeg-incl.
+
 2008-06-01 Russ Nelson <address@hidden>
 
-       * Document the problem with the OpenSUSE libffmpeg-api
-         package (installs in /usr/lib64 on a 32-bit machine).
+       * README.opensuse: Document the problem with the OpenSUSE
+         libffmpeg-api package (installs in /usr/lib64 on a 32-bit
+         machine).
 
 2008-05-30 Sandro Santilli <address@hidden>
 

Index: macros/ffmpeg.m4
===================================================================
RCS file: /sources/gnash/gnash/macros/ffmpeg.m4,v
retrieving revision 1.54.2.1
retrieving revision 1.54.2.2
diff -u -b -r1.54.2.1 -r1.54.2.2
--- macros/ffmpeg.m4    22 May 2008 21:23:58 -0000      1.54.2.1
+++ macros/ffmpeg.m4    3 Jun 2008 19:14:47 -0000       1.54.2.2
@@ -22,7 +22,7 @@
   backupLIBS="$LIBS"
   backupCFLAGS="$CFLAGS"
 
-  dnl Look for the header
+  dnl Did they tell us where the header is?
   AC_ARG_WITH(ffmpeg_incl, AC_HELP_STRING([--with-ffmpeg-incl], [directory 
where ffmpeg headers are]), with_ffmpeg_incl=${withval})
   AC_CACHE_VAL(ac_cv_path_ffmpeg_incl,[
     if test x"${with_ffmpeg_incl}" != x ; then
@@ -43,6 +43,7 @@
       else
         AC_MSG_ERROR([${with_ffmpeg_incl} directory contains neither the 
ffmpeg/avcodec.h nor libavcodec/avcodec.h header])
       fi
+      topdir=${with_ffmpeg_incl}
     fi
   ])
 
@@ -114,9 +115,7 @@
   fi
 
   if test x"${ac_cv_path_ffmpeg_incl}" = x; then
-    if test x${cross_compiling} = xno; then
-      AC_CHECK_HEADERS(ffmpeg/avcodec.h, [ac_cv_path_ffmpeg_incl=""])
-    fi
+     AC_MSG_ERROR([Cannot find ffmpeg/avcodec.h.  Use --with-ffmpeg-incl= to 
specify the location of the *directory* holding avcodec.h])
   else
     if echo $avcodec_h | grep -q ffmpeg; then
       AC_DEFINE(HAVE_FFMPEG_AVCODEC_H, 1, [Define if you have avcodec.h 
installed.])
@@ -247,14 +246,13 @@
   fi
 
   AC_MSG_CHECKING([for avformat.h])
-  avformat_h=`echo ${ac_cv_path_ffmpeg_incl} | sed 's/-I//'`
-  if test -f "${avformat_h}/ffmpeg/avformat.h"; then
+  if test -f "${topdir}/ffmpeg/avformat.h"; then
     AC_DEFINE(HAVE_FFMPEG_AVFORMAT_H, 1, [Define if avformat.h is found])
-    avformat_h="${avformat_h}/ffmpeg/avformat.h"
+    avformat_h="${topdir}/ffmpeg/avformat.h"
   else
-    if test -f "${avformat_h}/libavformat/avformat.h"; then
+    if test -f "${topdir}/libavformat/avformat.h"; then
       AC_DEFINE(HAVE_LIBAVFORMAT_AVFORMAT_H, 1, [Define if avformat.h is 
found])
-      avformat_h="${avformat_h}/libavformat/avformat.h"
+      avformat_h="${topdir}/libavformat/avformat.h"
     else
       avformat_h=""
     fi
@@ -263,11 +261,10 @@
 
   dnl look for swscale.h, but ignore versions older than 51.40.3
   if test $ffmpeg_num_version -gt 51403; then
-    swscale_h=`echo ${ac_cv_path_ffmpeg_incl} | sed 's/-I//'`
-    if test -f "${swscale_h}/ffmpeg/swscale.h"; then
+    if test -f "${topdir}/ffmpeg/swscale.h"; then
       AC_DEFINE(HAVE_FFMPEG_SWSCALE_H, 1, [Define if swscale.h is found])
     fi
-    if test -f "${swscale_h}/libswscale/swscale.h"; then
+    if test -f "${topdir}/libswscale/swscale.h"; then
       AC_DEFINE(HAVE_LIBSWSCALE_SWSCALE_H, 1, [Define if swscale.h is found])
     fi
   fi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]