summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Mitchell <ndmitchell@gmail.com>2018-07-09 16:17:57 +0100
committerBen Gamari <ben@smart-cactus.org>2018-07-12 11:25:47 -0400
commit101e90472b5536fffce1c19324db45451faf5246 (patch)
treeb2ad3fa8100e103c53d0fee482e52baa2a22b6fc
parent7c207c86ab0de955ebec70eeeb366ba0d94acc4a (diff)
downloadhaskell-101e90472b5536fffce1c19324db45451faf5246.tar.gz
Make boot work if ACLOCAL_PATH is not set
-rwxr-xr-xboot2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot b/boot
index d57dcc846b..29643e483a 100755
--- a/boot
+++ b/boot
@@ -151,7 +151,7 @@ def autoreconf():
# Get the normalized ACLOCAL_PATH for Windows
# This is necessary since on Windows this will be a Windows
# path, which autoreconf doesn't know doesn't know how to handle.
- ac_local = os.environ['ACLOCAL_PATH']
+ ac_local = os.getenv('ACLOCAL_PATH', '')
ac_local_arg = re.sub(r';', r':', ac_local)
ac_local_arg = re.sub(r'\\', r'/', ac_local_arg)
ac_local_arg = re.sub(r'(\w):/', r'/\1/', ac_local_arg)