diff -Narup opencv-1.0.0-old/configure.in opencv-1.0.0/configure.in --- opencv-1.0.0-old/configure.in 2008-06-02 13:26:07.000000000 +0200 +++ opencv-1.0.0/configure.in 2008-06-02 15:43:54.000000000 +0200 @@ -81,13 +81,14 @@ AC_PROG_LIBTOOL AC_ARG_ENABLE([debug], [AS_HELP_STRING([--enable-debug],[build debug version without optimization])], [debug=$enableval], - [debug=no]) + [debug="no"]) +AM_CONDITIONAL([ENABLE_DEBUG], [test x"$enable_debug" = x"yes"]) # does the user want to build demo applications? AC_ARG_ENABLE([apps], [AS_HELP_STRING([--enable-apps],[build demo applications])], [enable_apps=$enableval], - [enable_apps="yes"]) + [enable_apps="no"]) AM_CONDITIONAL([BUILD_APPS], [test x"$enable_apps" = x"yes"]) @@ -101,56 +102,64 @@ AM_CONDITIONAL([BUILD_APPS], [test x"$en AC_ARG_WITH([swig], [AS_HELP_STRING([--with-swig],[use swig wrapper generator])], [with_swig=$withval], - [with_swig=no]) + [with_swig="no"]) +AM_CONDITIONAL([WITH_SWIG], [test x"$with_swig" = x"yes"]) # does the user want to compile python modules as well? AC_ARG_WITH([python], [AS_HELP_STRING([--with-python],[use python for wrapping])], [with_python=$withval], - [with_python=yes]) + [with_python="no"]) +AM_CONDITIONAL([WITH_PYTHON], [test x"$with_python" = x"yes"]) # does the user want OpenCV to use xine video libraries? AC_ARG_WITH([xine], [AS_HELP_STRING([--with-xine],[use xine libraries (see LICENSE)])], [with_xine=$withval], - [with_xine=no]) + [with_xine="no"]) +AM_CONDITIONAL([WITH_XINE], [test x"$with_xine" = x"yes"]) # does the user want OpenCV to use ffmpeg video libraries? AC_ARG_WITH([ffmpeg], [AS_HELP_STRING([--with-ffmpeg],[use ffmpeg libraries (see LICENSE)])], [with_ffmpeg=$withval], [with_ffmpeg=auto]) +AM_CONDITIONAL([WITH_XINE], [test x"$with_xine" = x"yes"]) # does the user want OpenCV to use libraw1394/libdc1394 for video input? AC_ARG_WITH([1394libs], [AS_HELP_STRING([--with-1394libs],[use libraw1394/libdc1394])], [with_1394libs=$withval], [with_1394libs=auto]) +AM_CONDITIONAL([WITH_1394LIBS], [test x"$with_1394libs" = x"yes"]) # does the user want OpenCV to use the video4linux kernel module? AC_ARG_WITH([v4l], [AS_HELP_STRING([--with-v4l],[use video4linux])], [with_v4l=$withval], [with_v4l=auto]) +AM_CONDITIONAL([WITH_V4L], [test x"$with_v4l" = x"yes"]) # does the user want OpenCV to use QuickTime video libraries? AC_ARG_WITH([quicktime], [AS_HELP_STRING([--with-quicktime],[use QuickTime libraries])], [with_quicktime=$withval], - [with_quicktime=yes]) + [with_quicktime="no"]) +AM_CONDITIONAL([WITH_QUICKTIME], [test x"$with_quicktime" = x"yes"]) # does the user want OpenCV to use the Carbon GUI of Mac OS X? AC_ARG_WITH([carbon], [AS_HELP_STRING([--with-carbon],[use Carbon windows])], [with_carbon=$withval], - [with_carbon=yes]) + [with_carbon="no"]) +AM_CONDITIONAL([WITH_CARBON], [test x"$with_carbon" = x"yes"]) # does the user want OpenCV to use GTK+ 2.0 for the GUI? AC_ARG_WITH([gtk], [AS_HELP_STRING([--with-gtk],[use gtk+ 2.0 windows])], [with_gtk=$withval], [with_gtk=auto]) - +AM_CONDITIONAL([WITH_GTK], [test x"$with_gtk" = x"yes"]) ###################################################################### # getting the code to compile @@ -187,7 +196,7 @@ if test x"$debug" = "xyes"; then AC_MSG_RESULT([yes]) if test x"$ac_cv_c_compiler_gnu" = "xyes"; then CPPFLAGS="-DDEBUG -D_DEBUG $CPPFLAGS" - CXXFLAGS="-ggdb -O0 $CXXFLAGS" + CXXFLAGS="-ggdb -O0 -g $CXXFLAGS" fi else AC_MSG_RESULT([no]) @@ -202,7 +211,7 @@ else i686-*-*) if test x"$ac_cv_c_compiler_gnu" = "xyes"; then # default to i686/pentiumpro -- people can override this - CXXFLAGS="-g -march=i686 -ffast-math -fomit-frame-pointer $CXXFLAGS" + CXXFLAGS="-march=i686 -ffast-math -fomit-frame-pointer $CXXFLAGS" fi ;; powerpc-*-*) @@ -340,7 +349,7 @@ AM_CONDITIONAL([BUILD_GTK], [test x"$hav # if QuickTime is present, it will override everything else, # (unless '--without-quicktime' was given) -if test x"$with_quicktime" = "xyes"; then +if test x"$with_quicktime" = x"yes"; then # check other ./configure flags if test x"$with_ffmpeg" = "xyes"; then @@ -690,7 +699,7 @@ fi AM_CONDITIONAL([BUILD_PYTHON_WRAPPERS], [test x"$have_python" = "xyes"]) # check for swig itself -SWIG="" +SWIG="no" if test x"$with_swig" = "xyes"; then AC_MSG_NOTICE([Checking for SWIG]) diff -Narup opencv-1.0.0-old/otherlibs/highgui/cvcap_ffmpeg.cpp opencv-1.0.0/otherlibs/highgui/cvcap_ffmpeg.cpp --- opencv-1.0.0-old/otherlibs/highgui/cvcap_ffmpeg.cpp 2008-06-02 13:26:07.000000000 +0200 +++ opencv-1.0.0/otherlibs/highgui/cvcap_ffmpeg.cpp 2008-06-02 13:28:32.000000000 +0200 @@ -41,9 +41,13 @@ #include "_highgui.h" +#define __STDC_CONSTANT_MACROS extern "C" { #include +#include +#include /* size_t */ +#include } #ifdef NDEBUG