|
|
@ -113,11 +113,12 @@ cflags_safe="$CFLAGS"
|
|
|
|
CXXFLAGS="$CXXFLAGS -D__STDC_CONSTANT_MACROS"
|
|
|
|
CXXFLAGS="$CXXFLAGS -D__STDC_CONSTANT_MACROS"
|
|
|
|
CFLAGS="$CFLAGS -D__STDC_CONSTANT_MACROS"
|
|
|
|
CFLAGS="$CFLAGS -D__STDC_CONSTANT_MACROS"
|
|
|
|
AC_MSG_CHECKING([if libavformat/avformat.h provides av_free_packet])
|
|
|
|
AC_MSG_CHECKING([if libavformat/avformat.h provides av_free_packet])
|
|
|
|
AC_TRY_COMPILE([#include <libavformat/avformat.h>
|
|
|
|
AC_TRY_LINK([#include <libavformat/avformat.h>
|
|
|
|
],[AVPacket *packet; av_free_packet(packet);],
|
|
|
|
],[AVPacket *packet; av_free_packet(packet);],
|
|
|
|
[AC_MSG_RESULT(yes)
|
|
|
|
[AC_MSG_RESULT(yes)
|
|
|
|
AC_DEFINE(NEEDS_AV_FREE_PACKET,1,[no])],
|
|
|
|
AC_DEFINE(NEEDS_AV_FREE_PACKET,0,[yes])],
|
|
|
|
AC_MSG_RESULT(no))
|
|
|
|
[AC_MSG_RESULT(no)
|
|
|
|
|
|
|
|
AC_DEFINE(NEEDS_AV_FREE_PACKET,1,[no])])
|
|
|
|
CXXFLAGS="$cxx_flags_safe"
|
|
|
|
CXXFLAGS="$cxx_flags_safe"
|
|
|
|
CFLAGS="$cflags_safe"
|
|
|
|
CFLAGS="$cflags_safe"
|
|
|
|
AC_LANG_RESTORE
|
|
|
|
AC_LANG_RESTORE
|
|
|
|