sirius-0.8.0-fix-build-system.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. Fix configure.ac
  2. * Remove setting CFLAGS
  3. * Look for sqrt() in libm (bug 592414)
  4. --- a/configure.in
  5. +++ b/configure.in
  6. @@ -1,26 +1,23 @@
  7. AC_PREREQ(2.52)
  8. -AC_INIT(sirius, 0.8.0)
  9. -AC_CONFIG_SRCDIR(src/sirius.c)
  10. -AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
  11. +AC_INIT([sirius], [0.8.0])
  12. +AC_CONFIG_SRCDIR([src/sirius.c])
  13. +AM_INIT_AUTOMAKE
  14. -AM_CONFIG_HEADER(config.h)
  15. -
  16. -AM_MAINTAINER_MODE
  17. +AC_CONFIG_HEADERS([config.h])
  18. AC_PROG_INTLTOOL
  19. -AC_ISC_POSIX
  20. AC_PROG_CC
  21. -AC_STDC_HEADERS
  22. -AM_PROG_LIBTOOL
  23. -AC_PROG_LIBTOOL
  24. +LT_INIT
  25. pkg_modules="gtk+-2.0 >= 1.3.13 gconf-2.0 libgnomeui-2.0 libgnomecanvas-2.0 libgnomeui-2.0 gdk-pixbuf-2.0"
  26. PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
  27. -AC_SUBST(PACKAGE_CFLAGS)
  28. -AC_SUBST(PACKAGE_LIBS)
  29. +dnl Look for sqrt() in libm
  30. +AC_SEARCH_LIBS([sqrt], [m], [], [
  31. + AC_MSG_ERROR([unable to find the sqrt() function])
  32. +])
  33. GETTEXT_PACKAGE=sirius
  34. AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
  35. @@ -29,22 +26,6 @@
  36. ALL_LINGUAS="sv fr de ru"
  37. AM_GLIB_GNU_GETTEXT
  38. -CFLAGS="-g -O3"
  39. -
  40. -AC_SUBST(CFLAGS)
  41. -AC_SUBST(CPPFLAGS)
  42. -AC_SUBST(LDFLAGS)
  43. -
  44. -dnl Use -Wall if we have gcc.
  45. -changequote(,)dnl
  46. -if test "x$GCC" = "xyes"; then
  47. - case " $CFLAGS " in
  48. - *[\ \ ]-Wall[\ \ ]*) ;;
  49. - *) CFLAGS="$CFLAGS -Wall" ;;
  50. - esac
  51. -fi
  52. -changequote([,])dnl
  53. -
  54. AC_OUTPUT([
  55. Makefile
  56. po/Makefile.in