summaryrefslogtreecommitdiff
path: root/qpid/cpp/bootstrap
blob: c1fb7532019ad8db0f094e7211f2b80f98e179fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
set -e
aclocal -I m4
autoheader
libtoolize --automake

# Generate (for automake) lots of repetitive parts of tests/Makefile.am.
(cd src/tests && rm -f gen.mk
  perl -ne '/^(include |if |else|endif)/ or print' Makefile.am \
      | make -f - abs_srcdir=`dirname $(pwd)` gen.mk > /dev/null )

# Create initial Makefile fragments that will force make to generate
# the real ones.
cat > src/rubygen.mk <<EOF
\$(srcdir)/rubygen.mk: force
	\$(rgen_cmd)
EOF
cat > src/managementgen.mk <<EOF
\$(srcdir)/managementgen.mk: force
	\$(mgen_cmd)
EOF


automake
autoconf

if [ "$1" = "-build" -o "$1" = "--build" ] ; then
    shift
    ./configure "$@"
    make
    make check
fi