Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 70506 | Differences between
and this patch

Collapse All | Expand All

(-)../configure.in (-14 / +25 lines)
Lines 81-93 Link Here
81
AC_ARG_ENABLE([debug],
81
AC_ARG_ENABLE([debug],
82
              [AS_HELP_STRING([--enable-debug],[build debug version without optimization])],
82
              [AS_HELP_STRING([--enable-debug],[build debug version without optimization])],
83
              [debug=$enableval], 
83
              [debug=$enableval], 
84
              [debug=no])
84
              [debug="no"])
85
AM_CONDITIONAL([ENABLE_DEBUG], [test x"$enable_debug" = x"yes"])
85
86
86
# does the user want to build demo applications?
87
# does the user want to build demo applications?
87
AC_ARG_ENABLE([apps],
88
AC_ARG_ENABLE([apps],
88
              [AS_HELP_STRING([--enable-apps],[build demo applications])],
89
              [AS_HELP_STRING([--enable-apps],[build demo applications])],
89
              [enable_apps=$enableval],
90
              [enable_apps=$enableval],
90
              [enable_apps="yes"])
91
              [enable_apps="no"])
91
AM_CONDITIONAL([BUILD_APPS], [test x"$enable_apps" = x"yes"])
92
AM_CONDITIONAL([BUILD_APPS], [test x"$enable_apps" = x"yes"])
92
93
93
94
Lines 101-155 Link Here
101
AC_ARG_WITH([swig], 
102
AC_ARG_WITH([swig], 
102
            [AS_HELP_STRING([--with-swig],[use swig wrapper generator])],
103
            [AS_HELP_STRING([--with-swig],[use swig wrapper generator])],
103
            [with_swig=$withval],
104
            [with_swig=$withval],
104
            [with_swig=no])
105
            [with_swig="no"])
106
AM_CONDITIONAL([WITH_SWIG], [test x"$with_swig" = x"yes"])
105
107
106
# does the user want to compile python modules as well?
108
# does the user want to compile python modules as well?
107
AC_ARG_WITH([python], 
109
AC_ARG_WITH([python], 
108
            [AS_HELP_STRING([--with-python],[use python for wrapping])],
110
            [AS_HELP_STRING([--with-python],[use python for wrapping])],
109
            [with_python=$withval],
111
            [with_python=$withval],
110
            [with_python=yes])
112
            [with_python="no"])
113
AM_CONDITIONAL([WITH_PYTHON], [test x"$with_python" = x"yes"])
111
114
112
# does the user want OpenCV to use xine video libraries?
115
# does the user want OpenCV to use xine video libraries?
113
AC_ARG_WITH([xine],
116
AC_ARG_WITH([xine],
114
            [AS_HELP_STRING([--with-xine],[use xine libraries (see LICENSE)])],
117
            [AS_HELP_STRING([--with-xine],[use xine libraries (see LICENSE)])],
115
            [with_xine=$withval],
118
            [with_xine=$withval],
116
            [with_xine=no])
119
            [with_xine=i"no"])
120
AM_CONDITIONAL([WITH_XINE], [test x"$with_xine" = x"yes"])
117
121
118
# does the user want OpenCV to use ffmpeg video libraries?
122
# does the user want OpenCV to use ffmpeg video libraries?
119
AC_ARG_WITH([ffmpeg],
123
AC_ARG_WITH([ffmpeg],
120
            [AS_HELP_STRING([--with-ffmpeg],[use ffmpeg libraries (see LICENSE)])],
124
            [AS_HELP_STRING([--with-ffmpeg],[use ffmpeg libraries (see LICENSE)])],
121
            [with_ffmpeg=$withval],
125
            [with_ffmpeg=$withval],
122
            [with_ffmpeg=auto])
126
            [with_ffmpeg=auto])
127
AM_CONDITIONAL([WITH_XINE], [test x"$with_xine" = x"yes"])
123
128
124
# does the user want OpenCV to use libraw1394/libdc1394 for video input?
129
# does the user want OpenCV to use libraw1394/libdc1394 for video input?
125
AC_ARG_WITH([1394libs],
130
AC_ARG_WITH([1394libs],
126
            [AS_HELP_STRING([--with-1394libs],[use libraw1394/libdc1394])],
131
            [AS_HELP_STRING([--with-1394libs],[use libraw1394/libdc1394])],
127
            [with_1394libs=$withval],
132
            [with_1394libs=$withval],
128
            [with_1394libs=auto])
133
            [with_1394libs="no"])
134
AM_CONDITIONAL([WITH_1394LIBS], [test x"$with_1394libs" = x"yes"])
129
135
130
# does the user want OpenCV to use the video4linux kernel module?
136
# does the user want OpenCV to use the video4linux kernel module?
131
AC_ARG_WITH([v4l],
137
AC_ARG_WITH([v4l],
132
            [AS_HELP_STRING([--with-v4l],[use video4linux])],
138
            [AS_HELP_STRING([--with-v4l],[use video4linux])],
133
            [with_v4l=$withval],
139
            [with_v4l=$withval],
134
            [with_v4l=auto])
140
            [with_v4l="no"])
141
AM_CONDITIONAL([WITH_V4L], [test x"$with_v4l" = x"yes"])
135
142
136
# does the user want OpenCV to use QuickTime video libraries?
143
# does the user want OpenCV to use QuickTime video libraries?
137
AC_ARG_WITH([quicktime],
144
AC_ARG_WITH([quicktime],
138
            [AS_HELP_STRING([--with-quicktime],[use QuickTime libraries])],
145
            [AS_HELP_STRING([--with-quicktime],[use QuickTime libraries])],
139
            [with_quicktime=$withval],
146
            [with_quicktime=$withval],
140
            [with_quicktime=yes])
147
            [with_quicktime="no"])
148
AM_CONDITIONAL([WITH_QUICKTIME], [test x"$with_quicktime" = x"yes"])
141
149
142
# does the user want OpenCV to use the Carbon GUI of Mac OS X?
150
# does the user want OpenCV to use the Carbon GUI of Mac OS X?
143
AC_ARG_WITH([carbon],
151
AC_ARG_WITH([carbon],
144
            [AS_HELP_STRING([--with-carbon],[use Carbon windows])],
152
            [AS_HELP_STRING([--with-carbon],[use Carbon windows])],
145
            [with_carbon=$withval],
153
            [with_carbon=$withval],
146
            [with_carbon=yes])
154
            [with_carbon="no"])
155
AM_CONDITIONAL([WITH_CARBON], [test x"$with_carbon" = x"yes"])
147
156
148
# does the user want OpenCV to use GTK+ 2.0 for the GUI?
157
# does the user want OpenCV to use GTK+ 2.0 for the GUI?
149
AC_ARG_WITH([gtk],
158
AC_ARG_WITH([gtk],
150
            [AS_HELP_STRING([--with-gtk],[use gtk+ 2.0 windows])],
159
            [AS_HELP_STRING([--with-gtk],[use gtk+ 2.0 windows])],
151
            [with_gtk=$withval],
160
            [with_gtk=$withval],
152
            [with_gtk=auto])
161
            [with_gtk="no"])
162
AM_CONDITIONAL([WITH_GTK], [test x"$with_gtk" = x"yes"])
153
163
154
164
155
######################################################################
165
######################################################################
Lines 187-193 Link Here
187
    AC_MSG_RESULT([yes])
197
    AC_MSG_RESULT([yes])
188
    if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
198
    if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
189
        CPPFLAGS="-DDEBUG -D_DEBUG $CPPFLAGS"
199
        CPPFLAGS="-DDEBUG -D_DEBUG $CPPFLAGS"
190
        CXXFLAGS="-ggdb -O0 $CXXFLAGS"
200
        CXXFLAGS="-ggdb -O0 -g $CXXFLAGS"
191
    fi
201
    fi
192
else
202
else
193
    AC_MSG_RESULT([no])
203
    AC_MSG_RESULT([no])
Lines 202-208 Link Here
202
    i686-*-*)
212
    i686-*-*)
203
        if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
213
        if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
204
          # default to i686/pentiumpro -- people can override this
214
          # default to i686/pentiumpro -- people can override this
205
          CXXFLAGS="-g -march=i686 -ffast-math -fomit-frame-pointer $CXXFLAGS"
215
          CXXFLAGS="-march=i686 -ffast-math -fomit-frame-pointer $CXXFLAGS"
206
        fi
216
        fi
207
        ;;
217
        ;;
208
    powerpc-*-*)
218
    powerpc-*-*)
Lines 340-346 Link Here
340
350
341
# if QuickTime is present, it will override everything else,
351
# if QuickTime is present, it will override everything else,
342
# (unless '--without-quicktime' was given)
352
# (unless '--without-quicktime' was given)
343
if test x"$with_quicktime" = "xyes"; then
353
if test x"$with_quicktime" = x"yes"; then
344
354
345
    # check other ./configure flags
355
    # check other ./configure flags
346
    if test x"$with_ffmpeg" = "xyes"; then
356
    if test x"$with_ffmpeg" = "xyes"; then
Lines 690-696 Link Here
690
AM_CONDITIONAL([BUILD_PYTHON_WRAPPERS], [test x"$have_python" = "xyes"])
700
AM_CONDITIONAL([BUILD_PYTHON_WRAPPERS], [test x"$have_python" = "xyes"])
691
701
692
# check for swig itself
702
# check for swig itself
693
SWIG=""
703
SWIG="no"
694
if test x"$with_swig" = "xyes"; then
704
if test x"$with_swig" = "xyes"; then
695
    AC_MSG_NOTICE([Checking for SWIG])
705
    AC_MSG_NOTICE([Checking for SWIG])
696
706
Lines 821-826 Link Here
821
    Use dc1394 & raw1394:     ${have_dc1394}
831
    Use dc1394 & raw1394:     ${have_dc1394}
822
    Use v4l:                  ${have_v4l}
832
    Use v4l:                  ${have_v4l}
823
    Use v4l2:                 ${have_v4l2}
833
    Use v4l2:                 ${have_v4l2}
834
    Use gtk:		      ${have_gtk}
824
    
835
    
825
Wrappers for other languages =========================================
836
Wrappers for other languages =========================================
826
    SWIG                      ${SWIG}
837
    SWIG                      ${SWIG}

Return to bug 70506