3 #Prepare necessary submodules before runing autotools
4 if [ "$1" = "nosubmodule" ]; then
7 echo "$0: Illegal argument $1"
8 echo "USAGE: $0 [nosubmodule]"
12 if [ -n "$SKIP_SUBMODULE" ]; then
13 echo "Skipping submodule setup"
15 echo "Setting up submodules"
20 #Check what libtool version to use
21 if which libtoolize
> /dev
/null
; then
22 libtoolize
="libtoolize"
23 elif which glibtoolize
>/dev
/null
; then
24 libtoolize
="glibtoolize"
26 echo "$0: Error: libtool is required" >&2
30 # bootstrap the autotools
34 ${libtoolize} --automake --copy
37 automake
--gnu --add-missing --copy
40 # AM_MAINTAINER_MODE requires --enable-maintainer-mode from everyone using
41 # current source snapshots (working from GIT, or some source snapshot, etc)
42 # otherwise the documentation will fail to build due to missing version.texi
44 echo "Bootstrap complete. Quick build instructions:"
45 echo "./configure --enable-maintainer-mode ...."