1 dnl slurp-ffmpeg.m4 0.1.0
2 dnl a macro to slurp in ffmpeg's cvs source inside a project tree
3 dnl taken from Autostar Sandbox, http://autostars.sourceforge.net/
6 dnl AS_SLURP_FFMPEG(DIRECTORY, DATE, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
9 dnl AM_PATH_FFMPEG(lib/ffmpeg, "2002-12-14 12:00 GMT")
12 AC_DEFUN(AS_SLURP_FFMPEG,
17 if test ! -d $1; then mkdir -p $1; fi
20 if test ! -d ffmpeg/CVS; then
22 AC_MSG_NOTICE(checking out ffmpeg cvs code from $2 into $1)
23 cvs -Q -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg co -D $2 ffmpeg || FAILED=yes
27 AC_MSG_NOTICE(updating ffmpeg cvs code)
28 cvs -Q update -dP -D $2 || FAILED=yes
32 AC_MSG_NOTICE(configuring ffmpeg cvs code)
38 if test "x$FAILED" == "xyes"; then