Bug 482 - Now handles new ffmpeg header locations.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2437 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
ba2bf22ea7
commit
fe53ca7a07
|
@ -182,6 +182,10 @@ AC_CHECK_MEMBERS([struct sigcontext.eip],,,[#include <signal.h>])
|
|||
AC_CHECK_TYPES(ucontext_t,,,[#include <signal.h>])
|
||||
|
||||
AC_CHECK_HEADERS(mysql/mysql.h,,AC_MSG_ERROR(zm requires mysql/mysql.h),)
|
||||
AC_CHECK_HEADERS(ffmpeg/avformat.h,,,)
|
||||
AC_CHECK_HEADERS(libavformat/avformat.h,,,)
|
||||
AC_CHECK_HEADERS(ffmpeg/swscale.h,,,)
|
||||
AC_CHECK_HEADERS(libswscale/swscale.h,,,)
|
||||
AC_CHECK_HEADERS(pcre/pcre.h,,,)
|
||||
AC_CHECK_HEADERS(pcre.h,,,)
|
||||
AC_CHECK_DECLS(round,,,[#include <math.h>])
|
||||
|
|
|
@ -26,9 +26,21 @@
|
|||
|
||||
extern "C" {
|
||||
#define __STDC_CONSTANT_MACROS
|
||||
#if HAVE_LIBAVFORMAT_AVFORMAT_H
|
||||
#include <libavformat/avformat.h>
|
||||
#elif HAVE_FFMPEG_AVFORMAT_H
|
||||
#include <ffmpeg/avformat.h>
|
||||
#else
|
||||
#error "Unable to locate avformat.h"
|
||||
#endif
|
||||
#if HAVE_LIBSWSCALE
|
||||
#if HAVE_LIBSWSCALE_SWSCALE_H
|
||||
#include <libswscale/swscale.h>
|
||||
#elif HAVE_FFMPEG_SWSCALE_H
|
||||
#include <ffmpeg/swscale.h>
|
||||
#else
|
||||
#error "Unable to locate swscale.h"
|
||||
#endif
|
||||
#endif // HAVE_LIBSWSCALE
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue