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 / +20 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_WITH(libffi,
133
if test $pygobject_ffi_h = yes; then
133
  AC_HELP_STRING([--without-ffi], [Disable libffi support]),
134
   AC_DEFINE(HAVE_FFI_H,1,[Have ffi.h include file])
134
  with_ffi=$withval,
135
   FFI_LIBS="-lffi"
135
  with_ffi=auto)
136
if test x"$with_ffi" = xno ; then
137
  pygobject_ffi_h=disabled
138
else
139
  AC_TRY_CPP([#include <ffi.h>], pygobject_ffi_h=yes, pygobject_ffi_h=no)
140
  if test $pygobject_ffi_h = yes; then
141
    AC_DEFINE(HAVE_FFI_H,1,[Have ffi.h include file])
142
    save_LIBS=$LIBS
143
    if test x"$with_ffi" != xyes && test x"$with_ffi" != xauto; then
144
      LIBS=$with_ffi
145
    fi
146
    AC_SEARCH_LIBS(ffi_call,ffi,FFI_LIBS=$LIBS,AC_MSG_ERROR(libffi not found))
147
    LIBS=$save_LIBS
148
  fi
149
fi
150
if test x"$with_ffi" != xauto && test x"$pygobject_ffi_h" != xyes ; then
151
  AC_MSG_ERROR([libffi requested, but ffi.h not found])
136
fi
152
fi
137
AC_MSG_RESULT([$pygobject_ffi_h])
153
AC_MSG_RESULT([$pygobject_ffi_h])
138
AM_CONDITIONAL(HAVE_LIBFFI, test "$pygobject_ffi_h" = "yes")
154
AM_CONDITIONAL(HAVE_LIBFFI, test "$pygobject_ffi_h" = "yes")

Return to bug 198875