pygobject r841 - in trunk: . gobject
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: pygobject r841 - in trunk: . gobject
- Date: Sun, 20 Jul 2008 12:31:30 +0000 (UTC)
Author: johan
Date: Sun Jul 20 12:31:30 2008
New Revision: 841
URL: http://svn.gnome.org/viewvc/pygobject?rev=841&view=rev
Log:
2008-07-20 Johan Dahlin <johan gnome org>
* configure.ac:
* gobject/Makefile.am:
Use pkg-config to check for libffi again.
Modified:
trunk/ChangeLog
trunk/configure.ac
trunk/gobject/Makefile.am
Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Sun Jul 20 12:31:30 2008
@@ -151,37 +151,24 @@
AS_AC_EXPAND(DATADIR, $datadir)
dnl libffi
-AC_MSG_CHECKING(for ffi.h)
-AC_ARG_WITH(libffi,
+AC_MSG_CHECKING(for ffi)
+AC_ARG_WITH(ffi,
AC_HELP_STRING([--without-ffi], [Disable libffi support]),
- with_ffi=$withval,
- with_ffi=auto)
-if test x"$with_ffi" = xno ; then
- pygobject_ffi_h=disabled
+ with_libffi=$withval,
+ with_libffi=auto)
+if test x"$with_libffi" = xno ; then
+ have_libffi=false
else
- AC_TRY_CPP([#include <ffi.h>], pygobject_ffi_h=yes, pygobject_ffi_h=no)
- if test $pygobject_ffi_h = yes; then
- AC_DEFINE(HAVE_FFI_H,1,[Have ffi.h include file])
- save_LIBS=$LIBS
- if test x"$with_ffi" = xyes || test x"$with_ffi" = xauto; then
- other_LIBS=
- else
- other_LIBS=$with_ffi
- fi
- AC_SEARCH_LIBS(ffi_call,ffi,,AC_MSG_ERROR([libffi not found]),$other_LIBS)
- if test x$"ac_cv_search_ffi_call" = x"none required" ; then
- FFI_LIBS=$other_LIBS
- else
- FFI_LIBS="$ac_cv_search_ffi_call $other_LIBS"
- fi
- LIBS=$save_LIBS
- fi
+ PKG_CHECK_MODULES(FFI, libffi >= 3.0, have_libffi=true, have_libffi=false)
fi
-if test x"$with_ffi" != xauto && test x"$pygobject_ffi_h" != xyes ; then
- AC_MSG_ERROR([libffi requested, but ffi.h not found])
+if test x"$with_libffi" == xyes && test x"$have_libffi" != xyes ; then
+ AC_MSG_ERROR([ffi requested, but not found])
+else
+ AC_DEFINE(HAVE_FFI_H,1,[Have libffi include files])
fi
-AC_MSG_RESULT([$pygobject_ffi_h])
-AM_CONDITIONAL(HAVE_LIBFFI, test "$pygobject_ffi_h" = "yes")
+AC_MSG_RESULT([$have_libffi])
+AM_CONDITIONAL(HAVE_LIBFFI, test "$have_libffi" = "true")
+AC_SUBST(FFI_CFLAGS)
AC_SUBST(FFI_LIBS)
dnl gio
@@ -237,5 +224,5 @@
AC_OUTPUT
echo
-echo "libffi support: $pygobject_ffi_h"
+echo "libffi support: $have_libffi"
echo
Modified: trunk/gobject/Makefile.am
==============================================================================
--- trunk/gobject/Makefile.am (original)
+++ trunk/gobject/Makefile.am Sun Jul 20 12:31:30 2008
@@ -1,6 +1,6 @@
AUTOMAKE_OPTIONS = 1.7
PLATFORM_VERSION = 2.0
-INCLUDES = $(PYTHON_INCLUDES) $(GLIB_CFLAGS) -DPY_SSIZE_T_CLEAN
+INCLUDES = $(PYTHON_INCLUDES) $(FFI_CFLAGS) $(GLIB_CFLAGS) -DPY_SSIZE_T_CLEAN
pkgincludedir = $(includedir)/pygtk-$(PLATFORM_VERSION)
pkginclude_HEADERS = pygobject.h
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]