File tree 2 files changed +15
-5
lines changed
2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
#
3
- # Copyright (c) 2012, 2014 , Oracle and/or its affiliates. All rights reserved.
3
+ # Copyright (c) 2012, 2023 , Oracle and/or its affiliates. All rights reserved.
4
4
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
5
#
6
6
# This code is free software; you can redistribute it and/or modify it
26
26
# make sure that is called using bash.
27
27
28
28
# Get an absolute path to this script, since that determines the top-level directory.
29
- this_script_dir=` dirname $0 `
30
- this_script_dir=` cd $this_script_dir > /dev/null && pwd`
29
+ source_path=" $( dirname ${0} ) "
30
+ this_script_dir=" $( cd -- " ${source_path} " > /dev/null && pwd) "
31
+ if test -z " ${this_script_dir} " ; then
32
+ echo " Error: Could not determine location of configure script"
33
+ exit 1
34
+ fi
31
35
32
36
# Delegate to wrapper, forcing wrapper to believe $0 is this script by using -c.
33
37
# This trick is needed to get autoconf to co-operate properly.
34
38
# The ${-:+-$-} construction passes on bash options.
35
- bash ${-: +-$- } -c " . $ this_script_dir /make/autoconf/configure" $ this_script_dir /configure CHECKME $ this_script_dir " $@ "
39
+ bash ${-: +-$- } -c " . \" ${ this_script_dir} /make/autoconf/configure\" " " ${ this_script_dir} /configure" CHECKME " ${ this_script_dir} " " $@ "
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
#
3
- # Copyright (c) 2012, 2020 , Oracle and/or its affiliates. All rights reserved.
3
+ # Copyright (c) 2012, 2023 , Oracle and/or its affiliates. All rights reserved.
4
4
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
5
#
6
6
# This code is free software; you can redistribute it and/or modify it
@@ -39,6 +39,12 @@ if test "x$BASH" = x; then
39
39
echo " Error: This script must be run using bash." 1>&2
40
40
exit 1
41
41
fi
42
+
43
+ if [[ " $TOPDIR " =~ .* [[:space:]]+.* ]]; then
44
+ echo " Error: Build path containing space character is not supported" 1>&2
45
+ exit 1
46
+ fi
47
+
42
48
# Force autoconf to use bash. This also means we must disable autoconf re-exec.
43
49
export CONFIG_SHELL=$BASH
44
50
export _as_can_reexec=no
You can’t perform that action at this time.
0 commit comments