7b22162fa2
- fixes *many* null pointer deref, error handling failures, leaks, use-after-free and double-free found by Coverity - fixes some MPEG2 TS audio packet loss - numerous security fixes in 0.8.6g - fixes some memory leaks Also: mark altivec FLAVOR as broken; ajacoutot reports that the altivec-enabled binary fails to start. ok ajacoutot
58 lines
1.9 KiB
Plaintext
58 lines
1.9 KiB
Plaintext
$OpenBSD: patch-configure_ac,v 1.12 2008/06/09 22:55:43 sthen Exp $
|
|
--- configure.ac.orig Mon Jun 2 14:35:52 2008
|
|
+++ configure.ac Sat Jun 7 20:57:23 2008
|
|
@@ -199,7 +199,7 @@ case "${target_os}" in
|
|
VLC_ADD_CFLAGS([libvlc],[-x objective-c])
|
|
VLC_ADD_CFLAGS([vlc],[-x objective-c])
|
|
;;
|
|
- *mingw32* | *cygwin* | *wince* | *mingwce* | *pe*)
|
|
+ *mingw32* | *cygwin* | *wince* | *mingwce*)
|
|
AC_CHECK_TOOL(WINDRES, windres, :)
|
|
|
|
case "${target_os}" in
|
|
@@ -215,7 +215,7 @@ case "${target_os}" in
|
|
#endif],
|
|
SYS=mingw32, SYS=cygwin)
|
|
;;
|
|
- *wince* | *mingwce* | *pe*)
|
|
+ *wince* | *mingwce*)
|
|
SYS=mingwce
|
|
;;
|
|
esac
|
|
@@ -657,6 +657,9 @@ if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"
|
|
dnl Check for pthreads - borrowed from XMMS
|
|
THREAD_LIB=error
|
|
if test "${THREAD_LIB}" = "error"; then
|
|
+ AC_CHECK_LIB(pthread,main,THREAD_LIB="-pthread")
|
|
+fi
|
|
+if test "${THREAD_LIB}" = "error"; then
|
|
AC_CHECK_LIB(pthread,main,THREAD_LIB="-lpthread")
|
|
fi
|
|
if test "${THREAD_LIB}" = "error"; then
|
|
@@ -2703,7 +2706,7 @@ dnl Look for a ffmpeg-config (we are on debian )
|
|
else
|
|
|
|
dnl Trying with pkg-config
|
|
- PKG_CHECK_MODULES(FFMPEG,[libavcodec, libavformat],
|
|
+ PKG_CHECK_MODULES(FFMPEG,[libavcodec, libavformat, libpostproc],
|
|
[
|
|
VLC_SAVE_FLAGS
|
|
CPPFLAGS="${CPPFLAGS} ${FFMPEG_CFLAGS}"
|
|
@@ -3380,13 +3383,13 @@ AC_ARG_ENABLE(png,
|
|
[ --enable-png PNG support (default enabled)])
|
|
if test "${enable_png}" != "no"; then
|
|
AC_CHECK_HEADERS(png.h, [
|
|
- LDFLAGS="${LDFLAGS_save} -lz"
|
|
+ LDFLAGS="${LDFLAGS_save} -lz -lm"
|
|
AC_CHECK_LIB(png, png_set_rows, [
|
|
- VLC_ADD_LDFLAGS([png],[-lpng -lz])
|
|
+ VLC_ADD_LDFLAGS([png],[-lpng -lz -lm])
|
|
VLC_ADD_PLUGINS([png])
|
|
VLC_ADD_PLUGINS([osdmenu])
|
|
AC_DEFINE(HAVE_LIBPNG, 1, [Define if you have the PNG library: libpng])],
|
|
- [],[-lz])
|
|
+ [],[-lz -lm])
|
|
LDFLAGS="${LDFLAGS_save}"
|
|
])
|
|
fi
|