Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 198875 | Differences between
and this patch

Collapse All | Expand All

(-)pygobject-2.14.0/configure.ac (-4 / +13 lines)
Lines 129-138 AC_SUBST([pygobject_CODEGEN_DEFINES]) Link Here
129
129
130
dnl libffi
130
dnl libffi
131
AC_MSG_CHECKING(for ffi.h)
131
AC_MSG_CHECKING(for ffi.h)
132
AC_TRY_CPP([#include <ffi.h>], pygobject_ffi_h=yes, pygobject_ffi_h=no)
132
AC_ARG_ENABLE(libffi,
133
if test $pygobject_ffi_h = yes; then
133
  AC_HELP_STRING([--disable-ffi], [Disable libffi support]),
134
   AC_DEFINE(HAVE_FFI_H,1,[Have ffi.h include file])
134
  enable_ffi=$enableval,
135
   FFI_LIBS="-lffi"
135
  enable_ffi=auto)
136
if test x"$enable_ffi" != xno ; then
137
  AC_TRY_CPP([#include <ffi.h>], pygobject_ffi_h=yes, pygobject_ffi_h=no)
138
  if test $pygobject_ffi_h = yes; then
139
     AC_DEFINE(HAVE_FFI_H,1,[Have ffi.h include file])
140
     FFI_LIBS="-lffi"
141
  fi
142
fi
143
if test x"$enable_ffi" = xyes && test x"$pygobject_ffi_h" != xyes ; then
144
  AC_MSG_ERROR([libffi not found])
136
fi
145
fi
137
AC_MSG_RESULT([$pygobject_ffi_h])
146
AC_MSG_RESULT([$pygobject_ffi_h])
138
AM_CONDITIONAL(HAVE_LIBFFI, test "$pygobject_ffi_h" = "yes")
147
AM_CONDITIONAL(HAVE_LIBFFI, test "$pygobject_ffi_h" = "yes")

Return to bug 198875