From b56cd57bdce6b573ac0fc973ba4d16057c1e2ca5 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 9 Nov 2008 22:11:23 +0100 Subject: [PATCH] Example: Fix the previous commit. (pkg-config does not like testing the version and reading a variable simultaneously.) --- free/libs/examples/external-ucw-build/configure | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/free/libs/examples/external-ucw-build/configure b/free/libs/examples/external-ucw-build/configure index 1e9ccedc..8214aa94 100755 --- a/free/libs/examples/external-ucw-build/configure +++ b/free/libs/examples/external-ucw-build/configure @@ -18,10 +18,12 @@ BEGIN { die "Don't know how to find myself. Please set SRCDIR manually."; } } - # Ask pkg-config for the rest of configure - $libdir=`pkg-config libucw --atleast-version=3.13 --variable=perl_modules_dir`; + # Ask pkg-config if libucw is installed and find its configure modules + `pkg-config libucw --atleast-version=3.13`; + !$? or die "Package `libucw' (version 3.13 or newer) not found. Is PKG_CONFIG_PATH set properly?"; + $libdir=`pkg-config libucw --variable=perl_modules_dir`; chomp $libdir; - die "Package `libucw' (version 3.13 or newer) not found. Is PKG_CONFIG_PATH set properly?" if $? || not defined $libdir; + die "Unable to find the libucw configure system" if $? || not defined $libdir; } use lib $libdir; use UCW::Configure; -- 2.39.5