patch-configure_ac 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. $OpenBSD: patch-configure_ac,v 1.1 2010/03/24 22:32:17 jasper Exp $
  2. Swith to gtk+2.
  3. From Debian's corewars_0.9.13+ds-1.diff.
  4. --- configure.ac.orig Wed Oct 23 14:49:46 2002
  5. +++ configure.ac Wed Mar 24 23:16:44 2010
  6. @@ -36,38 +36,29 @@ AM_PROG_LEX
  7. AC_PROG_LN_S
  8. COREWARS=corewars
  9. -AM_PATH_GLIB(1.2.0,,COREWARS=;AC_MSG_ERROR([
  10. +AM_PATH_GLIB_2_0(2.0.0,,COREWARS=;AC_MSG_ERROR([
  11. ************************************************************************
  12. - *** GLIB >= 1.2.0 not installed - cannot build GUI client without it ***
  13. + *** GLIB >= 2.0.0 not installed - cannot build GUI client without it ***
  14. ************************************************************************
  15. ]))
  16. -AM_PATH_GTK(1.2.0,,COREWARS=;AC_MSG_ERROR([
  17. +AM_PATH_GTK_2_0(2.0.0,,COREWARS=;AC_MSG_ERROR([
  18. ************************************************************************
  19. - *** GTK+ >= 1.2.0 not installed - cannot build GUI client without it ***
  20. + *** GTK+ >= 2.0.0 not installed - cannot build GUI client without it ***
  21. ************************************************************************
  22. ]))
  23. LIBS="$LIBS $GTK_LIBS"
  24. -GTK_INCLUDE=`gtk-config --cflags`
  25. AC_SUBST(INCLUDES)
  26. -INCLUDES="$INCLUDES $GTK_INCLUDE"
  27. +INCLUDES="$INCLUDES $GTK_CFLAGS"
  28. dnl Checks for header files.
  29. AC_HEADER_DIRENT
  30. AC_STDC_HEADERS
  31. AC_CHECK_HEADERS(limits.h malloc.h string.h unistd.h)
  32. -dnl Check for libc >= 2.1
  33. -COREWARSCMD=
  34. -AC_CHECK_HEADERS(argp.h,COREWARSCMD=corewars-cmd,AC_MSG_WARN([
  35. -
  36. - ********************************************************************************
  37. - *** glibc >= 2.1 not installed - cannot build command line client without it ***
  38. - *** (but this is ok if you want the GTK+ client only) ***
  39. - ********************************************************************************
  40. -]))
  41. +COREWARSCMD=corewars-cmd
  42. dnl Checks for typedefs, structures, and compiler characteristics.
  43. AC_C_CONST