View | Details | Raw Unified
Collapse All | Expand All

(-) pycairo-1.2.2.orig/configure.ac (-8 / +16 lines)
 Lines 32-37    Link Here 
            [AC_HELP_STRING([--with-pygtk], [support pygtk [default=yes]])],
            [AC_HELP_STRING([--with-pygtk], [support pygtk [default=yes]])],
	    [],
	    [],
	    [with_pygtk="yes"])
	    [with_pygtk="yes"])
AC_ARG_WITH([numeric],
            AS_HELP_STRING([--without-numeric],
                           [Build without numeric support (default: test)]))
# put the ACLOCAL flags in the makefile
# put the ACLOCAL flags in the makefile
 Lines 79-92    Link Here 
AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
# Numeric Python
# Numeric Python
save_CPPFLAGS="$CPPFLAGS"
if test "x$with_numeric" != "xno"; then
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
  save_CPPFLAGS="$CPPFLAGS"
AC_CHECK_HEADER([Numeric/arrayobject.h],
  CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
  [have_numpy=yes], [have_numpy=no],
  AC_CHECK_HEADER([Numeric/arrayobject.h],
  [#include <Python.h>])
    [have_numpy=yes], [have_numpy=no],
CPPFLAGS="$save_CPPFLAGS"
    [#include <Python.h>])
if test x$have_numpy = xyes; then
  CPPFLAGS="$save_CPPFLAGS"
  AC_DEFINE(HAVE_NUMPY, [1], [Define to 1 if Numeric python is found])
  if test x$have_numpy = xyes; then
    AC_DEFINE(HAVE_NUMPY, [1], [Define to 1 if Numeric python is found])
  fi
else
  # only needed for the summary printed at the end of configure
  have_numpy=no
fi
fi
# checks for types and compilers ---
# checks for types and compilers ---