summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
Diffstat (limited to 'acprep')
-rwxr-xr-xacprep8
1 files changed, 5 insertions, 3 deletions
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