|
|
7489f69 |
diff -up opencv-1.1.0/configure.in.nooptim opencv-1.1.0/configure.in
|
|
|
7489f69 |
--- opencv-1.1.0/configure.in.nooptim 2008-10-15 17:47:43.000000000 +0200
|
|
|
7489f69 |
+++ opencv-1.1.0/configure.in 2009-04-23 18:54:30.000000000 +0200
|
|
|
7489f69 |
@@ -274,41 +274,41 @@ else
|
|
|
7489f69 |
AC_MSG_NOTICE( TARGET=$target )
|
|
|
7489f69 |
case $target in
|
|
|
7489f69 |
i*86-apple-*)
|
|
|
7489f69 |
- if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
|
|
|
7489f69 |
+ if test x"no" = "xyes"; then
|
|
|
7489f69 |
# apples g++ fails with '-march=i686' and there are no apple machines older than prescott/core anyway
|
|
|
7489f69 |
DEFAULT_CXXFLAGS="-g -march=prescott -ffast-math -fomit-frame-pointer $DEFAULT_CXXFLAGS"
|
|
|
7489f69 |
fi
|
|
|
7489f69 |
;;
|
|
|
7489f69 |
i686-*-*)
|
|
|
7489f69 |
- if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
|
|
|
7489f69 |
+ if test x"no" = "xyes"; then
|
|
|
7489f69 |
# default to i686/pentiumpro -- people can override this
|
|
|
7489f69 |
DEFAULT_CXXFLAGS="-g -march=i686 -ffast-math -fomit-frame-pointer $DEFAULT_CXXFLAGS"
|
|
|
7489f69 |
fi
|
|
|
7489f69 |
;;
|
|
|
7489f69 |
amd64-*-* | x86_64-*-*)
|
|
|
7489f69 |
- if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
|
|
|
7489f69 |
+ if test x"no" = "xyes"; then
|
|
|
7489f69 |
# default to i686/pentiumpro -- people can override this
|
|
|
7489f69 |
DEFAULT_CXXFLAGS="-g $DEFAULT_CXXFLAGS"
|
|
|
7489f69 |
fi
|
|
|
7489f69 |
;;
|
|
|
7489f69 |
powerpc-*-*)
|
|
|
7489f69 |
- if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
|
|
|
7489f69 |
+ if test x"no" = "xyes"; then
|
|
|
7489f69 |
# default to G3 processors -- people can override this
|
|
|
7489f69 |
DEFAULT_CXXFLAGS="-g -mcpu=G3 -mtune=G5 -fomit-frame-pointer $DEFAULT_CXXFLAGS"
|
|
|
7489f69 |
fi
|
|
|
7489f69 |
;;
|
|
|
7489f69 |
*-*-*)
|
|
|
7489f69 |
- if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
|
|
|
7489f69 |
+ if test x"no" = "xyes"; then
|
|
|
7489f69 |
DEFAULT_CXXFLAGS="-fomit-frame-pointer $DEFAULT_CXXFLAGS"
|
|
|
7489f69 |
fi
|
|
|
7489f69 |
;;
|
|
|
7489f69 |
esac
|
|
|
7489f69 |
|
|
|
7489f69 |
CPPFLAGS="-DNDEBUG $CPPFLAGS"
|
|
|
7489f69 |
- DEFAULT_CXXFLAGS="-O3 $DEFAULT_CXXFLAGS"
|
|
|
7489f69 |
+# DEFAULT_CXXFLAGS="-O3 $DEFAULT_CXXFLAGS"
|
|
|
7489f69 |
fi
|
|
|
7489f69 |
|
|
|
7489f69 |
-if test x"$ac_cv_c_compiler_gnu" = "xyes"; then
|
|
|
7489f69 |
+if test x"no" = "xyes"; then
|
|
|
7489f69 |
PY_CXXFLAGS="-Wall -pipe $DEFAULT_CXXFLAGS"
|
|
|
7489f69 |
OCT_CXXFLAGS="-fno-strict-aliasing -Wall -Wno-uninitialized -pipe $DEFAULT_CXXFLAGS"
|
|
|
7489f69 |
DEF_CXXFLAGS="-Wall -fno-rtti -pipe $DEFAULT_CXXFLAGS"
|