patch-configure_ac 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. --- libmad-0.15.1b.orig/configure.ac 2004-01-23 10:41:32.000000000 +0100
  2. +++ libmad-0.15.1b/configure.ac 2013-11-03 14:34:43.000000000 +0100
  3. @@ -66,142 +66,6 @@ AC_PROG_LIBTOOL
  4. AC_SUBST(LIBTOOL_DEPS)
  5. -dnl Compiler options.
  6. -
  7. -arch=""
  8. -debug=""
  9. -optimize=""
  10. -profile=""
  11. -
  12. -set -- $CFLAGS
  13. -CFLAGS=""
  14. -
  15. -if test "$GCC" = yes
  16. -then
  17. - CFLAGS="-Wall"
  18. -fi
  19. -
  20. -while test $# -gt 0
  21. -do
  22. - case "$1" in
  23. - -Wall)
  24. - if test "$GCC" = yes
  25. - then
  26. - :
  27. - else
  28. - CFLAGS="$CFLAGS $1"
  29. - fi
  30. - shift
  31. - ;;
  32. - -g)
  33. - debug="-g"
  34. - shift
  35. - ;;
  36. - -mno-cygwin)
  37. - shift
  38. - ;;
  39. - -m*)
  40. - arch="$arch $1"
  41. - shift
  42. - ;;
  43. - -O2)
  44. - optimize="-O"
  45. - shift
  46. - ;;
  47. - -fomit-frame-pointer)
  48. - shift
  49. - ;;
  50. - -O*|-f*)
  51. - optimize="$optimize $1"
  52. - shift
  53. - ;;
  54. - *)
  55. - CFLAGS="$CFLAGS $1"
  56. - shift
  57. - ;;
  58. - esac
  59. -done
  60. -
  61. -if test "$GCC" = yes
  62. -then
  63. - if test -z "$arch"
  64. - then
  65. - case "$host" in
  66. - i386-*) ;;
  67. - i?86-*) arch="-march=i486" ;;
  68. - arm*-empeg-*) arch="-march=armv4 -mtune=strongarm1100" ;;
  69. - armv4*-*) arch="-march=armv4 -mtune=strongarm" ;;
  70. - powerpc-*) ;;
  71. - mips*-agenda-*) arch="-mcpu=vr4100" ;;
  72. - mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;;
  73. - esac
  74. - fi
  75. -
  76. - case "$optimize" in
  77. - -O|"-O "*)
  78. - optimize="-O"
  79. - optimize="$optimize -fforce-mem"
  80. - optimize="$optimize -fforce-addr"
  81. - : #x optimize="$optimize -finline-functions"
  82. - : #- optimize="$optimize -fstrength-reduce"
  83. - optimize="$optimize -fthread-jumps"
  84. - optimize="$optimize -fcse-follow-jumps"
  85. - optimize="$optimize -fcse-skip-blocks"
  86. - : #x optimize="$optimize -frerun-cse-after-loop"
  87. - : #x optimize="$optimize -frerun-loop-opt"
  88. - : #x optimize="$optimize -fgcse"
  89. - optimize="$optimize -fexpensive-optimizations"
  90. - optimize="$optimize -fregmove"
  91. - : #* optimize="$optimize -fdelayed-branch"
  92. - : #x optimize="$optimize -fschedule-insns"
  93. - optimize="$optimize -fschedule-insns2"
  94. - : #? optimize="$optimize -ffunction-sections"
  95. - : #? optimize="$optimize -fcaller-saves"
  96. - : #> optimize="$optimize -funroll-loops"
  97. - : #> optimize="$optimize -funroll-all-loops"
  98. - : #x optimize="$optimize -fmove-all-movables"
  99. - : #x optimize="$optimize -freduce-all-givs"
  100. - : #? optimize="$optimize -fstrict-aliasing"
  101. - : #* optimize="$optimize -fstructure-noalias"
  102. -
  103. - case "$host" in
  104. - arm*-*)
  105. - optimize="$optimize -fstrength-reduce"
  106. - ;;
  107. - mips*-*)
  108. - optimize="$optimize -fstrength-reduce"
  109. - optimize="$optimize -finline-functions"
  110. - ;;
  111. - i?86-*)
  112. - optimize="$optimize -fstrength-reduce"
  113. - ;;
  114. - powerpc-apple-*)
  115. - # this triggers an internal compiler error with gcc2
  116. - : #optimize="$optimize -fstrength-reduce"
  117. -
  118. - # this is really only beneficial with gcc3
  119. - : #optimize="$optimize -finline-functions"
  120. - ;;
  121. - *)
  122. - # this sometimes provokes bugs in gcc 2.95.2
  123. - : #optimize="$optimize -fstrength-reduce"
  124. - ;;
  125. - esac
  126. - ;;
  127. - esac
  128. -fi
  129. -
  130. -case "$host" in
  131. - mips*-agenda-*)
  132. - AC_DEFINE(HAVE_MADD16_ASM, 1,
  133. - [Define if your MIPS CPU supports a 2-operand MADD16 instruction.])
  134. - ;;
  135. - mips*-luxsonor-*)
  136. - AC_DEFINE(HAVE_MADD_ASM, 1,
  137. - [Define if your MIPS CPU supports a 2-operand MADD instruction.])
  138. - ;;
  139. -esac
  140. -
  141. dnl Checks for header files.
  142. AC_HEADER_STDC
  143. @@ -420,11 +284,6 @@ AC_MSG_RESULT(${enable_experimental-no})
  144. dnl Create output files.
  145. -test -n "$arch" && CFLAGS="$CFLAGS $arch"
  146. -test -n "$debug" && CFLAGS="$CFLAGS $debug"
  147. -test -n "$optimize" && CFLAGS="$CFLAGS $optimize"
  148. -test -n "$profile" && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
  149. -
  150. dnl LTLIBOBJS=`echo "$LIBOBJS" | sed -e 's/\.o/.lo/g'`
  151. dnl AC_SUBST(LTLIBOBJS)