From bbfcbd609e4026a07a218f59d2a14b4b7836f8f4 Mon Sep 17 00:00:00 2001 From: eschnett Date: Fri, 8 Mar 2013 03:26:18 +0000 Subject: Support NO_BUILD in zlib git-svn-id: http://svn.cactuscode.org/projects/ExternalLibraries/zlib/trunk@19 d47fded2-66c1-406f-af09-4fc0800f9c6b --- configure.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.sh b/configure.sh index 687bce6..7ee1b80 100644 --- a/configure.sh +++ b/configure.sh @@ -16,7 +16,9 @@ set -e # Abort on errors # Search ################################################################################ -if [ -z "${ZLIB_DIR}" ]; then +if [ -z "${ZLIB_DIR}" \ + -o "$(echo "${ZLIB_DIR}" | tr '[a-z]' '[A-Z]')" = 'NO_BUILD' ] +then echo "BEGIN MESSAGE" echo "zlib selected, but ZLIB_DIR not set. Checking some places..." echo "END MESSAGE" -- cgit v1.2.3