Translated using Weblate (Chinese (Simplified))
[cygwin-setup.git] / libgetopt++ / bootstrap.sh
blob412af862ddacaca3c70467cc2f586f101bc23544
1 #! /bin/sh
2 # Used to setup the configure.in, autoheader and Makefile.in's if configure
3 # has not been generated. This script is only needed for developers when
4 # configure has not been run, or if a Makefile.am in a non-configured directory
5 # has been updated
8 bootstrap() {
9 if "$@"; then
10 true # Everything OK
11 else
12 echo "$1 failed"
13 echo "Autotool bootstrapping failed. You will need to investigate and correct" ;
14 echo "before you can develop on this source tree"
15 exit 1
19 # Make sure we are running in the right directory
20 if [ ! -f src/GetOption.cc ]; then
21 echo "You must run this script from the directory containing it"
22 exit 1
25 # Make sure cfgaux exists
26 mkdir -p cfgaux
28 # Bootstrap the autotool subsystems
29 bootstrap aclocal
30 bootstrap autoheader
31 bootstrap libtoolize --automake
32 bootstrap automake --foreign --add-missing
33 bootstrap autoconf
35 echo "Autotool bootstrapping complete."