From 0befc61c75a5dd289e23a2935b50bbf6125bff4b Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Sun, 27 Mar 2011 23:41:02 +0200 Subject: Correct SWIG and Cython autofoo so the makefile picks up correct subdirs --- Makefile.am | 2 +- configure.ac | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Makefile.am b/Makefile.am index 9032f79..28779dc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ AUTOMAKE_OPTIONS = foreign ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = src include $(SWIG_SUB) $(CYTHON_SUB) dev tools docs +SUBDIRS = src include $(SWIG_SUB) $(CYTHON_SUB) $(DEV_SUB) tools docs DISTCHECK_CONFIGURE_FLAGS = --enable-dev-tools diff --git a/configure.ac b/configure.ac index b12ee61..e463336 100644 --- a/configure.ac +++ b/configure.ac @@ -91,6 +91,7 @@ else swig_python_bindings=no fi AM_CONDITIONAL([HAVE_SWIG],[test "x$SWIG" != "xfalse"]) +AC_SUBST([SWIG_SUB]) AC_ARG_ENABLE([openssl], [AS_HELP_STRING([--disable-openssl], @@ -125,8 +126,6 @@ else fi # Cython Python Bindings -AC_SUBST([CYTHON_PLIST_INCLUDE_DIR]) - AC_ARG_WITH([cython], [AS_HELP_STRING([--without-cython], [build Python bindings using Cython (default is yes)])], @@ -143,13 +142,14 @@ fi if [test "x$CYTHON" != "xfalse"]; then CYTHON_SUB=cython CYTHON_PLIST_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir libplist)/plist/cython + AC_SUBST([CYTHON_PLIST_INCLUDE_DIR]) + cython_python_bindings=yes else CYTHON_SUB= cython_python_bindings=no fi -AM_CONDITIONAL([HAVE_CYTHON],[test "x$CYTHON" = "xcython"]) - -AC_SUBST([DEV_SUB]) +AM_CONDITIONAL([HAVE_CYTHON],[test "x$CYTHON_SUB" = "xcython"]) +AC_SUBST([CYTHON_SUB]) AC_ARG_ENABLE([dev-tools], [AS_HELP_STRING([--enable-dev-tools], @@ -169,7 +169,6 @@ else fi AM_CONDITIONAL([ENABLE_DEVTOOLS],[test "x$DEV_SUB" = "xdev"]) - AC_SUBST([DEV_SUB]) AC_ARG_ENABLE([debug-code], -- cgit v1.1-32-gdbae