From abc74723cebcab30987bb16e359645ba37eb6c95 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Tue, 21 Feb 2012 15:29:52 +1030 Subject: lib/tdb2: Convert tdb2 to a standalone library Adds a Makefile, configure script, and tdb2.pc.in. Signed-off-by: Amitay Isaacs Signed-off-by: Rusty Russell --- lib/tdb2/configure | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 lib/tdb2/configure (limited to 'lib/tdb2/configure') diff --git a/lib/tdb2/configure b/lib/tdb2/configure new file mode 100755 index 0000000000..6a9f875511 --- /dev/null +++ b/lib/tdb2/configure @@ -0,0 +1,21 @@ +#!/bin/sh + +PREVPATH=`dirname $0` + +if [ -f $PREVPATH/../../buildtools/bin/waf ]; then + WAF=../../buildtools/bin/waf +elif [ -f $PREVPATH/buildtools/bin/waf ]; then + WAF=./buildtools/bin/waf +else + echo "replace: Unable to find waf" + exit 1 +fi + +# using JOBS=1 gives maximum compatibility with +# systems like AIX which have broken threading in python +JOBS=1 +export JOBS + +cd . || exit 1 +$WAF configure "$@" || exit 1 +cd $PREVPATH -- cgit