From 7e4260ee8a594aa7f32b68c231a5b152055fb593 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 17 Jan 2012 22:54:44 +0000 Subject: [PATCH] build: Fix up the test rules for private deps Thanks to diegoe for the help with testing. --- configure.ac | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 00e5f2ed6..3a440468b 100644 --- a/configure.ac +++ b/configure.ac @@ -937,21 +937,23 @@ dnl === Dependencies, compiler flags and linker libraries ===================== # strip leading space BACKEND_PC_FILES=${BACKEND_PC_FILES#* } +# public dependencies, will fill the Requires: field of clutter.pc CLUTTER_REQUIRES="$CLUTTER_BASE_PC_FILES $BACKEND_PC_FILES" PKG_CHECK_MODULES(CLUTTER_DEPS, [$CLUTTER_REQUIRES]) -AC_SUBST(CLUTTER_REQUIRES) -AS_IF([test "x$CLUTTER_BASE_PC_FILES_PRIVATE" != "x" -o test "x$BACKEND_PC_FILES_PRIVATE" != "x"], - [ - CLUTTER_REQUIRES_PRIVATE="$CLUTTER_BASE_PC_FILES_PRIVATE $BACKEND_PC_FILES_PRIVATE" - PKG_CHECK_MODULES(CLUTTER_DEPS_PRIVATE, [$CLUTTER_REQUIRES_PRIVATE]) - ], +# private dependencies, will fill the Requires.private: field of clutter.pc +AS_IF([test "x$CLUTTER_BASE_PC_FILES_PRIVATE" = "x" && test "x$BACKEND_PC_FILES_PRIVATE" = "x"], [ CLUTTER_REQUIRES_PRIVATE="" CLUTTER_DEPS_PRIVATE_CFLAGS="" CLUTTER_DEPS_PRIVATE_LIBS="" + ], + [ + CLUTTER_REQUIRES_PRIVATE="$CLUTTER_BASE_PC_FILES_PRIVATE $BACKEND_PC_FILES_PRIVATE" + PKG_CHECK_MODULES(CLUTTER_DEPS_PRIVATE, [$CLUTTER_REQUIRES_PRIVATE]) ]) +AC_SUBST(CLUTTER_REQUIRES) AC_SUBST(CLUTTER_REQUIRES_PRIVATE) CLUTTER_CFLAGS="$FLAVOUR_CFLAGS $CLUTTER_DEPS_CFLAGS $CLUTTER_DEPS_PRIVATE_CFLAGS $CLUTTER_PROFILE_CFLAGS $GLIB_CFLAGS"