1.1 --- a/configure Tue Apr 10 07:46:25 2018 -0700 1.2 +++ b/configure Wed Apr 11 04:42:33 2018 -0700 1.3 @@ -1,6 +1,6 @@ 1.4 #!/bin/bash 1.5 # 1.6 -# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 1.7 +# Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. 1.8 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.9 # 1.10 # This code is free software; you can redistribute it and/or modify it 1.11 @@ -25,5 +25,10 @@ 1.12 # This is a thin wrapper which will call the real configure script, and 1.13 # make sure that is called using bash. 1.14 1.15 +# Get an absolute path to this script, since that determines the top-level directory. 1.16 this_script_dir=`dirname $0` 1.17 -bash $this_script_dir/common/autoconf/configure "$@" 1.18 +this_script_dir=`cd $this_script_dir > /dev/null && pwd` 1.19 + 1.20 +# Delegate to wrapper, forcing wrapper to believe $0 is this script by using -c. 1.21 +# This trick is needed to get autoconf to co-operate properly. 1.22 +bash -c ". $this_script_dir/common/autoconf/configure" $this_script_dir/configure CHECKME $this_script_dir "$@"