1#!/bin/sh -
2#
3# $Id: chk.db185,v 12.0 2004/11/17 03:44:50 bostic Exp $
4#
5# Check to make sure we can run DB 1.85 code.
6
7[ -f ../libdb.a ] || (cd .. && make libdb.a) || {
8	echo 'FAIL: unable to find or build libdb.a'
9	exit 1
10}
11
12if cc -g -Wall -I.. t.c ../libdb.a -o t; then
13	:
14else
15	echo "FAIL: unable to compile test program t.c"
16	exit 1
17fi
18
19if ./t; then
20	:
21else
22	echo "FAIL: test program failed"
23	exit 1
24fi
25
26# Clean up so the next test doesn't get confused.
27rm -rf *
28
29exit 0
30