mirror of
https://github.com/berkeleydb/libdb.git
synced 2024-11-16 17:16:25 +00:00
36 lines
521 B
Text
36 lines
521 B
Text
|
#!/bin/sh -
|
||
|
#
|
||
|
# $Id$
|
||
|
#
|
||
|
# Look for trailing commas in declarations. Some compilers can't handle:
|
||
|
# enum {
|
||
|
# foo,
|
||
|
# bar,
|
||
|
# };
|
||
|
# mar 2010 added -D_GNU_SOURCE to compile on linux blade server
|
||
|
|
||
|
d=../..
|
||
|
[ -f $d/LICENSE ] || {
|
||
|
echo 'FAIL: cannot find source distribution directory.'
|
||
|
exit 1
|
||
|
}
|
||
|
|
||
|
s=$d/src
|
||
|
if cc -g -Wall -D_GNU_SOURCE $0.c -o t; then
|
||
|
:
|
||
|
else
|
||
|
echo "FAIL: unable to compile test program $0.c"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
if ./t $s/*/*.[ch] $s/*/*.in; then
|
||
|
:
|
||
|
else
|
||
|
echo "FAIL: test program failed"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
rm -rf t
|
||
|
|
||
|
exit 0
|