From 53d03c43b4e00ce525d5e30c4cbe64c05a1b0222 Mon Sep 17 00:00:00 2001 From: Robert Greig Date: Mon, 18 Dec 2006 18:20:41 +0000 Subject: Copied remotely git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/perftesting@488382 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/bootstrap | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 qpid/cpp/bootstrap (limited to 'qpid/cpp/bootstrap') diff --git a/qpid/cpp/bootstrap b/qpid/cpp/bootstrap new file mode 100755 index 0000000000..e52b403700 --- /dev/null +++ b/qpid/cpp/bootstrap @@ -0,0 +1,31 @@ +#!/bin/sh +set -e +aclocal -I m4 +autoheader +libtoolize --automake + +# These are needed only if you don't already have the gen/*.{h,cpp} files. +: ${JAVA=java} +: ${JAVAC=javac} +export JAVA JAVAC + +# If we're building in the qpid tree, we can generate +# some Makefile snippets: + +if test -d ../gentools && test -d ../specs; then + # Transform gen/Makefile.am, removing automake-constructs and the + # contents of the sole automake-else clause (the warning), then + # use the result to run the rules that create gen-src.mk, a file + # that must be created before we run automake. + (cd gen && rm -f gen-src.mk + perl -ne '/warning:|^(if|else|endif|include)\b/ or print' Makefile.am \ + | make -f - srcdir=. gen-src.mk > /dev/null ) +fi + +# Generate (for automake) lots of repetitive parts of tests/Makefile.am. +(cd tests && rm -f gen.mk + perl -ne '/^include / or print' Makefile.am \ + | make -f - abs_srcdir=`dirname $(pwd)` gen.mk > /dev/null ) + +automake +autoconf -- cgit v1.2.1