Fix compile problem when old version of libvorbisfile v1.1.2 is used.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 16 Feb 2012 19:51:15 +0000 (19:51 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 16 Feb 2012 19:51:15 +0000 (19:51 +0000)
commit7093cf278ca023a3b43959f15202c7eabd3f9856
treec6a7eecd35168f23d3cbb521594a2c628e1f9e9e
parent7879cccafd1749e2670039f9ddf3a786f59f5429
Fix compile problem when old version of libvorbisfile v1.1.2 is used.

The principle difference between libvorbisfile v1.1.2 and newer (at least
v1.2.0) is the addition of the predefined callbacks OV_CALLBACKS_xxx in
vorbis/vorbisfile.h used for ov_open_callbacks().

* Updated the configure script to detect if libvorbisfile.h declares
OV_CALLBACKS_NOCLOSE.

* Copied the declaration of OV_CALLBACKS_NOCLOSE from v1.2.0 to allow
v1.1.2 to compile.

(closes issue ASTERISK-19370)
Reported by: Jonn Taylor
........

Merged revisions 355608 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 355620 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@355621 65c4cc65-6c06-0410-ace0-fbb531ad65f3
autoconf/ast_c_declare_check.m4 [new file with mode: 0644]
configure
configure.ac
formats/format_ogg_vorbis.c
include/asterisk/autoconfig.h.in