From 43fb548c8b2772f23ee59b97faffb2cdd8a1ef58 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 8 Mar 2006 09:26:46 +0000 Subject: [PATCH] * Let us do "caca-config --libs cucul" to get only the libcucul dependencies. --- caca-config.in | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/caca-config.in b/caca-config.in index 2e69240..017c94f 100644 --- a/caca-config.in +++ b/caca-config.in @@ -25,6 +25,8 @@ EOF exit $1 } +libs="" + if test $# -eq 0 then usage 1 1>&2 @@ -66,6 +68,12 @@ do --libs | --plugin-libs) echo_libs=yes ;; + cucul) + libs="$libs -lcucul @CUCUL_LIBS@" + ;; + caca) + libs="$libs -lcaca @CACA_LIBS@ -lcucul @CUCUL_LIBS@" + ;; *) usage 1 1>&2 ;; @@ -73,6 +81,11 @@ do shift done +if test "$libs" = "" +then + libs="-lcaca @CACA_LIBS@ -lcucul @CUCUL_LIBS@" +fi + if test "$local_prefix" = "yes" then if test "$exec_prefix_set" != "yes" @@ -105,6 +118,6 @@ fi if test "$echo_libs" = "yes" then - echo -L@libdir@ -lcucul -lcaca @CUCUL_LIBS@ @CACA_LIBS@ + echo -L@libdir@ $libs fi