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 / +27 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
      other_LIBS=
145
    else
146
      other_LIBS=$with_ffi
147
    fi
148
    AC_SEARCH_LIBS(ffi_call,ffi,,AC_MSG_ERROR([libffi not found]),$other_LIBS)
149
    if test x$"ac_cv_search_ffi_call" = x"none required" ; then
150
      FFI_LIBS=$other_LIBS
151
    else
152
      FFI_LIBS="$ac_cv_search_ffi_call $other_LIBS"
153
    fi
154
    LIBS=$save_LIBS
155
  fi
156
fi
157
if test x"$with_ffi" != xauto && test x"$pygobject_ffi_h" != xyes ; then
158
  AC_MSG_ERROR([libffi requested, but ffi.h not found])
136
fi
159
fi
137
AC_MSG_RESULT([$pygobject_ffi_h])
160
AC_MSG_RESULT([$pygobject_ffi_h])
138
AM_CONDITIONAL(HAVE_LIBFFI, test "$pygobject_ffi_h" = "yes")
161
AM_CONDITIONAL(HAVE_LIBFFI, test "$pygobject_ffi_h" = "yes")

Return to bug 198875