Author: kwizart
Update of /cvs/free/rpms/libmpeg3/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv19406
Added Files:
libmpeg3-1.8-mmx.patch
Log Message:
Add missing patch
libmpeg3-1.8-mmx.patch:
--- NEW FILE libmpeg3-1.8-mmx.patch ---
diff -up libmpeg3-1.8/configure.in.mmx libmpeg3-1.8/configure.in
--- libmpeg3-1.8/configure.in.mmx 2008-09-02 22:34:57.000000000 +0200
+++ libmpeg3-1.8/configure.in 2008-09-02 22:37:42.000000000 +0200
@@ -19,10 +19,6 @@ AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CPP
AC_PROG_CXX
-# hack for using nasm for .S files
-#CCAS="nasm"
-AC_SUBST(CCAS)
-AC_SUBST(CCASFLAGS)
############## MMX
@@ -53,11 +49,37 @@ esac
test "x$enable_mmx" = "xauto" && enable_mmx=no
AM_CONDITIONAL(USEMMX, test "x$enable_mmx" = "xyes")
-AM_CONDITIONAL(USEMMX32, test "x$enable_mmx32" = "xyes")
-AM_CONDITIONAL(TARGET_BUILTIN_VECTOR,test "x$enable_mmx" = "xyes")
AC_SUBST(LIBDECORE_LIBADD)
AC_SUBST(CPU_CFLAGS)
+# Check for assembler
+#
+CCASFLAGS=""
+have_assembler=false
+if test x$enable_mmx = xtrue; then
+ AC_PATH_PROG([NASM], [nasm], [no])
+ if test "x$NASM" != "xno"; then
+ if test x$cpu_x86_64 = xtrue; then
+ CCASFLAGS="$NASM -O2 -felf64"
+ else
+ CCASFLAGS="$NASM -O2 -felf"
+ fi
+ have_assembler=true
+ fi
+
+ AC_PATH_PROG([YASM], [yasm], [no])
+ if test "x$YASM" != "xno"; then
+ if test x$cpu_x86_64 = xtrue; then
+ CCASFLAGS="$YASM -Xgnu -felf64"
+ else
+ CCASFLAGS="$YASM -Xgnu -felf"
+ fi
+ have_assembler=true
+ fi
+fi
+AC_SUBST(CCAS)
+AC_SUBST(CCASFLAGS)
+
############## END OF MMX
LARGEFILE_CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64"
Show replies by date