Changeset 3533


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

Re #1219: added configure option to specify ffmpeg path

Location:
pjproject/branches/projects/2.0-dev
Files:
2 edited

Legend:

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

    r3517 r3533  
    730730enable_sdl 
    731731enable_ffmpeg 
     732with_ffmpeg 
    732733enable_v4l2 
    733734enable_ipp 
     
    14101411                          (hint: use CFLAGS and LDFLAGS env var to set the 
    14111412                          include/lib paths) 
     1413  --with-ffmpeg=DIR       Specify alternate FFMPEG prefix 
    14121414  --with-ipp=DIR          Specify the Intel IPP location 
    14131415  --with-ipp-samples=DIR  Specify the Intel IPP samples location 
     
    59225924 
    59235925 
     5926                FFMPEG_PREFIX="" 
     5927                if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then 
     5928                        FFMPEG_PREFIX=$with_ffmpeg 
     5929                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5 
     5930$as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; } 
     5931                        LIBS="-L$FFMPEG_PREFIX/lib $LIBS" 
     5932                        CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS" 
     5933                fi 
     5934 
    59245935                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&5 
    59255936$as_echo_n "checking for avdevice_version in -lavdevice... " >&6; } 
     
    61846195 
    61856196fi 
     6197 
     6198 
     6199 
     6200# Check whether --with-ffmpeg was given. 
     6201if test "${with_ffmpeg+set}" = set; then : 
     6202  withval=$with_ffmpeg; 
     6203else 
     6204  with_ffmpeg=no 
     6205 
     6206fi 
     6207 
    61866208 
    61876209 
  • 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.