openbsd-ports/multimedia/avidemux/patches/patch-configure
ajacoutot ed9e06f6c2 - improve powerpc support:
properly detect cpu at configure time
  enable ppc specific code where possible (i.e. where altivec is not needed)
- reorder dependencies and fix WANTLIB
2007-06-01 00:36:43 +00:00

79 lines
1.6 KiB
Plaintext

$OpenBSD: patch-configure,v 1.3 2007/06/01 00:36:43 ajacoutot Exp $
--- configure.orig Sat Nov 25 22:02:18 2006
+++ configure Fri Jun 1 01:57:42 2007
@@ -3277,13 +3277,13 @@ if test "$ac_test_CXXFLAGS" = set; then
CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
if test "$GXX" = yes; then
- CXXFLAGS="-g -O2"
+ CXXFLAGS="-g"
else
CXXFLAGS="-g"
fi
else
if test "$GXX" = yes; then
- CXXFLAGS="-O2"
+ CXXFLAGS=""
else
CXXFLAGS=
fi
@@ -4152,13 +4152,13 @@ if test "$ac_test_CFLAGS" = set; then
CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
- CFLAGS="-g -O2"
+ CFLAGS="-g"
else
CFLAGS="-g"
fi
else
if test "$GCC" = yes; then
- CFLAGS="-O2"
+ CFLAGS=""
else
CFLAGS=
fi
@@ -21469,7 +21469,7 @@ cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
- #ifdef __NetBSD__
+ #if defined(__NetBSD__) || defined(__OpenBSD__)
#include <sys/ioccom.h>
#include <soundcard.h>
#else
@@ -21540,6 +21540,8 @@ cat >>confdefs.h <<\_ACEOF
#define OSS_SUPPORT 1
_ACEOF
+LIBS="-lossaudio $LIBS"
+
fi
fi
@@ -25383,7 +25385,7 @@ cat >>confdefs.h <<\_ACEOF
#define WORDS_BIGENDIAN 1
_ACEOF
;;
- ppc)
+ powerpc)
have_little_endian=no;
LMPG_OPT="";
@@ -25794,11 +25796,11 @@ _ACEOF
else
if test "x$use_builtin" = "x1"; then
- CXXFLAGS="$CXXFLAGS -O3"
- CFLAGS="$CFLAGS -O3"
+ CXXFLAGS="$CXXFLAGS"
+ CFLAGS="$CFLAGS"
else
- CXXFLAGS="$CXXFLAGS -O2"
- CFLAGS="$CFLAGS -O2"
+ CXXFLAGS="$CXXFLAGS"
+ CFLAGS="$CFLAGS"
fi
fi
if test "x$use_gpt" = "x1"; then