diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-01-01 15:16:29 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-01-01 15:16:29 +0000 |
commit | 1c335e63c9e7ca8d6d5ea72fe5ce44cbb0fb5c51 (patch) | |
tree | 80d1f7b420e308c9cc968cd969c20592bb817884 /configure.in | |
parent | More yearly updates. (diff) | |
download | cpython-1c335e63c9e7ca8d6d5ea72fe5ce44cbb0fb5c51.tar.gz cpython-1c335e63c9e7ca8d6d5ea72fe5ce44cbb0fb5c51.tar.bz2 cpython-1c335e63c9e7ca8d6d5ea72fe5ce44cbb0fb5c51.zip |
use pkg-config to find the libffi headers when --with-system-ffi is used #6943
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 637490b9e2f..7070a42ffaa 100644 --- a/configure.in +++ b/configure.in @@ -1980,6 +1980,14 @@ AC_MSG_CHECKING(for --with-system-ffi) AC_ARG_WITH(system_ffi, AC_HELP_STRING(--with-system-ffi, build _ctypes module using an installed ffi library)) +if test "$with_system_ffi" = "yes"; then + AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) + LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" +else + LIBFFI_INCLUDEDIR="" +fi +AC_SUBST(LIBFFI_INCLUDEDIR) + AC_MSG_RESULT($with_system_ffi) # Check for --with-dbmliborder |