Ignore:
Timestamp:
Apr 13, 2011 7:13:56 PM (13 years ago)
Author:
bennylp
Message:

Re #1219: added configure option to specify ffmpeg path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/aconfigure.ac

    r3517 r3533  
    785785                AC_SUBST(ac_ffmpeg_ldflags) 
    786786 
     787                FFMPEG_PREFIX="" 
     788                if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then 
     789                        FFMPEG_PREFIX=$with_ffmpeg 
     790                        AC_MSG_RESULT([Using ffmpeg prefix... $FFMPEG_PREFIX]) 
     791                        LIBS="-L$FFMPEG_PREFIX/lib $LIBS" 
     792                        LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS" 
     793                        CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS" 
     794                fi 
     795 
    787796                AC_CHECK_LIB(avdevice, 
    788797                             avdevice_version, 
     
    825834              ) 
    826835 
     836AC_ARG_WITH(ffmpeg, 
     837    AC_HELP_STRING([--with-ffmpeg=DIR], 
     838                   [Specify alternate FFMPEG prefix]), 
     839    [], 
     840    [with_ffmpeg=no] 
     841    ) 
     842 
     843 
    827844dnl # Video for Linux 2 
    828845AC_ARG_ENABLE(v4l2, 
Note: See TracChangeset for help on using the changeset viewer.