smpeg-0.4.4-flags.patch 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. Index: smpeg-0.4.4/configure.in
  2. ===================================================================
  3. --- smpeg-0.4.4.orig/configure.in
  4. +++ smpeg-0.4.4/configure.in
  5. @@ -60,7 +60,7 @@ dnl The alpha architecture needs special
  6. case "$target" in
  7. alpha*-*-linux*)
  8. if test x$ac_cv_prog_gcc = xyes; then
  9. - CFLAGS="$CFLAGS -mcpu=ev4 -Wa,-mall"
  10. + EXTRA_CFLAGS="$EXTRA_CFLAGS -mcpu=ev4 -Wa,-mall"
  11. fi
  12. ;;
  13. sparc*-*-solaris*)
  14. @@ -102,17 +102,17 @@ AC_ARG_ENABLE(debug,
  15. , enable_debug=yes)
  16. if test x$enable_debug != xyes; then
  17. if test x$ac_cv_prog_gcc = xyes; then
  18. - CFLAGS="$CFLAGS -fexpensive-optimizations -fomit-frame-pointer"
  19. + EXTRA_CFLAGS="$EXTRA_CFLAGS -fexpensive-optimizations -fomit-frame-pointer"
  20. fi
  21. case "$target" in
  22. i486-*-*) # Yeah right. :)
  23. if test x$ac_cv_prog_gcc = xyes; then
  24. - CFLAGS="$CFLAGS -march=486"
  25. + EXTRA_CFLAGS="$EXTRA_CFLAGS -march=486"
  26. fi
  27. ;;
  28. i?86-*-*)
  29. if test x$ac_cv_prog_gcc = xyes; then
  30. - CFLAGS="$CFLAGS -march=pentium -mcpu=pentiumpro"
  31. + EXTRA_CFLAGS="$EXTRA_CFLAGS -march=pentium -mcpu=pentiumpro"
  32. fi
  33. ;;
  34. esac
  35. @@ -124,7 +124,7 @@ AM_PATH_SDL($SDL_VERSION,
  36. :,
  37. AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
  38. )
  39. -CFLAGS="$CFLAGS $SDL_CFLAGS"
  40. +EXTRA_CFLAGS="$EXTRA_CFLAGS $SDL_CFLAGS"
  41. LIBS="$LIBS $SDL_LIBS"
  42. dnl See if we need to pass -lm for the math library
  43. @@ -145,7 +145,7 @@ if test x$enable_mmx = xyes; then
  44. AC_MSG_RESULT($use_mmx)
  45. if test x$use_mmx = xyes; then
  46. - CFLAGS="$CFLAGS -DUSE_MMX"
  47. + EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_MMX"
  48. fi
  49. fi
  50. @@ -162,7 +162,7 @@ if test x$enable_ati = xyes; then
  51. AC_MSG_RESULT($use_ati)
  52. if test x$use_ati = xyes; then
  53. - CFLAGS="$CFLAGS -DUSE_ATI"
  54. + EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_ATI"
  55. fi
  56. fi
  57. @@ -171,7 +171,7 @@ AC_ARG_ENABLE(timestamp-sync,
  58. [ --enable-timestamp-sync enable system timestamp sync [default=yes]],
  59. , enable_timestamp_sync=no)
  60. if test x$enable_timestamp_sync = xyes; then
  61. - CFLAGS="$CFLAGS -DUSE_TIMESTAMP_SYNC"
  62. +EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_TIMESTAMP_SYNC"
  63. fi
  64. dnl Enable the use of the system thread
  65. @@ -179,7 +179,7 @@ AC_ARG_ENABLE(threaded-system,
  66. [ --enable-threaded-system enable system thread [default=no]],
  67. , enable_threaded_system=no)
  68. if test x$enable_threaded_system = xyes; then
  69. - CFLAGS="$CFLAGS -DUSE_SYSTEM_THREAD"
  70. +EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_SYSTEM_THREAD"
  71. fi
  72. dnl Enable threaded audio
  73. @@ -187,7 +187,7 @@ AC_ARG_ENABLE(threaded-audio,
  74. [ --enable-threaded-audio enable threaded audio [default=yes]],
  75. , enable_threaded_audio=yes)
  76. if test x$enable_threaded_audio = xyes; then
  77. - CFLAGS="$CFLAGS -DTHREADED_AUDIO"
  78. +EXTRA_CFLAGS="$EXTRA_CFLAGS -DTHREADED_AUDIO"
  79. fi
  80. dnl See if we can build the GTk player
  81. @@ -198,7 +198,7 @@ have_gtk=no
  82. if test x$enable_gtk_player = xyes; then
  83. AM_PATH_GTK(1.2.1, have_gtk=yes)
  84. if test x$have_gtk = xyes; then
  85. - CFLAGS="$CFLAGS $GTK_CFLAGS"
  86. + EXTRA_CFLAGS="$EXTRA_CFLAGS $GTK_CFLAGS"
  87. fi
  88. AC_SUBST(GTK_LIBS)
  89. fi
  90. @@ -224,7 +224,7 @@ if test x$enable_opengl_player = xyes; t
  91. AC_PATH_X
  92. AC_PATH_XTRA
  93. if test x$have_x = xyes; then
  94. - CFLAGS="$CFLAGS $X_CFLAGS"
  95. + EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  96. SYS_GL_LIBS="$X_LIBS -lGL -lGLU"
  97. else
  98. SYS_GL_LIBS="-lGL -lGLU"
  99. @@ -255,17 +255,16 @@ AC_ARG_ENABLE(assertions,
  100. [ --enable-assertions Enable consistency checks in decoding [default=no]],
  101. , enable_assertions=no)
  102. if test x$enable_assertions != xyes; then
  103. - CFLAGS="$CFLAGS -DNDEBUG"
  104. + EXTRA_CFLAGS="$EXTRA_CFLAGS -DNDEBUG"
  105. fi
  106. dnl Add the source include directories
  107. -CFLAGS="$CFLAGS -I.. -DNOCONTROLS"
  108. -CFLAGS="$CFLAGS -I\$(top_srcdir) -I\$(top_srcdir)/audio -I\$(top_srcdir)/video"
  109. -CXXFLAGS="$CFLAGS"
  110. -
  111. +EXTRA_CFLAGS="$EXTRA_CFLAGS -I.. -DNOCONTROLS"
  112. +EXTRA_CFLAGS="$EXTRA_CFLAGS -I\$(top_srcdir) -I\$(top_srcdir)/audio -I\$(top_srcdir)/video"
  113. +CXXFLAGS="$EXTRA_CFLAGS $CXXFLAGS"
  114. +CFLAGS="$EXTRA_CFLAGS $CFLAGS"
  115. dnl C++ flags are the same as the C flags
  116. -CXXFLAGS="$CFLAGS"
  117. if test x$GCC = xyes; then
  118. # Check to see if options -fno-rtti -fno-exceptions are supported
  119. AC_MSG_CHECKING(if $CXX supports -fno-rtti -fno-exceptions)