From 1b8979572219fc579924e7104c9dd81e74127906 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Fri, 2 Oct 2009 17:14:12 +0000 Subject: [PATCH] * use Requires.private field in embryo.pc if pkg-config 0.22 or later is installed (for Evil). * remove uneeded flags that are in Libs.private (EVIL_LIBS) SVN revision: 42860 --- legacy/embryo/configure.ac | 8 ++++++++ legacy/embryo/embryo.pc.in | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/legacy/embryo/configure.ac b/legacy/embryo/configure.ac index ce0a503211..a055b71d9e 100644 --- a/legacy/embryo/configure.ac +++ b/legacy/embryo/configure.ac @@ -55,6 +55,14 @@ EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"]) PKG_PROG_PKG_CONFIG +# Check whether pkg-config supports Requires.private +if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then + pkgconfig_requires_private="Requires.private" +else + pkgconfig_requires_private="Requires" +fi +AC_SUBST(pkgconfig_requires_private) + ### Checks for libraries diff --git a/legacy/embryo/embryo.pc.in b/legacy/embryo/embryo.pc.in index 83813d5bc4..b30742aa99 100644 --- a/legacy/embryo/embryo.pc.in +++ b/legacy/embryo/embryo.pc.in @@ -8,8 +8,8 @@ embryoincludedir=@embryoincludedir@ Name: embryo Description: A small virtual machine engine and bytecode compiler -Requires: @requirement_embryo@ +@pkgconfig_requires_private@: @requirement_embryo@ Version: @VERSION@ Libs: -L${libdir} -lembryo -Libs.private: @EVIL_LIBS@ @fnmatch_libs@ -lm +Libs.private: @fnmatch_libs@ -lm Cflags: -I${includedir}