From 069552a81dfe0fe621bb5eed361ecfe1cccacc95 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 3 Feb 2009 13:31:13 -0400 Subject: Fixed the auto-discovery of the Boost suffix in acprep. --- acprep | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'acprep') diff --git a/acprep b/acprep index 8055a268..0e3a7229 100755 --- a/acprep +++ b/acprep @@ -33,9 +33,11 @@ for lib in $(ls -1 /opt/local/lib/libboost_regex*.a \ | sort -r) do lib=$(basename "$lib") - BOOST_SUFFIX=$(echo "$lib" | sed 's/libboost_regex-//' | sed 's/\.a//') - echo "Discovered Boost suffix: --boost $BOOST_SUFFIX" - BOOST_SUFFIX="-$BOOST_SUFFIX" + suffix=$(echo "$lib" | sed 's/libboost_regex-//' | sed 's/\.a//') + if [[ "$suffix" != "libboost_regex" ]]; then + echo "Discovered Boost suffix: --boost $suffix" + BOOST_SUFFIX="-$suffix" + fi break done -- cgit v1.2.3