Lines 154-168
Link Here
|
154 |
GTK_DOC_CHECK([1.6]) |
154 |
GTK_DOC_CHECK([1.6]) |
155 |
|
155 |
|
156 |
## Python bindings |
156 |
## Python bindings |
157 |
AM_PATH_PYTHON |
157 |
AC_ARG_ENABLE(python, |
158 |
AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)]) |
158 |
[AC_HELP_STRING([--enable-python], [build python bindings [default=auto]])]) |
|
|
159 |
if test "x$enable_python" = "xno" ; then |
160 |
have_python=no |
161 |
else |
162 |
have_python=no |
163 |
AM_PATH_PYTHON |
164 |
if test "x$PYTHON" = "x" ; then |
165 |
AC_MSG_WARN([Python not found]) |
166 |
else |
167 |
AM_CHECK_PYTHON_HEADERS([ |
168 |
AC_PATH_PROG(PYGTK_CODEGEN, pygtk-codegen-2.0, no) |
169 |
PKG_CHECK_MODULES(PYTHON_BINDINGS, pygtk-2.0 pycairo, [ |
170 |
PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0` |
171 |
AC_SUBST(PYGTK_DEFSDIR) |
172 |
have_python=yes |
173 |
], [AC_MSG_WARN(could not find pygtk-2.0 or pycairo)]) |
174 |
],[AC_MSG_WARN(could not find Python headers)]) |
175 |
fi |
176 |
fi |
159 |
|
177 |
|
160 |
AC_PATH_PROG(PYGTK_CODEGEN, pygtk-codegen-2.0, no) |
178 |
AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes") |
161 |
|
|
|
162 |
PKG_CHECK_MODULES(PYTHON_BINDINGS, pygtk-2.0 pycairo) |
163 |
|
164 |
PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0` |
165 |
AC_SUBST(PYGTK_DEFSDIR) |
166 |
|
179 |
|
167 |
AC_OUTPUT([ |
180 |
AC_OUTPUT([ |
168 |
Makefile |
181 |
Makefile |
Lines 179-184
Link Here
|
179 |
prefix: ${prefix} |
192 |
prefix: ${prefix} |
180 |
compiler: ${CC} |
193 |
compiler: ${CC} |
181 |
LIBHIPPOCANVAS_CFLAGS: ${LIBHIPPOCANVAS_CFLAGS} |
194 |
LIBHIPPOCANVAS_CFLAGS: ${LIBHIPPOCANVAS_CFLAGS} |
|
|
195 |
build python bindings: ${have_python} |
182 |
|
196 |
|
183 |
Now type 'make' to build $PACKAGE |
197 |
Now type 'make' to build $PACKAGE |
184 |
" |
198 |
" |