1#!/bin/sh - 2# 3# $Id$ 4# 5# Look for trailing commas in declarations. Some compilers can't handle: 6# enum { 7# foo, 8# bar, 9# }; 10 11[ -f ../libdb.a ] || (cd .. && make libdb.a) || { 12 echo 'FAIL: unable to find or build libdb.a' 13 exit 1 14} 15 16if cc -g -Wall -I.. t.c ../libdb.a -o t; then 17 : 18else 19 echo "FAIL: unable to compile test program t.c" 20 exit 1 21fi 22 23if ./t ../../*/*.[ch] ../../*/*.in; then 24 : 25else 26 echo "FAIL: test program failed" 27 exit 1 28fi 29 30exit 0 31