flash: stmqspi: fix clang error 'dead assignment'
[openocd.git] / bootstrap
blobcf6167fff60055b10badc2a2e2486bb66ce167d2
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0-or-later
4 # Run the autotools bootstrap sequence to create the configure script
6 # Abort execution on error
7 set -e
9 if which libtoolize > /dev/null; then
10 libtoolize="libtoolize"
11 elif which glibtoolize >/dev/null; then
12 libtoolize="glibtoolize"
13 else
14 echo "$0: Error: libtool is required" >&2
15 exit 1
18 if [ "$1" = "nosubmodule" ]; then
19 SKIP_SUBMODULE=1
20 elif [ -n "$1" ]; then
21 echo "$0: Illegal argument $1"
22 echo "USAGE: $0 [nosubmodule]"
23 exit 1
26 # bootstrap the autotools
28 set -x
29 aclocal --warnings=all
30 # Apparently, not all versions of libtoolize support option --warnings=all .
31 ${libtoolize} --automake --copy
32 autoconf --warnings=all
33 autoheader --warnings=all
34 automake --warnings=all --gnu --add-missing --copy
37 if [ -n "$SKIP_SUBMODULE" ]; then
38 echo "Skipping submodule setup"
39 else
40 echo "Setting up submodules"
41 git submodule init
42 git submodule update
45 if [ -x src/jtag/drivers/libjaylink/autogen.sh ]; then
47 cd src/jtag/drivers/libjaylink
48 ./autogen.sh
52 echo "Bootstrap complete. Quick build instructions:"
53 echo "./configure ...."