You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-libs/libfame/files/libfame-0.9.1-mmx-configure...

21 lines
1003 B

Index: libfame-0.9.1/configure.in
===================================================================
--- libfame-0.9.1.orig/configure.in
+++ libfame-0.9.1/configure.in
@@ -101,12 +101,9 @@ if test x$ac_cv_prog_gcc = xyes; then
CFLAGS="$CFLAGS -Wall -fexpensive-optimizations -funroll-loops -ffast-math"
dnl -fstrict-aliasing doesn't seem to be supported by gcc < 2.95
- gcc_major_version=`$CC --version | \
- sed -e 's,[[^0-9.]],,g' -e 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
- gcc_minor_version=`$CC --version | \
- sed -e 's,[[^0-9.]],,g' -e 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- gcc_micro_version=`$CC --version | \
- sed -e 's,[[^0-9.]],,g' -e 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
+ gcc_major_version=`${CC} -dumpversion | cut -f1 -d.`
+ gcc_minor_version=`${CC} -dumpversion | cut -f2 -d.`
+ gcc_micro_version=`${CC} -dumpversion | cut -f3 -d.`
dnl ok, I must admit I don't know how to do or/and ;)
if test $gcc_major_version -eq 2; then