flash/nor/at91samd: Use 32-bit register writes for ST-Link compat
[fw/openocd] / bootstrap
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0-or-later
3
4 # Run the autotools bootstrap sequence to create the configure script
5
6 # Abort execution on error
7 set -e
8
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
16 fi
17
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
24 fi
25
26 # bootstrap the autotools
27 (
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
35 )
36
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
43 fi
44
45 if [ -x src/jtag/drivers/libjaylink/autogen.sh ]; then
46     (
47     cd src/jtag/drivers/libjaylink
48     ./autogen.sh
49     )
50 fi
51
52 echo "Bootstrap complete. Quick build instructions:"
53 echo "./configure ...."