summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xacprep11
1 files changed, 11 insertions, 0 deletions
diff --git a/acprep b/acprep
index 4fc7c526..8055a268 100755
--- a/acprep
+++ b/acprep
@@ -28,6 +28,17 @@ if [ -z "$PYTHON_VERSION" ]; then
fi
BOOST_SUFFIX=""
+for lib in $(ls -1 /opt/local/lib/libboost_regex*.a \
+ /usr/local/lib/libboost_regex*.a 2> /dev/null \
+ | 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"
+ break
+done
+
BOOST_VERSION="1_37"
INCDIRS="-isystem /usr/local/include"