summaryrefslogtreecommitdiff
path: root/package/libmad/patches/patch-configure_ac
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2013-11-03 14:43:42 +0100
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2013-11-03 14:43:42 +0100
commit2b5742738af1c66f793d43ec7f6beb998a34241a (patch)
tree64ebef72f7b864cbd6b39899ec44c69e2f74c06c /package/libmad/patches/patch-configure_ac
parent08f64b87c0b6e9a6de7250c616a91830ef447713 (diff)
convert to autotool infrastructure, use CPU_ARCH not ARCH to choose FPM
Diffstat (limited to 'package/libmad/patches/patch-configure_ac')
-rw-r--r--package/libmad/patches/patch-configure_ac157
1 files changed, 157 insertions, 0 deletions
diff --git a/package/libmad/patches/patch-configure_ac b/package/libmad/patches/patch-configure_ac
new file mode 100644
index 000000000..3cff528f2
--- /dev/null
+++ b/package/libmad/patches/patch-configure_ac
@@ -0,0 +1,157 @@
+--- libmad-0.15.1b.orig/configure.ac 2004-01-23 10:41:32.000000000 +0100
++++ libmad-0.15.1b/configure.ac 2013-11-03 14:34:43.000000000 +0100
+@@ -66,142 +66,6 @@ AC_PROG_LIBTOOL
+
+ AC_SUBST(LIBTOOL_DEPS)
+
+-dnl Compiler options.
+-
+-arch=""
+-debug=""
+-optimize=""
+-profile=""
+-
+-set -- $CFLAGS
+-CFLAGS=""
+-
+-if test "$GCC" = yes
+-then
+- CFLAGS="-Wall"
+-fi
+-
+-while test $# -gt 0
+-do
+- case "$1" in
+- -Wall)
+- if test "$GCC" = yes
+- then
+- :
+- else
+- CFLAGS="$CFLAGS $1"
+- fi
+- shift
+- ;;
+- -g)
+- debug="-g"
+- shift
+- ;;
+- -mno-cygwin)
+- shift
+- ;;
+- -m*)
+- arch="$arch $1"
+- shift
+- ;;
+- -O2)
+- optimize="-O"
+- shift
+- ;;
+- -fomit-frame-pointer)
+- shift
+- ;;
+- -O*|-f*)
+- optimize="$optimize $1"
+- shift
+- ;;
+- *)
+- CFLAGS="$CFLAGS $1"
+- shift
+- ;;
+- esac
+-done
+-
+-if test "$GCC" = yes
+-then
+- if test -z "$arch"
+- then
+- case "$host" in
+- i386-*) ;;
+- i?86-*) arch="-march=i486" ;;
+- arm*-empeg-*) arch="-march=armv4 -mtune=strongarm1100" ;;
+- armv4*-*) arch="-march=armv4 -mtune=strongarm" ;;
+- powerpc-*) ;;
+- mips*-agenda-*) arch="-mcpu=vr4100" ;;
+- mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;;
+- esac
+- fi
+-
+- case "$optimize" in
+- -O|"-O "*)
+- optimize="-O"
+- optimize="$optimize -fforce-mem"
+- optimize="$optimize -fforce-addr"
+- : #x optimize="$optimize -finline-functions"
+- : #- optimize="$optimize -fstrength-reduce"
+- optimize="$optimize -fthread-jumps"
+- optimize="$optimize -fcse-follow-jumps"
+- optimize="$optimize -fcse-skip-blocks"
+- : #x optimize="$optimize -frerun-cse-after-loop"
+- : #x optimize="$optimize -frerun-loop-opt"
+- : #x optimize="$optimize -fgcse"
+- optimize="$optimize -fexpensive-optimizations"
+- optimize="$optimize -fregmove"
+- : #* optimize="$optimize -fdelayed-branch"
+- : #x optimize="$optimize -fschedule-insns"
+- optimize="$optimize -fschedule-insns2"
+- : #? optimize="$optimize -ffunction-sections"
+- : #? optimize="$optimize -fcaller-saves"
+- : #> optimize="$optimize -funroll-loops"
+- : #> optimize="$optimize -funroll-all-loops"
+- : #x optimize="$optimize -fmove-all-movables"
+- : #x optimize="$optimize -freduce-all-givs"
+- : #? optimize="$optimize -fstrict-aliasing"
+- : #* optimize="$optimize -fstructure-noalias"
+-
+- case "$host" in
+- arm*-*)
+- optimize="$optimize -fstrength-reduce"
+- ;;
+- mips*-*)
+- optimize="$optimize -fstrength-reduce"
+- optimize="$optimize -finline-functions"
+- ;;
+- i?86-*)
+- optimize="$optimize -fstrength-reduce"
+- ;;
+- powerpc-apple-*)
+- # this triggers an internal compiler error with gcc2
+- : #optimize="$optimize -fstrength-reduce"
+-
+- # this is really only beneficial with gcc3
+- : #optimize="$optimize -finline-functions"
+- ;;
+- *)
+- # this sometimes provokes bugs in gcc 2.95.2
+- : #optimize="$optimize -fstrength-reduce"
+- ;;
+- esac
+- ;;
+- esac
+-fi
+-
+-case "$host" in
+- mips*-agenda-*)
+- AC_DEFINE(HAVE_MADD16_ASM, 1,
+- [Define if your MIPS CPU supports a 2-operand MADD16 instruction.])
+- ;;
+- mips*-luxsonor-*)
+- AC_DEFINE(HAVE_MADD_ASM, 1,
+- [Define if your MIPS CPU supports a 2-operand MADD instruction.])
+- ;;
+-esac
+-
+ dnl Checks for header files.
+
+ AC_HEADER_STDC
+@@ -420,11 +284,6 @@ AC_MSG_RESULT(${enable_experimental-no})
+
+ dnl Create output files.
+
+-test -n "$arch" && CFLAGS="$CFLAGS $arch"
+-test -n "$debug" && CFLAGS="$CFLAGS $debug"
+-test -n "$optimize" && CFLAGS="$CFLAGS $optimize"
+-test -n "$profile" && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
+-
+ dnl LTLIBOBJS=`echo "$LIBOBJS" | sed -e 's/\.o/.lo/g'`
+ dnl AC_SUBST(LTLIBOBJS)
+