aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.sh b/configure.sh
index d014575..703f3c7 100755
--- a/configure.sh
+++ b/configure.sh
@@ -10,7 +10,9 @@ if [ "$(echo ${VERBOSE} | tr '[:upper:]' '[:lower:]')" = 'yes' ]; then
fi
set -e # Abort on errors
-if [ -z "${LIBJPEG_DIR}" ]; then
+if [ -z "${LIBJPEG_DIR}" \
+ -o "$(echo "${LIBJPEG_DIR}" | tr '[a-z]' '[A-Z]')" = 'NO_BUILD' ]
+then
echo "BEGIN MESSAGE"
echo "LIBJPEG selected, but LIBJPEG_DIR not set. Checking some places..."
echo "END MESSAGE"