]> cygwin.com Git - cygwin-apps/setup.git/blame - bootstrap.sh
* bootstrap.sh: Always reconfigure in libgetopt++.
[cygwin-apps/setup.git] / bootstrap.sh
CommitLineData
f6100b6f
RC
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
6
7
8bootstrap() {
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
16 fi
17}
18
56c60dcc
MB
19# Make sure we are running in the right directory
20if [ ! -f cygpackage.cc ]; then
21 echo "You must run this script from the directory containing it"
22 exit 1
23fi
24
56c60dcc 25
f6100b6f
RC
26# Make sure cfgaux exists
27mkdir -p cfgaux
28
29# Bootstrap the autotool subsystems
30bootstrap aclocal
31# bootstrap autoheader
6908b7d7 32bootstrap libtoolize --automake
f6100b6f
RC
33bootstrap autoconf
34bootstrap automake --foreign --add-missing
35
644ca185
CF
36# Run bootstrap in required subdirs, iff it has not yet been run
37echo "bootstrapping in libgetopt++"
38cd libgetopt++; ./bootstrap.sh
39
f6100b6f 40echo "Autotool bootstrapping complete."
This page took 0.04311 seconds and 5 git commands to generate.