Use custom codegen only with pygtk-2.8

This commit is contained in:
Yevgen Muntyan 2006-05-13 16:08:09 -05:00
parent 105a9e4077
commit 1b9145ebf5
2 changed files with 8 additions and 8 deletions

View File

@ -38,11 +38,11 @@ configure has the following medit-specific options:
be available.
--with-custom-codegen whether to use custom copy of pygtk codegen (default
= YES)
= yes with pygtk-2.8)
medit uses patched pygtk codegen to allow docstrings in generated code. It's
unlikely you want to use this option. Still, in case of problems with python,
patched codegen may be the source of problem, so using upstream codegen may
be forced.
unlikely you want to use this option, and it's not advised to use it if you
are not sure what codegen is. Still, in case of problems with python, patched
codegen may be the source of problem, so using upstream codegen may be forced.
--with-system-pcre whether to use system copy of pcre library (default
= YES)

View File

@ -2,7 +2,7 @@
# _MOO_AC_PYGTK_CODEGEN
#
AC_DEFUN([_MOO_AC_PYGTK_CODEGEN],[
AC_ARG_WITH([custom-codegen], AC_HELP_STRING([--with-custom-codegen], [whether to use custom copy of pygtk codegen (default = YES)]),[
AC_ARG_WITH([custom-codegen], AC_HELP_STRING([--with-custom-codegen], [whether to use custom copy of pygtk codegen (default = yes with pygtk 2.8)]),[
if test x$with_custom_codegen = "xno"; then
MOO_USE_CUSTOM_CODEGEN="no"
AC_MSG_NOTICE([using installed codegen])
@ -11,11 +11,11 @@ AC_DEFUN([_MOO_AC_PYGTK_CODEGEN],[
AC_MSG_NOTICE([using patched codegen])
fi
],[
if $PKG_CONFIG "pygtk-2.0 >= 2.8"; then
AC_MSG_NOTICE([pygtk >= 2.8, using patched codegen])
if $PKG_CONFIG "pygtk-2.0 >= 2.8 pygtk-2.0 < 2.9"; then
AC_MSG_NOTICE([pygtk-2.8, using patched codegen])
MOO_USE_CUSTOM_CODEGEN=yes
else
AC_MSG_NOTICE([pygtk < 2.8, using installed codegen])
AC_MSG_NOTICE([pygtk version different from 2.8, using installed codegen])
MOO_USE_CUSTOM_CODEGEN=no
fi
])