summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-12 10:16:53 -0500
committermidipix <writeonce@midipix.org>2016-11-12 10:19:22 -0500
commitd1d8b0f966f649f824d1004a6dc01dc721305560 (patch)
treed96272623e047e717a5f4f7792f4812bf9756320
parenta0e5d0e7214f0c94ab35b330dec933d046fda142 (diff)
downloadbcparser-d1d8b0f966f649f824d1004a6dc01dc721305560.tar.bz2
bcparser-d1d8b0f966f649f824d1004a6dc01dc721305560.tar.xz
build system: configure: mb_native_os: respect overrides.
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index baac353..c13f5f4 100755
--- a/configure
+++ b/configure
@@ -330,7 +330,9 @@ native_defaults()
# os
- mb_native_os=`uname | tr '[:upper:]' '[:lower:]'`
+ if [ -z "$mb_native_os" ]; then
+ mb_native_os=`uname | tr '[:upper:]' '[:lower:]'`
+ fi
mb_native_os_sizeof_pointer=`$mb_native_cc -dM -E - < /dev/null \
| awk '$2 == "__SIZEOF_POINTER__" { print $3 }'`