1#!/bin/sh - 2# 3# $Id$ 4# 5# Build a program that calls the run-time API configuration functions. 6 7[ -f ../libdb.a ] || (cd .. && make libdb.a) || { 8 echo 'FAIL: unable to find or build libdb.a' 9 exit 1 10} 11 12CINC=-I.. 13[ `uname` = "Linux" ] && CINC="$CINC -pthread" 14 15if cc -g -Wall $CINC t.c ../libdb.a -o t; then 16 : 17else 18 echo "FAIL: unable to compile test program t.c" 19 exit 1 20fi 21 22if ./t; then 23 : 24else 25 echo "FAIL: test program failed" 26 exit 1 27fi 28 29exit 0 30